diff --git a/package-lock.json b/package-lock.json index 2aed529..275e2eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,7 @@ "@nestjs/schedule": "^6.0.0", "@nestjs/swagger": "^11.2.0", "@prisma/adapter-mariadb": "^7.3.0", + "@prisma/adapter-pg": "^7.3.0", "@prisma/client": "^7.3.0", "@quixo3/prisma-session-store": "^3.1.13", "axios": "^1.13.2", @@ -32,6 +33,7 @@ "passport": "^0.7.0", "passport-jwt": "^4.0.1", "passport-openidconnect": "^0.1.2", + "pg": "^8.18.0", "reflect-metadata": "^0.2.2", "rxjs": "^7.8.1", "sharp": "^0.34.3" @@ -51,6 +53,7 @@ "@types/node": "^22.17.2", "@types/passport-jwt": "^4.0.1", "@types/passport-openidconnect": "^0.1.3", + "@types/pg": "^8.16.0", "@types/supertest": "^6.0.2", "dotenv": "^17.2.3", "eslint": "^9.18.0", @@ -3544,6 +3547,17 @@ "mariadb": "3.4.5" } }, + "node_modules/@prisma/adapter-pg": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@prisma/adapter-pg/-/adapter-pg-7.3.0.tgz", + "integrity": "sha512-iuYQMbIPO6i9O45Fv8TB7vWu00BXhCaNAShenqF7gLExGDbnGp5BfFB4yz1K59zQ59jF6tQ9YHrg0P6/J3OoLg==", + "license": "Apache-2.0", + "dependencies": { + "@prisma/driver-adapter-utils": "7.3.0", + "pg": "^8.16.3", + "postgres-array": "3.0.4" + } + }, "node_modules/@prisma/client": { "version": "7.3.0", "resolved": "https://registry.npmjs.org/@prisma/client/-/client-7.3.0.tgz", @@ -4433,6 +4447,18 @@ "@types/passport": "*" } }, + "node_modules/@types/pg": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/@types/pg/-/pg-8.16.0.tgz", + "integrity": "sha512-RmhMd/wD+CF8Dfo+cVIy3RR5cl8CyfXQ0tGgW6XBL8L4LM/UTEbNXYRbLwU6w+CgrKBNbrQWt4FUtTfaU5jSYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "pg-protocol": "*", + "pg-types": "^2.2.0" + } + }, "node_modules/@types/qs": { "version": "6.14.0", "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz", @@ -10770,6 +10796,104 @@ "devOptional": true, "license": "MIT" }, + "node_modules/pg": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/pg/-/pg-8.18.0.tgz", + "integrity": "sha512-xqrUDL1b9MbkydY/s+VZ6v+xiMUmOUk7SS9d/1kpyQxoJ6U9AO1oIJyUWVZojbfe5Cc/oluutcgFG4L9RDP1iQ==", + "license": "MIT", + "dependencies": { + "pg-connection-string": "^2.11.0", + "pg-pool": "^3.11.0", + "pg-protocol": "^1.11.0", + "pg-types": "2.2.0", + "pgpass": "1.0.5" + }, + "engines": { + "node": ">= 16.0.0" + }, + "optionalDependencies": { + "pg-cloudflare": "^1.3.0" + }, + "peerDependencies": { + "pg-native": ">=3.0.1" + }, + "peerDependenciesMeta": { + "pg-native": { + "optional": true + } + } + }, + "node_modules/pg-cloudflare": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.3.0.tgz", + "integrity": "sha512-6lswVVSztmHiRtD6I8hw4qP/nDm1EJbKMRhf3HCYaqud7frGysPv7FYJ5noZQdhQtN2xJnimfMtvQq21pdbzyQ==", + "license": "MIT", + "optional": true + }, + "node_modules/pg-connection-string": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.11.0.tgz", + "integrity": "sha512-kecgoJwhOpxYU21rZjULrmrBJ698U2RxXofKVzOn5UDj61BPj/qMb7diYUR1nLScCDbrztQFl1TaQZT0t1EtzQ==", + "license": "MIT" + }, + "node_modules/pg-int8": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz", + "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==", + "license": "ISC", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/pg-pool": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.11.0.tgz", + "integrity": "sha512-MJYfvHwtGp870aeusDh+hg9apvOe2zmpZJpyt+BMtzUWlVqbhFmMK6bOBXLBUPd7iRtIF9fZplDc7KrPN3PN7w==", + "license": "MIT", + "peerDependencies": { + "pg": ">=8.0" + } + }, + "node_modules/pg-protocol": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.11.0.tgz", + "integrity": "sha512-pfsxk2M9M3BuGgDOfuy37VNRRX3jmKgMjcvAcWqNDpZSf4cUmv8HSOl5ViRQFsfARFn0KuUQTgLxVMbNq5NW3g==", + "license": "MIT" + }, + "node_modules/pg-types": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz", + "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==", + "license": "MIT", + "dependencies": { + "pg-int8": "1.0.1", + "postgres-array": "~2.0.0", + "postgres-bytea": "~1.0.0", + "postgres-date": "~1.0.4", + "postgres-interval": "^1.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/pg-types/node_modules/postgres-array": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", + "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/pgpass": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz", + "integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==", + "license": "MIT", + "dependencies": { + "split2": "^4.1.0" + } + }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -10905,6 +11029,45 @@ "url": "https://github.com/sponsors/porsager" } }, + "node_modules/postgres-array": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-3.0.4.tgz", + "integrity": "sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ==", + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/postgres-bytea": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.1.tgz", + "integrity": "sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postgres-date": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", + "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postgres-interval": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", + "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", + "license": "MIT", + "dependencies": { + "xtend": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -11862,6 +12025,15 @@ "node": ">=0.10.0" } }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "license": "ISC", + "engines": { + "node": ">= 10.x" + } + }, "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", diff --git a/package.json b/package.json index 8c930f4..e2363be 100644 --- a/package.json +++ b/package.json @@ -20,9 +20,16 @@ "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", "test:e2e": "jest --config ./test/jest-e2e.json", "test:e2e:ci": "cross-env NODE_ENV=test E2E_RESET_DB=1 jest --config ./test/jest-e2e.json --runInBand --verbose", - "prisma:generate": "prisma generate", "db:migrate": "prisma migrate dev --name init", - "db:reset": "prisma migrate reset --force" + "db:reset": "prisma migrate reset --force", + "prisma:generate": "npm run prisma:generate:mariadb && npm run prisma:generate:postgres && npm run prisma:generate:legacy", + "prisma:generate:mariadb": "prisma generate --schema=./prisma/mariadb/schema.prisma", + "prisma:generate:postgres": "prisma generate --schema=./prisma/postgres/schema.prisma", + "prisma:generate:legacy": "prisma generate --schema=./prisma/prisma-legacy/schema.prisma", + "prisma:migrate:postgres": "prisma migrate dev --schema=./prisma/postgres/schema.prisma", + "prisma:migrate:mariadb": "prisma migrate dev --schema=./prisma/mariadb/schema.prisma", + "prisma:studio:postgres": "prisma studio --schema=./prisma/postgres/schema.prisma", + "prisma:studio:mariadb": "prisma studio --schema=./prisma/mariadb/schema.prisma" }, "dependencies": { "@nestjs/axios": "^4.0.1", @@ -35,6 +42,7 @@ "@nestjs/schedule": "^6.0.0", "@nestjs/swagger": "^11.2.0", "@prisma/adapter-mariadb": "^7.3.0", + "@prisma/adapter-pg": "^7.3.0", "@prisma/client": "^7.3.0", "@quixo3/prisma-session-store": "^3.1.13", "axios": "^1.13.2", @@ -48,6 +56,7 @@ "passport": "^0.7.0", "passport-jwt": "^4.0.1", "passport-openidconnect": "^0.1.2", + "pg": "^8.18.0", "reflect-metadata": "^0.2.2", "rxjs": "^7.8.1", "sharp": "^0.34.3" @@ -67,6 +76,7 @@ "@types/node": "^22.17.2", "@types/passport-jwt": "^4.0.1", "@types/passport-openidconnect": "^0.1.3", + "@types/pg": "^8.16.0", "@types/supertest": "^6.0.2", "dotenv": "^17.2.3", "eslint": "^9.18.0", @@ -103,4 +113,4 @@ "coverageDirectory": "../coverage", "testEnvironment": "node" } -} +} \ No newline at end of file diff --git a/prisma.config.legacy.ts b/prisma.config.legacy.ts new file mode 100644 index 0000000..df3c183 --- /dev/null +++ b/prisma.config.legacy.ts @@ -0,0 +1,20 @@ +import { PrismaPg } from "@prisma/adapter-pg"; +import 'dotenv/config' +import { Pool } from "pg"; +import { defineConfig } from 'prisma/config' + +export default defineConfig({ + schema: "prisma/plegacy/", + migrations: { + path: "prisma/legacy/migrations", + }, + datasource: { + url: process.env["DATABASE_URL_LEGACY"], + }, +}); + +const poolLegacy = new Pool({ + connectionString: process.env["DATABASE_URL_LEGACY"] +}); + +export const adapterLegacy = new PrismaPg(poolLegacy); \ No newline at end of file diff --git a/prisma.config.ts b/prisma.config.mariadb.ts similarity index 56% rename from prisma.config.ts rename to prisma.config.mariadb.ts index b0ee8db..5dd9add 100644 --- a/prisma.config.ts +++ b/prisma.config.mariadb.ts @@ -1,22 +1,21 @@ - import { PrismaMariaDb } from "@prisma/adapter-mariadb"; -import 'dotenv/config' -import { defineConfig } from 'prisma/config' +import 'dotenv/config'; +import { defineConfig } from 'prisma/config'; export default defineConfig({ - schema: "prisma/", + schema: "prisma/mariadb", migrations: { - path: "prisma/postgres/migrations", + path: "prisma/mariadb/migrations", }, datasource: { - url: process.env["DATABASE_URL"], + url: process.env["DATABASE_URL_MARIADB"], }, }); -export const adapter = new PrismaMariaDb({ +export const adapterMariaDb = new PrismaMariaDb({ host: process.env.DATABASE_HOST, user: process.env.DATABASE_USER, password: process.env.DATABASE_PASSWORD, database: process.env.DATABASE_NAME, connectionLimit: 5, -}); \ No newline at end of file +}); diff --git a/prisma.config.postgres.ts b/prisma.config.postgres.ts new file mode 100644 index 0000000..661efe3 --- /dev/null +++ b/prisma.config.postgres.ts @@ -0,0 +1,20 @@ +import { PrismaPg } from "@prisma/adapter-pg"; +import 'dotenv/config' +import { Pool } from "pg"; +import { defineConfig } from 'prisma/config' + +export default defineConfig({ + schema: "prisma/postgres/", + migrations: { + path: "prisma/postgres/migrations", + }, + datasource: { + url: process.env["DATABASE_URL_STAGING"], + }, +}); + +const poolPostgres = new Pool({ + connectionString: process.env["DATABASE_URL_STAGING"], +}); + +export const adapterPostgres = new PrismaPg(poolPostgres); \ No newline at end of file diff --git a/prisma/generated/legacy/browser.ts b/prisma/generated/legacy/browser.ts new file mode 100644 index 0000000..bcc4c76 --- /dev/null +++ b/prisma/generated/legacy/browser.ts @@ -0,0 +1,99 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file should be your main import to use Prisma-related types and utilities in a browser. + * Use it to get access to models, enums, and input types. + * + * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only. + * See `client.ts` for the standard, server-side entry point. + * + * ๐ŸŸข You can import this file directly. + */ + +import * as Prisma from './internal/prismaNamespaceBrowser' +export { Prisma } +export * as $Enums from './enums' +export * from './enums'; +/** + * Model codeDesjardins + * + */ +export type codeDesjardins = Prisma.codeDesjardinsModel +/** + * Model customers + * + */ +export type customers = Prisma.customersModel +/** + * Model dealers + * + */ +export type dealers = Prisma.dealersModel +/** + * Model employee_shift_template + * + */ +export type employee_shift_template = Prisma.employee_shift_templateModel +/** + * Model employees + * + */ +export type employees = Prisma.employeesModel +/** + * Model expenses + * + */ +export type expenses = Prisma.expensesModel +/** + * Model hours_bank + * + */ +export type hours_bank = Prisma.hours_bankModel +/** + * Model mileage_bank + * + */ +export type mileage_bank = Prisma.mileage_bankModel +/** + * Model shifts + * + */ +export type shifts = Prisma.shiftsModel +/** + * Model shifts_of_template + * + */ +export type shifts_of_template = Prisma.shifts_of_templateModel +/** + * Model sick_leave + * + */ +export type sick_leave = Prisma.sick_leaveModel +/** + * Model time_sheet_periods + * + */ +export type time_sheet_periods = Prisma.time_sheet_periodsModel +/** + * Model time_sheet_template + * + */ +export type time_sheet_template = Prisma.time_sheet_templateModel +/** + * Model time_sheets + * + */ +export type time_sheets = Prisma.time_sheetsModel +/** + * Model users + * + */ +export type users = Prisma.usersModel +/** + * Model vacation_leave + * + */ +export type vacation_leave = Prisma.vacation_leaveModel diff --git a/prisma/generated/legacy/client.ts b/prisma/generated/legacy/client.ts new file mode 100644 index 0000000..fc5d019 --- /dev/null +++ b/prisma/generated/legacy/client.ts @@ -0,0 +1,119 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types. + * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead. + * + * ๐ŸŸข You can import this file directly. + */ + +import * as process from 'node:process' +import * as path from 'node:path' + +import * as runtime from "@prisma/client/runtime/client" +import * as $Enums from "./enums" +import * as $Class from "./internal/class" +import * as Prisma from "./internal/prismaNamespace" + +export * as $Enums from './enums' +export * from "./enums" +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ +export const PrismaClient = $Class.getPrismaClientClass() +export type PrismaClient = $Class.PrismaClient +export { Prisma } + +/** + * Model codeDesjardins + * + */ +export type codeDesjardins = Prisma.codeDesjardinsModel +/** + * Model customers + * + */ +export type customers = Prisma.customersModel +/** + * Model dealers + * + */ +export type dealers = Prisma.dealersModel +/** + * Model employee_shift_template + * + */ +export type employee_shift_template = Prisma.employee_shift_templateModel +/** + * Model employees + * + */ +export type employees = Prisma.employeesModel +/** + * Model expenses + * + */ +export type expenses = Prisma.expensesModel +/** + * Model hours_bank + * + */ +export type hours_bank = Prisma.hours_bankModel +/** + * Model mileage_bank + * + */ +export type mileage_bank = Prisma.mileage_bankModel +/** + * Model shifts + * + */ +export type shifts = Prisma.shiftsModel +/** + * Model shifts_of_template + * + */ +export type shifts_of_template = Prisma.shifts_of_templateModel +/** + * Model sick_leave + * + */ +export type sick_leave = Prisma.sick_leaveModel +/** + * Model time_sheet_periods + * + */ +export type time_sheet_periods = Prisma.time_sheet_periodsModel +/** + * Model time_sheet_template + * + */ +export type time_sheet_template = Prisma.time_sheet_templateModel +/** + * Model time_sheets + * + */ +export type time_sheets = Prisma.time_sheetsModel +/** + * Model users + * + */ +export type users = Prisma.usersModel +/** + * Model vacation_leave + * + */ +export type vacation_leave = Prisma.vacation_leaveModel diff --git a/prisma/generated/legacy/commonInputTypes.ts b/prisma/generated/legacy/commonInputTypes.ts new file mode 100644 index 0000000..0b53d31 --- /dev/null +++ b/prisma/generated/legacy/commonInputTypes.ts @@ -0,0 +1,516 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports various common sort, input & filter types that are not directly linked to a particular model. + * + * ๐ŸŸข You can import this file directly. + */ + +import type * as runtime from "@prisma/client/runtime/client" +import * as $Enums from "./enums" +import type * as Prisma from "./internal/prismaNamespace" + + +export type StringFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringFilter<$PrismaModel> | string +} + +export type StringWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type UuidFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedUuidFilter<$PrismaModel> | string +} + +export type StringNullableFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + +export type BigIntNullableFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> | null + in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> | null + notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> | null + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null +} + +export type SortOrderInput = { + sort: Prisma.SortOrder + nulls?: Prisma.NullsOrder +} + +export type UuidWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedUuidWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedStringNullableFilter<$PrismaModel> + _max?: Prisma.NestedStringNullableFilter<$PrismaModel> +} + +export type BigIntNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> | null + in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> | null + notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> | null + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _sum?: Prisma.NestedBigIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedBigIntNullableFilter<$PrismaModel> + _max?: Prisma.NestedBigIntNullableFilter<$PrismaModel> +} + +export type BigIntFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> + notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntFilter<$PrismaModel> | bigint | number +} + +export type BigIntWithAggregatesFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> + notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedBigIntFilter<$PrismaModel> + _min?: Prisma.NestedBigIntFilter<$PrismaModel> + _max?: Prisma.NestedBigIntFilter<$PrismaModel> +} + +export type IntNullableFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null +} + +export type BoolNullableFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null +} + +export type FloatNullableFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | 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 IntNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.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 BoolNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedBoolNullableFilter<$PrismaModel> + _max?: Prisma.NestedBoolNullableFilter<$PrismaModel> +} + +export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _sum?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _min?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _max?: Prisma.NestedFloatNullableFilter<$PrismaModel> +} + +export type DateTimeNullableFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null +} + +export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> +} + +export type NestedStringFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringFilter<$PrismaModel> | string +} + +export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type NestedIntFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntFilter<$PrismaModel> | number +} + +export type NestedUuidFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedUuidFilter<$PrismaModel> | string +} + +export type NestedStringNullableFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + +export type NestedBigIntNullableFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> | null + in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> | null + notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> | null + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null +} + +export type NestedUuidWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedUuidWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedStringNullableFilter<$PrismaModel> + _max?: Prisma.NestedStringNullableFilter<$PrismaModel> +} + +export type NestedIntNullableFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null +} + +export type NestedBigIntNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> | null + in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> | null + notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> | null + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _sum?: Prisma.NestedBigIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedBigIntNullableFilter<$PrismaModel> + _max?: Prisma.NestedBigIntNullableFilter<$PrismaModel> +} + +export type NestedFloatNullableFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | 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 NestedBigIntFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> + notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntFilter<$PrismaModel> | bigint | number +} + +export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> + notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedBigIntFilter<$PrismaModel> + _min?: Prisma.NestedBigIntFilter<$PrismaModel> + _max?: Prisma.NestedBigIntFilter<$PrismaModel> +} + +export type NestedFloatFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatFilter<$PrismaModel> | number +} + +export type NestedBoolNullableFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null +} + +export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.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 NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedBoolNullableFilter<$PrismaModel> + _max?: Prisma.NestedBoolNullableFilter<$PrismaModel> +} + +export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _sum?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _min?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _max?: Prisma.NestedFloatNullableFilter<$PrismaModel> +} + +export type NestedDateTimeNullableFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null +} + +export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> +} + + diff --git a/prisma/generated/legacy/enums.ts b/prisma/generated/legacy/enums.ts new file mode 100644 index 0000000..043572d --- /dev/null +++ b/prisma/generated/legacy/enums.ts @@ -0,0 +1,15 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* +* This file exports all enum related types from the schema. +* +* ๐ŸŸข You can import this file directly. +*/ + + + +// This file is empty because there are no enums in the schema. +export {} diff --git a/prisma/generated/legacy/internal/class.ts b/prisma/generated/legacy/internal/class.ts new file mode 100644 index 0000000..450aa35 --- /dev/null +++ b/prisma/generated/legacy/internal/class.ts @@ -0,0 +1,342 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * ๐Ÿ›‘ Under no circumstances should you import this file directly! ๐Ÿ›‘ + * + * Please import the `PrismaClient` class from the `client.ts` file instead. + */ + +import * as runtime from "@prisma/client/runtime/client" +import type * as Prisma from "./prismaNamespace" + + +const config: runtime.GetPrismaClientConfig = { + "previewFeatures": [], + "clientVersion": "7.3.0", + "engineVersion": "9d6ad21cbbceab97458517b147a6a09ff43aa735", + "activeProvider": "postgresql", + "inlineSchema": "generator client {\n provider = \"prisma-client\"\n output = \"../generated/legacy\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\nmodel codeDesjardins {\n id String @id @map(\"_id\") @db.VarChar(50)\n code String @db.VarChar(50)\n label String @db.VarChar(50)\n description String @db.VarChar(250)\n}\n\nmodel customers {\n id String @id @map(\"_id\") @db.Uuid\n user_id String? @db.VarChar(50)\n email String? @db.VarChar(50)\n first_name String? @db.VarChar(50)\n last_name String? @db.VarChar(50)\n phone_number String? @db.VarChar(50)\n address String? @db.VarChar(255)\n created_at BigInt?\n updated_at BigInt?\n created_by String? @db.VarChar(50)\n}\n\nmodel dealers {\n id String @id @map(\"_id\") @db.Uuid\n user_id String? @db.VarChar(50)\n email String? @db.VarChar(50)\n first_name String? @db.VarChar(50)\n last_name String? @db.VarChar(50)\n phone_number String? @db.VarChar(50)\n created_at BigInt?\n updated_at BigInt?\n created_by String? @db.VarChar(50)\n}\n\nmodel employee_shift_template {\n id String @id @map(\"_id\") @db.Uuid\n employee_id String @db.VarChar\n day_of_the_week String @db.VarChar\n start_time BigInt\n end_time BigInt\n created_at BigInt\n updated_at BigInt\n}\n\nmodel employees {\n id String @id @map(\"_id\") @db.Uuid\n user_id String? @db.VarChar(50)\n employee_number String? @db.VarChar(50)\n email String? @db.VarChar(50)\n first_name String? @db.VarChar(50)\n last_name String? @db.VarChar(50)\n phone_number String? @db.VarChar(50)\n job_title String? @db.VarChar(50)\n company Int?\n supervisor String? @db.VarChar(50)\n is_supervisor Boolean?\n onboarding BigInt?\n offboarding BigInt?\n regular_hours_day Float? @db.Real\n hours_bank_max Int?\n created_at BigInt?\n updated_at BigInt?\n created_by String? @db.VarChar\n}\n\nmodel expenses {\n id String @id @map(\"_id\") @db.Uuid\n time_sheet_id String? @db.VarChar(50)\n date String? @db.VarChar(50)\n code String? @db.VarChar(50)\n value Float? @db.Real\n description String? @db.VarChar\n evidence_id String? @db.VarChar\n status Boolean?\n created_at BigInt?\n updated_at BigInt?\n supervisor_note String? @db.VarChar(255)\n}\n\nmodel hours_bank {\n id String @id @map(\"_id\") @db.Uuid\n employee_id String? @db.VarChar(50)\n hours Float? @db.Real\n created_at BigInt?\n updated_at BigInt?\n}\n\nmodel mileage_bank {\n id String @id @map(\"_id\") @db.Uuid\n employee_id String? @db.VarChar(50)\n mileage Int?\n year Int?\n}\n\nmodel shifts {\n id String @id @map(\"_id\") @db.Uuid\n time_sheet_id String? @db.VarChar(50)\n code String? @db.VarChar(50)\n type String? @db.VarChar(50)\n date DateTime? @db.Date\n start_time BigInt?\n end_time BigInt?\n comment String? @db.VarChar(255)\n status Boolean?\n created_at BigInt?\n updated_at BigInt?\n supervisor_note String? @db.VarChar(255)\n}\n\nmodel shifts_of_template {\n id String @id @map(\"_id\") @db.Uuid\n model_id String @db.Uuid\n day_of_the_week String @db.VarChar(50)\n start_time BigInt\n end_time BigInt\n created_at BigInt\n updated_at BigInt\n}\n\nmodel sick_leave {\n id String @id @map(\"_id\") @db.Uuid\n employee_id String? @db.VarChar(50)\n accumulated Float? @db.Real\n consumed Float? @db.Real\n year Int?\n created_at BigInt?\n updated_at BigInt?\n}\n\nmodel time_sheet_periods {\n id String @id @map(\"_id\") @db.Uuid\n start_date DateTime? @db.Date\n end_date DateTime? @db.Date\n payment_date DateTime? @db.Date\n period_number Int?\n year Int?\n}\n\nmodel time_sheet_template {\n id String @id @map(\"_id\") @db.Uuid\n title String @db.VarChar\n description String? @db.VarChar\n created_at BigInt\n updated_at BigInt\n}\n\nmodel time_sheets {\n id String @id @map(\"_id\") @db.Uuid\n employee_id String? @db.VarChar\n start_date DateTime? @db.Date\n end_date DateTime? @db.Date\n status Boolean?\n banked_hours Float? @db.Real\n consumed_vacation Float? @db.Real\n consumed_sick Float? @db.Real\n period_id String? @db.VarChar(50)\n period_number Int?\n created_at BigInt?\n updated_at BigInt?\n blocked_week Boolean? @default(false)\n}\n\nmodel users {\n id String @id @map(\"_id\") @db.VarChar(50)\n email String @unique @db.VarChar(50)\n password String @db.VarChar(255)\n type String @db.VarChar(50)\n role String @db.VarChar(50)\n is_verified Boolean?\n verification_token String?\n otp_token String?\n refresh_token String?\n created_at BigInt?\n updated_at BigInt?\n created_by String @db.VarChar(255)\n last_login BigInt\n}\n\nmodel vacation_leave {\n id String @id @map(\"_id\") @db.Uuid\n employee_id String? @db.VarChar(50)\n accumulated Float? @db.Real\n consumed Float? @db.Real\n created_at BigInt?\n updated_at BigInt?\n start_year Int?\n end_year Int?\n max_hours_per_year Float? @db.Real\n}\n", + "runtimeDataModel": { + "models": {}, + "enums": {}, + "types": {} + } +} + +config.runtimeDataModel = JSON.parse("{\"models\":{\"codeDesjardins\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"label\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"customers\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"user_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"first_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"last_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"created_by\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"dealers\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"user_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"first_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"last_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"created_by\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"employee_shift_template\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"employee_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"day_of_the_week\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"start_time\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"end_time\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"employees\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"user_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"employee_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"first_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"last_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"job_title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"company\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"supervisor\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_supervisor\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"onboarding\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"offboarding\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"regular_hours_day\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"hours_bank_max\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"created_by\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"expenses\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"time_sheet_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"value\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"evidence_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"supervisor_note\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"hours_bank\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"employee_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"hours\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"mileage_bank\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"employee_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mileage\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"year\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"shifts\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"time_sheet_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"start_time\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"end_time\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"supervisor_note\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"shifts_of_template\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"model_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"day_of_the_week\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"start_time\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"end_time\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"sick_leave\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"employee_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"accumulated\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"consumed\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"year\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"time_sheet_periods\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"start_date\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"end_date\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"payment_date\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"period_number\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"year\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"time_sheet_template\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"time_sheets\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"employee_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"start_date\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"end_date\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"banked_hours\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"consumed_vacation\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"consumed_sick\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"period_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"period_number\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"blocked_week\",\"kind\":\"scalar\",\"type\":\"Boolean\"}],\"dbName\":null},\"users\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"role\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_verified\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"verification_token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"otp_token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"created_by\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"last_login\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"vacation_leave\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"_id\"},{\"name\":\"employee_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"accumulated\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"consumed\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"start_year\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"end_year\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"max_hours_per_year\",\"kind\":\"scalar\",\"type\":\"Float\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}") + +async function decodeBase64AsWasm(wasmBase64: string): Promise { + const { Buffer } = await import('node:buffer') + const wasmArray = Buffer.from(wasmBase64, 'base64') + return new WebAssembly.Module(wasmArray) +} + +config.compilerWasm = { + getRuntime: async () => await import("@prisma/client/runtime/query_compiler_fast_bg.postgresql.js"), + + getQueryCompilerWasmModule: async () => { + const { wasm } = await import("@prisma/client/runtime/query_compiler_fast_bg.postgresql.wasm-base64.js") + return await decodeBase64AsWasm(wasm) + }, + + importName: "./query_compiler_fast_bg.js" +} + + + +export type LogOptions = + 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never + +export interface PrismaClientConstructor { + /** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ + + new < + Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, + LogOpts extends LogOptions = LogOptions, + OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'], + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs + >(options: Prisma.Subset ): PrismaClient +} + +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.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/concepts/components/prisma-client/transactions). + */ + $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise> + + $transaction(fn: (prisma: Omit) => runtime.Types.Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise + + $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, runtime.Types.Utils.Call, { + extArgs: ExtArgs + }>> + + /** + * `prisma.codeDesjardins`: Exposes CRUD operations for the **codeDesjardins** model. + * Example usage: + * ```ts + * // Fetch zero or more CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.findMany() + * ``` + */ + get codeDesjardins(): Prisma.codeDesjardinsDelegate; + + /** + * `prisma.customers`: Exposes CRUD operations for the **customers** model. + * Example usage: + * ```ts + * // Fetch zero or more Customers + * const customers = await prisma.customers.findMany() + * ``` + */ + get customers(): Prisma.customersDelegate; + + /** + * `prisma.dealers`: Exposes CRUD operations for the **dealers** model. + * Example usage: + * ```ts + * // Fetch zero or more Dealers + * const dealers = await prisma.dealers.findMany() + * ``` + */ + get dealers(): Prisma.dealersDelegate; + + /** + * `prisma.employee_shift_template`: Exposes CRUD operations for the **employee_shift_template** model. + * Example usage: + * ```ts + * // Fetch zero or more Employee_shift_templates + * const employee_shift_templates = await prisma.employee_shift_template.findMany() + * ``` + */ + get employee_shift_template(): Prisma.employee_shift_templateDelegate; + + /** + * `prisma.employees`: Exposes CRUD operations for the **employees** model. + * Example usage: + * ```ts + * // Fetch zero or more Employees + * const employees = await prisma.employees.findMany() + * ``` + */ + get employees(): Prisma.employeesDelegate; + + /** + * `prisma.expenses`: Exposes CRUD operations for the **expenses** model. + * Example usage: + * ```ts + * // Fetch zero or more Expenses + * const expenses = await prisma.expenses.findMany() + * ``` + */ + get expenses(): Prisma.expensesDelegate; + + /** + * `prisma.hours_bank`: Exposes CRUD operations for the **hours_bank** model. + * Example usage: + * ```ts + * // Fetch zero or more Hours_banks + * const hours_banks = await prisma.hours_bank.findMany() + * ``` + */ + get hours_bank(): Prisma.hours_bankDelegate; + + /** + * `prisma.mileage_bank`: Exposes CRUD operations for the **mileage_bank** model. + * Example usage: + * ```ts + * // Fetch zero or more Mileage_banks + * const mileage_banks = await prisma.mileage_bank.findMany() + * ``` + */ + get mileage_bank(): Prisma.mileage_bankDelegate; + + /** + * `prisma.shifts`: Exposes CRUD operations for the **shifts** model. + * Example usage: + * ```ts + * // Fetch zero or more Shifts + * const shifts = await prisma.shifts.findMany() + * ``` + */ + get shifts(): Prisma.shiftsDelegate; + + /** + * `prisma.shifts_of_template`: Exposes CRUD operations for the **shifts_of_template** model. + * Example usage: + * ```ts + * // Fetch zero or more Shifts_of_templates + * const shifts_of_templates = await prisma.shifts_of_template.findMany() + * ``` + */ + get shifts_of_template(): Prisma.shifts_of_templateDelegate; + + /** + * `prisma.sick_leave`: Exposes CRUD operations for the **sick_leave** model. + * Example usage: + * ```ts + * // Fetch zero or more Sick_leaves + * const sick_leaves = await prisma.sick_leave.findMany() + * ``` + */ + get sick_leave(): Prisma.sick_leaveDelegate; + + /** + * `prisma.time_sheet_periods`: Exposes CRUD operations for the **time_sheet_periods** model. + * Example usage: + * ```ts + * // Fetch zero or more Time_sheet_periods + * const time_sheet_periods = await prisma.time_sheet_periods.findMany() + * ``` + */ + get time_sheet_periods(): Prisma.time_sheet_periodsDelegate; + + /** + * `prisma.time_sheet_template`: Exposes CRUD operations for the **time_sheet_template** model. + * Example usage: + * ```ts + * // Fetch zero or more Time_sheet_templates + * const time_sheet_templates = await prisma.time_sheet_template.findMany() + * ``` + */ + get time_sheet_template(): Prisma.time_sheet_templateDelegate; + + /** + * `prisma.time_sheets`: Exposes CRUD operations for the **time_sheets** model. + * Example usage: + * ```ts + * // Fetch zero or more Time_sheets + * const time_sheets = await prisma.time_sheets.findMany() + * ``` + */ + get time_sheets(): Prisma.time_sheetsDelegate; + + /** + * `prisma.users`: Exposes CRUD operations for the **users** model. + * Example usage: + * ```ts + * // Fetch zero or more Users + * const users = await prisma.users.findMany() + * ``` + */ + get users(): Prisma.usersDelegate; + + /** + * `prisma.vacation_leave`: Exposes CRUD operations for the **vacation_leave** model. + * Example usage: + * ```ts + * // Fetch zero or more Vacation_leaves + * const vacation_leaves = await prisma.vacation_leave.findMany() + * ``` + */ + get vacation_leave(): Prisma.vacation_leaveDelegate; +} + +export function getPrismaClientClass(): PrismaClientConstructor { + return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor +} diff --git a/prisma/generated/legacy/internal/prismaNamespace.ts b/prisma/generated/legacy/internal/prismaNamespace.ts new file mode 100644 index 0000000..b40839e --- /dev/null +++ b/prisma/generated/legacy/internal/prismaNamespace.ts @@ -0,0 +1,2160 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * ๐Ÿ›‘ Under no circumstances should you import this file directly! ๐Ÿ›‘ + * + * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * model files in the `model` directory! + */ + +import * as runtime from "@prisma/client/runtime/client" +import type * as Prisma from "../models" +import { type PrismaClient } from "./class" + +export type * from '../models' + +export type DMMF = typeof runtime.DMMF + +export type PrismaPromise = runtime.Types.Public.PrismaPromise + +/** + * Prisma Errors + */ + +export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError +export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError + +export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError +export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError + +export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError +export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError + +export const PrismaClientInitializationError = runtime.PrismaClientInitializationError +export type PrismaClientInitializationError = runtime.PrismaClientInitializationError + +export const PrismaClientValidationError = runtime.PrismaClientValidationError +export type PrismaClientValidationError = runtime.PrismaClientValidationError + +/** + * Re-export of sql-template-tag + */ +export const sql = runtime.sqltag +export const empty = runtime.empty +export const join = runtime.join +export const raw = runtime.raw +export const Sql = runtime.Sql +export type Sql = runtime.Sql + + + +/** + * Decimal.js + */ +export const Decimal = runtime.Decimal +export type Decimal = runtime.Decimal + +export type DecimalJsLike = runtime.DecimalJsLike + +/** +* Extensions +*/ +export type Extension = runtime.Types.Extensions.UserArgs +export const getExtensionContext = runtime.Extensions.getExtensionContext +export type Args = runtime.Types.Public.Args +export type Payload = runtime.Types.Public.Payload +export type Result = runtime.Types.Public.Result +export type Exact = runtime.Types.Public.Exact + +export type PrismaVersion = { + client: string + engine: string +} + +/** + * Prisma Client JS version: 7.3.0 + * Query Engine version: 9d6ad21cbbceab97458517b147a6a09ff43aa735 + */ +export const prismaVersion: PrismaVersion = { + client: "7.3.0", + engine: "9d6ad21cbbceab97458517b147a6a09ff43aa735" +} + +/** + * 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 = { + codeDesjardins: 'codeDesjardins', + customers: 'customers', + dealers: 'dealers', + employee_shift_template: 'employee_shift_template', + employees: 'employees', + expenses: 'expenses', + hours_bank: 'hours_bank', + mileage_bank: 'mileage_bank', + shifts: 'shifts', + shifts_of_template: 'shifts_of_template', + sick_leave: 'sick_leave', + time_sheet_periods: 'time_sheet_periods', + time_sheet_template: 'time_sheet_template', + time_sheets: 'time_sheets', + users: 'users', + vacation_leave: 'vacation_leave' +} 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: "codeDesjardins" | "customers" | "dealers" | "employee_shift_template" | "employees" | "expenses" | "hours_bank" | "mileage_bank" | "shifts" | "shifts_of_template" | "sick_leave" | "time_sheet_periods" | "time_sheet_template" | "time_sheets" | "users" | "vacation_leave" + txIsolationLevel: TransactionIsolationLevel + } + model: { + codeDesjardins: { + payload: Prisma.$codeDesjardinsPayload + fields: Prisma.codeDesjardinsFieldRefs + operations: { + findUnique: { + args: Prisma.codeDesjardinsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.codeDesjardinsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.codeDesjardinsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.codeDesjardinsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.codeDesjardinsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.codeDesjardinsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.codeDesjardinsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.codeDesjardinsCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.codeDesjardinsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.codeDesjardinsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.codeDesjardinsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.codeDesjardinsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.codeDesjardinsUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.codeDesjardinsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.CodeDesjardinsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.codeDesjardinsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.codeDesjardinsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + customers: { + payload: Prisma.$customersPayload + fields: Prisma.customersFieldRefs + operations: { + findUnique: { + args: Prisma.customersFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.customersFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.customersFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.customersFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.customersFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.customersCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.customersCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.customersCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.customersDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.customersUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.customersDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.customersUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.customersUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.customersUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.CustomersAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.customersGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.customersCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + dealers: { + payload: Prisma.$dealersPayload + fields: Prisma.dealersFieldRefs + operations: { + findUnique: { + args: Prisma.dealersFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.dealersFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.dealersFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.dealersFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.dealersFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.dealersCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.dealersCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.dealersCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.dealersDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.dealersUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.dealersDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.dealersUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.dealersUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.dealersUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.DealersAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.dealersGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.dealersCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + employee_shift_template: { + payload: Prisma.$employee_shift_templatePayload + fields: Prisma.employee_shift_templateFieldRefs + operations: { + findUnique: { + args: Prisma.employee_shift_templateFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.employee_shift_templateFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.employee_shift_templateFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.employee_shift_templateFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.employee_shift_templateFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.employee_shift_templateCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.employee_shift_templateCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.employee_shift_templateCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.employee_shift_templateDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.employee_shift_templateUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.employee_shift_templateDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.employee_shift_templateUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.employee_shift_templateUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.employee_shift_templateUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Employee_shift_templateAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.employee_shift_templateGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.employee_shift_templateCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + employees: { + payload: Prisma.$employeesPayload + fields: Prisma.employeesFieldRefs + operations: { + findUnique: { + args: Prisma.employeesFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.employeesFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.employeesFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.employeesFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.employeesFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.employeesCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.employeesCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.employeesCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.employeesDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.employeesUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.employeesDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.employeesUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.employeesUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.employeesUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.EmployeesAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.employeesGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.employeesCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + expenses: { + payload: Prisma.$expensesPayload + fields: Prisma.expensesFieldRefs + operations: { + findUnique: { + args: Prisma.expensesFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.expensesFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.expensesFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.expensesFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.expensesFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.expensesCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.expensesCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.expensesCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.expensesDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.expensesUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.expensesDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.expensesUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.expensesUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.expensesUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ExpensesAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.expensesGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.expensesCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + hours_bank: { + payload: Prisma.$hours_bankPayload + fields: Prisma.hours_bankFieldRefs + operations: { + findUnique: { + args: Prisma.hours_bankFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.hours_bankFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.hours_bankFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.hours_bankFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.hours_bankFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.hours_bankCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.hours_bankCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.hours_bankCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.hours_bankDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.hours_bankUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.hours_bankDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.hours_bankUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.hours_bankUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.hours_bankUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Hours_bankAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.hours_bankGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.hours_bankCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + mileage_bank: { + payload: Prisma.$mileage_bankPayload + fields: Prisma.mileage_bankFieldRefs + operations: { + findUnique: { + args: Prisma.mileage_bankFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.mileage_bankFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.mileage_bankFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.mileage_bankFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.mileage_bankFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.mileage_bankCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.mileage_bankCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.mileage_bankCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.mileage_bankDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.mileage_bankUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.mileage_bankDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.mileage_bankUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.mileage_bankUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.mileage_bankUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Mileage_bankAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.mileage_bankGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.mileage_bankCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + shifts: { + payload: Prisma.$shiftsPayload + fields: Prisma.shiftsFieldRefs + operations: { + findUnique: { + args: Prisma.shiftsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.shiftsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.shiftsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.shiftsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.shiftsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.shiftsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.shiftsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.shiftsCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.shiftsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.shiftsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.shiftsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.shiftsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.shiftsUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.shiftsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ShiftsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.shiftsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.shiftsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + shifts_of_template: { + payload: Prisma.$shifts_of_templatePayload + fields: Prisma.shifts_of_templateFieldRefs + operations: { + findUnique: { + args: Prisma.shifts_of_templateFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.shifts_of_templateFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.shifts_of_templateFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.shifts_of_templateFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.shifts_of_templateFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.shifts_of_templateCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.shifts_of_templateCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.shifts_of_templateCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.shifts_of_templateDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.shifts_of_templateUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.shifts_of_templateDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.shifts_of_templateUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.shifts_of_templateUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.shifts_of_templateUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Shifts_of_templateAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.shifts_of_templateGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.shifts_of_templateCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + sick_leave: { + payload: Prisma.$sick_leavePayload + fields: Prisma.sick_leaveFieldRefs + operations: { + findUnique: { + args: Prisma.sick_leaveFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.sick_leaveFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.sick_leaveFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.sick_leaveFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.sick_leaveFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.sick_leaveCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.sick_leaveCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.sick_leaveCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.sick_leaveDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.sick_leaveUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.sick_leaveDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.sick_leaveUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.sick_leaveUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.sick_leaveUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Sick_leaveAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.sick_leaveGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.sick_leaveCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + time_sheet_periods: { + payload: Prisma.$time_sheet_periodsPayload + fields: Prisma.time_sheet_periodsFieldRefs + operations: { + findUnique: { + args: Prisma.time_sheet_periodsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.time_sheet_periodsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.time_sheet_periodsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.time_sheet_periodsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.time_sheet_periodsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.time_sheet_periodsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.time_sheet_periodsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.time_sheet_periodsCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.time_sheet_periodsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.time_sheet_periodsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.time_sheet_periodsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.time_sheet_periodsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.time_sheet_periodsUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.time_sheet_periodsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Time_sheet_periodsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.time_sheet_periodsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.time_sheet_periodsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + time_sheet_template: { + payload: Prisma.$time_sheet_templatePayload + fields: Prisma.time_sheet_templateFieldRefs + operations: { + findUnique: { + args: Prisma.time_sheet_templateFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.time_sheet_templateFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.time_sheet_templateFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.time_sheet_templateFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.time_sheet_templateFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.time_sheet_templateCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.time_sheet_templateCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.time_sheet_templateCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.time_sheet_templateDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.time_sheet_templateUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.time_sheet_templateDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.time_sheet_templateUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.time_sheet_templateUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.time_sheet_templateUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Time_sheet_templateAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.time_sheet_templateGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.time_sheet_templateCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + time_sheets: { + payload: Prisma.$time_sheetsPayload + fields: Prisma.time_sheetsFieldRefs + operations: { + findUnique: { + args: Prisma.time_sheetsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.time_sheetsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.time_sheetsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.time_sheetsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.time_sheetsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.time_sheetsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.time_sheetsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.time_sheetsCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.time_sheetsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.time_sheetsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.time_sheetsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.time_sheetsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.time_sheetsUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.time_sheetsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Time_sheetsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.time_sheetsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.time_sheetsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + users: { + payload: Prisma.$usersPayload + fields: Prisma.usersFieldRefs + operations: { + findUnique: { + args: Prisma.usersFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.usersFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.usersFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.usersFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.usersFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.usersCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.usersCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.usersCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.usersDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.usersUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.usersDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.usersUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.usersUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.usersUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.UsersAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.usersGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.usersCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + vacation_leave: { + payload: Prisma.$vacation_leavePayload + fields: Prisma.vacation_leaveFieldRefs + operations: { + findUnique: { + args: Prisma.vacation_leaveFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.vacation_leaveFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.vacation_leaveFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.vacation_leaveFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.vacation_leaveFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.vacation_leaveCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.vacation_leaveCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.vacation_leaveCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.vacation_leaveDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.vacation_leaveUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.vacation_leaveDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.vacation_leaveUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.vacation_leaveUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.vacation_leaveUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Vacation_leaveAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.vacation_leaveGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.vacation_leaveCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + } +} & { + other: { + payload: any + operations: { + $executeRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]], + result: any + } + $executeRawUnsafe: { + args: [query: string, ...values: any[]], + result: any + } + $queryRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]], + result: any + } + $queryRawUnsafe: { + args: [query: string, ...values: any[]], + result: any + } + } + } +} + +/** + * Enums + */ + +export const TransactionIsolationLevel = runtime.makeStrictEnum({ + ReadUncommitted: 'ReadUncommitted', + ReadCommitted: 'ReadCommitted', + RepeatableRead: 'RepeatableRead', + Serializable: 'Serializable' +} as const) + +export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + + +export const CodeDesjardinsScalarFieldEnum = { + id: 'id', + code: 'code', + label: 'label', + description: 'description' +} as const + +export type CodeDesjardinsScalarFieldEnum = (typeof CodeDesjardinsScalarFieldEnum)[keyof typeof CodeDesjardinsScalarFieldEnum] + + +export const CustomersScalarFieldEnum = { + id: 'id', + user_id: 'user_id', + email: 'email', + first_name: 'first_name', + last_name: 'last_name', + phone_number: 'phone_number', + address: 'address', + created_at: 'created_at', + updated_at: 'updated_at', + created_by: 'created_by' +} as const + +export type CustomersScalarFieldEnum = (typeof CustomersScalarFieldEnum)[keyof typeof CustomersScalarFieldEnum] + + +export const DealersScalarFieldEnum = { + id: 'id', + user_id: 'user_id', + email: 'email', + first_name: 'first_name', + last_name: 'last_name', + phone_number: 'phone_number', + created_at: 'created_at', + updated_at: 'updated_at', + created_by: 'created_by' +} as const + +export type DealersScalarFieldEnum = (typeof DealersScalarFieldEnum)[keyof typeof DealersScalarFieldEnum] + + +export const Employee_shift_templateScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + day_of_the_week: 'day_of_the_week', + start_time: 'start_time', + end_time: 'end_time', + created_at: 'created_at', + updated_at: 'updated_at' +} as const + +export type Employee_shift_templateScalarFieldEnum = (typeof Employee_shift_templateScalarFieldEnum)[keyof typeof Employee_shift_templateScalarFieldEnum] + + +export const EmployeesScalarFieldEnum = { + id: 'id', + user_id: 'user_id', + employee_number: 'employee_number', + email: 'email', + first_name: 'first_name', + last_name: 'last_name', + phone_number: 'phone_number', + job_title: 'job_title', + company: 'company', + supervisor: 'supervisor', + is_supervisor: 'is_supervisor', + onboarding: 'onboarding', + offboarding: 'offboarding', + regular_hours_day: 'regular_hours_day', + hours_bank_max: 'hours_bank_max', + created_at: 'created_at', + updated_at: 'updated_at', + created_by: 'created_by' +} as const + +export type EmployeesScalarFieldEnum = (typeof EmployeesScalarFieldEnum)[keyof typeof EmployeesScalarFieldEnum] + + +export const ExpensesScalarFieldEnum = { + id: 'id', + time_sheet_id: 'time_sheet_id', + date: 'date', + code: 'code', + value: 'value', + description: 'description', + evidence_id: 'evidence_id', + status: 'status', + created_at: 'created_at', + updated_at: 'updated_at', + supervisor_note: 'supervisor_note' +} as const + +export type ExpensesScalarFieldEnum = (typeof ExpensesScalarFieldEnum)[keyof typeof ExpensesScalarFieldEnum] + + +export const Hours_bankScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + hours: 'hours', + created_at: 'created_at', + updated_at: 'updated_at' +} as const + +export type Hours_bankScalarFieldEnum = (typeof Hours_bankScalarFieldEnum)[keyof typeof Hours_bankScalarFieldEnum] + + +export const Mileage_bankScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + mileage: 'mileage', + year: 'year' +} as const + +export type Mileage_bankScalarFieldEnum = (typeof Mileage_bankScalarFieldEnum)[keyof typeof Mileage_bankScalarFieldEnum] + + +export const ShiftsScalarFieldEnum = { + id: 'id', + time_sheet_id: 'time_sheet_id', + code: 'code', + type: 'type', + date: 'date', + start_time: 'start_time', + end_time: 'end_time', + comment: 'comment', + status: 'status', + created_at: 'created_at', + updated_at: 'updated_at', + supervisor_note: 'supervisor_note' +} as const + +export type ShiftsScalarFieldEnum = (typeof ShiftsScalarFieldEnum)[keyof typeof ShiftsScalarFieldEnum] + + +export const Shifts_of_templateScalarFieldEnum = { + id: 'id', + model_id: 'model_id', + day_of_the_week: 'day_of_the_week', + start_time: 'start_time', + end_time: 'end_time', + created_at: 'created_at', + updated_at: 'updated_at' +} as const + +export type Shifts_of_templateScalarFieldEnum = (typeof Shifts_of_templateScalarFieldEnum)[keyof typeof Shifts_of_templateScalarFieldEnum] + + +export const Sick_leaveScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + accumulated: 'accumulated', + consumed: 'consumed', + year: 'year', + created_at: 'created_at', + updated_at: 'updated_at' +} as const + +export type Sick_leaveScalarFieldEnum = (typeof Sick_leaveScalarFieldEnum)[keyof typeof Sick_leaveScalarFieldEnum] + + +export const Time_sheet_periodsScalarFieldEnum = { + id: 'id', + start_date: 'start_date', + end_date: 'end_date', + payment_date: 'payment_date', + period_number: 'period_number', + year: 'year' +} as const + +export type Time_sheet_periodsScalarFieldEnum = (typeof Time_sheet_periodsScalarFieldEnum)[keyof typeof Time_sheet_periodsScalarFieldEnum] + + +export const Time_sheet_templateScalarFieldEnum = { + id: 'id', + title: 'title', + description: 'description', + created_at: 'created_at', + updated_at: 'updated_at' +} as const + +export type Time_sheet_templateScalarFieldEnum = (typeof Time_sheet_templateScalarFieldEnum)[keyof typeof Time_sheet_templateScalarFieldEnum] + + +export const Time_sheetsScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + start_date: 'start_date', + end_date: 'end_date', + status: 'status', + banked_hours: 'banked_hours', + consumed_vacation: 'consumed_vacation', + consumed_sick: 'consumed_sick', + period_id: 'period_id', + period_number: 'period_number', + created_at: 'created_at', + updated_at: 'updated_at', + blocked_week: 'blocked_week' +} as const + +export type Time_sheetsScalarFieldEnum = (typeof Time_sheetsScalarFieldEnum)[keyof typeof Time_sheetsScalarFieldEnum] + + +export const UsersScalarFieldEnum = { + id: 'id', + email: 'email', + password: 'password', + type: 'type', + role: 'role', + is_verified: 'is_verified', + verification_token: 'verification_token', + otp_token: 'otp_token', + refresh_token: 'refresh_token', + created_at: 'created_at', + updated_at: 'updated_at', + created_by: 'created_by', + last_login: 'last_login' +} as const + +export type UsersScalarFieldEnum = (typeof UsersScalarFieldEnum)[keyof typeof UsersScalarFieldEnum] + + +export const Vacation_leaveScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + accumulated: 'accumulated', + consumed: 'consumed', + created_at: 'created_at', + updated_at: 'updated_at', + start_year: 'start_year', + end_year: 'end_year', + max_hours_per_year: 'max_hours_per_year' +} as const + +export type Vacation_leaveScalarFieldEnum = (typeof Vacation_leaveScalarFieldEnum)[keyof typeof Vacation_leaveScalarFieldEnum] + + +export const SortOrder = { + asc: 'asc', + desc: 'desc' +} as const + +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + + +export const QueryMode = { + default: 'default', + insensitive: 'insensitive' +} as const + +export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] + + +export const NullsOrder = { + first: 'first', + last: 'last' +} as const + +export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] + + + +/** + * Field references + */ + + +/** + * Reference to a field of type 'String' + */ +export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> + + + +/** + * Reference to a field of type 'String[]' + */ +export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> + + + +/** + * Reference to a field of type 'BigInt' + */ +export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'> + + + +/** + * Reference to a field of type 'BigInt[]' + */ +export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'> + + + +/** + * Reference to a field of type 'Int' + */ +export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> + + + +/** + * Reference to a field of type 'Int[]' + */ +export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> + + + +/** + * Reference to a field of type 'Boolean' + */ +export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> + + + +/** + * Reference to a field of type 'Float' + */ +export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> + + + +/** + * Reference to a field of type 'Float[]' + */ +export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> + + + +/** + * Reference to a field of type 'DateTime' + */ +export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> + + + +/** + * Reference to a field of type 'DateTime[]' + */ +export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> + + +/** + * 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 = { + codeDesjardins?: Prisma.codeDesjardinsOmit + customers?: Prisma.customersOmit + dealers?: Prisma.dealersOmit + employee_shift_template?: Prisma.employee_shift_templateOmit + employees?: Prisma.employeesOmit + expenses?: Prisma.expensesOmit + hours_bank?: Prisma.hours_bankOmit + mileage_bank?: Prisma.mileage_bankOmit + shifts?: Prisma.shiftsOmit + shifts_of_template?: Prisma.shifts_of_templateOmit + sick_leave?: Prisma.sick_leaveOmit + time_sheet_periods?: Prisma.time_sheet_periodsOmit + time_sheet_template?: Prisma.time_sheet_templateOmit + time_sheets?: Prisma.time_sheetsOmit + users?: Prisma.usersOmit + vacation_leave?: Prisma.vacation_leaveOmit +} + +/* 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/prisma/generated/legacy/internal/prismaNamespaceBrowser.ts b/prisma/generated/legacy/internal/prismaNamespaceBrowser.ts new file mode 100644 index 0000000..80ff8e5 --- /dev/null +++ b/prisma/generated/legacy/internal/prismaNamespaceBrowser.ts @@ -0,0 +1,346 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * ๐Ÿ›‘ Under no circumstances should you import this file directly! ๐Ÿ›‘ + * + * All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * model files in the `model` directory! + */ + +import * as runtime from "@prisma/client/runtime/index-browser" + +export type * from '../models' +export type * from './prismaNamespace' + +export const Decimal = runtime.Decimal + + +export const NullTypes = { + DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), + JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), + AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), +} +/** + * Helper for filtering JSON entries that have `null` on the database (empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const DbNull = runtime.DbNull + +/** + * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const JsonNull = runtime.JsonNull + +/** + * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const AnyNull = runtime.AnyNull + + +export const ModelName = { + codeDesjardins: 'codeDesjardins', + customers: 'customers', + dealers: 'dealers', + employee_shift_template: 'employee_shift_template', + employees: 'employees', + expenses: 'expenses', + hours_bank: 'hours_bank', + mileage_bank: 'mileage_bank', + shifts: 'shifts', + shifts_of_template: 'shifts_of_template', + sick_leave: 'sick_leave', + time_sheet_periods: 'time_sheet_periods', + time_sheet_template: 'time_sheet_template', + time_sheets: 'time_sheets', + users: 'users', + vacation_leave: 'vacation_leave' +} as const + +export type ModelName = (typeof ModelName)[keyof typeof ModelName] + +/* + * Enums + */ + +export const TransactionIsolationLevel = runtime.makeStrictEnum({ + ReadUncommitted: 'ReadUncommitted', + ReadCommitted: 'ReadCommitted', + RepeatableRead: 'RepeatableRead', + Serializable: 'Serializable' +} as const) + +export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + + +export const CodeDesjardinsScalarFieldEnum = { + id: 'id', + code: 'code', + label: 'label', + description: 'description' +} as const + +export type CodeDesjardinsScalarFieldEnum = (typeof CodeDesjardinsScalarFieldEnum)[keyof typeof CodeDesjardinsScalarFieldEnum] + + +export const CustomersScalarFieldEnum = { + id: 'id', + user_id: 'user_id', + email: 'email', + first_name: 'first_name', + last_name: 'last_name', + phone_number: 'phone_number', + address: 'address', + created_at: 'created_at', + updated_at: 'updated_at', + created_by: 'created_by' +} as const + +export type CustomersScalarFieldEnum = (typeof CustomersScalarFieldEnum)[keyof typeof CustomersScalarFieldEnum] + + +export const DealersScalarFieldEnum = { + id: 'id', + user_id: 'user_id', + email: 'email', + first_name: 'first_name', + last_name: 'last_name', + phone_number: 'phone_number', + created_at: 'created_at', + updated_at: 'updated_at', + created_by: 'created_by' +} as const + +export type DealersScalarFieldEnum = (typeof DealersScalarFieldEnum)[keyof typeof DealersScalarFieldEnum] + + +export const Employee_shift_templateScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + day_of_the_week: 'day_of_the_week', + start_time: 'start_time', + end_time: 'end_time', + created_at: 'created_at', + updated_at: 'updated_at' +} as const + +export type Employee_shift_templateScalarFieldEnum = (typeof Employee_shift_templateScalarFieldEnum)[keyof typeof Employee_shift_templateScalarFieldEnum] + + +export const EmployeesScalarFieldEnum = { + id: 'id', + user_id: 'user_id', + employee_number: 'employee_number', + email: 'email', + first_name: 'first_name', + last_name: 'last_name', + phone_number: 'phone_number', + job_title: 'job_title', + company: 'company', + supervisor: 'supervisor', + is_supervisor: 'is_supervisor', + onboarding: 'onboarding', + offboarding: 'offboarding', + regular_hours_day: 'regular_hours_day', + hours_bank_max: 'hours_bank_max', + created_at: 'created_at', + updated_at: 'updated_at', + created_by: 'created_by' +} as const + +export type EmployeesScalarFieldEnum = (typeof EmployeesScalarFieldEnum)[keyof typeof EmployeesScalarFieldEnum] + + +export const ExpensesScalarFieldEnum = { + id: 'id', + time_sheet_id: 'time_sheet_id', + date: 'date', + code: 'code', + value: 'value', + description: 'description', + evidence_id: 'evidence_id', + status: 'status', + created_at: 'created_at', + updated_at: 'updated_at', + supervisor_note: 'supervisor_note' +} as const + +export type ExpensesScalarFieldEnum = (typeof ExpensesScalarFieldEnum)[keyof typeof ExpensesScalarFieldEnum] + + +export const Hours_bankScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + hours: 'hours', + created_at: 'created_at', + updated_at: 'updated_at' +} as const + +export type Hours_bankScalarFieldEnum = (typeof Hours_bankScalarFieldEnum)[keyof typeof Hours_bankScalarFieldEnum] + + +export const Mileage_bankScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + mileage: 'mileage', + year: 'year' +} as const + +export type Mileage_bankScalarFieldEnum = (typeof Mileage_bankScalarFieldEnum)[keyof typeof Mileage_bankScalarFieldEnum] + + +export const ShiftsScalarFieldEnum = { + id: 'id', + time_sheet_id: 'time_sheet_id', + code: 'code', + type: 'type', + date: 'date', + start_time: 'start_time', + end_time: 'end_time', + comment: 'comment', + status: 'status', + created_at: 'created_at', + updated_at: 'updated_at', + supervisor_note: 'supervisor_note' +} as const + +export type ShiftsScalarFieldEnum = (typeof ShiftsScalarFieldEnum)[keyof typeof ShiftsScalarFieldEnum] + + +export const Shifts_of_templateScalarFieldEnum = { + id: 'id', + model_id: 'model_id', + day_of_the_week: 'day_of_the_week', + start_time: 'start_time', + end_time: 'end_time', + created_at: 'created_at', + updated_at: 'updated_at' +} as const + +export type Shifts_of_templateScalarFieldEnum = (typeof Shifts_of_templateScalarFieldEnum)[keyof typeof Shifts_of_templateScalarFieldEnum] + + +export const Sick_leaveScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + accumulated: 'accumulated', + consumed: 'consumed', + year: 'year', + created_at: 'created_at', + updated_at: 'updated_at' +} as const + +export type Sick_leaveScalarFieldEnum = (typeof Sick_leaveScalarFieldEnum)[keyof typeof Sick_leaveScalarFieldEnum] + + +export const Time_sheet_periodsScalarFieldEnum = { + id: 'id', + start_date: 'start_date', + end_date: 'end_date', + payment_date: 'payment_date', + period_number: 'period_number', + year: 'year' +} as const + +export type Time_sheet_periodsScalarFieldEnum = (typeof Time_sheet_periodsScalarFieldEnum)[keyof typeof Time_sheet_periodsScalarFieldEnum] + + +export const Time_sheet_templateScalarFieldEnum = { + id: 'id', + title: 'title', + description: 'description', + created_at: 'created_at', + updated_at: 'updated_at' +} as const + +export type Time_sheet_templateScalarFieldEnum = (typeof Time_sheet_templateScalarFieldEnum)[keyof typeof Time_sheet_templateScalarFieldEnum] + + +export const Time_sheetsScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + start_date: 'start_date', + end_date: 'end_date', + status: 'status', + banked_hours: 'banked_hours', + consumed_vacation: 'consumed_vacation', + consumed_sick: 'consumed_sick', + period_id: 'period_id', + period_number: 'period_number', + created_at: 'created_at', + updated_at: 'updated_at', + blocked_week: 'blocked_week' +} as const + +export type Time_sheetsScalarFieldEnum = (typeof Time_sheetsScalarFieldEnum)[keyof typeof Time_sheetsScalarFieldEnum] + + +export const UsersScalarFieldEnum = { + id: 'id', + email: 'email', + password: 'password', + type: 'type', + role: 'role', + is_verified: 'is_verified', + verification_token: 'verification_token', + otp_token: 'otp_token', + refresh_token: 'refresh_token', + created_at: 'created_at', + updated_at: 'updated_at', + created_by: 'created_by', + last_login: 'last_login' +} as const + +export type UsersScalarFieldEnum = (typeof UsersScalarFieldEnum)[keyof typeof UsersScalarFieldEnum] + + +export const Vacation_leaveScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + accumulated: 'accumulated', + consumed: 'consumed', + created_at: 'created_at', + updated_at: 'updated_at', + start_year: 'start_year', + end_year: 'end_year', + max_hours_per_year: 'max_hours_per_year' +} as const + +export type Vacation_leaveScalarFieldEnum = (typeof Vacation_leaveScalarFieldEnum)[keyof typeof Vacation_leaveScalarFieldEnum] + + +export const SortOrder = { + asc: 'asc', + desc: 'desc' +} as const + +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + + +export const QueryMode = { + default: 'default', + insensitive: 'insensitive' +} as const + +export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] + + +export const NullsOrder = { + first: 'first', + last: 'last' +} as const + +export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] + diff --git a/prisma/generated/legacy/models.ts b/prisma/generated/legacy/models.ts new file mode 100644 index 0000000..915caa7 --- /dev/null +++ b/prisma/generated/legacy/models.ts @@ -0,0 +1,27 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This is a barrel export file for all models and their related types. + * + * ๐ŸŸข You can import this file directly. + */ +export type * from './models/codeDesjardins' +export type * from './models/customers' +export type * from './models/dealers' +export type * from './models/employee_shift_template' +export type * from './models/employees' +export type * from './models/expenses' +export type * from './models/hours_bank' +export type * from './models/mileage_bank' +export type * from './models/shifts' +export type * from './models/shifts_of_template' +export type * from './models/sick_leave' +export type * from './models/time_sheet_periods' +export type * from './models/time_sheet_template' +export type * from './models/time_sheets' +export type * from './models/users' +export type * from './models/vacation_leave' +export type * from './commonInputTypes' \ No newline at end of file diff --git a/prisma/generated/legacy/models/codeDesjardins.ts b/prisma/generated/legacy/models/codeDesjardins.ts new file mode 100644 index 0000000..b0b9bca --- /dev/null +++ b/prisma/generated/legacy/models/codeDesjardins.ts @@ -0,0 +1,1120 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `codeDesjardins` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model codeDesjardins + * + */ +export type codeDesjardinsModel = runtime.Types.Result.DefaultSelection + +export type AggregateCodeDesjardins = { + _count: CodeDesjardinsCountAggregateOutputType | null + _min: CodeDesjardinsMinAggregateOutputType | null + _max: CodeDesjardinsMaxAggregateOutputType | null +} + +export type CodeDesjardinsMinAggregateOutputType = { + id: string | null + code: string | null + label: string | null + description: string | null +} + +export type CodeDesjardinsMaxAggregateOutputType = { + id: string | null + code: string | null + label: string | null + description: string | null +} + +export type CodeDesjardinsCountAggregateOutputType = { + id: number + code: number + label: number + description: number + _all: number +} + + +export type CodeDesjardinsMinAggregateInputType = { + id?: true + code?: true + label?: true + description?: true +} + +export type CodeDesjardinsMaxAggregateInputType = { + id?: true + code?: true + label?: true + description?: true +} + +export type CodeDesjardinsCountAggregateInputType = { + id?: true + code?: true + label?: true + description?: true + _all?: true +} + +export type CodeDesjardinsAggregateArgs = { + /** + * Filter which codeDesjardins to aggregate. + */ + where?: Prisma.codeDesjardinsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of codeDesjardins to fetch. + */ + orderBy?: Prisma.codeDesjardinsOrderByWithRelationInput | Prisma.codeDesjardinsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.codeDesjardinsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` codeDesjardins 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` codeDesjardins. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned codeDesjardins + **/ + _count?: true | CodeDesjardinsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: CodeDesjardinsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: CodeDesjardinsMaxAggregateInputType +} + +export type GetCodeDesjardinsAggregateType = { + [P in keyof T & keyof AggregateCodeDesjardins]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type codeDesjardinsGroupByArgs = { + where?: Prisma.codeDesjardinsWhereInput + orderBy?: Prisma.codeDesjardinsOrderByWithAggregationInput | Prisma.codeDesjardinsOrderByWithAggregationInput[] + by: Prisma.CodeDesjardinsScalarFieldEnum[] | Prisma.CodeDesjardinsScalarFieldEnum + having?: Prisma.codeDesjardinsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: CodeDesjardinsCountAggregateInputType | true + _min?: CodeDesjardinsMinAggregateInputType + _max?: CodeDesjardinsMaxAggregateInputType +} + +export type CodeDesjardinsGroupByOutputType = { + id: string + code: string + label: string + description: string + _count: CodeDesjardinsCountAggregateOutputType | null + _min: CodeDesjardinsMinAggregateOutputType | null + _max: CodeDesjardinsMaxAggregateOutputType | null +} + +type GetCodeDesjardinsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof CodeDesjardinsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type codeDesjardinsWhereInput = { + AND?: Prisma.codeDesjardinsWhereInput | Prisma.codeDesjardinsWhereInput[] + OR?: Prisma.codeDesjardinsWhereInput[] + NOT?: Prisma.codeDesjardinsWhereInput | Prisma.codeDesjardinsWhereInput[] + id?: Prisma.StringFilter<"codeDesjardins"> | string + code?: Prisma.StringFilter<"codeDesjardins"> | string + label?: Prisma.StringFilter<"codeDesjardins"> | string + description?: Prisma.StringFilter<"codeDesjardins"> | string +} + +export type codeDesjardinsOrderByWithRelationInput = { + id?: Prisma.SortOrder + code?: Prisma.SortOrder + label?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type codeDesjardinsWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.codeDesjardinsWhereInput | Prisma.codeDesjardinsWhereInput[] + OR?: Prisma.codeDesjardinsWhereInput[] + NOT?: Prisma.codeDesjardinsWhereInput | Prisma.codeDesjardinsWhereInput[] + code?: Prisma.StringFilter<"codeDesjardins"> | string + label?: Prisma.StringFilter<"codeDesjardins"> | string + description?: Prisma.StringFilter<"codeDesjardins"> | string +}, "id"> + +export type codeDesjardinsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + code?: Prisma.SortOrder + label?: Prisma.SortOrder + description?: Prisma.SortOrder + _count?: Prisma.codeDesjardinsCountOrderByAggregateInput + _max?: Prisma.codeDesjardinsMaxOrderByAggregateInput + _min?: Prisma.codeDesjardinsMinOrderByAggregateInput +} + +export type codeDesjardinsScalarWhereWithAggregatesInput = { + AND?: Prisma.codeDesjardinsScalarWhereWithAggregatesInput | Prisma.codeDesjardinsScalarWhereWithAggregatesInput[] + OR?: Prisma.codeDesjardinsScalarWhereWithAggregatesInput[] + NOT?: Prisma.codeDesjardinsScalarWhereWithAggregatesInput | Prisma.codeDesjardinsScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"codeDesjardins"> | string + code?: Prisma.StringWithAggregatesFilter<"codeDesjardins"> | string + label?: Prisma.StringWithAggregatesFilter<"codeDesjardins"> | string + description?: Prisma.StringWithAggregatesFilter<"codeDesjardins"> | string +} + +export type codeDesjardinsCreateInput = { + id: string + code: string + label: string + description: string +} + +export type codeDesjardinsUncheckedCreateInput = { + id: string + code: string + label: string + description: string +} + +export type codeDesjardinsUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + label?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type codeDesjardinsUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + label?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type codeDesjardinsCreateManyInput = { + id: string + code: string + label: string + description: string +} + +export type codeDesjardinsUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + label?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type codeDesjardinsUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + label?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type codeDesjardinsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + code?: Prisma.SortOrder + label?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type codeDesjardinsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + code?: Prisma.SortOrder + label?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type codeDesjardinsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + code?: Prisma.SortOrder + label?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type StringFieldUpdateOperationsInput = { + set?: string +} + + + +export type codeDesjardinsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + code?: boolean + label?: boolean + description?: boolean +}, ExtArgs["result"]["codeDesjardins"]> + +export type codeDesjardinsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + code?: boolean + label?: boolean + description?: boolean +}, ExtArgs["result"]["codeDesjardins"]> + +export type codeDesjardinsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + code?: boolean + label?: boolean + description?: boolean +}, ExtArgs["result"]["codeDesjardins"]> + +export type codeDesjardinsSelectScalar = { + id?: boolean + code?: boolean + label?: boolean + description?: boolean +} + +export type codeDesjardinsOmit = runtime.Types.Extensions.GetOmit<"id" | "code" | "label" | "description", ExtArgs["result"]["codeDesjardins"]> + +export type $codeDesjardinsPayload = { + name: "codeDesjardins" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + code: string + label: string + description: string + }, ExtArgs["result"]["codeDesjardins"]> + composites: {} +} + +export type codeDesjardinsGetPayload = runtime.Types.Result.GetResult + +export type codeDesjardinsCountArgs = + Omit & { + select?: CodeDesjardinsCountAggregateInputType | true + } + +export interface codeDesjardinsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['codeDesjardins'], meta: { name: 'codeDesjardins' } } + /** + * Find zero or one CodeDesjardins that matches the filter. + * @param {codeDesjardinsFindUniqueArgs} args - Arguments to find a CodeDesjardins + * @example + * // Get one CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__codeDesjardinsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one CodeDesjardins that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {codeDesjardinsFindUniqueOrThrowArgs} args - Arguments to find a CodeDesjardins + * @example + * // Get one CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__codeDesjardinsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first CodeDesjardins 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 {codeDesjardinsFindFirstArgs} args - Arguments to find a CodeDesjardins + * @example + * // Get one CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__codeDesjardinsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first CodeDesjardins 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 {codeDesjardinsFindFirstOrThrowArgs} args - Arguments to find a CodeDesjardins + * @example + * // Get one CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__codeDesjardinsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more CodeDesjardins 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 {codeDesjardinsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.findMany() + * + * // Get first 10 CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.findMany({ take: 10 }) + * + * // Only select the `id` + * const codeDesjardinsWithIdOnly = await prisma.codeDesjardins.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a CodeDesjardins. + * @param {codeDesjardinsCreateArgs} args - Arguments to create a CodeDesjardins. + * @example + * // Create one CodeDesjardins + * const CodeDesjardins = await prisma.codeDesjardins.create({ + * data: { + * // ... data to create a CodeDesjardins + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__codeDesjardinsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many CodeDesjardins. + * @param {codeDesjardinsCreateManyArgs} args - Arguments to create many CodeDesjardins. + * @example + * // Create many CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many CodeDesjardins and returns the data saved in the database. + * @param {codeDesjardinsCreateManyAndReturnArgs} args - Arguments to create many CodeDesjardins. + * @example + * // Create many CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many CodeDesjardins and only return the `id` + * const codeDesjardinsWithIdOnly = await prisma.codeDesjardins.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 CodeDesjardins. + * @param {codeDesjardinsDeleteArgs} args - Arguments to delete one CodeDesjardins. + * @example + * // Delete one CodeDesjardins + * const CodeDesjardins = await prisma.codeDesjardins.delete({ + * where: { + * // ... filter to delete one CodeDesjardins + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__codeDesjardinsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one CodeDesjardins. + * @param {codeDesjardinsUpdateArgs} args - Arguments to update one CodeDesjardins. + * @example + * // Update one CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__codeDesjardinsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more CodeDesjardins. + * @param {codeDesjardinsDeleteManyArgs} args - Arguments to filter CodeDesjardins to delete. + * @example + * // Delete a few CodeDesjardins + * const { count } = await prisma.codeDesjardins.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more CodeDesjardins. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {codeDesjardinsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more CodeDesjardins and returns the data updated in the database. + * @param {codeDesjardinsUpdateManyAndReturnArgs} args - Arguments to update many CodeDesjardins. + * @example + * // Update many CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more CodeDesjardins and only return the `id` + * const codeDesjardinsWithIdOnly = await prisma.codeDesjardins.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 CodeDesjardins. + * @param {codeDesjardinsUpsertArgs} args - Arguments to update or create a CodeDesjardins. + * @example + * // Update or create a CodeDesjardins + * const codeDesjardins = await prisma.codeDesjardins.upsert({ + * create: { + * // ... data to create a CodeDesjardins + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the CodeDesjardins we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__codeDesjardinsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of CodeDesjardins. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {codeDesjardinsCountArgs} args - Arguments to filter CodeDesjardins to count. + * @example + * // Count the number of CodeDesjardins + * const count = await prisma.codeDesjardins.count({ + * where: { + * // ... the filter for the CodeDesjardins 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 CodeDesjardins. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {CodeDesjardinsAggregateArgs} 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 CodeDesjardins. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {codeDesjardinsGroupByArgs} 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 codeDesjardinsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: codeDesjardinsGroupByArgs['orderBy'] } + : { orderBy?: codeDesjardinsGroupByArgs['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 ? GetCodeDesjardinsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the codeDesjardins model + */ +readonly fields: codeDesjardinsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for codeDesjardins. + * 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__codeDesjardinsClient 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 codeDesjardins model + */ +export interface codeDesjardinsFieldRefs { + readonly id: Prisma.FieldRef<"codeDesjardins", 'String'> + readonly code: Prisma.FieldRef<"codeDesjardins", 'String'> + readonly label: Prisma.FieldRef<"codeDesjardins", 'String'> + readonly description: Prisma.FieldRef<"codeDesjardins", 'String'> +} + + +// Custom InputTypes +/** + * codeDesjardins findUnique + */ +export type codeDesjardinsFindUniqueArgs = { + /** + * Select specific fields to fetch from the codeDesjardins + */ + select?: Prisma.codeDesjardinsSelect | null + /** + * Omit specific fields from the codeDesjardins + */ + omit?: Prisma.codeDesjardinsOmit | null + /** + * Filter, which codeDesjardins to fetch. + */ + where: Prisma.codeDesjardinsWhereUniqueInput +} + +/** + * codeDesjardins findUniqueOrThrow + */ +export type codeDesjardinsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the codeDesjardins + */ + select?: Prisma.codeDesjardinsSelect | null + /** + * Omit specific fields from the codeDesjardins + */ + omit?: Prisma.codeDesjardinsOmit | null + /** + * Filter, which codeDesjardins to fetch. + */ + where: Prisma.codeDesjardinsWhereUniqueInput +} + +/** + * codeDesjardins findFirst + */ +export type codeDesjardinsFindFirstArgs = { + /** + * Select specific fields to fetch from the codeDesjardins + */ + select?: Prisma.codeDesjardinsSelect | null + /** + * Omit specific fields from the codeDesjardins + */ + omit?: Prisma.codeDesjardinsOmit | null + /** + * Filter, which codeDesjardins to fetch. + */ + where?: Prisma.codeDesjardinsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of codeDesjardins to fetch. + */ + orderBy?: Prisma.codeDesjardinsOrderByWithRelationInput | Prisma.codeDesjardinsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for codeDesjardins. + */ + cursor?: Prisma.codeDesjardinsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` codeDesjardins 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` codeDesjardins. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of codeDesjardins. + */ + distinct?: Prisma.CodeDesjardinsScalarFieldEnum | Prisma.CodeDesjardinsScalarFieldEnum[] +} + +/** + * codeDesjardins findFirstOrThrow + */ +export type codeDesjardinsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the codeDesjardins + */ + select?: Prisma.codeDesjardinsSelect | null + /** + * Omit specific fields from the codeDesjardins + */ + omit?: Prisma.codeDesjardinsOmit | null + /** + * Filter, which codeDesjardins to fetch. + */ + where?: Prisma.codeDesjardinsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of codeDesjardins to fetch. + */ + orderBy?: Prisma.codeDesjardinsOrderByWithRelationInput | Prisma.codeDesjardinsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for codeDesjardins. + */ + cursor?: Prisma.codeDesjardinsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` codeDesjardins 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` codeDesjardins. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of codeDesjardins. + */ + distinct?: Prisma.CodeDesjardinsScalarFieldEnum | Prisma.CodeDesjardinsScalarFieldEnum[] +} + +/** + * codeDesjardins findMany + */ +export type codeDesjardinsFindManyArgs = { + /** + * Select specific fields to fetch from the codeDesjardins + */ + select?: Prisma.codeDesjardinsSelect | null + /** + * Omit specific fields from the codeDesjardins + */ + omit?: Prisma.codeDesjardinsOmit | null + /** + * Filter, which codeDesjardins to fetch. + */ + where?: Prisma.codeDesjardinsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of codeDesjardins to fetch. + */ + orderBy?: Prisma.codeDesjardinsOrderByWithRelationInput | Prisma.codeDesjardinsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing codeDesjardins. + */ + cursor?: Prisma.codeDesjardinsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` codeDesjardins 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` codeDesjardins. + */ + skip?: number + distinct?: Prisma.CodeDesjardinsScalarFieldEnum | Prisma.CodeDesjardinsScalarFieldEnum[] +} + +/** + * codeDesjardins create + */ +export type codeDesjardinsCreateArgs = { + /** + * Select specific fields to fetch from the codeDesjardins + */ + select?: Prisma.codeDesjardinsSelect | null + /** + * Omit specific fields from the codeDesjardins + */ + omit?: Prisma.codeDesjardinsOmit | null + /** + * The data needed to create a codeDesjardins. + */ + data: Prisma.XOR +} + +/** + * codeDesjardins createMany + */ +export type codeDesjardinsCreateManyArgs = { + /** + * The data used to create many codeDesjardins. + */ + data: Prisma.codeDesjardinsCreateManyInput | Prisma.codeDesjardinsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * codeDesjardins createManyAndReturn + */ +export type codeDesjardinsCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the codeDesjardins + */ + select?: Prisma.codeDesjardinsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the codeDesjardins + */ + omit?: Prisma.codeDesjardinsOmit | null + /** + * The data used to create many codeDesjardins. + */ + data: Prisma.codeDesjardinsCreateManyInput | Prisma.codeDesjardinsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * codeDesjardins update + */ +export type codeDesjardinsUpdateArgs = { + /** + * Select specific fields to fetch from the codeDesjardins + */ + select?: Prisma.codeDesjardinsSelect | null + /** + * Omit specific fields from the codeDesjardins + */ + omit?: Prisma.codeDesjardinsOmit | null + /** + * The data needed to update a codeDesjardins. + */ + data: Prisma.XOR + /** + * Choose, which codeDesjardins to update. + */ + where: Prisma.codeDesjardinsWhereUniqueInput +} + +/** + * codeDesjardins updateMany + */ +export type codeDesjardinsUpdateManyArgs = { + /** + * The data used to update codeDesjardins. + */ + data: Prisma.XOR + /** + * Filter which codeDesjardins to update + */ + where?: Prisma.codeDesjardinsWhereInput + /** + * Limit how many codeDesjardins to update. + */ + limit?: number +} + +/** + * codeDesjardins updateManyAndReturn + */ +export type codeDesjardinsUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the codeDesjardins + */ + select?: Prisma.codeDesjardinsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the codeDesjardins + */ + omit?: Prisma.codeDesjardinsOmit | null + /** + * The data used to update codeDesjardins. + */ + data: Prisma.XOR + /** + * Filter which codeDesjardins to update + */ + where?: Prisma.codeDesjardinsWhereInput + /** + * Limit how many codeDesjardins to update. + */ + limit?: number +} + +/** + * codeDesjardins upsert + */ +export type codeDesjardinsUpsertArgs = { + /** + * Select specific fields to fetch from the codeDesjardins + */ + select?: Prisma.codeDesjardinsSelect | null + /** + * Omit specific fields from the codeDesjardins + */ + omit?: Prisma.codeDesjardinsOmit | null + /** + * The filter to search for the codeDesjardins to update in case it exists. + */ + where: Prisma.codeDesjardinsWhereUniqueInput + /** + * In case the codeDesjardins found by the `where` argument doesn't exist, create a new codeDesjardins with this data. + */ + create: Prisma.XOR + /** + * In case the codeDesjardins was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * codeDesjardins delete + */ +export type codeDesjardinsDeleteArgs = { + /** + * Select specific fields to fetch from the codeDesjardins + */ + select?: Prisma.codeDesjardinsSelect | null + /** + * Omit specific fields from the codeDesjardins + */ + omit?: Prisma.codeDesjardinsOmit | null + /** + * Filter which codeDesjardins to delete. + */ + where: Prisma.codeDesjardinsWhereUniqueInput +} + +/** + * codeDesjardins deleteMany + */ +export type codeDesjardinsDeleteManyArgs = { + /** + * Filter which codeDesjardins to delete + */ + where?: Prisma.codeDesjardinsWhereInput + /** + * Limit how many codeDesjardins to delete. + */ + limit?: number +} + +/** + * codeDesjardins without action + */ +export type codeDesjardinsDefaultArgs = { + /** + * Select specific fields to fetch from the codeDesjardins + */ + select?: Prisma.codeDesjardinsSelect | null + /** + * Omit specific fields from the codeDesjardins + */ + omit?: Prisma.codeDesjardinsOmit | null +} diff --git a/prisma/generated/legacy/models/customers.ts b/prisma/generated/legacy/models/customers.ts new file mode 100644 index 0000000..6e351cb --- /dev/null +++ b/prisma/generated/legacy/models/customers.ts @@ -0,0 +1,1346 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `customers` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model customers + * + */ +export type customersModel = runtime.Types.Result.DefaultSelection + +export type AggregateCustomers = { + _count: CustomersCountAggregateOutputType | null + _avg: CustomersAvgAggregateOutputType | null + _sum: CustomersSumAggregateOutputType | null + _min: CustomersMinAggregateOutputType | null + _max: CustomersMaxAggregateOutputType | null +} + +export type CustomersAvgAggregateOutputType = { + created_at: number | null + updated_at: number | null +} + +export type CustomersSumAggregateOutputType = { + created_at: bigint | null + updated_at: bigint | null +} + +export type CustomersMinAggregateOutputType = { + id: string | null + user_id: string | null + email: string | null + first_name: string | null + last_name: string | null + phone_number: string | null + address: string | null + created_at: bigint | null + updated_at: bigint | null + created_by: string | null +} + +export type CustomersMaxAggregateOutputType = { + id: string | null + user_id: string | null + email: string | null + first_name: string | null + last_name: string | null + phone_number: string | null + address: string | null + created_at: bigint | null + updated_at: bigint | null + created_by: string | null +} + +export type CustomersCountAggregateOutputType = { + id: number + user_id: number + email: number + first_name: number + last_name: number + phone_number: number + address: number + created_at: number + updated_at: number + created_by: number + _all: number +} + + +export type CustomersAvgAggregateInputType = { + created_at?: true + updated_at?: true +} + +export type CustomersSumAggregateInputType = { + created_at?: true + updated_at?: true +} + +export type CustomersMinAggregateInputType = { + id?: true + user_id?: true + email?: true + first_name?: true + last_name?: true + phone_number?: true + address?: true + created_at?: true + updated_at?: true + created_by?: true +} + +export type CustomersMaxAggregateInputType = { + id?: true + user_id?: true + email?: true + first_name?: true + last_name?: true + phone_number?: true + address?: true + created_at?: true + updated_at?: true + created_by?: true +} + +export type CustomersCountAggregateInputType = { + id?: true + user_id?: true + email?: true + first_name?: true + last_name?: true + phone_number?: true + address?: true + created_at?: true + updated_at?: true + created_by?: true + _all?: true +} + +export type CustomersAggregateArgs = { + /** + * Filter which customers to aggregate. + */ + where?: Prisma.customersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of customers to fetch. + */ + orderBy?: Prisma.customersOrderByWithRelationInput | Prisma.customersOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.customersWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` customers 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` customers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned customers + **/ + _count?: true | CustomersCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: CustomersAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: CustomersSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: CustomersMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: CustomersMaxAggregateInputType +} + +export type GetCustomersAggregateType = { + [P in keyof T & keyof AggregateCustomers]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type customersGroupByArgs = { + where?: Prisma.customersWhereInput + orderBy?: Prisma.customersOrderByWithAggregationInput | Prisma.customersOrderByWithAggregationInput[] + by: Prisma.CustomersScalarFieldEnum[] | Prisma.CustomersScalarFieldEnum + having?: Prisma.customersScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: CustomersCountAggregateInputType | true + _avg?: CustomersAvgAggregateInputType + _sum?: CustomersSumAggregateInputType + _min?: CustomersMinAggregateInputType + _max?: CustomersMaxAggregateInputType +} + +export type CustomersGroupByOutputType = { + id: string + user_id: string | null + email: string | null + first_name: string | null + last_name: string | null + phone_number: string | null + address: string | null + created_at: bigint | null + updated_at: bigint | null + created_by: string | null + _count: CustomersCountAggregateOutputType | null + _avg: CustomersAvgAggregateOutputType | null + _sum: CustomersSumAggregateOutputType | null + _min: CustomersMinAggregateOutputType | null + _max: CustomersMaxAggregateOutputType | null +} + +type GetCustomersGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof CustomersGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type customersWhereInput = { + AND?: Prisma.customersWhereInput | Prisma.customersWhereInput[] + OR?: Prisma.customersWhereInput[] + NOT?: Prisma.customersWhereInput | Prisma.customersWhereInput[] + id?: Prisma.UuidFilter<"customers"> | string + user_id?: Prisma.StringNullableFilter<"customers"> | string | null + email?: Prisma.StringNullableFilter<"customers"> | string | null + first_name?: Prisma.StringNullableFilter<"customers"> | string | null + last_name?: Prisma.StringNullableFilter<"customers"> | string | null + phone_number?: Prisma.StringNullableFilter<"customers"> | string | null + address?: Prisma.StringNullableFilter<"customers"> | string | null + created_at?: Prisma.BigIntNullableFilter<"customers"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"customers"> | bigint | number | null + created_by?: Prisma.StringNullableFilter<"customers"> | string | null +} + +export type customersOrderByWithRelationInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + first_name?: Prisma.SortOrderInput | Prisma.SortOrder + last_name?: Prisma.SortOrderInput | Prisma.SortOrder + phone_number?: Prisma.SortOrderInput | Prisma.SortOrder + address?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + created_by?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type customersWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.customersWhereInput | Prisma.customersWhereInput[] + OR?: Prisma.customersWhereInput[] + NOT?: Prisma.customersWhereInput | Prisma.customersWhereInput[] + user_id?: Prisma.StringNullableFilter<"customers"> | string | null + email?: Prisma.StringNullableFilter<"customers"> | string | null + first_name?: Prisma.StringNullableFilter<"customers"> | string | null + last_name?: Prisma.StringNullableFilter<"customers"> | string | null + phone_number?: Prisma.StringNullableFilter<"customers"> | string | null + address?: Prisma.StringNullableFilter<"customers"> | string | null + created_at?: Prisma.BigIntNullableFilter<"customers"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"customers"> | bigint | number | null + created_by?: Prisma.StringNullableFilter<"customers"> | string | null +}, "id"> + +export type customersOrderByWithAggregationInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + first_name?: Prisma.SortOrderInput | Prisma.SortOrder + last_name?: Prisma.SortOrderInput | Prisma.SortOrder + phone_number?: Prisma.SortOrderInput | Prisma.SortOrder + address?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + created_by?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.customersCountOrderByAggregateInput + _avg?: Prisma.customersAvgOrderByAggregateInput + _max?: Prisma.customersMaxOrderByAggregateInput + _min?: Prisma.customersMinOrderByAggregateInput + _sum?: Prisma.customersSumOrderByAggregateInput +} + +export type customersScalarWhereWithAggregatesInput = { + AND?: Prisma.customersScalarWhereWithAggregatesInput | Prisma.customersScalarWhereWithAggregatesInput[] + OR?: Prisma.customersScalarWhereWithAggregatesInput[] + NOT?: Prisma.customersScalarWhereWithAggregatesInput | Prisma.customersScalarWhereWithAggregatesInput[] + id?: Prisma.UuidWithAggregatesFilter<"customers"> | string + user_id?: Prisma.StringNullableWithAggregatesFilter<"customers"> | string | null + email?: Prisma.StringNullableWithAggregatesFilter<"customers"> | string | null + first_name?: Prisma.StringNullableWithAggregatesFilter<"customers"> | string | null + last_name?: Prisma.StringNullableWithAggregatesFilter<"customers"> | string | null + phone_number?: Prisma.StringNullableWithAggregatesFilter<"customers"> | string | null + address?: Prisma.StringNullableWithAggregatesFilter<"customers"> | string | null + created_at?: Prisma.BigIntNullableWithAggregatesFilter<"customers"> | bigint | number | null + updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"customers"> | bigint | number | null + created_by?: Prisma.StringNullableWithAggregatesFilter<"customers"> | string | null +} + +export type customersCreateInput = { + id: string + user_id?: string | null + email?: string | null + first_name?: string | null + last_name?: string | null + phone_number?: string | null + address?: string | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + created_by?: string | null +} + +export type customersUncheckedCreateInput = { + id: string + user_id?: string | null + email?: string | null + first_name?: string | null + last_name?: string | null + phone_number?: string | null + address?: string | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + created_by?: string | null +} + +export type customersUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type customersUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type customersCreateManyInput = { + id: string + user_id?: string | null + email?: string | null + first_name?: string | null + last_name?: string | null + phone_number?: string | null + address?: string | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + created_by?: string | null +} + +export type customersUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type customersUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type customersCountOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + email?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + phone_number?: Prisma.SortOrder + address?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + created_by?: Prisma.SortOrder +} + +export type customersAvgOrderByAggregateInput = { + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type customersMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + email?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + phone_number?: Prisma.SortOrder + address?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + created_by?: Prisma.SortOrder +} + +export type customersMinOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + email?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + phone_number?: Prisma.SortOrder + address?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + created_by?: Prisma.SortOrder +} + +export type customersSumOrderByAggregateInput = { + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type NullableStringFieldUpdateOperationsInput = { + set?: string | null +} + +export type NullableBigIntFieldUpdateOperationsInput = { + set?: bigint | number | null + increment?: bigint | number + decrement?: bigint | number + multiply?: bigint | number + divide?: bigint | number +} + + + +export type customersSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + email?: boolean + first_name?: boolean + last_name?: boolean + phone_number?: boolean + address?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean +}, ExtArgs["result"]["customers"]> + +export type customersSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + email?: boolean + first_name?: boolean + last_name?: boolean + phone_number?: boolean + address?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean +}, ExtArgs["result"]["customers"]> + +export type customersSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + email?: boolean + first_name?: boolean + last_name?: boolean + phone_number?: boolean + address?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean +}, ExtArgs["result"]["customers"]> + +export type customersSelectScalar = { + id?: boolean + user_id?: boolean + email?: boolean + first_name?: boolean + last_name?: boolean + phone_number?: boolean + address?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean +} + +export type customersOmit = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "email" | "first_name" | "last_name" | "phone_number" | "address" | "created_at" | "updated_at" | "created_by", ExtArgs["result"]["customers"]> + +export type $customersPayload = { + name: "customers" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + user_id: string | null + email: string | null + first_name: string | null + last_name: string | null + phone_number: string | null + address: string | null + created_at: bigint | null + updated_at: bigint | null + created_by: string | null + }, ExtArgs["result"]["customers"]> + composites: {} +} + +export type customersGetPayload = runtime.Types.Result.GetResult + +export type customersCountArgs = + Omit & { + select?: CustomersCountAggregateInputType | true + } + +export interface customersDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['customers'], meta: { name: 'customers' } } + /** + * Find zero or one Customers that matches the filter. + * @param {customersFindUniqueArgs} args - Arguments to find a Customers + * @example + * // Get one Customers + * const customers = await prisma.customers.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Customers that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {customersFindUniqueOrThrowArgs} args - Arguments to find a Customers + * @example + * // Get one Customers + * const customers = await prisma.customers.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Customers 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 {customersFindFirstArgs} args - Arguments to find a Customers + * @example + * // Get one Customers + * const customers = await prisma.customers.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Customers 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 {customersFindFirstOrThrowArgs} args - Arguments to find a Customers + * @example + * // Get one Customers + * const customers = await prisma.customers.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Customers 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 {customersFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Customers + * const customers = await prisma.customers.findMany() + * + * // Get first 10 Customers + * const customers = await prisma.customers.findMany({ take: 10 }) + * + * // Only select the `id` + * const customersWithIdOnly = await prisma.customers.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Customers. + * @param {customersCreateArgs} args - Arguments to create a Customers. + * @example + * // Create one Customers + * const Customers = await prisma.customers.create({ + * data: { + * // ... data to create a Customers + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Customers. + * @param {customersCreateManyArgs} args - Arguments to create many Customers. + * @example + * // Create many Customers + * const customers = await prisma.customers.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Customers and returns the data saved in the database. + * @param {customersCreateManyAndReturnArgs} args - Arguments to create many Customers. + * @example + * // Create many Customers + * const customers = await prisma.customers.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Customers and only return the `id` + * const customersWithIdOnly = await prisma.customers.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 Customers. + * @param {customersDeleteArgs} args - Arguments to delete one Customers. + * @example + * // Delete one Customers + * const Customers = await prisma.customers.delete({ + * where: { + * // ... filter to delete one Customers + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Customers. + * @param {customersUpdateArgs} args - Arguments to update one Customers. + * @example + * // Update one Customers + * const customers = await prisma.customers.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Customers. + * @param {customersDeleteManyArgs} args - Arguments to filter Customers to delete. + * @example + * // Delete a few Customers + * const { count } = await prisma.customers.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Customers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {customersUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Customers + * const customers = await prisma.customers.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Customers and returns the data updated in the database. + * @param {customersUpdateManyAndReturnArgs} args - Arguments to update many Customers. + * @example + * // Update many Customers + * const customers = await prisma.customers.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Customers and only return the `id` + * const customersWithIdOnly = await prisma.customers.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 Customers. + * @param {customersUpsertArgs} args - Arguments to update or create a Customers. + * @example + * // Update or create a Customers + * const customers = await prisma.customers.upsert({ + * create: { + * // ... data to create a Customers + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Customers we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Customers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {customersCountArgs} args - Arguments to filter Customers to count. + * @example + * // Count the number of Customers + * const count = await prisma.customers.count({ + * where: { + * // ... the filter for the Customers 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 Customers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {CustomersAggregateArgs} 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 Customers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {customersGroupByArgs} 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 customersGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: customersGroupByArgs['orderBy'] } + : { orderBy?: customersGroupByArgs['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 ? GetCustomersGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the customers model + */ +readonly fields: customersFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for customers. + * 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__customersClient 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 customers model + */ +export interface customersFieldRefs { + readonly id: Prisma.FieldRef<"customers", 'String'> + readonly user_id: Prisma.FieldRef<"customers", 'String'> + readonly email: Prisma.FieldRef<"customers", 'String'> + readonly first_name: Prisma.FieldRef<"customers", 'String'> + readonly last_name: Prisma.FieldRef<"customers", 'String'> + readonly phone_number: Prisma.FieldRef<"customers", 'String'> + readonly address: Prisma.FieldRef<"customers", 'String'> + readonly created_at: Prisma.FieldRef<"customers", 'BigInt'> + readonly updated_at: Prisma.FieldRef<"customers", 'BigInt'> + readonly created_by: Prisma.FieldRef<"customers", 'String'> +} + + +// Custom InputTypes +/** + * customers findUnique + */ +export type customersFindUniqueArgs = { + /** + * Select specific fields to fetch from the customers + */ + select?: Prisma.customersSelect | null + /** + * Omit specific fields from the customers + */ + omit?: Prisma.customersOmit | null + /** + * Filter, which customers to fetch. + */ + where: Prisma.customersWhereUniqueInput +} + +/** + * customers findUniqueOrThrow + */ +export type customersFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the customers + */ + select?: Prisma.customersSelect | null + /** + * Omit specific fields from the customers + */ + omit?: Prisma.customersOmit | null + /** + * Filter, which customers to fetch. + */ + where: Prisma.customersWhereUniqueInput +} + +/** + * customers findFirst + */ +export type customersFindFirstArgs = { + /** + * Select specific fields to fetch from the customers + */ + select?: Prisma.customersSelect | null + /** + * Omit specific fields from the customers + */ + omit?: Prisma.customersOmit | null + /** + * Filter, which customers to fetch. + */ + where?: Prisma.customersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of customers to fetch. + */ + orderBy?: Prisma.customersOrderByWithRelationInput | Prisma.customersOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for customers. + */ + cursor?: Prisma.customersWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` customers 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` customers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of customers. + */ + distinct?: Prisma.CustomersScalarFieldEnum | Prisma.CustomersScalarFieldEnum[] +} + +/** + * customers findFirstOrThrow + */ +export type customersFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the customers + */ + select?: Prisma.customersSelect | null + /** + * Omit specific fields from the customers + */ + omit?: Prisma.customersOmit | null + /** + * Filter, which customers to fetch. + */ + where?: Prisma.customersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of customers to fetch. + */ + orderBy?: Prisma.customersOrderByWithRelationInput | Prisma.customersOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for customers. + */ + cursor?: Prisma.customersWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` customers 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` customers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of customers. + */ + distinct?: Prisma.CustomersScalarFieldEnum | Prisma.CustomersScalarFieldEnum[] +} + +/** + * customers findMany + */ +export type customersFindManyArgs = { + /** + * Select specific fields to fetch from the customers + */ + select?: Prisma.customersSelect | null + /** + * Omit specific fields from the customers + */ + omit?: Prisma.customersOmit | null + /** + * Filter, which customers to fetch. + */ + where?: Prisma.customersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of customers to fetch. + */ + orderBy?: Prisma.customersOrderByWithRelationInput | Prisma.customersOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing customers. + */ + cursor?: Prisma.customersWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` customers 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` customers. + */ + skip?: number + distinct?: Prisma.CustomersScalarFieldEnum | Prisma.CustomersScalarFieldEnum[] +} + +/** + * customers create + */ +export type customersCreateArgs = { + /** + * Select specific fields to fetch from the customers + */ + select?: Prisma.customersSelect | null + /** + * Omit specific fields from the customers + */ + omit?: Prisma.customersOmit | null + /** + * The data needed to create a customers. + */ + data: Prisma.XOR +} + +/** + * customers createMany + */ +export type customersCreateManyArgs = { + /** + * The data used to create many customers. + */ + data: Prisma.customersCreateManyInput | Prisma.customersCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * customers createManyAndReturn + */ +export type customersCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the customers + */ + select?: Prisma.customersSelectCreateManyAndReturn | null + /** + * Omit specific fields from the customers + */ + omit?: Prisma.customersOmit | null + /** + * The data used to create many customers. + */ + data: Prisma.customersCreateManyInput | Prisma.customersCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * customers update + */ +export type customersUpdateArgs = { + /** + * Select specific fields to fetch from the customers + */ + select?: Prisma.customersSelect | null + /** + * Omit specific fields from the customers + */ + omit?: Prisma.customersOmit | null + /** + * The data needed to update a customers. + */ + data: Prisma.XOR + /** + * Choose, which customers to update. + */ + where: Prisma.customersWhereUniqueInput +} + +/** + * customers updateMany + */ +export type customersUpdateManyArgs = { + /** + * The data used to update customers. + */ + data: Prisma.XOR + /** + * Filter which customers to update + */ + where?: Prisma.customersWhereInput + /** + * Limit how many customers to update. + */ + limit?: number +} + +/** + * customers updateManyAndReturn + */ +export type customersUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the customers + */ + select?: Prisma.customersSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the customers + */ + omit?: Prisma.customersOmit | null + /** + * The data used to update customers. + */ + data: Prisma.XOR + /** + * Filter which customers to update + */ + where?: Prisma.customersWhereInput + /** + * Limit how many customers to update. + */ + limit?: number +} + +/** + * customers upsert + */ +export type customersUpsertArgs = { + /** + * Select specific fields to fetch from the customers + */ + select?: Prisma.customersSelect | null + /** + * Omit specific fields from the customers + */ + omit?: Prisma.customersOmit | null + /** + * The filter to search for the customers to update in case it exists. + */ + where: Prisma.customersWhereUniqueInput + /** + * In case the customers found by the `where` argument doesn't exist, create a new customers with this data. + */ + create: Prisma.XOR + /** + * In case the customers was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * customers delete + */ +export type customersDeleteArgs = { + /** + * Select specific fields to fetch from the customers + */ + select?: Prisma.customersSelect | null + /** + * Omit specific fields from the customers + */ + omit?: Prisma.customersOmit | null + /** + * Filter which customers to delete. + */ + where: Prisma.customersWhereUniqueInput +} + +/** + * customers deleteMany + */ +export type customersDeleteManyArgs = { + /** + * Filter which customers to delete + */ + where?: Prisma.customersWhereInput + /** + * Limit how many customers to delete. + */ + limit?: number +} + +/** + * customers without action + */ +export type customersDefaultArgs = { + /** + * Select specific fields to fetch from the customers + */ + select?: Prisma.customersSelect | null + /** + * Omit specific fields from the customers + */ + omit?: Prisma.customersOmit | null +} diff --git a/prisma/generated/legacy/models/dealers.ts b/prisma/generated/legacy/models/dealers.ts new file mode 100644 index 0000000..7296124 --- /dev/null +++ b/prisma/generated/legacy/models/dealers.ts @@ -0,0 +1,1306 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `dealers` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model dealers + * + */ +export type dealersModel = runtime.Types.Result.DefaultSelection + +export type AggregateDealers = { + _count: DealersCountAggregateOutputType | null + _avg: DealersAvgAggregateOutputType | null + _sum: DealersSumAggregateOutputType | null + _min: DealersMinAggregateOutputType | null + _max: DealersMaxAggregateOutputType | null +} + +export type DealersAvgAggregateOutputType = { + created_at: number | null + updated_at: number | null +} + +export type DealersSumAggregateOutputType = { + created_at: bigint | null + updated_at: bigint | null +} + +export type DealersMinAggregateOutputType = { + id: string | null + user_id: string | null + email: string | null + first_name: string | null + last_name: string | null + phone_number: string | null + created_at: bigint | null + updated_at: bigint | null + created_by: string | null +} + +export type DealersMaxAggregateOutputType = { + id: string | null + user_id: string | null + email: string | null + first_name: string | null + last_name: string | null + phone_number: string | null + created_at: bigint | null + updated_at: bigint | null + created_by: string | null +} + +export type DealersCountAggregateOutputType = { + id: number + user_id: number + email: number + first_name: number + last_name: number + phone_number: number + created_at: number + updated_at: number + created_by: number + _all: number +} + + +export type DealersAvgAggregateInputType = { + created_at?: true + updated_at?: true +} + +export type DealersSumAggregateInputType = { + created_at?: true + updated_at?: true +} + +export type DealersMinAggregateInputType = { + id?: true + user_id?: true + email?: true + first_name?: true + last_name?: true + phone_number?: true + created_at?: true + updated_at?: true + created_by?: true +} + +export type DealersMaxAggregateInputType = { + id?: true + user_id?: true + email?: true + first_name?: true + last_name?: true + phone_number?: true + created_at?: true + updated_at?: true + created_by?: true +} + +export type DealersCountAggregateInputType = { + id?: true + user_id?: true + email?: true + first_name?: true + last_name?: true + phone_number?: true + created_at?: true + updated_at?: true + created_by?: true + _all?: true +} + +export type DealersAggregateArgs = { + /** + * Filter which dealers to aggregate. + */ + where?: Prisma.dealersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of dealers to fetch. + */ + orderBy?: Prisma.dealersOrderByWithRelationInput | Prisma.dealersOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.dealersWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` dealers 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` dealers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned dealers + **/ + _count?: true | DealersCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: DealersAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: DealersSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: DealersMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: DealersMaxAggregateInputType +} + +export type GetDealersAggregateType = { + [P in keyof T & keyof AggregateDealers]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type dealersGroupByArgs = { + where?: Prisma.dealersWhereInput + orderBy?: Prisma.dealersOrderByWithAggregationInput | Prisma.dealersOrderByWithAggregationInput[] + by: Prisma.DealersScalarFieldEnum[] | Prisma.DealersScalarFieldEnum + having?: Prisma.dealersScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: DealersCountAggregateInputType | true + _avg?: DealersAvgAggregateInputType + _sum?: DealersSumAggregateInputType + _min?: DealersMinAggregateInputType + _max?: DealersMaxAggregateInputType +} + +export type DealersGroupByOutputType = { + id: string + user_id: string | null + email: string | null + first_name: string | null + last_name: string | null + phone_number: string | null + created_at: bigint | null + updated_at: bigint | null + created_by: string | null + _count: DealersCountAggregateOutputType | null + _avg: DealersAvgAggregateOutputType | null + _sum: DealersSumAggregateOutputType | null + _min: DealersMinAggregateOutputType | null + _max: DealersMaxAggregateOutputType | null +} + +type GetDealersGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof DealersGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type dealersWhereInput = { + AND?: Prisma.dealersWhereInput | Prisma.dealersWhereInput[] + OR?: Prisma.dealersWhereInput[] + NOT?: Prisma.dealersWhereInput | Prisma.dealersWhereInput[] + id?: Prisma.UuidFilter<"dealers"> | string + user_id?: Prisma.StringNullableFilter<"dealers"> | string | null + email?: Prisma.StringNullableFilter<"dealers"> | string | null + first_name?: Prisma.StringNullableFilter<"dealers"> | string | null + last_name?: Prisma.StringNullableFilter<"dealers"> | string | null + phone_number?: Prisma.StringNullableFilter<"dealers"> | string | null + created_at?: Prisma.BigIntNullableFilter<"dealers"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"dealers"> | bigint | number | null + created_by?: Prisma.StringNullableFilter<"dealers"> | string | null +} + +export type dealersOrderByWithRelationInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + first_name?: Prisma.SortOrderInput | Prisma.SortOrder + last_name?: Prisma.SortOrderInput | Prisma.SortOrder + phone_number?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + created_by?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type dealersWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.dealersWhereInput | Prisma.dealersWhereInput[] + OR?: Prisma.dealersWhereInput[] + NOT?: Prisma.dealersWhereInput | Prisma.dealersWhereInput[] + user_id?: Prisma.StringNullableFilter<"dealers"> | string | null + email?: Prisma.StringNullableFilter<"dealers"> | string | null + first_name?: Prisma.StringNullableFilter<"dealers"> | string | null + last_name?: Prisma.StringNullableFilter<"dealers"> | string | null + phone_number?: Prisma.StringNullableFilter<"dealers"> | string | null + created_at?: Prisma.BigIntNullableFilter<"dealers"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"dealers"> | bigint | number | null + created_by?: Prisma.StringNullableFilter<"dealers"> | string | null +}, "id"> + +export type dealersOrderByWithAggregationInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + first_name?: Prisma.SortOrderInput | Prisma.SortOrder + last_name?: Prisma.SortOrderInput | Prisma.SortOrder + phone_number?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + created_by?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.dealersCountOrderByAggregateInput + _avg?: Prisma.dealersAvgOrderByAggregateInput + _max?: Prisma.dealersMaxOrderByAggregateInput + _min?: Prisma.dealersMinOrderByAggregateInput + _sum?: Prisma.dealersSumOrderByAggregateInput +} + +export type dealersScalarWhereWithAggregatesInput = { + AND?: Prisma.dealersScalarWhereWithAggregatesInput | Prisma.dealersScalarWhereWithAggregatesInput[] + OR?: Prisma.dealersScalarWhereWithAggregatesInput[] + NOT?: Prisma.dealersScalarWhereWithAggregatesInput | Prisma.dealersScalarWhereWithAggregatesInput[] + id?: Prisma.UuidWithAggregatesFilter<"dealers"> | string + user_id?: Prisma.StringNullableWithAggregatesFilter<"dealers"> | string | null + email?: Prisma.StringNullableWithAggregatesFilter<"dealers"> | string | null + first_name?: Prisma.StringNullableWithAggregatesFilter<"dealers"> | string | null + last_name?: Prisma.StringNullableWithAggregatesFilter<"dealers"> | string | null + phone_number?: Prisma.StringNullableWithAggregatesFilter<"dealers"> | string | null + created_at?: Prisma.BigIntNullableWithAggregatesFilter<"dealers"> | bigint | number | null + updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"dealers"> | bigint | number | null + created_by?: Prisma.StringNullableWithAggregatesFilter<"dealers"> | string | null +} + +export type dealersCreateInput = { + id: string + user_id?: string | null + email?: string | null + first_name?: string | null + last_name?: string | null + phone_number?: string | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + created_by?: string | null +} + +export type dealersUncheckedCreateInput = { + id: string + user_id?: string | null + email?: string | null + first_name?: string | null + last_name?: string | null + phone_number?: string | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + created_by?: string | null +} + +export type dealersUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type dealersUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type dealersCreateManyInput = { + id: string + user_id?: string | null + email?: string | null + first_name?: string | null + last_name?: string | null + phone_number?: string | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + created_by?: string | null +} + +export type dealersUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type dealersUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type dealersCountOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + email?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + phone_number?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + created_by?: Prisma.SortOrder +} + +export type dealersAvgOrderByAggregateInput = { + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type dealersMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + email?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + phone_number?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + created_by?: Prisma.SortOrder +} + +export type dealersMinOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + email?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + phone_number?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + created_by?: Prisma.SortOrder +} + +export type dealersSumOrderByAggregateInput = { + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + + + +export type dealersSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + email?: boolean + first_name?: boolean + last_name?: boolean + phone_number?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean +}, ExtArgs["result"]["dealers"]> + +export type dealersSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + email?: boolean + first_name?: boolean + last_name?: boolean + phone_number?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean +}, ExtArgs["result"]["dealers"]> + +export type dealersSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + email?: boolean + first_name?: boolean + last_name?: boolean + phone_number?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean +}, ExtArgs["result"]["dealers"]> + +export type dealersSelectScalar = { + id?: boolean + user_id?: boolean + email?: boolean + first_name?: boolean + last_name?: boolean + phone_number?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean +} + +export type dealersOmit = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "email" | "first_name" | "last_name" | "phone_number" | "created_at" | "updated_at" | "created_by", ExtArgs["result"]["dealers"]> + +export type $dealersPayload = { + name: "dealers" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + user_id: string | null + email: string | null + first_name: string | null + last_name: string | null + phone_number: string | null + created_at: bigint | null + updated_at: bigint | null + created_by: string | null + }, ExtArgs["result"]["dealers"]> + composites: {} +} + +export type dealersGetPayload = runtime.Types.Result.GetResult + +export type dealersCountArgs = + Omit & { + select?: DealersCountAggregateInputType | true + } + +export interface dealersDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['dealers'], meta: { name: 'dealers' } } + /** + * Find zero or one Dealers that matches the filter. + * @param {dealersFindUniqueArgs} args - Arguments to find a Dealers + * @example + * // Get one Dealers + * const dealers = await prisma.dealers.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Dealers that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {dealersFindUniqueOrThrowArgs} args - Arguments to find a Dealers + * @example + * // Get one Dealers + * const dealers = await prisma.dealers.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Dealers 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 {dealersFindFirstArgs} args - Arguments to find a Dealers + * @example + * // Get one Dealers + * const dealers = await prisma.dealers.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Dealers 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 {dealersFindFirstOrThrowArgs} args - Arguments to find a Dealers + * @example + * // Get one Dealers + * const dealers = await prisma.dealers.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Dealers 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 {dealersFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Dealers + * const dealers = await prisma.dealers.findMany() + * + * // Get first 10 Dealers + * const dealers = await prisma.dealers.findMany({ take: 10 }) + * + * // Only select the `id` + * const dealersWithIdOnly = await prisma.dealers.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Dealers. + * @param {dealersCreateArgs} args - Arguments to create a Dealers. + * @example + * // Create one Dealers + * const Dealers = await prisma.dealers.create({ + * data: { + * // ... data to create a Dealers + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Dealers. + * @param {dealersCreateManyArgs} args - Arguments to create many Dealers. + * @example + * // Create many Dealers + * const dealers = await prisma.dealers.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Dealers and returns the data saved in the database. + * @param {dealersCreateManyAndReturnArgs} args - Arguments to create many Dealers. + * @example + * // Create many Dealers + * const dealers = await prisma.dealers.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Dealers and only return the `id` + * const dealersWithIdOnly = await prisma.dealers.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 Dealers. + * @param {dealersDeleteArgs} args - Arguments to delete one Dealers. + * @example + * // Delete one Dealers + * const Dealers = await prisma.dealers.delete({ + * where: { + * // ... filter to delete one Dealers + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Dealers. + * @param {dealersUpdateArgs} args - Arguments to update one Dealers. + * @example + * // Update one Dealers + * const dealers = await prisma.dealers.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Dealers. + * @param {dealersDeleteManyArgs} args - Arguments to filter Dealers to delete. + * @example + * // Delete a few Dealers + * const { count } = await prisma.dealers.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Dealers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {dealersUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Dealers + * const dealers = await prisma.dealers.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Dealers and returns the data updated in the database. + * @param {dealersUpdateManyAndReturnArgs} args - Arguments to update many Dealers. + * @example + * // Update many Dealers + * const dealers = await prisma.dealers.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Dealers and only return the `id` + * const dealersWithIdOnly = await prisma.dealers.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 Dealers. + * @param {dealersUpsertArgs} args - Arguments to update or create a Dealers. + * @example + * // Update or create a Dealers + * const dealers = await prisma.dealers.upsert({ + * create: { + * // ... data to create a Dealers + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Dealers we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Dealers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {dealersCountArgs} args - Arguments to filter Dealers to count. + * @example + * // Count the number of Dealers + * const count = await prisma.dealers.count({ + * where: { + * // ... the filter for the Dealers 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 Dealers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {DealersAggregateArgs} 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 Dealers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {dealersGroupByArgs} 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 dealersGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: dealersGroupByArgs['orderBy'] } + : { orderBy?: dealersGroupByArgs['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 ? GetDealersGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the dealers model + */ +readonly fields: dealersFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for dealers. + * 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__dealersClient 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 dealers model + */ +export interface dealersFieldRefs { + readonly id: Prisma.FieldRef<"dealers", 'String'> + readonly user_id: Prisma.FieldRef<"dealers", 'String'> + readonly email: Prisma.FieldRef<"dealers", 'String'> + readonly first_name: Prisma.FieldRef<"dealers", 'String'> + readonly last_name: Prisma.FieldRef<"dealers", 'String'> + readonly phone_number: Prisma.FieldRef<"dealers", 'String'> + readonly created_at: Prisma.FieldRef<"dealers", 'BigInt'> + readonly updated_at: Prisma.FieldRef<"dealers", 'BigInt'> + readonly created_by: Prisma.FieldRef<"dealers", 'String'> +} + + +// Custom InputTypes +/** + * dealers findUnique + */ +export type dealersFindUniqueArgs = { + /** + * Select specific fields to fetch from the dealers + */ + select?: Prisma.dealersSelect | null + /** + * Omit specific fields from the dealers + */ + omit?: Prisma.dealersOmit | null + /** + * Filter, which dealers to fetch. + */ + where: Prisma.dealersWhereUniqueInput +} + +/** + * dealers findUniqueOrThrow + */ +export type dealersFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the dealers + */ + select?: Prisma.dealersSelect | null + /** + * Omit specific fields from the dealers + */ + omit?: Prisma.dealersOmit | null + /** + * Filter, which dealers to fetch. + */ + where: Prisma.dealersWhereUniqueInput +} + +/** + * dealers findFirst + */ +export type dealersFindFirstArgs = { + /** + * Select specific fields to fetch from the dealers + */ + select?: Prisma.dealersSelect | null + /** + * Omit specific fields from the dealers + */ + omit?: Prisma.dealersOmit | null + /** + * Filter, which dealers to fetch. + */ + where?: Prisma.dealersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of dealers to fetch. + */ + orderBy?: Prisma.dealersOrderByWithRelationInput | Prisma.dealersOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for dealers. + */ + cursor?: Prisma.dealersWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` dealers 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` dealers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of dealers. + */ + distinct?: Prisma.DealersScalarFieldEnum | Prisma.DealersScalarFieldEnum[] +} + +/** + * dealers findFirstOrThrow + */ +export type dealersFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the dealers + */ + select?: Prisma.dealersSelect | null + /** + * Omit specific fields from the dealers + */ + omit?: Prisma.dealersOmit | null + /** + * Filter, which dealers to fetch. + */ + where?: Prisma.dealersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of dealers to fetch. + */ + orderBy?: Prisma.dealersOrderByWithRelationInput | Prisma.dealersOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for dealers. + */ + cursor?: Prisma.dealersWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` dealers 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` dealers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of dealers. + */ + distinct?: Prisma.DealersScalarFieldEnum | Prisma.DealersScalarFieldEnum[] +} + +/** + * dealers findMany + */ +export type dealersFindManyArgs = { + /** + * Select specific fields to fetch from the dealers + */ + select?: Prisma.dealersSelect | null + /** + * Omit specific fields from the dealers + */ + omit?: Prisma.dealersOmit | null + /** + * Filter, which dealers to fetch. + */ + where?: Prisma.dealersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of dealers to fetch. + */ + orderBy?: Prisma.dealersOrderByWithRelationInput | Prisma.dealersOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing dealers. + */ + cursor?: Prisma.dealersWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` dealers 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` dealers. + */ + skip?: number + distinct?: Prisma.DealersScalarFieldEnum | Prisma.DealersScalarFieldEnum[] +} + +/** + * dealers create + */ +export type dealersCreateArgs = { + /** + * Select specific fields to fetch from the dealers + */ + select?: Prisma.dealersSelect | null + /** + * Omit specific fields from the dealers + */ + omit?: Prisma.dealersOmit | null + /** + * The data needed to create a dealers. + */ + data: Prisma.XOR +} + +/** + * dealers createMany + */ +export type dealersCreateManyArgs = { + /** + * The data used to create many dealers. + */ + data: Prisma.dealersCreateManyInput | Prisma.dealersCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * dealers createManyAndReturn + */ +export type dealersCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the dealers + */ + select?: Prisma.dealersSelectCreateManyAndReturn | null + /** + * Omit specific fields from the dealers + */ + omit?: Prisma.dealersOmit | null + /** + * The data used to create many dealers. + */ + data: Prisma.dealersCreateManyInput | Prisma.dealersCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * dealers update + */ +export type dealersUpdateArgs = { + /** + * Select specific fields to fetch from the dealers + */ + select?: Prisma.dealersSelect | null + /** + * Omit specific fields from the dealers + */ + omit?: Prisma.dealersOmit | null + /** + * The data needed to update a dealers. + */ + data: Prisma.XOR + /** + * Choose, which dealers to update. + */ + where: Prisma.dealersWhereUniqueInput +} + +/** + * dealers updateMany + */ +export type dealersUpdateManyArgs = { + /** + * The data used to update dealers. + */ + data: Prisma.XOR + /** + * Filter which dealers to update + */ + where?: Prisma.dealersWhereInput + /** + * Limit how many dealers to update. + */ + limit?: number +} + +/** + * dealers updateManyAndReturn + */ +export type dealersUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the dealers + */ + select?: Prisma.dealersSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the dealers + */ + omit?: Prisma.dealersOmit | null + /** + * The data used to update dealers. + */ + data: Prisma.XOR + /** + * Filter which dealers to update + */ + where?: Prisma.dealersWhereInput + /** + * Limit how many dealers to update. + */ + limit?: number +} + +/** + * dealers upsert + */ +export type dealersUpsertArgs = { + /** + * Select specific fields to fetch from the dealers + */ + select?: Prisma.dealersSelect | null + /** + * Omit specific fields from the dealers + */ + omit?: Prisma.dealersOmit | null + /** + * The filter to search for the dealers to update in case it exists. + */ + where: Prisma.dealersWhereUniqueInput + /** + * In case the dealers found by the `where` argument doesn't exist, create a new dealers with this data. + */ + create: Prisma.XOR + /** + * In case the dealers was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * dealers delete + */ +export type dealersDeleteArgs = { + /** + * Select specific fields to fetch from the dealers + */ + select?: Prisma.dealersSelect | null + /** + * Omit specific fields from the dealers + */ + omit?: Prisma.dealersOmit | null + /** + * Filter which dealers to delete. + */ + where: Prisma.dealersWhereUniqueInput +} + +/** + * dealers deleteMany + */ +export type dealersDeleteManyArgs = { + /** + * Filter which dealers to delete + */ + where?: Prisma.dealersWhereInput + /** + * Limit how many dealers to delete. + */ + limit?: number +} + +/** + * dealers without action + */ +export type dealersDefaultArgs = { + /** + * Select specific fields to fetch from the dealers + */ + select?: Prisma.dealersSelect | null + /** + * Omit specific fields from the dealers + */ + omit?: Prisma.dealersOmit | null +} diff --git a/prisma/generated/legacy/models/employee_shift_template.ts b/prisma/generated/legacy/models/employee_shift_template.ts new file mode 100644 index 0000000..acca014 --- /dev/null +++ b/prisma/generated/legacy/models/employee_shift_template.ts @@ -0,0 +1,1270 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `employee_shift_template` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model employee_shift_template + * + */ +export type employee_shift_templateModel = runtime.Types.Result.DefaultSelection + +export type AggregateEmployee_shift_template = { + _count: Employee_shift_templateCountAggregateOutputType | null + _avg: Employee_shift_templateAvgAggregateOutputType | null + _sum: Employee_shift_templateSumAggregateOutputType | null + _min: Employee_shift_templateMinAggregateOutputType | null + _max: Employee_shift_templateMaxAggregateOutputType | null +} + +export type Employee_shift_templateAvgAggregateOutputType = { + start_time: number | null + end_time: number | null + created_at: number | null + updated_at: number | null +} + +export type Employee_shift_templateSumAggregateOutputType = { + start_time: bigint | null + end_time: bigint | null + created_at: bigint | null + updated_at: bigint | null +} + +export type Employee_shift_templateMinAggregateOutputType = { + id: string | null + employee_id: string | null + day_of_the_week: string | null + start_time: bigint | null + end_time: bigint | null + created_at: bigint | null + updated_at: bigint | null +} + +export type Employee_shift_templateMaxAggregateOutputType = { + id: string | null + employee_id: string | null + day_of_the_week: string | null + start_time: bigint | null + end_time: bigint | null + created_at: bigint | null + updated_at: bigint | null +} + +export type Employee_shift_templateCountAggregateOutputType = { + id: number + employee_id: number + day_of_the_week: number + start_time: number + end_time: number + created_at: number + updated_at: number + _all: number +} + + +export type Employee_shift_templateAvgAggregateInputType = { + start_time?: true + end_time?: true + created_at?: true + updated_at?: true +} + +export type Employee_shift_templateSumAggregateInputType = { + start_time?: true + end_time?: true + created_at?: true + updated_at?: true +} + +export type Employee_shift_templateMinAggregateInputType = { + id?: true + employee_id?: true + day_of_the_week?: true + start_time?: true + end_time?: true + created_at?: true + updated_at?: true +} + +export type Employee_shift_templateMaxAggregateInputType = { + id?: true + employee_id?: true + day_of_the_week?: true + start_time?: true + end_time?: true + created_at?: true + updated_at?: true +} + +export type Employee_shift_templateCountAggregateInputType = { + id?: true + employee_id?: true + day_of_the_week?: true + start_time?: true + end_time?: true + created_at?: true + updated_at?: true + _all?: true +} + +export type Employee_shift_templateAggregateArgs = { + /** + * Filter which employee_shift_template to aggregate. + */ + where?: Prisma.employee_shift_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of employee_shift_templates to fetch. + */ + orderBy?: Prisma.employee_shift_templateOrderByWithRelationInput | Prisma.employee_shift_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.employee_shift_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` employee_shift_templates 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` employee_shift_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned employee_shift_templates + **/ + _count?: true | Employee_shift_templateCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Employee_shift_templateAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Employee_shift_templateSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Employee_shift_templateMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Employee_shift_templateMaxAggregateInputType +} + +export type GetEmployee_shift_templateAggregateType = { + [P in keyof T & keyof AggregateEmployee_shift_template]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type employee_shift_templateGroupByArgs = { + where?: Prisma.employee_shift_templateWhereInput + orderBy?: Prisma.employee_shift_templateOrderByWithAggregationInput | Prisma.employee_shift_templateOrderByWithAggregationInput[] + by: Prisma.Employee_shift_templateScalarFieldEnum[] | Prisma.Employee_shift_templateScalarFieldEnum + having?: Prisma.employee_shift_templateScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Employee_shift_templateCountAggregateInputType | true + _avg?: Employee_shift_templateAvgAggregateInputType + _sum?: Employee_shift_templateSumAggregateInputType + _min?: Employee_shift_templateMinAggregateInputType + _max?: Employee_shift_templateMaxAggregateInputType +} + +export type Employee_shift_templateGroupByOutputType = { + id: string + employee_id: string + day_of_the_week: string + start_time: bigint + end_time: bigint + created_at: bigint + updated_at: bigint + _count: Employee_shift_templateCountAggregateOutputType | null + _avg: Employee_shift_templateAvgAggregateOutputType | null + _sum: Employee_shift_templateSumAggregateOutputType | null + _min: Employee_shift_templateMinAggregateOutputType | null + _max: Employee_shift_templateMaxAggregateOutputType | null +} + +type GetEmployee_shift_templateGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Employee_shift_templateGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type employee_shift_templateWhereInput = { + AND?: Prisma.employee_shift_templateWhereInput | Prisma.employee_shift_templateWhereInput[] + OR?: Prisma.employee_shift_templateWhereInput[] + NOT?: Prisma.employee_shift_templateWhereInput | Prisma.employee_shift_templateWhereInput[] + id?: Prisma.UuidFilter<"employee_shift_template"> | string + employee_id?: Prisma.StringFilter<"employee_shift_template"> | string + day_of_the_week?: Prisma.StringFilter<"employee_shift_template"> | string + start_time?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number + end_time?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number + created_at?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number + updated_at?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number +} + +export type employee_shift_templateOrderByWithRelationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + day_of_the_week?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type employee_shift_templateWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.employee_shift_templateWhereInput | Prisma.employee_shift_templateWhereInput[] + OR?: Prisma.employee_shift_templateWhereInput[] + NOT?: Prisma.employee_shift_templateWhereInput | Prisma.employee_shift_templateWhereInput[] + employee_id?: Prisma.StringFilter<"employee_shift_template"> | string + day_of_the_week?: Prisma.StringFilter<"employee_shift_template"> | string + start_time?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number + end_time?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number + created_at?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number + updated_at?: Prisma.BigIntFilter<"employee_shift_template"> | bigint | number +}, "id"> + +export type employee_shift_templateOrderByWithAggregationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + day_of_the_week?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + _count?: Prisma.employee_shift_templateCountOrderByAggregateInput + _avg?: Prisma.employee_shift_templateAvgOrderByAggregateInput + _max?: Prisma.employee_shift_templateMaxOrderByAggregateInput + _min?: Prisma.employee_shift_templateMinOrderByAggregateInput + _sum?: Prisma.employee_shift_templateSumOrderByAggregateInput +} + +export type employee_shift_templateScalarWhereWithAggregatesInput = { + AND?: Prisma.employee_shift_templateScalarWhereWithAggregatesInput | Prisma.employee_shift_templateScalarWhereWithAggregatesInput[] + OR?: Prisma.employee_shift_templateScalarWhereWithAggregatesInput[] + NOT?: Prisma.employee_shift_templateScalarWhereWithAggregatesInput | Prisma.employee_shift_templateScalarWhereWithAggregatesInput[] + id?: Prisma.UuidWithAggregatesFilter<"employee_shift_template"> | string + employee_id?: Prisma.StringWithAggregatesFilter<"employee_shift_template"> | string + day_of_the_week?: Prisma.StringWithAggregatesFilter<"employee_shift_template"> | string + start_time?: Prisma.BigIntWithAggregatesFilter<"employee_shift_template"> | bigint | number + end_time?: Prisma.BigIntWithAggregatesFilter<"employee_shift_template"> | bigint | number + created_at?: Prisma.BigIntWithAggregatesFilter<"employee_shift_template"> | bigint | number + updated_at?: Prisma.BigIntWithAggregatesFilter<"employee_shift_template"> | bigint | number +} + +export type employee_shift_templateCreateInput = { + id: string + employee_id: string + day_of_the_week: string + start_time: bigint | number + end_time: bigint | number + created_at: bigint | number + updated_at: bigint | number +} + +export type employee_shift_templateUncheckedCreateInput = { + id: string + employee_id: string + day_of_the_week: string + start_time: bigint | number + end_time: bigint | number + created_at: bigint | number + updated_at: bigint | number +} + +export type employee_shift_templateUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.StringFieldUpdateOperationsInput | string + day_of_the_week?: Prisma.StringFieldUpdateOperationsInput | string + start_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + end_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type employee_shift_templateUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.StringFieldUpdateOperationsInput | string + day_of_the_week?: Prisma.StringFieldUpdateOperationsInput | string + start_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + end_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type employee_shift_templateCreateManyInput = { + id: string + employee_id: string + day_of_the_week: string + start_time: bigint | number + end_time: bigint | number + created_at: bigint | number + updated_at: bigint | number +} + +export type employee_shift_templateUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.StringFieldUpdateOperationsInput | string + day_of_the_week?: Prisma.StringFieldUpdateOperationsInput | string + start_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + end_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type employee_shift_templateUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.StringFieldUpdateOperationsInput | string + day_of_the_week?: Prisma.StringFieldUpdateOperationsInput | string + start_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + end_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type employee_shift_templateCountOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + day_of_the_week?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type employee_shift_templateAvgOrderByAggregateInput = { + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type employee_shift_templateMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + day_of_the_week?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type employee_shift_templateMinOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + day_of_the_week?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type employee_shift_templateSumOrderByAggregateInput = { + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type BigIntFieldUpdateOperationsInput = { + set?: bigint | number + increment?: bigint | number + decrement?: bigint | number + multiply?: bigint | number + divide?: bigint | number +} + + + +export type employee_shift_templateSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + day_of_the_week?: boolean + start_time?: boolean + end_time?: boolean + created_at?: boolean + updated_at?: boolean +}, ExtArgs["result"]["employee_shift_template"]> + +export type employee_shift_templateSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + day_of_the_week?: boolean + start_time?: boolean + end_time?: boolean + created_at?: boolean + updated_at?: boolean +}, ExtArgs["result"]["employee_shift_template"]> + +export type employee_shift_templateSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + day_of_the_week?: boolean + start_time?: boolean + end_time?: boolean + created_at?: boolean + updated_at?: boolean +}, ExtArgs["result"]["employee_shift_template"]> + +export type employee_shift_templateSelectScalar = { + id?: boolean + employee_id?: boolean + day_of_the_week?: boolean + start_time?: boolean + end_time?: boolean + created_at?: boolean + updated_at?: boolean +} + +export type employee_shift_templateOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "day_of_the_week" | "start_time" | "end_time" | "created_at" | "updated_at", ExtArgs["result"]["employee_shift_template"]> + +export type $employee_shift_templatePayload = { + name: "employee_shift_template" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + employee_id: string + day_of_the_week: string + start_time: bigint + end_time: bigint + created_at: bigint + updated_at: bigint + }, ExtArgs["result"]["employee_shift_template"]> + composites: {} +} + +export type employee_shift_templateGetPayload = runtime.Types.Result.GetResult + +export type employee_shift_templateCountArgs = + Omit & { + select?: Employee_shift_templateCountAggregateInputType | true + } + +export interface employee_shift_templateDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['employee_shift_template'], meta: { name: 'employee_shift_template' } } + /** + * Find zero or one Employee_shift_template that matches the filter. + * @param {employee_shift_templateFindUniqueArgs} args - Arguments to find a Employee_shift_template + * @example + * // Get one Employee_shift_template + * const employee_shift_template = await prisma.employee_shift_template.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Employee_shift_template that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {employee_shift_templateFindUniqueOrThrowArgs} args - Arguments to find a Employee_shift_template + * @example + * // Get one Employee_shift_template + * const employee_shift_template = await prisma.employee_shift_template.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Employee_shift_template 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 {employee_shift_templateFindFirstArgs} args - Arguments to find a Employee_shift_template + * @example + * // Get one Employee_shift_template + * const employee_shift_template = await prisma.employee_shift_template.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Employee_shift_template 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 {employee_shift_templateFindFirstOrThrowArgs} args - Arguments to find a Employee_shift_template + * @example + * // Get one Employee_shift_template + * const employee_shift_template = await prisma.employee_shift_template.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Employee_shift_templates 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 {employee_shift_templateFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Employee_shift_templates + * const employee_shift_templates = await prisma.employee_shift_template.findMany() + * + * // Get first 10 Employee_shift_templates + * const employee_shift_templates = await prisma.employee_shift_template.findMany({ take: 10 }) + * + * // Only select the `id` + * const employee_shift_templateWithIdOnly = await prisma.employee_shift_template.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Employee_shift_template. + * @param {employee_shift_templateCreateArgs} args - Arguments to create a Employee_shift_template. + * @example + * // Create one Employee_shift_template + * const Employee_shift_template = await prisma.employee_shift_template.create({ + * data: { + * // ... data to create a Employee_shift_template + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Employee_shift_templates. + * @param {employee_shift_templateCreateManyArgs} args - Arguments to create many Employee_shift_templates. + * @example + * // Create many Employee_shift_templates + * const employee_shift_template = await prisma.employee_shift_template.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Employee_shift_templates and returns the data saved in the database. + * @param {employee_shift_templateCreateManyAndReturnArgs} args - Arguments to create many Employee_shift_templates. + * @example + * // Create many Employee_shift_templates + * const employee_shift_template = await prisma.employee_shift_template.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Employee_shift_templates and only return the `id` + * const employee_shift_templateWithIdOnly = await prisma.employee_shift_template.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 Employee_shift_template. + * @param {employee_shift_templateDeleteArgs} args - Arguments to delete one Employee_shift_template. + * @example + * // Delete one Employee_shift_template + * const Employee_shift_template = await prisma.employee_shift_template.delete({ + * where: { + * // ... filter to delete one Employee_shift_template + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Employee_shift_template. + * @param {employee_shift_templateUpdateArgs} args - Arguments to update one Employee_shift_template. + * @example + * // Update one Employee_shift_template + * const employee_shift_template = await prisma.employee_shift_template.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Employee_shift_templates. + * @param {employee_shift_templateDeleteManyArgs} args - Arguments to filter Employee_shift_templates to delete. + * @example + * // Delete a few Employee_shift_templates + * const { count } = await prisma.employee_shift_template.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Employee_shift_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {employee_shift_templateUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Employee_shift_templates + * const employee_shift_template = await prisma.employee_shift_template.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Employee_shift_templates and returns the data updated in the database. + * @param {employee_shift_templateUpdateManyAndReturnArgs} args - Arguments to update many Employee_shift_templates. + * @example + * // Update many Employee_shift_templates + * const employee_shift_template = await prisma.employee_shift_template.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Employee_shift_templates and only return the `id` + * const employee_shift_templateWithIdOnly = await prisma.employee_shift_template.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 Employee_shift_template. + * @param {employee_shift_templateUpsertArgs} args - Arguments to update or create a Employee_shift_template. + * @example + * // Update or create a Employee_shift_template + * const employee_shift_template = await prisma.employee_shift_template.upsert({ + * create: { + * // ... data to create a Employee_shift_template + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Employee_shift_template we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__employee_shift_templateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Employee_shift_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {employee_shift_templateCountArgs} args - Arguments to filter Employee_shift_templates to count. + * @example + * // Count the number of Employee_shift_templates + * const count = await prisma.employee_shift_template.count({ + * where: { + * // ... the filter for the Employee_shift_templates 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 Employee_shift_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Employee_shift_templateAggregateArgs} 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 Employee_shift_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {employee_shift_templateGroupByArgs} 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 employee_shift_templateGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: employee_shift_templateGroupByArgs['orderBy'] } + : { orderBy?: employee_shift_templateGroupByArgs['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 ? GetEmployee_shift_templateGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the employee_shift_template model + */ +readonly fields: employee_shift_templateFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for employee_shift_template. + * 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__employee_shift_templateClient 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 employee_shift_template model + */ +export interface employee_shift_templateFieldRefs { + readonly id: Prisma.FieldRef<"employee_shift_template", 'String'> + readonly employee_id: Prisma.FieldRef<"employee_shift_template", 'String'> + readonly day_of_the_week: Prisma.FieldRef<"employee_shift_template", 'String'> + readonly start_time: Prisma.FieldRef<"employee_shift_template", 'BigInt'> + readonly end_time: Prisma.FieldRef<"employee_shift_template", 'BigInt'> + readonly created_at: Prisma.FieldRef<"employee_shift_template", 'BigInt'> + readonly updated_at: Prisma.FieldRef<"employee_shift_template", 'BigInt'> +} + + +// Custom InputTypes +/** + * employee_shift_template findUnique + */ +export type employee_shift_templateFindUniqueArgs = { + /** + * Select specific fields to fetch from the employee_shift_template + */ + select?: Prisma.employee_shift_templateSelect | null + /** + * Omit specific fields from the employee_shift_template + */ + omit?: Prisma.employee_shift_templateOmit | null + /** + * Filter, which employee_shift_template to fetch. + */ + where: Prisma.employee_shift_templateWhereUniqueInput +} + +/** + * employee_shift_template findUniqueOrThrow + */ +export type employee_shift_templateFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the employee_shift_template + */ + select?: Prisma.employee_shift_templateSelect | null + /** + * Omit specific fields from the employee_shift_template + */ + omit?: Prisma.employee_shift_templateOmit | null + /** + * Filter, which employee_shift_template to fetch. + */ + where: Prisma.employee_shift_templateWhereUniqueInput +} + +/** + * employee_shift_template findFirst + */ +export type employee_shift_templateFindFirstArgs = { + /** + * Select specific fields to fetch from the employee_shift_template + */ + select?: Prisma.employee_shift_templateSelect | null + /** + * Omit specific fields from the employee_shift_template + */ + omit?: Prisma.employee_shift_templateOmit | null + /** + * Filter, which employee_shift_template to fetch. + */ + where?: Prisma.employee_shift_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of employee_shift_templates to fetch. + */ + orderBy?: Prisma.employee_shift_templateOrderByWithRelationInput | Prisma.employee_shift_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for employee_shift_templates. + */ + cursor?: Prisma.employee_shift_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` employee_shift_templates 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` employee_shift_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of employee_shift_templates. + */ + distinct?: Prisma.Employee_shift_templateScalarFieldEnum | Prisma.Employee_shift_templateScalarFieldEnum[] +} + +/** + * employee_shift_template findFirstOrThrow + */ +export type employee_shift_templateFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the employee_shift_template + */ + select?: Prisma.employee_shift_templateSelect | null + /** + * Omit specific fields from the employee_shift_template + */ + omit?: Prisma.employee_shift_templateOmit | null + /** + * Filter, which employee_shift_template to fetch. + */ + where?: Prisma.employee_shift_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of employee_shift_templates to fetch. + */ + orderBy?: Prisma.employee_shift_templateOrderByWithRelationInput | Prisma.employee_shift_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for employee_shift_templates. + */ + cursor?: Prisma.employee_shift_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` employee_shift_templates 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` employee_shift_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of employee_shift_templates. + */ + distinct?: Prisma.Employee_shift_templateScalarFieldEnum | Prisma.Employee_shift_templateScalarFieldEnum[] +} + +/** + * employee_shift_template findMany + */ +export type employee_shift_templateFindManyArgs = { + /** + * Select specific fields to fetch from the employee_shift_template + */ + select?: Prisma.employee_shift_templateSelect | null + /** + * Omit specific fields from the employee_shift_template + */ + omit?: Prisma.employee_shift_templateOmit | null + /** + * Filter, which employee_shift_templates to fetch. + */ + where?: Prisma.employee_shift_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of employee_shift_templates to fetch. + */ + orderBy?: Prisma.employee_shift_templateOrderByWithRelationInput | Prisma.employee_shift_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing employee_shift_templates. + */ + cursor?: Prisma.employee_shift_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` employee_shift_templates 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` employee_shift_templates. + */ + skip?: number + distinct?: Prisma.Employee_shift_templateScalarFieldEnum | Prisma.Employee_shift_templateScalarFieldEnum[] +} + +/** + * employee_shift_template create + */ +export type employee_shift_templateCreateArgs = { + /** + * Select specific fields to fetch from the employee_shift_template + */ + select?: Prisma.employee_shift_templateSelect | null + /** + * Omit specific fields from the employee_shift_template + */ + omit?: Prisma.employee_shift_templateOmit | null + /** + * The data needed to create a employee_shift_template. + */ + data: Prisma.XOR +} + +/** + * employee_shift_template createMany + */ +export type employee_shift_templateCreateManyArgs = { + /** + * The data used to create many employee_shift_templates. + */ + data: Prisma.employee_shift_templateCreateManyInput | Prisma.employee_shift_templateCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * employee_shift_template createManyAndReturn + */ +export type employee_shift_templateCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the employee_shift_template + */ + select?: Prisma.employee_shift_templateSelectCreateManyAndReturn | null + /** + * Omit specific fields from the employee_shift_template + */ + omit?: Prisma.employee_shift_templateOmit | null + /** + * The data used to create many employee_shift_templates. + */ + data: Prisma.employee_shift_templateCreateManyInput | Prisma.employee_shift_templateCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * employee_shift_template update + */ +export type employee_shift_templateUpdateArgs = { + /** + * Select specific fields to fetch from the employee_shift_template + */ + select?: Prisma.employee_shift_templateSelect | null + /** + * Omit specific fields from the employee_shift_template + */ + omit?: Prisma.employee_shift_templateOmit | null + /** + * The data needed to update a employee_shift_template. + */ + data: Prisma.XOR + /** + * Choose, which employee_shift_template to update. + */ + where: Prisma.employee_shift_templateWhereUniqueInput +} + +/** + * employee_shift_template updateMany + */ +export type employee_shift_templateUpdateManyArgs = { + /** + * The data used to update employee_shift_templates. + */ + data: Prisma.XOR + /** + * Filter which employee_shift_templates to update + */ + where?: Prisma.employee_shift_templateWhereInput + /** + * Limit how many employee_shift_templates to update. + */ + limit?: number +} + +/** + * employee_shift_template updateManyAndReturn + */ +export type employee_shift_templateUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the employee_shift_template + */ + select?: Prisma.employee_shift_templateSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the employee_shift_template + */ + omit?: Prisma.employee_shift_templateOmit | null + /** + * The data used to update employee_shift_templates. + */ + data: Prisma.XOR + /** + * Filter which employee_shift_templates to update + */ + where?: Prisma.employee_shift_templateWhereInput + /** + * Limit how many employee_shift_templates to update. + */ + limit?: number +} + +/** + * employee_shift_template upsert + */ +export type employee_shift_templateUpsertArgs = { + /** + * Select specific fields to fetch from the employee_shift_template + */ + select?: Prisma.employee_shift_templateSelect | null + /** + * Omit specific fields from the employee_shift_template + */ + omit?: Prisma.employee_shift_templateOmit | null + /** + * The filter to search for the employee_shift_template to update in case it exists. + */ + where: Prisma.employee_shift_templateWhereUniqueInput + /** + * In case the employee_shift_template found by the `where` argument doesn't exist, create a new employee_shift_template with this data. + */ + create: Prisma.XOR + /** + * In case the employee_shift_template was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * employee_shift_template delete + */ +export type employee_shift_templateDeleteArgs = { + /** + * Select specific fields to fetch from the employee_shift_template + */ + select?: Prisma.employee_shift_templateSelect | null + /** + * Omit specific fields from the employee_shift_template + */ + omit?: Prisma.employee_shift_templateOmit | null + /** + * Filter which employee_shift_template to delete. + */ + where: Prisma.employee_shift_templateWhereUniqueInput +} + +/** + * employee_shift_template deleteMany + */ +export type employee_shift_templateDeleteManyArgs = { + /** + * Filter which employee_shift_templates to delete + */ + where?: Prisma.employee_shift_templateWhereInput + /** + * Limit how many employee_shift_templates to delete. + */ + limit?: number +} + +/** + * employee_shift_template without action + */ +export type employee_shift_templateDefaultArgs = { + /** + * Select specific fields to fetch from the employee_shift_template + */ + select?: Prisma.employee_shift_templateSelect | null + /** + * Omit specific fields from the employee_shift_template + */ + omit?: Prisma.employee_shift_templateOmit | null +} diff --git a/prisma/generated/legacy/models/employees.ts b/prisma/generated/legacy/models/employees.ts new file mode 100644 index 0000000..ac161ef --- /dev/null +++ b/prisma/generated/legacy/models/employees.ts @@ -0,0 +1,1608 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `employees` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model employees + * + */ +export type employeesModel = runtime.Types.Result.DefaultSelection + +export type AggregateEmployees = { + _count: EmployeesCountAggregateOutputType | null + _avg: EmployeesAvgAggregateOutputType | null + _sum: EmployeesSumAggregateOutputType | null + _min: EmployeesMinAggregateOutputType | null + _max: EmployeesMaxAggregateOutputType | null +} + +export type EmployeesAvgAggregateOutputType = { + company: number | null + onboarding: number | null + offboarding: number | null + regular_hours_day: number | null + hours_bank_max: number | null + created_at: number | null + updated_at: number | null +} + +export type EmployeesSumAggregateOutputType = { + company: number | null + onboarding: bigint | null + offboarding: bigint | null + regular_hours_day: number | null + hours_bank_max: number | null + created_at: bigint | null + updated_at: bigint | null +} + +export type EmployeesMinAggregateOutputType = { + id: string | null + user_id: string | null + employee_number: string | null + email: string | null + first_name: string | null + last_name: string | null + phone_number: string | null + job_title: string | null + company: number | null + supervisor: string | null + is_supervisor: boolean | null + onboarding: bigint | null + offboarding: bigint | null + regular_hours_day: number | null + hours_bank_max: number | null + created_at: bigint | null + updated_at: bigint | null + created_by: string | null +} + +export type EmployeesMaxAggregateOutputType = { + id: string | null + user_id: string | null + employee_number: string | null + email: string | null + first_name: string | null + last_name: string | null + phone_number: string | null + job_title: string | null + company: number | null + supervisor: string | null + is_supervisor: boolean | null + onboarding: bigint | null + offboarding: bigint | null + regular_hours_day: number | null + hours_bank_max: number | null + created_at: bigint | null + updated_at: bigint | null + created_by: string | null +} + +export type EmployeesCountAggregateOutputType = { + id: number + user_id: number + employee_number: number + email: number + first_name: number + last_name: number + phone_number: number + job_title: number + company: number + supervisor: number + is_supervisor: number + onboarding: number + offboarding: number + regular_hours_day: number + hours_bank_max: number + created_at: number + updated_at: number + created_by: number + _all: number +} + + +export type EmployeesAvgAggregateInputType = { + company?: true + onboarding?: true + offboarding?: true + regular_hours_day?: true + hours_bank_max?: true + created_at?: true + updated_at?: true +} + +export type EmployeesSumAggregateInputType = { + company?: true + onboarding?: true + offboarding?: true + regular_hours_day?: true + hours_bank_max?: true + created_at?: true + updated_at?: true +} + +export type EmployeesMinAggregateInputType = { + id?: true + user_id?: true + employee_number?: true + email?: true + first_name?: true + last_name?: true + phone_number?: true + job_title?: true + company?: true + supervisor?: true + is_supervisor?: true + onboarding?: true + offboarding?: true + regular_hours_day?: true + hours_bank_max?: true + created_at?: true + updated_at?: true + created_by?: true +} + +export type EmployeesMaxAggregateInputType = { + id?: true + user_id?: true + employee_number?: true + email?: true + first_name?: true + last_name?: true + phone_number?: true + job_title?: true + company?: true + supervisor?: true + is_supervisor?: true + onboarding?: true + offboarding?: true + regular_hours_day?: true + hours_bank_max?: true + created_at?: true + updated_at?: true + created_by?: true +} + +export type EmployeesCountAggregateInputType = { + id?: true + user_id?: true + employee_number?: true + email?: true + first_name?: true + last_name?: true + phone_number?: true + job_title?: true + company?: true + supervisor?: true + is_supervisor?: true + onboarding?: true + offboarding?: true + regular_hours_day?: true + hours_bank_max?: true + created_at?: true + updated_at?: true + created_by?: true + _all?: true +} + +export type EmployeesAggregateArgs = { + /** + * Filter which employees to aggregate. + */ + where?: Prisma.employeesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of employees to fetch. + */ + orderBy?: Prisma.employeesOrderByWithRelationInput | Prisma.employeesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.employeesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` employees 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` employees. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned employees + **/ + _count?: true | EmployeesCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: EmployeesAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: EmployeesSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: EmployeesMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: EmployeesMaxAggregateInputType +} + +export type GetEmployeesAggregateType = { + [P in keyof T & keyof AggregateEmployees]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type employeesGroupByArgs = { + where?: Prisma.employeesWhereInput + orderBy?: Prisma.employeesOrderByWithAggregationInput | Prisma.employeesOrderByWithAggregationInput[] + by: Prisma.EmployeesScalarFieldEnum[] | Prisma.EmployeesScalarFieldEnum + having?: Prisma.employeesScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: EmployeesCountAggregateInputType | true + _avg?: EmployeesAvgAggregateInputType + _sum?: EmployeesSumAggregateInputType + _min?: EmployeesMinAggregateInputType + _max?: EmployeesMaxAggregateInputType +} + +export type EmployeesGroupByOutputType = { + id: string + user_id: string | null + employee_number: string | null + email: string | null + first_name: string | null + last_name: string | null + phone_number: string | null + job_title: string | null + company: number | null + supervisor: string | null + is_supervisor: boolean | null + onboarding: bigint | null + offboarding: bigint | null + regular_hours_day: number | null + hours_bank_max: number | null + created_at: bigint | null + updated_at: bigint | null + created_by: string | null + _count: EmployeesCountAggregateOutputType | null + _avg: EmployeesAvgAggregateOutputType | null + _sum: EmployeesSumAggregateOutputType | null + _min: EmployeesMinAggregateOutputType | null + _max: EmployeesMaxAggregateOutputType | null +} + +type GetEmployeesGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof EmployeesGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type employeesWhereInput = { + AND?: Prisma.employeesWhereInput | Prisma.employeesWhereInput[] + OR?: Prisma.employeesWhereInput[] + NOT?: Prisma.employeesWhereInput | Prisma.employeesWhereInput[] + id?: Prisma.UuidFilter<"employees"> | string + user_id?: Prisma.StringNullableFilter<"employees"> | string | null + employee_number?: Prisma.StringNullableFilter<"employees"> | string | null + email?: Prisma.StringNullableFilter<"employees"> | string | null + first_name?: Prisma.StringNullableFilter<"employees"> | string | null + last_name?: Prisma.StringNullableFilter<"employees"> | string | null + phone_number?: Prisma.StringNullableFilter<"employees"> | string | null + job_title?: Prisma.StringNullableFilter<"employees"> | string | null + company?: Prisma.IntNullableFilter<"employees"> | number | null + supervisor?: Prisma.StringNullableFilter<"employees"> | string | null + is_supervisor?: Prisma.BoolNullableFilter<"employees"> | boolean | null + onboarding?: Prisma.BigIntNullableFilter<"employees"> | bigint | number | null + offboarding?: Prisma.BigIntNullableFilter<"employees"> | bigint | number | null + regular_hours_day?: Prisma.FloatNullableFilter<"employees"> | number | null + hours_bank_max?: Prisma.IntNullableFilter<"employees"> | number | null + created_at?: Prisma.BigIntNullableFilter<"employees"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"employees"> | bigint | number | null + created_by?: Prisma.StringNullableFilter<"employees"> | string | null +} + +export type employeesOrderByWithRelationInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrderInput | Prisma.SortOrder + employee_number?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + first_name?: Prisma.SortOrderInput | Prisma.SortOrder + last_name?: Prisma.SortOrderInput | Prisma.SortOrder + phone_number?: Prisma.SortOrderInput | Prisma.SortOrder + job_title?: Prisma.SortOrderInput | Prisma.SortOrder + company?: Prisma.SortOrderInput | Prisma.SortOrder + supervisor?: Prisma.SortOrderInput | Prisma.SortOrder + is_supervisor?: Prisma.SortOrderInput | Prisma.SortOrder + onboarding?: Prisma.SortOrderInput | Prisma.SortOrder + offboarding?: Prisma.SortOrderInput | Prisma.SortOrder + regular_hours_day?: Prisma.SortOrderInput | Prisma.SortOrder + hours_bank_max?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + created_by?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type employeesWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.employeesWhereInput | Prisma.employeesWhereInput[] + OR?: Prisma.employeesWhereInput[] + NOT?: Prisma.employeesWhereInput | Prisma.employeesWhereInput[] + user_id?: Prisma.StringNullableFilter<"employees"> | string | null + employee_number?: Prisma.StringNullableFilter<"employees"> | string | null + email?: Prisma.StringNullableFilter<"employees"> | string | null + first_name?: Prisma.StringNullableFilter<"employees"> | string | null + last_name?: Prisma.StringNullableFilter<"employees"> | string | null + phone_number?: Prisma.StringNullableFilter<"employees"> | string | null + job_title?: Prisma.StringNullableFilter<"employees"> | string | null + company?: Prisma.IntNullableFilter<"employees"> | number | null + supervisor?: Prisma.StringNullableFilter<"employees"> | string | null + is_supervisor?: Prisma.BoolNullableFilter<"employees"> | boolean | null + onboarding?: Prisma.BigIntNullableFilter<"employees"> | bigint | number | null + offboarding?: Prisma.BigIntNullableFilter<"employees"> | bigint | number | null + regular_hours_day?: Prisma.FloatNullableFilter<"employees"> | number | null + hours_bank_max?: Prisma.IntNullableFilter<"employees"> | number | null + created_at?: Prisma.BigIntNullableFilter<"employees"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"employees"> | bigint | number | null + created_by?: Prisma.StringNullableFilter<"employees"> | string | null +}, "id"> + +export type employeesOrderByWithAggregationInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrderInput | Prisma.SortOrder + employee_number?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + first_name?: Prisma.SortOrderInput | Prisma.SortOrder + last_name?: Prisma.SortOrderInput | Prisma.SortOrder + phone_number?: Prisma.SortOrderInput | Prisma.SortOrder + job_title?: Prisma.SortOrderInput | Prisma.SortOrder + company?: Prisma.SortOrderInput | Prisma.SortOrder + supervisor?: Prisma.SortOrderInput | Prisma.SortOrder + is_supervisor?: Prisma.SortOrderInput | Prisma.SortOrder + onboarding?: Prisma.SortOrderInput | Prisma.SortOrder + offboarding?: Prisma.SortOrderInput | Prisma.SortOrder + regular_hours_day?: Prisma.SortOrderInput | Prisma.SortOrder + hours_bank_max?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + created_by?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.employeesCountOrderByAggregateInput + _avg?: Prisma.employeesAvgOrderByAggregateInput + _max?: Prisma.employeesMaxOrderByAggregateInput + _min?: Prisma.employeesMinOrderByAggregateInput + _sum?: Prisma.employeesSumOrderByAggregateInput +} + +export type employeesScalarWhereWithAggregatesInput = { + AND?: Prisma.employeesScalarWhereWithAggregatesInput | Prisma.employeesScalarWhereWithAggregatesInput[] + OR?: Prisma.employeesScalarWhereWithAggregatesInput[] + NOT?: Prisma.employeesScalarWhereWithAggregatesInput | Prisma.employeesScalarWhereWithAggregatesInput[] + id?: Prisma.UuidWithAggregatesFilter<"employees"> | string + user_id?: Prisma.StringNullableWithAggregatesFilter<"employees"> | string | null + employee_number?: Prisma.StringNullableWithAggregatesFilter<"employees"> | string | null + email?: Prisma.StringNullableWithAggregatesFilter<"employees"> | string | null + first_name?: Prisma.StringNullableWithAggregatesFilter<"employees"> | string | null + last_name?: Prisma.StringNullableWithAggregatesFilter<"employees"> | string | null + phone_number?: Prisma.StringNullableWithAggregatesFilter<"employees"> | string | null + job_title?: Prisma.StringNullableWithAggregatesFilter<"employees"> | string | null + company?: Prisma.IntNullableWithAggregatesFilter<"employees"> | number | null + supervisor?: Prisma.StringNullableWithAggregatesFilter<"employees"> | string | null + is_supervisor?: Prisma.BoolNullableWithAggregatesFilter<"employees"> | boolean | null + onboarding?: Prisma.BigIntNullableWithAggregatesFilter<"employees"> | bigint | number | null + offboarding?: Prisma.BigIntNullableWithAggregatesFilter<"employees"> | bigint | number | null + regular_hours_day?: Prisma.FloatNullableWithAggregatesFilter<"employees"> | number | null + hours_bank_max?: Prisma.IntNullableWithAggregatesFilter<"employees"> | number | null + created_at?: Prisma.BigIntNullableWithAggregatesFilter<"employees"> | bigint | number | null + updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"employees"> | bigint | number | null + created_by?: Prisma.StringNullableWithAggregatesFilter<"employees"> | string | null +} + +export type employeesCreateInput = { + id: string + user_id?: string | null + employee_number?: string | null + email?: string | null + first_name?: string | null + last_name?: string | null + phone_number?: string | null + job_title?: string | null + company?: number | null + supervisor?: string | null + is_supervisor?: boolean | null + onboarding?: bigint | number | null + offboarding?: bigint | number | null + regular_hours_day?: number | null + hours_bank_max?: number | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + created_by?: string | null +} + +export type employeesUncheckedCreateInput = { + id: string + user_id?: string | null + employee_number?: string | null + email?: string | null + first_name?: string | null + last_name?: string | null + phone_number?: string | null + job_title?: string | null + company?: number | null + supervisor?: string | null + is_supervisor?: boolean | null + onboarding?: bigint | number | null + offboarding?: bigint | number | null + regular_hours_day?: number | null + hours_bank_max?: number | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + created_by?: string | null +} + +export type employeesUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + employee_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + company?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + supervisor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + onboarding?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + offboarding?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + regular_hours_day?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + hours_bank_max?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type employeesUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + employee_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + company?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + supervisor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + onboarding?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + offboarding?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + regular_hours_day?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + hours_bank_max?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type employeesCreateManyInput = { + id: string + user_id?: string | null + employee_number?: string | null + email?: string | null + first_name?: string | null + last_name?: string | null + phone_number?: string | null + job_title?: string | null + company?: number | null + supervisor?: string | null + is_supervisor?: boolean | null + onboarding?: bigint | number | null + offboarding?: bigint | number | null + regular_hours_day?: number | null + hours_bank_max?: number | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + created_by?: string | null +} + +export type employeesUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + employee_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + company?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + supervisor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + onboarding?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + offboarding?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + regular_hours_day?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + hours_bank_max?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type employeesUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + employee_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + company?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + supervisor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + onboarding?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + offboarding?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + regular_hours_day?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + hours_bank_max?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type employeesCountOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + employee_number?: Prisma.SortOrder + email?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + phone_number?: Prisma.SortOrder + job_title?: Prisma.SortOrder + company?: Prisma.SortOrder + supervisor?: Prisma.SortOrder + is_supervisor?: Prisma.SortOrder + onboarding?: Prisma.SortOrder + offboarding?: Prisma.SortOrder + regular_hours_day?: Prisma.SortOrder + hours_bank_max?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + created_by?: Prisma.SortOrder +} + +export type employeesAvgOrderByAggregateInput = { + company?: Prisma.SortOrder + onboarding?: Prisma.SortOrder + offboarding?: Prisma.SortOrder + regular_hours_day?: Prisma.SortOrder + hours_bank_max?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type employeesMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + employee_number?: Prisma.SortOrder + email?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + phone_number?: Prisma.SortOrder + job_title?: Prisma.SortOrder + company?: Prisma.SortOrder + supervisor?: Prisma.SortOrder + is_supervisor?: Prisma.SortOrder + onboarding?: Prisma.SortOrder + offboarding?: Prisma.SortOrder + regular_hours_day?: Prisma.SortOrder + hours_bank_max?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + created_by?: Prisma.SortOrder +} + +export type employeesMinOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + employee_number?: Prisma.SortOrder + email?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + phone_number?: Prisma.SortOrder + job_title?: Prisma.SortOrder + company?: Prisma.SortOrder + supervisor?: Prisma.SortOrder + is_supervisor?: Prisma.SortOrder + onboarding?: Prisma.SortOrder + offboarding?: Prisma.SortOrder + regular_hours_day?: Prisma.SortOrder + hours_bank_max?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + created_by?: Prisma.SortOrder +} + +export type employeesSumOrderByAggregateInput = { + company?: Prisma.SortOrder + onboarding?: Prisma.SortOrder + offboarding?: Prisma.SortOrder + regular_hours_day?: Prisma.SortOrder + hours_bank_max?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type NullableIntFieldUpdateOperationsInput = { + set?: number | null + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type NullableBoolFieldUpdateOperationsInput = { + set?: boolean | null +} + +export type NullableFloatFieldUpdateOperationsInput = { + set?: number | null + increment?: number + decrement?: number + multiply?: number + divide?: number +} + + + +export type employeesSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + employee_number?: boolean + email?: boolean + first_name?: boolean + last_name?: boolean + phone_number?: boolean + job_title?: boolean + company?: boolean + supervisor?: boolean + is_supervisor?: boolean + onboarding?: boolean + offboarding?: boolean + regular_hours_day?: boolean + hours_bank_max?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean +}, ExtArgs["result"]["employees"]> + +export type employeesSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + employee_number?: boolean + email?: boolean + first_name?: boolean + last_name?: boolean + phone_number?: boolean + job_title?: boolean + company?: boolean + supervisor?: boolean + is_supervisor?: boolean + onboarding?: boolean + offboarding?: boolean + regular_hours_day?: boolean + hours_bank_max?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean +}, ExtArgs["result"]["employees"]> + +export type employeesSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + employee_number?: boolean + email?: boolean + first_name?: boolean + last_name?: boolean + phone_number?: boolean + job_title?: boolean + company?: boolean + supervisor?: boolean + is_supervisor?: boolean + onboarding?: boolean + offboarding?: boolean + regular_hours_day?: boolean + hours_bank_max?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean +}, ExtArgs["result"]["employees"]> + +export type employeesSelectScalar = { + id?: boolean + user_id?: boolean + employee_number?: boolean + email?: boolean + first_name?: boolean + last_name?: boolean + phone_number?: boolean + job_title?: boolean + company?: boolean + supervisor?: boolean + is_supervisor?: boolean + onboarding?: boolean + offboarding?: boolean + regular_hours_day?: boolean + hours_bank_max?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean +} + +export type employeesOmit = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "employee_number" | "email" | "first_name" | "last_name" | "phone_number" | "job_title" | "company" | "supervisor" | "is_supervisor" | "onboarding" | "offboarding" | "regular_hours_day" | "hours_bank_max" | "created_at" | "updated_at" | "created_by", ExtArgs["result"]["employees"]> + +export type $employeesPayload = { + name: "employees" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + user_id: string | null + employee_number: string | null + email: string | null + first_name: string | null + last_name: string | null + phone_number: string | null + job_title: string | null + company: number | null + supervisor: string | null + is_supervisor: boolean | null + onboarding: bigint | null + offboarding: bigint | null + regular_hours_day: number | null + hours_bank_max: number | null + created_at: bigint | null + updated_at: bigint | null + created_by: string | null + }, ExtArgs["result"]["employees"]> + composites: {} +} + +export type employeesGetPayload = runtime.Types.Result.GetResult + +export type employeesCountArgs = + Omit & { + select?: EmployeesCountAggregateInputType | true + } + +export interface employeesDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['employees'], meta: { name: 'employees' } } + /** + * Find zero or one Employees that matches the filter. + * @param {employeesFindUniqueArgs} args - Arguments to find a Employees + * @example + * // Get one Employees + * const employees = await prisma.employees.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__employeesClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Employees that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {employeesFindUniqueOrThrowArgs} args - Arguments to find a Employees + * @example + * // Get one Employees + * const employees = await prisma.employees.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__employeesClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Employees 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 {employeesFindFirstArgs} args - Arguments to find a Employees + * @example + * // Get one Employees + * const employees = await prisma.employees.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__employeesClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Employees 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 {employeesFindFirstOrThrowArgs} args - Arguments to find a Employees + * @example + * // Get one Employees + * const employees = await prisma.employees.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__employeesClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Employees 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 {employeesFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Employees + * const employees = await prisma.employees.findMany() + * + * // Get first 10 Employees + * const employees = await prisma.employees.findMany({ take: 10 }) + * + * // Only select the `id` + * const employeesWithIdOnly = await prisma.employees.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Employees. + * @param {employeesCreateArgs} args - Arguments to create a Employees. + * @example + * // Create one Employees + * const Employees = await prisma.employees.create({ + * data: { + * // ... data to create a Employees + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__employeesClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Employees. + * @param {employeesCreateManyArgs} args - Arguments to create many Employees. + * @example + * // Create many Employees + * const employees = await prisma.employees.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Employees and returns the data saved in the database. + * @param {employeesCreateManyAndReturnArgs} args - Arguments to create many Employees. + * @example + * // Create many Employees + * const employees = await prisma.employees.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Employees and only return the `id` + * const employeesWithIdOnly = await prisma.employees.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 Employees. + * @param {employeesDeleteArgs} args - Arguments to delete one Employees. + * @example + * // Delete one Employees + * const Employees = await prisma.employees.delete({ + * where: { + * // ... filter to delete one Employees + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__employeesClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Employees. + * @param {employeesUpdateArgs} args - Arguments to update one Employees. + * @example + * // Update one Employees + * const employees = await prisma.employees.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__employeesClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Employees. + * @param {employeesDeleteManyArgs} args - Arguments to filter Employees to delete. + * @example + * // Delete a few Employees + * const { count } = await prisma.employees.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Employees. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {employeesUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Employees + * const employees = await prisma.employees.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Employees and returns the data updated in the database. + * @param {employeesUpdateManyAndReturnArgs} args - Arguments to update many Employees. + * @example + * // Update many Employees + * const employees = await prisma.employees.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Employees and only return the `id` + * const employeesWithIdOnly = await prisma.employees.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 Employees. + * @param {employeesUpsertArgs} args - Arguments to update or create a Employees. + * @example + * // Update or create a Employees + * const employees = await prisma.employees.upsert({ + * create: { + * // ... data to create a Employees + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Employees we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__employeesClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Employees. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {employeesCountArgs} args - Arguments to filter Employees to count. + * @example + * // Count the number of Employees + * const count = await prisma.employees.count({ + * where: { + * // ... the filter for the Employees 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 Employees. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EmployeesAggregateArgs} 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 Employees. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {employeesGroupByArgs} 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 employeesGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: employeesGroupByArgs['orderBy'] } + : { orderBy?: employeesGroupByArgs['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 ? GetEmployeesGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the employees model + */ +readonly fields: employeesFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for employees. + * 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__employeesClient 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 employees model + */ +export interface employeesFieldRefs { + readonly id: Prisma.FieldRef<"employees", 'String'> + readonly user_id: Prisma.FieldRef<"employees", 'String'> + readonly employee_number: Prisma.FieldRef<"employees", 'String'> + readonly email: Prisma.FieldRef<"employees", 'String'> + readonly first_name: Prisma.FieldRef<"employees", 'String'> + readonly last_name: Prisma.FieldRef<"employees", 'String'> + readonly phone_number: Prisma.FieldRef<"employees", 'String'> + readonly job_title: Prisma.FieldRef<"employees", 'String'> + readonly company: Prisma.FieldRef<"employees", 'Int'> + readonly supervisor: Prisma.FieldRef<"employees", 'String'> + readonly is_supervisor: Prisma.FieldRef<"employees", 'Boolean'> + readonly onboarding: Prisma.FieldRef<"employees", 'BigInt'> + readonly offboarding: Prisma.FieldRef<"employees", 'BigInt'> + readonly regular_hours_day: Prisma.FieldRef<"employees", 'Float'> + readonly hours_bank_max: Prisma.FieldRef<"employees", 'Int'> + readonly created_at: Prisma.FieldRef<"employees", 'BigInt'> + readonly updated_at: Prisma.FieldRef<"employees", 'BigInt'> + readonly created_by: Prisma.FieldRef<"employees", 'String'> +} + + +// Custom InputTypes +/** + * employees findUnique + */ +export type employeesFindUniqueArgs = { + /** + * Select specific fields to fetch from the employees + */ + select?: Prisma.employeesSelect | null + /** + * Omit specific fields from the employees + */ + omit?: Prisma.employeesOmit | null + /** + * Filter, which employees to fetch. + */ + where: Prisma.employeesWhereUniqueInput +} + +/** + * employees findUniqueOrThrow + */ +export type employeesFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the employees + */ + select?: Prisma.employeesSelect | null + /** + * Omit specific fields from the employees + */ + omit?: Prisma.employeesOmit | null + /** + * Filter, which employees to fetch. + */ + where: Prisma.employeesWhereUniqueInput +} + +/** + * employees findFirst + */ +export type employeesFindFirstArgs = { + /** + * Select specific fields to fetch from the employees + */ + select?: Prisma.employeesSelect | null + /** + * Omit specific fields from the employees + */ + omit?: Prisma.employeesOmit | null + /** + * Filter, which employees to fetch. + */ + where?: Prisma.employeesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of employees to fetch. + */ + orderBy?: Prisma.employeesOrderByWithRelationInput | Prisma.employeesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for employees. + */ + cursor?: Prisma.employeesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` employees 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` employees. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of employees. + */ + distinct?: Prisma.EmployeesScalarFieldEnum | Prisma.EmployeesScalarFieldEnum[] +} + +/** + * employees findFirstOrThrow + */ +export type employeesFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the employees + */ + select?: Prisma.employeesSelect | null + /** + * Omit specific fields from the employees + */ + omit?: Prisma.employeesOmit | null + /** + * Filter, which employees to fetch. + */ + where?: Prisma.employeesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of employees to fetch. + */ + orderBy?: Prisma.employeesOrderByWithRelationInput | Prisma.employeesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for employees. + */ + cursor?: Prisma.employeesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` employees 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` employees. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of employees. + */ + distinct?: Prisma.EmployeesScalarFieldEnum | Prisma.EmployeesScalarFieldEnum[] +} + +/** + * employees findMany + */ +export type employeesFindManyArgs = { + /** + * Select specific fields to fetch from the employees + */ + select?: Prisma.employeesSelect | null + /** + * Omit specific fields from the employees + */ + omit?: Prisma.employeesOmit | null + /** + * Filter, which employees to fetch. + */ + where?: Prisma.employeesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of employees to fetch. + */ + orderBy?: Prisma.employeesOrderByWithRelationInput | Prisma.employeesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing employees. + */ + cursor?: Prisma.employeesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` employees 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` employees. + */ + skip?: number + distinct?: Prisma.EmployeesScalarFieldEnum | Prisma.EmployeesScalarFieldEnum[] +} + +/** + * employees create + */ +export type employeesCreateArgs = { + /** + * Select specific fields to fetch from the employees + */ + select?: Prisma.employeesSelect | null + /** + * Omit specific fields from the employees + */ + omit?: Prisma.employeesOmit | null + /** + * The data needed to create a employees. + */ + data: Prisma.XOR +} + +/** + * employees createMany + */ +export type employeesCreateManyArgs = { + /** + * The data used to create many employees. + */ + data: Prisma.employeesCreateManyInput | Prisma.employeesCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * employees createManyAndReturn + */ +export type employeesCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the employees + */ + select?: Prisma.employeesSelectCreateManyAndReturn | null + /** + * Omit specific fields from the employees + */ + omit?: Prisma.employeesOmit | null + /** + * The data used to create many employees. + */ + data: Prisma.employeesCreateManyInput | Prisma.employeesCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * employees update + */ +export type employeesUpdateArgs = { + /** + * Select specific fields to fetch from the employees + */ + select?: Prisma.employeesSelect | null + /** + * Omit specific fields from the employees + */ + omit?: Prisma.employeesOmit | null + /** + * The data needed to update a employees. + */ + data: Prisma.XOR + /** + * Choose, which employees to update. + */ + where: Prisma.employeesWhereUniqueInput +} + +/** + * employees updateMany + */ +export type employeesUpdateManyArgs = { + /** + * The data used to update employees. + */ + data: Prisma.XOR + /** + * Filter which employees to update + */ + where?: Prisma.employeesWhereInput + /** + * Limit how many employees to update. + */ + limit?: number +} + +/** + * employees updateManyAndReturn + */ +export type employeesUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the employees + */ + select?: Prisma.employeesSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the employees + */ + omit?: Prisma.employeesOmit | null + /** + * The data used to update employees. + */ + data: Prisma.XOR + /** + * Filter which employees to update + */ + where?: Prisma.employeesWhereInput + /** + * Limit how many employees to update. + */ + limit?: number +} + +/** + * employees upsert + */ +export type employeesUpsertArgs = { + /** + * Select specific fields to fetch from the employees + */ + select?: Prisma.employeesSelect | null + /** + * Omit specific fields from the employees + */ + omit?: Prisma.employeesOmit | null + /** + * The filter to search for the employees to update in case it exists. + */ + where: Prisma.employeesWhereUniqueInput + /** + * In case the employees found by the `where` argument doesn't exist, create a new employees with this data. + */ + create: Prisma.XOR + /** + * In case the employees was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * employees delete + */ +export type employeesDeleteArgs = { + /** + * Select specific fields to fetch from the employees + */ + select?: Prisma.employeesSelect | null + /** + * Omit specific fields from the employees + */ + omit?: Prisma.employeesOmit | null + /** + * Filter which employees to delete. + */ + where: Prisma.employeesWhereUniqueInput +} + +/** + * employees deleteMany + */ +export type employeesDeleteManyArgs = { + /** + * Filter which employees to delete + */ + where?: Prisma.employeesWhereInput + /** + * Limit how many employees to delete. + */ + limit?: number +} + +/** + * employees without action + */ +export type employeesDefaultArgs = { + /** + * Select specific fields to fetch from the employees + */ + select?: Prisma.employeesSelect | null + /** + * Omit specific fields from the employees + */ + omit?: Prisma.employeesOmit | null +} diff --git a/prisma/generated/legacy/models/expenses.ts b/prisma/generated/legacy/models/expenses.ts new file mode 100644 index 0000000..6c342f4 --- /dev/null +++ b/prisma/generated/legacy/models/expenses.ts @@ -0,0 +1,1368 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `expenses` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model expenses + * + */ +export type expensesModel = runtime.Types.Result.DefaultSelection + +export type AggregateExpenses = { + _count: ExpensesCountAggregateOutputType | null + _avg: ExpensesAvgAggregateOutputType | null + _sum: ExpensesSumAggregateOutputType | null + _min: ExpensesMinAggregateOutputType | null + _max: ExpensesMaxAggregateOutputType | null +} + +export type ExpensesAvgAggregateOutputType = { + value: number | null + created_at: number | null + updated_at: number | null +} + +export type ExpensesSumAggregateOutputType = { + value: number | null + created_at: bigint | null + updated_at: bigint | null +} + +export type ExpensesMinAggregateOutputType = { + id: string | null + time_sheet_id: string | null + date: string | null + code: string | null + value: number | null + description: string | null + evidence_id: string | null + status: boolean | null + created_at: bigint | null + updated_at: bigint | null + supervisor_note: string | null +} + +export type ExpensesMaxAggregateOutputType = { + id: string | null + time_sheet_id: string | null + date: string | null + code: string | null + value: number | null + description: string | null + evidence_id: string | null + status: boolean | null + created_at: bigint | null + updated_at: bigint | null + supervisor_note: string | null +} + +export type ExpensesCountAggregateOutputType = { + id: number + time_sheet_id: number + date: number + code: number + value: number + description: number + evidence_id: number + status: number + created_at: number + updated_at: number + supervisor_note: number + _all: number +} + + +export type ExpensesAvgAggregateInputType = { + value?: true + created_at?: true + updated_at?: true +} + +export type ExpensesSumAggregateInputType = { + value?: true + created_at?: true + updated_at?: true +} + +export type ExpensesMinAggregateInputType = { + id?: true + time_sheet_id?: true + date?: true + code?: true + value?: true + description?: true + evidence_id?: true + status?: true + created_at?: true + updated_at?: true + supervisor_note?: true +} + +export type ExpensesMaxAggregateInputType = { + id?: true + time_sheet_id?: true + date?: true + code?: true + value?: true + description?: true + evidence_id?: true + status?: true + created_at?: true + updated_at?: true + supervisor_note?: true +} + +export type ExpensesCountAggregateInputType = { + id?: true + time_sheet_id?: true + date?: true + code?: true + value?: true + description?: true + evidence_id?: true + status?: true + created_at?: true + updated_at?: true + supervisor_note?: true + _all?: true +} + +export type ExpensesAggregateArgs = { + /** + * Filter which expenses to aggregate. + */ + where?: Prisma.expensesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of expenses to fetch. + */ + orderBy?: Prisma.expensesOrderByWithRelationInput | Prisma.expensesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.expensesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` expenses from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` expenses. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned expenses + **/ + _count?: true | ExpensesCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ExpensesAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ExpensesSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ExpensesMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ExpensesMaxAggregateInputType +} + +export type GetExpensesAggregateType = { + [P in keyof T & keyof AggregateExpenses]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type expensesGroupByArgs = { + where?: Prisma.expensesWhereInput + orderBy?: Prisma.expensesOrderByWithAggregationInput | Prisma.expensesOrderByWithAggregationInput[] + by: Prisma.ExpensesScalarFieldEnum[] | Prisma.ExpensesScalarFieldEnum + having?: Prisma.expensesScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ExpensesCountAggregateInputType | true + _avg?: ExpensesAvgAggregateInputType + _sum?: ExpensesSumAggregateInputType + _min?: ExpensesMinAggregateInputType + _max?: ExpensesMaxAggregateInputType +} + +export type ExpensesGroupByOutputType = { + id: string + time_sheet_id: string | null + date: string | null + code: string | null + value: number | null + description: string | null + evidence_id: string | null + status: boolean | null + created_at: bigint | null + updated_at: bigint | null + supervisor_note: string | null + _count: ExpensesCountAggregateOutputType | null + _avg: ExpensesAvgAggregateOutputType | null + _sum: ExpensesSumAggregateOutputType | null + _min: ExpensesMinAggregateOutputType | null + _max: ExpensesMaxAggregateOutputType | null +} + +type GetExpensesGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ExpensesGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type expensesWhereInput = { + AND?: Prisma.expensesWhereInput | Prisma.expensesWhereInput[] + OR?: Prisma.expensesWhereInput[] + NOT?: Prisma.expensesWhereInput | Prisma.expensesWhereInput[] + id?: Prisma.UuidFilter<"expenses"> | string + time_sheet_id?: Prisma.StringNullableFilter<"expenses"> | string | null + date?: Prisma.StringNullableFilter<"expenses"> | string | null + code?: Prisma.StringNullableFilter<"expenses"> | string | null + value?: Prisma.FloatNullableFilter<"expenses"> | number | null + description?: Prisma.StringNullableFilter<"expenses"> | string | null + evidence_id?: Prisma.StringNullableFilter<"expenses"> | string | null + status?: Prisma.BoolNullableFilter<"expenses"> | boolean | null + created_at?: Prisma.BigIntNullableFilter<"expenses"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"expenses"> | bigint | number | null + supervisor_note?: Prisma.StringNullableFilter<"expenses"> | string | null +} + +export type expensesOrderByWithRelationInput = { + id?: Prisma.SortOrder + time_sheet_id?: Prisma.SortOrderInput | Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + code?: Prisma.SortOrderInput | Prisma.SortOrder + value?: Prisma.SortOrderInput | Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + evidence_id?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + supervisor_note?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type expensesWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.expensesWhereInput | Prisma.expensesWhereInput[] + OR?: Prisma.expensesWhereInput[] + NOT?: Prisma.expensesWhereInput | Prisma.expensesWhereInput[] + time_sheet_id?: Prisma.StringNullableFilter<"expenses"> | string | null + date?: Prisma.StringNullableFilter<"expenses"> | string | null + code?: Prisma.StringNullableFilter<"expenses"> | string | null + value?: Prisma.FloatNullableFilter<"expenses"> | number | null + description?: Prisma.StringNullableFilter<"expenses"> | string | null + evidence_id?: Prisma.StringNullableFilter<"expenses"> | string | null + status?: Prisma.BoolNullableFilter<"expenses"> | boolean | null + created_at?: Prisma.BigIntNullableFilter<"expenses"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"expenses"> | bigint | number | null + supervisor_note?: Prisma.StringNullableFilter<"expenses"> | string | null +}, "id"> + +export type expensesOrderByWithAggregationInput = { + id?: Prisma.SortOrder + time_sheet_id?: Prisma.SortOrderInput | Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + code?: Prisma.SortOrderInput | Prisma.SortOrder + value?: Prisma.SortOrderInput | Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + evidence_id?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + supervisor_note?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.expensesCountOrderByAggregateInput + _avg?: Prisma.expensesAvgOrderByAggregateInput + _max?: Prisma.expensesMaxOrderByAggregateInput + _min?: Prisma.expensesMinOrderByAggregateInput + _sum?: Prisma.expensesSumOrderByAggregateInput +} + +export type expensesScalarWhereWithAggregatesInput = { + AND?: Prisma.expensesScalarWhereWithAggregatesInput | Prisma.expensesScalarWhereWithAggregatesInput[] + OR?: Prisma.expensesScalarWhereWithAggregatesInput[] + NOT?: Prisma.expensesScalarWhereWithAggregatesInput | Prisma.expensesScalarWhereWithAggregatesInput[] + id?: Prisma.UuidWithAggregatesFilter<"expenses"> | string + time_sheet_id?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null + date?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null + code?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null + value?: Prisma.FloatNullableWithAggregatesFilter<"expenses"> | number | null + description?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null + evidence_id?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null + status?: Prisma.BoolNullableWithAggregatesFilter<"expenses"> | boolean | null + created_at?: Prisma.BigIntNullableWithAggregatesFilter<"expenses"> | bigint | number | null + updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"expenses"> | bigint | number | null + supervisor_note?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null +} + +export type expensesCreateInput = { + id: string + time_sheet_id?: string | null + date?: string | null + code?: string | null + value?: number | null + description?: string | null + evidence_id?: string | null + status?: boolean | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + supervisor_note?: string | null +} + +export type expensesUncheckedCreateInput = { + id: string + time_sheet_id?: string | null + date?: string | null + code?: string | null + value?: number | null + description?: string | null + evidence_id?: string | null + status?: boolean | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + supervisor_note?: string | null +} + +export type expensesUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + value?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + evidence_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type expensesUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + value?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + evidence_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type expensesCreateManyInput = { + id: string + time_sheet_id?: string | null + date?: string | null + code?: string | null + value?: number | null + description?: string | null + evidence_id?: string | null + status?: boolean | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + supervisor_note?: string | null +} + +export type expensesUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + value?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + evidence_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type expensesUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + value?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + evidence_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type expensesCountOrderByAggregateInput = { + id?: Prisma.SortOrder + time_sheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + code?: Prisma.SortOrder + value?: Prisma.SortOrder + description?: Prisma.SortOrder + evidence_id?: Prisma.SortOrder + status?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + supervisor_note?: Prisma.SortOrder +} + +export type expensesAvgOrderByAggregateInput = { + value?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type expensesMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + time_sheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + code?: Prisma.SortOrder + value?: Prisma.SortOrder + description?: Prisma.SortOrder + evidence_id?: Prisma.SortOrder + status?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + supervisor_note?: Prisma.SortOrder +} + +export type expensesMinOrderByAggregateInput = { + id?: Prisma.SortOrder + time_sheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + code?: Prisma.SortOrder + value?: Prisma.SortOrder + description?: Prisma.SortOrder + evidence_id?: Prisma.SortOrder + status?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + supervisor_note?: Prisma.SortOrder +} + +export type expensesSumOrderByAggregateInput = { + value?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + + + +export type expensesSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + time_sheet_id?: boolean + date?: boolean + code?: boolean + value?: boolean + description?: boolean + evidence_id?: boolean + status?: boolean + created_at?: boolean + updated_at?: boolean + supervisor_note?: boolean +}, ExtArgs["result"]["expenses"]> + +export type expensesSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + time_sheet_id?: boolean + date?: boolean + code?: boolean + value?: boolean + description?: boolean + evidence_id?: boolean + status?: boolean + created_at?: boolean + updated_at?: boolean + supervisor_note?: boolean +}, ExtArgs["result"]["expenses"]> + +export type expensesSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + time_sheet_id?: boolean + date?: boolean + code?: boolean + value?: boolean + description?: boolean + evidence_id?: boolean + status?: boolean + created_at?: boolean + updated_at?: boolean + supervisor_note?: boolean +}, ExtArgs["result"]["expenses"]> + +export type expensesSelectScalar = { + id?: boolean + time_sheet_id?: boolean + date?: boolean + code?: boolean + value?: boolean + description?: boolean + evidence_id?: boolean + status?: boolean + created_at?: boolean + updated_at?: boolean + supervisor_note?: boolean +} + +export type expensesOmit = runtime.Types.Extensions.GetOmit<"id" | "time_sheet_id" | "date" | "code" | "value" | "description" | "evidence_id" | "status" | "created_at" | "updated_at" | "supervisor_note", ExtArgs["result"]["expenses"]> + +export type $expensesPayload = { + name: "expenses" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + time_sheet_id: string | null + date: string | null + code: string | null + value: number | null + description: string | null + evidence_id: string | null + status: boolean | null + created_at: bigint | null + updated_at: bigint | null + supervisor_note: string | null + }, ExtArgs["result"]["expenses"]> + composites: {} +} + +export type expensesGetPayload = runtime.Types.Result.GetResult + +export type expensesCountArgs = + Omit & { + select?: ExpensesCountAggregateInputType | true + } + +export interface expensesDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['expenses'], meta: { name: 'expenses' } } + /** + * Find zero or one Expenses that matches the filter. + * @param {expensesFindUniqueArgs} args - Arguments to find a Expenses + * @example + * // Get one Expenses + * const expenses = await prisma.expenses.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__expensesClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Expenses that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {expensesFindUniqueOrThrowArgs} args - Arguments to find a Expenses + * @example + * // Get one Expenses + * const expenses = await prisma.expenses.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__expensesClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Expenses that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {expensesFindFirstArgs} args - Arguments to find a Expenses + * @example + * // Get one Expenses + * const expenses = await prisma.expenses.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__expensesClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Expenses 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 {expensesFindFirstOrThrowArgs} args - Arguments to find a Expenses + * @example + * // Get one Expenses + * const expenses = await prisma.expenses.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__expensesClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Expenses that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {expensesFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Expenses + * const expenses = await prisma.expenses.findMany() + * + * // Get first 10 Expenses + * const expenses = await prisma.expenses.findMany({ take: 10 }) + * + * // Only select the `id` + * const expensesWithIdOnly = await prisma.expenses.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Expenses. + * @param {expensesCreateArgs} args - Arguments to create a Expenses. + * @example + * // Create one Expenses + * const Expenses = await prisma.expenses.create({ + * data: { + * // ... data to create a Expenses + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__expensesClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Expenses. + * @param {expensesCreateManyArgs} args - Arguments to create many Expenses. + * @example + * // Create many Expenses + * const expenses = await prisma.expenses.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Expenses and returns the data saved in the database. + * @param {expensesCreateManyAndReturnArgs} args - Arguments to create many Expenses. + * @example + * // Create many Expenses + * const expenses = await prisma.expenses.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Expenses and only return the `id` + * const expensesWithIdOnly = await prisma.expenses.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 Expenses. + * @param {expensesDeleteArgs} args - Arguments to delete one Expenses. + * @example + * // Delete one Expenses + * const Expenses = await prisma.expenses.delete({ + * where: { + * // ... filter to delete one Expenses + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__expensesClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Expenses. + * @param {expensesUpdateArgs} args - Arguments to update one Expenses. + * @example + * // Update one Expenses + * const expenses = await prisma.expenses.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__expensesClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Expenses. + * @param {expensesDeleteManyArgs} args - Arguments to filter Expenses to delete. + * @example + * // Delete a few Expenses + * const { count } = await prisma.expenses.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Expenses. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {expensesUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Expenses + * const expenses = await prisma.expenses.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Expenses and returns the data updated in the database. + * @param {expensesUpdateManyAndReturnArgs} args - Arguments to update many Expenses. + * @example + * // Update many Expenses + * const expenses = await prisma.expenses.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Expenses and only return the `id` + * const expensesWithIdOnly = await prisma.expenses.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 Expenses. + * @param {expensesUpsertArgs} args - Arguments to update or create a Expenses. + * @example + * // Update or create a Expenses + * const expenses = await prisma.expenses.upsert({ + * create: { + * // ... data to create a Expenses + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Expenses we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__expensesClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Expenses. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {expensesCountArgs} args - Arguments to filter Expenses to count. + * @example + * // Count the number of Expenses + * const count = await prisma.expenses.count({ + * where: { + * // ... the filter for the Expenses we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Expenses. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpensesAggregateArgs} 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 Expenses. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {expensesGroupByArgs} 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 expensesGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: expensesGroupByArgs['orderBy'] } + : { orderBy?: expensesGroupByArgs['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 ? GetExpensesGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the expenses model + */ +readonly fields: expensesFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for expenses. + * 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__expensesClient 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 expenses model + */ +export interface expensesFieldRefs { + readonly id: Prisma.FieldRef<"expenses", 'String'> + readonly time_sheet_id: Prisma.FieldRef<"expenses", 'String'> + readonly date: Prisma.FieldRef<"expenses", 'String'> + readonly code: Prisma.FieldRef<"expenses", 'String'> + readonly value: Prisma.FieldRef<"expenses", 'Float'> + readonly description: Prisma.FieldRef<"expenses", 'String'> + readonly evidence_id: Prisma.FieldRef<"expenses", 'String'> + readonly status: Prisma.FieldRef<"expenses", 'Boolean'> + readonly created_at: Prisma.FieldRef<"expenses", 'BigInt'> + readonly updated_at: Prisma.FieldRef<"expenses", 'BigInt'> + readonly supervisor_note: Prisma.FieldRef<"expenses", 'String'> +} + + +// Custom InputTypes +/** + * expenses findUnique + */ +export type expensesFindUniqueArgs = { + /** + * Select specific fields to fetch from the expenses + */ + select?: Prisma.expensesSelect | null + /** + * Omit specific fields from the expenses + */ + omit?: Prisma.expensesOmit | null + /** + * Filter, which expenses to fetch. + */ + where: Prisma.expensesWhereUniqueInput +} + +/** + * expenses findUniqueOrThrow + */ +export type expensesFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the expenses + */ + select?: Prisma.expensesSelect | null + /** + * Omit specific fields from the expenses + */ + omit?: Prisma.expensesOmit | null + /** + * Filter, which expenses to fetch. + */ + where: Prisma.expensesWhereUniqueInput +} + +/** + * expenses findFirst + */ +export type expensesFindFirstArgs = { + /** + * Select specific fields to fetch from the expenses + */ + select?: Prisma.expensesSelect | null + /** + * Omit specific fields from the expenses + */ + omit?: Prisma.expensesOmit | null + /** + * Filter, which expenses to fetch. + */ + where?: Prisma.expensesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of expenses to fetch. + */ + orderBy?: Prisma.expensesOrderByWithRelationInput | Prisma.expensesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for expenses. + */ + cursor?: Prisma.expensesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` expenses from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` expenses. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of expenses. + */ + distinct?: Prisma.ExpensesScalarFieldEnum | Prisma.ExpensesScalarFieldEnum[] +} + +/** + * expenses findFirstOrThrow + */ +export type expensesFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the expenses + */ + select?: Prisma.expensesSelect | null + /** + * Omit specific fields from the expenses + */ + omit?: Prisma.expensesOmit | null + /** + * Filter, which expenses to fetch. + */ + where?: Prisma.expensesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of expenses to fetch. + */ + orderBy?: Prisma.expensesOrderByWithRelationInput | Prisma.expensesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for expenses. + */ + cursor?: Prisma.expensesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` expenses from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` expenses. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of expenses. + */ + distinct?: Prisma.ExpensesScalarFieldEnum | Prisma.ExpensesScalarFieldEnum[] +} + +/** + * expenses findMany + */ +export type expensesFindManyArgs = { + /** + * Select specific fields to fetch from the expenses + */ + select?: Prisma.expensesSelect | null + /** + * Omit specific fields from the expenses + */ + omit?: Prisma.expensesOmit | null + /** + * Filter, which expenses to fetch. + */ + where?: Prisma.expensesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of expenses to fetch. + */ + orderBy?: Prisma.expensesOrderByWithRelationInput | Prisma.expensesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing expenses. + */ + cursor?: Prisma.expensesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` expenses from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` expenses. + */ + skip?: number + distinct?: Prisma.ExpensesScalarFieldEnum | Prisma.ExpensesScalarFieldEnum[] +} + +/** + * expenses create + */ +export type expensesCreateArgs = { + /** + * Select specific fields to fetch from the expenses + */ + select?: Prisma.expensesSelect | null + /** + * Omit specific fields from the expenses + */ + omit?: Prisma.expensesOmit | null + /** + * The data needed to create a expenses. + */ + data: Prisma.XOR +} + +/** + * expenses createMany + */ +export type expensesCreateManyArgs = { + /** + * The data used to create many expenses. + */ + data: Prisma.expensesCreateManyInput | Prisma.expensesCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * expenses createManyAndReturn + */ +export type expensesCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the expenses + */ + select?: Prisma.expensesSelectCreateManyAndReturn | null + /** + * Omit specific fields from the expenses + */ + omit?: Prisma.expensesOmit | null + /** + * The data used to create many expenses. + */ + data: Prisma.expensesCreateManyInput | Prisma.expensesCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * expenses update + */ +export type expensesUpdateArgs = { + /** + * Select specific fields to fetch from the expenses + */ + select?: Prisma.expensesSelect | null + /** + * Omit specific fields from the expenses + */ + omit?: Prisma.expensesOmit | null + /** + * The data needed to update a expenses. + */ + data: Prisma.XOR + /** + * Choose, which expenses to update. + */ + where: Prisma.expensesWhereUniqueInput +} + +/** + * expenses updateMany + */ +export type expensesUpdateManyArgs = { + /** + * The data used to update expenses. + */ + data: Prisma.XOR + /** + * Filter which expenses to update + */ + where?: Prisma.expensesWhereInput + /** + * Limit how many expenses to update. + */ + limit?: number +} + +/** + * expenses updateManyAndReturn + */ +export type expensesUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the expenses + */ + select?: Prisma.expensesSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the expenses + */ + omit?: Prisma.expensesOmit | null + /** + * The data used to update expenses. + */ + data: Prisma.XOR + /** + * Filter which expenses to update + */ + where?: Prisma.expensesWhereInput + /** + * Limit how many expenses to update. + */ + limit?: number +} + +/** + * expenses upsert + */ +export type expensesUpsertArgs = { + /** + * Select specific fields to fetch from the expenses + */ + select?: Prisma.expensesSelect | null + /** + * Omit specific fields from the expenses + */ + omit?: Prisma.expensesOmit | null + /** + * The filter to search for the expenses to update in case it exists. + */ + where: Prisma.expensesWhereUniqueInput + /** + * In case the expenses found by the `where` argument doesn't exist, create a new expenses with this data. + */ + create: Prisma.XOR + /** + * In case the expenses was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * expenses delete + */ +export type expensesDeleteArgs = { + /** + * Select specific fields to fetch from the expenses + */ + select?: Prisma.expensesSelect | null + /** + * Omit specific fields from the expenses + */ + omit?: Prisma.expensesOmit | null + /** + * Filter which expenses to delete. + */ + where: Prisma.expensesWhereUniqueInput +} + +/** + * expenses deleteMany + */ +export type expensesDeleteManyArgs = { + /** + * Filter which expenses to delete + */ + where?: Prisma.expensesWhereInput + /** + * Limit how many expenses to delete. + */ + limit?: number +} + +/** + * expenses without action + */ +export type expensesDefaultArgs = { + /** + * Select specific fields to fetch from the expenses + */ + select?: Prisma.expensesSelect | null + /** + * Omit specific fields from the expenses + */ + omit?: Prisma.expensesOmit | null +} diff --git a/prisma/generated/legacy/models/hours_bank.ts b/prisma/generated/legacy/models/hours_bank.ts new file mode 100644 index 0000000..a906fa3 --- /dev/null +++ b/prisma/generated/legacy/models/hours_bank.ts @@ -0,0 +1,1200 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `hours_bank` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model hours_bank + * + */ +export type hours_bankModel = runtime.Types.Result.DefaultSelection + +export type AggregateHours_bank = { + _count: Hours_bankCountAggregateOutputType | null + _avg: Hours_bankAvgAggregateOutputType | null + _sum: Hours_bankSumAggregateOutputType | null + _min: Hours_bankMinAggregateOutputType | null + _max: Hours_bankMaxAggregateOutputType | null +} + +export type Hours_bankAvgAggregateOutputType = { + hours: number | null + created_at: number | null + updated_at: number | null +} + +export type Hours_bankSumAggregateOutputType = { + hours: number | null + created_at: bigint | null + updated_at: bigint | null +} + +export type Hours_bankMinAggregateOutputType = { + id: string | null + employee_id: string | null + hours: number | null + created_at: bigint | null + updated_at: bigint | null +} + +export type Hours_bankMaxAggregateOutputType = { + id: string | null + employee_id: string | null + hours: number | null + created_at: bigint | null + updated_at: bigint | null +} + +export type Hours_bankCountAggregateOutputType = { + id: number + employee_id: number + hours: number + created_at: number + updated_at: number + _all: number +} + + +export type Hours_bankAvgAggregateInputType = { + hours?: true + created_at?: true + updated_at?: true +} + +export type Hours_bankSumAggregateInputType = { + hours?: true + created_at?: true + updated_at?: true +} + +export type Hours_bankMinAggregateInputType = { + id?: true + employee_id?: true + hours?: true + created_at?: true + updated_at?: true +} + +export type Hours_bankMaxAggregateInputType = { + id?: true + employee_id?: true + hours?: true + created_at?: true + updated_at?: true +} + +export type Hours_bankCountAggregateInputType = { + id?: true + employee_id?: true + hours?: true + created_at?: true + updated_at?: true + _all?: true +} + +export type Hours_bankAggregateArgs = { + /** + * Filter which hours_bank to aggregate. + */ + where?: Prisma.hours_bankWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of hours_banks to fetch. + */ + orderBy?: Prisma.hours_bankOrderByWithRelationInput | Prisma.hours_bankOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.hours_bankWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` hours_banks 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` hours_banks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned hours_banks + **/ + _count?: true | Hours_bankCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Hours_bankAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Hours_bankSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Hours_bankMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Hours_bankMaxAggregateInputType +} + +export type GetHours_bankAggregateType = { + [P in keyof T & keyof AggregateHours_bank]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type hours_bankGroupByArgs = { + where?: Prisma.hours_bankWhereInput + orderBy?: Prisma.hours_bankOrderByWithAggregationInput | Prisma.hours_bankOrderByWithAggregationInput[] + by: Prisma.Hours_bankScalarFieldEnum[] | Prisma.Hours_bankScalarFieldEnum + having?: Prisma.hours_bankScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Hours_bankCountAggregateInputType | true + _avg?: Hours_bankAvgAggregateInputType + _sum?: Hours_bankSumAggregateInputType + _min?: Hours_bankMinAggregateInputType + _max?: Hours_bankMaxAggregateInputType +} + +export type Hours_bankGroupByOutputType = { + id: string + employee_id: string | null + hours: number | null + created_at: bigint | null + updated_at: bigint | null + _count: Hours_bankCountAggregateOutputType | null + _avg: Hours_bankAvgAggregateOutputType | null + _sum: Hours_bankSumAggregateOutputType | null + _min: Hours_bankMinAggregateOutputType | null + _max: Hours_bankMaxAggregateOutputType | null +} + +type GetHours_bankGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Hours_bankGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type hours_bankWhereInput = { + AND?: Prisma.hours_bankWhereInput | Prisma.hours_bankWhereInput[] + OR?: Prisma.hours_bankWhereInput[] + NOT?: Prisma.hours_bankWhereInput | Prisma.hours_bankWhereInput[] + id?: Prisma.UuidFilter<"hours_bank"> | string + employee_id?: Prisma.StringNullableFilter<"hours_bank"> | string | null + hours?: Prisma.FloatNullableFilter<"hours_bank"> | number | null + created_at?: Prisma.BigIntNullableFilter<"hours_bank"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"hours_bank"> | bigint | number | null +} + +export type hours_bankOrderByWithRelationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrderInput | Prisma.SortOrder + hours?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type hours_bankWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.hours_bankWhereInput | Prisma.hours_bankWhereInput[] + OR?: Prisma.hours_bankWhereInput[] + NOT?: Prisma.hours_bankWhereInput | Prisma.hours_bankWhereInput[] + employee_id?: Prisma.StringNullableFilter<"hours_bank"> | string | null + hours?: Prisma.FloatNullableFilter<"hours_bank"> | number | null + created_at?: Prisma.BigIntNullableFilter<"hours_bank"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"hours_bank"> | bigint | number | null +}, "id"> + +export type hours_bankOrderByWithAggregationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrderInput | Prisma.SortOrder + hours?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.hours_bankCountOrderByAggregateInput + _avg?: Prisma.hours_bankAvgOrderByAggregateInput + _max?: Prisma.hours_bankMaxOrderByAggregateInput + _min?: Prisma.hours_bankMinOrderByAggregateInput + _sum?: Prisma.hours_bankSumOrderByAggregateInput +} + +export type hours_bankScalarWhereWithAggregatesInput = { + AND?: Prisma.hours_bankScalarWhereWithAggregatesInput | Prisma.hours_bankScalarWhereWithAggregatesInput[] + OR?: Prisma.hours_bankScalarWhereWithAggregatesInput[] + NOT?: Prisma.hours_bankScalarWhereWithAggregatesInput | Prisma.hours_bankScalarWhereWithAggregatesInput[] + id?: Prisma.UuidWithAggregatesFilter<"hours_bank"> | string + employee_id?: Prisma.StringNullableWithAggregatesFilter<"hours_bank"> | string | null + hours?: Prisma.FloatNullableWithAggregatesFilter<"hours_bank"> | number | null + created_at?: Prisma.BigIntNullableWithAggregatesFilter<"hours_bank"> | bigint | number | null + updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"hours_bank"> | bigint | number | null +} + +export type hours_bankCreateInput = { + id: string + employee_id?: string | null + hours?: number | null + created_at?: bigint | number | null + updated_at?: bigint | number | null +} + +export type hours_bankUncheckedCreateInput = { + id: string + employee_id?: string | null + hours?: number | null + created_at?: bigint | number | null + updated_at?: bigint | number | null +} + +export type hours_bankUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type hours_bankUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type hours_bankCreateManyInput = { + id: string + employee_id?: string | null + hours?: number | null + created_at?: bigint | number | null + updated_at?: bigint | number | null +} + +export type hours_bankUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type hours_bankUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type hours_bankCountOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + hours?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type hours_bankAvgOrderByAggregateInput = { + hours?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type hours_bankMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + hours?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type hours_bankMinOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + hours?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type hours_bankSumOrderByAggregateInput = { + hours?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + + + +export type hours_bankSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + hours?: boolean + created_at?: boolean + updated_at?: boolean +}, ExtArgs["result"]["hours_bank"]> + +export type hours_bankSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + hours?: boolean + created_at?: boolean + updated_at?: boolean +}, ExtArgs["result"]["hours_bank"]> + +export type hours_bankSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + hours?: boolean + created_at?: boolean + updated_at?: boolean +}, ExtArgs["result"]["hours_bank"]> + +export type hours_bankSelectScalar = { + id?: boolean + employee_id?: boolean + hours?: boolean + created_at?: boolean + updated_at?: boolean +} + +export type hours_bankOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "hours" | "created_at" | "updated_at", ExtArgs["result"]["hours_bank"]> + +export type $hours_bankPayload = { + name: "hours_bank" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + employee_id: string | null + hours: number | null + created_at: bigint | null + updated_at: bigint | null + }, ExtArgs["result"]["hours_bank"]> + composites: {} +} + +export type hours_bankGetPayload = runtime.Types.Result.GetResult + +export type hours_bankCountArgs = + Omit & { + select?: Hours_bankCountAggregateInputType | true + } + +export interface hours_bankDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['hours_bank'], meta: { name: 'hours_bank' } } + /** + * Find zero or one Hours_bank that matches the filter. + * @param {hours_bankFindUniqueArgs} args - Arguments to find a Hours_bank + * @example + * // Get one Hours_bank + * const hours_bank = await prisma.hours_bank.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Hours_bank that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {hours_bankFindUniqueOrThrowArgs} args - Arguments to find a Hours_bank + * @example + * // Get one Hours_bank + * const hours_bank = await prisma.hours_bank.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Hours_bank 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 {hours_bankFindFirstArgs} args - Arguments to find a Hours_bank + * @example + * // Get one Hours_bank + * const hours_bank = await prisma.hours_bank.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Hours_bank 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 {hours_bankFindFirstOrThrowArgs} args - Arguments to find a Hours_bank + * @example + * // Get one Hours_bank + * const hours_bank = await prisma.hours_bank.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Hours_banks 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 {hours_bankFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Hours_banks + * const hours_banks = await prisma.hours_bank.findMany() + * + * // Get first 10 Hours_banks + * const hours_banks = await prisma.hours_bank.findMany({ take: 10 }) + * + * // Only select the `id` + * const hours_bankWithIdOnly = await prisma.hours_bank.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Hours_bank. + * @param {hours_bankCreateArgs} args - Arguments to create a Hours_bank. + * @example + * // Create one Hours_bank + * const Hours_bank = await prisma.hours_bank.create({ + * data: { + * // ... data to create a Hours_bank + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Hours_banks. + * @param {hours_bankCreateManyArgs} args - Arguments to create many Hours_banks. + * @example + * // Create many Hours_banks + * const hours_bank = await prisma.hours_bank.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Hours_banks and returns the data saved in the database. + * @param {hours_bankCreateManyAndReturnArgs} args - Arguments to create many Hours_banks. + * @example + * // Create many Hours_banks + * const hours_bank = await prisma.hours_bank.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Hours_banks and only return the `id` + * const hours_bankWithIdOnly = await prisma.hours_bank.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 Hours_bank. + * @param {hours_bankDeleteArgs} args - Arguments to delete one Hours_bank. + * @example + * // Delete one Hours_bank + * const Hours_bank = await prisma.hours_bank.delete({ + * where: { + * // ... filter to delete one Hours_bank + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Hours_bank. + * @param {hours_bankUpdateArgs} args - Arguments to update one Hours_bank. + * @example + * // Update one Hours_bank + * const hours_bank = await prisma.hours_bank.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Hours_banks. + * @param {hours_bankDeleteManyArgs} args - Arguments to filter Hours_banks to delete. + * @example + * // Delete a few Hours_banks + * const { count } = await prisma.hours_bank.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Hours_banks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {hours_bankUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Hours_banks + * const hours_bank = await prisma.hours_bank.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Hours_banks and returns the data updated in the database. + * @param {hours_bankUpdateManyAndReturnArgs} args - Arguments to update many Hours_banks. + * @example + * // Update many Hours_banks + * const hours_bank = await prisma.hours_bank.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Hours_banks and only return the `id` + * const hours_bankWithIdOnly = await prisma.hours_bank.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 Hours_bank. + * @param {hours_bankUpsertArgs} args - Arguments to update or create a Hours_bank. + * @example + * // Update or create a Hours_bank + * const hours_bank = await prisma.hours_bank.upsert({ + * create: { + * // ... data to create a Hours_bank + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Hours_bank we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Hours_banks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {hours_bankCountArgs} args - Arguments to filter Hours_banks to count. + * @example + * // Count the number of Hours_banks + * const count = await prisma.hours_bank.count({ + * where: { + * // ... the filter for the Hours_banks 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 Hours_bank. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Hours_bankAggregateArgs} 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 Hours_bank. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {hours_bankGroupByArgs} 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 hours_bankGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: hours_bankGroupByArgs['orderBy'] } + : { orderBy?: hours_bankGroupByArgs['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 ? GetHours_bankGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the hours_bank model + */ +readonly fields: hours_bankFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for hours_bank. + * 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__hours_bankClient 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 hours_bank model + */ +export interface hours_bankFieldRefs { + readonly id: Prisma.FieldRef<"hours_bank", 'String'> + readonly employee_id: Prisma.FieldRef<"hours_bank", 'String'> + readonly hours: Prisma.FieldRef<"hours_bank", 'Float'> + readonly created_at: Prisma.FieldRef<"hours_bank", 'BigInt'> + readonly updated_at: Prisma.FieldRef<"hours_bank", 'BigInt'> +} + + +// Custom InputTypes +/** + * hours_bank findUnique + */ +export type hours_bankFindUniqueArgs = { + /** + * Select specific fields to fetch from the hours_bank + */ + select?: Prisma.hours_bankSelect | null + /** + * Omit specific fields from the hours_bank + */ + omit?: Prisma.hours_bankOmit | null + /** + * Filter, which hours_bank to fetch. + */ + where: Prisma.hours_bankWhereUniqueInput +} + +/** + * hours_bank findUniqueOrThrow + */ +export type hours_bankFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the hours_bank + */ + select?: Prisma.hours_bankSelect | null + /** + * Omit specific fields from the hours_bank + */ + omit?: Prisma.hours_bankOmit | null + /** + * Filter, which hours_bank to fetch. + */ + where: Prisma.hours_bankWhereUniqueInput +} + +/** + * hours_bank findFirst + */ +export type hours_bankFindFirstArgs = { + /** + * Select specific fields to fetch from the hours_bank + */ + select?: Prisma.hours_bankSelect | null + /** + * Omit specific fields from the hours_bank + */ + omit?: Prisma.hours_bankOmit | null + /** + * Filter, which hours_bank to fetch. + */ + where?: Prisma.hours_bankWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of hours_banks to fetch. + */ + orderBy?: Prisma.hours_bankOrderByWithRelationInput | Prisma.hours_bankOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for hours_banks. + */ + cursor?: Prisma.hours_bankWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` hours_banks 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` hours_banks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of hours_banks. + */ + distinct?: Prisma.Hours_bankScalarFieldEnum | Prisma.Hours_bankScalarFieldEnum[] +} + +/** + * hours_bank findFirstOrThrow + */ +export type hours_bankFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the hours_bank + */ + select?: Prisma.hours_bankSelect | null + /** + * Omit specific fields from the hours_bank + */ + omit?: Prisma.hours_bankOmit | null + /** + * Filter, which hours_bank to fetch. + */ + where?: Prisma.hours_bankWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of hours_banks to fetch. + */ + orderBy?: Prisma.hours_bankOrderByWithRelationInput | Prisma.hours_bankOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for hours_banks. + */ + cursor?: Prisma.hours_bankWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` hours_banks 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` hours_banks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of hours_banks. + */ + distinct?: Prisma.Hours_bankScalarFieldEnum | Prisma.Hours_bankScalarFieldEnum[] +} + +/** + * hours_bank findMany + */ +export type hours_bankFindManyArgs = { + /** + * Select specific fields to fetch from the hours_bank + */ + select?: Prisma.hours_bankSelect | null + /** + * Omit specific fields from the hours_bank + */ + omit?: Prisma.hours_bankOmit | null + /** + * Filter, which hours_banks to fetch. + */ + where?: Prisma.hours_bankWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of hours_banks to fetch. + */ + orderBy?: Prisma.hours_bankOrderByWithRelationInput | Prisma.hours_bankOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing hours_banks. + */ + cursor?: Prisma.hours_bankWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` hours_banks 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` hours_banks. + */ + skip?: number + distinct?: Prisma.Hours_bankScalarFieldEnum | Prisma.Hours_bankScalarFieldEnum[] +} + +/** + * hours_bank create + */ +export type hours_bankCreateArgs = { + /** + * Select specific fields to fetch from the hours_bank + */ + select?: Prisma.hours_bankSelect | null + /** + * Omit specific fields from the hours_bank + */ + omit?: Prisma.hours_bankOmit | null + /** + * The data needed to create a hours_bank. + */ + data: Prisma.XOR +} + +/** + * hours_bank createMany + */ +export type hours_bankCreateManyArgs = { + /** + * The data used to create many hours_banks. + */ + data: Prisma.hours_bankCreateManyInput | Prisma.hours_bankCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * hours_bank createManyAndReturn + */ +export type hours_bankCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the hours_bank + */ + select?: Prisma.hours_bankSelectCreateManyAndReturn | null + /** + * Omit specific fields from the hours_bank + */ + omit?: Prisma.hours_bankOmit | null + /** + * The data used to create many hours_banks. + */ + data: Prisma.hours_bankCreateManyInput | Prisma.hours_bankCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * hours_bank update + */ +export type hours_bankUpdateArgs = { + /** + * Select specific fields to fetch from the hours_bank + */ + select?: Prisma.hours_bankSelect | null + /** + * Omit specific fields from the hours_bank + */ + omit?: Prisma.hours_bankOmit | null + /** + * The data needed to update a hours_bank. + */ + data: Prisma.XOR + /** + * Choose, which hours_bank to update. + */ + where: Prisma.hours_bankWhereUniqueInput +} + +/** + * hours_bank updateMany + */ +export type hours_bankUpdateManyArgs = { + /** + * The data used to update hours_banks. + */ + data: Prisma.XOR + /** + * Filter which hours_banks to update + */ + where?: Prisma.hours_bankWhereInput + /** + * Limit how many hours_banks to update. + */ + limit?: number +} + +/** + * hours_bank updateManyAndReturn + */ +export type hours_bankUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the hours_bank + */ + select?: Prisma.hours_bankSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the hours_bank + */ + omit?: Prisma.hours_bankOmit | null + /** + * The data used to update hours_banks. + */ + data: Prisma.XOR + /** + * Filter which hours_banks to update + */ + where?: Prisma.hours_bankWhereInput + /** + * Limit how many hours_banks to update. + */ + limit?: number +} + +/** + * hours_bank upsert + */ +export type hours_bankUpsertArgs = { + /** + * Select specific fields to fetch from the hours_bank + */ + select?: Prisma.hours_bankSelect | null + /** + * Omit specific fields from the hours_bank + */ + omit?: Prisma.hours_bankOmit | null + /** + * The filter to search for the hours_bank to update in case it exists. + */ + where: Prisma.hours_bankWhereUniqueInput + /** + * In case the hours_bank found by the `where` argument doesn't exist, create a new hours_bank with this data. + */ + create: Prisma.XOR + /** + * In case the hours_bank was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * hours_bank delete + */ +export type hours_bankDeleteArgs = { + /** + * Select specific fields to fetch from the hours_bank + */ + select?: Prisma.hours_bankSelect | null + /** + * Omit specific fields from the hours_bank + */ + omit?: Prisma.hours_bankOmit | null + /** + * Filter which hours_bank to delete. + */ + where: Prisma.hours_bankWhereUniqueInput +} + +/** + * hours_bank deleteMany + */ +export type hours_bankDeleteManyArgs = { + /** + * Filter which hours_banks to delete + */ + where?: Prisma.hours_bankWhereInput + /** + * Limit how many hours_banks to delete. + */ + limit?: number +} + +/** + * hours_bank without action + */ +export type hours_bankDefaultArgs = { + /** + * Select specific fields to fetch from the hours_bank + */ + select?: Prisma.hours_bankSelect | null + /** + * Omit specific fields from the hours_bank + */ + omit?: Prisma.hours_bankOmit | null +} diff --git a/prisma/generated/legacy/models/mileage_bank.ts b/prisma/generated/legacy/models/mileage_bank.ts new file mode 100644 index 0000000..94e600e --- /dev/null +++ b/prisma/generated/legacy/models/mileage_bank.ts @@ -0,0 +1,1166 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `mileage_bank` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model mileage_bank + * + */ +export type mileage_bankModel = runtime.Types.Result.DefaultSelection + +export type AggregateMileage_bank = { + _count: Mileage_bankCountAggregateOutputType | null + _avg: Mileage_bankAvgAggregateOutputType | null + _sum: Mileage_bankSumAggregateOutputType | null + _min: Mileage_bankMinAggregateOutputType | null + _max: Mileage_bankMaxAggregateOutputType | null +} + +export type Mileage_bankAvgAggregateOutputType = { + mileage: number | null + year: number | null +} + +export type Mileage_bankSumAggregateOutputType = { + mileage: number | null + year: number | null +} + +export type Mileage_bankMinAggregateOutputType = { + id: string | null + employee_id: string | null + mileage: number | null + year: number | null +} + +export type Mileage_bankMaxAggregateOutputType = { + id: string | null + employee_id: string | null + mileage: number | null + year: number | null +} + +export type Mileage_bankCountAggregateOutputType = { + id: number + employee_id: number + mileage: number + year: number + _all: number +} + + +export type Mileage_bankAvgAggregateInputType = { + mileage?: true + year?: true +} + +export type Mileage_bankSumAggregateInputType = { + mileage?: true + year?: true +} + +export type Mileage_bankMinAggregateInputType = { + id?: true + employee_id?: true + mileage?: true + year?: true +} + +export type Mileage_bankMaxAggregateInputType = { + id?: true + employee_id?: true + mileage?: true + year?: true +} + +export type Mileage_bankCountAggregateInputType = { + id?: true + employee_id?: true + mileage?: true + year?: true + _all?: true +} + +export type Mileage_bankAggregateArgs = { + /** + * Filter which mileage_bank to aggregate. + */ + where?: Prisma.mileage_bankWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of mileage_banks to fetch. + */ + orderBy?: Prisma.mileage_bankOrderByWithRelationInput | Prisma.mileage_bankOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.mileage_bankWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` mileage_banks 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` mileage_banks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned mileage_banks + **/ + _count?: true | Mileage_bankCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Mileage_bankAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Mileage_bankSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Mileage_bankMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Mileage_bankMaxAggregateInputType +} + +export type GetMileage_bankAggregateType = { + [P in keyof T & keyof AggregateMileage_bank]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type mileage_bankGroupByArgs = { + where?: Prisma.mileage_bankWhereInput + orderBy?: Prisma.mileage_bankOrderByWithAggregationInput | Prisma.mileage_bankOrderByWithAggregationInput[] + by: Prisma.Mileage_bankScalarFieldEnum[] | Prisma.Mileage_bankScalarFieldEnum + having?: Prisma.mileage_bankScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Mileage_bankCountAggregateInputType | true + _avg?: Mileage_bankAvgAggregateInputType + _sum?: Mileage_bankSumAggregateInputType + _min?: Mileage_bankMinAggregateInputType + _max?: Mileage_bankMaxAggregateInputType +} + +export type Mileage_bankGroupByOutputType = { + id: string + employee_id: string | null + mileage: number | null + year: number | null + _count: Mileage_bankCountAggregateOutputType | null + _avg: Mileage_bankAvgAggregateOutputType | null + _sum: Mileage_bankSumAggregateOutputType | null + _min: Mileage_bankMinAggregateOutputType | null + _max: Mileage_bankMaxAggregateOutputType | null +} + +type GetMileage_bankGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Mileage_bankGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type mileage_bankWhereInput = { + AND?: Prisma.mileage_bankWhereInput | Prisma.mileage_bankWhereInput[] + OR?: Prisma.mileage_bankWhereInput[] + NOT?: Prisma.mileage_bankWhereInput | Prisma.mileage_bankWhereInput[] + id?: Prisma.UuidFilter<"mileage_bank"> | string + employee_id?: Prisma.StringNullableFilter<"mileage_bank"> | string | null + mileage?: Prisma.IntNullableFilter<"mileage_bank"> | number | null + year?: Prisma.IntNullableFilter<"mileage_bank"> | number | null +} + +export type mileage_bankOrderByWithRelationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrderInput | Prisma.SortOrder + mileage?: Prisma.SortOrderInput | Prisma.SortOrder + year?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type mileage_bankWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.mileage_bankWhereInput | Prisma.mileage_bankWhereInput[] + OR?: Prisma.mileage_bankWhereInput[] + NOT?: Prisma.mileage_bankWhereInput | Prisma.mileage_bankWhereInput[] + employee_id?: Prisma.StringNullableFilter<"mileage_bank"> | string | null + mileage?: Prisma.IntNullableFilter<"mileage_bank"> | number | null + year?: Prisma.IntNullableFilter<"mileage_bank"> | number | null +}, "id"> + +export type mileage_bankOrderByWithAggregationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrderInput | Prisma.SortOrder + mileage?: Prisma.SortOrderInput | Prisma.SortOrder + year?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.mileage_bankCountOrderByAggregateInput + _avg?: Prisma.mileage_bankAvgOrderByAggregateInput + _max?: Prisma.mileage_bankMaxOrderByAggregateInput + _min?: Prisma.mileage_bankMinOrderByAggregateInput + _sum?: Prisma.mileage_bankSumOrderByAggregateInput +} + +export type mileage_bankScalarWhereWithAggregatesInput = { + AND?: Prisma.mileage_bankScalarWhereWithAggregatesInput | Prisma.mileage_bankScalarWhereWithAggregatesInput[] + OR?: Prisma.mileage_bankScalarWhereWithAggregatesInput[] + NOT?: Prisma.mileage_bankScalarWhereWithAggregatesInput | Prisma.mileage_bankScalarWhereWithAggregatesInput[] + id?: Prisma.UuidWithAggregatesFilter<"mileage_bank"> | string + employee_id?: Prisma.StringNullableWithAggregatesFilter<"mileage_bank"> | string | null + mileage?: Prisma.IntNullableWithAggregatesFilter<"mileage_bank"> | number | null + year?: Prisma.IntNullableWithAggregatesFilter<"mileage_bank"> | number | null +} + +export type mileage_bankCreateInput = { + id: string + employee_id?: string | null + mileage?: number | null + year?: number | null +} + +export type mileage_bankUncheckedCreateInput = { + id: string + employee_id?: string | null + mileage?: number | null + year?: number | null +} + +export type mileage_bankUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mileage?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type mileage_bankUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mileage?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type mileage_bankCreateManyInput = { + id: string + employee_id?: string | null + mileage?: number | null + year?: number | null +} + +export type mileage_bankUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mileage?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type mileage_bankUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mileage?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type mileage_bankCountOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + mileage?: Prisma.SortOrder + year?: Prisma.SortOrder +} + +export type mileage_bankAvgOrderByAggregateInput = { + mileage?: Prisma.SortOrder + year?: Prisma.SortOrder +} + +export type mileage_bankMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + mileage?: Prisma.SortOrder + year?: Prisma.SortOrder +} + +export type mileage_bankMinOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + mileage?: Prisma.SortOrder + year?: Prisma.SortOrder +} + +export type mileage_bankSumOrderByAggregateInput = { + mileage?: Prisma.SortOrder + year?: Prisma.SortOrder +} + + + +export type mileage_bankSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + mileage?: boolean + year?: boolean +}, ExtArgs["result"]["mileage_bank"]> + +export type mileage_bankSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + mileage?: boolean + year?: boolean +}, ExtArgs["result"]["mileage_bank"]> + +export type mileage_bankSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + mileage?: boolean + year?: boolean +}, ExtArgs["result"]["mileage_bank"]> + +export type mileage_bankSelectScalar = { + id?: boolean + employee_id?: boolean + mileage?: boolean + year?: boolean +} + +export type mileage_bankOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "mileage" | "year", ExtArgs["result"]["mileage_bank"]> + +export type $mileage_bankPayload = { + name: "mileage_bank" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + employee_id: string | null + mileage: number | null + year: number | null + }, ExtArgs["result"]["mileage_bank"]> + composites: {} +} + +export type mileage_bankGetPayload = runtime.Types.Result.GetResult + +export type mileage_bankCountArgs = + Omit & { + select?: Mileage_bankCountAggregateInputType | true + } + +export interface mileage_bankDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['mileage_bank'], meta: { name: 'mileage_bank' } } + /** + * Find zero or one Mileage_bank that matches the filter. + * @param {mileage_bankFindUniqueArgs} args - Arguments to find a Mileage_bank + * @example + * // Get one Mileage_bank + * const mileage_bank = await prisma.mileage_bank.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Mileage_bank that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {mileage_bankFindUniqueOrThrowArgs} args - Arguments to find a Mileage_bank + * @example + * // Get one Mileage_bank + * const mileage_bank = await prisma.mileage_bank.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Mileage_bank 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 {mileage_bankFindFirstArgs} args - Arguments to find a Mileage_bank + * @example + * // Get one Mileage_bank + * const mileage_bank = await prisma.mileage_bank.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Mileage_bank 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 {mileage_bankFindFirstOrThrowArgs} args - Arguments to find a Mileage_bank + * @example + * // Get one Mileage_bank + * const mileage_bank = await prisma.mileage_bank.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Mileage_banks 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 {mileage_bankFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Mileage_banks + * const mileage_banks = await prisma.mileage_bank.findMany() + * + * // Get first 10 Mileage_banks + * const mileage_banks = await prisma.mileage_bank.findMany({ take: 10 }) + * + * // Only select the `id` + * const mileage_bankWithIdOnly = await prisma.mileage_bank.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Mileage_bank. + * @param {mileage_bankCreateArgs} args - Arguments to create a Mileage_bank. + * @example + * // Create one Mileage_bank + * const Mileage_bank = await prisma.mileage_bank.create({ + * data: { + * // ... data to create a Mileage_bank + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Mileage_banks. + * @param {mileage_bankCreateManyArgs} args - Arguments to create many Mileage_banks. + * @example + * // Create many Mileage_banks + * const mileage_bank = await prisma.mileage_bank.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Mileage_banks and returns the data saved in the database. + * @param {mileage_bankCreateManyAndReturnArgs} args - Arguments to create many Mileage_banks. + * @example + * // Create many Mileage_banks + * const mileage_bank = await prisma.mileage_bank.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Mileage_banks and only return the `id` + * const mileage_bankWithIdOnly = await prisma.mileage_bank.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 Mileage_bank. + * @param {mileage_bankDeleteArgs} args - Arguments to delete one Mileage_bank. + * @example + * // Delete one Mileage_bank + * const Mileage_bank = await prisma.mileage_bank.delete({ + * where: { + * // ... filter to delete one Mileage_bank + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Mileage_bank. + * @param {mileage_bankUpdateArgs} args - Arguments to update one Mileage_bank. + * @example + * // Update one Mileage_bank + * const mileage_bank = await prisma.mileage_bank.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Mileage_banks. + * @param {mileage_bankDeleteManyArgs} args - Arguments to filter Mileage_banks to delete. + * @example + * // Delete a few Mileage_banks + * const { count } = await prisma.mileage_bank.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Mileage_banks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {mileage_bankUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Mileage_banks + * const mileage_bank = await prisma.mileage_bank.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Mileage_banks and returns the data updated in the database. + * @param {mileage_bankUpdateManyAndReturnArgs} args - Arguments to update many Mileage_banks. + * @example + * // Update many Mileage_banks + * const mileage_bank = await prisma.mileage_bank.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Mileage_banks and only return the `id` + * const mileage_bankWithIdOnly = await prisma.mileage_bank.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 Mileage_bank. + * @param {mileage_bankUpsertArgs} args - Arguments to update or create a Mileage_bank. + * @example + * // Update or create a Mileage_bank + * const mileage_bank = await prisma.mileage_bank.upsert({ + * create: { + * // ... data to create a Mileage_bank + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Mileage_bank we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Mileage_banks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {mileage_bankCountArgs} args - Arguments to filter Mileage_banks to count. + * @example + * // Count the number of Mileage_banks + * const count = await prisma.mileage_bank.count({ + * where: { + * // ... the filter for the Mileage_banks 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 Mileage_bank. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Mileage_bankAggregateArgs} 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 Mileage_bank. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {mileage_bankGroupByArgs} 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 mileage_bankGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: mileage_bankGroupByArgs['orderBy'] } + : { orderBy?: mileage_bankGroupByArgs['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 ? GetMileage_bankGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the mileage_bank model + */ +readonly fields: mileage_bankFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for mileage_bank. + * 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__mileage_bankClient 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 mileage_bank model + */ +export interface mileage_bankFieldRefs { + readonly id: Prisma.FieldRef<"mileage_bank", 'String'> + readonly employee_id: Prisma.FieldRef<"mileage_bank", 'String'> + readonly mileage: Prisma.FieldRef<"mileage_bank", 'Int'> + readonly year: Prisma.FieldRef<"mileage_bank", 'Int'> +} + + +// Custom InputTypes +/** + * mileage_bank findUnique + */ +export type mileage_bankFindUniqueArgs = { + /** + * Select specific fields to fetch from the mileage_bank + */ + select?: Prisma.mileage_bankSelect | null + /** + * Omit specific fields from the mileage_bank + */ + omit?: Prisma.mileage_bankOmit | null + /** + * Filter, which mileage_bank to fetch. + */ + where: Prisma.mileage_bankWhereUniqueInput +} + +/** + * mileage_bank findUniqueOrThrow + */ +export type mileage_bankFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the mileage_bank + */ + select?: Prisma.mileage_bankSelect | null + /** + * Omit specific fields from the mileage_bank + */ + omit?: Prisma.mileage_bankOmit | null + /** + * Filter, which mileage_bank to fetch. + */ + where: Prisma.mileage_bankWhereUniqueInput +} + +/** + * mileage_bank findFirst + */ +export type mileage_bankFindFirstArgs = { + /** + * Select specific fields to fetch from the mileage_bank + */ + select?: Prisma.mileage_bankSelect | null + /** + * Omit specific fields from the mileage_bank + */ + omit?: Prisma.mileage_bankOmit | null + /** + * Filter, which mileage_bank to fetch. + */ + where?: Prisma.mileage_bankWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of mileage_banks to fetch. + */ + orderBy?: Prisma.mileage_bankOrderByWithRelationInput | Prisma.mileage_bankOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for mileage_banks. + */ + cursor?: Prisma.mileage_bankWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` mileage_banks 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` mileage_banks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of mileage_banks. + */ + distinct?: Prisma.Mileage_bankScalarFieldEnum | Prisma.Mileage_bankScalarFieldEnum[] +} + +/** + * mileage_bank findFirstOrThrow + */ +export type mileage_bankFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the mileage_bank + */ + select?: Prisma.mileage_bankSelect | null + /** + * Omit specific fields from the mileage_bank + */ + omit?: Prisma.mileage_bankOmit | null + /** + * Filter, which mileage_bank to fetch. + */ + where?: Prisma.mileage_bankWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of mileage_banks to fetch. + */ + orderBy?: Prisma.mileage_bankOrderByWithRelationInput | Prisma.mileage_bankOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for mileage_banks. + */ + cursor?: Prisma.mileage_bankWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` mileage_banks 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` mileage_banks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of mileage_banks. + */ + distinct?: Prisma.Mileage_bankScalarFieldEnum | Prisma.Mileage_bankScalarFieldEnum[] +} + +/** + * mileage_bank findMany + */ +export type mileage_bankFindManyArgs = { + /** + * Select specific fields to fetch from the mileage_bank + */ + select?: Prisma.mileage_bankSelect | null + /** + * Omit specific fields from the mileage_bank + */ + omit?: Prisma.mileage_bankOmit | null + /** + * Filter, which mileage_banks to fetch. + */ + where?: Prisma.mileage_bankWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of mileage_banks to fetch. + */ + orderBy?: Prisma.mileage_bankOrderByWithRelationInput | Prisma.mileage_bankOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing mileage_banks. + */ + cursor?: Prisma.mileage_bankWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` mileage_banks 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` mileage_banks. + */ + skip?: number + distinct?: Prisma.Mileage_bankScalarFieldEnum | Prisma.Mileage_bankScalarFieldEnum[] +} + +/** + * mileage_bank create + */ +export type mileage_bankCreateArgs = { + /** + * Select specific fields to fetch from the mileage_bank + */ + select?: Prisma.mileage_bankSelect | null + /** + * Omit specific fields from the mileage_bank + */ + omit?: Prisma.mileage_bankOmit | null + /** + * The data needed to create a mileage_bank. + */ + data: Prisma.XOR +} + +/** + * mileage_bank createMany + */ +export type mileage_bankCreateManyArgs = { + /** + * The data used to create many mileage_banks. + */ + data: Prisma.mileage_bankCreateManyInput | Prisma.mileage_bankCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * mileage_bank createManyAndReturn + */ +export type mileage_bankCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the mileage_bank + */ + select?: Prisma.mileage_bankSelectCreateManyAndReturn | null + /** + * Omit specific fields from the mileage_bank + */ + omit?: Prisma.mileage_bankOmit | null + /** + * The data used to create many mileage_banks. + */ + data: Prisma.mileage_bankCreateManyInput | Prisma.mileage_bankCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * mileage_bank update + */ +export type mileage_bankUpdateArgs = { + /** + * Select specific fields to fetch from the mileage_bank + */ + select?: Prisma.mileage_bankSelect | null + /** + * Omit specific fields from the mileage_bank + */ + omit?: Prisma.mileage_bankOmit | null + /** + * The data needed to update a mileage_bank. + */ + data: Prisma.XOR + /** + * Choose, which mileage_bank to update. + */ + where: Prisma.mileage_bankWhereUniqueInput +} + +/** + * mileage_bank updateMany + */ +export type mileage_bankUpdateManyArgs = { + /** + * The data used to update mileage_banks. + */ + data: Prisma.XOR + /** + * Filter which mileage_banks to update + */ + where?: Prisma.mileage_bankWhereInput + /** + * Limit how many mileage_banks to update. + */ + limit?: number +} + +/** + * mileage_bank updateManyAndReturn + */ +export type mileage_bankUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the mileage_bank + */ + select?: Prisma.mileage_bankSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the mileage_bank + */ + omit?: Prisma.mileage_bankOmit | null + /** + * The data used to update mileage_banks. + */ + data: Prisma.XOR + /** + * Filter which mileage_banks to update + */ + where?: Prisma.mileage_bankWhereInput + /** + * Limit how many mileage_banks to update. + */ + limit?: number +} + +/** + * mileage_bank upsert + */ +export type mileage_bankUpsertArgs = { + /** + * Select specific fields to fetch from the mileage_bank + */ + select?: Prisma.mileage_bankSelect | null + /** + * Omit specific fields from the mileage_bank + */ + omit?: Prisma.mileage_bankOmit | null + /** + * The filter to search for the mileage_bank to update in case it exists. + */ + where: Prisma.mileage_bankWhereUniqueInput + /** + * In case the mileage_bank found by the `where` argument doesn't exist, create a new mileage_bank with this data. + */ + create: Prisma.XOR + /** + * In case the mileage_bank was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * mileage_bank delete + */ +export type mileage_bankDeleteArgs = { + /** + * Select specific fields to fetch from the mileage_bank + */ + select?: Prisma.mileage_bankSelect | null + /** + * Omit specific fields from the mileage_bank + */ + omit?: Prisma.mileage_bankOmit | null + /** + * Filter which mileage_bank to delete. + */ + where: Prisma.mileage_bankWhereUniqueInput +} + +/** + * mileage_bank deleteMany + */ +export type mileage_bankDeleteManyArgs = { + /** + * Filter which mileage_banks to delete + */ + where?: Prisma.mileage_bankWhereInput + /** + * Limit how many mileage_banks to delete. + */ + limit?: number +} + +/** + * mileage_bank without action + */ +export type mileage_bankDefaultArgs = { + /** + * Select specific fields to fetch from the mileage_bank + */ + select?: Prisma.mileage_bankSelect | null + /** + * Omit specific fields from the mileage_bank + */ + omit?: Prisma.mileage_bankOmit | null +} diff --git a/prisma/generated/legacy/models/shifts.ts b/prisma/generated/legacy/models/shifts.ts new file mode 100644 index 0000000..4540cc2 --- /dev/null +++ b/prisma/generated/legacy/models/shifts.ts @@ -0,0 +1,1406 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `shifts` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model shifts + * + */ +export type shiftsModel = runtime.Types.Result.DefaultSelection + +export type AggregateShifts = { + _count: ShiftsCountAggregateOutputType | null + _avg: ShiftsAvgAggregateOutputType | null + _sum: ShiftsSumAggregateOutputType | null + _min: ShiftsMinAggregateOutputType | null + _max: ShiftsMaxAggregateOutputType | null +} + +export type ShiftsAvgAggregateOutputType = { + start_time: number | null + end_time: number | null + created_at: number | null + updated_at: number | null +} + +export type ShiftsSumAggregateOutputType = { + start_time: bigint | null + end_time: bigint | null + created_at: bigint | null + updated_at: bigint | null +} + +export type ShiftsMinAggregateOutputType = { + id: string | null + time_sheet_id: string | null + code: string | null + type: string | null + date: Date | null + start_time: bigint | null + end_time: bigint | null + comment: string | null + status: boolean | null + created_at: bigint | null + updated_at: bigint | null + supervisor_note: string | null +} + +export type ShiftsMaxAggregateOutputType = { + id: string | null + time_sheet_id: string | null + code: string | null + type: string | null + date: Date | null + start_time: bigint | null + end_time: bigint | null + comment: string | null + status: boolean | null + created_at: bigint | null + updated_at: bigint | null + supervisor_note: string | null +} + +export type ShiftsCountAggregateOutputType = { + id: number + time_sheet_id: number + code: number + type: number + date: number + start_time: number + end_time: number + comment: number + status: number + created_at: number + updated_at: number + supervisor_note: number + _all: number +} + + +export type ShiftsAvgAggregateInputType = { + start_time?: true + end_time?: true + created_at?: true + updated_at?: true +} + +export type ShiftsSumAggregateInputType = { + start_time?: true + end_time?: true + created_at?: true + updated_at?: true +} + +export type ShiftsMinAggregateInputType = { + id?: true + time_sheet_id?: true + code?: true + type?: true + date?: true + start_time?: true + end_time?: true + comment?: true + status?: true + created_at?: true + updated_at?: true + supervisor_note?: true +} + +export type ShiftsMaxAggregateInputType = { + id?: true + time_sheet_id?: true + code?: true + type?: true + date?: true + start_time?: true + end_time?: true + comment?: true + status?: true + created_at?: true + updated_at?: true + supervisor_note?: true +} + +export type ShiftsCountAggregateInputType = { + id?: true + time_sheet_id?: true + code?: true + type?: true + date?: true + start_time?: true + end_time?: true + comment?: true + status?: true + created_at?: true + updated_at?: true + supervisor_note?: true + _all?: true +} + +export type ShiftsAggregateArgs = { + /** + * Filter which shifts to aggregate. + */ + where?: Prisma.shiftsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of shifts to fetch. + */ + orderBy?: Prisma.shiftsOrderByWithRelationInput | Prisma.shiftsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.shiftsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` shifts 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` shifts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned shifts + **/ + _count?: true | ShiftsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ShiftsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ShiftsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ShiftsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ShiftsMaxAggregateInputType +} + +export type GetShiftsAggregateType = { + [P in keyof T & keyof AggregateShifts]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type shiftsGroupByArgs = { + where?: Prisma.shiftsWhereInput + orderBy?: Prisma.shiftsOrderByWithAggregationInput | Prisma.shiftsOrderByWithAggregationInput[] + by: Prisma.ShiftsScalarFieldEnum[] | Prisma.ShiftsScalarFieldEnum + having?: Prisma.shiftsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ShiftsCountAggregateInputType | true + _avg?: ShiftsAvgAggregateInputType + _sum?: ShiftsSumAggregateInputType + _min?: ShiftsMinAggregateInputType + _max?: ShiftsMaxAggregateInputType +} + +export type ShiftsGroupByOutputType = { + id: string + time_sheet_id: string | null + code: string | null + type: string | null + date: Date | null + start_time: bigint | null + end_time: bigint | null + comment: string | null + status: boolean | null + created_at: bigint | null + updated_at: bigint | null + supervisor_note: string | null + _count: ShiftsCountAggregateOutputType | null + _avg: ShiftsAvgAggregateOutputType | null + _sum: ShiftsSumAggregateOutputType | null + _min: ShiftsMinAggregateOutputType | null + _max: ShiftsMaxAggregateOutputType | null +} + +type GetShiftsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ShiftsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type shiftsWhereInput = { + AND?: Prisma.shiftsWhereInput | Prisma.shiftsWhereInput[] + OR?: Prisma.shiftsWhereInput[] + NOT?: Prisma.shiftsWhereInput | Prisma.shiftsWhereInput[] + id?: Prisma.UuidFilter<"shifts"> | string + time_sheet_id?: Prisma.StringNullableFilter<"shifts"> | string | null + code?: Prisma.StringNullableFilter<"shifts"> | string | null + type?: Prisma.StringNullableFilter<"shifts"> | string | null + date?: Prisma.DateTimeNullableFilter<"shifts"> | Date | string | null + start_time?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null + end_time?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null + comment?: Prisma.StringNullableFilter<"shifts"> | string | null + status?: Prisma.BoolNullableFilter<"shifts"> | boolean | null + created_at?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null + supervisor_note?: Prisma.StringNullableFilter<"shifts"> | string | null +} + +export type shiftsOrderByWithRelationInput = { + id?: Prisma.SortOrder + time_sheet_id?: Prisma.SortOrderInput | Prisma.SortOrder + code?: Prisma.SortOrderInput | Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + start_time?: Prisma.SortOrderInput | Prisma.SortOrder + end_time?: Prisma.SortOrderInput | Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + supervisor_note?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type shiftsWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.shiftsWhereInput | Prisma.shiftsWhereInput[] + OR?: Prisma.shiftsWhereInput[] + NOT?: Prisma.shiftsWhereInput | Prisma.shiftsWhereInput[] + time_sheet_id?: Prisma.StringNullableFilter<"shifts"> | string | null + code?: Prisma.StringNullableFilter<"shifts"> | string | null + type?: Prisma.StringNullableFilter<"shifts"> | string | null + date?: Prisma.DateTimeNullableFilter<"shifts"> | Date | string | null + start_time?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null + end_time?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null + comment?: Prisma.StringNullableFilter<"shifts"> | string | null + status?: Prisma.BoolNullableFilter<"shifts"> | boolean | null + created_at?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null + supervisor_note?: Prisma.StringNullableFilter<"shifts"> | string | null +}, "id"> + +export type shiftsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + time_sheet_id?: Prisma.SortOrderInput | Prisma.SortOrder + code?: Prisma.SortOrderInput | Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + start_time?: Prisma.SortOrderInput | Prisma.SortOrder + end_time?: Prisma.SortOrderInput | Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + supervisor_note?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.shiftsCountOrderByAggregateInput + _avg?: Prisma.shiftsAvgOrderByAggregateInput + _max?: Prisma.shiftsMaxOrderByAggregateInput + _min?: Prisma.shiftsMinOrderByAggregateInput + _sum?: Prisma.shiftsSumOrderByAggregateInput +} + +export type shiftsScalarWhereWithAggregatesInput = { + AND?: Prisma.shiftsScalarWhereWithAggregatesInput | Prisma.shiftsScalarWhereWithAggregatesInput[] + OR?: Prisma.shiftsScalarWhereWithAggregatesInput[] + NOT?: Prisma.shiftsScalarWhereWithAggregatesInput | Prisma.shiftsScalarWhereWithAggregatesInput[] + id?: Prisma.UuidWithAggregatesFilter<"shifts"> | string + time_sheet_id?: Prisma.StringNullableWithAggregatesFilter<"shifts"> | string | null + code?: Prisma.StringNullableWithAggregatesFilter<"shifts"> | string | null + type?: Prisma.StringNullableWithAggregatesFilter<"shifts"> | string | null + date?: Prisma.DateTimeNullableWithAggregatesFilter<"shifts"> | Date | string | null + start_time?: Prisma.BigIntNullableWithAggregatesFilter<"shifts"> | bigint | number | null + end_time?: Prisma.BigIntNullableWithAggregatesFilter<"shifts"> | bigint | number | null + comment?: Prisma.StringNullableWithAggregatesFilter<"shifts"> | string | null + status?: Prisma.BoolNullableWithAggregatesFilter<"shifts"> | boolean | null + created_at?: Prisma.BigIntNullableWithAggregatesFilter<"shifts"> | bigint | number | null + updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"shifts"> | bigint | number | null + supervisor_note?: Prisma.StringNullableWithAggregatesFilter<"shifts"> | string | null +} + +export type shiftsCreateInput = { + id: string + time_sheet_id?: string | null + code?: string | null + type?: string | null + date?: Date | string | null + start_time?: bigint | number | null + end_time?: bigint | number | null + comment?: string | null + status?: boolean | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + supervisor_note?: string | null +} + +export type shiftsUncheckedCreateInput = { + id: string + time_sheet_id?: string | null + code?: string | null + type?: string | null + date?: Date | string | null + start_time?: bigint | number | null + end_time?: bigint | number | null + comment?: string | null + status?: boolean | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + supervisor_note?: string | null +} + +export type shiftsUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + start_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type shiftsUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + start_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type shiftsCreateManyInput = { + id: string + time_sheet_id?: string | null + code?: string | null + type?: string | null + date?: Date | string | null + start_time?: bigint | number | null + end_time?: bigint | number | null + comment?: string | null + status?: boolean | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + supervisor_note?: string | null +} + +export type shiftsUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + start_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type shiftsUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + start_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type shiftsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + time_sheet_id?: Prisma.SortOrder + code?: Prisma.SortOrder + type?: Prisma.SortOrder + date?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + comment?: Prisma.SortOrder + status?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + supervisor_note?: Prisma.SortOrder +} + +export type shiftsAvgOrderByAggregateInput = { + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type shiftsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + time_sheet_id?: Prisma.SortOrder + code?: Prisma.SortOrder + type?: Prisma.SortOrder + date?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + comment?: Prisma.SortOrder + status?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + supervisor_note?: Prisma.SortOrder +} + +export type shiftsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + time_sheet_id?: Prisma.SortOrder + code?: Prisma.SortOrder + type?: Prisma.SortOrder + date?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + comment?: Prisma.SortOrder + status?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + supervisor_note?: Prisma.SortOrder +} + +export type shiftsSumOrderByAggregateInput = { + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type NullableDateTimeFieldUpdateOperationsInput = { + set?: Date | string | null +} + + + +export type shiftsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + time_sheet_id?: boolean + code?: boolean + type?: boolean + date?: boolean + start_time?: boolean + end_time?: boolean + comment?: boolean + status?: boolean + created_at?: boolean + updated_at?: boolean + supervisor_note?: boolean +}, ExtArgs["result"]["shifts"]> + +export type shiftsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + time_sheet_id?: boolean + code?: boolean + type?: boolean + date?: boolean + start_time?: boolean + end_time?: boolean + comment?: boolean + status?: boolean + created_at?: boolean + updated_at?: boolean + supervisor_note?: boolean +}, ExtArgs["result"]["shifts"]> + +export type shiftsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + time_sheet_id?: boolean + code?: boolean + type?: boolean + date?: boolean + start_time?: boolean + end_time?: boolean + comment?: boolean + status?: boolean + created_at?: boolean + updated_at?: boolean + supervisor_note?: boolean +}, ExtArgs["result"]["shifts"]> + +export type shiftsSelectScalar = { + id?: boolean + time_sheet_id?: boolean + code?: boolean + type?: boolean + date?: boolean + start_time?: boolean + end_time?: boolean + comment?: boolean + status?: boolean + created_at?: boolean + updated_at?: boolean + supervisor_note?: boolean +} + +export type shiftsOmit = runtime.Types.Extensions.GetOmit<"id" | "time_sheet_id" | "code" | "type" | "date" | "start_time" | "end_time" | "comment" | "status" | "created_at" | "updated_at" | "supervisor_note", ExtArgs["result"]["shifts"]> + +export type $shiftsPayload = { + name: "shifts" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + time_sheet_id: string | null + code: string | null + type: string | null + date: Date | null + start_time: bigint | null + end_time: bigint | null + comment: string | null + status: boolean | null + created_at: bigint | null + updated_at: bigint | null + supervisor_note: string | null + }, ExtArgs["result"]["shifts"]> + composites: {} +} + +export type shiftsGetPayload = runtime.Types.Result.GetResult + +export type shiftsCountArgs = + Omit & { + select?: ShiftsCountAggregateInputType | true + } + +export interface shiftsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['shifts'], meta: { name: 'shifts' } } + /** + * Find zero or one Shifts that matches the filter. + * @param {shiftsFindUniqueArgs} args - Arguments to find a Shifts + * @example + * // Get one Shifts + * const shifts = await prisma.shifts.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Shifts that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {shiftsFindUniqueOrThrowArgs} args - Arguments to find a Shifts + * @example + * // Get one Shifts + * const shifts = await prisma.shifts.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Shifts 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 {shiftsFindFirstArgs} args - Arguments to find a Shifts + * @example + * // Get one Shifts + * const shifts = await prisma.shifts.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Shifts 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 {shiftsFindFirstOrThrowArgs} args - Arguments to find a Shifts + * @example + * // Get one Shifts + * const shifts = await prisma.shifts.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Shifts 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 {shiftsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Shifts + * const shifts = await prisma.shifts.findMany() + * + * // Get first 10 Shifts + * const shifts = await prisma.shifts.findMany({ take: 10 }) + * + * // Only select the `id` + * const shiftsWithIdOnly = await prisma.shifts.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Shifts. + * @param {shiftsCreateArgs} args - Arguments to create a Shifts. + * @example + * // Create one Shifts + * const Shifts = await prisma.shifts.create({ + * data: { + * // ... data to create a Shifts + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Shifts. + * @param {shiftsCreateManyArgs} args - Arguments to create many Shifts. + * @example + * // Create many Shifts + * const shifts = await prisma.shifts.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Shifts and returns the data saved in the database. + * @param {shiftsCreateManyAndReturnArgs} args - Arguments to create many Shifts. + * @example + * // Create many Shifts + * const shifts = await prisma.shifts.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Shifts and only return the `id` + * const shiftsWithIdOnly = await prisma.shifts.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 Shifts. + * @param {shiftsDeleteArgs} args - Arguments to delete one Shifts. + * @example + * // Delete one Shifts + * const Shifts = await prisma.shifts.delete({ + * where: { + * // ... filter to delete one Shifts + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Shifts. + * @param {shiftsUpdateArgs} args - Arguments to update one Shifts. + * @example + * // Update one Shifts + * const shifts = await prisma.shifts.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Shifts. + * @param {shiftsDeleteManyArgs} args - Arguments to filter Shifts to delete. + * @example + * // Delete a few Shifts + * const { count } = await prisma.shifts.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Shifts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {shiftsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Shifts + * const shifts = await prisma.shifts.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Shifts and returns the data updated in the database. + * @param {shiftsUpdateManyAndReturnArgs} args - Arguments to update many Shifts. + * @example + * // Update many Shifts + * const shifts = await prisma.shifts.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Shifts and only return the `id` + * const shiftsWithIdOnly = await prisma.shifts.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 Shifts. + * @param {shiftsUpsertArgs} args - Arguments to update or create a Shifts. + * @example + * // Update or create a Shifts + * const shifts = await prisma.shifts.upsert({ + * create: { + * // ... data to create a Shifts + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Shifts we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__shiftsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Shifts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {shiftsCountArgs} args - Arguments to filter Shifts to count. + * @example + * // Count the number of Shifts + * const count = await prisma.shifts.count({ + * where: { + * // ... the filter for the Shifts 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 Shifts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShiftsAggregateArgs} 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 Shifts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {shiftsGroupByArgs} 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 shiftsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: shiftsGroupByArgs['orderBy'] } + : { orderBy?: shiftsGroupByArgs['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 ? GetShiftsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the shifts model + */ +readonly fields: shiftsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for shifts. + * 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__shiftsClient 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 shifts model + */ +export interface shiftsFieldRefs { + readonly id: Prisma.FieldRef<"shifts", 'String'> + readonly time_sheet_id: Prisma.FieldRef<"shifts", 'String'> + readonly code: Prisma.FieldRef<"shifts", 'String'> + readonly type: Prisma.FieldRef<"shifts", 'String'> + readonly date: Prisma.FieldRef<"shifts", 'DateTime'> + readonly start_time: Prisma.FieldRef<"shifts", 'BigInt'> + readonly end_time: Prisma.FieldRef<"shifts", 'BigInt'> + readonly comment: Prisma.FieldRef<"shifts", 'String'> + readonly status: Prisma.FieldRef<"shifts", 'Boolean'> + readonly created_at: Prisma.FieldRef<"shifts", 'BigInt'> + readonly updated_at: Prisma.FieldRef<"shifts", 'BigInt'> + readonly supervisor_note: Prisma.FieldRef<"shifts", 'String'> +} + + +// Custom InputTypes +/** + * shifts findUnique + */ +export type shiftsFindUniqueArgs = { + /** + * Select specific fields to fetch from the shifts + */ + select?: Prisma.shiftsSelect | null + /** + * Omit specific fields from the shifts + */ + omit?: Prisma.shiftsOmit | null + /** + * Filter, which shifts to fetch. + */ + where: Prisma.shiftsWhereUniqueInput +} + +/** + * shifts findUniqueOrThrow + */ +export type shiftsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the shifts + */ + select?: Prisma.shiftsSelect | null + /** + * Omit specific fields from the shifts + */ + omit?: Prisma.shiftsOmit | null + /** + * Filter, which shifts to fetch. + */ + where: Prisma.shiftsWhereUniqueInput +} + +/** + * shifts findFirst + */ +export type shiftsFindFirstArgs = { + /** + * Select specific fields to fetch from the shifts + */ + select?: Prisma.shiftsSelect | null + /** + * Omit specific fields from the shifts + */ + omit?: Prisma.shiftsOmit | null + /** + * Filter, which shifts to fetch. + */ + where?: Prisma.shiftsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of shifts to fetch. + */ + orderBy?: Prisma.shiftsOrderByWithRelationInput | Prisma.shiftsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for shifts. + */ + cursor?: Prisma.shiftsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` shifts 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` shifts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of shifts. + */ + distinct?: Prisma.ShiftsScalarFieldEnum | Prisma.ShiftsScalarFieldEnum[] +} + +/** + * shifts findFirstOrThrow + */ +export type shiftsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the shifts + */ + select?: Prisma.shiftsSelect | null + /** + * Omit specific fields from the shifts + */ + omit?: Prisma.shiftsOmit | null + /** + * Filter, which shifts to fetch. + */ + where?: Prisma.shiftsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of shifts to fetch. + */ + orderBy?: Prisma.shiftsOrderByWithRelationInput | Prisma.shiftsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for shifts. + */ + cursor?: Prisma.shiftsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` shifts 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` shifts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of shifts. + */ + distinct?: Prisma.ShiftsScalarFieldEnum | Prisma.ShiftsScalarFieldEnum[] +} + +/** + * shifts findMany + */ +export type shiftsFindManyArgs = { + /** + * Select specific fields to fetch from the shifts + */ + select?: Prisma.shiftsSelect | null + /** + * Omit specific fields from the shifts + */ + omit?: Prisma.shiftsOmit | null + /** + * Filter, which shifts to fetch. + */ + where?: Prisma.shiftsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of shifts to fetch. + */ + orderBy?: Prisma.shiftsOrderByWithRelationInput | Prisma.shiftsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing shifts. + */ + cursor?: Prisma.shiftsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` shifts 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` shifts. + */ + skip?: number + distinct?: Prisma.ShiftsScalarFieldEnum | Prisma.ShiftsScalarFieldEnum[] +} + +/** + * shifts create + */ +export type shiftsCreateArgs = { + /** + * Select specific fields to fetch from the shifts + */ + select?: Prisma.shiftsSelect | null + /** + * Omit specific fields from the shifts + */ + omit?: Prisma.shiftsOmit | null + /** + * The data needed to create a shifts. + */ + data: Prisma.XOR +} + +/** + * shifts createMany + */ +export type shiftsCreateManyArgs = { + /** + * The data used to create many shifts. + */ + data: Prisma.shiftsCreateManyInput | Prisma.shiftsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * shifts createManyAndReturn + */ +export type shiftsCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the shifts + */ + select?: Prisma.shiftsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the shifts + */ + omit?: Prisma.shiftsOmit | null + /** + * The data used to create many shifts. + */ + data: Prisma.shiftsCreateManyInput | Prisma.shiftsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * shifts update + */ +export type shiftsUpdateArgs = { + /** + * Select specific fields to fetch from the shifts + */ + select?: Prisma.shiftsSelect | null + /** + * Omit specific fields from the shifts + */ + omit?: Prisma.shiftsOmit | null + /** + * The data needed to update a shifts. + */ + data: Prisma.XOR + /** + * Choose, which shifts to update. + */ + where: Prisma.shiftsWhereUniqueInput +} + +/** + * shifts updateMany + */ +export type shiftsUpdateManyArgs = { + /** + * The data used to update shifts. + */ + data: Prisma.XOR + /** + * Filter which shifts to update + */ + where?: Prisma.shiftsWhereInput + /** + * Limit how many shifts to update. + */ + limit?: number +} + +/** + * shifts updateManyAndReturn + */ +export type shiftsUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the shifts + */ + select?: Prisma.shiftsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the shifts + */ + omit?: Prisma.shiftsOmit | null + /** + * The data used to update shifts. + */ + data: Prisma.XOR + /** + * Filter which shifts to update + */ + where?: Prisma.shiftsWhereInput + /** + * Limit how many shifts to update. + */ + limit?: number +} + +/** + * shifts upsert + */ +export type shiftsUpsertArgs = { + /** + * Select specific fields to fetch from the shifts + */ + select?: Prisma.shiftsSelect | null + /** + * Omit specific fields from the shifts + */ + omit?: Prisma.shiftsOmit | null + /** + * The filter to search for the shifts to update in case it exists. + */ + where: Prisma.shiftsWhereUniqueInput + /** + * In case the shifts found by the `where` argument doesn't exist, create a new shifts with this data. + */ + create: Prisma.XOR + /** + * In case the shifts was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * shifts delete + */ +export type shiftsDeleteArgs = { + /** + * Select specific fields to fetch from the shifts + */ + select?: Prisma.shiftsSelect | null + /** + * Omit specific fields from the shifts + */ + omit?: Prisma.shiftsOmit | null + /** + * Filter which shifts to delete. + */ + where: Prisma.shiftsWhereUniqueInput +} + +/** + * shifts deleteMany + */ +export type shiftsDeleteManyArgs = { + /** + * Filter which shifts to delete + */ + where?: Prisma.shiftsWhereInput + /** + * Limit how many shifts to delete. + */ + limit?: number +} + +/** + * shifts without action + */ +export type shiftsDefaultArgs = { + /** + * Select specific fields to fetch from the shifts + */ + select?: Prisma.shiftsSelect | null + /** + * Omit specific fields from the shifts + */ + omit?: Prisma.shiftsOmit | null +} diff --git a/prisma/generated/legacy/models/shifts_of_template.ts b/prisma/generated/legacy/models/shifts_of_template.ts new file mode 100644 index 0000000..c827e6f --- /dev/null +++ b/prisma/generated/legacy/models/shifts_of_template.ts @@ -0,0 +1,1262 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `shifts_of_template` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model shifts_of_template + * + */ +export type shifts_of_templateModel = runtime.Types.Result.DefaultSelection + +export type AggregateShifts_of_template = { + _count: Shifts_of_templateCountAggregateOutputType | null + _avg: Shifts_of_templateAvgAggregateOutputType | null + _sum: Shifts_of_templateSumAggregateOutputType | null + _min: Shifts_of_templateMinAggregateOutputType | null + _max: Shifts_of_templateMaxAggregateOutputType | null +} + +export type Shifts_of_templateAvgAggregateOutputType = { + start_time: number | null + end_time: number | null + created_at: number | null + updated_at: number | null +} + +export type Shifts_of_templateSumAggregateOutputType = { + start_time: bigint | null + end_time: bigint | null + created_at: bigint | null + updated_at: bigint | null +} + +export type Shifts_of_templateMinAggregateOutputType = { + id: string | null + model_id: string | null + day_of_the_week: string | null + start_time: bigint | null + end_time: bigint | null + created_at: bigint | null + updated_at: bigint | null +} + +export type Shifts_of_templateMaxAggregateOutputType = { + id: string | null + model_id: string | null + day_of_the_week: string | null + start_time: bigint | null + end_time: bigint | null + created_at: bigint | null + updated_at: bigint | null +} + +export type Shifts_of_templateCountAggregateOutputType = { + id: number + model_id: number + day_of_the_week: number + start_time: number + end_time: number + created_at: number + updated_at: number + _all: number +} + + +export type Shifts_of_templateAvgAggregateInputType = { + start_time?: true + end_time?: true + created_at?: true + updated_at?: true +} + +export type Shifts_of_templateSumAggregateInputType = { + start_time?: true + end_time?: true + created_at?: true + updated_at?: true +} + +export type Shifts_of_templateMinAggregateInputType = { + id?: true + model_id?: true + day_of_the_week?: true + start_time?: true + end_time?: true + created_at?: true + updated_at?: true +} + +export type Shifts_of_templateMaxAggregateInputType = { + id?: true + model_id?: true + day_of_the_week?: true + start_time?: true + end_time?: true + created_at?: true + updated_at?: true +} + +export type Shifts_of_templateCountAggregateInputType = { + id?: true + model_id?: true + day_of_the_week?: true + start_time?: true + end_time?: true + created_at?: true + updated_at?: true + _all?: true +} + +export type Shifts_of_templateAggregateArgs = { + /** + * Filter which shifts_of_template to aggregate. + */ + where?: Prisma.shifts_of_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of shifts_of_templates to fetch. + */ + orderBy?: Prisma.shifts_of_templateOrderByWithRelationInput | Prisma.shifts_of_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.shifts_of_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` shifts_of_templates 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` shifts_of_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned shifts_of_templates + **/ + _count?: true | Shifts_of_templateCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Shifts_of_templateAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Shifts_of_templateSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Shifts_of_templateMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Shifts_of_templateMaxAggregateInputType +} + +export type GetShifts_of_templateAggregateType = { + [P in keyof T & keyof AggregateShifts_of_template]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type shifts_of_templateGroupByArgs = { + where?: Prisma.shifts_of_templateWhereInput + orderBy?: Prisma.shifts_of_templateOrderByWithAggregationInput | Prisma.shifts_of_templateOrderByWithAggregationInput[] + by: Prisma.Shifts_of_templateScalarFieldEnum[] | Prisma.Shifts_of_templateScalarFieldEnum + having?: Prisma.shifts_of_templateScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Shifts_of_templateCountAggregateInputType | true + _avg?: Shifts_of_templateAvgAggregateInputType + _sum?: Shifts_of_templateSumAggregateInputType + _min?: Shifts_of_templateMinAggregateInputType + _max?: Shifts_of_templateMaxAggregateInputType +} + +export type Shifts_of_templateGroupByOutputType = { + id: string + model_id: string + day_of_the_week: string + start_time: bigint + end_time: bigint + created_at: bigint + updated_at: bigint + _count: Shifts_of_templateCountAggregateOutputType | null + _avg: Shifts_of_templateAvgAggregateOutputType | null + _sum: Shifts_of_templateSumAggregateOutputType | null + _min: Shifts_of_templateMinAggregateOutputType | null + _max: Shifts_of_templateMaxAggregateOutputType | null +} + +type GetShifts_of_templateGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Shifts_of_templateGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type shifts_of_templateWhereInput = { + AND?: Prisma.shifts_of_templateWhereInput | Prisma.shifts_of_templateWhereInput[] + OR?: Prisma.shifts_of_templateWhereInput[] + NOT?: Prisma.shifts_of_templateWhereInput | Prisma.shifts_of_templateWhereInput[] + id?: Prisma.UuidFilter<"shifts_of_template"> | string + model_id?: Prisma.UuidFilter<"shifts_of_template"> | string + day_of_the_week?: Prisma.StringFilter<"shifts_of_template"> | string + start_time?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number + end_time?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number + created_at?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number + updated_at?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number +} + +export type shifts_of_templateOrderByWithRelationInput = { + id?: Prisma.SortOrder + model_id?: Prisma.SortOrder + day_of_the_week?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type shifts_of_templateWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.shifts_of_templateWhereInput | Prisma.shifts_of_templateWhereInput[] + OR?: Prisma.shifts_of_templateWhereInput[] + NOT?: Prisma.shifts_of_templateWhereInput | Prisma.shifts_of_templateWhereInput[] + model_id?: Prisma.UuidFilter<"shifts_of_template"> | string + day_of_the_week?: Prisma.StringFilter<"shifts_of_template"> | string + start_time?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number + end_time?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number + created_at?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number + updated_at?: Prisma.BigIntFilter<"shifts_of_template"> | bigint | number +}, "id"> + +export type shifts_of_templateOrderByWithAggregationInput = { + id?: Prisma.SortOrder + model_id?: Prisma.SortOrder + day_of_the_week?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + _count?: Prisma.shifts_of_templateCountOrderByAggregateInput + _avg?: Prisma.shifts_of_templateAvgOrderByAggregateInput + _max?: Prisma.shifts_of_templateMaxOrderByAggregateInput + _min?: Prisma.shifts_of_templateMinOrderByAggregateInput + _sum?: Prisma.shifts_of_templateSumOrderByAggregateInput +} + +export type shifts_of_templateScalarWhereWithAggregatesInput = { + AND?: Prisma.shifts_of_templateScalarWhereWithAggregatesInput | Prisma.shifts_of_templateScalarWhereWithAggregatesInput[] + OR?: Prisma.shifts_of_templateScalarWhereWithAggregatesInput[] + NOT?: Prisma.shifts_of_templateScalarWhereWithAggregatesInput | Prisma.shifts_of_templateScalarWhereWithAggregatesInput[] + id?: Prisma.UuidWithAggregatesFilter<"shifts_of_template"> | string + model_id?: Prisma.UuidWithAggregatesFilter<"shifts_of_template"> | string + day_of_the_week?: Prisma.StringWithAggregatesFilter<"shifts_of_template"> | string + start_time?: Prisma.BigIntWithAggregatesFilter<"shifts_of_template"> | bigint | number + end_time?: Prisma.BigIntWithAggregatesFilter<"shifts_of_template"> | bigint | number + created_at?: Prisma.BigIntWithAggregatesFilter<"shifts_of_template"> | bigint | number + updated_at?: Prisma.BigIntWithAggregatesFilter<"shifts_of_template"> | bigint | number +} + +export type shifts_of_templateCreateInput = { + id: string + model_id: string + day_of_the_week: string + start_time: bigint | number + end_time: bigint | number + created_at: bigint | number + updated_at: bigint | number +} + +export type shifts_of_templateUncheckedCreateInput = { + id: string + model_id: string + day_of_the_week: string + start_time: bigint | number + end_time: bigint | number + created_at: bigint | number + updated_at: bigint | number +} + +export type shifts_of_templateUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + model_id?: Prisma.StringFieldUpdateOperationsInput | string + day_of_the_week?: Prisma.StringFieldUpdateOperationsInput | string + start_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + end_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type shifts_of_templateUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + model_id?: Prisma.StringFieldUpdateOperationsInput | string + day_of_the_week?: Prisma.StringFieldUpdateOperationsInput | string + start_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + end_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type shifts_of_templateCreateManyInput = { + id: string + model_id: string + day_of_the_week: string + start_time: bigint | number + end_time: bigint | number + created_at: bigint | number + updated_at: bigint | number +} + +export type shifts_of_templateUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + model_id?: Prisma.StringFieldUpdateOperationsInput | string + day_of_the_week?: Prisma.StringFieldUpdateOperationsInput | string + start_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + end_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type shifts_of_templateUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + model_id?: Prisma.StringFieldUpdateOperationsInput | string + day_of_the_week?: Prisma.StringFieldUpdateOperationsInput | string + start_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + end_time?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type shifts_of_templateCountOrderByAggregateInput = { + id?: Prisma.SortOrder + model_id?: Prisma.SortOrder + day_of_the_week?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type shifts_of_templateAvgOrderByAggregateInput = { + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type shifts_of_templateMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + model_id?: Prisma.SortOrder + day_of_the_week?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type shifts_of_templateMinOrderByAggregateInput = { + id?: Prisma.SortOrder + model_id?: Prisma.SortOrder + day_of_the_week?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type shifts_of_templateSumOrderByAggregateInput = { + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + + + +export type shifts_of_templateSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + model_id?: boolean + day_of_the_week?: boolean + start_time?: boolean + end_time?: boolean + created_at?: boolean + updated_at?: boolean +}, ExtArgs["result"]["shifts_of_template"]> + +export type shifts_of_templateSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + model_id?: boolean + day_of_the_week?: boolean + start_time?: boolean + end_time?: boolean + created_at?: boolean + updated_at?: boolean +}, ExtArgs["result"]["shifts_of_template"]> + +export type shifts_of_templateSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + model_id?: boolean + day_of_the_week?: boolean + start_time?: boolean + end_time?: boolean + created_at?: boolean + updated_at?: boolean +}, ExtArgs["result"]["shifts_of_template"]> + +export type shifts_of_templateSelectScalar = { + id?: boolean + model_id?: boolean + day_of_the_week?: boolean + start_time?: boolean + end_time?: boolean + created_at?: boolean + updated_at?: boolean +} + +export type shifts_of_templateOmit = runtime.Types.Extensions.GetOmit<"id" | "model_id" | "day_of_the_week" | "start_time" | "end_time" | "created_at" | "updated_at", ExtArgs["result"]["shifts_of_template"]> + +export type $shifts_of_templatePayload = { + name: "shifts_of_template" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + model_id: string + day_of_the_week: string + start_time: bigint + end_time: bigint + created_at: bigint + updated_at: bigint + }, ExtArgs["result"]["shifts_of_template"]> + composites: {} +} + +export type shifts_of_templateGetPayload = runtime.Types.Result.GetResult + +export type shifts_of_templateCountArgs = + Omit & { + select?: Shifts_of_templateCountAggregateInputType | true + } + +export interface shifts_of_templateDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['shifts_of_template'], meta: { name: 'shifts_of_template' } } + /** + * Find zero or one Shifts_of_template that matches the filter. + * @param {shifts_of_templateFindUniqueArgs} args - Arguments to find a Shifts_of_template + * @example + * // Get one Shifts_of_template + * const shifts_of_template = await prisma.shifts_of_template.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Shifts_of_template that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {shifts_of_templateFindUniqueOrThrowArgs} args - Arguments to find a Shifts_of_template + * @example + * // Get one Shifts_of_template + * const shifts_of_template = await prisma.shifts_of_template.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Shifts_of_template 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 {shifts_of_templateFindFirstArgs} args - Arguments to find a Shifts_of_template + * @example + * // Get one Shifts_of_template + * const shifts_of_template = await prisma.shifts_of_template.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Shifts_of_template 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 {shifts_of_templateFindFirstOrThrowArgs} args - Arguments to find a Shifts_of_template + * @example + * // Get one Shifts_of_template + * const shifts_of_template = await prisma.shifts_of_template.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Shifts_of_templates 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 {shifts_of_templateFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Shifts_of_templates + * const shifts_of_templates = await prisma.shifts_of_template.findMany() + * + * // Get first 10 Shifts_of_templates + * const shifts_of_templates = await prisma.shifts_of_template.findMany({ take: 10 }) + * + * // Only select the `id` + * const shifts_of_templateWithIdOnly = await prisma.shifts_of_template.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Shifts_of_template. + * @param {shifts_of_templateCreateArgs} args - Arguments to create a Shifts_of_template. + * @example + * // Create one Shifts_of_template + * const Shifts_of_template = await prisma.shifts_of_template.create({ + * data: { + * // ... data to create a Shifts_of_template + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Shifts_of_templates. + * @param {shifts_of_templateCreateManyArgs} args - Arguments to create many Shifts_of_templates. + * @example + * // Create many Shifts_of_templates + * const shifts_of_template = await prisma.shifts_of_template.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Shifts_of_templates and returns the data saved in the database. + * @param {shifts_of_templateCreateManyAndReturnArgs} args - Arguments to create many Shifts_of_templates. + * @example + * // Create many Shifts_of_templates + * const shifts_of_template = await prisma.shifts_of_template.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Shifts_of_templates and only return the `id` + * const shifts_of_templateWithIdOnly = await prisma.shifts_of_template.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 Shifts_of_template. + * @param {shifts_of_templateDeleteArgs} args - Arguments to delete one Shifts_of_template. + * @example + * // Delete one Shifts_of_template + * const Shifts_of_template = await prisma.shifts_of_template.delete({ + * where: { + * // ... filter to delete one Shifts_of_template + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Shifts_of_template. + * @param {shifts_of_templateUpdateArgs} args - Arguments to update one Shifts_of_template. + * @example + * // Update one Shifts_of_template + * const shifts_of_template = await prisma.shifts_of_template.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Shifts_of_templates. + * @param {shifts_of_templateDeleteManyArgs} args - Arguments to filter Shifts_of_templates to delete. + * @example + * // Delete a few Shifts_of_templates + * const { count } = await prisma.shifts_of_template.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Shifts_of_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {shifts_of_templateUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Shifts_of_templates + * const shifts_of_template = await prisma.shifts_of_template.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Shifts_of_templates and returns the data updated in the database. + * @param {shifts_of_templateUpdateManyAndReturnArgs} args - Arguments to update many Shifts_of_templates. + * @example + * // Update many Shifts_of_templates + * const shifts_of_template = await prisma.shifts_of_template.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Shifts_of_templates and only return the `id` + * const shifts_of_templateWithIdOnly = await prisma.shifts_of_template.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 Shifts_of_template. + * @param {shifts_of_templateUpsertArgs} args - Arguments to update or create a Shifts_of_template. + * @example + * // Update or create a Shifts_of_template + * const shifts_of_template = await prisma.shifts_of_template.upsert({ + * create: { + * // ... data to create a Shifts_of_template + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Shifts_of_template we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__shifts_of_templateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Shifts_of_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {shifts_of_templateCountArgs} args - Arguments to filter Shifts_of_templates to count. + * @example + * // Count the number of Shifts_of_templates + * const count = await prisma.shifts_of_template.count({ + * where: { + * // ... the filter for the Shifts_of_templates 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 Shifts_of_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Shifts_of_templateAggregateArgs} 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 Shifts_of_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {shifts_of_templateGroupByArgs} 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 shifts_of_templateGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: shifts_of_templateGroupByArgs['orderBy'] } + : { orderBy?: shifts_of_templateGroupByArgs['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 ? GetShifts_of_templateGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the shifts_of_template model + */ +readonly fields: shifts_of_templateFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for shifts_of_template. + * 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__shifts_of_templateClient 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 shifts_of_template model + */ +export interface shifts_of_templateFieldRefs { + readonly id: Prisma.FieldRef<"shifts_of_template", 'String'> + readonly model_id: Prisma.FieldRef<"shifts_of_template", 'String'> + readonly day_of_the_week: Prisma.FieldRef<"shifts_of_template", 'String'> + readonly start_time: Prisma.FieldRef<"shifts_of_template", 'BigInt'> + readonly end_time: Prisma.FieldRef<"shifts_of_template", 'BigInt'> + readonly created_at: Prisma.FieldRef<"shifts_of_template", 'BigInt'> + readonly updated_at: Prisma.FieldRef<"shifts_of_template", 'BigInt'> +} + + +// Custom InputTypes +/** + * shifts_of_template findUnique + */ +export type shifts_of_templateFindUniqueArgs = { + /** + * Select specific fields to fetch from the shifts_of_template + */ + select?: Prisma.shifts_of_templateSelect | null + /** + * Omit specific fields from the shifts_of_template + */ + omit?: Prisma.shifts_of_templateOmit | null + /** + * Filter, which shifts_of_template to fetch. + */ + where: Prisma.shifts_of_templateWhereUniqueInput +} + +/** + * shifts_of_template findUniqueOrThrow + */ +export type shifts_of_templateFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the shifts_of_template + */ + select?: Prisma.shifts_of_templateSelect | null + /** + * Omit specific fields from the shifts_of_template + */ + omit?: Prisma.shifts_of_templateOmit | null + /** + * Filter, which shifts_of_template to fetch. + */ + where: Prisma.shifts_of_templateWhereUniqueInput +} + +/** + * shifts_of_template findFirst + */ +export type shifts_of_templateFindFirstArgs = { + /** + * Select specific fields to fetch from the shifts_of_template + */ + select?: Prisma.shifts_of_templateSelect | null + /** + * Omit specific fields from the shifts_of_template + */ + omit?: Prisma.shifts_of_templateOmit | null + /** + * Filter, which shifts_of_template to fetch. + */ + where?: Prisma.shifts_of_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of shifts_of_templates to fetch. + */ + orderBy?: Prisma.shifts_of_templateOrderByWithRelationInput | Prisma.shifts_of_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for shifts_of_templates. + */ + cursor?: Prisma.shifts_of_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` shifts_of_templates 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` shifts_of_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of shifts_of_templates. + */ + distinct?: Prisma.Shifts_of_templateScalarFieldEnum | Prisma.Shifts_of_templateScalarFieldEnum[] +} + +/** + * shifts_of_template findFirstOrThrow + */ +export type shifts_of_templateFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the shifts_of_template + */ + select?: Prisma.shifts_of_templateSelect | null + /** + * Omit specific fields from the shifts_of_template + */ + omit?: Prisma.shifts_of_templateOmit | null + /** + * Filter, which shifts_of_template to fetch. + */ + where?: Prisma.shifts_of_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of shifts_of_templates to fetch. + */ + orderBy?: Prisma.shifts_of_templateOrderByWithRelationInput | Prisma.shifts_of_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for shifts_of_templates. + */ + cursor?: Prisma.shifts_of_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` shifts_of_templates 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` shifts_of_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of shifts_of_templates. + */ + distinct?: Prisma.Shifts_of_templateScalarFieldEnum | Prisma.Shifts_of_templateScalarFieldEnum[] +} + +/** + * shifts_of_template findMany + */ +export type shifts_of_templateFindManyArgs = { + /** + * Select specific fields to fetch from the shifts_of_template + */ + select?: Prisma.shifts_of_templateSelect | null + /** + * Omit specific fields from the shifts_of_template + */ + omit?: Prisma.shifts_of_templateOmit | null + /** + * Filter, which shifts_of_templates to fetch. + */ + where?: Prisma.shifts_of_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of shifts_of_templates to fetch. + */ + orderBy?: Prisma.shifts_of_templateOrderByWithRelationInput | Prisma.shifts_of_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing shifts_of_templates. + */ + cursor?: Prisma.shifts_of_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` shifts_of_templates 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` shifts_of_templates. + */ + skip?: number + distinct?: Prisma.Shifts_of_templateScalarFieldEnum | Prisma.Shifts_of_templateScalarFieldEnum[] +} + +/** + * shifts_of_template create + */ +export type shifts_of_templateCreateArgs = { + /** + * Select specific fields to fetch from the shifts_of_template + */ + select?: Prisma.shifts_of_templateSelect | null + /** + * Omit specific fields from the shifts_of_template + */ + omit?: Prisma.shifts_of_templateOmit | null + /** + * The data needed to create a shifts_of_template. + */ + data: Prisma.XOR +} + +/** + * shifts_of_template createMany + */ +export type shifts_of_templateCreateManyArgs = { + /** + * The data used to create many shifts_of_templates. + */ + data: Prisma.shifts_of_templateCreateManyInput | Prisma.shifts_of_templateCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * shifts_of_template createManyAndReturn + */ +export type shifts_of_templateCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the shifts_of_template + */ + select?: Prisma.shifts_of_templateSelectCreateManyAndReturn | null + /** + * Omit specific fields from the shifts_of_template + */ + omit?: Prisma.shifts_of_templateOmit | null + /** + * The data used to create many shifts_of_templates. + */ + data: Prisma.shifts_of_templateCreateManyInput | Prisma.shifts_of_templateCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * shifts_of_template update + */ +export type shifts_of_templateUpdateArgs = { + /** + * Select specific fields to fetch from the shifts_of_template + */ + select?: Prisma.shifts_of_templateSelect | null + /** + * Omit specific fields from the shifts_of_template + */ + omit?: Prisma.shifts_of_templateOmit | null + /** + * The data needed to update a shifts_of_template. + */ + data: Prisma.XOR + /** + * Choose, which shifts_of_template to update. + */ + where: Prisma.shifts_of_templateWhereUniqueInput +} + +/** + * shifts_of_template updateMany + */ +export type shifts_of_templateUpdateManyArgs = { + /** + * The data used to update shifts_of_templates. + */ + data: Prisma.XOR + /** + * Filter which shifts_of_templates to update + */ + where?: Prisma.shifts_of_templateWhereInput + /** + * Limit how many shifts_of_templates to update. + */ + limit?: number +} + +/** + * shifts_of_template updateManyAndReturn + */ +export type shifts_of_templateUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the shifts_of_template + */ + select?: Prisma.shifts_of_templateSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the shifts_of_template + */ + omit?: Prisma.shifts_of_templateOmit | null + /** + * The data used to update shifts_of_templates. + */ + data: Prisma.XOR + /** + * Filter which shifts_of_templates to update + */ + where?: Prisma.shifts_of_templateWhereInput + /** + * Limit how many shifts_of_templates to update. + */ + limit?: number +} + +/** + * shifts_of_template upsert + */ +export type shifts_of_templateUpsertArgs = { + /** + * Select specific fields to fetch from the shifts_of_template + */ + select?: Prisma.shifts_of_templateSelect | null + /** + * Omit specific fields from the shifts_of_template + */ + omit?: Prisma.shifts_of_templateOmit | null + /** + * The filter to search for the shifts_of_template to update in case it exists. + */ + where: Prisma.shifts_of_templateWhereUniqueInput + /** + * In case the shifts_of_template found by the `where` argument doesn't exist, create a new shifts_of_template with this data. + */ + create: Prisma.XOR + /** + * In case the shifts_of_template was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * shifts_of_template delete + */ +export type shifts_of_templateDeleteArgs = { + /** + * Select specific fields to fetch from the shifts_of_template + */ + select?: Prisma.shifts_of_templateSelect | null + /** + * Omit specific fields from the shifts_of_template + */ + omit?: Prisma.shifts_of_templateOmit | null + /** + * Filter which shifts_of_template to delete. + */ + where: Prisma.shifts_of_templateWhereUniqueInput +} + +/** + * shifts_of_template deleteMany + */ +export type shifts_of_templateDeleteManyArgs = { + /** + * Filter which shifts_of_templates to delete + */ + where?: Prisma.shifts_of_templateWhereInput + /** + * Limit how many shifts_of_templates to delete. + */ + limit?: number +} + +/** + * shifts_of_template without action + */ +export type shifts_of_templateDefaultArgs = { + /** + * Select specific fields to fetch from the shifts_of_template + */ + select?: Prisma.shifts_of_templateSelect | null + /** + * Omit specific fields from the shifts_of_template + */ + omit?: Prisma.shifts_of_templateOmit | null +} diff --git a/prisma/generated/legacy/models/sick_leave.ts b/prisma/generated/legacy/models/sick_leave.ts new file mode 100644 index 0000000..49b7e5a --- /dev/null +++ b/prisma/generated/legacy/models/sick_leave.ts @@ -0,0 +1,1268 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `sick_leave` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model sick_leave + * + */ +export type sick_leaveModel = runtime.Types.Result.DefaultSelection + +export type AggregateSick_leave = { + _count: Sick_leaveCountAggregateOutputType | null + _avg: Sick_leaveAvgAggregateOutputType | null + _sum: Sick_leaveSumAggregateOutputType | null + _min: Sick_leaveMinAggregateOutputType | null + _max: Sick_leaveMaxAggregateOutputType | null +} + +export type Sick_leaveAvgAggregateOutputType = { + accumulated: number | null + consumed: number | null + year: number | null + created_at: number | null + updated_at: number | null +} + +export type Sick_leaveSumAggregateOutputType = { + accumulated: number | null + consumed: number | null + year: number | null + created_at: bigint | null + updated_at: bigint | null +} + +export type Sick_leaveMinAggregateOutputType = { + id: string | null + employee_id: string | null + accumulated: number | null + consumed: number | null + year: number | null + created_at: bigint | null + updated_at: bigint | null +} + +export type Sick_leaveMaxAggregateOutputType = { + id: string | null + employee_id: string | null + accumulated: number | null + consumed: number | null + year: number | null + created_at: bigint | null + updated_at: bigint | null +} + +export type Sick_leaveCountAggregateOutputType = { + id: number + employee_id: number + accumulated: number + consumed: number + year: number + created_at: number + updated_at: number + _all: number +} + + +export type Sick_leaveAvgAggregateInputType = { + accumulated?: true + consumed?: true + year?: true + created_at?: true + updated_at?: true +} + +export type Sick_leaveSumAggregateInputType = { + accumulated?: true + consumed?: true + year?: true + created_at?: true + updated_at?: true +} + +export type Sick_leaveMinAggregateInputType = { + id?: true + employee_id?: true + accumulated?: true + consumed?: true + year?: true + created_at?: true + updated_at?: true +} + +export type Sick_leaveMaxAggregateInputType = { + id?: true + employee_id?: true + accumulated?: true + consumed?: true + year?: true + created_at?: true + updated_at?: true +} + +export type Sick_leaveCountAggregateInputType = { + id?: true + employee_id?: true + accumulated?: true + consumed?: true + year?: true + created_at?: true + updated_at?: true + _all?: true +} + +export type Sick_leaveAggregateArgs = { + /** + * Filter which sick_leave to aggregate. + */ + where?: Prisma.sick_leaveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of sick_leaves to fetch. + */ + orderBy?: Prisma.sick_leaveOrderByWithRelationInput | Prisma.sick_leaveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.sick_leaveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` sick_leaves 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` sick_leaves. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned sick_leaves + **/ + _count?: true | Sick_leaveCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Sick_leaveAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Sick_leaveSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Sick_leaveMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Sick_leaveMaxAggregateInputType +} + +export type GetSick_leaveAggregateType = { + [P in keyof T & keyof AggregateSick_leave]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type sick_leaveGroupByArgs = { + where?: Prisma.sick_leaveWhereInput + orderBy?: Prisma.sick_leaveOrderByWithAggregationInput | Prisma.sick_leaveOrderByWithAggregationInput[] + by: Prisma.Sick_leaveScalarFieldEnum[] | Prisma.Sick_leaveScalarFieldEnum + having?: Prisma.sick_leaveScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Sick_leaveCountAggregateInputType | true + _avg?: Sick_leaveAvgAggregateInputType + _sum?: Sick_leaveSumAggregateInputType + _min?: Sick_leaveMinAggregateInputType + _max?: Sick_leaveMaxAggregateInputType +} + +export type Sick_leaveGroupByOutputType = { + id: string + employee_id: string | null + accumulated: number | null + consumed: number | null + year: number | null + created_at: bigint | null + updated_at: bigint | null + _count: Sick_leaveCountAggregateOutputType | null + _avg: Sick_leaveAvgAggregateOutputType | null + _sum: Sick_leaveSumAggregateOutputType | null + _min: Sick_leaveMinAggregateOutputType | null + _max: Sick_leaveMaxAggregateOutputType | null +} + +type GetSick_leaveGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Sick_leaveGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type sick_leaveWhereInput = { + AND?: Prisma.sick_leaveWhereInput | Prisma.sick_leaveWhereInput[] + OR?: Prisma.sick_leaveWhereInput[] + NOT?: Prisma.sick_leaveWhereInput | Prisma.sick_leaveWhereInput[] + id?: Prisma.UuidFilter<"sick_leave"> | string + employee_id?: Prisma.StringNullableFilter<"sick_leave"> | string | null + accumulated?: Prisma.FloatNullableFilter<"sick_leave"> | number | null + consumed?: Prisma.FloatNullableFilter<"sick_leave"> | number | null + year?: Prisma.IntNullableFilter<"sick_leave"> | number | null + created_at?: Prisma.BigIntNullableFilter<"sick_leave"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"sick_leave"> | bigint | number | null +} + +export type sick_leaveOrderByWithRelationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrderInput | Prisma.SortOrder + accumulated?: Prisma.SortOrderInput | Prisma.SortOrder + consumed?: Prisma.SortOrderInput | Prisma.SortOrder + year?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type sick_leaveWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.sick_leaveWhereInput | Prisma.sick_leaveWhereInput[] + OR?: Prisma.sick_leaveWhereInput[] + NOT?: Prisma.sick_leaveWhereInput | Prisma.sick_leaveWhereInput[] + employee_id?: Prisma.StringNullableFilter<"sick_leave"> | string | null + accumulated?: Prisma.FloatNullableFilter<"sick_leave"> | number | null + consumed?: Prisma.FloatNullableFilter<"sick_leave"> | number | null + year?: Prisma.IntNullableFilter<"sick_leave"> | number | null + created_at?: Prisma.BigIntNullableFilter<"sick_leave"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"sick_leave"> | bigint | number | null +}, "id"> + +export type sick_leaveOrderByWithAggregationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrderInput | Prisma.SortOrder + accumulated?: Prisma.SortOrderInput | Prisma.SortOrder + consumed?: Prisma.SortOrderInput | Prisma.SortOrder + year?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.sick_leaveCountOrderByAggregateInput + _avg?: Prisma.sick_leaveAvgOrderByAggregateInput + _max?: Prisma.sick_leaveMaxOrderByAggregateInput + _min?: Prisma.sick_leaveMinOrderByAggregateInput + _sum?: Prisma.sick_leaveSumOrderByAggregateInput +} + +export type sick_leaveScalarWhereWithAggregatesInput = { + AND?: Prisma.sick_leaveScalarWhereWithAggregatesInput | Prisma.sick_leaveScalarWhereWithAggregatesInput[] + OR?: Prisma.sick_leaveScalarWhereWithAggregatesInput[] + NOT?: Prisma.sick_leaveScalarWhereWithAggregatesInput | Prisma.sick_leaveScalarWhereWithAggregatesInput[] + id?: Prisma.UuidWithAggregatesFilter<"sick_leave"> | string + employee_id?: Prisma.StringNullableWithAggregatesFilter<"sick_leave"> | string | null + accumulated?: Prisma.FloatNullableWithAggregatesFilter<"sick_leave"> | number | null + consumed?: Prisma.FloatNullableWithAggregatesFilter<"sick_leave"> | number | null + year?: Prisma.IntNullableWithAggregatesFilter<"sick_leave"> | number | null + created_at?: Prisma.BigIntNullableWithAggregatesFilter<"sick_leave"> | bigint | number | null + updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"sick_leave"> | bigint | number | null +} + +export type sick_leaveCreateInput = { + id: string + employee_id?: string | null + accumulated?: number | null + consumed?: number | null + year?: number | null + created_at?: bigint | number | null + updated_at?: bigint | number | null +} + +export type sick_leaveUncheckedCreateInput = { + id: string + employee_id?: string | null + accumulated?: number | null + consumed?: number | null + year?: number | null + created_at?: bigint | number | null + updated_at?: bigint | number | null +} + +export type sick_leaveUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accumulated?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type sick_leaveUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accumulated?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type sick_leaveCreateManyInput = { + id: string + employee_id?: string | null + accumulated?: number | null + consumed?: number | null + year?: number | null + created_at?: bigint | number | null + updated_at?: bigint | number | null +} + +export type sick_leaveUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accumulated?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type sick_leaveUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accumulated?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type sick_leaveCountOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + accumulated?: Prisma.SortOrder + consumed?: Prisma.SortOrder + year?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type sick_leaveAvgOrderByAggregateInput = { + accumulated?: Prisma.SortOrder + consumed?: Prisma.SortOrder + year?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type sick_leaveMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + accumulated?: Prisma.SortOrder + consumed?: Prisma.SortOrder + year?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type sick_leaveMinOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + accumulated?: Prisma.SortOrder + consumed?: Prisma.SortOrder + year?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type sick_leaveSumOrderByAggregateInput = { + accumulated?: Prisma.SortOrder + consumed?: Prisma.SortOrder + year?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + + + +export type sick_leaveSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + accumulated?: boolean + consumed?: boolean + year?: boolean + created_at?: boolean + updated_at?: boolean +}, ExtArgs["result"]["sick_leave"]> + +export type sick_leaveSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + accumulated?: boolean + consumed?: boolean + year?: boolean + created_at?: boolean + updated_at?: boolean +}, ExtArgs["result"]["sick_leave"]> + +export type sick_leaveSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + accumulated?: boolean + consumed?: boolean + year?: boolean + created_at?: boolean + updated_at?: boolean +}, ExtArgs["result"]["sick_leave"]> + +export type sick_leaveSelectScalar = { + id?: boolean + employee_id?: boolean + accumulated?: boolean + consumed?: boolean + year?: boolean + created_at?: boolean + updated_at?: boolean +} + +export type sick_leaveOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "accumulated" | "consumed" | "year" | "created_at" | "updated_at", ExtArgs["result"]["sick_leave"]> + +export type $sick_leavePayload = { + name: "sick_leave" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + employee_id: string | null + accumulated: number | null + consumed: number | null + year: number | null + created_at: bigint | null + updated_at: bigint | null + }, ExtArgs["result"]["sick_leave"]> + composites: {} +} + +export type sick_leaveGetPayload = runtime.Types.Result.GetResult + +export type sick_leaveCountArgs = + Omit & { + select?: Sick_leaveCountAggregateInputType | true + } + +export interface sick_leaveDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['sick_leave'], meta: { name: 'sick_leave' } } + /** + * Find zero or one Sick_leave that matches the filter. + * @param {sick_leaveFindUniqueArgs} args - Arguments to find a Sick_leave + * @example + * // Get one Sick_leave + * const sick_leave = await prisma.sick_leave.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Sick_leave that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {sick_leaveFindUniqueOrThrowArgs} args - Arguments to find a Sick_leave + * @example + * // Get one Sick_leave + * const sick_leave = await prisma.sick_leave.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Sick_leave 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 {sick_leaveFindFirstArgs} args - Arguments to find a Sick_leave + * @example + * // Get one Sick_leave + * const sick_leave = await prisma.sick_leave.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Sick_leave 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 {sick_leaveFindFirstOrThrowArgs} args - Arguments to find a Sick_leave + * @example + * // Get one Sick_leave + * const sick_leave = await prisma.sick_leave.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Sick_leaves 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 {sick_leaveFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Sick_leaves + * const sick_leaves = await prisma.sick_leave.findMany() + * + * // Get first 10 Sick_leaves + * const sick_leaves = await prisma.sick_leave.findMany({ take: 10 }) + * + * // Only select the `id` + * const sick_leaveWithIdOnly = await prisma.sick_leave.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Sick_leave. + * @param {sick_leaveCreateArgs} args - Arguments to create a Sick_leave. + * @example + * // Create one Sick_leave + * const Sick_leave = await prisma.sick_leave.create({ + * data: { + * // ... data to create a Sick_leave + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Sick_leaves. + * @param {sick_leaveCreateManyArgs} args - Arguments to create many Sick_leaves. + * @example + * // Create many Sick_leaves + * const sick_leave = await prisma.sick_leave.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Sick_leaves and returns the data saved in the database. + * @param {sick_leaveCreateManyAndReturnArgs} args - Arguments to create many Sick_leaves. + * @example + * // Create many Sick_leaves + * const sick_leave = await prisma.sick_leave.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Sick_leaves and only return the `id` + * const sick_leaveWithIdOnly = await prisma.sick_leave.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 Sick_leave. + * @param {sick_leaveDeleteArgs} args - Arguments to delete one Sick_leave. + * @example + * // Delete one Sick_leave + * const Sick_leave = await prisma.sick_leave.delete({ + * where: { + * // ... filter to delete one Sick_leave + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Sick_leave. + * @param {sick_leaveUpdateArgs} args - Arguments to update one Sick_leave. + * @example + * // Update one Sick_leave + * const sick_leave = await prisma.sick_leave.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Sick_leaves. + * @param {sick_leaveDeleteManyArgs} args - Arguments to filter Sick_leaves to delete. + * @example + * // Delete a few Sick_leaves + * const { count } = await prisma.sick_leave.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Sick_leaves. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {sick_leaveUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Sick_leaves + * const sick_leave = await prisma.sick_leave.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Sick_leaves and returns the data updated in the database. + * @param {sick_leaveUpdateManyAndReturnArgs} args - Arguments to update many Sick_leaves. + * @example + * // Update many Sick_leaves + * const sick_leave = await prisma.sick_leave.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Sick_leaves and only return the `id` + * const sick_leaveWithIdOnly = await prisma.sick_leave.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 Sick_leave. + * @param {sick_leaveUpsertArgs} args - Arguments to update or create a Sick_leave. + * @example + * // Update or create a Sick_leave + * const sick_leave = await prisma.sick_leave.upsert({ + * create: { + * // ... data to create a Sick_leave + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Sick_leave we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__sick_leaveClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Sick_leaves. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {sick_leaveCountArgs} args - Arguments to filter Sick_leaves to count. + * @example + * // Count the number of Sick_leaves + * const count = await prisma.sick_leave.count({ + * where: { + * // ... the filter for the Sick_leaves 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 Sick_leave. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Sick_leaveAggregateArgs} 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 Sick_leave. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {sick_leaveGroupByArgs} 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 sick_leaveGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: sick_leaveGroupByArgs['orderBy'] } + : { orderBy?: sick_leaveGroupByArgs['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 ? GetSick_leaveGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the sick_leave model + */ +readonly fields: sick_leaveFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for sick_leave. + * 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__sick_leaveClient 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 sick_leave model + */ +export interface sick_leaveFieldRefs { + readonly id: Prisma.FieldRef<"sick_leave", 'String'> + readonly employee_id: Prisma.FieldRef<"sick_leave", 'String'> + readonly accumulated: Prisma.FieldRef<"sick_leave", 'Float'> + readonly consumed: Prisma.FieldRef<"sick_leave", 'Float'> + readonly year: Prisma.FieldRef<"sick_leave", 'Int'> + readonly created_at: Prisma.FieldRef<"sick_leave", 'BigInt'> + readonly updated_at: Prisma.FieldRef<"sick_leave", 'BigInt'> +} + + +// Custom InputTypes +/** + * sick_leave findUnique + */ +export type sick_leaveFindUniqueArgs = { + /** + * Select specific fields to fetch from the sick_leave + */ + select?: Prisma.sick_leaveSelect | null + /** + * Omit specific fields from the sick_leave + */ + omit?: Prisma.sick_leaveOmit | null + /** + * Filter, which sick_leave to fetch. + */ + where: Prisma.sick_leaveWhereUniqueInput +} + +/** + * sick_leave findUniqueOrThrow + */ +export type sick_leaveFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the sick_leave + */ + select?: Prisma.sick_leaveSelect | null + /** + * Omit specific fields from the sick_leave + */ + omit?: Prisma.sick_leaveOmit | null + /** + * Filter, which sick_leave to fetch. + */ + where: Prisma.sick_leaveWhereUniqueInput +} + +/** + * sick_leave findFirst + */ +export type sick_leaveFindFirstArgs = { + /** + * Select specific fields to fetch from the sick_leave + */ + select?: Prisma.sick_leaveSelect | null + /** + * Omit specific fields from the sick_leave + */ + omit?: Prisma.sick_leaveOmit | null + /** + * Filter, which sick_leave to fetch. + */ + where?: Prisma.sick_leaveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of sick_leaves to fetch. + */ + orderBy?: Prisma.sick_leaveOrderByWithRelationInput | Prisma.sick_leaveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for sick_leaves. + */ + cursor?: Prisma.sick_leaveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` sick_leaves 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` sick_leaves. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of sick_leaves. + */ + distinct?: Prisma.Sick_leaveScalarFieldEnum | Prisma.Sick_leaveScalarFieldEnum[] +} + +/** + * sick_leave findFirstOrThrow + */ +export type sick_leaveFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the sick_leave + */ + select?: Prisma.sick_leaveSelect | null + /** + * Omit specific fields from the sick_leave + */ + omit?: Prisma.sick_leaveOmit | null + /** + * Filter, which sick_leave to fetch. + */ + where?: Prisma.sick_leaveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of sick_leaves to fetch. + */ + orderBy?: Prisma.sick_leaveOrderByWithRelationInput | Prisma.sick_leaveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for sick_leaves. + */ + cursor?: Prisma.sick_leaveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` sick_leaves 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` sick_leaves. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of sick_leaves. + */ + distinct?: Prisma.Sick_leaveScalarFieldEnum | Prisma.Sick_leaveScalarFieldEnum[] +} + +/** + * sick_leave findMany + */ +export type sick_leaveFindManyArgs = { + /** + * Select specific fields to fetch from the sick_leave + */ + select?: Prisma.sick_leaveSelect | null + /** + * Omit specific fields from the sick_leave + */ + omit?: Prisma.sick_leaveOmit | null + /** + * Filter, which sick_leaves to fetch. + */ + where?: Prisma.sick_leaveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of sick_leaves to fetch. + */ + orderBy?: Prisma.sick_leaveOrderByWithRelationInput | Prisma.sick_leaveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing sick_leaves. + */ + cursor?: Prisma.sick_leaveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` sick_leaves 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` sick_leaves. + */ + skip?: number + distinct?: Prisma.Sick_leaveScalarFieldEnum | Prisma.Sick_leaveScalarFieldEnum[] +} + +/** + * sick_leave create + */ +export type sick_leaveCreateArgs = { + /** + * Select specific fields to fetch from the sick_leave + */ + select?: Prisma.sick_leaveSelect | null + /** + * Omit specific fields from the sick_leave + */ + omit?: Prisma.sick_leaveOmit | null + /** + * The data needed to create a sick_leave. + */ + data: Prisma.XOR +} + +/** + * sick_leave createMany + */ +export type sick_leaveCreateManyArgs = { + /** + * The data used to create many sick_leaves. + */ + data: Prisma.sick_leaveCreateManyInput | Prisma.sick_leaveCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * sick_leave createManyAndReturn + */ +export type sick_leaveCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the sick_leave + */ + select?: Prisma.sick_leaveSelectCreateManyAndReturn | null + /** + * Omit specific fields from the sick_leave + */ + omit?: Prisma.sick_leaveOmit | null + /** + * The data used to create many sick_leaves. + */ + data: Prisma.sick_leaveCreateManyInput | Prisma.sick_leaveCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * sick_leave update + */ +export type sick_leaveUpdateArgs = { + /** + * Select specific fields to fetch from the sick_leave + */ + select?: Prisma.sick_leaveSelect | null + /** + * Omit specific fields from the sick_leave + */ + omit?: Prisma.sick_leaveOmit | null + /** + * The data needed to update a sick_leave. + */ + data: Prisma.XOR + /** + * Choose, which sick_leave to update. + */ + where: Prisma.sick_leaveWhereUniqueInput +} + +/** + * sick_leave updateMany + */ +export type sick_leaveUpdateManyArgs = { + /** + * The data used to update sick_leaves. + */ + data: Prisma.XOR + /** + * Filter which sick_leaves to update + */ + where?: Prisma.sick_leaveWhereInput + /** + * Limit how many sick_leaves to update. + */ + limit?: number +} + +/** + * sick_leave updateManyAndReturn + */ +export type sick_leaveUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the sick_leave + */ + select?: Prisma.sick_leaveSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the sick_leave + */ + omit?: Prisma.sick_leaveOmit | null + /** + * The data used to update sick_leaves. + */ + data: Prisma.XOR + /** + * Filter which sick_leaves to update + */ + where?: Prisma.sick_leaveWhereInput + /** + * Limit how many sick_leaves to update. + */ + limit?: number +} + +/** + * sick_leave upsert + */ +export type sick_leaveUpsertArgs = { + /** + * Select specific fields to fetch from the sick_leave + */ + select?: Prisma.sick_leaveSelect | null + /** + * Omit specific fields from the sick_leave + */ + omit?: Prisma.sick_leaveOmit | null + /** + * The filter to search for the sick_leave to update in case it exists. + */ + where: Prisma.sick_leaveWhereUniqueInput + /** + * In case the sick_leave found by the `where` argument doesn't exist, create a new sick_leave with this data. + */ + create: Prisma.XOR + /** + * In case the sick_leave was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * sick_leave delete + */ +export type sick_leaveDeleteArgs = { + /** + * Select specific fields to fetch from the sick_leave + */ + select?: Prisma.sick_leaveSelect | null + /** + * Omit specific fields from the sick_leave + */ + omit?: Prisma.sick_leaveOmit | null + /** + * Filter which sick_leave to delete. + */ + where: Prisma.sick_leaveWhereUniqueInput +} + +/** + * sick_leave deleteMany + */ +export type sick_leaveDeleteManyArgs = { + /** + * Filter which sick_leaves to delete + */ + where?: Prisma.sick_leaveWhereInput + /** + * Limit how many sick_leaves to delete. + */ + limit?: number +} + +/** + * sick_leave without action + */ +export type sick_leaveDefaultArgs = { + /** + * Select specific fields to fetch from the sick_leave + */ + select?: Prisma.sick_leaveSelect | null + /** + * Omit specific fields from the sick_leave + */ + omit?: Prisma.sick_leaveOmit | null +} diff --git a/prisma/generated/legacy/models/time_sheet_periods.ts b/prisma/generated/legacy/models/time_sheet_periods.ts new file mode 100644 index 0000000..b77a9fd --- /dev/null +++ b/prisma/generated/legacy/models/time_sheet_periods.ts @@ -0,0 +1,1222 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `time_sheet_periods` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model time_sheet_periods + * + */ +export type time_sheet_periodsModel = runtime.Types.Result.DefaultSelection + +export type AggregateTime_sheet_periods = { + _count: Time_sheet_periodsCountAggregateOutputType | null + _avg: Time_sheet_periodsAvgAggregateOutputType | null + _sum: Time_sheet_periodsSumAggregateOutputType | null + _min: Time_sheet_periodsMinAggregateOutputType | null + _max: Time_sheet_periodsMaxAggregateOutputType | null +} + +export type Time_sheet_periodsAvgAggregateOutputType = { + period_number: number | null + year: number | null +} + +export type Time_sheet_periodsSumAggregateOutputType = { + period_number: number | null + year: number | null +} + +export type Time_sheet_periodsMinAggregateOutputType = { + id: string | null + start_date: Date | null + end_date: Date | null + payment_date: Date | null + period_number: number | null + year: number | null +} + +export type Time_sheet_periodsMaxAggregateOutputType = { + id: string | null + start_date: Date | null + end_date: Date | null + payment_date: Date | null + period_number: number | null + year: number | null +} + +export type Time_sheet_periodsCountAggregateOutputType = { + id: number + start_date: number + end_date: number + payment_date: number + period_number: number + year: number + _all: number +} + + +export type Time_sheet_periodsAvgAggregateInputType = { + period_number?: true + year?: true +} + +export type Time_sheet_periodsSumAggregateInputType = { + period_number?: true + year?: true +} + +export type Time_sheet_periodsMinAggregateInputType = { + id?: true + start_date?: true + end_date?: true + payment_date?: true + period_number?: true + year?: true +} + +export type Time_sheet_periodsMaxAggregateInputType = { + id?: true + start_date?: true + end_date?: true + payment_date?: true + period_number?: true + year?: true +} + +export type Time_sheet_periodsCountAggregateInputType = { + id?: true + start_date?: true + end_date?: true + payment_date?: true + period_number?: true + year?: true + _all?: true +} + +export type Time_sheet_periodsAggregateArgs = { + /** + * Filter which time_sheet_periods to aggregate. + */ + where?: Prisma.time_sheet_periodsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of time_sheet_periods to fetch. + */ + orderBy?: Prisma.time_sheet_periodsOrderByWithRelationInput | Prisma.time_sheet_periodsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.time_sheet_periodsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` time_sheet_periods 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` time_sheet_periods. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned time_sheet_periods + **/ + _count?: true | Time_sheet_periodsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Time_sheet_periodsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Time_sheet_periodsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Time_sheet_periodsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Time_sheet_periodsMaxAggregateInputType +} + +export type GetTime_sheet_periodsAggregateType = { + [P in keyof T & keyof AggregateTime_sheet_periods]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type time_sheet_periodsGroupByArgs = { + where?: Prisma.time_sheet_periodsWhereInput + orderBy?: Prisma.time_sheet_periodsOrderByWithAggregationInput | Prisma.time_sheet_periodsOrderByWithAggregationInput[] + by: Prisma.Time_sheet_periodsScalarFieldEnum[] | Prisma.Time_sheet_periodsScalarFieldEnum + having?: Prisma.time_sheet_periodsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Time_sheet_periodsCountAggregateInputType | true + _avg?: Time_sheet_periodsAvgAggregateInputType + _sum?: Time_sheet_periodsSumAggregateInputType + _min?: Time_sheet_periodsMinAggregateInputType + _max?: Time_sheet_periodsMaxAggregateInputType +} + +export type Time_sheet_periodsGroupByOutputType = { + id: string + start_date: Date | null + end_date: Date | null + payment_date: Date | null + period_number: number | null + year: number | null + _count: Time_sheet_periodsCountAggregateOutputType | null + _avg: Time_sheet_periodsAvgAggregateOutputType | null + _sum: Time_sheet_periodsSumAggregateOutputType | null + _min: Time_sheet_periodsMinAggregateOutputType | null + _max: Time_sheet_periodsMaxAggregateOutputType | null +} + +type GetTime_sheet_periodsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Time_sheet_periodsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type time_sheet_periodsWhereInput = { + AND?: Prisma.time_sheet_periodsWhereInput | Prisma.time_sheet_periodsWhereInput[] + OR?: Prisma.time_sheet_periodsWhereInput[] + NOT?: Prisma.time_sheet_periodsWhereInput | Prisma.time_sheet_periodsWhereInput[] + id?: Prisma.UuidFilter<"time_sheet_periods"> | string + start_date?: Prisma.DateTimeNullableFilter<"time_sheet_periods"> | Date | string | null + end_date?: Prisma.DateTimeNullableFilter<"time_sheet_periods"> | Date | string | null + payment_date?: Prisma.DateTimeNullableFilter<"time_sheet_periods"> | Date | string | null + period_number?: Prisma.IntNullableFilter<"time_sheet_periods"> | number | null + year?: Prisma.IntNullableFilter<"time_sheet_periods"> | number | null +} + +export type time_sheet_periodsOrderByWithRelationInput = { + id?: Prisma.SortOrder + start_date?: Prisma.SortOrderInput | Prisma.SortOrder + end_date?: Prisma.SortOrderInput | Prisma.SortOrder + payment_date?: Prisma.SortOrderInput | Prisma.SortOrder + period_number?: Prisma.SortOrderInput | Prisma.SortOrder + year?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type time_sheet_periodsWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.time_sheet_periodsWhereInput | Prisma.time_sheet_periodsWhereInput[] + OR?: Prisma.time_sheet_periodsWhereInput[] + NOT?: Prisma.time_sheet_periodsWhereInput | Prisma.time_sheet_periodsWhereInput[] + start_date?: Prisma.DateTimeNullableFilter<"time_sheet_periods"> | Date | string | null + end_date?: Prisma.DateTimeNullableFilter<"time_sheet_periods"> | Date | string | null + payment_date?: Prisma.DateTimeNullableFilter<"time_sheet_periods"> | Date | string | null + period_number?: Prisma.IntNullableFilter<"time_sheet_periods"> | number | null + year?: Prisma.IntNullableFilter<"time_sheet_periods"> | number | null +}, "id"> + +export type time_sheet_periodsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + start_date?: Prisma.SortOrderInput | Prisma.SortOrder + end_date?: Prisma.SortOrderInput | Prisma.SortOrder + payment_date?: Prisma.SortOrderInput | Prisma.SortOrder + period_number?: Prisma.SortOrderInput | Prisma.SortOrder + year?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.time_sheet_periodsCountOrderByAggregateInput + _avg?: Prisma.time_sheet_periodsAvgOrderByAggregateInput + _max?: Prisma.time_sheet_periodsMaxOrderByAggregateInput + _min?: Prisma.time_sheet_periodsMinOrderByAggregateInput + _sum?: Prisma.time_sheet_periodsSumOrderByAggregateInput +} + +export type time_sheet_periodsScalarWhereWithAggregatesInput = { + AND?: Prisma.time_sheet_periodsScalarWhereWithAggregatesInput | Prisma.time_sheet_periodsScalarWhereWithAggregatesInput[] + OR?: Prisma.time_sheet_periodsScalarWhereWithAggregatesInput[] + NOT?: Prisma.time_sheet_periodsScalarWhereWithAggregatesInput | Prisma.time_sheet_periodsScalarWhereWithAggregatesInput[] + id?: Prisma.UuidWithAggregatesFilter<"time_sheet_periods"> | string + start_date?: Prisma.DateTimeNullableWithAggregatesFilter<"time_sheet_periods"> | Date | string | null + end_date?: Prisma.DateTimeNullableWithAggregatesFilter<"time_sheet_periods"> | Date | string | null + payment_date?: Prisma.DateTimeNullableWithAggregatesFilter<"time_sheet_periods"> | Date | string | null + period_number?: Prisma.IntNullableWithAggregatesFilter<"time_sheet_periods"> | number | null + year?: Prisma.IntNullableWithAggregatesFilter<"time_sheet_periods"> | number | null +} + +export type time_sheet_periodsCreateInput = { + id: string + start_date?: Date | string | null + end_date?: Date | string | null + payment_date?: Date | string | null + period_number?: number | null + year?: number | null +} + +export type time_sheet_periodsUncheckedCreateInput = { + id: string + start_date?: Date | string | null + end_date?: Date | string | null + payment_date?: Date | string | null + period_number?: number | null + year?: number | null +} + +export type time_sheet_periodsUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + payment_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type time_sheet_periodsUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + payment_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type time_sheet_periodsCreateManyInput = { + id: string + start_date?: Date | string | null + end_date?: Date | string | null + payment_date?: Date | string | null + period_number?: number | null + year?: number | null +} + +export type time_sheet_periodsUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + payment_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type time_sheet_periodsUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + payment_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type time_sheet_periodsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + start_date?: Prisma.SortOrder + end_date?: Prisma.SortOrder + payment_date?: Prisma.SortOrder + period_number?: Prisma.SortOrder + year?: Prisma.SortOrder +} + +export type time_sheet_periodsAvgOrderByAggregateInput = { + period_number?: Prisma.SortOrder + year?: Prisma.SortOrder +} + +export type time_sheet_periodsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + start_date?: Prisma.SortOrder + end_date?: Prisma.SortOrder + payment_date?: Prisma.SortOrder + period_number?: Prisma.SortOrder + year?: Prisma.SortOrder +} + +export type time_sheet_periodsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + start_date?: Prisma.SortOrder + end_date?: Prisma.SortOrder + payment_date?: Prisma.SortOrder + period_number?: Prisma.SortOrder + year?: Prisma.SortOrder +} + +export type time_sheet_periodsSumOrderByAggregateInput = { + period_number?: Prisma.SortOrder + year?: Prisma.SortOrder +} + + + +export type time_sheet_periodsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + start_date?: boolean + end_date?: boolean + payment_date?: boolean + period_number?: boolean + year?: boolean +}, ExtArgs["result"]["time_sheet_periods"]> + +export type time_sheet_periodsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + start_date?: boolean + end_date?: boolean + payment_date?: boolean + period_number?: boolean + year?: boolean +}, ExtArgs["result"]["time_sheet_periods"]> + +export type time_sheet_periodsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + start_date?: boolean + end_date?: boolean + payment_date?: boolean + period_number?: boolean + year?: boolean +}, ExtArgs["result"]["time_sheet_periods"]> + +export type time_sheet_periodsSelectScalar = { + id?: boolean + start_date?: boolean + end_date?: boolean + payment_date?: boolean + period_number?: boolean + year?: boolean +} + +export type time_sheet_periodsOmit = runtime.Types.Extensions.GetOmit<"id" | "start_date" | "end_date" | "payment_date" | "period_number" | "year", ExtArgs["result"]["time_sheet_periods"]> + +export type $time_sheet_periodsPayload = { + name: "time_sheet_periods" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + start_date: Date | null + end_date: Date | null + payment_date: Date | null + period_number: number | null + year: number | null + }, ExtArgs["result"]["time_sheet_periods"]> + composites: {} +} + +export type time_sheet_periodsGetPayload = runtime.Types.Result.GetResult + +export type time_sheet_periodsCountArgs = + Omit & { + select?: Time_sheet_periodsCountAggregateInputType | true + } + +export interface time_sheet_periodsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['time_sheet_periods'], meta: { name: 'time_sheet_periods' } } + /** + * Find zero or one Time_sheet_periods that matches the filter. + * @param {time_sheet_periodsFindUniqueArgs} args - Arguments to find a Time_sheet_periods + * @example + * // Get one Time_sheet_periods + * const time_sheet_periods = await prisma.time_sheet_periods.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Time_sheet_periods that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {time_sheet_periodsFindUniqueOrThrowArgs} args - Arguments to find a Time_sheet_periods + * @example + * // Get one Time_sheet_periods + * const time_sheet_periods = await prisma.time_sheet_periods.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Time_sheet_periods 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 {time_sheet_periodsFindFirstArgs} args - Arguments to find a Time_sheet_periods + * @example + * // Get one Time_sheet_periods + * const time_sheet_periods = await prisma.time_sheet_periods.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Time_sheet_periods 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 {time_sheet_periodsFindFirstOrThrowArgs} args - Arguments to find a Time_sheet_periods + * @example + * // Get one Time_sheet_periods + * const time_sheet_periods = await prisma.time_sheet_periods.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Time_sheet_periods 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 {time_sheet_periodsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Time_sheet_periods + * const time_sheet_periods = await prisma.time_sheet_periods.findMany() + * + * // Get first 10 Time_sheet_periods + * const time_sheet_periods = await prisma.time_sheet_periods.findMany({ take: 10 }) + * + * // Only select the `id` + * const time_sheet_periodsWithIdOnly = await prisma.time_sheet_periods.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Time_sheet_periods. + * @param {time_sheet_periodsCreateArgs} args - Arguments to create a Time_sheet_periods. + * @example + * // Create one Time_sheet_periods + * const Time_sheet_periods = await prisma.time_sheet_periods.create({ + * data: { + * // ... data to create a Time_sheet_periods + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Time_sheet_periods. + * @param {time_sheet_periodsCreateManyArgs} args - Arguments to create many Time_sheet_periods. + * @example + * // Create many Time_sheet_periods + * const time_sheet_periods = await prisma.time_sheet_periods.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Time_sheet_periods and returns the data saved in the database. + * @param {time_sheet_periodsCreateManyAndReturnArgs} args - Arguments to create many Time_sheet_periods. + * @example + * // Create many Time_sheet_periods + * const time_sheet_periods = await prisma.time_sheet_periods.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Time_sheet_periods and only return the `id` + * const time_sheet_periodsWithIdOnly = await prisma.time_sheet_periods.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 Time_sheet_periods. + * @param {time_sheet_periodsDeleteArgs} args - Arguments to delete one Time_sheet_periods. + * @example + * // Delete one Time_sheet_periods + * const Time_sheet_periods = await prisma.time_sheet_periods.delete({ + * where: { + * // ... filter to delete one Time_sheet_periods + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Time_sheet_periods. + * @param {time_sheet_periodsUpdateArgs} args - Arguments to update one Time_sheet_periods. + * @example + * // Update one Time_sheet_periods + * const time_sheet_periods = await prisma.time_sheet_periods.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Time_sheet_periods. + * @param {time_sheet_periodsDeleteManyArgs} args - Arguments to filter Time_sheet_periods to delete. + * @example + * // Delete a few Time_sheet_periods + * const { count } = await prisma.time_sheet_periods.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Time_sheet_periods. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {time_sheet_periodsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Time_sheet_periods + * const time_sheet_periods = await prisma.time_sheet_periods.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Time_sheet_periods and returns the data updated in the database. + * @param {time_sheet_periodsUpdateManyAndReturnArgs} args - Arguments to update many Time_sheet_periods. + * @example + * // Update many Time_sheet_periods + * const time_sheet_periods = await prisma.time_sheet_periods.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Time_sheet_periods and only return the `id` + * const time_sheet_periodsWithIdOnly = await prisma.time_sheet_periods.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 Time_sheet_periods. + * @param {time_sheet_periodsUpsertArgs} args - Arguments to update or create a Time_sheet_periods. + * @example + * // Update or create a Time_sheet_periods + * const time_sheet_periods = await prisma.time_sheet_periods.upsert({ + * create: { + * // ... data to create a Time_sheet_periods + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Time_sheet_periods we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Time_sheet_periods. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {time_sheet_periodsCountArgs} args - Arguments to filter Time_sheet_periods to count. + * @example + * // Count the number of Time_sheet_periods + * const count = await prisma.time_sheet_periods.count({ + * where: { + * // ... the filter for the Time_sheet_periods 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 Time_sheet_periods. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Time_sheet_periodsAggregateArgs} 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 Time_sheet_periods. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {time_sheet_periodsGroupByArgs} 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 time_sheet_periodsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: time_sheet_periodsGroupByArgs['orderBy'] } + : { orderBy?: time_sheet_periodsGroupByArgs['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 ? GetTime_sheet_periodsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the time_sheet_periods model + */ +readonly fields: time_sheet_periodsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for time_sheet_periods. + * 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__time_sheet_periodsClient 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 time_sheet_periods model + */ +export interface time_sheet_periodsFieldRefs { + readonly id: Prisma.FieldRef<"time_sheet_periods", 'String'> + readonly start_date: Prisma.FieldRef<"time_sheet_periods", 'DateTime'> + readonly end_date: Prisma.FieldRef<"time_sheet_periods", 'DateTime'> + readonly payment_date: Prisma.FieldRef<"time_sheet_periods", 'DateTime'> + readonly period_number: Prisma.FieldRef<"time_sheet_periods", 'Int'> + readonly year: Prisma.FieldRef<"time_sheet_periods", 'Int'> +} + + +// Custom InputTypes +/** + * time_sheet_periods findUnique + */ +export type time_sheet_periodsFindUniqueArgs = { + /** + * Select specific fields to fetch from the time_sheet_periods + */ + select?: Prisma.time_sheet_periodsSelect | null + /** + * Omit specific fields from the time_sheet_periods + */ + omit?: Prisma.time_sheet_periodsOmit | null + /** + * Filter, which time_sheet_periods to fetch. + */ + where: Prisma.time_sheet_periodsWhereUniqueInput +} + +/** + * time_sheet_periods findUniqueOrThrow + */ +export type time_sheet_periodsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the time_sheet_periods + */ + select?: Prisma.time_sheet_periodsSelect | null + /** + * Omit specific fields from the time_sheet_periods + */ + omit?: Prisma.time_sheet_periodsOmit | null + /** + * Filter, which time_sheet_periods to fetch. + */ + where: Prisma.time_sheet_periodsWhereUniqueInput +} + +/** + * time_sheet_periods findFirst + */ +export type time_sheet_periodsFindFirstArgs = { + /** + * Select specific fields to fetch from the time_sheet_periods + */ + select?: Prisma.time_sheet_periodsSelect | null + /** + * Omit specific fields from the time_sheet_periods + */ + omit?: Prisma.time_sheet_periodsOmit | null + /** + * Filter, which time_sheet_periods to fetch. + */ + where?: Prisma.time_sheet_periodsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of time_sheet_periods to fetch. + */ + orderBy?: Prisma.time_sheet_periodsOrderByWithRelationInput | Prisma.time_sheet_periodsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for time_sheet_periods. + */ + cursor?: Prisma.time_sheet_periodsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` time_sheet_periods 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` time_sheet_periods. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of time_sheet_periods. + */ + distinct?: Prisma.Time_sheet_periodsScalarFieldEnum | Prisma.Time_sheet_periodsScalarFieldEnum[] +} + +/** + * time_sheet_periods findFirstOrThrow + */ +export type time_sheet_periodsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the time_sheet_periods + */ + select?: Prisma.time_sheet_periodsSelect | null + /** + * Omit specific fields from the time_sheet_periods + */ + omit?: Prisma.time_sheet_periodsOmit | null + /** + * Filter, which time_sheet_periods to fetch. + */ + where?: Prisma.time_sheet_periodsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of time_sheet_periods to fetch. + */ + orderBy?: Prisma.time_sheet_periodsOrderByWithRelationInput | Prisma.time_sheet_periodsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for time_sheet_periods. + */ + cursor?: Prisma.time_sheet_periodsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` time_sheet_periods 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` time_sheet_periods. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of time_sheet_periods. + */ + distinct?: Prisma.Time_sheet_periodsScalarFieldEnum | Prisma.Time_sheet_periodsScalarFieldEnum[] +} + +/** + * time_sheet_periods findMany + */ +export type time_sheet_periodsFindManyArgs = { + /** + * Select specific fields to fetch from the time_sheet_periods + */ + select?: Prisma.time_sheet_periodsSelect | null + /** + * Omit specific fields from the time_sheet_periods + */ + omit?: Prisma.time_sheet_periodsOmit | null + /** + * Filter, which time_sheet_periods to fetch. + */ + where?: Prisma.time_sheet_periodsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of time_sheet_periods to fetch. + */ + orderBy?: Prisma.time_sheet_periodsOrderByWithRelationInput | Prisma.time_sheet_periodsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing time_sheet_periods. + */ + cursor?: Prisma.time_sheet_periodsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` time_sheet_periods 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` time_sheet_periods. + */ + skip?: number + distinct?: Prisma.Time_sheet_periodsScalarFieldEnum | Prisma.Time_sheet_periodsScalarFieldEnum[] +} + +/** + * time_sheet_periods create + */ +export type time_sheet_periodsCreateArgs = { + /** + * Select specific fields to fetch from the time_sheet_periods + */ + select?: Prisma.time_sheet_periodsSelect | null + /** + * Omit specific fields from the time_sheet_periods + */ + omit?: Prisma.time_sheet_periodsOmit | null + /** + * The data needed to create a time_sheet_periods. + */ + data: Prisma.XOR +} + +/** + * time_sheet_periods createMany + */ +export type time_sheet_periodsCreateManyArgs = { + /** + * The data used to create many time_sheet_periods. + */ + data: Prisma.time_sheet_periodsCreateManyInput | Prisma.time_sheet_periodsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * time_sheet_periods createManyAndReturn + */ +export type time_sheet_periodsCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the time_sheet_periods + */ + select?: Prisma.time_sheet_periodsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the time_sheet_periods + */ + omit?: Prisma.time_sheet_periodsOmit | null + /** + * The data used to create many time_sheet_periods. + */ + data: Prisma.time_sheet_periodsCreateManyInput | Prisma.time_sheet_periodsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * time_sheet_periods update + */ +export type time_sheet_periodsUpdateArgs = { + /** + * Select specific fields to fetch from the time_sheet_periods + */ + select?: Prisma.time_sheet_periodsSelect | null + /** + * Omit specific fields from the time_sheet_periods + */ + omit?: Prisma.time_sheet_periodsOmit | null + /** + * The data needed to update a time_sheet_periods. + */ + data: Prisma.XOR + /** + * Choose, which time_sheet_periods to update. + */ + where: Prisma.time_sheet_periodsWhereUniqueInput +} + +/** + * time_sheet_periods updateMany + */ +export type time_sheet_periodsUpdateManyArgs = { + /** + * The data used to update time_sheet_periods. + */ + data: Prisma.XOR + /** + * Filter which time_sheet_periods to update + */ + where?: Prisma.time_sheet_periodsWhereInput + /** + * Limit how many time_sheet_periods to update. + */ + limit?: number +} + +/** + * time_sheet_periods updateManyAndReturn + */ +export type time_sheet_periodsUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the time_sheet_periods + */ + select?: Prisma.time_sheet_periodsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the time_sheet_periods + */ + omit?: Prisma.time_sheet_periodsOmit | null + /** + * The data used to update time_sheet_periods. + */ + data: Prisma.XOR + /** + * Filter which time_sheet_periods to update + */ + where?: Prisma.time_sheet_periodsWhereInput + /** + * Limit how many time_sheet_periods to update. + */ + limit?: number +} + +/** + * time_sheet_periods upsert + */ +export type time_sheet_periodsUpsertArgs = { + /** + * Select specific fields to fetch from the time_sheet_periods + */ + select?: Prisma.time_sheet_periodsSelect | null + /** + * Omit specific fields from the time_sheet_periods + */ + omit?: Prisma.time_sheet_periodsOmit | null + /** + * The filter to search for the time_sheet_periods to update in case it exists. + */ + where: Prisma.time_sheet_periodsWhereUniqueInput + /** + * In case the time_sheet_periods found by the `where` argument doesn't exist, create a new time_sheet_periods with this data. + */ + create: Prisma.XOR + /** + * In case the time_sheet_periods was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * time_sheet_periods delete + */ +export type time_sheet_periodsDeleteArgs = { + /** + * Select specific fields to fetch from the time_sheet_periods + */ + select?: Prisma.time_sheet_periodsSelect | null + /** + * Omit specific fields from the time_sheet_periods + */ + omit?: Prisma.time_sheet_periodsOmit | null + /** + * Filter which time_sheet_periods to delete. + */ + where: Prisma.time_sheet_periodsWhereUniqueInput +} + +/** + * time_sheet_periods deleteMany + */ +export type time_sheet_periodsDeleteManyArgs = { + /** + * Filter which time_sheet_periods to delete + */ + where?: Prisma.time_sheet_periodsWhereInput + /** + * Limit how many time_sheet_periods to delete. + */ + limit?: number +} + +/** + * time_sheet_periods without action + */ +export type time_sheet_periodsDefaultArgs = { + /** + * Select specific fields to fetch from the time_sheet_periods + */ + select?: Prisma.time_sheet_periodsSelect | null + /** + * Omit specific fields from the time_sheet_periods + */ + omit?: Prisma.time_sheet_periodsOmit | null +} diff --git a/prisma/generated/legacy/models/time_sheet_template.ts b/prisma/generated/legacy/models/time_sheet_template.ts new file mode 100644 index 0000000..6385c7d --- /dev/null +++ b/prisma/generated/legacy/models/time_sheet_template.ts @@ -0,0 +1,1194 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `time_sheet_template` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model time_sheet_template + * + */ +export type time_sheet_templateModel = runtime.Types.Result.DefaultSelection + +export type AggregateTime_sheet_template = { + _count: Time_sheet_templateCountAggregateOutputType | null + _avg: Time_sheet_templateAvgAggregateOutputType | null + _sum: Time_sheet_templateSumAggregateOutputType | null + _min: Time_sheet_templateMinAggregateOutputType | null + _max: Time_sheet_templateMaxAggregateOutputType | null +} + +export type Time_sheet_templateAvgAggregateOutputType = { + created_at: number | null + updated_at: number | null +} + +export type Time_sheet_templateSumAggregateOutputType = { + created_at: bigint | null + updated_at: bigint | null +} + +export type Time_sheet_templateMinAggregateOutputType = { + id: string | null + title: string | null + description: string | null + created_at: bigint | null + updated_at: bigint | null +} + +export type Time_sheet_templateMaxAggregateOutputType = { + id: string | null + title: string | null + description: string | null + created_at: bigint | null + updated_at: bigint | null +} + +export type Time_sheet_templateCountAggregateOutputType = { + id: number + title: number + description: number + created_at: number + updated_at: number + _all: number +} + + +export type Time_sheet_templateAvgAggregateInputType = { + created_at?: true + updated_at?: true +} + +export type Time_sheet_templateSumAggregateInputType = { + created_at?: true + updated_at?: true +} + +export type Time_sheet_templateMinAggregateInputType = { + id?: true + title?: true + description?: true + created_at?: true + updated_at?: true +} + +export type Time_sheet_templateMaxAggregateInputType = { + id?: true + title?: true + description?: true + created_at?: true + updated_at?: true +} + +export type Time_sheet_templateCountAggregateInputType = { + id?: true + title?: true + description?: true + created_at?: true + updated_at?: true + _all?: true +} + +export type Time_sheet_templateAggregateArgs = { + /** + * Filter which time_sheet_template to aggregate. + */ + where?: Prisma.time_sheet_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of time_sheet_templates to fetch. + */ + orderBy?: Prisma.time_sheet_templateOrderByWithRelationInput | Prisma.time_sheet_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.time_sheet_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` time_sheet_templates 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` time_sheet_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned time_sheet_templates + **/ + _count?: true | Time_sheet_templateCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Time_sheet_templateAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Time_sheet_templateSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Time_sheet_templateMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Time_sheet_templateMaxAggregateInputType +} + +export type GetTime_sheet_templateAggregateType = { + [P in keyof T & keyof AggregateTime_sheet_template]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type time_sheet_templateGroupByArgs = { + where?: Prisma.time_sheet_templateWhereInput + orderBy?: Prisma.time_sheet_templateOrderByWithAggregationInput | Prisma.time_sheet_templateOrderByWithAggregationInput[] + by: Prisma.Time_sheet_templateScalarFieldEnum[] | Prisma.Time_sheet_templateScalarFieldEnum + having?: Prisma.time_sheet_templateScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Time_sheet_templateCountAggregateInputType | true + _avg?: Time_sheet_templateAvgAggregateInputType + _sum?: Time_sheet_templateSumAggregateInputType + _min?: Time_sheet_templateMinAggregateInputType + _max?: Time_sheet_templateMaxAggregateInputType +} + +export type Time_sheet_templateGroupByOutputType = { + id: string + title: string + description: string | null + created_at: bigint + updated_at: bigint + _count: Time_sheet_templateCountAggregateOutputType | null + _avg: Time_sheet_templateAvgAggregateOutputType | null + _sum: Time_sheet_templateSumAggregateOutputType | null + _min: Time_sheet_templateMinAggregateOutputType | null + _max: Time_sheet_templateMaxAggregateOutputType | null +} + +type GetTime_sheet_templateGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Time_sheet_templateGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type time_sheet_templateWhereInput = { + AND?: Prisma.time_sheet_templateWhereInput | Prisma.time_sheet_templateWhereInput[] + OR?: Prisma.time_sheet_templateWhereInput[] + NOT?: Prisma.time_sheet_templateWhereInput | Prisma.time_sheet_templateWhereInput[] + id?: Prisma.UuidFilter<"time_sheet_template"> | string + title?: Prisma.StringFilter<"time_sheet_template"> | string + description?: Prisma.StringNullableFilter<"time_sheet_template"> | string | null + created_at?: Prisma.BigIntFilter<"time_sheet_template"> | bigint | number + updated_at?: Prisma.BigIntFilter<"time_sheet_template"> | bigint | number +} + +export type time_sheet_templateOrderByWithRelationInput = { + id?: Prisma.SortOrder + title?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type time_sheet_templateWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.time_sheet_templateWhereInput | Prisma.time_sheet_templateWhereInput[] + OR?: Prisma.time_sheet_templateWhereInput[] + NOT?: Prisma.time_sheet_templateWhereInput | Prisma.time_sheet_templateWhereInput[] + title?: Prisma.StringFilter<"time_sheet_template"> | string + description?: Prisma.StringNullableFilter<"time_sheet_template"> | string | null + created_at?: Prisma.BigIntFilter<"time_sheet_template"> | bigint | number + updated_at?: Prisma.BigIntFilter<"time_sheet_template"> | bigint | number +}, "id"> + +export type time_sheet_templateOrderByWithAggregationInput = { + id?: Prisma.SortOrder + title?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + _count?: Prisma.time_sheet_templateCountOrderByAggregateInput + _avg?: Prisma.time_sheet_templateAvgOrderByAggregateInput + _max?: Prisma.time_sheet_templateMaxOrderByAggregateInput + _min?: Prisma.time_sheet_templateMinOrderByAggregateInput + _sum?: Prisma.time_sheet_templateSumOrderByAggregateInput +} + +export type time_sheet_templateScalarWhereWithAggregatesInput = { + AND?: Prisma.time_sheet_templateScalarWhereWithAggregatesInput | Prisma.time_sheet_templateScalarWhereWithAggregatesInput[] + OR?: Prisma.time_sheet_templateScalarWhereWithAggregatesInput[] + NOT?: Prisma.time_sheet_templateScalarWhereWithAggregatesInput | Prisma.time_sheet_templateScalarWhereWithAggregatesInput[] + id?: Prisma.UuidWithAggregatesFilter<"time_sheet_template"> | string + title?: Prisma.StringWithAggregatesFilter<"time_sheet_template"> | string + description?: Prisma.StringNullableWithAggregatesFilter<"time_sheet_template"> | string | null + created_at?: Prisma.BigIntWithAggregatesFilter<"time_sheet_template"> | bigint | number + updated_at?: Prisma.BigIntWithAggregatesFilter<"time_sheet_template"> | bigint | number +} + +export type time_sheet_templateCreateInput = { + id: string + title: string + description?: string | null + created_at: bigint | number + updated_at: bigint | number +} + +export type time_sheet_templateUncheckedCreateInput = { + id: string + title: string + description?: string | null + created_at: bigint | number + updated_at: bigint | number +} + +export type time_sheet_templateUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + title?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type time_sheet_templateUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + title?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type time_sheet_templateCreateManyInput = { + id: string + title: string + description?: string | null + created_at: bigint | number + updated_at: bigint | number +} + +export type time_sheet_templateUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + title?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type time_sheet_templateUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + title?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type time_sheet_templateCountOrderByAggregateInput = { + id?: Prisma.SortOrder + title?: Prisma.SortOrder + description?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type time_sheet_templateAvgOrderByAggregateInput = { + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type time_sheet_templateMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + title?: Prisma.SortOrder + description?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type time_sheet_templateMinOrderByAggregateInput = { + id?: Prisma.SortOrder + title?: Prisma.SortOrder + description?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type time_sheet_templateSumOrderByAggregateInput = { + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + + + +export type time_sheet_templateSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + title?: boolean + description?: boolean + created_at?: boolean + updated_at?: boolean +}, ExtArgs["result"]["time_sheet_template"]> + +export type time_sheet_templateSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + title?: boolean + description?: boolean + created_at?: boolean + updated_at?: boolean +}, ExtArgs["result"]["time_sheet_template"]> + +export type time_sheet_templateSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + title?: boolean + description?: boolean + created_at?: boolean + updated_at?: boolean +}, ExtArgs["result"]["time_sheet_template"]> + +export type time_sheet_templateSelectScalar = { + id?: boolean + title?: boolean + description?: boolean + created_at?: boolean + updated_at?: boolean +} + +export type time_sheet_templateOmit = runtime.Types.Extensions.GetOmit<"id" | "title" | "description" | "created_at" | "updated_at", ExtArgs["result"]["time_sheet_template"]> + +export type $time_sheet_templatePayload = { + name: "time_sheet_template" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + title: string + description: string | null + created_at: bigint + updated_at: bigint + }, ExtArgs["result"]["time_sheet_template"]> + composites: {} +} + +export type time_sheet_templateGetPayload = runtime.Types.Result.GetResult + +export type time_sheet_templateCountArgs = + Omit & { + select?: Time_sheet_templateCountAggregateInputType | true + } + +export interface time_sheet_templateDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['time_sheet_template'], meta: { name: 'time_sheet_template' } } + /** + * Find zero or one Time_sheet_template that matches the filter. + * @param {time_sheet_templateFindUniqueArgs} args - Arguments to find a Time_sheet_template + * @example + * // Get one Time_sheet_template + * const time_sheet_template = await prisma.time_sheet_template.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Time_sheet_template that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {time_sheet_templateFindUniqueOrThrowArgs} args - Arguments to find a Time_sheet_template + * @example + * // Get one Time_sheet_template + * const time_sheet_template = await prisma.time_sheet_template.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Time_sheet_template 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 {time_sheet_templateFindFirstArgs} args - Arguments to find a Time_sheet_template + * @example + * // Get one Time_sheet_template + * const time_sheet_template = await prisma.time_sheet_template.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Time_sheet_template 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 {time_sheet_templateFindFirstOrThrowArgs} args - Arguments to find a Time_sheet_template + * @example + * // Get one Time_sheet_template + * const time_sheet_template = await prisma.time_sheet_template.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Time_sheet_templates 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 {time_sheet_templateFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Time_sheet_templates + * const time_sheet_templates = await prisma.time_sheet_template.findMany() + * + * // Get first 10 Time_sheet_templates + * const time_sheet_templates = await prisma.time_sheet_template.findMany({ take: 10 }) + * + * // Only select the `id` + * const time_sheet_templateWithIdOnly = await prisma.time_sheet_template.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Time_sheet_template. + * @param {time_sheet_templateCreateArgs} args - Arguments to create a Time_sheet_template. + * @example + * // Create one Time_sheet_template + * const Time_sheet_template = await prisma.time_sheet_template.create({ + * data: { + * // ... data to create a Time_sheet_template + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Time_sheet_templates. + * @param {time_sheet_templateCreateManyArgs} args - Arguments to create many Time_sheet_templates. + * @example + * // Create many Time_sheet_templates + * const time_sheet_template = await prisma.time_sheet_template.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Time_sheet_templates and returns the data saved in the database. + * @param {time_sheet_templateCreateManyAndReturnArgs} args - Arguments to create many Time_sheet_templates. + * @example + * // Create many Time_sheet_templates + * const time_sheet_template = await prisma.time_sheet_template.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Time_sheet_templates and only return the `id` + * const time_sheet_templateWithIdOnly = await prisma.time_sheet_template.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 Time_sheet_template. + * @param {time_sheet_templateDeleteArgs} args - Arguments to delete one Time_sheet_template. + * @example + * // Delete one Time_sheet_template + * const Time_sheet_template = await prisma.time_sheet_template.delete({ + * where: { + * // ... filter to delete one Time_sheet_template + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Time_sheet_template. + * @param {time_sheet_templateUpdateArgs} args - Arguments to update one Time_sheet_template. + * @example + * // Update one Time_sheet_template + * const time_sheet_template = await prisma.time_sheet_template.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Time_sheet_templates. + * @param {time_sheet_templateDeleteManyArgs} args - Arguments to filter Time_sheet_templates to delete. + * @example + * // Delete a few Time_sheet_templates + * const { count } = await prisma.time_sheet_template.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Time_sheet_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {time_sheet_templateUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Time_sheet_templates + * const time_sheet_template = await prisma.time_sheet_template.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Time_sheet_templates and returns the data updated in the database. + * @param {time_sheet_templateUpdateManyAndReturnArgs} args - Arguments to update many Time_sheet_templates. + * @example + * // Update many Time_sheet_templates + * const time_sheet_template = await prisma.time_sheet_template.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Time_sheet_templates and only return the `id` + * const time_sheet_templateWithIdOnly = await prisma.time_sheet_template.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 Time_sheet_template. + * @param {time_sheet_templateUpsertArgs} args - Arguments to update or create a Time_sheet_template. + * @example + * // Update or create a Time_sheet_template + * const time_sheet_template = await prisma.time_sheet_template.upsert({ + * create: { + * // ... data to create a Time_sheet_template + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Time_sheet_template we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Time_sheet_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {time_sheet_templateCountArgs} args - Arguments to filter Time_sheet_templates to count. + * @example + * // Count the number of Time_sheet_templates + * const count = await prisma.time_sheet_template.count({ + * where: { + * // ... the filter for the Time_sheet_templates 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 Time_sheet_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Time_sheet_templateAggregateArgs} 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 Time_sheet_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {time_sheet_templateGroupByArgs} 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 time_sheet_templateGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: time_sheet_templateGroupByArgs['orderBy'] } + : { orderBy?: time_sheet_templateGroupByArgs['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 ? GetTime_sheet_templateGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the time_sheet_template model + */ +readonly fields: time_sheet_templateFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for time_sheet_template. + * 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__time_sheet_templateClient 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 time_sheet_template model + */ +export interface time_sheet_templateFieldRefs { + readonly id: Prisma.FieldRef<"time_sheet_template", 'String'> + readonly title: Prisma.FieldRef<"time_sheet_template", 'String'> + readonly description: Prisma.FieldRef<"time_sheet_template", 'String'> + readonly created_at: Prisma.FieldRef<"time_sheet_template", 'BigInt'> + readonly updated_at: Prisma.FieldRef<"time_sheet_template", 'BigInt'> +} + + +// Custom InputTypes +/** + * time_sheet_template findUnique + */ +export type time_sheet_templateFindUniqueArgs = { + /** + * Select specific fields to fetch from the time_sheet_template + */ + select?: Prisma.time_sheet_templateSelect | null + /** + * Omit specific fields from the time_sheet_template + */ + omit?: Prisma.time_sheet_templateOmit | null + /** + * Filter, which time_sheet_template to fetch. + */ + where: Prisma.time_sheet_templateWhereUniqueInput +} + +/** + * time_sheet_template findUniqueOrThrow + */ +export type time_sheet_templateFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the time_sheet_template + */ + select?: Prisma.time_sheet_templateSelect | null + /** + * Omit specific fields from the time_sheet_template + */ + omit?: Prisma.time_sheet_templateOmit | null + /** + * Filter, which time_sheet_template to fetch. + */ + where: Prisma.time_sheet_templateWhereUniqueInput +} + +/** + * time_sheet_template findFirst + */ +export type time_sheet_templateFindFirstArgs = { + /** + * Select specific fields to fetch from the time_sheet_template + */ + select?: Prisma.time_sheet_templateSelect | null + /** + * Omit specific fields from the time_sheet_template + */ + omit?: Prisma.time_sheet_templateOmit | null + /** + * Filter, which time_sheet_template to fetch. + */ + where?: Prisma.time_sheet_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of time_sheet_templates to fetch. + */ + orderBy?: Prisma.time_sheet_templateOrderByWithRelationInput | Prisma.time_sheet_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for time_sheet_templates. + */ + cursor?: Prisma.time_sheet_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` time_sheet_templates 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` time_sheet_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of time_sheet_templates. + */ + distinct?: Prisma.Time_sheet_templateScalarFieldEnum | Prisma.Time_sheet_templateScalarFieldEnum[] +} + +/** + * time_sheet_template findFirstOrThrow + */ +export type time_sheet_templateFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the time_sheet_template + */ + select?: Prisma.time_sheet_templateSelect | null + /** + * Omit specific fields from the time_sheet_template + */ + omit?: Prisma.time_sheet_templateOmit | null + /** + * Filter, which time_sheet_template to fetch. + */ + where?: Prisma.time_sheet_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of time_sheet_templates to fetch. + */ + orderBy?: Prisma.time_sheet_templateOrderByWithRelationInput | Prisma.time_sheet_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for time_sheet_templates. + */ + cursor?: Prisma.time_sheet_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` time_sheet_templates 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` time_sheet_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of time_sheet_templates. + */ + distinct?: Prisma.Time_sheet_templateScalarFieldEnum | Prisma.Time_sheet_templateScalarFieldEnum[] +} + +/** + * time_sheet_template findMany + */ +export type time_sheet_templateFindManyArgs = { + /** + * Select specific fields to fetch from the time_sheet_template + */ + select?: Prisma.time_sheet_templateSelect | null + /** + * Omit specific fields from the time_sheet_template + */ + omit?: Prisma.time_sheet_templateOmit | null + /** + * Filter, which time_sheet_templates to fetch. + */ + where?: Prisma.time_sheet_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of time_sheet_templates to fetch. + */ + orderBy?: Prisma.time_sheet_templateOrderByWithRelationInput | Prisma.time_sheet_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing time_sheet_templates. + */ + cursor?: Prisma.time_sheet_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` time_sheet_templates 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` time_sheet_templates. + */ + skip?: number + distinct?: Prisma.Time_sheet_templateScalarFieldEnum | Prisma.Time_sheet_templateScalarFieldEnum[] +} + +/** + * time_sheet_template create + */ +export type time_sheet_templateCreateArgs = { + /** + * Select specific fields to fetch from the time_sheet_template + */ + select?: Prisma.time_sheet_templateSelect | null + /** + * Omit specific fields from the time_sheet_template + */ + omit?: Prisma.time_sheet_templateOmit | null + /** + * The data needed to create a time_sheet_template. + */ + data: Prisma.XOR +} + +/** + * time_sheet_template createMany + */ +export type time_sheet_templateCreateManyArgs = { + /** + * The data used to create many time_sheet_templates. + */ + data: Prisma.time_sheet_templateCreateManyInput | Prisma.time_sheet_templateCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * time_sheet_template createManyAndReturn + */ +export type time_sheet_templateCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the time_sheet_template + */ + select?: Prisma.time_sheet_templateSelectCreateManyAndReturn | null + /** + * Omit specific fields from the time_sheet_template + */ + omit?: Prisma.time_sheet_templateOmit | null + /** + * The data used to create many time_sheet_templates. + */ + data: Prisma.time_sheet_templateCreateManyInput | Prisma.time_sheet_templateCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * time_sheet_template update + */ +export type time_sheet_templateUpdateArgs = { + /** + * Select specific fields to fetch from the time_sheet_template + */ + select?: Prisma.time_sheet_templateSelect | null + /** + * Omit specific fields from the time_sheet_template + */ + omit?: Prisma.time_sheet_templateOmit | null + /** + * The data needed to update a time_sheet_template. + */ + data: Prisma.XOR + /** + * Choose, which time_sheet_template to update. + */ + where: Prisma.time_sheet_templateWhereUniqueInput +} + +/** + * time_sheet_template updateMany + */ +export type time_sheet_templateUpdateManyArgs = { + /** + * The data used to update time_sheet_templates. + */ + data: Prisma.XOR + /** + * Filter which time_sheet_templates to update + */ + where?: Prisma.time_sheet_templateWhereInput + /** + * Limit how many time_sheet_templates to update. + */ + limit?: number +} + +/** + * time_sheet_template updateManyAndReturn + */ +export type time_sheet_templateUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the time_sheet_template + */ + select?: Prisma.time_sheet_templateSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the time_sheet_template + */ + omit?: Prisma.time_sheet_templateOmit | null + /** + * The data used to update time_sheet_templates. + */ + data: Prisma.XOR + /** + * Filter which time_sheet_templates to update + */ + where?: Prisma.time_sheet_templateWhereInput + /** + * Limit how many time_sheet_templates to update. + */ + limit?: number +} + +/** + * time_sheet_template upsert + */ +export type time_sheet_templateUpsertArgs = { + /** + * Select specific fields to fetch from the time_sheet_template + */ + select?: Prisma.time_sheet_templateSelect | null + /** + * Omit specific fields from the time_sheet_template + */ + omit?: Prisma.time_sheet_templateOmit | null + /** + * The filter to search for the time_sheet_template to update in case it exists. + */ + where: Prisma.time_sheet_templateWhereUniqueInput + /** + * In case the time_sheet_template found by the `where` argument doesn't exist, create a new time_sheet_template with this data. + */ + create: Prisma.XOR + /** + * In case the time_sheet_template was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * time_sheet_template delete + */ +export type time_sheet_templateDeleteArgs = { + /** + * Select specific fields to fetch from the time_sheet_template + */ + select?: Prisma.time_sheet_templateSelect | null + /** + * Omit specific fields from the time_sheet_template + */ + omit?: Prisma.time_sheet_templateOmit | null + /** + * Filter which time_sheet_template to delete. + */ + where: Prisma.time_sheet_templateWhereUniqueInput +} + +/** + * time_sheet_template deleteMany + */ +export type time_sheet_templateDeleteManyArgs = { + /** + * Filter which time_sheet_templates to delete + */ + where?: Prisma.time_sheet_templateWhereInput + /** + * Limit how many time_sheet_templates to delete. + */ + limit?: number +} + +/** + * time_sheet_template without action + */ +export type time_sheet_templateDefaultArgs = { + /** + * Select specific fields to fetch from the time_sheet_template + */ + select?: Prisma.time_sheet_templateSelect | null + /** + * Omit specific fields from the time_sheet_template + */ + omit?: Prisma.time_sheet_templateOmit | null +} diff --git a/prisma/generated/legacy/models/time_sheets.ts b/prisma/generated/legacy/models/time_sheets.ts new file mode 100644 index 0000000..cbaacfe --- /dev/null +++ b/prisma/generated/legacy/models/time_sheets.ts @@ -0,0 +1,1442 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `time_sheets` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model time_sheets + * + */ +export type time_sheetsModel = runtime.Types.Result.DefaultSelection + +export type AggregateTime_sheets = { + _count: Time_sheetsCountAggregateOutputType | null + _avg: Time_sheetsAvgAggregateOutputType | null + _sum: Time_sheetsSumAggregateOutputType | null + _min: Time_sheetsMinAggregateOutputType | null + _max: Time_sheetsMaxAggregateOutputType | null +} + +export type Time_sheetsAvgAggregateOutputType = { + banked_hours: number | null + consumed_vacation: number | null + consumed_sick: number | null + period_number: number | null + created_at: number | null + updated_at: number | null +} + +export type Time_sheetsSumAggregateOutputType = { + banked_hours: number | null + consumed_vacation: number | null + consumed_sick: number | null + period_number: number | null + created_at: bigint | null + updated_at: bigint | null +} + +export type Time_sheetsMinAggregateOutputType = { + id: string | null + employee_id: string | null + start_date: Date | null + end_date: Date | null + status: boolean | null + banked_hours: number | null + consumed_vacation: number | null + consumed_sick: number | null + period_id: string | null + period_number: number | null + created_at: bigint | null + updated_at: bigint | null + blocked_week: boolean | null +} + +export type Time_sheetsMaxAggregateOutputType = { + id: string | null + employee_id: string | null + start_date: Date | null + end_date: Date | null + status: boolean | null + banked_hours: number | null + consumed_vacation: number | null + consumed_sick: number | null + period_id: string | null + period_number: number | null + created_at: bigint | null + updated_at: bigint | null + blocked_week: boolean | null +} + +export type Time_sheetsCountAggregateOutputType = { + id: number + employee_id: number + start_date: number + end_date: number + status: number + banked_hours: number + consumed_vacation: number + consumed_sick: number + period_id: number + period_number: number + created_at: number + updated_at: number + blocked_week: number + _all: number +} + + +export type Time_sheetsAvgAggregateInputType = { + banked_hours?: true + consumed_vacation?: true + consumed_sick?: true + period_number?: true + created_at?: true + updated_at?: true +} + +export type Time_sheetsSumAggregateInputType = { + banked_hours?: true + consumed_vacation?: true + consumed_sick?: true + period_number?: true + created_at?: true + updated_at?: true +} + +export type Time_sheetsMinAggregateInputType = { + id?: true + employee_id?: true + start_date?: true + end_date?: true + status?: true + banked_hours?: true + consumed_vacation?: true + consumed_sick?: true + period_id?: true + period_number?: true + created_at?: true + updated_at?: true + blocked_week?: true +} + +export type Time_sheetsMaxAggregateInputType = { + id?: true + employee_id?: true + start_date?: true + end_date?: true + status?: true + banked_hours?: true + consumed_vacation?: true + consumed_sick?: true + period_id?: true + period_number?: true + created_at?: true + updated_at?: true + blocked_week?: true +} + +export type Time_sheetsCountAggregateInputType = { + id?: true + employee_id?: true + start_date?: true + end_date?: true + status?: true + banked_hours?: true + consumed_vacation?: true + consumed_sick?: true + period_id?: true + period_number?: true + created_at?: true + updated_at?: true + blocked_week?: true + _all?: true +} + +export type Time_sheetsAggregateArgs = { + /** + * Filter which time_sheets to aggregate. + */ + where?: Prisma.time_sheetsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of time_sheets to fetch. + */ + orderBy?: Prisma.time_sheetsOrderByWithRelationInput | Prisma.time_sheetsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.time_sheetsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` time_sheets 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` time_sheets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned time_sheets + **/ + _count?: true | Time_sheetsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Time_sheetsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Time_sheetsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Time_sheetsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Time_sheetsMaxAggregateInputType +} + +export type GetTime_sheetsAggregateType = { + [P in keyof T & keyof AggregateTime_sheets]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type time_sheetsGroupByArgs = { + where?: Prisma.time_sheetsWhereInput + orderBy?: Prisma.time_sheetsOrderByWithAggregationInput | Prisma.time_sheetsOrderByWithAggregationInput[] + by: Prisma.Time_sheetsScalarFieldEnum[] | Prisma.Time_sheetsScalarFieldEnum + having?: Prisma.time_sheetsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Time_sheetsCountAggregateInputType | true + _avg?: Time_sheetsAvgAggregateInputType + _sum?: Time_sheetsSumAggregateInputType + _min?: Time_sheetsMinAggregateInputType + _max?: Time_sheetsMaxAggregateInputType +} + +export type Time_sheetsGroupByOutputType = { + id: string + employee_id: string | null + start_date: Date | null + end_date: Date | null + status: boolean | null + banked_hours: number | null + consumed_vacation: number | null + consumed_sick: number | null + period_id: string | null + period_number: number | null + created_at: bigint | null + updated_at: bigint | null + blocked_week: boolean | null + _count: Time_sheetsCountAggregateOutputType | null + _avg: Time_sheetsAvgAggregateOutputType | null + _sum: Time_sheetsSumAggregateOutputType | null + _min: Time_sheetsMinAggregateOutputType | null + _max: Time_sheetsMaxAggregateOutputType | null +} + +type GetTime_sheetsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Time_sheetsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type time_sheetsWhereInput = { + AND?: Prisma.time_sheetsWhereInput | Prisma.time_sheetsWhereInput[] + OR?: Prisma.time_sheetsWhereInput[] + NOT?: Prisma.time_sheetsWhereInput | Prisma.time_sheetsWhereInput[] + id?: Prisma.UuidFilter<"time_sheets"> | string + employee_id?: Prisma.StringNullableFilter<"time_sheets"> | string | null + start_date?: Prisma.DateTimeNullableFilter<"time_sheets"> | Date | string | null + end_date?: Prisma.DateTimeNullableFilter<"time_sheets"> | Date | string | null + status?: Prisma.BoolNullableFilter<"time_sheets"> | boolean | null + banked_hours?: Prisma.FloatNullableFilter<"time_sheets"> | number | null + consumed_vacation?: Prisma.FloatNullableFilter<"time_sheets"> | number | null + consumed_sick?: Prisma.FloatNullableFilter<"time_sheets"> | number | null + period_id?: Prisma.StringNullableFilter<"time_sheets"> | string | null + period_number?: Prisma.IntNullableFilter<"time_sheets"> | number | null + created_at?: Prisma.BigIntNullableFilter<"time_sheets"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"time_sheets"> | bigint | number | null + blocked_week?: Prisma.BoolNullableFilter<"time_sheets"> | boolean | null +} + +export type time_sheetsOrderByWithRelationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrderInput | Prisma.SortOrder + start_date?: Prisma.SortOrderInput | Prisma.SortOrder + end_date?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + banked_hours?: Prisma.SortOrderInput | Prisma.SortOrder + consumed_vacation?: Prisma.SortOrderInput | Prisma.SortOrder + consumed_sick?: Prisma.SortOrderInput | Prisma.SortOrder + period_id?: Prisma.SortOrderInput | Prisma.SortOrder + period_number?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + blocked_week?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type time_sheetsWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.time_sheetsWhereInput | Prisma.time_sheetsWhereInput[] + OR?: Prisma.time_sheetsWhereInput[] + NOT?: Prisma.time_sheetsWhereInput | Prisma.time_sheetsWhereInput[] + employee_id?: Prisma.StringNullableFilter<"time_sheets"> | string | null + start_date?: Prisma.DateTimeNullableFilter<"time_sheets"> | Date | string | null + end_date?: Prisma.DateTimeNullableFilter<"time_sheets"> | Date | string | null + status?: Prisma.BoolNullableFilter<"time_sheets"> | boolean | null + banked_hours?: Prisma.FloatNullableFilter<"time_sheets"> | number | null + consumed_vacation?: Prisma.FloatNullableFilter<"time_sheets"> | number | null + consumed_sick?: Prisma.FloatNullableFilter<"time_sheets"> | number | null + period_id?: Prisma.StringNullableFilter<"time_sheets"> | string | null + period_number?: Prisma.IntNullableFilter<"time_sheets"> | number | null + created_at?: Prisma.BigIntNullableFilter<"time_sheets"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"time_sheets"> | bigint | number | null + blocked_week?: Prisma.BoolNullableFilter<"time_sheets"> | boolean | null +}, "id"> + +export type time_sheetsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrderInput | Prisma.SortOrder + start_date?: Prisma.SortOrderInput | Prisma.SortOrder + end_date?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + banked_hours?: Prisma.SortOrderInput | Prisma.SortOrder + consumed_vacation?: Prisma.SortOrderInput | Prisma.SortOrder + consumed_sick?: Prisma.SortOrderInput | Prisma.SortOrder + period_id?: Prisma.SortOrderInput | Prisma.SortOrder + period_number?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + blocked_week?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.time_sheetsCountOrderByAggregateInput + _avg?: Prisma.time_sheetsAvgOrderByAggregateInput + _max?: Prisma.time_sheetsMaxOrderByAggregateInput + _min?: Prisma.time_sheetsMinOrderByAggregateInput + _sum?: Prisma.time_sheetsSumOrderByAggregateInput +} + +export type time_sheetsScalarWhereWithAggregatesInput = { + AND?: Prisma.time_sheetsScalarWhereWithAggregatesInput | Prisma.time_sheetsScalarWhereWithAggregatesInput[] + OR?: Prisma.time_sheetsScalarWhereWithAggregatesInput[] + NOT?: Prisma.time_sheetsScalarWhereWithAggregatesInput | Prisma.time_sheetsScalarWhereWithAggregatesInput[] + id?: Prisma.UuidWithAggregatesFilter<"time_sheets"> | string + employee_id?: Prisma.StringNullableWithAggregatesFilter<"time_sheets"> | string | null + start_date?: Prisma.DateTimeNullableWithAggregatesFilter<"time_sheets"> | Date | string | null + end_date?: Prisma.DateTimeNullableWithAggregatesFilter<"time_sheets"> | Date | string | null + status?: Prisma.BoolNullableWithAggregatesFilter<"time_sheets"> | boolean | null + banked_hours?: Prisma.FloatNullableWithAggregatesFilter<"time_sheets"> | number | null + consumed_vacation?: Prisma.FloatNullableWithAggregatesFilter<"time_sheets"> | number | null + consumed_sick?: Prisma.FloatNullableWithAggregatesFilter<"time_sheets"> | number | null + period_id?: Prisma.StringNullableWithAggregatesFilter<"time_sheets"> | string | null + period_number?: Prisma.IntNullableWithAggregatesFilter<"time_sheets"> | number | null + created_at?: Prisma.BigIntNullableWithAggregatesFilter<"time_sheets"> | bigint | number | null + updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"time_sheets"> | bigint | number | null + blocked_week?: Prisma.BoolNullableWithAggregatesFilter<"time_sheets"> | boolean | null +} + +export type time_sheetsCreateInput = { + id: string + employee_id?: string | null + start_date?: Date | string | null + end_date?: Date | string | null + status?: boolean | null + banked_hours?: number | null + consumed_vacation?: number | null + consumed_sick?: number | null + period_id?: string | null + period_number?: number | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + blocked_week?: boolean | null +} + +export type time_sheetsUncheckedCreateInput = { + id: string + employee_id?: string | null + start_date?: Date | string | null + end_date?: Date | string | null + status?: boolean | null + banked_hours?: number | null + consumed_vacation?: number | null + consumed_sick?: number | null + period_id?: string | null + period_number?: number | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + blocked_week?: boolean | null +} + +export type time_sheetsUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + banked_hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed_vacation?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed_sick?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + period_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + blocked_week?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null +} + +export type time_sheetsUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + banked_hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed_vacation?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed_sick?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + period_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + blocked_week?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null +} + +export type time_sheetsCreateManyInput = { + id: string + employee_id?: string | null + start_date?: Date | string | null + end_date?: Date | string | null + status?: boolean | null + banked_hours?: number | null + consumed_vacation?: number | null + consumed_sick?: number | null + period_id?: string | null + period_number?: number | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + blocked_week?: boolean | null +} + +export type time_sheetsUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + banked_hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed_vacation?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed_sick?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + period_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + blocked_week?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null +} + +export type time_sheetsUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + banked_hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed_vacation?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed_sick?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + period_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + blocked_week?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null +} + +export type time_sheetsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + start_date?: Prisma.SortOrder + end_date?: Prisma.SortOrder + status?: Prisma.SortOrder + banked_hours?: Prisma.SortOrder + consumed_vacation?: Prisma.SortOrder + consumed_sick?: Prisma.SortOrder + period_id?: Prisma.SortOrder + period_number?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + blocked_week?: Prisma.SortOrder +} + +export type time_sheetsAvgOrderByAggregateInput = { + banked_hours?: Prisma.SortOrder + consumed_vacation?: Prisma.SortOrder + consumed_sick?: Prisma.SortOrder + period_number?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + +export type time_sheetsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + start_date?: Prisma.SortOrder + end_date?: Prisma.SortOrder + status?: Prisma.SortOrder + banked_hours?: Prisma.SortOrder + consumed_vacation?: Prisma.SortOrder + consumed_sick?: Prisma.SortOrder + period_id?: Prisma.SortOrder + period_number?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + blocked_week?: Prisma.SortOrder +} + +export type time_sheetsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + start_date?: Prisma.SortOrder + end_date?: Prisma.SortOrder + status?: Prisma.SortOrder + banked_hours?: Prisma.SortOrder + consumed_vacation?: Prisma.SortOrder + consumed_sick?: Prisma.SortOrder + period_id?: Prisma.SortOrder + period_number?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + blocked_week?: Prisma.SortOrder +} + +export type time_sheetsSumOrderByAggregateInput = { + banked_hours?: Prisma.SortOrder + consumed_vacation?: Prisma.SortOrder + consumed_sick?: Prisma.SortOrder + period_number?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder +} + + + +export type time_sheetsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + start_date?: boolean + end_date?: boolean + status?: boolean + banked_hours?: boolean + consumed_vacation?: boolean + consumed_sick?: boolean + period_id?: boolean + period_number?: boolean + created_at?: boolean + updated_at?: boolean + blocked_week?: boolean +}, ExtArgs["result"]["time_sheets"]> + +export type time_sheetsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + start_date?: boolean + end_date?: boolean + status?: boolean + banked_hours?: boolean + consumed_vacation?: boolean + consumed_sick?: boolean + period_id?: boolean + period_number?: boolean + created_at?: boolean + updated_at?: boolean + blocked_week?: boolean +}, ExtArgs["result"]["time_sheets"]> + +export type time_sheetsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + start_date?: boolean + end_date?: boolean + status?: boolean + banked_hours?: boolean + consumed_vacation?: boolean + consumed_sick?: boolean + period_id?: boolean + period_number?: boolean + created_at?: boolean + updated_at?: boolean + blocked_week?: boolean +}, ExtArgs["result"]["time_sheets"]> + +export type time_sheetsSelectScalar = { + id?: boolean + employee_id?: boolean + start_date?: boolean + end_date?: boolean + status?: boolean + banked_hours?: boolean + consumed_vacation?: boolean + consumed_sick?: boolean + period_id?: boolean + period_number?: boolean + created_at?: boolean + updated_at?: boolean + blocked_week?: boolean +} + +export type time_sheetsOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "start_date" | "end_date" | "status" | "banked_hours" | "consumed_vacation" | "consumed_sick" | "period_id" | "period_number" | "created_at" | "updated_at" | "blocked_week", ExtArgs["result"]["time_sheets"]> + +export type $time_sheetsPayload = { + name: "time_sheets" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + employee_id: string | null + start_date: Date | null + end_date: Date | null + status: boolean | null + banked_hours: number | null + consumed_vacation: number | null + consumed_sick: number | null + period_id: string | null + period_number: number | null + created_at: bigint | null + updated_at: bigint | null + blocked_week: boolean | null + }, ExtArgs["result"]["time_sheets"]> + composites: {} +} + +export type time_sheetsGetPayload = runtime.Types.Result.GetResult + +export type time_sheetsCountArgs = + Omit & { + select?: Time_sheetsCountAggregateInputType | true + } + +export interface time_sheetsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['time_sheets'], meta: { name: 'time_sheets' } } + /** + * Find zero or one Time_sheets that matches the filter. + * @param {time_sheetsFindUniqueArgs} args - Arguments to find a Time_sheets + * @example + * // Get one Time_sheets + * const time_sheets = await prisma.time_sheets.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Time_sheets that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {time_sheetsFindUniqueOrThrowArgs} args - Arguments to find a Time_sheets + * @example + * // Get one Time_sheets + * const time_sheets = await prisma.time_sheets.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Time_sheets 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 {time_sheetsFindFirstArgs} args - Arguments to find a Time_sheets + * @example + * // Get one Time_sheets + * const time_sheets = await prisma.time_sheets.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Time_sheets 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 {time_sheetsFindFirstOrThrowArgs} args - Arguments to find a Time_sheets + * @example + * // Get one Time_sheets + * const time_sheets = await prisma.time_sheets.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Time_sheets 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 {time_sheetsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Time_sheets + * const time_sheets = await prisma.time_sheets.findMany() + * + * // Get first 10 Time_sheets + * const time_sheets = await prisma.time_sheets.findMany({ take: 10 }) + * + * // Only select the `id` + * const time_sheetsWithIdOnly = await prisma.time_sheets.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Time_sheets. + * @param {time_sheetsCreateArgs} args - Arguments to create a Time_sheets. + * @example + * // Create one Time_sheets + * const Time_sheets = await prisma.time_sheets.create({ + * data: { + * // ... data to create a Time_sheets + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Time_sheets. + * @param {time_sheetsCreateManyArgs} args - Arguments to create many Time_sheets. + * @example + * // Create many Time_sheets + * const time_sheets = await prisma.time_sheets.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Time_sheets and returns the data saved in the database. + * @param {time_sheetsCreateManyAndReturnArgs} args - Arguments to create many Time_sheets. + * @example + * // Create many Time_sheets + * const time_sheets = await prisma.time_sheets.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Time_sheets and only return the `id` + * const time_sheetsWithIdOnly = await prisma.time_sheets.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 Time_sheets. + * @param {time_sheetsDeleteArgs} args - Arguments to delete one Time_sheets. + * @example + * // Delete one Time_sheets + * const Time_sheets = await prisma.time_sheets.delete({ + * where: { + * // ... filter to delete one Time_sheets + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Time_sheets. + * @param {time_sheetsUpdateArgs} args - Arguments to update one Time_sheets. + * @example + * // Update one Time_sheets + * const time_sheets = await prisma.time_sheets.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Time_sheets. + * @param {time_sheetsDeleteManyArgs} args - Arguments to filter Time_sheets to delete. + * @example + * // Delete a few Time_sheets + * const { count } = await prisma.time_sheets.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Time_sheets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {time_sheetsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Time_sheets + * const time_sheets = await prisma.time_sheets.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Time_sheets and returns the data updated in the database. + * @param {time_sheetsUpdateManyAndReturnArgs} args - Arguments to update many Time_sheets. + * @example + * // Update many Time_sheets + * const time_sheets = await prisma.time_sheets.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Time_sheets and only return the `id` + * const time_sheetsWithIdOnly = await prisma.time_sheets.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 Time_sheets. + * @param {time_sheetsUpsertArgs} args - Arguments to update or create a Time_sheets. + * @example + * // Update or create a Time_sheets + * const time_sheets = await prisma.time_sheets.upsert({ + * create: { + * // ... data to create a Time_sheets + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Time_sheets we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheetsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Time_sheets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {time_sheetsCountArgs} args - Arguments to filter Time_sheets to count. + * @example + * // Count the number of Time_sheets + * const count = await prisma.time_sheets.count({ + * where: { + * // ... the filter for the Time_sheets 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 Time_sheets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Time_sheetsAggregateArgs} 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 Time_sheets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {time_sheetsGroupByArgs} 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 time_sheetsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: time_sheetsGroupByArgs['orderBy'] } + : { orderBy?: time_sheetsGroupByArgs['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 ? GetTime_sheetsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the time_sheets model + */ +readonly fields: time_sheetsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for time_sheets. + * 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__time_sheetsClient 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 time_sheets model + */ +export interface time_sheetsFieldRefs { + readonly id: Prisma.FieldRef<"time_sheets", 'String'> + readonly employee_id: Prisma.FieldRef<"time_sheets", 'String'> + readonly start_date: Prisma.FieldRef<"time_sheets", 'DateTime'> + readonly end_date: Prisma.FieldRef<"time_sheets", 'DateTime'> + readonly status: Prisma.FieldRef<"time_sheets", 'Boolean'> + readonly banked_hours: Prisma.FieldRef<"time_sheets", 'Float'> + readonly consumed_vacation: Prisma.FieldRef<"time_sheets", 'Float'> + readonly consumed_sick: Prisma.FieldRef<"time_sheets", 'Float'> + readonly period_id: Prisma.FieldRef<"time_sheets", 'String'> + readonly period_number: Prisma.FieldRef<"time_sheets", 'Int'> + readonly created_at: Prisma.FieldRef<"time_sheets", 'BigInt'> + readonly updated_at: Prisma.FieldRef<"time_sheets", 'BigInt'> + readonly blocked_week: Prisma.FieldRef<"time_sheets", 'Boolean'> +} + + +// Custom InputTypes +/** + * time_sheets findUnique + */ +export type time_sheetsFindUniqueArgs = { + /** + * Select specific fields to fetch from the time_sheets + */ + select?: Prisma.time_sheetsSelect | null + /** + * Omit specific fields from the time_sheets + */ + omit?: Prisma.time_sheetsOmit | null + /** + * Filter, which time_sheets to fetch. + */ + where: Prisma.time_sheetsWhereUniqueInput +} + +/** + * time_sheets findUniqueOrThrow + */ +export type time_sheetsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the time_sheets + */ + select?: Prisma.time_sheetsSelect | null + /** + * Omit specific fields from the time_sheets + */ + omit?: Prisma.time_sheetsOmit | null + /** + * Filter, which time_sheets to fetch. + */ + where: Prisma.time_sheetsWhereUniqueInput +} + +/** + * time_sheets findFirst + */ +export type time_sheetsFindFirstArgs = { + /** + * Select specific fields to fetch from the time_sheets + */ + select?: Prisma.time_sheetsSelect | null + /** + * Omit specific fields from the time_sheets + */ + omit?: Prisma.time_sheetsOmit | null + /** + * Filter, which time_sheets to fetch. + */ + where?: Prisma.time_sheetsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of time_sheets to fetch. + */ + orderBy?: Prisma.time_sheetsOrderByWithRelationInput | Prisma.time_sheetsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for time_sheets. + */ + cursor?: Prisma.time_sheetsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` time_sheets 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` time_sheets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of time_sheets. + */ + distinct?: Prisma.Time_sheetsScalarFieldEnum | Prisma.Time_sheetsScalarFieldEnum[] +} + +/** + * time_sheets findFirstOrThrow + */ +export type time_sheetsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the time_sheets + */ + select?: Prisma.time_sheetsSelect | null + /** + * Omit specific fields from the time_sheets + */ + omit?: Prisma.time_sheetsOmit | null + /** + * Filter, which time_sheets to fetch. + */ + where?: Prisma.time_sheetsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of time_sheets to fetch. + */ + orderBy?: Prisma.time_sheetsOrderByWithRelationInput | Prisma.time_sheetsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for time_sheets. + */ + cursor?: Prisma.time_sheetsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` time_sheets 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` time_sheets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of time_sheets. + */ + distinct?: Prisma.Time_sheetsScalarFieldEnum | Prisma.Time_sheetsScalarFieldEnum[] +} + +/** + * time_sheets findMany + */ +export type time_sheetsFindManyArgs = { + /** + * Select specific fields to fetch from the time_sheets + */ + select?: Prisma.time_sheetsSelect | null + /** + * Omit specific fields from the time_sheets + */ + omit?: Prisma.time_sheetsOmit | null + /** + * Filter, which time_sheets to fetch. + */ + where?: Prisma.time_sheetsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of time_sheets to fetch. + */ + orderBy?: Prisma.time_sheetsOrderByWithRelationInput | Prisma.time_sheetsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing time_sheets. + */ + cursor?: Prisma.time_sheetsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` time_sheets 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` time_sheets. + */ + skip?: number + distinct?: Prisma.Time_sheetsScalarFieldEnum | Prisma.Time_sheetsScalarFieldEnum[] +} + +/** + * time_sheets create + */ +export type time_sheetsCreateArgs = { + /** + * Select specific fields to fetch from the time_sheets + */ + select?: Prisma.time_sheetsSelect | null + /** + * Omit specific fields from the time_sheets + */ + omit?: Prisma.time_sheetsOmit | null + /** + * The data needed to create a time_sheets. + */ + data: Prisma.XOR +} + +/** + * time_sheets createMany + */ +export type time_sheetsCreateManyArgs = { + /** + * The data used to create many time_sheets. + */ + data: Prisma.time_sheetsCreateManyInput | Prisma.time_sheetsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * time_sheets createManyAndReturn + */ +export type time_sheetsCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the time_sheets + */ + select?: Prisma.time_sheetsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the time_sheets + */ + omit?: Prisma.time_sheetsOmit | null + /** + * The data used to create many time_sheets. + */ + data: Prisma.time_sheetsCreateManyInput | Prisma.time_sheetsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * time_sheets update + */ +export type time_sheetsUpdateArgs = { + /** + * Select specific fields to fetch from the time_sheets + */ + select?: Prisma.time_sheetsSelect | null + /** + * Omit specific fields from the time_sheets + */ + omit?: Prisma.time_sheetsOmit | null + /** + * The data needed to update a time_sheets. + */ + data: Prisma.XOR + /** + * Choose, which time_sheets to update. + */ + where: Prisma.time_sheetsWhereUniqueInput +} + +/** + * time_sheets updateMany + */ +export type time_sheetsUpdateManyArgs = { + /** + * The data used to update time_sheets. + */ + data: Prisma.XOR + /** + * Filter which time_sheets to update + */ + where?: Prisma.time_sheetsWhereInput + /** + * Limit how many time_sheets to update. + */ + limit?: number +} + +/** + * time_sheets updateManyAndReturn + */ +export type time_sheetsUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the time_sheets + */ + select?: Prisma.time_sheetsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the time_sheets + */ + omit?: Prisma.time_sheetsOmit | null + /** + * The data used to update time_sheets. + */ + data: Prisma.XOR + /** + * Filter which time_sheets to update + */ + where?: Prisma.time_sheetsWhereInput + /** + * Limit how many time_sheets to update. + */ + limit?: number +} + +/** + * time_sheets upsert + */ +export type time_sheetsUpsertArgs = { + /** + * Select specific fields to fetch from the time_sheets + */ + select?: Prisma.time_sheetsSelect | null + /** + * Omit specific fields from the time_sheets + */ + omit?: Prisma.time_sheetsOmit | null + /** + * The filter to search for the time_sheets to update in case it exists. + */ + where: Prisma.time_sheetsWhereUniqueInput + /** + * In case the time_sheets found by the `where` argument doesn't exist, create a new time_sheets with this data. + */ + create: Prisma.XOR + /** + * In case the time_sheets was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * time_sheets delete + */ +export type time_sheetsDeleteArgs = { + /** + * Select specific fields to fetch from the time_sheets + */ + select?: Prisma.time_sheetsSelect | null + /** + * Omit specific fields from the time_sheets + */ + omit?: Prisma.time_sheetsOmit | null + /** + * Filter which time_sheets to delete. + */ + where: Prisma.time_sheetsWhereUniqueInput +} + +/** + * time_sheets deleteMany + */ +export type time_sheetsDeleteManyArgs = { + /** + * Filter which time_sheets to delete + */ + where?: Prisma.time_sheetsWhereInput + /** + * Limit how many time_sheets to delete. + */ + limit?: number +} + +/** + * time_sheets without action + */ +export type time_sheetsDefaultArgs = { + /** + * Select specific fields to fetch from the time_sheets + */ + select?: Prisma.time_sheetsSelect | null + /** + * Omit specific fields from the time_sheets + */ + omit?: Prisma.time_sheetsOmit | null +} diff --git a/prisma/generated/legacy/models/users.ts b/prisma/generated/legacy/models/users.ts new file mode 100644 index 0000000..ac28576 --- /dev/null +++ b/prisma/generated/legacy/models/users.ts @@ -0,0 +1,1424 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `users` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model users + * + */ +export type usersModel = runtime.Types.Result.DefaultSelection + +export type AggregateUsers = { + _count: UsersCountAggregateOutputType | null + _avg: UsersAvgAggregateOutputType | null + _sum: UsersSumAggregateOutputType | null + _min: UsersMinAggregateOutputType | null + _max: UsersMaxAggregateOutputType | null +} + +export type UsersAvgAggregateOutputType = { + created_at: number | null + updated_at: number | null + last_login: number | null +} + +export type UsersSumAggregateOutputType = { + created_at: bigint | null + updated_at: bigint | null + last_login: bigint | null +} + +export type UsersMinAggregateOutputType = { + id: string | null + email: string | null + password: string | null + type: string | null + role: string | null + is_verified: boolean | null + verification_token: string | null + otp_token: string | null + refresh_token: string | null + created_at: bigint | null + updated_at: bigint | null + created_by: string | null + last_login: bigint | null +} + +export type UsersMaxAggregateOutputType = { + id: string | null + email: string | null + password: string | null + type: string | null + role: string | null + is_verified: boolean | null + verification_token: string | null + otp_token: string | null + refresh_token: string | null + created_at: bigint | null + updated_at: bigint | null + created_by: string | null + last_login: bigint | null +} + +export type UsersCountAggregateOutputType = { + id: number + email: number + password: number + type: number + role: number + is_verified: number + verification_token: number + otp_token: number + refresh_token: number + created_at: number + updated_at: number + created_by: number + last_login: number + _all: number +} + + +export type UsersAvgAggregateInputType = { + created_at?: true + updated_at?: true + last_login?: true +} + +export type UsersSumAggregateInputType = { + created_at?: true + updated_at?: true + last_login?: true +} + +export type UsersMinAggregateInputType = { + id?: true + email?: true + password?: true + type?: true + role?: true + is_verified?: true + verification_token?: true + otp_token?: true + refresh_token?: true + created_at?: true + updated_at?: true + created_by?: true + last_login?: true +} + +export type UsersMaxAggregateInputType = { + id?: true + email?: true + password?: true + type?: true + role?: true + is_verified?: true + verification_token?: true + otp_token?: true + refresh_token?: true + created_at?: true + updated_at?: true + created_by?: true + last_login?: true +} + +export type UsersCountAggregateInputType = { + id?: true + email?: true + password?: true + type?: true + role?: true + is_verified?: true + verification_token?: true + otp_token?: true + refresh_token?: true + created_at?: true + updated_at?: true + created_by?: true + last_login?: true + _all?: true +} + +export type UsersAggregateArgs = { + /** + * Filter which users to aggregate. + */ + where?: Prisma.usersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of users to fetch. + */ + orderBy?: Prisma.usersOrderByWithRelationInput | Prisma.usersOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.usersWhereUniqueInput + /** + * {@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 | UsersCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: UsersAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: UsersSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: UsersMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: UsersMaxAggregateInputType +} + +export type GetUsersAggregateType = { + [P in keyof T & keyof AggregateUsers]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type usersGroupByArgs = { + where?: Prisma.usersWhereInput + orderBy?: Prisma.usersOrderByWithAggregationInput | Prisma.usersOrderByWithAggregationInput[] + by: Prisma.UsersScalarFieldEnum[] | Prisma.UsersScalarFieldEnum + having?: Prisma.usersScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: UsersCountAggregateInputType | true + _avg?: UsersAvgAggregateInputType + _sum?: UsersSumAggregateInputType + _min?: UsersMinAggregateInputType + _max?: UsersMaxAggregateInputType +} + +export type UsersGroupByOutputType = { + id: string + email: string + password: string + type: string + role: string + is_verified: boolean | null + verification_token: string | null + otp_token: string | null + refresh_token: string | null + created_at: bigint | null + updated_at: bigint | null + created_by: string + last_login: bigint + _count: UsersCountAggregateOutputType | null + _avg: UsersAvgAggregateOutputType | null + _sum: UsersSumAggregateOutputType | null + _min: UsersMinAggregateOutputType | null + _max: UsersMaxAggregateOutputType | null +} + +type GetUsersGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof UsersGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type usersWhereInput = { + AND?: Prisma.usersWhereInput | Prisma.usersWhereInput[] + OR?: Prisma.usersWhereInput[] + NOT?: Prisma.usersWhereInput | Prisma.usersWhereInput[] + id?: Prisma.StringFilter<"users"> | string + email?: Prisma.StringFilter<"users"> | string + password?: Prisma.StringFilter<"users"> | string + type?: Prisma.StringFilter<"users"> | string + role?: Prisma.StringFilter<"users"> | string + is_verified?: Prisma.BoolNullableFilter<"users"> | boolean | null + verification_token?: Prisma.StringNullableFilter<"users"> | string | null + otp_token?: Prisma.StringNullableFilter<"users"> | string | null + refresh_token?: Prisma.StringNullableFilter<"users"> | string | null + created_at?: Prisma.BigIntNullableFilter<"users"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"users"> | bigint | number | null + created_by?: Prisma.StringFilter<"users"> | string + last_login?: Prisma.BigIntFilter<"users"> | bigint | number +} + +export type usersOrderByWithRelationInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + password?: Prisma.SortOrder + type?: Prisma.SortOrder + role?: Prisma.SortOrder + is_verified?: Prisma.SortOrderInput | Prisma.SortOrder + verification_token?: Prisma.SortOrderInput | Prisma.SortOrder + otp_token?: Prisma.SortOrderInput | Prisma.SortOrder + refresh_token?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + created_by?: Prisma.SortOrder + last_login?: Prisma.SortOrder +} + +export type usersWhereUniqueInput = Prisma.AtLeast<{ + id?: string + email?: string + AND?: Prisma.usersWhereInput | Prisma.usersWhereInput[] + OR?: Prisma.usersWhereInput[] + NOT?: Prisma.usersWhereInput | Prisma.usersWhereInput[] + password?: Prisma.StringFilter<"users"> | string + type?: Prisma.StringFilter<"users"> | string + role?: Prisma.StringFilter<"users"> | string + is_verified?: Prisma.BoolNullableFilter<"users"> | boolean | null + verification_token?: Prisma.StringNullableFilter<"users"> | string | null + otp_token?: Prisma.StringNullableFilter<"users"> | string | null + refresh_token?: Prisma.StringNullableFilter<"users"> | string | null + created_at?: Prisma.BigIntNullableFilter<"users"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"users"> | bigint | number | null + created_by?: Prisma.StringFilter<"users"> | string + last_login?: Prisma.BigIntFilter<"users"> | bigint | number +}, "id" | "email"> + +export type usersOrderByWithAggregationInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + password?: Prisma.SortOrder + type?: Prisma.SortOrder + role?: Prisma.SortOrder + is_verified?: Prisma.SortOrderInput | Prisma.SortOrder + verification_token?: Prisma.SortOrderInput | Prisma.SortOrder + otp_token?: Prisma.SortOrderInput | Prisma.SortOrder + refresh_token?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + created_by?: Prisma.SortOrder + last_login?: Prisma.SortOrder + _count?: Prisma.usersCountOrderByAggregateInput + _avg?: Prisma.usersAvgOrderByAggregateInput + _max?: Prisma.usersMaxOrderByAggregateInput + _min?: Prisma.usersMinOrderByAggregateInput + _sum?: Prisma.usersSumOrderByAggregateInput +} + +export type usersScalarWhereWithAggregatesInput = { + AND?: Prisma.usersScalarWhereWithAggregatesInput | Prisma.usersScalarWhereWithAggregatesInput[] + OR?: Prisma.usersScalarWhereWithAggregatesInput[] + NOT?: Prisma.usersScalarWhereWithAggregatesInput | Prisma.usersScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"users"> | string + email?: Prisma.StringWithAggregatesFilter<"users"> | string + password?: Prisma.StringWithAggregatesFilter<"users"> | string + type?: Prisma.StringWithAggregatesFilter<"users"> | string + role?: Prisma.StringWithAggregatesFilter<"users"> | string + is_verified?: Prisma.BoolNullableWithAggregatesFilter<"users"> | boolean | null + verification_token?: Prisma.StringNullableWithAggregatesFilter<"users"> | string | null + otp_token?: Prisma.StringNullableWithAggregatesFilter<"users"> | string | null + refresh_token?: Prisma.StringNullableWithAggregatesFilter<"users"> | string | null + created_at?: Prisma.BigIntNullableWithAggregatesFilter<"users"> | bigint | number | null + updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"users"> | bigint | number | null + created_by?: Prisma.StringWithAggregatesFilter<"users"> | string + last_login?: Prisma.BigIntWithAggregatesFilter<"users"> | bigint | number +} + +export type usersCreateInput = { + id: string + email: string + password: string + type: string + role: string + is_verified?: boolean | null + verification_token?: string | null + otp_token?: string | null + refresh_token?: string | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + created_by: string + last_login: bigint | number +} + +export type usersUncheckedCreateInput = { + id: string + email: string + password: string + type: string + role: string + is_verified?: boolean | null + verification_token?: string | null + otp_token?: string | null + refresh_token?: string | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + created_by: string + last_login: bigint | number +} + +export type usersUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.StringFieldUpdateOperationsInput | string + is_verified?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + verification_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + otp_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.StringFieldUpdateOperationsInput | string + last_login?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type usersUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.StringFieldUpdateOperationsInput | string + is_verified?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + verification_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + otp_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.StringFieldUpdateOperationsInput | string + last_login?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type usersCreateManyInput = { + id: string + email: string + password: string + type: string + role: string + is_verified?: boolean | null + verification_token?: string | null + otp_token?: string | null + refresh_token?: string | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + created_by: string + last_login: bigint | number +} + +export type usersUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.StringFieldUpdateOperationsInput | string + is_verified?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + verification_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + otp_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.StringFieldUpdateOperationsInput | string + last_login?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type usersUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.StringFieldUpdateOperationsInput | string + role?: Prisma.StringFieldUpdateOperationsInput | string + is_verified?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + verification_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + otp_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + created_by?: Prisma.StringFieldUpdateOperationsInput | string + last_login?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type usersCountOrderByAggregateInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + password?: Prisma.SortOrder + type?: Prisma.SortOrder + role?: Prisma.SortOrder + is_verified?: Prisma.SortOrder + verification_token?: Prisma.SortOrder + otp_token?: Prisma.SortOrder + refresh_token?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + created_by?: Prisma.SortOrder + last_login?: Prisma.SortOrder +} + +export type usersAvgOrderByAggregateInput = { + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + last_login?: Prisma.SortOrder +} + +export type usersMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + password?: Prisma.SortOrder + type?: Prisma.SortOrder + role?: Prisma.SortOrder + is_verified?: Prisma.SortOrder + verification_token?: Prisma.SortOrder + otp_token?: Prisma.SortOrder + refresh_token?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + created_by?: Prisma.SortOrder + last_login?: Prisma.SortOrder +} + +export type usersMinOrderByAggregateInput = { + id?: Prisma.SortOrder + email?: Prisma.SortOrder + password?: Prisma.SortOrder + type?: Prisma.SortOrder + role?: Prisma.SortOrder + is_verified?: Prisma.SortOrder + verification_token?: Prisma.SortOrder + otp_token?: Prisma.SortOrder + refresh_token?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + created_by?: Prisma.SortOrder + last_login?: Prisma.SortOrder +} + +export type usersSumOrderByAggregateInput = { + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + last_login?: Prisma.SortOrder +} + + + +export type usersSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + email?: boolean + password?: boolean + type?: boolean + role?: boolean + is_verified?: boolean + verification_token?: boolean + otp_token?: boolean + refresh_token?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean + last_login?: boolean +}, ExtArgs["result"]["users"]> + +export type usersSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + email?: boolean + password?: boolean + type?: boolean + role?: boolean + is_verified?: boolean + verification_token?: boolean + otp_token?: boolean + refresh_token?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean + last_login?: boolean +}, ExtArgs["result"]["users"]> + +export type usersSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + email?: boolean + password?: boolean + type?: boolean + role?: boolean + is_verified?: boolean + verification_token?: boolean + otp_token?: boolean + refresh_token?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean + last_login?: boolean +}, ExtArgs["result"]["users"]> + +export type usersSelectScalar = { + id?: boolean + email?: boolean + password?: boolean + type?: boolean + role?: boolean + is_verified?: boolean + verification_token?: boolean + otp_token?: boolean + refresh_token?: boolean + created_at?: boolean + updated_at?: boolean + created_by?: boolean + last_login?: boolean +} + +export type usersOmit = runtime.Types.Extensions.GetOmit<"id" | "email" | "password" | "type" | "role" | "is_verified" | "verification_token" | "otp_token" | "refresh_token" | "created_at" | "updated_at" | "created_by" | "last_login", ExtArgs["result"]["users"]> + +export type $usersPayload = { + name: "users" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + email: string + password: string + type: string + role: string + is_verified: boolean | null + verification_token: string | null + otp_token: string | null + refresh_token: string | null + created_at: bigint | null + updated_at: bigint | null + created_by: string + last_login: bigint + }, ExtArgs["result"]["users"]> + composites: {} +} + +export type usersGetPayload = runtime.Types.Result.GetResult + +export type usersCountArgs = + Omit & { + select?: UsersCountAggregateInputType | true + } + +export interface usersDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['users'], meta: { name: 'users' } } + /** + * Find zero or one Users that matches the filter. + * @param {usersFindUniqueArgs} args - Arguments to find a Users + * @example + * // Get one Users + * const users = await prisma.users.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__usersClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Users that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {usersFindUniqueOrThrowArgs} args - Arguments to find a Users + * @example + * // Get one Users + * const users = await prisma.users.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__usersClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first 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 {usersFindFirstArgs} args - Arguments to find a Users + * @example + * // Get one Users + * const users = await prisma.users.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__usersClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Users 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 {usersFindFirstOrThrowArgs} args - Arguments to find a Users + * @example + * // Get one Users + * const users = await prisma.users.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__usersClient, 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 {usersFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Users + * const users = await prisma.users.findMany() + * + * // Get first 10 Users + * const users = await prisma.users.findMany({ take: 10 }) + * + * // Only select the `id` + * const usersWithIdOnly = await prisma.users.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Users. + * @param {usersCreateArgs} args - Arguments to create a Users. + * @example + * // Create one Users + * const Users = await prisma.users.create({ + * data: { + * // ... data to create a Users + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__usersClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Users. + * @param {usersCreateManyArgs} args - Arguments to create many Users. + * @example + * // Create many Users + * const users = await prisma.users.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Users and returns the data saved in the database. + * @param {usersCreateManyAndReturnArgs} args - Arguments to create many Users. + * @example + * // Create many Users + * const users = await prisma.users.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Users and only return the `id` + * const usersWithIdOnly = await prisma.users.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 Users. + * @param {usersDeleteArgs} args - Arguments to delete one Users. + * @example + * // Delete one Users + * const Users = await prisma.users.delete({ + * where: { + * // ... filter to delete one Users + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__usersClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Users. + * @param {usersUpdateArgs} args - Arguments to update one Users. + * @example + * // Update one Users + * const users = await prisma.users.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__usersClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Users. + * @param {usersDeleteManyArgs} args - Arguments to filter Users to delete. + * @example + * // Delete a few Users + * const { count } = await prisma.users.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 {usersUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Users + * const users = await prisma.users.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 {usersUpdateManyAndReturnArgs} args - Arguments to update many Users. + * @example + * // Update many Users + * const users = await prisma.users.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Users and only return the `id` + * const usersWithIdOnly = await prisma.users.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 Users. + * @param {usersUpsertArgs} args - Arguments to update or create a Users. + * @example + * // Update or create a Users + * const users = await prisma.users.upsert({ + * create: { + * // ... data to create a Users + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Users we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__usersClient, 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 {usersCountArgs} args - Arguments to filter Users to count. + * @example + * // Count the number of Users + * const count = await prisma.users.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 Users. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UsersAggregateArgs} 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 Users. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {usersGroupByArgs} 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 usersGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: usersGroupByArgs['orderBy'] } + : { orderBy?: usersGroupByArgs['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 ? GetUsersGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the users model + */ +readonly fields: usersFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for users. + * 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__usersClient 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 users model + */ +export interface usersFieldRefs { + readonly id: Prisma.FieldRef<"users", 'String'> + readonly email: Prisma.FieldRef<"users", 'String'> + readonly password: Prisma.FieldRef<"users", 'String'> + readonly type: Prisma.FieldRef<"users", 'String'> + readonly role: Prisma.FieldRef<"users", 'String'> + readonly is_verified: Prisma.FieldRef<"users", 'Boolean'> + readonly verification_token: Prisma.FieldRef<"users", 'String'> + readonly otp_token: Prisma.FieldRef<"users", 'String'> + readonly refresh_token: Prisma.FieldRef<"users", 'String'> + readonly created_at: Prisma.FieldRef<"users", 'BigInt'> + readonly updated_at: Prisma.FieldRef<"users", 'BigInt'> + readonly created_by: Prisma.FieldRef<"users", 'String'> + readonly last_login: Prisma.FieldRef<"users", 'BigInt'> +} + + +// Custom InputTypes +/** + * users findUnique + */ +export type usersFindUniqueArgs = { + /** + * Select specific fields to fetch from the users + */ + select?: Prisma.usersSelect | null + /** + * Omit specific fields from the users + */ + omit?: Prisma.usersOmit | null + /** + * Filter, which users to fetch. + */ + where: Prisma.usersWhereUniqueInput +} + +/** + * users findUniqueOrThrow + */ +export type usersFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the users + */ + select?: Prisma.usersSelect | null + /** + * Omit specific fields from the users + */ + omit?: Prisma.usersOmit | null + /** + * Filter, which users to fetch. + */ + where: Prisma.usersWhereUniqueInput +} + +/** + * users findFirst + */ +export type usersFindFirstArgs = { + /** + * Select specific fields to fetch from the users + */ + select?: Prisma.usersSelect | null + /** + * Omit specific fields from the users + */ + omit?: Prisma.usersOmit | null + /** + * Filter, which users to fetch. + */ + where?: Prisma.usersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of users to fetch. + */ + orderBy?: Prisma.usersOrderByWithRelationInput | Prisma.usersOrderByWithRelationInput[] + /** + * {@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.usersWhereUniqueInput + /** + * {@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.UsersScalarFieldEnum | Prisma.UsersScalarFieldEnum[] +} + +/** + * users findFirstOrThrow + */ +export type usersFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the users + */ + select?: Prisma.usersSelect | null + /** + * Omit specific fields from the users + */ + omit?: Prisma.usersOmit | null + /** + * Filter, which users to fetch. + */ + where?: Prisma.usersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of users to fetch. + */ + orderBy?: Prisma.usersOrderByWithRelationInput | Prisma.usersOrderByWithRelationInput[] + /** + * {@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.usersWhereUniqueInput + /** + * {@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.UsersScalarFieldEnum | Prisma.UsersScalarFieldEnum[] +} + +/** + * users findMany + */ +export type usersFindManyArgs = { + /** + * Select specific fields to fetch from the users + */ + select?: Prisma.usersSelect | null + /** + * Omit specific fields from the users + */ + omit?: Prisma.usersOmit | null + /** + * Filter, which users to fetch. + */ + where?: Prisma.usersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of users to fetch. + */ + orderBy?: Prisma.usersOrderByWithRelationInput | Prisma.usersOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing users. + */ + cursor?: Prisma.usersWhereUniqueInput + /** + * {@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.UsersScalarFieldEnum | Prisma.UsersScalarFieldEnum[] +} + +/** + * users create + */ +export type usersCreateArgs = { + /** + * Select specific fields to fetch from the users + */ + select?: Prisma.usersSelect | null + /** + * Omit specific fields from the users + */ + omit?: Prisma.usersOmit | null + /** + * The data needed to create a users. + */ + data: Prisma.XOR +} + +/** + * users createMany + */ +export type usersCreateManyArgs = { + /** + * The data used to create many users. + */ + data: Prisma.usersCreateManyInput | Prisma.usersCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * users createManyAndReturn + */ +export type usersCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the users + */ + select?: Prisma.usersSelectCreateManyAndReturn | null + /** + * Omit specific fields from the users + */ + omit?: Prisma.usersOmit | null + /** + * The data used to create many users. + */ + data: Prisma.usersCreateManyInput | Prisma.usersCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * users update + */ +export type usersUpdateArgs = { + /** + * Select specific fields to fetch from the users + */ + select?: Prisma.usersSelect | null + /** + * Omit specific fields from the users + */ + omit?: Prisma.usersOmit | null + /** + * The data needed to update a users. + */ + data: Prisma.XOR + /** + * Choose, which users to update. + */ + where: Prisma.usersWhereUniqueInput +} + +/** + * users updateMany + */ +export type usersUpdateManyArgs = { + /** + * The data used to update users. + */ + data: Prisma.XOR + /** + * Filter which users to update + */ + where?: Prisma.usersWhereInput + /** + * Limit how many users to update. + */ + limit?: number +} + +/** + * users updateManyAndReturn + */ +export type usersUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the users + */ + select?: Prisma.usersSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the users + */ + omit?: Prisma.usersOmit | null + /** + * The data used to update users. + */ + data: Prisma.XOR + /** + * Filter which users to update + */ + where?: Prisma.usersWhereInput + /** + * Limit how many users to update. + */ + limit?: number +} + +/** + * users upsert + */ +export type usersUpsertArgs = { + /** + * Select specific fields to fetch from the users + */ + select?: Prisma.usersSelect | null + /** + * Omit specific fields from the users + */ + omit?: Prisma.usersOmit | null + /** + * The filter to search for the users to update in case it exists. + */ + where: Prisma.usersWhereUniqueInput + /** + * In case the users found by the `where` argument doesn't exist, create a new users with this data. + */ + create: Prisma.XOR + /** + * In case the users was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * users delete + */ +export type usersDeleteArgs = { + /** + * Select specific fields to fetch from the users + */ + select?: Prisma.usersSelect | null + /** + * Omit specific fields from the users + */ + omit?: Prisma.usersOmit | null + /** + * Filter which users to delete. + */ + where: Prisma.usersWhereUniqueInput +} + +/** + * users deleteMany + */ +export type usersDeleteManyArgs = { + /** + * Filter which users to delete + */ + where?: Prisma.usersWhereInput + /** + * Limit how many users to delete. + */ + limit?: number +} + +/** + * users without action + */ +export type usersDefaultArgs = { + /** + * Select specific fields to fetch from the users + */ + select?: Prisma.usersSelect | null + /** + * Omit specific fields from the users + */ + omit?: Prisma.usersOmit | null +} diff --git a/prisma/generated/legacy/models/vacation_leave.ts b/prisma/generated/legacy/models/vacation_leave.ts new file mode 100644 index 0000000..74e0dfa --- /dev/null +++ b/prisma/generated/legacy/models/vacation_leave.ts @@ -0,0 +1,1336 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `vacation_leave` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model vacation_leave + * + */ +export type vacation_leaveModel = runtime.Types.Result.DefaultSelection + +export type AggregateVacation_leave = { + _count: Vacation_leaveCountAggregateOutputType | null + _avg: Vacation_leaveAvgAggregateOutputType | null + _sum: Vacation_leaveSumAggregateOutputType | null + _min: Vacation_leaveMinAggregateOutputType | null + _max: Vacation_leaveMaxAggregateOutputType | null +} + +export type Vacation_leaveAvgAggregateOutputType = { + accumulated: number | null + consumed: number | null + created_at: number | null + updated_at: number | null + start_year: number | null + end_year: number | null + max_hours_per_year: number | null +} + +export type Vacation_leaveSumAggregateOutputType = { + accumulated: number | null + consumed: number | null + created_at: bigint | null + updated_at: bigint | null + start_year: number | null + end_year: number | null + max_hours_per_year: number | null +} + +export type Vacation_leaveMinAggregateOutputType = { + id: string | null + employee_id: string | null + accumulated: number | null + consumed: number | null + created_at: bigint | null + updated_at: bigint | null + start_year: number | null + end_year: number | null + max_hours_per_year: number | null +} + +export type Vacation_leaveMaxAggregateOutputType = { + id: string | null + employee_id: string | null + accumulated: number | null + consumed: number | null + created_at: bigint | null + updated_at: bigint | null + start_year: number | null + end_year: number | null + max_hours_per_year: number | null +} + +export type Vacation_leaveCountAggregateOutputType = { + id: number + employee_id: number + accumulated: number + consumed: number + created_at: number + updated_at: number + start_year: number + end_year: number + max_hours_per_year: number + _all: number +} + + +export type Vacation_leaveAvgAggregateInputType = { + accumulated?: true + consumed?: true + created_at?: true + updated_at?: true + start_year?: true + end_year?: true + max_hours_per_year?: true +} + +export type Vacation_leaveSumAggregateInputType = { + accumulated?: true + consumed?: true + created_at?: true + updated_at?: true + start_year?: true + end_year?: true + max_hours_per_year?: true +} + +export type Vacation_leaveMinAggregateInputType = { + id?: true + employee_id?: true + accumulated?: true + consumed?: true + created_at?: true + updated_at?: true + start_year?: true + end_year?: true + max_hours_per_year?: true +} + +export type Vacation_leaveMaxAggregateInputType = { + id?: true + employee_id?: true + accumulated?: true + consumed?: true + created_at?: true + updated_at?: true + start_year?: true + end_year?: true + max_hours_per_year?: true +} + +export type Vacation_leaveCountAggregateInputType = { + id?: true + employee_id?: true + accumulated?: true + consumed?: true + created_at?: true + updated_at?: true + start_year?: true + end_year?: true + max_hours_per_year?: true + _all?: true +} + +export type Vacation_leaveAggregateArgs = { + /** + * Filter which vacation_leave to aggregate. + */ + where?: Prisma.vacation_leaveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of vacation_leaves to fetch. + */ + orderBy?: Prisma.vacation_leaveOrderByWithRelationInput | Prisma.vacation_leaveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.vacation_leaveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` vacation_leaves 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` vacation_leaves. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned vacation_leaves + **/ + _count?: true | Vacation_leaveCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Vacation_leaveAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Vacation_leaveSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Vacation_leaveMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Vacation_leaveMaxAggregateInputType +} + +export type GetVacation_leaveAggregateType = { + [P in keyof T & keyof AggregateVacation_leave]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type vacation_leaveGroupByArgs = { + where?: Prisma.vacation_leaveWhereInput + orderBy?: Prisma.vacation_leaveOrderByWithAggregationInput | Prisma.vacation_leaveOrderByWithAggregationInput[] + by: Prisma.Vacation_leaveScalarFieldEnum[] | Prisma.Vacation_leaveScalarFieldEnum + having?: Prisma.vacation_leaveScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Vacation_leaveCountAggregateInputType | true + _avg?: Vacation_leaveAvgAggregateInputType + _sum?: Vacation_leaveSumAggregateInputType + _min?: Vacation_leaveMinAggregateInputType + _max?: Vacation_leaveMaxAggregateInputType +} + +export type Vacation_leaveGroupByOutputType = { + id: string + employee_id: string | null + accumulated: number | null + consumed: number | null + created_at: bigint | null + updated_at: bigint | null + start_year: number | null + end_year: number | null + max_hours_per_year: number | null + _count: Vacation_leaveCountAggregateOutputType | null + _avg: Vacation_leaveAvgAggregateOutputType | null + _sum: Vacation_leaveSumAggregateOutputType | null + _min: Vacation_leaveMinAggregateOutputType | null + _max: Vacation_leaveMaxAggregateOutputType | null +} + +type GetVacation_leaveGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Vacation_leaveGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type vacation_leaveWhereInput = { + AND?: Prisma.vacation_leaveWhereInput | Prisma.vacation_leaveWhereInput[] + OR?: Prisma.vacation_leaveWhereInput[] + NOT?: Prisma.vacation_leaveWhereInput | Prisma.vacation_leaveWhereInput[] + id?: Prisma.UuidFilter<"vacation_leave"> | string + employee_id?: Prisma.StringNullableFilter<"vacation_leave"> | string | null + accumulated?: Prisma.FloatNullableFilter<"vacation_leave"> | number | null + consumed?: Prisma.FloatNullableFilter<"vacation_leave"> | number | null + created_at?: Prisma.BigIntNullableFilter<"vacation_leave"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"vacation_leave"> | bigint | number | null + start_year?: Prisma.IntNullableFilter<"vacation_leave"> | number | null + end_year?: Prisma.IntNullableFilter<"vacation_leave"> | number | null + max_hours_per_year?: Prisma.FloatNullableFilter<"vacation_leave"> | number | null +} + +export type vacation_leaveOrderByWithRelationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrderInput | Prisma.SortOrder + accumulated?: Prisma.SortOrderInput | Prisma.SortOrder + consumed?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + start_year?: Prisma.SortOrderInput | Prisma.SortOrder + end_year?: Prisma.SortOrderInput | Prisma.SortOrder + max_hours_per_year?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type vacation_leaveWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: Prisma.vacation_leaveWhereInput | Prisma.vacation_leaveWhereInput[] + OR?: Prisma.vacation_leaveWhereInput[] + NOT?: Prisma.vacation_leaveWhereInput | Prisma.vacation_leaveWhereInput[] + employee_id?: Prisma.StringNullableFilter<"vacation_leave"> | string | null + accumulated?: Prisma.FloatNullableFilter<"vacation_leave"> | number | null + consumed?: Prisma.FloatNullableFilter<"vacation_leave"> | number | null + created_at?: Prisma.BigIntNullableFilter<"vacation_leave"> | bigint | number | null + updated_at?: Prisma.BigIntNullableFilter<"vacation_leave"> | bigint | number | null + start_year?: Prisma.IntNullableFilter<"vacation_leave"> | number | null + end_year?: Prisma.IntNullableFilter<"vacation_leave"> | number | null + max_hours_per_year?: Prisma.FloatNullableFilter<"vacation_leave"> | number | null +}, "id"> + +export type vacation_leaveOrderByWithAggregationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrderInput | Prisma.SortOrder + accumulated?: Prisma.SortOrderInput | Prisma.SortOrder + consumed?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrderInput | Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + start_year?: Prisma.SortOrderInput | Prisma.SortOrder + end_year?: Prisma.SortOrderInput | Prisma.SortOrder + max_hours_per_year?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.vacation_leaveCountOrderByAggregateInput + _avg?: Prisma.vacation_leaveAvgOrderByAggregateInput + _max?: Prisma.vacation_leaveMaxOrderByAggregateInput + _min?: Prisma.vacation_leaveMinOrderByAggregateInput + _sum?: Prisma.vacation_leaveSumOrderByAggregateInput +} + +export type vacation_leaveScalarWhereWithAggregatesInput = { + AND?: Prisma.vacation_leaveScalarWhereWithAggregatesInput | Prisma.vacation_leaveScalarWhereWithAggregatesInput[] + OR?: Prisma.vacation_leaveScalarWhereWithAggregatesInput[] + NOT?: Prisma.vacation_leaveScalarWhereWithAggregatesInput | Prisma.vacation_leaveScalarWhereWithAggregatesInput[] + id?: Prisma.UuidWithAggregatesFilter<"vacation_leave"> | string + employee_id?: Prisma.StringNullableWithAggregatesFilter<"vacation_leave"> | string | null + accumulated?: Prisma.FloatNullableWithAggregatesFilter<"vacation_leave"> | number | null + consumed?: Prisma.FloatNullableWithAggregatesFilter<"vacation_leave"> | number | null + created_at?: Prisma.BigIntNullableWithAggregatesFilter<"vacation_leave"> | bigint | number | null + updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"vacation_leave"> | bigint | number | null + start_year?: Prisma.IntNullableWithAggregatesFilter<"vacation_leave"> | number | null + end_year?: Prisma.IntNullableWithAggregatesFilter<"vacation_leave"> | number | null + max_hours_per_year?: Prisma.FloatNullableWithAggregatesFilter<"vacation_leave"> | number | null +} + +export type vacation_leaveCreateInput = { + id: string + employee_id?: string | null + accumulated?: number | null + consumed?: number | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + start_year?: number | null + end_year?: number | null + max_hours_per_year?: number | null +} + +export type vacation_leaveUncheckedCreateInput = { + id: string + employee_id?: string | null + accumulated?: number | null + consumed?: number | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + start_year?: number | null + end_year?: number | null + max_hours_per_year?: number | null +} + +export type vacation_leaveUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accumulated?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + start_year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + end_year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + max_hours_per_year?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type vacation_leaveUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accumulated?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + start_year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + end_year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + max_hours_per_year?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type vacation_leaveCreateManyInput = { + id: string + employee_id?: string | null + accumulated?: number | null + consumed?: number | null + created_at?: bigint | number | null + updated_at?: bigint | number | null + start_year?: number | null + end_year?: number | null + max_hours_per_year?: number | null +} + +export type vacation_leaveUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accumulated?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + start_year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + end_year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + max_hours_per_year?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type vacation_leaveUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + accumulated?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + consumed?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + start_year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + end_year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + max_hours_per_year?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type vacation_leaveCountOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + accumulated?: Prisma.SortOrder + consumed?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + start_year?: Prisma.SortOrder + end_year?: Prisma.SortOrder + max_hours_per_year?: Prisma.SortOrder +} + +export type vacation_leaveAvgOrderByAggregateInput = { + accumulated?: Prisma.SortOrder + consumed?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + start_year?: Prisma.SortOrder + end_year?: Prisma.SortOrder + max_hours_per_year?: Prisma.SortOrder +} + +export type vacation_leaveMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + accumulated?: Prisma.SortOrder + consumed?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + start_year?: Prisma.SortOrder + end_year?: Prisma.SortOrder + max_hours_per_year?: Prisma.SortOrder +} + +export type vacation_leaveMinOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + accumulated?: Prisma.SortOrder + consumed?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + start_year?: Prisma.SortOrder + end_year?: Prisma.SortOrder + max_hours_per_year?: Prisma.SortOrder +} + +export type vacation_leaveSumOrderByAggregateInput = { + accumulated?: Prisma.SortOrder + consumed?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + start_year?: Prisma.SortOrder + end_year?: Prisma.SortOrder + max_hours_per_year?: Prisma.SortOrder +} + + + +export type vacation_leaveSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + accumulated?: boolean + consumed?: boolean + created_at?: boolean + updated_at?: boolean + start_year?: boolean + end_year?: boolean + max_hours_per_year?: boolean +}, ExtArgs["result"]["vacation_leave"]> + +export type vacation_leaveSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + accumulated?: boolean + consumed?: boolean + created_at?: boolean + updated_at?: boolean + start_year?: boolean + end_year?: boolean + max_hours_per_year?: boolean +}, ExtArgs["result"]["vacation_leave"]> + +export type vacation_leaveSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + accumulated?: boolean + consumed?: boolean + created_at?: boolean + updated_at?: boolean + start_year?: boolean + end_year?: boolean + max_hours_per_year?: boolean +}, ExtArgs["result"]["vacation_leave"]> + +export type vacation_leaveSelectScalar = { + id?: boolean + employee_id?: boolean + accumulated?: boolean + consumed?: boolean + created_at?: boolean + updated_at?: boolean + start_year?: boolean + end_year?: boolean + max_hours_per_year?: boolean +} + +export type vacation_leaveOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "accumulated" | "consumed" | "created_at" | "updated_at" | "start_year" | "end_year" | "max_hours_per_year", ExtArgs["result"]["vacation_leave"]> + +export type $vacation_leavePayload = { + name: "vacation_leave" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + employee_id: string | null + accumulated: number | null + consumed: number | null + created_at: bigint | null + updated_at: bigint | null + start_year: number | null + end_year: number | null + max_hours_per_year: number | null + }, ExtArgs["result"]["vacation_leave"]> + composites: {} +} + +export type vacation_leaveGetPayload = runtime.Types.Result.GetResult + +export type vacation_leaveCountArgs = + Omit & { + select?: Vacation_leaveCountAggregateInputType | true + } + +export interface vacation_leaveDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['vacation_leave'], meta: { name: 'vacation_leave' } } + /** + * Find zero or one Vacation_leave that matches the filter. + * @param {vacation_leaveFindUniqueArgs} args - Arguments to find a Vacation_leave + * @example + * // Get one Vacation_leave + * const vacation_leave = await prisma.vacation_leave.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__vacation_leaveClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Vacation_leave that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {vacation_leaveFindUniqueOrThrowArgs} args - Arguments to find a Vacation_leave + * @example + * // Get one Vacation_leave + * const vacation_leave = await prisma.vacation_leave.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__vacation_leaveClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Vacation_leave 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 {vacation_leaveFindFirstArgs} args - Arguments to find a Vacation_leave + * @example + * // Get one Vacation_leave + * const vacation_leave = await prisma.vacation_leave.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__vacation_leaveClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Vacation_leave 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 {vacation_leaveFindFirstOrThrowArgs} args - Arguments to find a Vacation_leave + * @example + * // Get one Vacation_leave + * const vacation_leave = await prisma.vacation_leave.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__vacation_leaveClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Vacation_leaves 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 {vacation_leaveFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Vacation_leaves + * const vacation_leaves = await prisma.vacation_leave.findMany() + * + * // Get first 10 Vacation_leaves + * const vacation_leaves = await prisma.vacation_leave.findMany({ take: 10 }) + * + * // Only select the `id` + * const vacation_leaveWithIdOnly = await prisma.vacation_leave.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Vacation_leave. + * @param {vacation_leaveCreateArgs} args - Arguments to create a Vacation_leave. + * @example + * // Create one Vacation_leave + * const Vacation_leave = await prisma.vacation_leave.create({ + * data: { + * // ... data to create a Vacation_leave + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__vacation_leaveClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Vacation_leaves. + * @param {vacation_leaveCreateManyArgs} args - Arguments to create many Vacation_leaves. + * @example + * // Create many Vacation_leaves + * const vacation_leave = await prisma.vacation_leave.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Vacation_leaves and returns the data saved in the database. + * @param {vacation_leaveCreateManyAndReturnArgs} args - Arguments to create many Vacation_leaves. + * @example + * // Create many Vacation_leaves + * const vacation_leave = await prisma.vacation_leave.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Vacation_leaves and only return the `id` + * const vacation_leaveWithIdOnly = await prisma.vacation_leave.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 Vacation_leave. + * @param {vacation_leaveDeleteArgs} args - Arguments to delete one Vacation_leave. + * @example + * // Delete one Vacation_leave + * const Vacation_leave = await prisma.vacation_leave.delete({ + * where: { + * // ... filter to delete one Vacation_leave + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__vacation_leaveClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Vacation_leave. + * @param {vacation_leaveUpdateArgs} args - Arguments to update one Vacation_leave. + * @example + * // Update one Vacation_leave + * const vacation_leave = await prisma.vacation_leave.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__vacation_leaveClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Vacation_leaves. + * @param {vacation_leaveDeleteManyArgs} args - Arguments to filter Vacation_leaves to delete. + * @example + * // Delete a few Vacation_leaves + * const { count } = await prisma.vacation_leave.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Vacation_leaves. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {vacation_leaveUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Vacation_leaves + * const vacation_leave = await prisma.vacation_leave.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Vacation_leaves and returns the data updated in the database. + * @param {vacation_leaveUpdateManyAndReturnArgs} args - Arguments to update many Vacation_leaves. + * @example + * // Update many Vacation_leaves + * const vacation_leave = await prisma.vacation_leave.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Vacation_leaves and only return the `id` + * const vacation_leaveWithIdOnly = await prisma.vacation_leave.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 Vacation_leave. + * @param {vacation_leaveUpsertArgs} args - Arguments to update or create a Vacation_leave. + * @example + * // Update or create a Vacation_leave + * const vacation_leave = await prisma.vacation_leave.upsert({ + * create: { + * // ... data to create a Vacation_leave + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Vacation_leave we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__vacation_leaveClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Vacation_leaves. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {vacation_leaveCountArgs} args - Arguments to filter Vacation_leaves to count. + * @example + * // Count the number of Vacation_leaves + * const count = await prisma.vacation_leave.count({ + * where: { + * // ... the filter for the Vacation_leaves 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 Vacation_leave. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Vacation_leaveAggregateArgs} 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 Vacation_leave. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {vacation_leaveGroupByArgs} 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 vacation_leaveGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: vacation_leaveGroupByArgs['orderBy'] } + : { orderBy?: vacation_leaveGroupByArgs['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 ? GetVacation_leaveGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the vacation_leave model + */ +readonly fields: vacation_leaveFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for vacation_leave. + * 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__vacation_leaveClient 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 vacation_leave model + */ +export interface vacation_leaveFieldRefs { + readonly id: Prisma.FieldRef<"vacation_leave", 'String'> + readonly employee_id: Prisma.FieldRef<"vacation_leave", 'String'> + readonly accumulated: Prisma.FieldRef<"vacation_leave", 'Float'> + readonly consumed: Prisma.FieldRef<"vacation_leave", 'Float'> + readonly created_at: Prisma.FieldRef<"vacation_leave", 'BigInt'> + readonly updated_at: Prisma.FieldRef<"vacation_leave", 'BigInt'> + readonly start_year: Prisma.FieldRef<"vacation_leave", 'Int'> + readonly end_year: Prisma.FieldRef<"vacation_leave", 'Int'> + readonly max_hours_per_year: Prisma.FieldRef<"vacation_leave", 'Float'> +} + + +// Custom InputTypes +/** + * vacation_leave findUnique + */ +export type vacation_leaveFindUniqueArgs = { + /** + * Select specific fields to fetch from the vacation_leave + */ + select?: Prisma.vacation_leaveSelect | null + /** + * Omit specific fields from the vacation_leave + */ + omit?: Prisma.vacation_leaveOmit | null + /** + * Filter, which vacation_leave to fetch. + */ + where: Prisma.vacation_leaveWhereUniqueInput +} + +/** + * vacation_leave findUniqueOrThrow + */ +export type vacation_leaveFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the vacation_leave + */ + select?: Prisma.vacation_leaveSelect | null + /** + * Omit specific fields from the vacation_leave + */ + omit?: Prisma.vacation_leaveOmit | null + /** + * Filter, which vacation_leave to fetch. + */ + where: Prisma.vacation_leaveWhereUniqueInput +} + +/** + * vacation_leave findFirst + */ +export type vacation_leaveFindFirstArgs = { + /** + * Select specific fields to fetch from the vacation_leave + */ + select?: Prisma.vacation_leaveSelect | null + /** + * Omit specific fields from the vacation_leave + */ + omit?: Prisma.vacation_leaveOmit | null + /** + * Filter, which vacation_leave to fetch. + */ + where?: Prisma.vacation_leaveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of vacation_leaves to fetch. + */ + orderBy?: Prisma.vacation_leaveOrderByWithRelationInput | Prisma.vacation_leaveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for vacation_leaves. + */ + cursor?: Prisma.vacation_leaveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` vacation_leaves 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` vacation_leaves. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of vacation_leaves. + */ + distinct?: Prisma.Vacation_leaveScalarFieldEnum | Prisma.Vacation_leaveScalarFieldEnum[] +} + +/** + * vacation_leave findFirstOrThrow + */ +export type vacation_leaveFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the vacation_leave + */ + select?: Prisma.vacation_leaveSelect | null + /** + * Omit specific fields from the vacation_leave + */ + omit?: Prisma.vacation_leaveOmit | null + /** + * Filter, which vacation_leave to fetch. + */ + where?: Prisma.vacation_leaveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of vacation_leaves to fetch. + */ + orderBy?: Prisma.vacation_leaveOrderByWithRelationInput | Prisma.vacation_leaveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for vacation_leaves. + */ + cursor?: Prisma.vacation_leaveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` vacation_leaves 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` vacation_leaves. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of vacation_leaves. + */ + distinct?: Prisma.Vacation_leaveScalarFieldEnum | Prisma.Vacation_leaveScalarFieldEnum[] +} + +/** + * vacation_leave findMany + */ +export type vacation_leaveFindManyArgs = { + /** + * Select specific fields to fetch from the vacation_leave + */ + select?: Prisma.vacation_leaveSelect | null + /** + * Omit specific fields from the vacation_leave + */ + omit?: Prisma.vacation_leaveOmit | null + /** + * Filter, which vacation_leaves to fetch. + */ + where?: Prisma.vacation_leaveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of vacation_leaves to fetch. + */ + orderBy?: Prisma.vacation_leaveOrderByWithRelationInput | Prisma.vacation_leaveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing vacation_leaves. + */ + cursor?: Prisma.vacation_leaveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` vacation_leaves 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` vacation_leaves. + */ + skip?: number + distinct?: Prisma.Vacation_leaveScalarFieldEnum | Prisma.Vacation_leaveScalarFieldEnum[] +} + +/** + * vacation_leave create + */ +export type vacation_leaveCreateArgs = { + /** + * Select specific fields to fetch from the vacation_leave + */ + select?: Prisma.vacation_leaveSelect | null + /** + * Omit specific fields from the vacation_leave + */ + omit?: Prisma.vacation_leaveOmit | null + /** + * The data needed to create a vacation_leave. + */ + data: Prisma.XOR +} + +/** + * vacation_leave createMany + */ +export type vacation_leaveCreateManyArgs = { + /** + * The data used to create many vacation_leaves. + */ + data: Prisma.vacation_leaveCreateManyInput | Prisma.vacation_leaveCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * vacation_leave createManyAndReturn + */ +export type vacation_leaveCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the vacation_leave + */ + select?: Prisma.vacation_leaveSelectCreateManyAndReturn | null + /** + * Omit specific fields from the vacation_leave + */ + omit?: Prisma.vacation_leaveOmit | null + /** + * The data used to create many vacation_leaves. + */ + data: Prisma.vacation_leaveCreateManyInput | Prisma.vacation_leaveCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * vacation_leave update + */ +export type vacation_leaveUpdateArgs = { + /** + * Select specific fields to fetch from the vacation_leave + */ + select?: Prisma.vacation_leaveSelect | null + /** + * Omit specific fields from the vacation_leave + */ + omit?: Prisma.vacation_leaveOmit | null + /** + * The data needed to update a vacation_leave. + */ + data: Prisma.XOR + /** + * Choose, which vacation_leave to update. + */ + where: Prisma.vacation_leaveWhereUniqueInput +} + +/** + * vacation_leave updateMany + */ +export type vacation_leaveUpdateManyArgs = { + /** + * The data used to update vacation_leaves. + */ + data: Prisma.XOR + /** + * Filter which vacation_leaves to update + */ + where?: Prisma.vacation_leaveWhereInput + /** + * Limit how many vacation_leaves to update. + */ + limit?: number +} + +/** + * vacation_leave updateManyAndReturn + */ +export type vacation_leaveUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the vacation_leave + */ + select?: Prisma.vacation_leaveSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the vacation_leave + */ + omit?: Prisma.vacation_leaveOmit | null + /** + * The data used to update vacation_leaves. + */ + data: Prisma.XOR + /** + * Filter which vacation_leaves to update + */ + where?: Prisma.vacation_leaveWhereInput + /** + * Limit how many vacation_leaves to update. + */ + limit?: number +} + +/** + * vacation_leave upsert + */ +export type vacation_leaveUpsertArgs = { + /** + * Select specific fields to fetch from the vacation_leave + */ + select?: Prisma.vacation_leaveSelect | null + /** + * Omit specific fields from the vacation_leave + */ + omit?: Prisma.vacation_leaveOmit | null + /** + * The filter to search for the vacation_leave to update in case it exists. + */ + where: Prisma.vacation_leaveWhereUniqueInput + /** + * In case the vacation_leave found by the `where` argument doesn't exist, create a new vacation_leave with this data. + */ + create: Prisma.XOR + /** + * In case the vacation_leave was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * vacation_leave delete + */ +export type vacation_leaveDeleteArgs = { + /** + * Select specific fields to fetch from the vacation_leave + */ + select?: Prisma.vacation_leaveSelect | null + /** + * Omit specific fields from the vacation_leave + */ + omit?: Prisma.vacation_leaveOmit | null + /** + * Filter which vacation_leave to delete. + */ + where: Prisma.vacation_leaveWhereUniqueInput +} + +/** + * vacation_leave deleteMany + */ +export type vacation_leaveDeleteManyArgs = { + /** + * Filter which vacation_leaves to delete + */ + where?: Prisma.vacation_leaveWhereInput + /** + * Limit how many vacation_leaves to delete. + */ + limit?: number +} + +/** + * vacation_leave without action + */ +export type vacation_leaveDefaultArgs = { + /** + * Select specific fields to fetch from the vacation_leave + */ + select?: Prisma.vacation_leaveSelect | null + /** + * Omit specific fields from the vacation_leave + */ + omit?: Prisma.vacation_leaveOmit | null +} diff --git a/prisma/generated/mariadb/browser.ts b/prisma/generated/mariadb/browser.ts new file mode 100644 index 0000000..a651224 --- /dev/null +++ b/prisma/generated/mariadb/browser.ts @@ -0,0 +1,809 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file should be your main import to use Prisma-related types and utilities in a browser. + * Use it to get access to models, enums, and input types. + * + * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only. + * See `client.ts` for the standard, server-side entry point. + * + * ๐ŸŸข You can import this file directly. + */ + +import * as Prisma from './internal/prismaNamespaceBrowser' +export { Prisma } +export * as $Enums from './enums' +export * from './enums'; +/** + * Model account + * + */ +export type account = Prisma.accountModel +/** + * Model account_group + * + */ +export type account_group = Prisma.account_groupModel +/** + * Model account_memo + * + */ +export type account_memo = Prisma.account_memoModel +/** + * Model compta_comptes + * + */ +export type compta_comptes = Prisma.compta_comptesModel +/** + * Model compta_comptes_soldes + * + */ +export type compta_comptes_soldes = Prisma.compta_comptes_soldesModel +/** + * Model compta_journal_ecriture + * + */ +export type compta_journal_ecriture = Prisma.compta_journal_ecritureModel +/** + * Model compta_journal_ecriture_bk + * + */ +export type compta_journal_ecriture_bk = Prisma.compta_journal_ecriture_bkModel +/** + * Model compta_journal_ecriture_detail + * + */ +export type compta_journal_ecriture_detail = Prisma.compta_journal_ecriture_detailModel +/** + * Model compta_journal_ecriture_detail_bk + * + */ +export type compta_journal_ecriture_detail_bk = Prisma.compta_journal_ecriture_detail_bkModel +/** + * Model compta_periode + * + */ +export type compta_periode = Prisma.compta_periodeModel +/** + * Model compta_ppa_file_id + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type compta_ppa_file_id = Prisma.compta_ppa_file_idModel +/** + * Model compta_setup + * + */ +export type compta_setup = Prisma.compta_setupModel +/** + * Model credit_code + * + */ +export type credit_code = Prisma.credit_codeModel +/** + * Model tax + * + */ +export type tax = Prisma.taxModel +/** + * Model tax_group + * + */ +export type tax_group = Prisma.tax_groupModel +/** + * Model td_payable + * + */ +export type td_payable = Prisma.td_payableModel +/** + * Model conso + * + */ +export type conso = Prisma.consoModel +/** + * Model conso_archive + * + */ +export type conso_archive = Prisma.conso_archiveModel +/** + * Model conso_avis + * + */ +export type conso_avis = Prisma.conso_avisModel +/** + * Model conso_radius + * + */ +export type conso_radius = Prisma.conso_radiusModel +/** + * Model conso_radius_daily + * + */ +export type conso_radius_daily = Prisma.conso_radius_dailyModel +/** + * Model conso_radius_daily2 + * + */ +export type conso_radius_daily2 = Prisma.conso_radius_daily2Model +/** + * Model conso_radius_hourly + * + */ +export type conso_radius_hourly = Prisma.conso_radius_hourlyModel +/** + * Model conso_radius_monthly + * + */ +export type conso_radius_monthly = Prisma.conso_radius_monthlyModel +/** + * Model conso_radius_monthly2 + * + */ +export type conso_radius_monthly2 = Prisma.conso_radius_monthly2Model +/** + * Model delivery + * + */ +export type delivery = Prisma.deliveryModel +/** + * Model delivery_history + * + */ +export type delivery_history = Prisma.delivery_historyModel +/** + * Model device + * + */ +export type device = Prisma.deviceModel +/** + * Model device_archive + * + */ +export type device_archive = Prisma.device_archiveModel +/** + * Model device_attr + * + */ +export type device_attr = Prisma.device_attrModel +/** + * Model device_link + * + */ +export type device_link = Prisma.device_linkModel +/** + * Model device_template + * + */ +export type device_template = Prisma.device_templateModel +/** + * Model device_template_attr + * + */ +export type device_template_attr = Prisma.device_template_attrModel +/** + * Model product + * + */ +export type product = Prisma.productModel +/** + * Model product_cat + * + */ +export type product_cat = Prisma.product_catModel +/** + * Model product_format + * + */ +export type product_format = Prisma.product_formatModel +/** + * Model product_fournisseur + * + */ +export type product_fournisseur = Prisma.product_fournisseurModel +/** + * Model product_profile + * + */ +export type product_profile = Prisma.product_profileModel +/** + * Model product_speciaux + * + */ +export type product_speciaux = Prisma.product_speciauxModel +/** + * Model product_translate + * + */ +export type product_translate = Prisma.product_translateModel +/** + * Model product_zone + * + */ +export type product_zone = Prisma.product_zoneModel +/** + * Model product_zone_placemarks + * + */ +export type product_zone_placemarks = Prisma.product_zone_placemarksModel +/** + * Model inventaire_log + * + */ +export type inventaire_log = Prisma.inventaire_logModel +/** + * Model phone + * + */ +export type phone = Prisma.phoneModel +/** + * Model phone_addr + * + */ +export type phone_addr = Prisma.phone_addrModel +/** + * Model phone_comwave + * + */ +export type phone_comwave = Prisma.phone_comwaveModel +/** + * Model phone_note + * + */ +export type phone_note = Prisma.phone_noteModel +/** + * Model phone_provisioning + * + */ +export type phone_provisioning = Prisma.phone_provisioningModel +/** + * Model phonecall_channel + * + */ +export type phonecall_channel = Prisma.phonecall_channelModel +/** + * Model phonecall_log_2025 + * + */ +export type phonecall_log_2025 = Prisma.phonecall_log_2025Model +/** + * Model phonecall_log_2026 + * + */ +export type phonecall_log_2026 = Prisma.phonecall_log_2026Model +/** + * Model voicemeup + * + */ +export type voicemeup = Prisma.voicemeupModel +/** + * Model pbx + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type pbx = Prisma.pbxModel +/** + * Model pbx_app + * + */ +export type pbx_app = Prisma.pbx_appModel +/** + * Model pbx_com + * + */ +export type pbx_com = Prisma.pbx_comModel +/** + * Model pbx_com_wl + * + */ +export type pbx_com_wl = Prisma.pbx_com_wlModel +/** + * Model pbx_fax + * + */ +export type pbx_fax = Prisma.pbx_faxModel +/** + * Model payment + * + */ +export type payment = Prisma.paymentModel +/** + * Model payment_item + * + */ +export type payment_item = Prisma.payment_itemModel +/** + * Model passwords_manager + * + */ +export type passwords_manager = Prisma.passwords_managerModel +/** + * Model passwords_manager_cat + * + */ +export type passwords_manager_cat = Prisma.passwords_manager_catModel +/** + * Model passwords_manager_group + * + */ +export type passwords_manager_group = Prisma.passwords_manager_groupModel +/** + * Model notification + * + */ +export type notification = Prisma.notificationModel +/** + * Model notification_payload + * + */ +export type notification_payload = Prisma.notification_payloadModel +/** + * Model municipalite + * + */ +export type municipalite = Prisma.municipaliteModel +/** + * Model sommaire_porte + * + */ +export type sommaire_porte = Prisma.sommaire_porteModel +/** + * Model state + * + */ +export type state = Prisma.stateModel +/** + * Model licence + * + */ +export type licence = Prisma.licenceModel +/** + * Model licence_key + * + */ +export type licence_key = Prisma.licence_keyModel +/** + * Model ip + * + */ +export type ip = Prisma.ipModel +/** + * Model ip_admin + * + */ +export type ip_admin = Prisma.ip_adminModel +/** + * Model ip_history + * + */ +export type ip_history = Prisma.ip_historyModel +/** + * Model ip_pp + * + */ +export type ip_pp = Prisma.ip_ppModel +/** + * Model ip_static + * + */ +export type ip_static = Prisma.ip_staticModel +/** + * Model ip_targo + * + */ +export type ip_targo = Prisma.ip_targoModel +/** + * Model invoice + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type invoice = Prisma.invoiceModel +/** + * Model invoice_bk + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type invoice_bk = Prisma.invoice_bkModel +/** + * Model invoice_call + * + */ +export type invoice_call = Prisma.invoice_callModel +/** + * Model invoice_item + * + */ +export type invoice_item = Prisma.invoice_itemModel +/** + * Model invoice_item_bk + * + */ +export type invoice_item_bk = Prisma.invoice_item_bkModel +/** + * Model invoice_msg_template + * + */ +export type invoice_msg_template = Prisma.invoice_msg_templateModel +/** + * Model invoice_tax + * + */ +export type invoice_tax = Prisma.invoice_taxModel +/** + * Model invoice_tax_bk + * + */ +export type invoice_tax_bk = Prisma.invoice_tax_bkModel +/** + * Model accord_paiement + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type accord_paiement = Prisma.accord_paiementModel +/** + * Model autologin + * + */ +export type autologin = Prisma.autologinModel +/** + * Model statement + * + */ +export type statement = Prisma.statementModel +/** + * Model intranet_doc + * + */ +export type intranet_doc = Prisma.intranet_docModel +/** + * Model intranet_doc_paths + * + */ +export type intranet_doc_paths = Prisma.intranet_doc_pathsModel +/** + * Model intranet_doc_reply + * + */ +export type intranet_doc_reply = Prisma.intranet_doc_replyModel +/** + * Model intranet_feed + * + */ +export type intranet_feed = Prisma.intranet_feedModel +/** + * Model intranet_feed_reply + * + */ +export type intranet_feed_reply = Prisma.intranet_feed_replyModel +/** + * Model intranet_techniciens + * + */ +export type intranet_techniciens = Prisma.intranet_techniciensModel +/** + * Model intranet_techniciens_reply + * + */ +export type intranet_techniciens_reply = Prisma.intranet_techniciens_replyModel +/** + * Model intranet_techno + * + */ +export type intranet_techno = Prisma.intranet_technoModel +/** + * Model intranet_techno_reply + * + */ +export type intranet_techno_reply = Prisma.intranet_techno_replyModel +/** + * Model fibre + * + */ +export type fibre = Prisma.fibreModel +/** + * Model fibre_olt + * + */ +export type fibre_olt = Prisma.fibre_oltModel +/** + * Model fibre_service_port + * + */ +export type fibre_service_port = Prisma.fibre_service_portModel +/** + * Model fibre_suivi + * + */ +export type fibre_suivi = Prisma.fibre_suiviModel +/** + * Model fibre_tech + * + */ +export type fibre_tech = Prisma.fibre_techModel +/** + * Model fibre_videotron + * + */ +export type fibre_videotron = Prisma.fibre_videotronModel +/** + * Model gantt + * + */ +export type gantt = Prisma.ganttModel +/** + * Model gantt_template + * + */ +export type gantt_template = Prisma.gantt_templateModel +/** + * Model project + * + */ +export type project = Prisma.projectModel +/** + * Model project_cmd + * + */ +export type project_cmd = Prisma.project_cmdModel +/** + * Model project_cmd_item + * + */ +export type project_cmd_item = Prisma.project_cmd_itemModel +/** + * Model project_manager_cat + * + */ +export type project_manager_cat = Prisma.project_manager_catModel +/** + * Model project_manager_checklist + * + */ +export type project_manager_checklist = Prisma.project_manager_checklistModel +/** + * Model project_manager_comment + * + */ +export type project_manager_comment = Prisma.project_manager_commentModel +/** + * Model project_manager_task + * + */ +export type project_manager_task = Prisma.project_manager_taskModel +/** + * Model service + * + */ +export type service = Prisma.serviceModel +/** + * Model service_snapshot + * + */ +export type service_snapshot = Prisma.service_snapshotModel +/** + * Model soumission + * + */ +export type soumission = Prisma.soumissionModel +/** + * Model soumission_template + * + */ +export type soumission_template = Prisma.soumission_templateModel +/** + * Model staff + * + */ +export type staff = Prisma.staffModel +/** + * Model staff_dispo + * + */ +export type staff_dispo = Prisma.staff_dispoModel +/** + * Model staff_supp + * + */ +export type staff_supp = Prisma.staff_suppModel +/** + * Model tele_carte + * + */ +export type tele_carte = Prisma.tele_carteModel +/** + * Model tele_channel + * + */ +export type tele_channel = Prisma.tele_channelModel +/** + * Model tele_groupe + * + */ +export type tele_groupe = Prisma.tele_groupeModel +/** + * Model tele_network + * + */ +export type tele_network = Prisma.tele_networkModel +/** + * Model tele_pack + * + */ +export type tele_pack = Prisma.tele_packModel +/** + * Model tele_penetration + * + */ +export type tele_penetration = Prisma.tele_penetrationModel +/** + * Model tele_sub_archive + * + */ +export type tele_sub_archive = Prisma.tele_sub_archiveModel +/** + * Model tele_wiz + * + */ +export type tele_wiz = Prisma.tele_wizModel +/** + * Model tv_mac + * + */ +export type tv_mac = Prisma.tv_macModel +/** + * Model ticket + * + */ +export type ticket = Prisma.ticketModel +/** + * Model ticket_calendar_lock + * + */ +export type ticket_calendar_lock = Prisma.ticket_calendar_lockModel +/** + * Model ticket_calendar_staff_lock + * + */ +export type ticket_calendar_staff_lock = Prisma.ticket_calendar_staff_lockModel +/** + * Model ticket_conge + * + */ +export type ticket_conge = Prisma.ticket_congeModel +/** + * Model ticket_dept + * + */ +export type ticket_dept = Prisma.ticket_deptModel +/** + * Model ticket_msg + * + */ +export type ticket_msg = Prisma.ticket_msgModel +/** + * Model ticket_template + * + */ +export type ticket_template = Prisma.ticket_templateModel +/** + * Model tmp_vpn + * + */ +export type tmp_vpn = Prisma.tmp_vpnModel +/** + * Model bon_travail + * + */ +export type bon_travail = Prisma.bon_travailModel +/** + * Model bon_travail_item + * + */ +export type bon_travail_item = Prisma.bon_travail_itemModel +/** + * Model checklist_relais + * + */ +export type checklist_relais = Prisma.checklist_relaisModel +/** + * Model conference + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type conference = Prisma.conferenceModel +/** + * Model conference_room + * + */ +export type conference_room = Prisma.conference_roomModel +/** + * Model fournisseur + * + */ +export type fournisseur = Prisma.fournisseurModel +/** + * Model notice_gui + * + */ +export type notice_gui = Prisma.notice_guiModel +/** + * Model promo + * + */ +export type promo = Prisma.promoModel +/** + * Model stbs + * + */ +export type stbs = Prisma.stbsModel +/** + * Model tech_dispo + * + */ +export type tech_dispo = Prisma.tech_dispoModel +/** + * Model debug + * ************** DEPRECATED ******************************************** + */ +export type debug = Prisma.debugModel +/** + * Model carte_temps + * + */ +export type carte_temps = Prisma.carte_tempsModel +/** + * Model carte_temps_periode + * + */ +export type carte_temps_periode = Prisma.carte_temps_periodeModel +/** + * Model banque_heure_staff + * + */ +export type banque_heure_staff = Prisma.banque_heure_staffModel +/** + * Model hour_bank + * + */ +export type hour_bank = Prisma.hour_bankModel +/** + * Model hour_bank_detail + * + */ +export type hour_bank_detail = Prisma.hour_bank_detailModel +/** + * Model test + * + */ +export type test = Prisma.testModel +/** + * Model account_memo_template + * + */ +export type account_memo_template = Prisma.account_memo_templateModel +/** + * Model notes + * + */ +export type notes = Prisma.notesModel +/** + * Model email + * + */ +export type email = Prisma.emailModel +/** + * Model client_pwd + * + */ +export type client_pwd = Prisma.client_pwdModel +/** + * Model account_profile + * + */ +export type account_profile = Prisma.account_profileModel +/** + * Model deposit_slip + * + */ +export type deposit_slip = Prisma.deposit_slipModel +/** + * Model account_suspension + * + */ +export type account_suspension = Prisma.account_suspensionModel diff --git a/prisma/generated/mariadb/client.ts b/prisma/generated/mariadb/client.ts new file mode 100644 index 0000000..659c8f1 --- /dev/null +++ b/prisma/generated/mariadb/client.ts @@ -0,0 +1,829 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types. + * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead. + * + * ๐ŸŸข You can import this file directly. + */ + +import * as process from 'node:process' +import * as path from 'node:path' + +import * as runtime from "@prisma/client/runtime/client" +import * as $Enums from "./enums" +import * as $Class from "./internal/class" +import * as Prisma from "./internal/prismaNamespace" + +export * as $Enums from './enums' +export * from "./enums" +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more Accounts + * const accounts = await prisma.account.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ +export const PrismaClient = $Class.getPrismaClientClass() +export type PrismaClient = $Class.PrismaClient +export { Prisma } + +/** + * Model account + * + */ +export type account = Prisma.accountModel +/** + * Model account_group + * + */ +export type account_group = Prisma.account_groupModel +/** + * Model account_memo + * + */ +export type account_memo = Prisma.account_memoModel +/** + * Model compta_comptes + * + */ +export type compta_comptes = Prisma.compta_comptesModel +/** + * Model compta_comptes_soldes + * + */ +export type compta_comptes_soldes = Prisma.compta_comptes_soldesModel +/** + * Model compta_journal_ecriture + * + */ +export type compta_journal_ecriture = Prisma.compta_journal_ecritureModel +/** + * Model compta_journal_ecriture_bk + * + */ +export type compta_journal_ecriture_bk = Prisma.compta_journal_ecriture_bkModel +/** + * Model compta_journal_ecriture_detail + * + */ +export type compta_journal_ecriture_detail = Prisma.compta_journal_ecriture_detailModel +/** + * Model compta_journal_ecriture_detail_bk + * + */ +export type compta_journal_ecriture_detail_bk = Prisma.compta_journal_ecriture_detail_bkModel +/** + * Model compta_periode + * + */ +export type compta_periode = Prisma.compta_periodeModel +/** + * Model compta_ppa_file_id + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type compta_ppa_file_id = Prisma.compta_ppa_file_idModel +/** + * Model compta_setup + * + */ +export type compta_setup = Prisma.compta_setupModel +/** + * Model credit_code + * + */ +export type credit_code = Prisma.credit_codeModel +/** + * Model tax + * + */ +export type tax = Prisma.taxModel +/** + * Model tax_group + * + */ +export type tax_group = Prisma.tax_groupModel +/** + * Model td_payable + * + */ +export type td_payable = Prisma.td_payableModel +/** + * Model conso + * + */ +export type conso = Prisma.consoModel +/** + * Model conso_archive + * + */ +export type conso_archive = Prisma.conso_archiveModel +/** + * Model conso_avis + * + */ +export type conso_avis = Prisma.conso_avisModel +/** + * Model conso_radius + * + */ +export type conso_radius = Prisma.conso_radiusModel +/** + * Model conso_radius_daily + * + */ +export type conso_radius_daily = Prisma.conso_radius_dailyModel +/** + * Model conso_radius_daily2 + * + */ +export type conso_radius_daily2 = Prisma.conso_radius_daily2Model +/** + * Model conso_radius_hourly + * + */ +export type conso_radius_hourly = Prisma.conso_radius_hourlyModel +/** + * Model conso_radius_monthly + * + */ +export type conso_radius_monthly = Prisma.conso_radius_monthlyModel +/** + * Model conso_radius_monthly2 + * + */ +export type conso_radius_monthly2 = Prisma.conso_radius_monthly2Model +/** + * Model delivery + * + */ +export type delivery = Prisma.deliveryModel +/** + * Model delivery_history + * + */ +export type delivery_history = Prisma.delivery_historyModel +/** + * Model device + * + */ +export type device = Prisma.deviceModel +/** + * Model device_archive + * + */ +export type device_archive = Prisma.device_archiveModel +/** + * Model device_attr + * + */ +export type device_attr = Prisma.device_attrModel +/** + * Model device_link + * + */ +export type device_link = Prisma.device_linkModel +/** + * Model device_template + * + */ +export type device_template = Prisma.device_templateModel +/** + * Model device_template_attr + * + */ +export type device_template_attr = Prisma.device_template_attrModel +/** + * Model product + * + */ +export type product = Prisma.productModel +/** + * Model product_cat + * + */ +export type product_cat = Prisma.product_catModel +/** + * Model product_format + * + */ +export type product_format = Prisma.product_formatModel +/** + * Model product_fournisseur + * + */ +export type product_fournisseur = Prisma.product_fournisseurModel +/** + * Model product_profile + * + */ +export type product_profile = Prisma.product_profileModel +/** + * Model product_speciaux + * + */ +export type product_speciaux = Prisma.product_speciauxModel +/** + * Model product_translate + * + */ +export type product_translate = Prisma.product_translateModel +/** + * Model product_zone + * + */ +export type product_zone = Prisma.product_zoneModel +/** + * Model product_zone_placemarks + * + */ +export type product_zone_placemarks = Prisma.product_zone_placemarksModel +/** + * Model inventaire_log + * + */ +export type inventaire_log = Prisma.inventaire_logModel +/** + * Model phone + * + */ +export type phone = Prisma.phoneModel +/** + * Model phone_addr + * + */ +export type phone_addr = Prisma.phone_addrModel +/** + * Model phone_comwave + * + */ +export type phone_comwave = Prisma.phone_comwaveModel +/** + * Model phone_note + * + */ +export type phone_note = Prisma.phone_noteModel +/** + * Model phone_provisioning + * + */ +export type phone_provisioning = Prisma.phone_provisioningModel +/** + * Model phonecall_channel + * + */ +export type phonecall_channel = Prisma.phonecall_channelModel +/** + * Model phonecall_log_2025 + * + */ +export type phonecall_log_2025 = Prisma.phonecall_log_2025Model +/** + * Model phonecall_log_2026 + * + */ +export type phonecall_log_2026 = Prisma.phonecall_log_2026Model +/** + * Model voicemeup + * + */ +export type voicemeup = Prisma.voicemeupModel +/** + * Model pbx + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type pbx = Prisma.pbxModel +/** + * Model pbx_app + * + */ +export type pbx_app = Prisma.pbx_appModel +/** + * Model pbx_com + * + */ +export type pbx_com = Prisma.pbx_comModel +/** + * Model pbx_com_wl + * + */ +export type pbx_com_wl = Prisma.pbx_com_wlModel +/** + * Model pbx_fax + * + */ +export type pbx_fax = Prisma.pbx_faxModel +/** + * Model payment + * + */ +export type payment = Prisma.paymentModel +/** + * Model payment_item + * + */ +export type payment_item = Prisma.payment_itemModel +/** + * Model passwords_manager + * + */ +export type passwords_manager = Prisma.passwords_managerModel +/** + * Model passwords_manager_cat + * + */ +export type passwords_manager_cat = Prisma.passwords_manager_catModel +/** + * Model passwords_manager_group + * + */ +export type passwords_manager_group = Prisma.passwords_manager_groupModel +/** + * Model notification + * + */ +export type notification = Prisma.notificationModel +/** + * Model notification_payload + * + */ +export type notification_payload = Prisma.notification_payloadModel +/** + * Model municipalite + * + */ +export type municipalite = Prisma.municipaliteModel +/** + * Model sommaire_porte + * + */ +export type sommaire_porte = Prisma.sommaire_porteModel +/** + * Model state + * + */ +export type state = Prisma.stateModel +/** + * Model licence + * + */ +export type licence = Prisma.licenceModel +/** + * Model licence_key + * + */ +export type licence_key = Prisma.licence_keyModel +/** + * Model ip + * + */ +export type ip = Prisma.ipModel +/** + * Model ip_admin + * + */ +export type ip_admin = Prisma.ip_adminModel +/** + * Model ip_history + * + */ +export type ip_history = Prisma.ip_historyModel +/** + * Model ip_pp + * + */ +export type ip_pp = Prisma.ip_ppModel +/** + * Model ip_static + * + */ +export type ip_static = Prisma.ip_staticModel +/** + * Model ip_targo + * + */ +export type ip_targo = Prisma.ip_targoModel +/** + * Model invoice + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type invoice = Prisma.invoiceModel +/** + * Model invoice_bk + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type invoice_bk = Prisma.invoice_bkModel +/** + * Model invoice_call + * + */ +export type invoice_call = Prisma.invoice_callModel +/** + * Model invoice_item + * + */ +export type invoice_item = Prisma.invoice_itemModel +/** + * Model invoice_item_bk + * + */ +export type invoice_item_bk = Prisma.invoice_item_bkModel +/** + * Model invoice_msg_template + * + */ +export type invoice_msg_template = Prisma.invoice_msg_templateModel +/** + * Model invoice_tax + * + */ +export type invoice_tax = Prisma.invoice_taxModel +/** + * Model invoice_tax_bk + * + */ +export type invoice_tax_bk = Prisma.invoice_tax_bkModel +/** + * Model accord_paiement + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type accord_paiement = Prisma.accord_paiementModel +/** + * Model autologin + * + */ +export type autologin = Prisma.autologinModel +/** + * Model statement + * + */ +export type statement = Prisma.statementModel +/** + * Model intranet_doc + * + */ +export type intranet_doc = Prisma.intranet_docModel +/** + * Model intranet_doc_paths + * + */ +export type intranet_doc_paths = Prisma.intranet_doc_pathsModel +/** + * Model intranet_doc_reply + * + */ +export type intranet_doc_reply = Prisma.intranet_doc_replyModel +/** + * Model intranet_feed + * + */ +export type intranet_feed = Prisma.intranet_feedModel +/** + * Model intranet_feed_reply + * + */ +export type intranet_feed_reply = Prisma.intranet_feed_replyModel +/** + * Model intranet_techniciens + * + */ +export type intranet_techniciens = Prisma.intranet_techniciensModel +/** + * Model intranet_techniciens_reply + * + */ +export type intranet_techniciens_reply = Prisma.intranet_techniciens_replyModel +/** + * Model intranet_techno + * + */ +export type intranet_techno = Prisma.intranet_technoModel +/** + * Model intranet_techno_reply + * + */ +export type intranet_techno_reply = Prisma.intranet_techno_replyModel +/** + * Model fibre + * + */ +export type fibre = Prisma.fibreModel +/** + * Model fibre_olt + * + */ +export type fibre_olt = Prisma.fibre_oltModel +/** + * Model fibre_service_port + * + */ +export type fibre_service_port = Prisma.fibre_service_portModel +/** + * Model fibre_suivi + * + */ +export type fibre_suivi = Prisma.fibre_suiviModel +/** + * Model fibre_tech + * + */ +export type fibre_tech = Prisma.fibre_techModel +/** + * Model fibre_videotron + * + */ +export type fibre_videotron = Prisma.fibre_videotronModel +/** + * Model gantt + * + */ +export type gantt = Prisma.ganttModel +/** + * Model gantt_template + * + */ +export type gantt_template = Prisma.gantt_templateModel +/** + * Model project + * + */ +export type project = Prisma.projectModel +/** + * Model project_cmd + * + */ +export type project_cmd = Prisma.project_cmdModel +/** + * Model project_cmd_item + * + */ +export type project_cmd_item = Prisma.project_cmd_itemModel +/** + * Model project_manager_cat + * + */ +export type project_manager_cat = Prisma.project_manager_catModel +/** + * Model project_manager_checklist + * + */ +export type project_manager_checklist = Prisma.project_manager_checklistModel +/** + * Model project_manager_comment + * + */ +export type project_manager_comment = Prisma.project_manager_commentModel +/** + * Model project_manager_task + * + */ +export type project_manager_task = Prisma.project_manager_taskModel +/** + * Model service + * + */ +export type service = Prisma.serviceModel +/** + * Model service_snapshot + * + */ +export type service_snapshot = Prisma.service_snapshotModel +/** + * Model soumission + * + */ +export type soumission = Prisma.soumissionModel +/** + * Model soumission_template + * + */ +export type soumission_template = Prisma.soumission_templateModel +/** + * Model staff + * + */ +export type staff = Prisma.staffModel +/** + * Model staff_dispo + * + */ +export type staff_dispo = Prisma.staff_dispoModel +/** + * Model staff_supp + * + */ +export type staff_supp = Prisma.staff_suppModel +/** + * Model tele_carte + * + */ +export type tele_carte = Prisma.tele_carteModel +/** + * Model tele_channel + * + */ +export type tele_channel = Prisma.tele_channelModel +/** + * Model tele_groupe + * + */ +export type tele_groupe = Prisma.tele_groupeModel +/** + * Model tele_network + * + */ +export type tele_network = Prisma.tele_networkModel +/** + * Model tele_pack + * + */ +export type tele_pack = Prisma.tele_packModel +/** + * Model tele_penetration + * + */ +export type tele_penetration = Prisma.tele_penetrationModel +/** + * Model tele_sub_archive + * + */ +export type tele_sub_archive = Prisma.tele_sub_archiveModel +/** + * Model tele_wiz + * + */ +export type tele_wiz = Prisma.tele_wizModel +/** + * Model tv_mac + * + */ +export type tv_mac = Prisma.tv_macModel +/** + * Model ticket + * + */ +export type ticket = Prisma.ticketModel +/** + * Model ticket_calendar_lock + * + */ +export type ticket_calendar_lock = Prisma.ticket_calendar_lockModel +/** + * Model ticket_calendar_staff_lock + * + */ +export type ticket_calendar_staff_lock = Prisma.ticket_calendar_staff_lockModel +/** + * Model ticket_conge + * + */ +export type ticket_conge = Prisma.ticket_congeModel +/** + * Model ticket_dept + * + */ +export type ticket_dept = Prisma.ticket_deptModel +/** + * Model ticket_msg + * + */ +export type ticket_msg = Prisma.ticket_msgModel +/** + * Model ticket_template + * + */ +export type ticket_template = Prisma.ticket_templateModel +/** + * Model tmp_vpn + * + */ +export type tmp_vpn = Prisma.tmp_vpnModel +/** + * Model bon_travail + * + */ +export type bon_travail = Prisma.bon_travailModel +/** + * Model bon_travail_item + * + */ +export type bon_travail_item = Prisma.bon_travail_itemModel +/** + * Model checklist_relais + * + */ +export type checklist_relais = Prisma.checklist_relaisModel +/** + * Model conference + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type conference = Prisma.conferenceModel +/** + * Model conference_room + * + */ +export type conference_room = Prisma.conference_roomModel +/** + * Model fournisseur + * + */ +export type fournisseur = Prisma.fournisseurModel +/** + * Model notice_gui + * + */ +export type notice_gui = Prisma.notice_guiModel +/** + * Model promo + * + */ +export type promo = Prisma.promoModel +/** + * Model stbs + * + */ +export type stbs = Prisma.stbsModel +/** + * Model tech_dispo + * + */ +export type tech_dispo = Prisma.tech_dispoModel +/** + * Model debug + * ************** DEPRECATED ******************************************** + */ +export type debug = Prisma.debugModel +/** + * Model carte_temps + * + */ +export type carte_temps = Prisma.carte_tempsModel +/** + * Model carte_temps_periode + * + */ +export type carte_temps_periode = Prisma.carte_temps_periodeModel +/** + * Model banque_heure_staff + * + */ +export type banque_heure_staff = Prisma.banque_heure_staffModel +/** + * Model hour_bank + * + */ +export type hour_bank = Prisma.hour_bankModel +/** + * Model hour_bank_detail + * + */ +export type hour_bank_detail = Prisma.hour_bank_detailModel +/** + * Model test + * + */ +export type test = Prisma.testModel +/** + * Model account_memo_template + * + */ +export type account_memo_template = Prisma.account_memo_templateModel +/** + * Model notes + * + */ +export type notes = Prisma.notesModel +/** + * Model email + * + */ +export type email = Prisma.emailModel +/** + * Model client_pwd + * + */ +export type client_pwd = Prisma.client_pwdModel +/** + * Model account_profile + * + */ +export type account_profile = Prisma.account_profileModel +/** + * Model deposit_slip + * + */ +export type deposit_slip = Prisma.deposit_slipModel +/** + * Model account_suspension + * + */ +export type account_suspension = Prisma.account_suspensionModel diff --git a/prisma/generated/mariadb/commonInputTypes.ts b/prisma/generated/mariadb/commonInputTypes.ts new file mode 100644 index 0000000..f8fb070 --- /dev/null +++ b/prisma/generated/mariadb/commonInputTypes.ts @@ -0,0 +1,722 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports various common sort, input & filter types that are not directly linked to a particular model. + * + * ๐ŸŸข You can import this file directly. + */ + +import type * as runtime from "@prisma/client/runtime/client" +import * as $Enums from "./enums" +import type * as Prisma from "./internal/prismaNamespace" + + +export type BigIntFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + in?: bigint[] | number[] + notIn?: bigint[] | number[] + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntFilter<$PrismaModel> | bigint | number +} + +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> + search?: string + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + +export type BigIntNullableFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> | null + in?: bigint[] | number[] | null + notIn?: bigint[] | number[] | null + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null +} + +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> + search?: string + not?: Prisma.NestedStringFilter<$PrismaModel> | string +} + +export type IntFilter<$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 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 BoolFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean +} + +export type DecimalFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type FloatFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> + in?: number[] + notIn?: number[] + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatFilter<$PrismaModel> | number +} + +export type SortOrderInput = { + sort: Prisma.SortOrder + nulls?: Prisma.NullsOrder +} + +export type BigIntWithAggregatesFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + in?: bigint[] | number[] + notIn?: bigint[] | number[] + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedBigIntFilter<$PrismaModel> + _min?: Prisma.NestedBigIntFilter<$PrismaModel> + _max?: Prisma.NestedBigIntFilter<$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> + search?: string + not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedStringNullableFilter<$PrismaModel> + _max?: Prisma.NestedStringNullableFilter<$PrismaModel> +} + +export type BigIntNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> | null + in?: bigint[] | number[] | null + notIn?: bigint[] | number[] | null + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _sum?: Prisma.NestedBigIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedBigIntNullableFilter<$PrismaModel> + _max?: Prisma.NestedBigIntNullableFilter<$PrismaModel> +} + +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> + search?: string + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type IntWithAggregatesFilter<$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.NestedIntWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedIntFilter<$PrismaModel> + _max?: Prisma.NestedIntFilter<$PrismaModel> +} + +export type 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 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 DecimalWithAggregatesFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedDecimalFilter<$PrismaModel> + _sum?: Prisma.NestedDecimalFilter<$PrismaModel> + _min?: Prisma.NestedDecimalFilter<$PrismaModel> + _max?: Prisma.NestedDecimalFilter<$PrismaModel> +} + +export type FloatWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> + in?: number[] + notIn?: number[] + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedFloatFilter<$PrismaModel> + _min?: Prisma.NestedFloatFilter<$PrismaModel> + _max?: Prisma.NestedFloatFilter<$PrismaModel> +} + +export type FloatNullableFilter<$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 FloatNullableWithAggregatesFilter<$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.NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _sum?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _min?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _max?: Prisma.NestedFloatNullableFilter<$PrismaModel> +} + +export type Enumphone_addr_enhanced_capableFilter<$PrismaModel = never> = { + equals?: $Enums.phone_addr_enhanced_capable | Prisma.Enumphone_addr_enhanced_capableFieldRefInput<$PrismaModel> + in?: $Enums.phone_addr_enhanced_capable[] + notIn?: $Enums.phone_addr_enhanced_capable[] + not?: Prisma.NestedEnumphone_addr_enhanced_capableFilter<$PrismaModel> | $Enums.phone_addr_enhanced_capable +} + +export type Enumphone_addr_enhanced_capableWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.phone_addr_enhanced_capable | Prisma.Enumphone_addr_enhanced_capableFieldRefInput<$PrismaModel> + in?: $Enums.phone_addr_enhanced_capable[] + notIn?: $Enums.phone_addr_enhanced_capable[] + not?: Prisma.NestedEnumphone_addr_enhanced_capableWithAggregatesFilter<$PrismaModel> | $Enums.phone_addr_enhanced_capable + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumphone_addr_enhanced_capableFilter<$PrismaModel> + _max?: Prisma.NestedEnumphone_addr_enhanced_capableFilter<$PrismaModel> +} + +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 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 BoolNullableFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null +} + +export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedBoolNullableFilter<$PrismaModel> + _max?: Prisma.NestedBoolNullableFilter<$PrismaModel> +} + +export type DecimalNullableFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _min?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _max?: Prisma.NestedDecimalNullableFilter<$PrismaModel> +} + +export type NestedBigIntFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + in?: bigint[] | number[] + notIn?: bigint[] | number[] + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntFilter<$PrismaModel> | bigint | number +} + +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> + search?: string + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + +export type NestedBigIntNullableFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> | null + in?: bigint[] | number[] | null + notIn?: bigint[] | number[] | null + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null +} + +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> + search?: string + not?: Prisma.NestedStringFilter<$PrismaModel> | string +} + +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 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 NestedBoolFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean +} + +export type NestedDecimalFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type NestedFloatFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> + in?: number[] + notIn?: number[] + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatFilter<$PrismaModel> | number +} + +export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + in?: bigint[] | number[] + notIn?: bigint[] | number[] + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedBigIntFilter<$PrismaModel> + _min?: Prisma.NestedBigIntFilter<$PrismaModel> + _max?: Prisma.NestedBigIntFilter<$PrismaModel> +} + +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> + search?: string + not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedStringNullableFilter<$PrismaModel> + _max?: Prisma.NestedStringNullableFilter<$PrismaModel> +} + +export type NestedBigIntNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> | null + in?: bigint[] | number[] | null + notIn?: bigint[] | number[] | null + lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> + not?: Prisma.NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _sum?: Prisma.NestedBigIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedBigIntNullableFilter<$PrismaModel> + _max?: Prisma.NestedBigIntNullableFilter<$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 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> + search?: string + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type NestedIntWithAggregatesFilter<$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.NestedIntWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedIntFilter<$PrismaModel> + _max?: Prisma.NestedIntFilter<$PrismaModel> +} + +export type 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 NestedBoolWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedBoolFilter<$PrismaModel> + _max?: Prisma.NestedBoolFilter<$PrismaModel> +} + +export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedDecimalFilter<$PrismaModel> + _sum?: Prisma.NestedDecimalFilter<$PrismaModel> + _min?: Prisma.NestedDecimalFilter<$PrismaModel> + _max?: Prisma.NestedDecimalFilter<$PrismaModel> +} + +export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> + in?: number[] + notIn?: number[] + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedFloatFilter<$PrismaModel> + _min?: Prisma.NestedFloatFilter<$PrismaModel> + _max?: Prisma.NestedFloatFilter<$PrismaModel> +} + +export type NestedFloatNullableWithAggregatesFilter<$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.NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _sum?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _min?: Prisma.NestedFloatNullableFilter<$PrismaModel> + _max?: Prisma.NestedFloatNullableFilter<$PrismaModel> +} + +export type NestedEnumphone_addr_enhanced_capableFilter<$PrismaModel = never> = { + equals?: $Enums.phone_addr_enhanced_capable | Prisma.Enumphone_addr_enhanced_capableFieldRefInput<$PrismaModel> + in?: $Enums.phone_addr_enhanced_capable[] + notIn?: $Enums.phone_addr_enhanced_capable[] + not?: Prisma.NestedEnumphone_addr_enhanced_capableFilter<$PrismaModel> | $Enums.phone_addr_enhanced_capable +} + +export type NestedEnumphone_addr_enhanced_capableWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.phone_addr_enhanced_capable | Prisma.Enumphone_addr_enhanced_capableFieldRefInput<$PrismaModel> + in?: $Enums.phone_addr_enhanced_capable[] + notIn?: $Enums.phone_addr_enhanced_capable[] + not?: Prisma.NestedEnumphone_addr_enhanced_capableWithAggregatesFilter<$PrismaModel> | $Enums.phone_addr_enhanced_capable + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumphone_addr_enhanced_capableFilter<$PrismaModel> + _max?: Prisma.NestedEnumphone_addr_enhanced_capableFilter<$PrismaModel> +} + +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 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 NestedBoolNullableFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null +} + +export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedBoolNullableFilter<$PrismaModel> + _max?: Prisma.NestedBoolNullableFilter<$PrismaModel> +} + +export type NestedDecimalNullableFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _min?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _max?: Prisma.NestedDecimalNullableFilter<$PrismaModel> +} + + diff --git a/prisma/generated/mariadb/enums.ts b/prisma/generated/mariadb/enums.ts new file mode 100644 index 0000000..f3545b8 --- /dev/null +++ b/prisma/generated/mariadb/enums.ts @@ -0,0 +1,17 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* +* This file exports all enum related types from the schema. +* +* ๐ŸŸข You can import this file directly. +*/ + +export const phone_addr_enhanced_capable = { + Y: 'Y', + N: 'N' +} as const + +export type phone_addr_enhanced_capable = (typeof phone_addr_enhanced_capable)[keyof typeof phone_addr_enhanced_capable] diff --git a/prisma/generated/mariadb/internal/class.ts b/prisma/generated/mariadb/internal/class.ts new file mode 100644 index 0000000..a239c68 --- /dev/null +++ b/prisma/generated/mariadb/internal/class.ts @@ -0,0 +1,1762 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * ๐Ÿ›‘ Under no circumstances should you import this file directly! ๐Ÿ›‘ + * + * Please import the `PrismaClient` class from the `client.ts` file instead. + */ + +import * as runtime from "@prisma/client/runtime/client" +import type * as Prisma from "./prismaNamespace" + + +const config: runtime.GetPrismaClientConfig = { + "previewFeatures": [], + "clientVersion": "7.3.0", + "engineVersion": "9d6ad21cbbceab97458517b147a6a09ff43aa735", + "activeProvider": "mysql", + "inlineSchema": "generator client {\n provider = \"prisma-client\"\n output = \"../generated/mariadb\"\n}\n\ndatasource db {\n provider = \"mysql\"\n}\n\nmodel account {\n id BigInt @id @default(autoincrement())\n customer_id String? @db.VarChar(32) //variable string, composition varies a lot, used by customers to identify their account\n date_orig BigInt? //timestamp\n date_last BigInt? //timestamp\n date_expire BigInt? //not used\n language_id String @default(dbgenerated(\"(francais)\")) @db.VarChar(32) //either \"anglais\", \"francais\"\n country_id Int @default(124) //124 (canada), 450 (Madagascar) or 840 (Virgin island)\n currency_id Int? //not used\n username String? @db.VarChar(128)\n password String? @db.VarChar(128)\n group_id Int @default(6) @db.TinyInt //refers to the account_group table\n misc String? @db.VarChar(128) //comments of some sort\n status Int? //1-actif, 2-suspension,3- non paiement, 4- terminรฉ, 5- recouvre, 6-creance\n first_name String? @db.VarChar(128)\n middle_name String? @db.VarChar(128) //not used\n last_name String? @db.VarChar(128)\n mandataire String? @db.VarChar(128) //sometimes the first_name and last_name are found here, sometimes its the name of someone who manage the account\n title String? @db.VarChar(128) //Mme, Mrs, Mr., M., \"\"\n email String? @db.VarChar(255)\n email_autre String? @db.VarChar(255) //second email\n company String? @db.VarChar(255) //name of the company account\n contact String @db.Text //name of the contact at the company or account contact\n address1 String? @db.VarChar(128)\n address2 String? @db.VarChar(128) //sometimes used to specify the unit, the suit, the camping lot or used as a note???\n city String? @db.VarChar(128)\n state String? @db.VarChar(32)\n zip String? @db.VarChar(16)\n tel_home String? @db.VarChar(16)\n tel_office String? @db.VarChar(16)\n tel_office_ext String? @db.VarChar(4)\n cell String? @db.VarChar(16)\n fax String? @db.VarChar(16)\n invoice_delivery Int @default(2) //1-email, 2-poste, 3-default\n land_owner Boolean @default(false) //tinyInt boolean\n frais Boolean @default(false) //tinyInt boolean\n ppa Boolean @default(false)\n ppa_all_invoice Int @default(0) @db.TinyInt\n ppa_name String? @db.VarChar(64)\n ppa_code String? @db.VarChar(255)\n ppa_branch String? @db.VarChar(255)\n ppa_account String? @db.VarChar(255)\n ppa_amount Decimal @default(0.00) @db.Decimal(6, 2)\n ppa_amount_buffer Float @default(30.00)\n ppa_all_tmp Int @default(0) @db.TinyInt\n ppa_fixed Boolean @default(false)\n commercial Boolean @default(false)\n vip Boolean @default(false)\n tax_group Int @default(1) @db.TinyInt\n data_check Boolean @default(false)\n created_by Int?\n notes_client String? @db.VarChar(256) //comments left by customer via the \"portail\"\n keyword String? @db.VarChar(512)\n terminate_reason String? @db.VarChar(32) //install,demenage, cie, autre, NULL\n terminate_cie String? @db.VarChar(32) // null, bell, autre, videotron, cogeco, deery, explirnet, sftl, haut-richelieu\n terminate_note String? @db.MediumText // comment on the termination of the account\n terminate_date String? @db.VarChar(16)\n call Boolean @default(false) //tinyInt boolean\n pub Boolean @default(true) //TinyInt boolean\n portal_client_log Boolean @default(false) //TinyInt boolean\n mauvais_payeur Boolean @default(false) //TinyInt boolean\n renew_phone Boolean @default(false) //TinyInt boolean\n ppa_cc Int @default(0) @db.TinyInt\n stripe_id String? @db.VarChar(32)\n\n @@index([customer_id], map: \"customer_id\")\n @@index([id, status], map: \"id\")\n @@index([status], map: \"status\")\n}\n\nmodel account_group {\n id Int @id @default(autoincrement()) @db.TinyInt //see group_id in account table for references\n date_orig BigInt?\n group_name String? @db.VarChar(64) //group name\n}\n\n// this table could be ignored ? see comment on memo column\nmodel account_memo {\n id BigInt @id @default(autoincrement())\n date_orig BigInt?\n last_updated BigInt @default(0) @db.UnsignedBigInt\n staff_id BigInt?\n account_id BigInt?\n memo String? @db.VarChar(1024) //comment, seems to be a copy paste of a form, giving a bunch of infos on the account, should be queried instead of copied\n color String @default(dbgenerated(\"(000000)\")) @db.VarChar(6) //CSS\n bcolor String @default(dbgenerated(\"(E0E0E0)\")) @db.VarChar(6) //CSS\n border String @default(dbgenerated(\"(000000)\")) @db.VarChar(6) //CSS\n\n @@index([account_id], map: \"account_id\")\n @@index([staff_id], map: \"staff_id\")\n}\n\nmodel compta_comptes {\n id BigInt @id @default(autoincrement())\n category String? @db.VarChar(64)\n num_compte String? @db.VarChar(16)\n desc String? @db.MediumText\n}\n\nmodel compta_comptes_soldes {\n id BigInt @id @default(autoincrement())\n num_compte Int\n year Int\n amount Float @db.Float\n comment String @db.VarChar(64)\n type String @db.VarChar(3)\n}\n\nmodel compta_journal_ecriture {\n id BigInt @id @default(autoincrement())\n date_orig BigInt?\n type String? @db.VarChar(4)\n num BigInt?\n customer_id String? @db.VarChar(32)\n full_name String? @db.VarChar(256)\n desc String? @db.MediumText\n mo String? @db.VarChar(4)\n em Int @default(0) @db.TinyInt\n\n @@index([customer_id], map: \"customer_id\")\n @@index([date_orig], map: \"date_orig\")\n @@index([num], map: \"num\")\n}\n\nmodel compta_journal_ecriture_bk {\n id BigInt @id @default(autoincrement())\n date_orig BigInt?\n type String? @db.VarChar(4)\n num BigInt?\n customer_id String? @db.VarChar(32)\n full_name String? @db.VarChar(256)\n desc String? @db.MediumText\n mo String? @db.VarChar(4)\n em Int @default(0) @db.TinyInt\n\n @@index([customer_id], map: \"customer_id\")\n @@index([date_orig], map: \"date_orig\")\n @@index([num], map: \"num\")\n}\n\nmodel compta_journal_ecriture_detail {\n id BigInt @id @default(autoincrement())\n journal_id BigInt?\n num_compte BigInt?\n amount Float?\n action String? @db.VarChar(16)\n\n @@index([journal_id], map: \"journal_id\")\n}\n\nmodel compta_journal_ecriture_detail_bk {\n id BigInt @id @default(autoincrement())\n journal_id BigInt?\n num_compte BigInt?\n amount Float?\n action String? @db.VarChar(16)\n\n @@index([journal_id], map: \"journal_id\")\n}\n\nmodel compta_periode {\n month Int @id @default(7)\n}\n\n/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments\nmodel compta_ppa_file_id {\n last_id Int @id @default(1)\n}\n\nmodel compta_setup {\n setup_id Int @id @default(1)\n period_month Int @default(7)\n ppa_id Int @default(1)\n excedent_max Float @default(0)\n month_closed BigInt?\n pay_week_closed Int @db.UnsignedTinyInt\n attachment_ext String @db.MediumText\n netadmin_dispo Int @default(0) @db.UnsignedInt\n imap_token String? @db.Text\n}\n\nmodel credit_code {\n id Int @id @default(autoincrement())\n code String @db.VarChar(16)\n desc String @db.VarChar(256)\n}\n\nmodel tax {\n id Int @id @default(autoincrement())\n name String? @db.VarChar(128)\n description String? @db.VarChar(255)\n rate Float?\n}\n\nmodel tax_group {\n id Int @id @default(autoincrement())\n name String? @db.VarChar(128)\n description String? @db.VarChar(255)\n tax String? @db.VarChar(128)\n}\n\nmodel td_payable {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n ticket_id Int @default(0) @db.UnsignedInt\n invoice String @default(dbgenerated(\"()\")) @db.VarChar(32)\n date_invoice String @db.VarChar(20)\n fournisseur String? @default(dbgenerated(\"()\")) @db.VarChar(128)\n montant Decimal @default(0.00) @db.Decimal(15, 2)\n devise String @default(dbgenerated(\"(ca)\")) @db.VarChar(2)\n methode String? @default(dbgenerated(\"()\")) @db.VarChar(64)\n reference String? @default(dbgenerated(\"()\")) @db.VarChar(128)\n date_paiement String? @default(dbgenerated(\"()\")) @db.VarChar(20)\n releve String? @db.VarChar(128)\n\n @@index([ticket_id], map: \"ticket_id\")\n}\n\nmodel conso {\n id BigInt @id @default(autoincrement())\n ip_id String? @db.VarChar(16)\n date BigInt?\n total BigInt? @default(0)\n total_day BigInt? @default(0)\n total_night BigInt? @default(0)\n\n @@index([ip_id], map: \"ip_id\")\n}\n\nmodel conso_archive {\n id BigInt @id @default(autoincrement())\n ip_id String? @db.VarChar(16)\n date BigInt?\n total BigInt? @default(0)\n total_day BigInt? @default(0)\n total_night BigInt? @default(0)\n\n @@index([ip_id], map: \"ip_id\")\n}\n\nmodel conso_avis {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n date BigInt\n account_id Int @db.UnsignedInt\n delivery_id Int @default(0) @db.UnsignedInt\n service_id Int @default(0) @db.UnsignedInt\n ip_id Int\n avis String @db.VarChar(32)\n}\n\nmodel conso_radius {\n id BigInt @id @default(autoincrement()) @db.UnsignedBigInt\n username String @db.VarChar(32)\n date String @db.VarChar(32)\n download String @db.Text\n upload String @db.Text\n nb_sess Int @default(0) @db.UnsignedInt\n\n @@index([date], map: \"date\")\n @@index([username], map: \"username\")\n}\n\nmodel conso_radius_daily {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n username String @db.VarChar(32)\n date String @db.VarChar(32)\n download_nuit String @db.Text\n upload_nuit String @db.Text\n download_jour String @db.Text\n upload_jour String @db.Text\n\n @@index([date], map: \"date\")\n @@index([username], map: \"username\")\n}\n\nmodel conso_radius_daily2 {\n id BigInt @id @default(autoincrement()) @db.UnsignedBigInt\n username String @db.VarChar(32)\n date String @db.VarChar(32)\n download_nuit String @default(dbgenerated(\"(0)\")) @db.VarChar(64)\n upload_nuit String @default(dbgenerated(\"(0)\")) @db.VarChar(64)\n download_jour String @default(dbgenerated(\"(0)\")) @db.VarChar(64)\n upload_jour String @default(dbgenerated(\"(0)\")) @db.VarChar(64)\n\n @@index([date], map: \"date\")\n @@index([username], map: \"username\")\n}\n\nmodel conso_radius_hourly {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n username String @db.VarChar(32)\n date String @db.VarChar(32)\n download String @db.Text\n upload String @db.Text\n\n @@index([date], map: \"date\")\n @@index([username], map: \"username\")\n}\n\nmodel conso_radius_monthly {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n date String @db.VarChar(32)\n username String @db.VarChar(32)\n nuit String @db.Text\n jour String @db.Text\n\n @@index([date], map: \"date\")\n @@index([username], map: \"username\")\n}\n\nmodel conso_radius_monthly2 {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n date String @db.VarChar(32)\n username String @db.VarChar(32)\n nuit String @default(dbgenerated(\"(0)\")) @db.VarChar(64)\n jour String @default(dbgenerated(\"(0)\")) @db.VarChar(64)\n\n @@index([date], map: \"date\")\n @@index([username], map: \"username\")\n}\n\nmodel delivery {\n id BigInt @id @default(autoincrement())\n account_id BigInt?\n name String @db.VarChar(32)\n comment String @db.VarChar(512)\n date_orig BigInt?\n address1 String? @db.VarChar(128)\n address2 String? @db.VarChar(128)\n city String? @db.VarChar(32)\n state String? @db.VarChar(32)\n zip String? @db.VarChar(16)\n longitude Decimal @db.Decimal(12, 7)\n latitude Decimal @db.Decimal(12, 7)\n tel_home String? @db.VarChar(16)\n tel_office String? @db.VarChar(16)\n tel_office_ext String? @db.VarChar(4)\n cell String? @db.VarChar(12)\n fax String? @db.VarChar(12)\n email String? @db.VarChar(255)\n quota_max_day BigInt @default(0) @db.UnsignedBigInt\n quota_max_night BigInt @default(0) @db.UnsignedBigInt\n contact String? @db.VarChar(128)\n expanded Int? @default(0) @db.TinyInt\n placemarks_id BigInt? @db.UnsignedBigInt\n epg_subid Int @default(0) @db.UnsignedInt\n\n @@index([account_id], map: \"account_id\")\n @@index([placemarks_id], map: \"placemarks_id\")\n}\n\nmodel delivery_history {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id Int @db.UnsignedInt\n date_orig BigInt @db.UnsignedBigInt\n address1 String @db.VarChar(128)\n address2 String @db.VarChar(128)\n city String @db.VarChar(128)\n state String @db.VarChar(32)\n zip String @db.VarChar(8)\n\n @@index([account_id], map: \"account_id\")\n}\n\nmodel device {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n delivery_id Int @db.UnsignedInt\n category String @db.VarChar(64)\n name String @db.VarChar(128)\n manufacturier String? @db.VarChar(128)\n model String? @db.VarChar(128)\n sn String? @db.VarChar(128)\n mac String? @db.VarChar(32)\n manage String @db.VarChar(256)\n port String @default(dbgenerated(\"()\")) @db.VarChar(5)\n protocol String @default(dbgenerated(\"(https)\")) @db.VarChar(8)\n manage_cli String @db.VarChar(256)\n port_cli String @default(dbgenerated(\"()\")) @db.VarChar(5)\n protocol_cli String @db.VarChar(8)\n user String @db.VarChar(64)\n pass String @db.VarChar(128)\n parent Int @default(0) @db.UnsignedInt\n\n @@index([delivery_id], map: \"delivery_id\")\n @@index([sn], map: \"sn\")\n}\n\nmodel device_archive {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n delivery_id Int @db.UnsignedInt\n category String @db.VarChar(64)\n name String @db.VarChar(128)\n manufacturier String? @db.VarChar(128)\n model String? @db.VarChar(128)\n sn String? @db.VarChar(128)\n mac String? @db.VarChar(32)\n manage String @db.VarChar(256)\n port String @default(dbgenerated(\"()\")) @db.VarChar(5)\n protocol String @default(dbgenerated(\"(https)\")) @db.VarChar(8)\n manage_cli String @db.VarChar(256)\n port_cli String @default(dbgenerated(\"()\")) @db.VarChar(5)\n protocol_cli String @db.VarChar(8)\n user String @db.VarChar(64)\n pass String @db.VarChar(128)\n parent Int @default(0) @db.UnsignedInt\n\n @@index([delivery_id], map: \"delivery_id\")\n @@index([sn], map: \"sn\")\n}\n\nmodel device_attr {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n device_id Int @db.UnsignedInt\n attr String @db.VarChar(128)\n value String @db.VarChar(128)\n\n @@index([device_id], map: \"device_id\")\n}\n\nmodel device_link {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n parent Int @db.UnsignedInt\n child Int @db.UnsignedInt\n}\n\nmodel device_template {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n nom String @db.VarChar(128)\n}\n\nmodel device_template_attr {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n template_id Int @db.UnsignedInt\n attr String @db.VarChar(128)\n default_val String @db.VarChar(128)\n}\n\nmodel product {\n id Int @id @default(autoincrement())\n date_orig BigInt?\n sku String? @db.VarChar(32)\n active Int? @db.TinyInt\n price Float?\n price_recurr_type Int? @db.TinyInt\n price_recurr_weekday Int?\n price_recurr_week Int?\n price_recurr_schedule Int? @db.TinyInt\n download_speed BigInt?\n upload_speed BigInt?\n night_package Int @default(0) @db.TinyInt\n quota_day BigInt? @db.UnsignedBigInt\n quota_night BigInt? @db.UnsignedBigInt\n category Int? @db.TinyInt\n uniq_charge Int @default(0) @db.TinyInt\n commercial Boolean @default(false)\n portal_hidden Boolean @default(false)\n inv_keep Boolean @default(false)\n inv_tag String? @db.VarChar(255)\n inv_threshold Int @default(0) @db.UnsignedInt\n inv_qte Int @default(0) @db.UnsignedInt\n emplacement String @default(dbgenerated(\"()\")) @db.VarChar(16)\n list_tech Int @default(0) @db.UnsignedTinyInt\n type Int @default(0) @db.UnsignedTinyInt\n combo_ready Int @default(0) @db.UnsignedTinyInt\n fibre_lineprofile String? @db.VarChar(8)\n fibre_serviceprofile String? @db.VarChar(8)\n\n @@index([sku], map: \"sku\")\n}\n\nmodel product_cat {\n id Int @id @default(autoincrement())\n name String? @db.VarChar(255)\n notes String? @db.VarChar(255)\n status Int? @db.TinyInt\n num_compte BigInt?\n combo_dispo Int @default(0) @db.UnsignedTinyInt\n}\n\nmodel product_format {\n id BigInt @id @default(autoincrement())\n date_orig BigInt?\n name String? @db.VarChar(255)\n type Int? @db.TinyInt\n product_idx String? @db.MediumText\n description String? @db.MediumText\n}\n\nmodel product_fournisseur {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n product_id Int @db.UnsignedInt\n nom_fournisseur String @db.VarChar(255)\n prix_us Boolean @default(false)\n prix_achat Float @default(0.00)\n prix_livr String @default(dbgenerated(\"()\")) @db.VarChar(16)\n delais_livr String @default(dbgenerated(\"()\")) @db.VarChar(128)\n comment String @default(dbgenerated(\"()\")) @db.VarChar(128)\n\n @@index([product_id], map: \"product_id\")\n}\n\nmodel product_profile {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n product_id Int @db.UnsignedInt\n device_type String @db.VarChar(64)\n line_profile Int @db.UnsignedInt\n service_profile Int @db.UnsignedInt\n}\n\nmodel product_speciaux {\n id BigInt @id @default(autoincrement())\n product_zone_id BigInt\n product_id BigInt\n price Float?\n price_install Float?\n exp_timestamp BigInt?\n duree_contrat Int? @db.UnsignedTinyInt\n\n @@index([product_zone_id], map: \"product_zone_id\")\n}\n\nmodel product_translate {\n id Int @id @default(autoincrement())\n product_id Int?\n language_id String? @db.VarChar(16)\n name String? @db.VarChar(512)\n description_short String? @db.LongText\n description_full String? @db.LongText\n\n @@index([language_id], map: \"language_id\")\n @@index([product_id], map: \"product_id\")\n}\n\nmodel product_zone {\n id BigInt @id @default(autoincrement())\n zoneNumber Int @db.UnsignedInt\n description String? @db.VarChar(255)\n\n @@index([zoneNumber], map: \"zoneNumber\")\n}\n\nmodel product_zone_placemarks {\n id BigInt @id @default(autoincrement())\n product_zone_id BigInt @db.UnsignedBigInt\n placemarks_id BigInt @db.UnsignedBigInt\n\n @@index([placemarks_id], map: \"placemarks_id\")\n}\n\nmodel inventaire_log {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n prod_tag String @db.VarChar(255)\n staff_id Int @db.UnsignedInt\n action String @db.VarChar(1)\n qte Int @db.UnsignedInt\n timestamp String @db.VarChar(10)\n\n @@index([prod_tag], map: \"prod_tag\")\n}\n\nmodel phone {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n service_id Int @db.UnsignedInt\n phone_num String @db.VarChar(16)\n note String? @db.Text\n fournisseur String? @db.VarChar(64)\n}\n\nmodel phone_addr {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id Int @db.UnsignedInt\n phone String @db.VarChar(16)\n street_number String @db.VarChar(10)\n apt String @db.VarChar(30)\n street_name String @db.VarChar(84)\n city String @db.VarChar(38)\n state String @db.VarChar(2)\n zip String @db.VarChar(10)\n first_name String @db.VarChar(38)\n last_name String @db.VarChar(100)\n info String @db.VarChar(100)\n enhanced_capable phone_addr_enhanced_capable @default(dbgenerated(\"(Y)\"))\n code_cauca String? @db.VarChar(3)\n class_service String @default(dbgenerated(\"(RES)\")) @db.VarChar(3)\n}\n\nmodel phone_comwave {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id BigInt?\n service_id BigInt?\n requestId Int @unique(map: \"requestId\") @db.UnsignedInt\n phoneNumber String @db.VarChar(10)\n status String @default(dbgenerated(\"(P)\")) @db.VarChar(1)\n date String? @db.VarChar(10)\n reason String? @db.Text\n}\n\nmodel phone_note {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n phone String @unique(map: \"phone\") @db.VarChar(11)\n rate_center String? @db.VarChar(128)\n fournisseur String @default(dbgenerated(\"(comwave)\")) @db.VarChar(64)\n note String? @db.Text\n}\n\nmodel phone_provisioning {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id Int @db.UnsignedInt\n delivery_id Int @db.UnsignedInt\n service_id Int @db.UnsignedInt\n phone String @db.VarChar(10)\n app String @db.VarChar(16)\n mac String @db.VarChar(16)\n password String @db.VarChar(32)\n internationnal String? @db.VarChar(6)\n date_orig BigInt @db.UnsignedBigInt\n date_update BigInt @db.UnsignedBigInt\n}\n\nmodel phonecall_channel {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n timestamp BigInt @unique(map: \"timestamp\") @db.UnsignedBigInt\n max_tinktell Int @default(0) @db.UnsignedTinyInt\n max_outgoing_thinktell Int @default(0) @db.UnsignedTinyInt\n max_comwave Int @default(0) @db.UnsignedTinyInt\n max_outgoing_comwave Int @default(0) @db.UnsignedTinyInt\n max_total Int @default(0) @db.UnsignedTinyInt\n}\n\nmodel phonecall_log_2025 {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n caller_id_name String @db.VarChar(64)\n caller_id_number String @db.VarChar(32)\n destination_number String @db.VarChar(32)\n start_stamp DateTime @db.DateTime(0)\n answer_stamp DateTime @db.DateTime(0)\n end_stamp DateTime @db.DateTime(0)\n duration Int\n billing Decimal @default(0.00000) @db.Decimal(15, 5)\n hangup_cause String @db.VarChar(32)\n uuid String @unique(map: \"uuid\") @db.VarChar(64)\n}\n\nmodel phonecall_log_2026 {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n caller_id_name String @db.VarChar(64)\n caller_id_number String @db.VarChar(32)\n destination_number String @db.VarChar(32)\n start_stamp DateTime @db.DateTime(0)\n answer_stamp DateTime @db.DateTime(0)\n end_stamp DateTime @db.DateTime(0)\n duration Int\n billing Decimal @default(0.00000) @db.Decimal(15, 5)\n hangup_cause String @db.VarChar(32)\n uuid String @unique(map: \"uuid\") @db.VarChar(64)\n}\n\nmodel voicemeup {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id Int @db.UnsignedInt\n date BigInt @db.UnsignedBigInt\n duration Int @db.UnsignedInt\n destination String @db.VarChar(16)\n country String @db.VarChar(256)\n state String? @db.VarChar(128)\n district String? @db.VarChar(128)\n amount Float\n uuid String? @db.VarChar(64)\n}\n\n/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.\nmodel babytel {\n date_time BigInt?\n record_type String? @db.VarChar(20)\n record_format_version Int?\n id String? @db.VarChar(24)\n rate_id String? @db.VarChar(20)\n cost Float? @db.Float\n calling_user String? @db.VarChar(24)\n called_user String? @db.VarChar(24)\n calling_domain String? @db.VarChar(24)\n called_domain String? @db.VarChar(24)\n destination String? @db.VarChar(24)\n duration_seconds String? @db.VarChar(24)\n call_start String? @db.VarChar(24)\n call_type String? @db.VarChar(24)\n call_direction String? @db.VarChar(24)\n test_call String? @db.VarChar(24)\n calling_number String? @db.VarChar(24)\n called_number_e164 String? @db.VarChar(24)\n billable_duration String? @db.VarChar(24)\n billed_duration_outbound_seconds String? @db.VarChar(24)\n reseller_cost Float? @db.Float\n master_account_id String? @db.VarChar(24)\n forwarded_to String? @db.VarChar(24)\n master_account_pk String? @db.VarChar(24)\n account_pk String? @db.VarChar(24)\n reseller_rate_id String? @db.VarChar(24)\n internal_information1 String? @db.VarChar(24)\n concurrents_calls String? @db.VarChar(24)\n external_id String? @db.VarChar(24)\n commission Float? @db.Float\n minute_plan_id String? @db.VarChar(24)\n internal_information2 String? @db.VarChar(24)\n internal_information3 String? @db.VarChar(24)\n billed_duration_inbound_seconds String? @db.VarChar(24)\n selected_destination String? @db.VarChar(24)\n internal_information4 String? @db.VarChar(24)\n internal_information5 String? @db.VarChar(24)\n cost_center String? @db.VarChar(24)\n subscriber_group String? @db.VarChar(24)\n\n @@ignore\n}\n\n/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments\nmodel pbx {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id Int @db.UnsignedInt\n delivery_id Int @db.UnsignedInt\n service_id Int @db.UnsignedInt\n phone String @db.VarChar(10)\n name String? @db.VarChar(32)\n password String @db.VarChar(8)\n vm_password String @default(dbgenerated(\"(1234)\")) @db.VarChar(16)\n has_vm Int @default(1) @db.TinyInt\n vm_email String? @db.VarChar(64)\n keep_msg Int @default(0) @db.TinyInt\n vm_disk_quota Int @default(180) @db.UnsignedInt\n int_code String @db.VarChar(4)\n language String @default(dbgenerated(\"(fr)\")) @db.VarChar(2)\n call_911 String @db.VarChar(11)\n max_calls Int @default(2) @db.UnsignedTinyInt\n call_timeout Int @default(30) @db.UnsignedSmallInt\n user_context String @default(dbgenerated(\"(sip.targo.ca)\")) @db.VarChar(32)\n country_whitelist String @db.Text\n date_origin BigInt @db.UnsignedBigInt\n date_update BigInt @db.UnsignedBigInt\n update_by Int? @db.UnsignedInt\n\n @@index([phone], map: \"phone\")\n}\n\nmodel pbx_app {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n pbx_id Int @db.UnsignedInt\n username String @db.VarChar(16)\n mac String @db.VarChar(16)\n app String @default(dbgenerated(\"(ht502)\")) @db.VarChar(16)\n note String @db.Text\n date_origin BigInt @db.UnsignedBigInt\n date_update BigInt @db.UnsignedBigInt\n update_by Int? @db.UnsignedInt\n\n @@index([pbx_id], map: \"pbx_id\")\n}\n\nmodel pbx_com {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id Int @db.UnsignedInt\n delivery_id Int @db.UnsignedInt\n service_id Int @db.UnsignedInt\n phone String @db.VarChar(10)\n name String @db.VarChar(32)\n failover String @db.VarChar(16)\n auth_method String @default(dbgenerated(\"(password)\")) @db.VarChar(8)\n password String @db.VarChar(8)\n ip String @db.VarChar(16)\n int_code String @db.VarChar(4)\n country_whitelist String @db.Text\n language String @db.VarChar(2)\n call_911 String @db.VarChar(16)\n max_calls Int @db.UnsignedTinyInt\n user_context String @db.VarChar(32)\n date_origin String @db.VarChar(16)\n date_update String @db.VarChar(16)\n update_by Int @db.UnsignedInt\n}\n\nmodel pbx_com_wl {\n id Int @id @default(autoincrement())\n phone String @unique(map: \"phone\") @db.VarChar(10)\n country_whitelist String @db.Text\n}\n\nmodel pbx_fax {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n number String @db.VarChar(10)\n email String @db.VarChar(128)\n description String? @db.VarChar(128)\n service_id Int @default(0) @db.UnsignedInt\n\n @@index([number], map: \"number\")\n}\n\nmodel payment {\n id BigInt @id @default(autoincrement())\n account_id BigInt?\n date_orig BigInt?\n amount Float?\n applied_amt Float?\n type String? @db.VarChar(25)\n memo String? @db.VarChar(512)\n reference String? @db.VarChar(128)\n excedent Int @default(0) @db.TinyInt\n correction Int @default(0) @db.TinyInt\n cr Int @default(0) @db.TinyInt\n uniqsess String? @db.VarChar(32)\n\n @@index([account_id], map: \"account_id\")\n @@index([date_orig], map: \"date_orig\")\n}\n\nmodel payment_item {\n id BigInt @id @default(autoincrement())\n payment_id BigInt?\n invoice_id BigInt?\n amount Float?\n date_orig BigInt?\n\n @@index([invoice_id], map: \"invoice_id\")\n @@index([payment_id], map: \"payment_id\")\n}\n\nmodel passwords_manager {\n id BigInt @id @default(autoincrement())\n title String @db.VarChar(64)\n login String @db.VarChar(255)\n pass String @db.Text\n url String? @db.VarChar(255)\n email String? @db.VarChar(128)\n phone String? @db.VarChar(32)\n category String? @db.VarChar(32)\n subcategory String? @db.VarChar(32)\n desc String? @db.MediumText\n notes String? @db.MediumText\n logs String? @db.MediumText\n date_orig BigInt\n date_last BigInt\n users_granted String? @db.MediumText\n group_granted String? @db.Text\n created_by BigInt\n keywords String? @db.MediumText\n}\n\nmodel passwords_manager_cat {\n id Int @id @default(autoincrement()) @db.TinyInt\n title String @db.VarChar(32)\n desc String? @db.VarChar(255)\n}\n\nmodel passwords_manager_group {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n name String @db.VarChar(32)\n users String? @db.Text\n}\n\nmodel notification {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n staff_id Int\n endpoint String @db.Text\n authToken String @db.Text\n publicKey String @db.Text\n contentEncoding String @default(dbgenerated(\"(aesgcm)\")) @db.VarChar(128)\n plateforme String? @db.VarChar(128)\n\n @@index([staff_id], map: \"staff_id\")\n}\n\nmodel notification_payload {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n notification_id Int @db.UnsignedInt\n payload String @db.Text\n timestamp DateTime @default(now()) @db.Timestamp(0)\n}\n\n/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.\nmodel country {\n id Int? @unique(map: \"IDS\")\n name_en String? @db.VarChar(128)\n name_fr String? @db.VarChar(128)\n description String? @db.VarChar(128)\n notes String? @db.VarChar(128)\n two_code String? @db.VarChar(16)\n three_code String? @db.VarChar(16)\n\n @@ignore\n}\n\nmodel municipalite {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n nom String @db.VarChar(64)\n code String @db.VarChar(4)\n administration String @db.VarChar(64)\n often_used Boolean @default(false)\n}\n\nmodel sommaire_porte {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n fibre_id Int @default(0) @db.UnsignedInt\n id_adresse String @db.VarChar(48)\n id_subvention String @db.VarChar(32)\n adresse_subvention String @db.VarChar(128)\n ville_subvention String @db.VarChar(128)\n latitude String @db.VarChar(32)\n longitude String @db.VarChar(32)\n contest_adresse Int @default(0) @db.UnsignedTinyInt\n new_adresse Int @default(0) @db.UnsignedTinyInt\n placemarks_id BigInt @db.UnsignedBigInt\n}\n\nmodel state {\n id Int @id @default(autoincrement()) @db.UnsignedTinyInt\n name_en String @db.VarChar(64)\n name_fr String @db.VarChar(64)\n abbrev String @db.VarChar(2)\n country String @db.VarChar(8)\n}\n\nmodel licence {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n nom String @db.VarChar(128)\n date String @db.VarChar(10)\n can_manage String @db.VarChar(64)\n comment String? @db.Text\n}\n\nmodel licence_key {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n licence_id Int @db.UnsignedInt\n licence_key String @db.Text\n date String @db.VarChar(10)\n date_expire String? @db.VarChar(10)\n comment String @db.Text\n\n @@index([licence_id], map: \"licence_id\")\n}\n\nmodel ip {\n id Int @id @default(autoincrement())\n service_id BigInt?\n ip String? @db.VarChar(32)\n prive String? @db.VarChar(32)\n ip_relais String? @db.VarChar(128)\n technology String? @db.VarChar(32)\n name_access_point String? @db.VarChar(64)\n mac String? @db.VarChar(32)\n web_link String? @db.VarChar(128)\n link_relais String? @db.VarChar(128)\n ip_conso Int @default(0) @db.TinyInt\n actif Int @default(1) @db.TinyInt\n comment String? @db.MediumText\n cidr String? @db.VarChar(32)\n last_updated DateTime @default(now()) @db.DateTime(0)\n\n @@index([ip], map: \"ip\")\n @@index([prive], map: \"prive\")\n @@index([service_id], map: \"service_id\")\n}\n\nmodel ip_admin {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n ip String @db.VarChar(20)\n comment String? @db.VarChar(128)\n}\n\nmodel ip_history {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id Int @db.UnsignedInt\n delivery_id Int @db.UnsignedInt\n service_id Int @db.UnsignedInt\n ip String @db.VarChar(32)\n date BigInt @db.UnsignedBigInt\n}\n\nmodel ip_pp {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n ip_prive String @db.VarChar(32)\n ip_public String @db.VarChar(32)\n date BigInt @db.UnsignedBigInt\n ip_id String @default(dbgenerated(\"(0)\")) @db.VarChar(64)\n}\n\nmodel ip_static {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n ip String @unique(map: \"ip\") @db.VarChar(32)\n static Boolean @default(false)\n reverse String? @db.VarChar(128)\n}\n\nmodel ip_targo {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n ip String @db.VarChar(15)\n cidr Int @db.UnsignedTinyInt\n comment String? @db.VarChar(128)\n}\n\n/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments\nmodel invoice {\n id BigInt @id @default(autoincrement())\n date_orig BigInt?\n process_status Int? @db.TinyInt\n billing_status Int? @db.TinyInt\n refund_status Int? @db.TinyInt\n print_status Int? @db.TinyInt\n account_id BigInt?\n total_amt Float?\n billed_amt Float?\n due_date BigInt?\n notes String? @db.MediumText\n template_message String? @db.MediumText\n email_status Int? @db.TinyInt\n working_order String? @db.VarChar(64)\n correction Int @default(0) @db.TinyInt\n ppa_charge Int @default(0) @db.TinyInt\n credit_code_id Int @default(0) @db.TinyInt\n\n @@index([account_id], map: \"account_id\")\n @@index([billing_status], map: \"billing_status\")\n @@index([date_orig], map: \"date_orig\")\n @@index([refund_status], map: \"refund_status\")\n}\n\n/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments\nmodel invoice_bk {\n id BigInt @id @default(autoincrement())\n date_orig BigInt?\n process_status Int? @db.TinyInt\n billing_status Int? @db.TinyInt\n refund_status Int? @db.TinyInt\n print_status Int? @db.TinyInt\n account_id BigInt?\n total_amt Float?\n billed_amt Float?\n due_date BigInt?\n notes String? @db.MediumText\n template_message String? @db.MediumText\n email_status Int? @db.TinyInt\n working_order String? @db.VarChar(64)\n correction Int @default(0) @db.TinyInt\n ppa_charge Int @default(0) @db.TinyInt\n credit_code_id Int @default(0) @db.TinyInt\n\n @@index([account_id], map: \"account_id\")\n @@index([billing_status], map: \"billing_status\")\n @@index([date_orig], map: \"date_orig\")\n @@index([refund_status], map: \"refund_status\")\n}\n\nmodel invoice_call {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n date BigInt @db.UnsignedBigInt\n number String @db.VarChar(10)\n amount Float\n}\n\nmodel invoice_item {\n id BigInt @id @default(autoincrement())\n service_id BigInt?\n invoice_id BigInt?\n sku String? @db.VarChar(128)\n quantity Float @default(0)\n product_name String? @db.VarChar(512)\n unitary_price Float?\n nosub Boolean @default(false)\n delivery_name String? @db.VarChar(32)\n\n @@index([invoice_id], map: \"invoice_id\")\n}\n\nmodel invoice_item_bk {\n id BigInt @id @default(autoincrement())\n service_id BigInt?\n invoice_id BigInt?\n sku String? @db.VarChar(128)\n quantity Float @default(0)\n product_name String? @db.VarChar(512)\n unitary_price Float?\n nosub Boolean @default(false)\n delivery_name String? @db.VarChar(32)\n\n @@index([invoice_id], map: \"invoice_id\")\n}\n\nmodel invoice_msg_template {\n id BigInt @id @default(autoincrement())\n name String? @db.VarChar(32)\n message String? @db.MediumText\n}\n\nmodel invoice_tax {\n id BigInt @id @default(autoincrement())\n invoice_id BigInt?\n tax_name String? @db.VarChar(128)\n tax_description String? @db.VarChar(128)\n tax_rate Float?\n amount Float?\n\n @@index([invoice_id], map: \"invoice_id\")\n}\n\nmodel invoice_tax_bk {\n id BigInt @id @default(autoincrement())\n invoice_id BigInt?\n tax_name String? @db.VarChar(128)\n tax_description String? @db.VarChar(128)\n tax_rate Float?\n amount Float?\n\n @@index([invoice_id], map: \"invoice_id\")\n}\n\n/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments\nmodel accord_paiement {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id Int @db.UnsignedInt\n date_accord BigInt\n date_echeance BigInt\n date_coupure BigInt @db.UnsignedBigInt\n raison_changement String? @db.Text\n montant Decimal @db.Decimal(10, 2)\n method Int @default(0) @db.UnsignedTinyInt\n ferie Boolean @default(false)\n note String? @db.Text\n status Int @default(-1) @db.TinyInt\n staff_id Int @default(1) @db.UnsignedInt\n date_create String @db.VarChar(16)\n\n @@index([account_id], map: \"account_id\")\n}\n\nmodel autologin {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n token String @db.VarChar(32)\n date String @db.VarChar(16)\n staff Int @db.UnsignedInt\n}\n\nmodel statement {\n id BigInt @id @default(autoincrement())\n date BigInt?\n type String? @db.VarChar(2)\n number BigInt?\n reference String? @db.MediumText\n amt Float?\n paid_amt Float?\n}\n\nmodel intranet_doc {\n id BigInt @id @default(autoincrement())\n account_id BigInt\n date BigInt\n title String @db.VarChar(128)\n msg String @db.MediumText\n attachment String @db.VarChar(256)\n unread_csv String @db.MediumText\n path_id Int @db.UnsignedInt\n priority_order Int @default(1)\n update_timestamp DateTime @default(now()) @db.Timestamp(0)\n\n @@index([account_id], map: \"account_id\")\n @@index([path_id], map: \"path_id\")\n}\n\nmodel intranet_doc_paths {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n description String @db.VarChar(256)\n parent_id Int? @db.UnsignedInt\n priority_order Int @default(1)\n}\n\nmodel intranet_doc_reply {\n id BigInt @id @default(autoincrement())\n feed_id BigInt\n date BigInt\n account_id BigInt\n msg String @db.MediumText\n attachment BigInt @default(0)\n update_timestamp DateTime @default(now()) @db.Timestamp(0)\n}\n\nmodel intranet_feed {\n id BigInt @id @default(autoincrement())\n account_id BigInt\n date BigInt\n title String @db.VarChar(128)\n msg String @db.MediumText\n attachment String @db.VarChar(256)\n unread_csv String @db.MediumText\n}\n\nmodel intranet_feed_reply {\n id BigInt @id @default(autoincrement())\n feed_id BigInt\n date BigInt\n account_id BigInt\n msg String @db.MediumText\n attachment BigInt\n}\n\nmodel intranet_techniciens {\n id BigInt @id @default(autoincrement())\n account_id BigInt\n date BigInt\n title String @db.VarChar(128)\n msg String @db.MediumText\n attachment String @db.VarChar(256)\n unread_csv String @db.MediumText\n}\n\nmodel intranet_techniciens_reply {\n id BigInt @id @default(autoincrement())\n feed_id BigInt\n date BigInt\n account_id BigInt\n msg String @db.MediumText\n attachment BigInt\n}\n\nmodel intranet_techno {\n id BigInt @id @default(autoincrement())\n account_id BigInt\n date BigInt\n title String @db.VarChar(128)\n msg String @db.MediumText\n attachment String @db.VarChar(256)\n unread_csv String @db.MediumText\n}\n\nmodel intranet_techno_reply {\n id BigInt @id @default(autoincrement())\n feed_id BigInt\n date BigInt\n account_id BigInt\n msg String @db.MediumText\n attachment BigInt\n}\n\nmodel fibre {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n terrain String @db.VarChar(16)\n rue String @db.VarChar(128)\n ville String @db.VarChar(128)\n zip String @default(dbgenerated(\"()\")) @db.VarChar(7)\n ontid Int? @db.UnsignedInt\n sn String? @db.VarChar(32)\n tech Int @default(2) @db.UnsignedSmallInt\n info_connect String @default(dbgenerated(\"(172.17.0.2)\")) @db.VarChar(64)\n frame Int? @db.UnsignedTinyInt\n slot Int? @db.UnsignedTinyInt\n port Int? @db.UnsignedTinyInt\n vlan_manage Int? @db.UnsignedInt\n vlan_internet Int? @db.UnsignedInt\n vlan_telephone Int? @db.UnsignedInt\n vlan_tele Int? @db.UnsignedInt\n manage_service_id Int? @db.UnsignedInt\n internet_service_id Int? @db.UnsignedInt\n telephone_service_id Int? @db.UnsignedInt\n tele_service_id Int? @db.UnsignedInt\n service_id Int? @db.UnsignedInt\n nb_drop Int @default(0) @db.UnsignedInt\n placemarks_id BigInt? @db.UnsignedBigInt\n appartements_id BigInt? @db.UnsignedBigInt\n latitude Float? @db.Float\n longitude Float? @db.Float\n boitier_pas_install Int? @db.UnsignedTinyInt\n description String? @db.VarChar(50)\n suite Int @default(0) @db.UnsignedTinyInt\n distance Int? @db.UnsignedInt\n nb_portees Int? @db.UnsignedTinyInt\n\n @@index([appartements_id, sn], map: \"appartements_id\")\n @@index([info_connect, appartements_id, sn, slot, port], map: \"info_connect\")\n @@index([placemarks_id, sn], map: \"placemarks_id\")\n @@index([service_id], map: \"service_id\")\n}\n\nmodel fibre_olt {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n tech Int @db.UnsignedSmallInt\n ip String @db.VarChar(64)\n description String @db.VarChar(128)\n}\n\nmodel fibre_service_port {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n last_service_id Int @db.UnsignedInt\n}\n\nmodel fibre_suivi {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n customer_id String? @db.VarChar(32)\n first_name String @db.VarChar(64)\n last_name String @db.VarChar(64)\n address String @db.VarChar(128)\n city String @db.VarChar(128)\n zip String @db.VarChar(7)\n phone String @db.VarChar(10)\n email String? @db.VarChar(64)\n longitude Decimal @db.Decimal(12, 7)\n latitude Decimal @db.Decimal(12, 7)\n called Int @default(-1) @db.TinyInt\n create_by Int @default(0) @db.UnsignedInt\n note String @db.Text\n}\n\nmodel fibre_tech {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n description String @db.VarChar(128)\n}\n\nmodel fibre_videotron {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n date String @db.VarChar(16)\n download String @default(dbgenerated(\"(0)\")) @db.VarChar(128)\n upload String @default(dbgenerated(\"(0)\")) @db.VarChar(128)\n ethernet String @default(dbgenerated(\"()\")) @db.VarChar(64)\n interface String @default(dbgenerated(\"()\")) @db.VarChar(128)\n}\n\nmodel gantt {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id Int @default(0) @db.UnsignedInt\n name String? @db.VarChar(128)\n gantt String @db.Text\n closed Int @default(0) @db.TinyInt\n}\n\nmodel gantt_template {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n name String? @db.VarChar(128)\n gantt String @db.Text\n}\n\nmodel project {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n name String @db.VarChar(128)\n status String @db.VarChar(16)\n desc String? @db.Text\n date_start BigInt? @db.UnsignedBigInt\n date_end BigInt? @db.UnsignedBigInt\n manager_name String? @db.VarChar(64)\n}\n\nmodel project_cmd {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n project_id Int @db.UnsignedInt\n date BigInt @db.UnsignedBigInt\n vendeur String? @db.VarChar(128)\n no_cmd String? @db.VarChar(64)\n po String? @db.VarChar(32)\n staff_id Int @default(4667) @db.UnsignedInt\n\n @@index([project_id], map: \"project_id\")\n}\n\nmodel project_cmd_item {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n cmd_id Int @db.UnsignedInt\n product_id Int @default(0) @db.UnsignedInt\n desc String @db.Text\n qte Float\n price Float\n usd Boolean @default(false)\n recu Int @default(0) @db.TinyInt\n qte_recu Float @default(0)\n date_recu String? @db.VarChar(64)\n comment String? @db.VarChar(128)\n eta String? @db.VarChar(10)\n status Int @default(0) @db.UnsignedTinyInt\n\n @@index([cmd_id], map: \"cmd_id\")\n @@index([product_id], map: \"product_id\")\n}\n\nmodel project_manager_cat {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n pos Int @db.UnsignedTinyInt\n name String @db.VarChar(32)\n color String @default(dbgenerated(\"(ffffff)\")) @db.VarChar(7)\n text_color String @default(dbgenerated(\"(#000000)\")) @db.VarChar(7)\n}\n\nmodel project_manager_checklist {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n task_id Int @db.UnsignedInt\n ticket_id Int @db.UnsignedInt\n desc String @db.VarChar(128)\n poids Int @default(1) @db.UnsignedTinyInt\n done Int @default(0) @db.TinyInt\n\n @@index([task_id], map: \"task_id\")\n}\n\nmodel project_manager_comment {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n task_id Int @db.UnsignedInt\n comment String @db.Text\n staff_id Int @db.UnsignedInt\n date String @db.VarChar(16)\n unread String @db.Text\n\n @@index([task_id], map: \"task_id\")\n}\n\nmodel project_manager_task {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n category_id Int @db.UnsignedInt\n pos Int @db.UnsignedTinyInt\n titre String @db.VarChar(255)\n color String @default(dbgenerated(\"(#ffffff)\")) @db.VarChar(7)\n text_color String @default(dbgenerated(\"(#000000)\")) @db.VarChar(7)\n desc String @db.Text\n ticket_id String? @db.VarChar(16)\n date_start String? @db.VarChar(16)\n date_deadline String? @db.VarChar(16)\n deadline_watch Int @default(1) @db.UnsignedTinyInt\n assign_staff String? @db.Text\n priority Int @default(0) @db.UnsignedTinyInt\n done Boolean @default(false)\n create_by Int @db.UnsignedInt\n date_creation String? @db.VarChar(16)\n date_update String? @db.VarChar(16)\n\n @@index([category_id], map: \"category_id\")\n}\n\nmodel service {\n id BigInt @id @default(autoincrement())\n date_orig BigInt?\n date_suspended BigInt?\n date_next_invoice BigInt?\n date_last_invoice BigInt?\n delivery_id Int?\n device_id Int @default(0) @db.UnsignedInt\n product_id Int?\n comment String? @db.VarChar(255)\n payment_recurrence Int? @db.TinyInt\n status Int? @db.TinyInt\n hijack Int @default(0) @db.TinyInt\n hijack_price Float @default(0)\n hijack_desc String? @db.VarChar(512)\n hijack_download_speed BigInt?\n hijack_upload_speed BigInt?\n hijack_quota_day BigInt?\n hijack_quota_night BigInt?\n date_end_contract BigInt?\n actif_until BigInt?\n forfait_internet Int @default(0) @db.TinyInt\n radius_user String @db.VarChar(24)\n radius_pwd String @db.VarChar(16)\n radius_conso Boolean @default(false)\n\n @@index([date_orig], map: \"date_orig\")\n @@index([delivery_id], map: \"delivery_id\")\n @@index([device_id], map: \"device_id\")\n @@index([id, status], map: \"id\")\n @@index([product_id], map: \"product_id\")\n}\n\nmodel service_snapshot {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n date BigInt @db.UnsignedBigInt\n account_id Int @db.UnsignedInt\n service_id Int @db.UnsignedInt\n quota_day BigInt @default(0) @db.UnsignedBigInt\n quota_night BigInt @default(0) @db.UnsignedBigInt\n\n @@index([account_id], map: \"account_id\")\n @@index([service_id], map: \"service_id\")\n}\n\nmodel soumission {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id BigInt\n name String @db.VarChar(64)\n po String? @db.VarChar(64)\n date String @db.VarChar(10)\n tax Int @db.UnsignedTinyInt\n materiel String? @db.LongText\n mensuel String? @db.LongText\n text String? @db.Text\n\n @@index([account_id], map: \"account_id\")\n}\n\nmodel soumission_template {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n name String @db.VarChar(64)\n materiel String @db.LongText\n mensuel String @db.LongText\n}\n\nmodel staff {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n status Int @db.TinyInt\n username String @unique(map: \"username\") @db.VarChar(32)\n password String @db.VarChar(128)\n vpn String @db.VarChar(64)\n first_name String @db.VarChar(64)\n last_name String @db.VarChar(64)\n email String @db.VarChar(64)\n ext String @db.VarChar(16)\n cell String @db.VarChar(16)\n gpin String? @db.VarChar(4)\n rights String @db.Text\n date_embauche String? @db.VarChar(20)\n fete String? @db.VarChar(16)\n supp String? @db.Text\n group_ad String @default(dbgenerated(\"()\")) @db.VarChar(64)\n dept_list String @db.Text\n notification String @db.Text\n darkmode Boolean @default(false)\n matricule_desjardins Int? @db.UnsignedInt\n compagnie_desjardins String? @db.VarChar(8)\n ldap_id Int?\n}\n\nmodel staff_dispo {\n id Int @id @default(autoincrement()) @db.TinyInt\n day_num Int @db.TinyInt\n staff_id Int?\n}\n\nmodel staff_supp {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n nom String @db.VarChar(64)\n staff_ids String @db.VarChar(128)\n}\n\nmodel tele_carte {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n delivery_id Int @unique(map: \"delivery_id\") @default(0) @db.UnsignedInt\n service_id Int @db.UnsignedInt\n channels String @db.Text\n}\n\nmodel tele_channel {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n proprio String @db.VarChar(128)\n poste String @db.VarChar(128)\n pack_min Int @default(0) @db.UnsignedTinyInt\n pack_redevance Decimal @default(0.00) @db.Decimal(5, 2)\n pack_prix_vendu Decimal @default(0.00) @db.Decimal(5, 2)\n carte_percentage Decimal @db.Decimal(5, 2)\n carte_redevance_min Decimal @db.Decimal(5, 2)\n carte_prix_vendu Decimal @db.Decimal(5, 2)\n monthly_min Decimal @default(0.00) @db.Decimal(5, 2)\n has_penetration_rate Int @default(0) @db.UnsignedTinyInt\n penetration_actuel Decimal @default(0.00) @db.Decimal(3, 2)\n is_commercial Int @default(0) @db.UnsignedTinyInt\n note String @db.Text\n epgId Int @default(0) @db.UnsignedInt\n uptele_no Int @db.UnsignedInt\n uptele_code String @db.VarChar(32)\n abbr String @db.VarChar(32)\n groupe_id Int @default(0) @db.UnsignedInt\n ccsa_packageID Int @db.UnsignedInt\n ccsa_desc String @db.VarChar(256)\n rapport_bell Int @default(0) @db.TinyInt\n}\n\nmodel tele_groupe {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n nom String @db.VarChar(128)\n small_desc String @db.VarChar(128)\n}\n\nmodel tele_network {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n network_name String @db.VarChar(128)\n fournisseur String @db.VarChar(128)\n}\n\nmodel tele_pack {\n id Int @id @default(autoincrement())\n product_id Int @db.UnsignedInt\n channels String @db.Text\n actif Boolean @default(true)\n ccsa_packageID Int @db.UnsignedInt\n ccsa_desc String @db.VarChar(256)\n rapport_bell Int @default(0) @db.TinyInt\n bell_name String? @db.VarChar(64)\n epgId Int? @db.UnsignedInt\n}\n\nmodel tele_penetration {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n id_channel Int @db.UnsignedInt\n percentage Decimal @db.Decimal(3, 2)\n prix Decimal @db.Decimal(10, 5)\n}\n\nmodel tele_sub_archive {\n id Int @id @default(autoincrement())\n date_archive String @db.VarChar(16)\n subs String @db.Text\n}\n\nmodel tele_wiz {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id Int @db.UnsignedInt\n delivery_id Int @db.UnsignedInt\n ticket_id Int @db.UnsignedInt\n nb_stb Int @db.UnsignedTinyInt\n credit Int @db.UnsignedTinyInt\n fbase Int @db.UnsignedInt\n fthem String @db.Text\n}\n\nmodel tv_mac {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n service_id Int @db.UnsignedInt\n mac String @db.VarChar(12)\n}\n\nmodel ticket {\n id BigInt @id @default(autoincrement()) @db.UnsignedBigInt\n ost_id Int? @db.UnsignedInt\n parent BigInt @default(0)\n account_id BigInt?\n delivery_id BigInt @default(0)\n bon_id Int? @db.UnsignedInt\n subject String? @db.VarChar(256)\n dept_id Int?\n open_by Int @default(1)\n email_from String @db.VarChar(128)\n assign_to Int @default(0)\n status String @default(dbgenerated(\"(open)\")) @db.VarChar(32)\n due_date BigInt @default(0)\n due_time String @default(dbgenerated(\"(day)\")) @db.VarChar(8)\n date_create BigInt?\n last_update BigInt?\n date_closed String @default(dbgenerated(\"()\")) @db.VarChar(16)\n pending_to_open BigInt @default(0) @db.UnsignedBigInt\n waiting_for BigInt? @db.UnsignedBigInt\n lock_name String @db.VarChar(64)\n public Boolean? @default(false)\n priority Int @default(2) @db.TinyInt\n install_success Int @default(0) @db.TinyInt\n wizard String? @db.Text\n wizard_fibre String? @db.VarChar(64)\n important Int @default(0) @db.TinyInt\n followed_by String @db.Text\n participant String @db.Text\n update_timestamp DateTime @default(now()) @db.Timestamp(0)\n closed_by Int @default(0) @db.UnsignedInt\n\n @@index([account_id], map: \"account_id\")\n @@index([assign_to], map: \"assign_to\")\n @@index([dept_id], map: \"dept_id\")\n}\n\nmodel ticket_calendar_lock {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n date_lock BigInt @default(0) @db.UnsignedBigInt\n dept_id Int @default(12) @db.UnsignedInt\n nb_install Int @default(0) @db.UnsignedSmallInt\n create_by Int @db.UnsignedInt\n update_by Int @db.UnsignedInt\n last_update DateTime @default(now()) @db.Timestamp(0)\n\n @@unique([date_lock, dept_id], map: \"date_dept\")\n}\n\nmodel ticket_calendar_staff_lock {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n date BigInt\n staff_id Int @db.UnsignedInt\n}\n\nmodel ticket_conge {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id Int @db.UnsignedInt\n name String @db.VarChar(128)\n date BigInt @db.UnsignedBigInt\n desc String @db.VarChar(255)\n ticket_id Int? @db.UnsignedInt\n\n @@index([account_id], map: \"account_id\")\n}\n\nmodel ticket_dept {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n parent Int @default(0)\n name String @unique(map: \"name\") @default(dbgenerated(\"()\")) @db.VarChar(32)\n hasChild Int @default(0) @db.SmallInt\n email String @db.VarChar(64)\n manager_id Int @default(0) @db.UnsignedInt\n member_only Boolean @default(false)\n protected Boolean @default(false)\n default_staff Int @default(0) @db.UnsignedInt\n default_follow String @default(dbgenerated(\"(0)\")) @db.VarChar(64)\n}\n\nmodel ticket_msg {\n id BigInt @id @default(autoincrement()) @db.UnsignedBigInt\n ticket_id BigInt\n staff_id BigInt @default(0)\n msg String? @db.MediumText\n date_orig BigInt?\n unread_csv String @db.MediumText\n public Boolean? @default(false)\n important Int @default(0) @db.TinyInt\n update_timestamp DateTime @default(now()) @db.Timestamp(0)\n\n @@index([staff_id], map: \"staff_id\")\n @@index([ticket_id], map: \"ticket_id\")\n}\n\nmodel ticket_template {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n name String @db.VarChar(128)\n template String @db.Text\n}\n\n/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.\nmodel tmp {\n id Int @db.UnsignedInt\n prive String @db.VarChar(20)\n public String @db.VarChar(20)\n\n @@ignore\n}\n\nmodel tmp_vpn {\n id Int @id\n username String @db.VarChar(64)\n password String @db.VarChar(64)\n ad_done Boolean @default(false)\n tacacs Boolean @default(false)\n m Int @default(2000) @db.UnsignedInt\n}\n\nmodel bon_travail {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n date BigInt? @db.UnsignedBigInt\n account_id Int @db.UnsignedInt\n tech1 Int? @db.UnsignedInt\n heure_arrive_t1 String? @db.VarChar(10)\n heure_depart_t1 String? @db.VarChar(10)\n tech2 Int? @db.UnsignedInt\n heure_arrive_t2 String? @db.VarChar(10)\n heure_depart_t2 String? @db.VarChar(10)\n note String? @db.Text\n subtotal Decimal? @db.Decimal(10, 2)\n tps Decimal? @db.Decimal(10, 2)\n tvq Decimal? @db.Decimal(10, 2)\n total Decimal? @db.Decimal(10, 2)\n}\n\nmodel bon_travail_item {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n bon_id Int @db.UnsignedInt\n product_id Int @db.UnsignedInt\n qte Int\n price Decimal @db.Decimal(10, 2)\n desc String @db.Text\n}\n\nmodel checklist_relais {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n site_id Int @unique(map: \"site_id\") @db.UnsignedInt\n site_name String? @db.VarChar(128)\n account_id Int @db.UnsignedInt\n priority Int @default(2) @db.UnsignedTinyInt\n done Int @default(0) @db.UnsignedTinyInt\n equipement String? @db.Text\n connecteur String? @db.Text\n grounding String? @db.Text\n surge_lightning String? @db.Text\n switch_poe String? @db.Text\n switch_giga_shield String? @db.Text\n batterie String? @db.Text\n solidity String? @db.Text\n redondance String? @db.Text\n antenne_58_360 String? @db.Text\n antenne_24_360 String? @db.Text\n rspro_maj String? @db.Text\n boite String? @db.Text\n cable String? @db.Text\n staros_ubnt String? @db.Text\n autre String? @db.Text\n}\n\n/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments\nmodel conference {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n room_id Int @db.UnsignedInt\n time_start String @db.VarChar(16)\n time_end String @db.VarChar(16)\n name String @db.VarChar(128)\n description String? @db.Text\n host Int @db.UnsignedInt\n participant String @db.Text\n}\n\nmodel conference_room {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n name String @db.VarChar(128)\n status Int @default(1) @db.TinyInt\n location String? @db.VarChar(128)\n description String? @db.Text\n}\n\nmodel fournisseur {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n nom String @db.VarChar(128)\n email String @db.VarChar(64)\n actif Boolean @default(true)\n}\n\nmodel notice_gui {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n staff_id Int @db.UnsignedInt\n message String @db.Text\n is_read Int @default(0)\n timestamp String @db.VarChar(10)\n}\n\nmodel promo {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n name String? @db.VarChar(64)\n desc String? @db.Text\n date_start BigInt? @db.UnsignedBigInt\n date_end BigInt? @db.UnsignedBigInt\n date_orig BigInt?\n visible_until BigInt?\n actif Int @default(0) @db.TinyInt\n}\n\nmodel stbs {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n mac String @unique(map: \"mac\") @db.VarChar(32)\n sn String @db.VarChar(32)\n targo String? @db.VarChar(16)\n}\n\nmodel tech_dispo {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n date BigInt @unique(map: \"date\") @db.UnsignedBigInt\n tech Int? @db.UnsignedInt\n}\n\nenum phone_addr_enhanced_capable {\n Y\n N\n}\n\n/// ************** DEPRECATED ********************************************\nmodel debug {\n id BigInt @id @default(autoincrement())\n autor String? @db.VarChar(32)\n url String? @db.VarChar(128)\n date_last BigInt?\n desc String? @db.MediumText\n note4autor String? @db.MediumText\n note4dev String? @db.MediumText\n status String? @db.VarChar(64)\n}\n\nmodel carte_temps {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n week Int @db.UnsignedTinyInt\n year Int? @db.UnsignedInt\n date BigInt @db.UnsignedBigInt\n staff_id BigInt @db.UnsignedBigInt\n start_am BigInt? @db.UnsignedBigInt\n end_am BigInt? @db.UnsignedBigInt\n start_pm BigInt? @db.UnsignedBigInt\n end_pm BigInt? @db.UnsignedBigInt\n start_night BigInt? @db.UnsignedBigInt\n end_night BigInt? @db.UnsignedBigInt\n relais Float?\n comment String? @db.Text\n note_int String? @db.Text\n conge Int @default(0) @db.UnsignedTinyInt\n appr String? @db.VarChar(8)\n appr_dir String? @db.VarChar(8)\n\n @@index([staff_id], map: \"staff_id\")\n}\n\nmodel carte_temps_periode {\n id Int @id @default(autoincrement()) @db.UnsignedSmallInt\n debut String @db.VarChar(16)\n fin String @db.VarChar(16)\n paid String @db.VarChar(16)\n periode Int @db.UnsignedTinyInt\n annee Int @db.UnsignedSmallInt\n}\n\nmodel banque_heure_staff {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n staff_id Int @db.UnsignedInt\n week Int @db.UnsignedTinyInt\n year Int @db.UnsignedSmallInt\n sunday String? @db.VarChar(16)\n heure Float\n\n @@index([staff_id], map: \"staff_id\")\n}\n\nmodel hour_bank {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id BigInt @db.UnsignedBigInt\n remaining_time Int @default(0)\n expiration_date BigInt @default(0) @db.UnsignedBigInt\n note String? @db.MediumText\n recurrence Int @default(0) @db.UnsignedTinyInt\n reset_value Int @default(0) @db.UnsignedSmallInt\n\n @@index([account_id], map: \"account_id\")\n}\n\nmodel hour_bank_detail {\n id Int @id @default(autoincrement())\n hour_id Int\n staff_id BigInt? @db.UnsignedBigInt\n date_orig BigInt @db.UnsignedBigInt\n used_time Int @default(0) @db.SmallInt\n ticket_id BigInt? @db.UnsignedBigInt\n working_order String? @db.VarChar(16)\n detail String? @db.MediumText\n\n @@index([hour_id], map: \"hour_id\")\n}\n\nmodel test {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n text String @db.Text\n c2 Int @default(1)\n}\n\n//this table is for CSS class only, no other uses\nmodel account_memo_template {\n id Int @id @default(autoincrement())\n name String @db.VarChar(32)\n color String @db.VarChar(6)\n bcolor String @db.VarChar(6)\n border String @default(dbgenerated(\"(000000)\")) @db.VarChar(6)\n}\n\n//not used\nmodel notes {\n id Int @id @default(autoincrement())\n account_id Int @db.UnsignedInt\n notes String @db.MediumText\n}\n\n//NOT USED\nmodel email {\n id Int @id @default(autoincrement())\n account_id BigInt?\n email String? @db.VarChar(128)\n password String? @db.VarChar(128)\n}\n\n//not relevant to ticket module\nmodel client_pwd {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id Int @db.UnsignedInt\n date BigInt @db.UnsignedBigInt\n uid String @db.VarChar(32)\n used Boolean @default(false)\n}\n\n//NO USES FOR TICKETING PURPOSES\nmodel account_profile {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id Int @db.UnsignedInt\n profile_id String @db.VarChar(64)\n address_id String @db.VarChar(64)\n card_id String @db.VarChar(64)\n token String @db.VarChar(32)\n initial_transaction String @db.VarChar(128)\n}\n\n//not relevant to ticket module\nmodel deposit_slip {\n id Int @id @default(autoincrement())\n customer_id String? @db.VarChar(32)\n name String? @db.VarChar(512)\n amount Float @default(0)\n type String @db.VarChar(32)\n desc String? @db.VarChar(255)\n date BigInt? @db.UnsignedBigInt\n}\n\n//this table display suspended account\nmodel account_suspension {\n id Int @id @default(autoincrement()) @db.UnsignedInt\n account_id Int @unique(map: \"account_id\") @db.UnsignedInt\n date_start BigInt @db.UnsignedBigInt\n date_end BigInt @db.UnsignedBigInt\n note String @db.VarChar(128)\n}\n", + "runtimeDataModel": { + "models": {}, + "enums": {}, + "types": {} + } +} + +config.runtimeDataModel = JSON.parse("{\"models\":{\"account\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"customer_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_last\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_expire\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"language_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"country_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"currency_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"group_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"misc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"first_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"middle_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"last_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mandataire\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email_autre\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"company\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"contact\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address1\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address2\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"city\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"state\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"zip\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tel_home\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tel_office\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tel_office_ext\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"cell\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"fax\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"invoice_delivery\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"land_owner\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"frais\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"ppa\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"ppa_all_invoice\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ppa_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ppa_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ppa_branch\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ppa_account\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ppa_amount\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"ppa_amount_buffer\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"ppa_all_tmp\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ppa_fixed\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"commercial\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"vip\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"tax_group\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"data_check\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_by\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"notes_client\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"keyword\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"terminate_reason\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"terminate_cie\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"terminate_note\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"terminate_date\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"call\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"pub\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"portal_client_log\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"mauvais_payeur\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"renew_phone\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"ppa_cc\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"stripe_id\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"account_group\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"group_name\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"account_memo\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"last_updated\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"staff_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"memo\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"color\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"bcolor\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"border\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"compta_comptes\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"category\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"num_compte\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"desc\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"compta_comptes_soldes\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"num_compte\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"year\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"amount\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"compta_journal_ecriture\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"num\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"customer_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"full_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"desc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mo\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"em\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"compta_journal_ecriture_bk\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"num\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"customer_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"full_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"desc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mo\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"em\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"compta_journal_ecriture_detail\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"journal_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"num_compte\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"amount\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"action\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"compta_journal_ecriture_detail_bk\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"journal_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"num_compte\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"amount\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"action\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"compta_periode\":{\"fields\":[{\"name\":\"month\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"compta_ppa_file_id\":{\"fields\":[{\"name\":\"last_id\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"compta_setup\":{\"fields\":[{\"name\":\"setup_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"period_month\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ppa_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"excedent_max\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"month_closed\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"pay_week_closed\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"attachment_ext\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"netadmin_dispo\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"imap_token\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"credit_code\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"desc\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"tax\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"rate\",\"kind\":\"scalar\",\"type\":\"Float\"}],\"dbName\":null},\"tax_group\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tax\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"td_payable\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ticket_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"invoice\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_invoice\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"fournisseur\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"montant\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"devise\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"methode\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"reference\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_paiement\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"releve\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"conso\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"ip_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"total\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"total_day\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"total_night\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"conso_archive\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"ip_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"total\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"total_day\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"total_night\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"conso_avis\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"delivery_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"service_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ip_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"avis\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"conso_radius\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"download\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"upload\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"nb_sess\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"conso_radius_daily\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"download_nuit\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"upload_nuit\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"download_jour\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"upload_jour\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"conso_radius_daily2\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"download_nuit\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"upload_nuit\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"download_jour\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"upload_jour\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"conso_radius_hourly\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"download\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"upload\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"conso_radius_monthly\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"nuit\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"jour\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"conso_radius_monthly2\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"nuit\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"jour\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"delivery\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"address1\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address2\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"city\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"state\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"zip\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"longitude\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"latitude\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"tel_home\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tel_office\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tel_office_ext\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"cell\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"fax\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"quota_max_day\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"quota_max_night\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"contact\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expanded\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"placemarks_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"epg_subid\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"delivery_history\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"address1\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address2\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"city\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"state\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"zip\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"device\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"delivery_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"category\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"manufacturier\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"model\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sn\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mac\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"manage\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"port\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"protocol\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"manage_cli\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"port_cli\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"protocol_cli\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"pass\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"parent\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"device_archive\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"delivery_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"category\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"manufacturier\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"model\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sn\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mac\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"manage\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"port\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"protocol\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"manage_cli\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"port_cli\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"protocol_cli\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"pass\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"parent\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"device_attr\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"device_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"attr\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"value\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"device_link\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"parent\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"child\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"device_template\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"nom\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"device_template_attr\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"template_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"attr\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"default_val\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"product\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"sku\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"active\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"price_recurr_type\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"price_recurr_weekday\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"price_recurr_week\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"price_recurr_schedule\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"download_speed\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"upload_speed\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"night_package\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"quota_day\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"quota_night\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"category\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"uniq_charge\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"commercial\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"portal_hidden\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"inv_keep\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"inv_tag\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"inv_threshold\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"inv_qte\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"emplacement\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"list_tech\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"combo_ready\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"fibre_lineprofile\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"fibre_serviceprofile\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"product_cat\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"notes\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"num_compte\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"combo_dispo\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"product_format\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"product_idx\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"product_fournisseur\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"product_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"nom_fournisseur\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"prix_us\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"prix_achat\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"prix_livr\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"delais_livr\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"product_profile\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"product_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"device_type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"line_profile\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"service_profile\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"product_speciaux\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"product_zone_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"product_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"price_install\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"exp_timestamp\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"duree_contrat\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"product_translate\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"product_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"language_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description_short\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description_full\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"product_zone\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"zoneNumber\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"product_zone_placemarks\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"product_zone_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"placemarks_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"inventaire_log\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"prod_tag\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"staff_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"action\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"qte\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"timestamp\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"phone\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"service_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"phone_num\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"note\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"fournisseur\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"phone_addr\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"street_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"apt\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"street_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"city\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"state\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"zip\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"first_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"last_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"info\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"enhanced_capable\",\"kind\":\"enum\",\"type\":\"phone_addr_enhanced_capable\"},{\"name\":\"code_cauca\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"class_service\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"phone_comwave\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"service_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"requestId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"phoneNumber\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"reason\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"phone_note\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"rate_center\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"fournisseur\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"note\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"phone_provisioning\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"delivery_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"service_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"app\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mac\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"internationnal\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_update\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"phonecall_channel\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"timestamp\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"max_tinktell\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"max_outgoing_thinktell\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"max_comwave\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"max_outgoing_comwave\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"max_total\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"phonecall_log_2025\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"caller_id_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"caller_id_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"destination_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"start_stamp\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"answer_stamp\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"end_stamp\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"duration\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"billing\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"hangup_cause\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"uuid\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"phonecall_log_2026\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"caller_id_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"caller_id_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"destination_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"start_stamp\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"answer_stamp\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"end_stamp\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"duration\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"billing\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"hangup_cause\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"uuid\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"voicemeup\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"duration\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"destination\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"country\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"state\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"district\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"amount\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"uuid\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"pbx\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"delivery_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"service_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"vm_password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"has_vm\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"vm_email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"keep_msg\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"vm_disk_quota\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"int_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"language\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"call_911\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"max_calls\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"call_timeout\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"user_context\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"country_whitelist\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_origin\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_update\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"update_by\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"pbx_app\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"pbx_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mac\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"app\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"note\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_origin\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_update\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"update_by\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"pbx_com\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"delivery_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"service_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"failover\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"auth_method\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ip\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"int_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"country_whitelist\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"language\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"call_911\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"max_calls\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"user_context\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_origin\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_update\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"update_by\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"pbx_com_wl\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"country_whitelist\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"pbx_fax\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"service_id\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"payment\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"amount\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"applied_amt\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"memo\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"reference\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"excedent\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"correction\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"cr\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"uniqsess\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"payment_item\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"payment_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"invoice_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"amount\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"passwords_manager\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"login\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"pass\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"url\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"category\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"subcategory\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"desc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"notes\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"logs\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_last\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"users_granted\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"group_granted\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_by\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"keywords\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"passwords_manager_cat\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"desc\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"passwords_manager_group\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"users\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"notification\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"staff_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"endpoint\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"authToken\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"publicKey\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"contentEncoding\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"plateforme\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"notification_payload\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"notification_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"payload\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"timestamp\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"municipalite\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"nom\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"administration\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"often_used\",\"kind\":\"scalar\",\"type\":\"Boolean\"}],\"dbName\":null},\"sommaire_porte\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"fibre_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"id_adresse\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"id_subvention\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"adresse_subvention\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ville_subvention\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"latitude\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"longitude\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"contest_adresse\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"new_adresse\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"placemarks_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"state\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name_en\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name_fr\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"abbrev\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"country\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"licence\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"nom\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"can_manage\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"licence_key\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"licence_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"licence_key\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_expire\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"ip\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"service_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"ip\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"prive\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ip_relais\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"technology\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name_access_point\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mac\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"web_link\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"link_relais\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ip_conso\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"actif\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"cidr\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"last_updated\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"ip_admin\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ip\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"ip_history\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"delivery_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"service_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ip\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"ip_pp\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ip_prive\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ip_public\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"ip_id\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"ip_static\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ip\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"static\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"reverse\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"ip_targo\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ip\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"cidr\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"invoice\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"process_status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"billing_status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"refund_status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"print_status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"total_amt\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"billed_amt\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"due_date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"notes\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"template_message\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email_status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"working_order\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"correction\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ppa_charge\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"credit_code_id\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"invoice_bk\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"process_status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"billing_status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"refund_status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"print_status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"total_amt\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"billed_amt\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"due_date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"notes\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"template_message\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email_status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"working_order\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"correction\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ppa_charge\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"credit_code_id\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"invoice_call\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"amount\",\"kind\":\"scalar\",\"type\":\"Float\"}],\"dbName\":null},\"invoice_item\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"service_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"invoice_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"sku\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"product_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"unitary_price\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"nosub\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"delivery_name\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"invoice_item_bk\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"service_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"invoice_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"sku\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"product_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"unitary_price\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"nosub\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"delivery_name\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"invoice_msg_template\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"message\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"invoice_tax\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"invoice_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"tax_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tax_description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tax_rate\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"amount\",\"kind\":\"scalar\",\"type\":\"Float\"}],\"dbName\":null},\"invoice_tax_bk\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"invoice_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"tax_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tax_description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tax_rate\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"amount\",\"kind\":\"scalar\",\"type\":\"Float\"}],\"dbName\":null},\"accord_paiement\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date_accord\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_echeance\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_coupure\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"raison_changement\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"montant\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"method\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ferie\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"note\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"staff_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date_create\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"autologin\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"staff\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"statement\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"number\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"reference\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"amt\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"paid_amt\",\"kind\":\"scalar\",\"type\":\"Float\"}],\"dbName\":null},\"intranet_doc\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"msg\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attachment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"unread_csv\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"path_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"priority_order\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"update_timestamp\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"intranet_doc_paths\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"parent_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"priority_order\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"intranet_doc_reply\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"feed_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"msg\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attachment\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"update_timestamp\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"intranet_feed\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"msg\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attachment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"unread_csv\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"intranet_feed_reply\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"feed_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"msg\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attachment\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"intranet_techniciens\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"msg\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attachment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"unread_csv\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"intranet_techniciens_reply\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"feed_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"msg\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attachment\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"intranet_techno\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"msg\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attachment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"unread_csv\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"intranet_techno_reply\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"feed_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"msg\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attachment\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"fibre\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"terrain\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"rue\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ville\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"zip\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ontid\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"sn\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tech\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"info_connect\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"frame\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"slot\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"port\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"vlan_manage\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"vlan_internet\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"vlan_telephone\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"vlan_tele\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"manage_service_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"internet_service_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"telephone_service_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"tele_service_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"service_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"nb_drop\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"placemarks_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"appartements_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"latitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"longitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"boitier_pas_install\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"suite\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"distance\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"nb_portees\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"fibre_olt\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"tech\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ip\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"fibre_service_port\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"last_service_id\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"fibre_suivi\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"customer_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"first_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"last_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"city\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"zip\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"longitude\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"latitude\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"called\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"create_by\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"note\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"fibre_tech\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"fibre_videotron\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"download\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"upload\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ethernet\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"interface\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"gantt\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"gantt\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"closed\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"gantt_template\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"gantt\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"project\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"desc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_start\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_end\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"manager_name\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"project_cmd\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"project_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"vendeur\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"no_cmd\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"po\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"staff_id\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"project_cmd_item\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"cmd_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"product_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"desc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"qte\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"usd\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"recu\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"qte_recu\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"date_recu\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"eta\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"project_manager_cat\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"pos\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"color\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"text_color\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"project_manager_checklist\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"task_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ticket_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"desc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"poids\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"done\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"project_manager_comment\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"task_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"staff_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"unread\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"project_manager_task\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"category_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"pos\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"titre\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"color\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"text_color\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"desc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ticket_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_start\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_deadline\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"deadline_watch\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"assign_staff\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"priority\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"done\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"create_by\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date_creation\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_update\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"service\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_suspended\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_next_invoice\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_last_invoice\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"delivery_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"device_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"product_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"payment_recurrence\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"hijack\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"hijack_price\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"hijack_desc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"hijack_download_speed\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"hijack_upload_speed\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"hijack_quota_day\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"hijack_quota_night\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_end_contract\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"actif_until\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"forfait_internet\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"radius_user\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"radius_pwd\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"radius_conso\",\"kind\":\"scalar\",\"type\":\"Boolean\"}],\"dbName\":null},\"service_snapshot\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"service_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"quota_day\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"quota_night\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"soumission\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"po\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tax\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"materiel\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mensuel\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"text\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"soumission_template\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"materiel\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mensuel\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"staff\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"vpn\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"first_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"last_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ext\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"cell\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"gpin\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"rights\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_embauche\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"fete\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"supp\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"group_ad\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"dept_list\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"notification\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"darkmode\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"matricule_desjardins\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"compagnie_desjardins\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ldap_id\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"staff_dispo\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"day_num\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"staff_id\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"staff_supp\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"nom\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"staff_ids\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"tele_carte\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"delivery_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"service_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"channels\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"tele_channel\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"proprio\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"poste\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"pack_min\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"pack_redevance\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"pack_prix_vendu\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"carte_percentage\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"carte_redevance_min\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"carte_prix_vendu\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"monthly_min\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"has_penetration_rate\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"penetration_actuel\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"is_commercial\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"note\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"epgId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"uptele_no\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"uptele_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"abbr\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"groupe_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ccsa_packageID\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ccsa_desc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"rapport_bell\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"tele_groupe\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"nom\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"small_desc\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"tele_network\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"network_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"fournisseur\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"tele_pack\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"product_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"channels\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"actif\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"ccsa_packageID\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ccsa_desc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"rapport_bell\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"bell_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"epgId\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"tele_penetration\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"id_channel\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"percentage\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"prix\",\"kind\":\"scalar\",\"type\":\"Decimal\"}],\"dbName\":null},\"tele_sub_archive\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date_archive\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"subs\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"tele_wiz\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"delivery_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ticket_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"nb_stb\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"credit\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"fbase\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"fthem\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"tv_mac\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"service_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"mac\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"ticket\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"ost_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"parent\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"delivery_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"bon_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"subject\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"dept_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"open_by\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"email_from\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"assign_to\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"due_date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"due_time\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_create\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"last_update\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_closed\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"pending_to_open\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"waiting_for\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"lock_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"public\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"priority\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"install_success\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"wizard\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"wizard_fibre\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"important\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"followed_by\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"participant\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"update_timestamp\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"closed_by\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"ticket_calendar_lock\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date_lock\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"dept_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"nb_install\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"create_by\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"update_by\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"last_update\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"ticket_calendar_staff_lock\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"staff_id\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"ticket_conge\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"desc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ticket_id\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"ticket_dept\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"parent\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"hasChild\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"manager_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"member_only\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"protected\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"default_staff\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"default_follow\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"ticket_msg\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"ticket_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"staff_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"msg\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"unread_csv\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"public\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"important\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"update_timestamp\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"ticket_template\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"template\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"tmp_vpn\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ad_done\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"tacacs\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"m\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"bon_travail\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"tech1\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"heure_arrive_t1\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"heure_depart_t1\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tech2\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"heure_arrive_t2\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"heure_depart_t2\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"note\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"subtotal\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"tps\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"tvq\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"total\",\"kind\":\"scalar\",\"type\":\"Decimal\"}],\"dbName\":null},\"bon_travail_item\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"bon_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"product_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"qte\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"desc\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"checklist_relais\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"site_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"site_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"priority\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"done\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"equipement\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"connecteur\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"grounding\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"surge_lightning\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"switch_poe\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"switch_giga_shield\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"batterie\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"solidity\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"redondance\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"antenne_58_360\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"antenne_24_360\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"rspro_maj\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"boite\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"cable\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"staros_ubnt\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"autre\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"conference\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"room_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"time_start\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"time_end\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"host\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"participant\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"conference_room\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"location\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"fournisseur\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"nom\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"actif\",\"kind\":\"scalar\",\"type\":\"Boolean\"}],\"dbName\":null},\"notice_gui\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"staff_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"message\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_read\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"timestamp\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"promo\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"desc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_start\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_end\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"visible_until\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"actif\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"stbs\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"mac\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sn\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"targo\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"tech_dispo\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"tech\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"debug\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"autor\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"url\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date_last\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"desc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"note4autor\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"note4dev\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"carte_temps\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"week\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"year\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"staff_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"start_am\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"end_am\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"start_pm\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"end_pm\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"start_night\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"end_night\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"relais\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"note_int\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"conge\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"appr\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"appr_dir\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"carte_temps_periode\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"debut\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"fin\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"paid\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"periode\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"annee\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"banque_heure_staff\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"staff_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"week\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"year\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"sunday\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"heure\",\"kind\":\"scalar\",\"type\":\"Float\"}],\"dbName\":null},\"hour_bank\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"remaining_time\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"expiration_date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"note\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"recurrence\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"reset_value\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"hour_bank_detail\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"hour_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"staff_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_orig\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"used_time\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"ticket_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"working_order\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"detail\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"test\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"text\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"c2\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null},\"account_memo_template\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"color\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"bcolor\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"border\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"notes\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"notes\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"email\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"client_pwd\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"uid\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"used\",\"kind\":\"scalar\",\"type\":\"Boolean\"}],\"dbName\":null},\"account_profile\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"profile_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"card_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"initial_transaction\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"deposit_slip\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"customer_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"amount\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"desc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"BigInt\"}],\"dbName\":null},\"account_suspension\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"account_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date_start\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"date_end\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"note\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}") + +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.mysql.js"), + + getQueryCompilerWasmModule: async () => { + const { wasm } = await import("@prisma/client/runtime/query_compiler_fast_bg.mysql.wasm-base64.js") + return await decodeBase64AsWasm(wasm) + }, + + importName: "./query_compiler_fast_bg.js" +} + + + +export type LogOptions = + 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never + +export interface PrismaClientConstructor { + /** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more Accounts + * const accounts = await prisma.account.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ + + new < + Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, + LogOpts extends LogOptions = LogOptions, + OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'], + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs + >(options: Prisma.Subset ): PrismaClient +} + +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more Accounts + * const accounts = await prisma.account.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ + +export interface PrismaClient< + in LogOpts extends Prisma.LogLevel = never, + in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, + in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs +> { + [K: symbol]: { types: Prisma.TypeMap['other'] } + + $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; + + /** + * Connect with the database + */ + $connect(): runtime.Types.Utils.JsPromise; + + /** + * Disconnect from the database + */ + $disconnect(): runtime.Types.Utils.JsPromise; + +/** + * Executes a prepared raw query and returns the number of affected rows. + * @example + * ``` + * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; + + /** + * Executes a raw query and returns the number of affected rows. + * Susceptible to SQL injections, see documentation. + * @example + * ``` + * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; + + /** + * Performs a prepared raw query and returns the `SELECT` data. + * @example + * ``` + * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; + + /** + * Performs a raw query and returns the `SELECT` data. + * Susceptible to SQL injections, see documentation. + * @example + * ``` + * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') + * ``` + * + * Read more in our [docs](https://pris.ly/d/raw-queries). + */ + $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; + + + /** + * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. + * @example + * ``` + * const [george, bob, alice] = await prisma.$transaction([ + * prisma.user.create({ data: { name: 'George' } }), + * prisma.user.create({ data: { name: 'Bob' } }), + * prisma.user.create({ data: { name: 'Alice' } }), + * ]) + * ``` + * + * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions). + */ + $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise> + + $transaction(fn: (prisma: Omit) => runtime.Types.Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise + + $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, runtime.Types.Utils.Call, { + extArgs: ExtArgs + }>> + + /** + * `prisma.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.account_group`: Exposes CRUD operations for the **account_group** model. + * Example usage: + * ```ts + * // Fetch zero or more Account_groups + * const account_groups = await prisma.account_group.findMany() + * ``` + */ + get account_group(): Prisma.account_groupDelegate; + + /** + * `prisma.account_memo`: Exposes CRUD operations for the **account_memo** model. + * Example usage: + * ```ts + * // Fetch zero or more Account_memos + * const account_memos = await prisma.account_memo.findMany() + * ``` + */ + get account_memo(): Prisma.account_memoDelegate; + + /** + * `prisma.compta_comptes`: Exposes CRUD operations for the **compta_comptes** model. + * Example usage: + * ```ts + * // Fetch zero or more Compta_comptes + * const compta_comptes = await prisma.compta_comptes.findMany() + * ``` + */ + get compta_comptes(): Prisma.compta_comptesDelegate; + + /** + * `prisma.compta_comptes_soldes`: Exposes CRUD operations for the **compta_comptes_soldes** model. + * Example usage: + * ```ts + * // Fetch zero or more Compta_comptes_soldes + * const compta_comptes_soldes = await prisma.compta_comptes_soldes.findMany() + * ``` + */ + get compta_comptes_soldes(): Prisma.compta_comptes_soldesDelegate; + + /** + * `prisma.compta_journal_ecriture`: Exposes CRUD operations for the **compta_journal_ecriture** model. + * Example usage: + * ```ts + * // Fetch zero or more Compta_journal_ecritures + * const compta_journal_ecritures = await prisma.compta_journal_ecriture.findMany() + * ``` + */ + get compta_journal_ecriture(): Prisma.compta_journal_ecritureDelegate; + + /** + * `prisma.compta_journal_ecriture_bk`: Exposes CRUD operations for the **compta_journal_ecriture_bk** model. + * Example usage: + * ```ts + * // Fetch zero or more Compta_journal_ecriture_bks + * const compta_journal_ecriture_bks = await prisma.compta_journal_ecriture_bk.findMany() + * ``` + */ + get compta_journal_ecriture_bk(): Prisma.compta_journal_ecriture_bkDelegate; + + /** + * `prisma.compta_journal_ecriture_detail`: Exposes CRUD operations for the **compta_journal_ecriture_detail** model. + * Example usage: + * ```ts + * // Fetch zero or more Compta_journal_ecriture_details + * const compta_journal_ecriture_details = await prisma.compta_journal_ecriture_detail.findMany() + * ``` + */ + get compta_journal_ecriture_detail(): Prisma.compta_journal_ecriture_detailDelegate; + + /** + * `prisma.compta_journal_ecriture_detail_bk`: Exposes CRUD operations for the **compta_journal_ecriture_detail_bk** model. + * Example usage: + * ```ts + * // Fetch zero or more Compta_journal_ecriture_detail_bks + * const compta_journal_ecriture_detail_bks = await prisma.compta_journal_ecriture_detail_bk.findMany() + * ``` + */ + get compta_journal_ecriture_detail_bk(): Prisma.compta_journal_ecriture_detail_bkDelegate; + + /** + * `prisma.compta_periode`: Exposes CRUD operations for the **compta_periode** model. + * Example usage: + * ```ts + * // Fetch zero or more Compta_periodes + * const compta_periodes = await prisma.compta_periode.findMany() + * ``` + */ + get compta_periode(): Prisma.compta_periodeDelegate; + + /** + * `prisma.compta_ppa_file_id`: Exposes CRUD operations for the **compta_ppa_file_id** model. + * Example usage: + * ```ts + * // Fetch zero or more Compta_ppa_file_ids + * const compta_ppa_file_ids = await prisma.compta_ppa_file_id.findMany() + * ``` + */ + get compta_ppa_file_id(): Prisma.compta_ppa_file_idDelegate; + + /** + * `prisma.compta_setup`: Exposes CRUD operations for the **compta_setup** model. + * Example usage: + * ```ts + * // Fetch zero or more Compta_setups + * const compta_setups = await prisma.compta_setup.findMany() + * ``` + */ + get compta_setup(): Prisma.compta_setupDelegate; + + /** + * `prisma.credit_code`: Exposes CRUD operations for the **credit_code** model. + * Example usage: + * ```ts + * // Fetch zero or more Credit_codes + * const credit_codes = await prisma.credit_code.findMany() + * ``` + */ + get credit_code(): Prisma.credit_codeDelegate; + + /** + * `prisma.tax`: Exposes CRUD operations for the **tax** model. + * Example usage: + * ```ts + * // Fetch zero or more Taxes + * const taxes = await prisma.tax.findMany() + * ``` + */ + get tax(): Prisma.taxDelegate; + + /** + * `prisma.tax_group`: Exposes CRUD operations for the **tax_group** model. + * Example usage: + * ```ts + * // Fetch zero or more Tax_groups + * const tax_groups = await prisma.tax_group.findMany() + * ``` + */ + get tax_group(): Prisma.tax_groupDelegate; + + /** + * `prisma.td_payable`: Exposes CRUD operations for the **td_payable** model. + * Example usage: + * ```ts + * // Fetch zero or more Td_payables + * const td_payables = await prisma.td_payable.findMany() + * ``` + */ + get td_payable(): Prisma.td_payableDelegate; + + /** + * `prisma.conso`: Exposes CRUD operations for the **conso** model. + * Example usage: + * ```ts + * // Fetch zero or more Consos + * const consos = await prisma.conso.findMany() + * ``` + */ + get conso(): Prisma.consoDelegate; + + /** + * `prisma.conso_archive`: Exposes CRUD operations for the **conso_archive** model. + * Example usage: + * ```ts + * // Fetch zero or more Conso_archives + * const conso_archives = await prisma.conso_archive.findMany() + * ``` + */ + get conso_archive(): Prisma.conso_archiveDelegate; + + /** + * `prisma.conso_avis`: Exposes CRUD operations for the **conso_avis** model. + * Example usage: + * ```ts + * // Fetch zero or more Conso_avis + * const conso_avis = await prisma.conso_avis.findMany() + * ``` + */ + get conso_avis(): Prisma.conso_avisDelegate; + + /** + * `prisma.conso_radius`: Exposes CRUD operations for the **conso_radius** model. + * Example usage: + * ```ts + * // Fetch zero or more Conso_radii + * const conso_radii = await prisma.conso_radius.findMany() + * ``` + */ + get conso_radius(): Prisma.conso_radiusDelegate; + + /** + * `prisma.conso_radius_daily`: Exposes CRUD operations for the **conso_radius_daily** model. + * Example usage: + * ```ts + * // Fetch zero or more Conso_radius_dailies + * const conso_radius_dailies = await prisma.conso_radius_daily.findMany() + * ``` + */ + get conso_radius_daily(): Prisma.conso_radius_dailyDelegate; + + /** + * `prisma.conso_radius_daily2`: Exposes CRUD operations for the **conso_radius_daily2** model. + * Example usage: + * ```ts + * // Fetch zero or more Conso_radius_daily2s + * const conso_radius_daily2s = await prisma.conso_radius_daily2.findMany() + * ``` + */ + get conso_radius_daily2(): Prisma.conso_radius_daily2Delegate; + + /** + * `prisma.conso_radius_hourly`: Exposes CRUD operations for the **conso_radius_hourly** model. + * Example usage: + * ```ts + * // Fetch zero or more Conso_radius_hourlies + * const conso_radius_hourlies = await prisma.conso_radius_hourly.findMany() + * ``` + */ + get conso_radius_hourly(): Prisma.conso_radius_hourlyDelegate; + + /** + * `prisma.conso_radius_monthly`: Exposes CRUD operations for the **conso_radius_monthly** model. + * Example usage: + * ```ts + * // Fetch zero or more Conso_radius_monthlies + * const conso_radius_monthlies = await prisma.conso_radius_monthly.findMany() + * ``` + */ + get conso_radius_monthly(): Prisma.conso_radius_monthlyDelegate; + + /** + * `prisma.conso_radius_monthly2`: Exposes CRUD operations for the **conso_radius_monthly2** model. + * Example usage: + * ```ts + * // Fetch zero or more Conso_radius_monthly2s + * const conso_radius_monthly2s = await prisma.conso_radius_monthly2.findMany() + * ``` + */ + get conso_radius_monthly2(): Prisma.conso_radius_monthly2Delegate; + + /** + * `prisma.delivery`: Exposes CRUD operations for the **delivery** model. + * Example usage: + * ```ts + * // Fetch zero or more Deliveries + * const deliveries = await prisma.delivery.findMany() + * ``` + */ + get delivery(): Prisma.deliveryDelegate; + + /** + * `prisma.delivery_history`: Exposes CRUD operations for the **delivery_history** model. + * Example usage: + * ```ts + * // Fetch zero or more Delivery_histories + * const delivery_histories = await prisma.delivery_history.findMany() + * ``` + */ + get delivery_history(): Prisma.delivery_historyDelegate; + + /** + * `prisma.device`: Exposes CRUD operations for the **device** model. + * Example usage: + * ```ts + * // Fetch zero or more Devices + * const devices = await prisma.device.findMany() + * ``` + */ + get device(): Prisma.deviceDelegate; + + /** + * `prisma.device_archive`: Exposes CRUD operations for the **device_archive** model. + * Example usage: + * ```ts + * // Fetch zero or more Device_archives + * const device_archives = await prisma.device_archive.findMany() + * ``` + */ + get device_archive(): Prisma.device_archiveDelegate; + + /** + * `prisma.device_attr`: Exposes CRUD operations for the **device_attr** model. + * Example usage: + * ```ts + * // Fetch zero or more Device_attrs + * const device_attrs = await prisma.device_attr.findMany() + * ``` + */ + get device_attr(): Prisma.device_attrDelegate; + + /** + * `prisma.device_link`: Exposes CRUD operations for the **device_link** model. + * Example usage: + * ```ts + * // Fetch zero or more Device_links + * const device_links = await prisma.device_link.findMany() + * ``` + */ + get device_link(): Prisma.device_linkDelegate; + + /** + * `prisma.device_template`: Exposes CRUD operations for the **device_template** model. + * Example usage: + * ```ts + * // Fetch zero or more Device_templates + * const device_templates = await prisma.device_template.findMany() + * ``` + */ + get device_template(): Prisma.device_templateDelegate; + + /** + * `prisma.device_template_attr`: Exposes CRUD operations for the **device_template_attr** model. + * Example usage: + * ```ts + * // Fetch zero or more Device_template_attrs + * const device_template_attrs = await prisma.device_template_attr.findMany() + * ``` + */ + get device_template_attr(): Prisma.device_template_attrDelegate; + + /** + * `prisma.product`: Exposes CRUD operations for the **product** model. + * Example usage: + * ```ts + * // Fetch zero or more Products + * const products = await prisma.product.findMany() + * ``` + */ + get product(): Prisma.productDelegate; + + /** + * `prisma.product_cat`: Exposes CRUD operations for the **product_cat** model. + * Example usage: + * ```ts + * // Fetch zero or more Product_cats + * const product_cats = await prisma.product_cat.findMany() + * ``` + */ + get product_cat(): Prisma.product_catDelegate; + + /** + * `prisma.product_format`: Exposes CRUD operations for the **product_format** model. + * Example usage: + * ```ts + * // Fetch zero or more Product_formats + * const product_formats = await prisma.product_format.findMany() + * ``` + */ + get product_format(): Prisma.product_formatDelegate; + + /** + * `prisma.product_fournisseur`: Exposes CRUD operations for the **product_fournisseur** model. + * Example usage: + * ```ts + * // Fetch zero or more Product_fournisseurs + * const product_fournisseurs = await prisma.product_fournisseur.findMany() + * ``` + */ + get product_fournisseur(): Prisma.product_fournisseurDelegate; + + /** + * `prisma.product_profile`: Exposes CRUD operations for the **product_profile** model. + * Example usage: + * ```ts + * // Fetch zero or more Product_profiles + * const product_profiles = await prisma.product_profile.findMany() + * ``` + */ + get product_profile(): Prisma.product_profileDelegate; + + /** + * `prisma.product_speciaux`: Exposes CRUD operations for the **product_speciaux** model. + * Example usage: + * ```ts + * // Fetch zero or more Product_speciauxes + * const product_speciauxes = await prisma.product_speciaux.findMany() + * ``` + */ + get product_speciaux(): Prisma.product_speciauxDelegate; + + /** + * `prisma.product_translate`: Exposes CRUD operations for the **product_translate** model. + * Example usage: + * ```ts + * // Fetch zero or more Product_translates + * const product_translates = await prisma.product_translate.findMany() + * ``` + */ + get product_translate(): Prisma.product_translateDelegate; + + /** + * `prisma.product_zone`: Exposes CRUD operations for the **product_zone** model. + * Example usage: + * ```ts + * // Fetch zero or more Product_zones + * const product_zones = await prisma.product_zone.findMany() + * ``` + */ + get product_zone(): Prisma.product_zoneDelegate; + + /** + * `prisma.product_zone_placemarks`: Exposes CRUD operations for the **product_zone_placemarks** model. + * Example usage: + * ```ts + * // Fetch zero or more Product_zone_placemarks + * const product_zone_placemarks = await prisma.product_zone_placemarks.findMany() + * ``` + */ + get product_zone_placemarks(): Prisma.product_zone_placemarksDelegate; + + /** + * `prisma.inventaire_log`: Exposes CRUD operations for the **inventaire_log** model. + * Example usage: + * ```ts + * // Fetch zero or more Inventaire_logs + * const inventaire_logs = await prisma.inventaire_log.findMany() + * ``` + */ + get inventaire_log(): Prisma.inventaire_logDelegate; + + /** + * `prisma.phone`: Exposes CRUD operations for the **phone** model. + * Example usage: + * ```ts + * // Fetch zero or more Phones + * const phones = await prisma.phone.findMany() + * ``` + */ + get phone(): Prisma.phoneDelegate; + + /** + * `prisma.phone_addr`: Exposes CRUD operations for the **phone_addr** model. + * Example usage: + * ```ts + * // Fetch zero or more Phone_addrs + * const phone_addrs = await prisma.phone_addr.findMany() + * ``` + */ + get phone_addr(): Prisma.phone_addrDelegate; + + /** + * `prisma.phone_comwave`: Exposes CRUD operations for the **phone_comwave** model. + * Example usage: + * ```ts + * // Fetch zero or more Phone_comwaves + * const phone_comwaves = await prisma.phone_comwave.findMany() + * ``` + */ + get phone_comwave(): Prisma.phone_comwaveDelegate; + + /** + * `prisma.phone_note`: Exposes CRUD operations for the **phone_note** model. + * Example usage: + * ```ts + * // Fetch zero or more Phone_notes + * const phone_notes = await prisma.phone_note.findMany() + * ``` + */ + get phone_note(): Prisma.phone_noteDelegate; + + /** + * `prisma.phone_provisioning`: Exposes CRUD operations for the **phone_provisioning** model. + * Example usage: + * ```ts + * // Fetch zero or more Phone_provisionings + * const phone_provisionings = await prisma.phone_provisioning.findMany() + * ``` + */ + get phone_provisioning(): Prisma.phone_provisioningDelegate; + + /** + * `prisma.phonecall_channel`: Exposes CRUD operations for the **phonecall_channel** model. + * Example usage: + * ```ts + * // Fetch zero or more Phonecall_channels + * const phonecall_channels = await prisma.phonecall_channel.findMany() + * ``` + */ + get phonecall_channel(): Prisma.phonecall_channelDelegate; + + /** + * `prisma.phonecall_log_2025`: Exposes CRUD operations for the **phonecall_log_2025** model. + * Example usage: + * ```ts + * // Fetch zero or more Phonecall_log_2025s + * const phonecall_log_2025s = await prisma.phonecall_log_2025.findMany() + * ``` + */ + get phonecall_log_2025(): Prisma.phonecall_log_2025Delegate; + + /** + * `prisma.phonecall_log_2026`: Exposes CRUD operations for the **phonecall_log_2026** model. + * Example usage: + * ```ts + * // Fetch zero or more Phonecall_log_2026s + * const phonecall_log_2026s = await prisma.phonecall_log_2026.findMany() + * ``` + */ + get phonecall_log_2026(): Prisma.phonecall_log_2026Delegate; + + /** + * `prisma.voicemeup`: Exposes CRUD operations for the **voicemeup** model. + * Example usage: + * ```ts + * // Fetch zero or more Voicemeups + * const voicemeups = await prisma.voicemeup.findMany() + * ``` + */ + get voicemeup(): Prisma.voicemeupDelegate; + + /** + * `prisma.pbx`: Exposes CRUD operations for the **pbx** model. + * Example usage: + * ```ts + * // Fetch zero or more Pbxes + * const pbxes = await prisma.pbx.findMany() + * ``` + */ + get pbx(): Prisma.pbxDelegate; + + /** + * `prisma.pbx_app`: Exposes CRUD operations for the **pbx_app** model. + * Example usage: + * ```ts + * // Fetch zero or more Pbx_apps + * const pbx_apps = await prisma.pbx_app.findMany() + * ``` + */ + get pbx_app(): Prisma.pbx_appDelegate; + + /** + * `prisma.pbx_com`: Exposes CRUD operations for the **pbx_com** model. + * Example usage: + * ```ts + * // Fetch zero or more Pbx_coms + * const pbx_coms = await prisma.pbx_com.findMany() + * ``` + */ + get pbx_com(): Prisma.pbx_comDelegate; + + /** + * `prisma.pbx_com_wl`: Exposes CRUD operations for the **pbx_com_wl** model. + * Example usage: + * ```ts + * // Fetch zero or more Pbx_com_wls + * const pbx_com_wls = await prisma.pbx_com_wl.findMany() + * ``` + */ + get pbx_com_wl(): Prisma.pbx_com_wlDelegate; + + /** + * `prisma.pbx_fax`: Exposes CRUD operations for the **pbx_fax** model. + * Example usage: + * ```ts + * // Fetch zero or more Pbx_faxes + * const pbx_faxes = await prisma.pbx_fax.findMany() + * ``` + */ + get pbx_fax(): Prisma.pbx_faxDelegate; + + /** + * `prisma.payment`: Exposes CRUD operations for the **payment** model. + * Example usage: + * ```ts + * // Fetch zero or more Payments + * const payments = await prisma.payment.findMany() + * ``` + */ + get payment(): Prisma.paymentDelegate; + + /** + * `prisma.payment_item`: Exposes CRUD operations for the **payment_item** model. + * Example usage: + * ```ts + * // Fetch zero or more Payment_items + * const payment_items = await prisma.payment_item.findMany() + * ``` + */ + get payment_item(): Prisma.payment_itemDelegate; + + /** + * `prisma.passwords_manager`: Exposes CRUD operations for the **passwords_manager** model. + * Example usage: + * ```ts + * // Fetch zero or more Passwords_managers + * const passwords_managers = await prisma.passwords_manager.findMany() + * ``` + */ + get passwords_manager(): Prisma.passwords_managerDelegate; + + /** + * `prisma.passwords_manager_cat`: Exposes CRUD operations for the **passwords_manager_cat** model. + * Example usage: + * ```ts + * // Fetch zero or more Passwords_manager_cats + * const passwords_manager_cats = await prisma.passwords_manager_cat.findMany() + * ``` + */ + get passwords_manager_cat(): Prisma.passwords_manager_catDelegate; + + /** + * `prisma.passwords_manager_group`: Exposes CRUD operations for the **passwords_manager_group** model. + * Example usage: + * ```ts + * // Fetch zero or more Passwords_manager_groups + * const passwords_manager_groups = await prisma.passwords_manager_group.findMany() + * ``` + */ + get passwords_manager_group(): Prisma.passwords_manager_groupDelegate; + + /** + * `prisma.notification`: Exposes CRUD operations for the **notification** model. + * Example usage: + * ```ts + * // Fetch zero or more Notifications + * const notifications = await prisma.notification.findMany() + * ``` + */ + get notification(): Prisma.notificationDelegate; + + /** + * `prisma.notification_payload`: Exposes CRUD operations for the **notification_payload** model. + * Example usage: + * ```ts + * // Fetch zero or more Notification_payloads + * const notification_payloads = await prisma.notification_payload.findMany() + * ``` + */ + get notification_payload(): Prisma.notification_payloadDelegate; + + /** + * `prisma.municipalite`: Exposes CRUD operations for the **municipalite** model. + * Example usage: + * ```ts + * // Fetch zero or more Municipalites + * const municipalites = await prisma.municipalite.findMany() + * ``` + */ + get municipalite(): Prisma.municipaliteDelegate; + + /** + * `prisma.sommaire_porte`: Exposes CRUD operations for the **sommaire_porte** model. + * Example usage: + * ```ts + * // Fetch zero or more Sommaire_portes + * const sommaire_portes = await prisma.sommaire_porte.findMany() + * ``` + */ + get sommaire_porte(): Prisma.sommaire_porteDelegate; + + /** + * `prisma.state`: Exposes CRUD operations for the **state** model. + * Example usage: + * ```ts + * // Fetch zero or more States + * const states = await prisma.state.findMany() + * ``` + */ + get state(): Prisma.stateDelegate; + + /** + * `prisma.licence`: Exposes CRUD operations for the **licence** model. + * Example usage: + * ```ts + * // Fetch zero or more Licences + * const licences = await prisma.licence.findMany() + * ``` + */ + get licence(): Prisma.licenceDelegate; + + /** + * `prisma.licence_key`: Exposes CRUD operations for the **licence_key** model. + * Example usage: + * ```ts + * // Fetch zero or more Licence_keys + * const licence_keys = await prisma.licence_key.findMany() + * ``` + */ + get licence_key(): Prisma.licence_keyDelegate; + + /** + * `prisma.ip`: Exposes CRUD operations for the **ip** model. + * Example usage: + * ```ts + * // Fetch zero or more Ips + * const ips = await prisma.ip.findMany() + * ``` + */ + get ip(): Prisma.ipDelegate; + + /** + * `prisma.ip_admin`: Exposes CRUD operations for the **ip_admin** model. + * Example usage: + * ```ts + * // Fetch zero or more Ip_admins + * const ip_admins = await prisma.ip_admin.findMany() + * ``` + */ + get ip_admin(): Prisma.ip_adminDelegate; + + /** + * `prisma.ip_history`: Exposes CRUD operations for the **ip_history** model. + * Example usage: + * ```ts + * // Fetch zero or more Ip_histories + * const ip_histories = await prisma.ip_history.findMany() + * ``` + */ + get ip_history(): Prisma.ip_historyDelegate; + + /** + * `prisma.ip_pp`: Exposes CRUD operations for the **ip_pp** model. + * Example usage: + * ```ts + * // Fetch zero or more Ip_pps + * const ip_pps = await prisma.ip_pp.findMany() + * ``` + */ + get ip_pp(): Prisma.ip_ppDelegate; + + /** + * `prisma.ip_static`: Exposes CRUD operations for the **ip_static** model. + * Example usage: + * ```ts + * // Fetch zero or more Ip_statics + * const ip_statics = await prisma.ip_static.findMany() + * ``` + */ + get ip_static(): Prisma.ip_staticDelegate; + + /** + * `prisma.ip_targo`: Exposes CRUD operations for the **ip_targo** model. + * Example usage: + * ```ts + * // Fetch zero or more Ip_targos + * const ip_targos = await prisma.ip_targo.findMany() + * ``` + */ + get ip_targo(): Prisma.ip_targoDelegate; + + /** + * `prisma.invoice`: Exposes CRUD operations for the **invoice** model. + * Example usage: + * ```ts + * // Fetch zero or more Invoices + * const invoices = await prisma.invoice.findMany() + * ``` + */ + get invoice(): Prisma.invoiceDelegate; + + /** + * `prisma.invoice_bk`: Exposes CRUD operations for the **invoice_bk** model. + * Example usage: + * ```ts + * // Fetch zero or more Invoice_bks + * const invoice_bks = await prisma.invoice_bk.findMany() + * ``` + */ + get invoice_bk(): Prisma.invoice_bkDelegate; + + /** + * `prisma.invoice_call`: Exposes CRUD operations for the **invoice_call** model. + * Example usage: + * ```ts + * // Fetch zero or more Invoice_calls + * const invoice_calls = await prisma.invoice_call.findMany() + * ``` + */ + get invoice_call(): Prisma.invoice_callDelegate; + + /** + * `prisma.invoice_item`: Exposes CRUD operations for the **invoice_item** model. + * Example usage: + * ```ts + * // Fetch zero or more Invoice_items + * const invoice_items = await prisma.invoice_item.findMany() + * ``` + */ + get invoice_item(): Prisma.invoice_itemDelegate; + + /** + * `prisma.invoice_item_bk`: Exposes CRUD operations for the **invoice_item_bk** model. + * Example usage: + * ```ts + * // Fetch zero or more Invoice_item_bks + * const invoice_item_bks = await prisma.invoice_item_bk.findMany() + * ``` + */ + get invoice_item_bk(): Prisma.invoice_item_bkDelegate; + + /** + * `prisma.invoice_msg_template`: Exposes CRUD operations for the **invoice_msg_template** model. + * Example usage: + * ```ts + * // Fetch zero or more Invoice_msg_templates + * const invoice_msg_templates = await prisma.invoice_msg_template.findMany() + * ``` + */ + get invoice_msg_template(): Prisma.invoice_msg_templateDelegate; + + /** + * `prisma.invoice_tax`: Exposes CRUD operations for the **invoice_tax** model. + * Example usage: + * ```ts + * // Fetch zero or more Invoice_taxes + * const invoice_taxes = await prisma.invoice_tax.findMany() + * ``` + */ + get invoice_tax(): Prisma.invoice_taxDelegate; + + /** + * `prisma.invoice_tax_bk`: Exposes CRUD operations for the **invoice_tax_bk** model. + * Example usage: + * ```ts + * // Fetch zero or more Invoice_tax_bks + * const invoice_tax_bks = await prisma.invoice_tax_bk.findMany() + * ``` + */ + get invoice_tax_bk(): Prisma.invoice_tax_bkDelegate; + + /** + * `prisma.accord_paiement`: Exposes CRUD operations for the **accord_paiement** model. + * Example usage: + * ```ts + * // Fetch zero or more Accord_paiements + * const accord_paiements = await prisma.accord_paiement.findMany() + * ``` + */ + get accord_paiement(): Prisma.accord_paiementDelegate; + + /** + * `prisma.autologin`: Exposes CRUD operations for the **autologin** model. + * Example usage: + * ```ts + * // Fetch zero or more Autologins + * const autologins = await prisma.autologin.findMany() + * ``` + */ + get autologin(): Prisma.autologinDelegate; + + /** + * `prisma.statement`: Exposes CRUD operations for the **statement** model. + * Example usage: + * ```ts + * // Fetch zero or more Statements + * const statements = await prisma.statement.findMany() + * ``` + */ + get statement(): Prisma.statementDelegate; + + /** + * `prisma.intranet_doc`: Exposes CRUD operations for the **intranet_doc** model. + * Example usage: + * ```ts + * // Fetch zero or more Intranet_docs + * const intranet_docs = await prisma.intranet_doc.findMany() + * ``` + */ + get intranet_doc(): Prisma.intranet_docDelegate; + + /** + * `prisma.intranet_doc_paths`: Exposes CRUD operations for the **intranet_doc_paths** model. + * Example usage: + * ```ts + * // Fetch zero or more Intranet_doc_paths + * const intranet_doc_paths = await prisma.intranet_doc_paths.findMany() + * ``` + */ + get intranet_doc_paths(): Prisma.intranet_doc_pathsDelegate; + + /** + * `prisma.intranet_doc_reply`: Exposes CRUD operations for the **intranet_doc_reply** model. + * Example usage: + * ```ts + * // Fetch zero or more Intranet_doc_replies + * const intranet_doc_replies = await prisma.intranet_doc_reply.findMany() + * ``` + */ + get intranet_doc_reply(): Prisma.intranet_doc_replyDelegate; + + /** + * `prisma.intranet_feed`: Exposes CRUD operations for the **intranet_feed** model. + * Example usage: + * ```ts + * // Fetch zero or more Intranet_feeds + * const intranet_feeds = await prisma.intranet_feed.findMany() + * ``` + */ + get intranet_feed(): Prisma.intranet_feedDelegate; + + /** + * `prisma.intranet_feed_reply`: Exposes CRUD operations for the **intranet_feed_reply** model. + * Example usage: + * ```ts + * // Fetch zero or more Intranet_feed_replies + * const intranet_feed_replies = await prisma.intranet_feed_reply.findMany() + * ``` + */ + get intranet_feed_reply(): Prisma.intranet_feed_replyDelegate; + + /** + * `prisma.intranet_techniciens`: Exposes CRUD operations for the **intranet_techniciens** model. + * Example usage: + * ```ts + * // Fetch zero or more Intranet_techniciens + * const intranet_techniciens = await prisma.intranet_techniciens.findMany() + * ``` + */ + get intranet_techniciens(): Prisma.intranet_techniciensDelegate; + + /** + * `prisma.intranet_techniciens_reply`: Exposes CRUD operations for the **intranet_techniciens_reply** model. + * Example usage: + * ```ts + * // Fetch zero or more Intranet_techniciens_replies + * const intranet_techniciens_replies = await prisma.intranet_techniciens_reply.findMany() + * ``` + */ + get intranet_techniciens_reply(): Prisma.intranet_techniciens_replyDelegate; + + /** + * `prisma.intranet_techno`: Exposes CRUD operations for the **intranet_techno** model. + * Example usage: + * ```ts + * // Fetch zero or more Intranet_technos + * const intranet_technos = await prisma.intranet_techno.findMany() + * ``` + */ + get intranet_techno(): Prisma.intranet_technoDelegate; + + /** + * `prisma.intranet_techno_reply`: Exposes CRUD operations for the **intranet_techno_reply** model. + * Example usage: + * ```ts + * // Fetch zero or more Intranet_techno_replies + * const intranet_techno_replies = await prisma.intranet_techno_reply.findMany() + * ``` + */ + get intranet_techno_reply(): Prisma.intranet_techno_replyDelegate; + + /** + * `prisma.fibre`: Exposes CRUD operations for the **fibre** model. + * Example usage: + * ```ts + * // Fetch zero or more Fibres + * const fibres = await prisma.fibre.findMany() + * ``` + */ + get fibre(): Prisma.fibreDelegate; + + /** + * `prisma.fibre_olt`: Exposes CRUD operations for the **fibre_olt** model. + * Example usage: + * ```ts + * // Fetch zero or more Fibre_olts + * const fibre_olts = await prisma.fibre_olt.findMany() + * ``` + */ + get fibre_olt(): Prisma.fibre_oltDelegate; + + /** + * `prisma.fibre_service_port`: Exposes CRUD operations for the **fibre_service_port** model. + * Example usage: + * ```ts + * // Fetch zero or more Fibre_service_ports + * const fibre_service_ports = await prisma.fibre_service_port.findMany() + * ``` + */ + get fibre_service_port(): Prisma.fibre_service_portDelegate; + + /** + * `prisma.fibre_suivi`: Exposes CRUD operations for the **fibre_suivi** model. + * Example usage: + * ```ts + * // Fetch zero or more Fibre_suivis + * const fibre_suivis = await prisma.fibre_suivi.findMany() + * ``` + */ + get fibre_suivi(): Prisma.fibre_suiviDelegate; + + /** + * `prisma.fibre_tech`: Exposes CRUD operations for the **fibre_tech** model. + * Example usage: + * ```ts + * // Fetch zero or more Fibre_teches + * const fibre_teches = await prisma.fibre_tech.findMany() + * ``` + */ + get fibre_tech(): Prisma.fibre_techDelegate; + + /** + * `prisma.fibre_videotron`: Exposes CRUD operations for the **fibre_videotron** model. + * Example usage: + * ```ts + * // Fetch zero or more Fibre_videotrons + * const fibre_videotrons = await prisma.fibre_videotron.findMany() + * ``` + */ + get fibre_videotron(): Prisma.fibre_videotronDelegate; + + /** + * `prisma.gantt`: Exposes CRUD operations for the **gantt** model. + * Example usage: + * ```ts + * // Fetch zero or more Gantts + * const gantts = await prisma.gantt.findMany() + * ``` + */ + get gantt(): Prisma.ganttDelegate; + + /** + * `prisma.gantt_template`: Exposes CRUD operations for the **gantt_template** model. + * Example usage: + * ```ts + * // Fetch zero or more Gantt_templates + * const gantt_templates = await prisma.gantt_template.findMany() + * ``` + */ + get gantt_template(): Prisma.gantt_templateDelegate; + + /** + * `prisma.project`: Exposes CRUD operations for the **project** model. + * Example usage: + * ```ts + * // Fetch zero or more Projects + * const projects = await prisma.project.findMany() + * ``` + */ + get project(): Prisma.projectDelegate; + + /** + * `prisma.project_cmd`: Exposes CRUD operations for the **project_cmd** model. + * Example usage: + * ```ts + * // Fetch zero or more Project_cmds + * const project_cmds = await prisma.project_cmd.findMany() + * ``` + */ + get project_cmd(): Prisma.project_cmdDelegate; + + /** + * `prisma.project_cmd_item`: Exposes CRUD operations for the **project_cmd_item** model. + * Example usage: + * ```ts + * // Fetch zero or more Project_cmd_items + * const project_cmd_items = await prisma.project_cmd_item.findMany() + * ``` + */ + get project_cmd_item(): Prisma.project_cmd_itemDelegate; + + /** + * `prisma.project_manager_cat`: Exposes CRUD operations for the **project_manager_cat** model. + * Example usage: + * ```ts + * // Fetch zero or more Project_manager_cats + * const project_manager_cats = await prisma.project_manager_cat.findMany() + * ``` + */ + get project_manager_cat(): Prisma.project_manager_catDelegate; + + /** + * `prisma.project_manager_checklist`: Exposes CRUD operations for the **project_manager_checklist** model. + * Example usage: + * ```ts + * // Fetch zero or more Project_manager_checklists + * const project_manager_checklists = await prisma.project_manager_checklist.findMany() + * ``` + */ + get project_manager_checklist(): Prisma.project_manager_checklistDelegate; + + /** + * `prisma.project_manager_comment`: Exposes CRUD operations for the **project_manager_comment** model. + * Example usage: + * ```ts + * // Fetch zero or more Project_manager_comments + * const project_manager_comments = await prisma.project_manager_comment.findMany() + * ``` + */ + get project_manager_comment(): Prisma.project_manager_commentDelegate; + + /** + * `prisma.project_manager_task`: Exposes CRUD operations for the **project_manager_task** model. + * Example usage: + * ```ts + * // Fetch zero or more Project_manager_tasks + * const project_manager_tasks = await prisma.project_manager_task.findMany() + * ``` + */ + get project_manager_task(): Prisma.project_manager_taskDelegate; + + /** + * `prisma.service`: Exposes CRUD operations for the **service** model. + * Example usage: + * ```ts + * // Fetch zero or more Services + * const services = await prisma.service.findMany() + * ``` + */ + get service(): Prisma.serviceDelegate; + + /** + * `prisma.service_snapshot`: Exposes CRUD operations for the **service_snapshot** model. + * Example usage: + * ```ts + * // Fetch zero or more Service_snapshots + * const service_snapshots = await prisma.service_snapshot.findMany() + * ``` + */ + get service_snapshot(): Prisma.service_snapshotDelegate; + + /** + * `prisma.soumission`: Exposes CRUD operations for the **soumission** model. + * Example usage: + * ```ts + * // Fetch zero or more Soumissions + * const soumissions = await prisma.soumission.findMany() + * ``` + */ + get soumission(): Prisma.soumissionDelegate; + + /** + * `prisma.soumission_template`: Exposes CRUD operations for the **soumission_template** model. + * Example usage: + * ```ts + * // Fetch zero or more Soumission_templates + * const soumission_templates = await prisma.soumission_template.findMany() + * ``` + */ + get soumission_template(): Prisma.soumission_templateDelegate; + + /** + * `prisma.staff`: Exposes CRUD operations for the **staff** model. + * Example usage: + * ```ts + * // Fetch zero or more Staff + * const staff = await prisma.staff.findMany() + * ``` + */ + get staff(): Prisma.staffDelegate; + + /** + * `prisma.staff_dispo`: Exposes CRUD operations for the **staff_dispo** model. + * Example usage: + * ```ts + * // Fetch zero or more Staff_dispos + * const staff_dispos = await prisma.staff_dispo.findMany() + * ``` + */ + get staff_dispo(): Prisma.staff_dispoDelegate; + + /** + * `prisma.staff_supp`: Exposes CRUD operations for the **staff_supp** model. + * Example usage: + * ```ts + * // Fetch zero or more Staff_supps + * const staff_supps = await prisma.staff_supp.findMany() + * ``` + */ + get staff_supp(): Prisma.staff_suppDelegate; + + /** + * `prisma.tele_carte`: Exposes CRUD operations for the **tele_carte** model. + * Example usage: + * ```ts + * // Fetch zero or more Tele_cartes + * const tele_cartes = await prisma.tele_carte.findMany() + * ``` + */ + get tele_carte(): Prisma.tele_carteDelegate; + + /** + * `prisma.tele_channel`: Exposes CRUD operations for the **tele_channel** model. + * Example usage: + * ```ts + * // Fetch zero or more Tele_channels + * const tele_channels = await prisma.tele_channel.findMany() + * ``` + */ + get tele_channel(): Prisma.tele_channelDelegate; + + /** + * `prisma.tele_groupe`: Exposes CRUD operations for the **tele_groupe** model. + * Example usage: + * ```ts + * // Fetch zero or more Tele_groupes + * const tele_groupes = await prisma.tele_groupe.findMany() + * ``` + */ + get tele_groupe(): Prisma.tele_groupeDelegate; + + /** + * `prisma.tele_network`: Exposes CRUD operations for the **tele_network** model. + * Example usage: + * ```ts + * // Fetch zero or more Tele_networks + * const tele_networks = await prisma.tele_network.findMany() + * ``` + */ + get tele_network(): Prisma.tele_networkDelegate; + + /** + * `prisma.tele_pack`: Exposes CRUD operations for the **tele_pack** model. + * Example usage: + * ```ts + * // Fetch zero or more Tele_packs + * const tele_packs = await prisma.tele_pack.findMany() + * ``` + */ + get tele_pack(): Prisma.tele_packDelegate; + + /** + * `prisma.tele_penetration`: Exposes CRUD operations for the **tele_penetration** model. + * Example usage: + * ```ts + * // Fetch zero or more Tele_penetrations + * const tele_penetrations = await prisma.tele_penetration.findMany() + * ``` + */ + get tele_penetration(): Prisma.tele_penetrationDelegate; + + /** + * `prisma.tele_sub_archive`: Exposes CRUD operations for the **tele_sub_archive** model. + * Example usage: + * ```ts + * // Fetch zero or more Tele_sub_archives + * const tele_sub_archives = await prisma.tele_sub_archive.findMany() + * ``` + */ + get tele_sub_archive(): Prisma.tele_sub_archiveDelegate; + + /** + * `prisma.tele_wiz`: Exposes CRUD operations for the **tele_wiz** model. + * Example usage: + * ```ts + * // Fetch zero or more Tele_wizs + * const tele_wizs = await prisma.tele_wiz.findMany() + * ``` + */ + get tele_wiz(): Prisma.tele_wizDelegate; + + /** + * `prisma.tv_mac`: Exposes CRUD operations for the **tv_mac** model. + * Example usage: + * ```ts + * // Fetch zero or more Tv_macs + * const tv_macs = await prisma.tv_mac.findMany() + * ``` + */ + get tv_mac(): Prisma.tv_macDelegate; + + /** + * `prisma.ticket`: Exposes CRUD operations for the **ticket** model. + * Example usage: + * ```ts + * // Fetch zero or more Tickets + * const tickets = await prisma.ticket.findMany() + * ``` + */ + get ticket(): Prisma.ticketDelegate; + + /** + * `prisma.ticket_calendar_lock`: Exposes CRUD operations for the **ticket_calendar_lock** model. + * Example usage: + * ```ts + * // Fetch zero or more Ticket_calendar_locks + * const ticket_calendar_locks = await prisma.ticket_calendar_lock.findMany() + * ``` + */ + get ticket_calendar_lock(): Prisma.ticket_calendar_lockDelegate; + + /** + * `prisma.ticket_calendar_staff_lock`: Exposes CRUD operations for the **ticket_calendar_staff_lock** model. + * Example usage: + * ```ts + * // Fetch zero or more Ticket_calendar_staff_locks + * const ticket_calendar_staff_locks = await prisma.ticket_calendar_staff_lock.findMany() + * ``` + */ + get ticket_calendar_staff_lock(): Prisma.ticket_calendar_staff_lockDelegate; + + /** + * `prisma.ticket_conge`: Exposes CRUD operations for the **ticket_conge** model. + * Example usage: + * ```ts + * // Fetch zero or more Ticket_conges + * const ticket_conges = await prisma.ticket_conge.findMany() + * ``` + */ + get ticket_conge(): Prisma.ticket_congeDelegate; + + /** + * `prisma.ticket_dept`: Exposes CRUD operations for the **ticket_dept** model. + * Example usage: + * ```ts + * // Fetch zero or more Ticket_depts + * const ticket_depts = await prisma.ticket_dept.findMany() + * ``` + */ + get ticket_dept(): Prisma.ticket_deptDelegate; + + /** + * `prisma.ticket_msg`: Exposes CRUD operations for the **ticket_msg** model. + * Example usage: + * ```ts + * // Fetch zero or more Ticket_msgs + * const ticket_msgs = await prisma.ticket_msg.findMany() + * ``` + */ + get ticket_msg(): Prisma.ticket_msgDelegate; + + /** + * `prisma.ticket_template`: Exposes CRUD operations for the **ticket_template** model. + * Example usage: + * ```ts + * // Fetch zero or more Ticket_templates + * const ticket_templates = await prisma.ticket_template.findMany() + * ``` + */ + get ticket_template(): Prisma.ticket_templateDelegate; + + /** + * `prisma.tmp_vpn`: Exposes CRUD operations for the **tmp_vpn** model. + * Example usage: + * ```ts + * // Fetch zero or more Tmp_vpns + * const tmp_vpns = await prisma.tmp_vpn.findMany() + * ``` + */ + get tmp_vpn(): Prisma.tmp_vpnDelegate; + + /** + * `prisma.bon_travail`: Exposes CRUD operations for the **bon_travail** model. + * Example usage: + * ```ts + * // Fetch zero or more Bon_travails + * const bon_travails = await prisma.bon_travail.findMany() + * ``` + */ + get bon_travail(): Prisma.bon_travailDelegate; + + /** + * `prisma.bon_travail_item`: Exposes CRUD operations for the **bon_travail_item** model. + * Example usage: + * ```ts + * // Fetch zero or more Bon_travail_items + * const bon_travail_items = await prisma.bon_travail_item.findMany() + * ``` + */ + get bon_travail_item(): Prisma.bon_travail_itemDelegate; + + /** + * `prisma.checklist_relais`: Exposes CRUD operations for the **checklist_relais** model. + * Example usage: + * ```ts + * // Fetch zero or more Checklist_relais + * const checklist_relais = await prisma.checklist_relais.findMany() + * ``` + */ + get checklist_relais(): Prisma.checklist_relaisDelegate; + + /** + * `prisma.conference`: Exposes CRUD operations for the **conference** model. + * Example usage: + * ```ts + * // Fetch zero or more Conferences + * const conferences = await prisma.conference.findMany() + * ``` + */ + get conference(): Prisma.conferenceDelegate; + + /** + * `prisma.conference_room`: Exposes CRUD operations for the **conference_room** model. + * Example usage: + * ```ts + * // Fetch zero or more Conference_rooms + * const conference_rooms = await prisma.conference_room.findMany() + * ``` + */ + get conference_room(): Prisma.conference_roomDelegate; + + /** + * `prisma.fournisseur`: Exposes CRUD operations for the **fournisseur** model. + * Example usage: + * ```ts + * // Fetch zero or more Fournisseurs + * const fournisseurs = await prisma.fournisseur.findMany() + * ``` + */ + get fournisseur(): Prisma.fournisseurDelegate; + + /** + * `prisma.notice_gui`: Exposes CRUD operations for the **notice_gui** model. + * Example usage: + * ```ts + * // Fetch zero or more Notice_guis + * const notice_guis = await prisma.notice_gui.findMany() + * ``` + */ + get notice_gui(): Prisma.notice_guiDelegate; + + /** + * `prisma.promo`: Exposes CRUD operations for the **promo** model. + * Example usage: + * ```ts + * // Fetch zero or more Promos + * const promos = await prisma.promo.findMany() + * ``` + */ + get promo(): Prisma.promoDelegate; + + /** + * `prisma.stbs`: Exposes CRUD operations for the **stbs** model. + * Example usage: + * ```ts + * // Fetch zero or more Stbs + * const stbs = await prisma.stbs.findMany() + * ``` + */ + get stbs(): Prisma.stbsDelegate; + + /** + * `prisma.tech_dispo`: Exposes CRUD operations for the **tech_dispo** model. + * Example usage: + * ```ts + * // Fetch zero or more Tech_dispos + * const tech_dispos = await prisma.tech_dispo.findMany() + * ``` + */ + get tech_dispo(): Prisma.tech_dispoDelegate; + + /** + * `prisma.debug`: Exposes CRUD operations for the **debug** model. + * Example usage: + * ```ts + * // Fetch zero or more Debugs + * const debugs = await prisma.debug.findMany() + * ``` + */ + get debug(): Prisma.debugDelegate; + + /** + * `prisma.carte_temps`: Exposes CRUD operations for the **carte_temps** model. + * Example usage: + * ```ts + * // Fetch zero or more Carte_temps + * const carte_temps = await prisma.carte_temps.findMany() + * ``` + */ + get carte_temps(): Prisma.carte_tempsDelegate; + + /** + * `prisma.carte_temps_periode`: Exposes CRUD operations for the **carte_temps_periode** model. + * Example usage: + * ```ts + * // Fetch zero or more Carte_temps_periodes + * const carte_temps_periodes = await prisma.carte_temps_periode.findMany() + * ``` + */ + get carte_temps_periode(): Prisma.carte_temps_periodeDelegate; + + /** + * `prisma.banque_heure_staff`: Exposes CRUD operations for the **banque_heure_staff** model. + * Example usage: + * ```ts + * // Fetch zero or more Banque_heure_staffs + * const banque_heure_staffs = await prisma.banque_heure_staff.findMany() + * ``` + */ + get banque_heure_staff(): Prisma.banque_heure_staffDelegate; + + /** + * `prisma.hour_bank`: Exposes CRUD operations for the **hour_bank** model. + * Example usage: + * ```ts + * // Fetch zero or more Hour_banks + * const hour_banks = await prisma.hour_bank.findMany() + * ``` + */ + get hour_bank(): Prisma.hour_bankDelegate; + + /** + * `prisma.hour_bank_detail`: Exposes CRUD operations for the **hour_bank_detail** model. + * Example usage: + * ```ts + * // Fetch zero or more Hour_bank_details + * const hour_bank_details = await prisma.hour_bank_detail.findMany() + * ``` + */ + get hour_bank_detail(): Prisma.hour_bank_detailDelegate; + + /** + * `prisma.test`: Exposes CRUD operations for the **test** model. + * Example usage: + * ```ts + * // Fetch zero or more Tests + * const tests = await prisma.test.findMany() + * ``` + */ + get test(): Prisma.testDelegate; + + /** + * `prisma.account_memo_template`: Exposes CRUD operations for the **account_memo_template** model. + * Example usage: + * ```ts + * // Fetch zero or more Account_memo_templates + * const account_memo_templates = await prisma.account_memo_template.findMany() + * ``` + */ + get account_memo_template(): Prisma.account_memo_templateDelegate; + + /** + * `prisma.notes`: Exposes CRUD operations for the **notes** model. + * Example usage: + * ```ts + * // Fetch zero or more Notes + * const notes = await prisma.notes.findMany() + * ``` + */ + get notes(): Prisma.notesDelegate; + + /** + * `prisma.email`: Exposes CRUD operations for the **email** model. + * Example usage: + * ```ts + * // Fetch zero or more Emails + * const emails = await prisma.email.findMany() + * ``` + */ + get email(): Prisma.emailDelegate; + + /** + * `prisma.client_pwd`: Exposes CRUD operations for the **client_pwd** model. + * Example usage: + * ```ts + * // Fetch zero or more Client_pwds + * const client_pwds = await prisma.client_pwd.findMany() + * ``` + */ + get client_pwd(): Prisma.client_pwdDelegate; + + /** + * `prisma.account_profile`: Exposes CRUD operations for the **account_profile** model. + * Example usage: + * ```ts + * // Fetch zero or more Account_profiles + * const account_profiles = await prisma.account_profile.findMany() + * ``` + */ + get account_profile(): Prisma.account_profileDelegate; + + /** + * `prisma.deposit_slip`: Exposes CRUD operations for the **deposit_slip** model. + * Example usage: + * ```ts + * // Fetch zero or more Deposit_slips + * const deposit_slips = await prisma.deposit_slip.findMany() + * ``` + */ + get deposit_slip(): Prisma.deposit_slipDelegate; + + /** + * `prisma.account_suspension`: Exposes CRUD operations for the **account_suspension** model. + * Example usage: + * ```ts + * // Fetch zero or more Account_suspensions + * const account_suspensions = await prisma.account_suspension.findMany() + * ``` + */ + get account_suspension(): Prisma.account_suspensionDelegate; +} + +export function getPrismaClientClass(): PrismaClientConstructor { + return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor +} diff --git a/prisma/generated/mariadb/internal/prismaNamespace.ts b/prisma/generated/mariadb/internal/prismaNamespace.ts new file mode 100644 index 0000000..5ed3501 --- /dev/null +++ b/prisma/generated/mariadb/internal/prismaNamespace.ts @@ -0,0 +1,15085 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * ๐Ÿ›‘ Under no circumstances should you import this file directly! ๐Ÿ›‘ + * + * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * model files in the `model` directory! + */ + +import * as runtime from "@prisma/client/runtime/client" +import type * as Prisma from "../models" +import { type PrismaClient } from "./class" + +export type * from '../models' + +export type DMMF = typeof runtime.DMMF + +export type PrismaPromise = runtime.Types.Public.PrismaPromise + +/** + * Prisma Errors + */ + +export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError +export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError + +export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError +export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError + +export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError +export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError + +export const PrismaClientInitializationError = runtime.PrismaClientInitializationError +export type PrismaClientInitializationError = runtime.PrismaClientInitializationError + +export const PrismaClientValidationError = runtime.PrismaClientValidationError +export type PrismaClientValidationError = runtime.PrismaClientValidationError + +/** + * Re-export of sql-template-tag + */ +export const sql = runtime.sqltag +export const empty = runtime.empty +export const join = runtime.join +export const raw = runtime.raw +export const Sql = runtime.Sql +export type Sql = runtime.Sql + + + +/** + * Decimal.js + */ +export const Decimal = runtime.Decimal +export type Decimal = runtime.Decimal + +export type DecimalJsLike = runtime.DecimalJsLike + +/** +* Extensions +*/ +export type Extension = runtime.Types.Extensions.UserArgs +export const getExtensionContext = runtime.Extensions.getExtensionContext +export type Args = runtime.Types.Public.Args +export type Payload = runtime.Types.Public.Payload +export type Result = runtime.Types.Public.Result +export type Exact = runtime.Types.Public.Exact + +export type PrismaVersion = { + client: string + engine: string +} + +/** + * Prisma Client JS version: 7.3.0 + * Query Engine version: 9d6ad21cbbceab97458517b147a6a09ff43aa735 + */ +export const prismaVersion: PrismaVersion = { + client: "7.3.0", + engine: "9d6ad21cbbceab97458517b147a6a09ff43aa735" +} + +/** + * Utility Types + */ + +export type Bytes = runtime.Bytes +export type JsonObject = runtime.JsonObject +export type JsonArray = runtime.JsonArray +export type JsonValue = runtime.JsonValue +export type InputJsonObject = runtime.InputJsonObject +export type InputJsonArray = runtime.InputJsonArray +export type InputJsonValue = runtime.InputJsonValue + + +export const NullTypes = { + DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), + JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), + AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), +} +/** + * Helper for filtering JSON entries that have `null` on the database (empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const DbNull = runtime.DbNull + +/** + * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const JsonNull = runtime.JsonNull + +/** + * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const AnyNull = runtime.AnyNull + + +type SelectAndInclude = { + select: any + include: any +} + +type SelectAndOmit = { + select: any + omit: any +} + +/** + * From T, pick a set of properties whose keys are in the union K + */ +type Prisma__Pick = { + [P in K]: T[P]; +}; + +export type Enumerable = T | Array; + +/** + * Subset + * @desc From `T` pick properties that exist in `U`. Simple version of Intersection + */ +export type Subset = { + [key in keyof T]: key extends keyof U ? T[key] : never; +}; + +/** + * SelectSubset + * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. + * Additionally, it validates, if both select and include are present. If the case, it errors. + */ +export type SelectSubset = { + [key in keyof T]: key extends keyof U ? T[key] : never +} & + (T extends SelectAndInclude + ? 'Please either choose `select` or `include`.' + : T extends SelectAndOmit + ? 'Please either choose `select` or `omit`.' + : {}) + +/** + * Subset + Intersection + * @desc From `T` pick properties that exist in `U` and intersect `K` + */ +export type SubsetIntersection = { + [key in keyof T]: key extends keyof U ? T[key] : never +} & + K + +type Without = { [P in Exclude]?: never }; + +/** + * XOR is needed to have a real mutually exclusive union type + * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types + */ +export type XOR = + T extends object ? + U extends object ? + (Without & U) | (Without & T) + : U : T + + +/** + * Is T a Record? + */ +type IsObject = T extends Array +? False +: T extends Date +? False +: T extends Uint8Array +? False +: T extends BigInt +? False +: T extends object +? True +: False + + +/** + * If it's T[], return T + */ +export type UnEnumerate = T extends Array ? U : T + +/** + * From ts-toolbelt + */ + +type __Either = Omit & + { + // Merge all but K + [P in K]: Prisma__Pick // With K possibilities + }[K] + +type EitherStrict = Strict<__Either> + +type EitherLoose = ComputeRaw<__Either> + +type _Either< + O extends object, + K extends Key, + strict extends Boolean +> = { + 1: EitherStrict + 0: EitherLoose +}[strict] + +export type Either< + O extends object, + K extends Key, + strict extends Boolean = 1 +> = O extends unknown ? _Either : never + +export type Union = any + +export type PatchUndefined = { + [K in keyof O]: O[K] extends undefined ? At : O[K] +} & {} + +/** Helper Types for "Merge" **/ +export type IntersectOf = ( + U extends unknown ? (k: U) => void : never +) extends (k: infer I) => void + ? I + : never + +export type Overwrite = { + [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; +} & {}; + +type _Merge = IntersectOf; +}>>; + +type Key = string | number | symbol; +type AtStrict = O[K & keyof O]; +type AtLoose = O extends unknown ? AtStrict : never; +export type At = { + 1: AtStrict; + 0: AtLoose; +}[strict]; + +export type ComputeRaw = A extends Function ? A : { + [K in keyof A]: A[K]; +} & {}; + +export type OptionalFlat = { + [K in keyof O]?: O[K]; +} & {}; + +type _Record = { + [P in K]: T; +}; + +// cause typescript not to expand types and preserve names +type NoExpand = T extends unknown ? T : never; + +// this type assumes the passed object is entirely optional +export type AtLeast = NoExpand< + O extends unknown + ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) + | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O + : never>; + +type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; + +export type Strict = ComputeRaw<_Strict>; +/** End Helper Types for "Merge" **/ + +export type Merge = ComputeRaw<_Merge>>; + +export type Boolean = True | False + +export type True = 1 + +export type False = 0 + +export type Not = { + 0: 1 + 1: 0 +}[B] + +export type Extends = [A1] extends [never] + ? 0 // anything `never` is false + : A1 extends A2 + ? 1 + : 0 + +export type Has = Not< + Extends, U1> +> + +export type Or = { + 0: { + 0: 0 + 1: 1 + } + 1: { + 0: 1 + 1: 1 + } +}[B1][B2] + +export type Keys = U extends unknown ? keyof U : never + +export type GetScalarType = O extends object ? { + [P in keyof T]: P extends keyof O + ? O[P] + : never +} : never + +type FieldPaths< + T, + U = Omit +> = IsObject extends True ? U : T + +export type GetHavingFields = { + [K in keyof T]: Or< + Or, Extends<'AND', K>>, + Extends<'NOT', K> + > extends True + ? // infer is only needed to not hit TS limit + // based on the brilliant idea of Pierre-Antoine Mills + // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 + T[K] extends infer TK + ? GetHavingFields extends object ? Merge> : never> + : never + : {} extends FieldPaths + ? never + : K +}[keyof T] + +/** + * Convert tuple to union + */ +type _TupleToUnion = T extends (infer E)[] ? E : never +type TupleToUnion = _TupleToUnion +export type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T + +/** + * Like `Pick`, but additionally can also accept an array of keys + */ +export type PickEnumerable | keyof T> = Prisma__Pick> + +/** + * Exclude all keys with underscores + */ +export type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T + + +export type FieldRef = runtime.FieldRef + +type FieldRefInputType = Model extends never ? never : FieldRef + + +export const ModelName = { + account: 'account', + account_group: 'account_group', + account_memo: 'account_memo', + compta_comptes: 'compta_comptes', + compta_comptes_soldes: 'compta_comptes_soldes', + compta_journal_ecriture: 'compta_journal_ecriture', + compta_journal_ecriture_bk: 'compta_journal_ecriture_bk', + compta_journal_ecriture_detail: 'compta_journal_ecriture_detail', + compta_journal_ecriture_detail_bk: 'compta_journal_ecriture_detail_bk', + compta_periode: 'compta_periode', + compta_ppa_file_id: 'compta_ppa_file_id', + compta_setup: 'compta_setup', + credit_code: 'credit_code', + tax: 'tax', + tax_group: 'tax_group', + td_payable: 'td_payable', + conso: 'conso', + conso_archive: 'conso_archive', + conso_avis: 'conso_avis', + conso_radius: 'conso_radius', + conso_radius_daily: 'conso_radius_daily', + conso_radius_daily2: 'conso_radius_daily2', + conso_radius_hourly: 'conso_radius_hourly', + conso_radius_monthly: 'conso_radius_monthly', + conso_radius_monthly2: 'conso_radius_monthly2', + delivery: 'delivery', + delivery_history: 'delivery_history', + device: 'device', + device_archive: 'device_archive', + device_attr: 'device_attr', + device_link: 'device_link', + device_template: 'device_template', + device_template_attr: 'device_template_attr', + product: 'product', + product_cat: 'product_cat', + product_format: 'product_format', + product_fournisseur: 'product_fournisseur', + product_profile: 'product_profile', + product_speciaux: 'product_speciaux', + product_translate: 'product_translate', + product_zone: 'product_zone', + product_zone_placemarks: 'product_zone_placemarks', + inventaire_log: 'inventaire_log', + phone: 'phone', + phone_addr: 'phone_addr', + phone_comwave: 'phone_comwave', + phone_note: 'phone_note', + phone_provisioning: 'phone_provisioning', + phonecall_channel: 'phonecall_channel', + phonecall_log_2025: 'phonecall_log_2025', + phonecall_log_2026: 'phonecall_log_2026', + voicemeup: 'voicemeup', + pbx: 'pbx', + pbx_app: 'pbx_app', + pbx_com: 'pbx_com', + pbx_com_wl: 'pbx_com_wl', + pbx_fax: 'pbx_fax', + payment: 'payment', + payment_item: 'payment_item', + passwords_manager: 'passwords_manager', + passwords_manager_cat: 'passwords_manager_cat', + passwords_manager_group: 'passwords_manager_group', + notification: 'notification', + notification_payload: 'notification_payload', + municipalite: 'municipalite', + sommaire_porte: 'sommaire_porte', + state: 'state', + licence: 'licence', + licence_key: 'licence_key', + ip: 'ip', + ip_admin: 'ip_admin', + ip_history: 'ip_history', + ip_pp: 'ip_pp', + ip_static: 'ip_static', + ip_targo: 'ip_targo', + invoice: 'invoice', + invoice_bk: 'invoice_bk', + invoice_call: 'invoice_call', + invoice_item: 'invoice_item', + invoice_item_bk: 'invoice_item_bk', + invoice_msg_template: 'invoice_msg_template', + invoice_tax: 'invoice_tax', + invoice_tax_bk: 'invoice_tax_bk', + accord_paiement: 'accord_paiement', + autologin: 'autologin', + statement: 'statement', + intranet_doc: 'intranet_doc', + intranet_doc_paths: 'intranet_doc_paths', + intranet_doc_reply: 'intranet_doc_reply', + intranet_feed: 'intranet_feed', + intranet_feed_reply: 'intranet_feed_reply', + intranet_techniciens: 'intranet_techniciens', + intranet_techniciens_reply: 'intranet_techniciens_reply', + intranet_techno: 'intranet_techno', + intranet_techno_reply: 'intranet_techno_reply', + fibre: 'fibre', + fibre_olt: 'fibre_olt', + fibre_service_port: 'fibre_service_port', + fibre_suivi: 'fibre_suivi', + fibre_tech: 'fibre_tech', + fibre_videotron: 'fibre_videotron', + gantt: 'gantt', + gantt_template: 'gantt_template', + project: 'project', + project_cmd: 'project_cmd', + project_cmd_item: 'project_cmd_item', + project_manager_cat: 'project_manager_cat', + project_manager_checklist: 'project_manager_checklist', + project_manager_comment: 'project_manager_comment', + project_manager_task: 'project_manager_task', + service: 'service', + service_snapshot: 'service_snapshot', + soumission: 'soumission', + soumission_template: 'soumission_template', + staff: 'staff', + staff_dispo: 'staff_dispo', + staff_supp: 'staff_supp', + tele_carte: 'tele_carte', + tele_channel: 'tele_channel', + tele_groupe: 'tele_groupe', + tele_network: 'tele_network', + tele_pack: 'tele_pack', + tele_penetration: 'tele_penetration', + tele_sub_archive: 'tele_sub_archive', + tele_wiz: 'tele_wiz', + tv_mac: 'tv_mac', + ticket: 'ticket', + ticket_calendar_lock: 'ticket_calendar_lock', + ticket_calendar_staff_lock: 'ticket_calendar_staff_lock', + ticket_conge: 'ticket_conge', + ticket_dept: 'ticket_dept', + ticket_msg: 'ticket_msg', + ticket_template: 'ticket_template', + tmp_vpn: 'tmp_vpn', + bon_travail: 'bon_travail', + bon_travail_item: 'bon_travail_item', + checklist_relais: 'checklist_relais', + conference: 'conference', + conference_room: 'conference_room', + fournisseur: 'fournisseur', + notice_gui: 'notice_gui', + promo: 'promo', + stbs: 'stbs', + tech_dispo: 'tech_dispo', + debug: 'debug', + carte_temps: 'carte_temps', + carte_temps_periode: 'carte_temps_periode', + banque_heure_staff: 'banque_heure_staff', + hour_bank: 'hour_bank', + hour_bank_detail: 'hour_bank_detail', + test: 'test', + account_memo_template: 'account_memo_template', + notes: 'notes', + email: 'email', + client_pwd: 'client_pwd', + account_profile: 'account_profile', + deposit_slip: 'deposit_slip', + account_suspension: 'account_suspension' +} as const + +export type ModelName = (typeof ModelName)[keyof typeof ModelName] + + + +export interface TypeMapCb extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record> { + returns: TypeMap +} + +export type TypeMap = { + globalOmitOptions: { + omit: GlobalOmitOptions + } + meta: { + modelProps: "account" | "account_group" | "account_memo" | "compta_comptes" | "compta_comptes_soldes" | "compta_journal_ecriture" | "compta_journal_ecriture_bk" | "compta_journal_ecriture_detail" | "compta_journal_ecriture_detail_bk" | "compta_periode" | "compta_ppa_file_id" | "compta_setup" | "credit_code" | "tax" | "tax_group" | "td_payable" | "conso" | "conso_archive" | "conso_avis" | "conso_radius" | "conso_radius_daily" | "conso_radius_daily2" | "conso_radius_hourly" | "conso_radius_monthly" | "conso_radius_monthly2" | "delivery" | "delivery_history" | "device" | "device_archive" | "device_attr" | "device_link" | "device_template" | "device_template_attr" | "product" | "product_cat" | "product_format" | "product_fournisseur" | "product_profile" | "product_speciaux" | "product_translate" | "product_zone" | "product_zone_placemarks" | "inventaire_log" | "phone" | "phone_addr" | "phone_comwave" | "phone_note" | "phone_provisioning" | "phonecall_channel" | "phonecall_log_2025" | "phonecall_log_2026" | "voicemeup" | "pbx" | "pbx_app" | "pbx_com" | "pbx_com_wl" | "pbx_fax" | "payment" | "payment_item" | "passwords_manager" | "passwords_manager_cat" | "passwords_manager_group" | "notification" | "notification_payload" | "municipalite" | "sommaire_porte" | "state" | "licence" | "licence_key" | "ip" | "ip_admin" | "ip_history" | "ip_pp" | "ip_static" | "ip_targo" | "invoice" | "invoice_bk" | "invoice_call" | "invoice_item" | "invoice_item_bk" | "invoice_msg_template" | "invoice_tax" | "invoice_tax_bk" | "accord_paiement" | "autologin" | "statement" | "intranet_doc" | "intranet_doc_paths" | "intranet_doc_reply" | "intranet_feed" | "intranet_feed_reply" | "intranet_techniciens" | "intranet_techniciens_reply" | "intranet_techno" | "intranet_techno_reply" | "fibre" | "fibre_olt" | "fibre_service_port" | "fibre_suivi" | "fibre_tech" | "fibre_videotron" | "gantt" | "gantt_template" | "project" | "project_cmd" | "project_cmd_item" | "project_manager_cat" | "project_manager_checklist" | "project_manager_comment" | "project_manager_task" | "service" | "service_snapshot" | "soumission" | "soumission_template" | "staff" | "staff_dispo" | "staff_supp" | "tele_carte" | "tele_channel" | "tele_groupe" | "tele_network" | "tele_pack" | "tele_penetration" | "tele_sub_archive" | "tele_wiz" | "tv_mac" | "ticket" | "ticket_calendar_lock" | "ticket_calendar_staff_lock" | "ticket_conge" | "ticket_dept" | "ticket_msg" | "ticket_template" | "tmp_vpn" | "bon_travail" | "bon_travail_item" | "checklist_relais" | "conference" | "conference_room" | "fournisseur" | "notice_gui" | "promo" | "stbs" | "tech_dispo" | "debug" | "carte_temps" | "carte_temps_periode" | "banque_heure_staff" | "hour_bank" | "hour_bank_detail" | "test" | "account_memo_template" | "notes" | "email" | "client_pwd" | "account_profile" | "deposit_slip" | "account_suspension" + txIsolationLevel: TransactionIsolationLevel + } + model: { + account: { + payload: Prisma.$accountPayload + fields: Prisma.accountFieldRefs + operations: { + findUnique: { + args: Prisma.accountFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.accountFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.accountFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.accountFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.accountFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.accountCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.accountCreateManyArgs + result: BatchPayload + } + 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 + } + 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 + } + } + } + account_group: { + payload: Prisma.$account_groupPayload + fields: Prisma.account_groupFieldRefs + operations: { + findUnique: { + args: Prisma.account_groupFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.account_groupFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.account_groupFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.account_groupFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.account_groupFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.account_groupCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.account_groupCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.account_groupDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.account_groupUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.account_groupDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.account_groupUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.account_groupUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Account_groupAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.account_groupGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.account_groupCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + account_memo: { + payload: Prisma.$account_memoPayload + fields: Prisma.account_memoFieldRefs + operations: { + findUnique: { + args: Prisma.account_memoFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.account_memoFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.account_memoFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.account_memoFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.account_memoFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.account_memoCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.account_memoCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.account_memoDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.account_memoUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.account_memoDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.account_memoUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.account_memoUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Account_memoAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.account_memoGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.account_memoCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + compta_comptes: { + payload: Prisma.$compta_comptesPayload + fields: Prisma.compta_comptesFieldRefs + operations: { + findUnique: { + args: Prisma.compta_comptesFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.compta_comptesFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.compta_comptesFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.compta_comptesFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.compta_comptesFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.compta_comptesCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.compta_comptesCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.compta_comptesDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.compta_comptesUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.compta_comptesDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.compta_comptesUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.compta_comptesUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Compta_comptesAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.compta_comptesGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.compta_comptesCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + compta_comptes_soldes: { + payload: Prisma.$compta_comptes_soldesPayload + fields: Prisma.compta_comptes_soldesFieldRefs + operations: { + findUnique: { + args: Prisma.compta_comptes_soldesFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.compta_comptes_soldesFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.compta_comptes_soldesFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.compta_comptes_soldesFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.compta_comptes_soldesFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.compta_comptes_soldesCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.compta_comptes_soldesCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.compta_comptes_soldesDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.compta_comptes_soldesUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.compta_comptes_soldesDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.compta_comptes_soldesUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.compta_comptes_soldesUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Compta_comptes_soldesAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.compta_comptes_soldesGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.compta_comptes_soldesCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + compta_journal_ecriture: { + payload: Prisma.$compta_journal_ecriturePayload + fields: Prisma.compta_journal_ecritureFieldRefs + operations: { + findUnique: { + args: Prisma.compta_journal_ecritureFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.compta_journal_ecritureFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.compta_journal_ecritureFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.compta_journal_ecritureFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.compta_journal_ecritureFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.compta_journal_ecritureCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.compta_journal_ecritureCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.compta_journal_ecritureDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.compta_journal_ecritureUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.compta_journal_ecritureDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.compta_journal_ecritureUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.compta_journal_ecritureUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Compta_journal_ecritureAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.compta_journal_ecritureGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.compta_journal_ecritureCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + compta_journal_ecriture_bk: { + payload: Prisma.$compta_journal_ecriture_bkPayload + fields: Prisma.compta_journal_ecriture_bkFieldRefs + operations: { + findUnique: { + args: Prisma.compta_journal_ecriture_bkFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.compta_journal_ecriture_bkFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.compta_journal_ecriture_bkFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.compta_journal_ecriture_bkFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.compta_journal_ecriture_bkFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.compta_journal_ecriture_bkCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.compta_journal_ecriture_bkCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.compta_journal_ecriture_bkDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.compta_journal_ecriture_bkUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.compta_journal_ecriture_bkDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.compta_journal_ecriture_bkUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.compta_journal_ecriture_bkUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Compta_journal_ecriture_bkAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.compta_journal_ecriture_bkGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.compta_journal_ecriture_bkCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + compta_journal_ecriture_detail: { + payload: Prisma.$compta_journal_ecriture_detailPayload + fields: Prisma.compta_journal_ecriture_detailFieldRefs + operations: { + findUnique: { + args: Prisma.compta_journal_ecriture_detailFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.compta_journal_ecriture_detailFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.compta_journal_ecriture_detailFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.compta_journal_ecriture_detailFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.compta_journal_ecriture_detailFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.compta_journal_ecriture_detailCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.compta_journal_ecriture_detailCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.compta_journal_ecriture_detailDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.compta_journal_ecriture_detailUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.compta_journal_ecriture_detailDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.compta_journal_ecriture_detailUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.compta_journal_ecriture_detailUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Compta_journal_ecriture_detailAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.compta_journal_ecriture_detailGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.compta_journal_ecriture_detailCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + compta_journal_ecriture_detail_bk: { + payload: Prisma.$compta_journal_ecriture_detail_bkPayload + fields: Prisma.compta_journal_ecriture_detail_bkFieldRefs + operations: { + findUnique: { + args: Prisma.compta_journal_ecriture_detail_bkFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.compta_journal_ecriture_detail_bkFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.compta_journal_ecriture_detail_bkFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.compta_journal_ecriture_detail_bkFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.compta_journal_ecriture_detail_bkFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.compta_journal_ecriture_detail_bkCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.compta_journal_ecriture_detail_bkCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.compta_journal_ecriture_detail_bkDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.compta_journal_ecriture_detail_bkUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.compta_journal_ecriture_detail_bkDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.compta_journal_ecriture_detail_bkUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.compta_journal_ecriture_detail_bkUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Compta_journal_ecriture_detail_bkAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.compta_journal_ecriture_detail_bkGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.compta_journal_ecriture_detail_bkCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + compta_periode: { + payload: Prisma.$compta_periodePayload + fields: Prisma.compta_periodeFieldRefs + operations: { + findUnique: { + args: Prisma.compta_periodeFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.compta_periodeFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.compta_periodeFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.compta_periodeFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.compta_periodeFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.compta_periodeCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.compta_periodeCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.compta_periodeDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.compta_periodeUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.compta_periodeDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.compta_periodeUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.compta_periodeUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Compta_periodeAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.compta_periodeGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.compta_periodeCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + compta_ppa_file_id: { + payload: Prisma.$compta_ppa_file_idPayload + fields: Prisma.compta_ppa_file_idFieldRefs + operations: { + findUnique: { + args: Prisma.compta_ppa_file_idFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.compta_ppa_file_idFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.compta_ppa_file_idFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.compta_ppa_file_idFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.compta_ppa_file_idFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.compta_ppa_file_idCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.compta_ppa_file_idCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.compta_ppa_file_idDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.compta_ppa_file_idUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.compta_ppa_file_idDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.compta_ppa_file_idUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.compta_ppa_file_idUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Compta_ppa_file_idAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.compta_ppa_file_idGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.compta_ppa_file_idCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + compta_setup: { + payload: Prisma.$compta_setupPayload + fields: Prisma.compta_setupFieldRefs + operations: { + findUnique: { + args: Prisma.compta_setupFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.compta_setupFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.compta_setupFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.compta_setupFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.compta_setupFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.compta_setupCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.compta_setupCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.compta_setupDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.compta_setupUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.compta_setupDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.compta_setupUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.compta_setupUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Compta_setupAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.compta_setupGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.compta_setupCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + credit_code: { + payload: Prisma.$credit_codePayload + fields: Prisma.credit_codeFieldRefs + operations: { + findUnique: { + args: Prisma.credit_codeFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.credit_codeFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.credit_codeFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.credit_codeFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.credit_codeFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.credit_codeCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.credit_codeCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.credit_codeDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.credit_codeUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.credit_codeDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.credit_codeUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.credit_codeUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Credit_codeAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.credit_codeGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.credit_codeCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + tax: { + payload: Prisma.$taxPayload + fields: Prisma.taxFieldRefs + operations: { + findUnique: { + args: Prisma.taxFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.taxFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.taxFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.taxFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.taxFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.taxCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.taxCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.taxDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.taxUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.taxDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.taxUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.taxUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.TaxAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.taxGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.taxCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + tax_group: { + payload: Prisma.$tax_groupPayload + fields: Prisma.tax_groupFieldRefs + operations: { + findUnique: { + args: Prisma.tax_groupFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.tax_groupFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.tax_groupFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.tax_groupFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.tax_groupFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.tax_groupCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.tax_groupCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.tax_groupDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.tax_groupUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.tax_groupDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.tax_groupUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.tax_groupUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Tax_groupAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.tax_groupGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.tax_groupCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + td_payable: { + payload: Prisma.$td_payablePayload + fields: Prisma.td_payableFieldRefs + operations: { + findUnique: { + args: Prisma.td_payableFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.td_payableFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.td_payableFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.td_payableFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.td_payableFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.td_payableCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.td_payableCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.td_payableDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.td_payableUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.td_payableDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.td_payableUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.td_payableUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Td_payableAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.td_payableGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.td_payableCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + conso: { + payload: Prisma.$consoPayload + fields: Prisma.consoFieldRefs + operations: { + findUnique: { + args: Prisma.consoFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.consoFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.consoFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.consoFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.consoFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.consoCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.consoCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.consoDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.consoUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.consoDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.consoUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.consoUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ConsoAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.consoGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.consoCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + conso_archive: { + payload: Prisma.$conso_archivePayload + fields: Prisma.conso_archiveFieldRefs + operations: { + findUnique: { + args: Prisma.conso_archiveFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.conso_archiveFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.conso_archiveFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.conso_archiveFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.conso_archiveFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.conso_archiveCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.conso_archiveCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.conso_archiveDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.conso_archiveUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.conso_archiveDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.conso_archiveUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.conso_archiveUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Conso_archiveAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.conso_archiveGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.conso_archiveCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + conso_avis: { + payload: Prisma.$conso_avisPayload + fields: Prisma.conso_avisFieldRefs + operations: { + findUnique: { + args: Prisma.conso_avisFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.conso_avisFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.conso_avisFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.conso_avisFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.conso_avisFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.conso_avisCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.conso_avisCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.conso_avisDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.conso_avisUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.conso_avisDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.conso_avisUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.conso_avisUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Conso_avisAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.conso_avisGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.conso_avisCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + conso_radius: { + payload: Prisma.$conso_radiusPayload + fields: Prisma.conso_radiusFieldRefs + operations: { + findUnique: { + args: Prisma.conso_radiusFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.conso_radiusFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.conso_radiusFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.conso_radiusFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.conso_radiusFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.conso_radiusCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.conso_radiusCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.conso_radiusDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.conso_radiusUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.conso_radiusDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.conso_radiusUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.conso_radiusUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Conso_radiusAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.conso_radiusGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.conso_radiusCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + conso_radius_daily: { + payload: Prisma.$conso_radius_dailyPayload + fields: Prisma.conso_radius_dailyFieldRefs + operations: { + findUnique: { + args: Prisma.conso_radius_dailyFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.conso_radius_dailyFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.conso_radius_dailyFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.conso_radius_dailyFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.conso_radius_dailyFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.conso_radius_dailyCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.conso_radius_dailyCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.conso_radius_dailyDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.conso_radius_dailyUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.conso_radius_dailyDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.conso_radius_dailyUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.conso_radius_dailyUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Conso_radius_dailyAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.conso_radius_dailyGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.conso_radius_dailyCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + conso_radius_daily2: { + payload: Prisma.$conso_radius_daily2Payload + fields: Prisma.conso_radius_daily2FieldRefs + operations: { + findUnique: { + args: Prisma.conso_radius_daily2FindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.conso_radius_daily2FindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.conso_radius_daily2FindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.conso_radius_daily2FindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.conso_radius_daily2FindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.conso_radius_daily2CreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.conso_radius_daily2CreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.conso_radius_daily2DeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.conso_radius_daily2UpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.conso_radius_daily2DeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.conso_radius_daily2UpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.conso_radius_daily2UpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Conso_radius_daily2AggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.conso_radius_daily2GroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.conso_radius_daily2CountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + conso_radius_hourly: { + payload: Prisma.$conso_radius_hourlyPayload + fields: Prisma.conso_radius_hourlyFieldRefs + operations: { + findUnique: { + args: Prisma.conso_radius_hourlyFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.conso_radius_hourlyFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.conso_radius_hourlyFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.conso_radius_hourlyFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.conso_radius_hourlyFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.conso_radius_hourlyCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.conso_radius_hourlyCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.conso_radius_hourlyDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.conso_radius_hourlyUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.conso_radius_hourlyDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.conso_radius_hourlyUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.conso_radius_hourlyUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Conso_radius_hourlyAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.conso_radius_hourlyGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.conso_radius_hourlyCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + conso_radius_monthly: { + payload: Prisma.$conso_radius_monthlyPayload + fields: Prisma.conso_radius_monthlyFieldRefs + operations: { + findUnique: { + args: Prisma.conso_radius_monthlyFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.conso_radius_monthlyFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.conso_radius_monthlyFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.conso_radius_monthlyFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.conso_radius_monthlyFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.conso_radius_monthlyCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.conso_radius_monthlyCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.conso_radius_monthlyDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.conso_radius_monthlyUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.conso_radius_monthlyDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.conso_radius_monthlyUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.conso_radius_monthlyUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Conso_radius_monthlyAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.conso_radius_monthlyGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.conso_radius_monthlyCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + conso_radius_monthly2: { + payload: Prisma.$conso_radius_monthly2Payload + fields: Prisma.conso_radius_monthly2FieldRefs + operations: { + findUnique: { + args: Prisma.conso_radius_monthly2FindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.conso_radius_monthly2FindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.conso_radius_monthly2FindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.conso_radius_monthly2FindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.conso_radius_monthly2FindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.conso_radius_monthly2CreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.conso_radius_monthly2CreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.conso_radius_monthly2DeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.conso_radius_monthly2UpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.conso_radius_monthly2DeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.conso_radius_monthly2UpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.conso_radius_monthly2UpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Conso_radius_monthly2AggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.conso_radius_monthly2GroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.conso_radius_monthly2CountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + delivery: { + payload: Prisma.$deliveryPayload + fields: Prisma.deliveryFieldRefs + operations: { + findUnique: { + args: Prisma.deliveryFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.deliveryFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.deliveryFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.deliveryFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.deliveryFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.deliveryCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.deliveryCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.deliveryDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.deliveryUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.deliveryDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.deliveryUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.deliveryUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.DeliveryAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.deliveryGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.deliveryCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + delivery_history: { + payload: Prisma.$delivery_historyPayload + fields: Prisma.delivery_historyFieldRefs + operations: { + findUnique: { + args: Prisma.delivery_historyFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.delivery_historyFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.delivery_historyFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.delivery_historyFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.delivery_historyFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.delivery_historyCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.delivery_historyCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.delivery_historyDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.delivery_historyUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.delivery_historyDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.delivery_historyUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.delivery_historyUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Delivery_historyAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.delivery_historyGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.delivery_historyCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + device: { + payload: Prisma.$devicePayload + fields: Prisma.deviceFieldRefs + operations: { + findUnique: { + args: Prisma.deviceFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.deviceFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.deviceFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.deviceFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.deviceFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.deviceCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.deviceCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.deviceDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.deviceUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.deviceDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.deviceUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.deviceUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.DeviceAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.deviceGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.deviceCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + device_archive: { + payload: Prisma.$device_archivePayload + fields: Prisma.device_archiveFieldRefs + operations: { + findUnique: { + args: Prisma.device_archiveFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.device_archiveFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.device_archiveFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.device_archiveFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.device_archiveFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.device_archiveCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.device_archiveCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.device_archiveDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.device_archiveUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.device_archiveDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.device_archiveUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.device_archiveUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Device_archiveAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.device_archiveGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.device_archiveCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + device_attr: { + payload: Prisma.$device_attrPayload + fields: Prisma.device_attrFieldRefs + operations: { + findUnique: { + args: Prisma.device_attrFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.device_attrFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.device_attrFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.device_attrFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.device_attrFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.device_attrCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.device_attrCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.device_attrDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.device_attrUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.device_attrDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.device_attrUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.device_attrUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Device_attrAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.device_attrGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.device_attrCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + device_link: { + payload: Prisma.$device_linkPayload + fields: Prisma.device_linkFieldRefs + operations: { + findUnique: { + args: Prisma.device_linkFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.device_linkFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.device_linkFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.device_linkFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.device_linkFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.device_linkCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.device_linkCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.device_linkDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.device_linkUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.device_linkDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.device_linkUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.device_linkUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Device_linkAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.device_linkGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.device_linkCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + device_template: { + payload: Prisma.$device_templatePayload + fields: Prisma.device_templateFieldRefs + operations: { + findUnique: { + args: Prisma.device_templateFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.device_templateFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.device_templateFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.device_templateFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.device_templateFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.device_templateCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.device_templateCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.device_templateDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.device_templateUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.device_templateDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.device_templateUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.device_templateUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Device_templateAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.device_templateGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.device_templateCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + device_template_attr: { + payload: Prisma.$device_template_attrPayload + fields: Prisma.device_template_attrFieldRefs + operations: { + findUnique: { + args: Prisma.device_template_attrFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.device_template_attrFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.device_template_attrFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.device_template_attrFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.device_template_attrFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.device_template_attrCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.device_template_attrCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.device_template_attrDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.device_template_attrUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.device_template_attrDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.device_template_attrUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.device_template_attrUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Device_template_attrAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.device_template_attrGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.device_template_attrCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + product: { + payload: Prisma.$productPayload + fields: Prisma.productFieldRefs + operations: { + findUnique: { + args: Prisma.productFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.productFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.productFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.productFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.productFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.productCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.productCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.productDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.productUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.productDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.productUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.productUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ProductAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.productGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.productCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + product_cat: { + payload: Prisma.$product_catPayload + fields: Prisma.product_catFieldRefs + operations: { + findUnique: { + args: Prisma.product_catFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.product_catFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.product_catFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.product_catFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.product_catFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.product_catCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.product_catCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.product_catDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.product_catUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.product_catDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.product_catUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.product_catUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Product_catAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.product_catGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.product_catCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + product_format: { + payload: Prisma.$product_formatPayload + fields: Prisma.product_formatFieldRefs + operations: { + findUnique: { + args: Prisma.product_formatFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.product_formatFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.product_formatFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.product_formatFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.product_formatFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.product_formatCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.product_formatCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.product_formatDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.product_formatUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.product_formatDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.product_formatUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.product_formatUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Product_formatAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.product_formatGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.product_formatCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + product_fournisseur: { + payload: Prisma.$product_fournisseurPayload + fields: Prisma.product_fournisseurFieldRefs + operations: { + findUnique: { + args: Prisma.product_fournisseurFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.product_fournisseurFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.product_fournisseurFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.product_fournisseurFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.product_fournisseurFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.product_fournisseurCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.product_fournisseurCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.product_fournisseurDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.product_fournisseurUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.product_fournisseurDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.product_fournisseurUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.product_fournisseurUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Product_fournisseurAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.product_fournisseurGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.product_fournisseurCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + product_profile: { + payload: Prisma.$product_profilePayload + fields: Prisma.product_profileFieldRefs + operations: { + findUnique: { + args: Prisma.product_profileFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.product_profileFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.product_profileFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.product_profileFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.product_profileFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.product_profileCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.product_profileCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.product_profileDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.product_profileUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.product_profileDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.product_profileUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.product_profileUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Product_profileAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.product_profileGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.product_profileCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + product_speciaux: { + payload: Prisma.$product_speciauxPayload + fields: Prisma.product_speciauxFieldRefs + operations: { + findUnique: { + args: Prisma.product_speciauxFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.product_speciauxFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.product_speciauxFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.product_speciauxFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.product_speciauxFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.product_speciauxCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.product_speciauxCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.product_speciauxDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.product_speciauxUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.product_speciauxDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.product_speciauxUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.product_speciauxUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Product_speciauxAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.product_speciauxGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.product_speciauxCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + product_translate: { + payload: Prisma.$product_translatePayload + fields: Prisma.product_translateFieldRefs + operations: { + findUnique: { + args: Prisma.product_translateFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.product_translateFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.product_translateFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.product_translateFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.product_translateFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.product_translateCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.product_translateCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.product_translateDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.product_translateUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.product_translateDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.product_translateUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.product_translateUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Product_translateAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.product_translateGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.product_translateCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + product_zone: { + payload: Prisma.$product_zonePayload + fields: Prisma.product_zoneFieldRefs + operations: { + findUnique: { + args: Prisma.product_zoneFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.product_zoneFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.product_zoneFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.product_zoneFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.product_zoneFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.product_zoneCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.product_zoneCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.product_zoneDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.product_zoneUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.product_zoneDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.product_zoneUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.product_zoneUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Product_zoneAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.product_zoneGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.product_zoneCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + product_zone_placemarks: { + payload: Prisma.$product_zone_placemarksPayload + fields: Prisma.product_zone_placemarksFieldRefs + operations: { + findUnique: { + args: Prisma.product_zone_placemarksFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.product_zone_placemarksFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.product_zone_placemarksFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.product_zone_placemarksFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.product_zone_placemarksFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.product_zone_placemarksCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.product_zone_placemarksCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.product_zone_placemarksDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.product_zone_placemarksUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.product_zone_placemarksDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.product_zone_placemarksUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.product_zone_placemarksUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Product_zone_placemarksAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.product_zone_placemarksGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.product_zone_placemarksCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + inventaire_log: { + payload: Prisma.$inventaire_logPayload + fields: Prisma.inventaire_logFieldRefs + operations: { + findUnique: { + args: Prisma.inventaire_logFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.inventaire_logFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.inventaire_logFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.inventaire_logFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.inventaire_logFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.inventaire_logCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.inventaire_logCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.inventaire_logDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.inventaire_logUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.inventaire_logDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.inventaire_logUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.inventaire_logUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Inventaire_logAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.inventaire_logGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.inventaire_logCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + phone: { + payload: Prisma.$phonePayload + fields: Prisma.phoneFieldRefs + operations: { + findUnique: { + args: Prisma.phoneFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.phoneFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.phoneFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.phoneFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.phoneFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.phoneCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.phoneCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.phoneDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.phoneUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.phoneDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.phoneUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.phoneUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.PhoneAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.phoneGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.phoneCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + phone_addr: { + payload: Prisma.$phone_addrPayload + fields: Prisma.phone_addrFieldRefs + operations: { + findUnique: { + args: Prisma.phone_addrFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.phone_addrFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.phone_addrFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.phone_addrFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.phone_addrFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.phone_addrCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.phone_addrCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.phone_addrDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.phone_addrUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.phone_addrDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.phone_addrUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.phone_addrUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Phone_addrAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.phone_addrGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.phone_addrCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + phone_comwave: { + payload: Prisma.$phone_comwavePayload + fields: Prisma.phone_comwaveFieldRefs + operations: { + findUnique: { + args: Prisma.phone_comwaveFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.phone_comwaveFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.phone_comwaveFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.phone_comwaveFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.phone_comwaveFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.phone_comwaveCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.phone_comwaveCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.phone_comwaveDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.phone_comwaveUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.phone_comwaveDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.phone_comwaveUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.phone_comwaveUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Phone_comwaveAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.phone_comwaveGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.phone_comwaveCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + phone_note: { + payload: Prisma.$phone_notePayload + fields: Prisma.phone_noteFieldRefs + operations: { + findUnique: { + args: Prisma.phone_noteFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.phone_noteFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.phone_noteFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.phone_noteFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.phone_noteFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.phone_noteCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.phone_noteCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.phone_noteDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.phone_noteUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.phone_noteDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.phone_noteUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.phone_noteUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Phone_noteAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.phone_noteGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.phone_noteCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + phone_provisioning: { + payload: Prisma.$phone_provisioningPayload + fields: Prisma.phone_provisioningFieldRefs + operations: { + findUnique: { + args: Prisma.phone_provisioningFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.phone_provisioningFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.phone_provisioningFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.phone_provisioningFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.phone_provisioningFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.phone_provisioningCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.phone_provisioningCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.phone_provisioningDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.phone_provisioningUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.phone_provisioningDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.phone_provisioningUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.phone_provisioningUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Phone_provisioningAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.phone_provisioningGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.phone_provisioningCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + phonecall_channel: { + payload: Prisma.$phonecall_channelPayload + fields: Prisma.phonecall_channelFieldRefs + operations: { + findUnique: { + args: Prisma.phonecall_channelFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.phonecall_channelFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.phonecall_channelFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.phonecall_channelFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.phonecall_channelFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.phonecall_channelCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.phonecall_channelCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.phonecall_channelDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.phonecall_channelUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.phonecall_channelDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.phonecall_channelUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.phonecall_channelUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Phonecall_channelAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.phonecall_channelGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.phonecall_channelCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + phonecall_log_2025: { + payload: Prisma.$phonecall_log_2025Payload + fields: Prisma.phonecall_log_2025FieldRefs + operations: { + findUnique: { + args: Prisma.phonecall_log_2025FindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.phonecall_log_2025FindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.phonecall_log_2025FindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.phonecall_log_2025FindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.phonecall_log_2025FindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.phonecall_log_2025CreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.phonecall_log_2025CreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.phonecall_log_2025DeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.phonecall_log_2025UpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.phonecall_log_2025DeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.phonecall_log_2025UpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.phonecall_log_2025UpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Phonecall_log_2025AggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.phonecall_log_2025GroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.phonecall_log_2025CountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + phonecall_log_2026: { + payload: Prisma.$phonecall_log_2026Payload + fields: Prisma.phonecall_log_2026FieldRefs + operations: { + findUnique: { + args: Prisma.phonecall_log_2026FindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.phonecall_log_2026FindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.phonecall_log_2026FindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.phonecall_log_2026FindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.phonecall_log_2026FindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.phonecall_log_2026CreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.phonecall_log_2026CreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.phonecall_log_2026DeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.phonecall_log_2026UpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.phonecall_log_2026DeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.phonecall_log_2026UpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.phonecall_log_2026UpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Phonecall_log_2026AggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.phonecall_log_2026GroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.phonecall_log_2026CountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + voicemeup: { + payload: Prisma.$voicemeupPayload + fields: Prisma.voicemeupFieldRefs + operations: { + findUnique: { + args: Prisma.voicemeupFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.voicemeupFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.voicemeupFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.voicemeupFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.voicemeupFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.voicemeupCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.voicemeupCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.voicemeupDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.voicemeupUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.voicemeupDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.voicemeupUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.voicemeupUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.VoicemeupAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.voicemeupGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.voicemeupCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + pbx: { + payload: Prisma.$pbxPayload + fields: Prisma.pbxFieldRefs + operations: { + findUnique: { + args: Prisma.pbxFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.pbxFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.pbxFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.pbxFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.pbxFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.pbxCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.pbxCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.pbxDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.pbxUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.pbxDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.pbxUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.pbxUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.PbxAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.pbxGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.pbxCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + pbx_app: { + payload: Prisma.$pbx_appPayload + fields: Prisma.pbx_appFieldRefs + operations: { + findUnique: { + args: Prisma.pbx_appFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.pbx_appFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.pbx_appFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.pbx_appFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.pbx_appFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.pbx_appCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.pbx_appCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.pbx_appDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.pbx_appUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.pbx_appDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.pbx_appUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.pbx_appUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Pbx_appAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.pbx_appGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.pbx_appCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + pbx_com: { + payload: Prisma.$pbx_comPayload + fields: Prisma.pbx_comFieldRefs + operations: { + findUnique: { + args: Prisma.pbx_comFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.pbx_comFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.pbx_comFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.pbx_comFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.pbx_comFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.pbx_comCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.pbx_comCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.pbx_comDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.pbx_comUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.pbx_comDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.pbx_comUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.pbx_comUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Pbx_comAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.pbx_comGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.pbx_comCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + pbx_com_wl: { + payload: Prisma.$pbx_com_wlPayload + fields: Prisma.pbx_com_wlFieldRefs + operations: { + findUnique: { + args: Prisma.pbx_com_wlFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.pbx_com_wlFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.pbx_com_wlFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.pbx_com_wlFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.pbx_com_wlFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.pbx_com_wlCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.pbx_com_wlCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.pbx_com_wlDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.pbx_com_wlUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.pbx_com_wlDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.pbx_com_wlUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.pbx_com_wlUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Pbx_com_wlAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.pbx_com_wlGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.pbx_com_wlCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + pbx_fax: { + payload: Prisma.$pbx_faxPayload + fields: Prisma.pbx_faxFieldRefs + operations: { + findUnique: { + args: Prisma.pbx_faxFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.pbx_faxFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.pbx_faxFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.pbx_faxFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.pbx_faxFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.pbx_faxCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.pbx_faxCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.pbx_faxDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.pbx_faxUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.pbx_faxDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.pbx_faxUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.pbx_faxUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Pbx_faxAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.pbx_faxGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.pbx_faxCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + payment: { + payload: Prisma.$paymentPayload + fields: Prisma.paymentFieldRefs + operations: { + findUnique: { + args: Prisma.paymentFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.paymentFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.paymentFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.paymentFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.paymentFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.paymentCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.paymentCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.paymentDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.paymentUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.paymentDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.paymentUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.paymentUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.PaymentAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.paymentGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.paymentCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + payment_item: { + payload: Prisma.$payment_itemPayload + fields: Prisma.payment_itemFieldRefs + operations: { + findUnique: { + args: Prisma.payment_itemFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.payment_itemFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.payment_itemFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.payment_itemFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.payment_itemFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.payment_itemCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.payment_itemCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.payment_itemDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.payment_itemUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.payment_itemDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.payment_itemUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.payment_itemUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Payment_itemAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.payment_itemGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.payment_itemCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + passwords_manager: { + payload: Prisma.$passwords_managerPayload + fields: Prisma.passwords_managerFieldRefs + operations: { + findUnique: { + args: Prisma.passwords_managerFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.passwords_managerFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.passwords_managerFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.passwords_managerFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.passwords_managerFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.passwords_managerCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.passwords_managerCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.passwords_managerDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.passwords_managerUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.passwords_managerDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.passwords_managerUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.passwords_managerUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Passwords_managerAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.passwords_managerGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.passwords_managerCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + passwords_manager_cat: { + payload: Prisma.$passwords_manager_catPayload + fields: Prisma.passwords_manager_catFieldRefs + operations: { + findUnique: { + args: Prisma.passwords_manager_catFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.passwords_manager_catFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.passwords_manager_catFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.passwords_manager_catFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.passwords_manager_catFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.passwords_manager_catCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.passwords_manager_catCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.passwords_manager_catDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.passwords_manager_catUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.passwords_manager_catDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.passwords_manager_catUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.passwords_manager_catUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Passwords_manager_catAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.passwords_manager_catGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.passwords_manager_catCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + passwords_manager_group: { + payload: Prisma.$passwords_manager_groupPayload + fields: Prisma.passwords_manager_groupFieldRefs + operations: { + findUnique: { + args: Prisma.passwords_manager_groupFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.passwords_manager_groupFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.passwords_manager_groupFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.passwords_manager_groupFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.passwords_manager_groupFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.passwords_manager_groupCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.passwords_manager_groupCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.passwords_manager_groupDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.passwords_manager_groupUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.passwords_manager_groupDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.passwords_manager_groupUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.passwords_manager_groupUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Passwords_manager_groupAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.passwords_manager_groupGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.passwords_manager_groupCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + notification: { + payload: Prisma.$notificationPayload + fields: Prisma.notificationFieldRefs + operations: { + findUnique: { + args: Prisma.notificationFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.notificationFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.notificationFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.notificationFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.notificationFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.notificationCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.notificationCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.notificationDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.notificationUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.notificationDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.notificationUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.notificationUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.NotificationAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.notificationGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.notificationCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + notification_payload: { + payload: Prisma.$notification_payloadPayload + fields: Prisma.notification_payloadFieldRefs + operations: { + findUnique: { + args: Prisma.notification_payloadFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.notification_payloadFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.notification_payloadFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.notification_payloadFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.notification_payloadFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.notification_payloadCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.notification_payloadCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.notification_payloadDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.notification_payloadUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.notification_payloadDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.notification_payloadUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.notification_payloadUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Notification_payloadAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.notification_payloadGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.notification_payloadCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + municipalite: { + payload: Prisma.$municipalitePayload + fields: Prisma.municipaliteFieldRefs + operations: { + findUnique: { + args: Prisma.municipaliteFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.municipaliteFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.municipaliteFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.municipaliteFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.municipaliteFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.municipaliteCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.municipaliteCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.municipaliteDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.municipaliteUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.municipaliteDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.municipaliteUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.municipaliteUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.MunicipaliteAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.municipaliteGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.municipaliteCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + sommaire_porte: { + payload: Prisma.$sommaire_portePayload + fields: Prisma.sommaire_porteFieldRefs + operations: { + findUnique: { + args: Prisma.sommaire_porteFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.sommaire_porteFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.sommaire_porteFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.sommaire_porteFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.sommaire_porteFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.sommaire_porteCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.sommaire_porteCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.sommaire_porteDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.sommaire_porteUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.sommaire_porteDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.sommaire_porteUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.sommaire_porteUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Sommaire_porteAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.sommaire_porteGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.sommaire_porteCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + state: { + payload: Prisma.$statePayload + fields: Prisma.stateFieldRefs + operations: { + findUnique: { + args: Prisma.stateFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.stateFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.stateFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.stateFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.stateFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.stateCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.stateCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.stateDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.stateUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.stateDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.stateUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.stateUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.StateAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.stateGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.stateCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + licence: { + payload: Prisma.$licencePayload + fields: Prisma.licenceFieldRefs + operations: { + findUnique: { + args: Prisma.licenceFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.licenceFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.licenceFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.licenceFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.licenceFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.licenceCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.licenceCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.licenceDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.licenceUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.licenceDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.licenceUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.licenceUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.LicenceAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.licenceGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.licenceCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + licence_key: { + payload: Prisma.$licence_keyPayload + fields: Prisma.licence_keyFieldRefs + operations: { + findUnique: { + args: Prisma.licence_keyFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.licence_keyFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.licence_keyFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.licence_keyFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.licence_keyFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.licence_keyCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.licence_keyCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.licence_keyDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.licence_keyUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.licence_keyDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.licence_keyUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.licence_keyUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Licence_keyAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.licence_keyGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.licence_keyCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ip: { + payload: Prisma.$ipPayload + fields: Prisma.ipFieldRefs + operations: { + findUnique: { + args: Prisma.ipFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ipFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ipFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ipFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ipFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ipCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ipCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ipDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ipUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ipDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ipUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ipUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.IpAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ipGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ipCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ip_admin: { + payload: Prisma.$ip_adminPayload + fields: Prisma.ip_adminFieldRefs + operations: { + findUnique: { + args: Prisma.ip_adminFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ip_adminFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ip_adminFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ip_adminFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ip_adminFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ip_adminCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ip_adminCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ip_adminDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ip_adminUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ip_adminDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ip_adminUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ip_adminUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Ip_adminAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ip_adminGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ip_adminCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ip_history: { + payload: Prisma.$ip_historyPayload + fields: Prisma.ip_historyFieldRefs + operations: { + findUnique: { + args: Prisma.ip_historyFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ip_historyFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ip_historyFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ip_historyFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ip_historyFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ip_historyCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ip_historyCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ip_historyDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ip_historyUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ip_historyDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ip_historyUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ip_historyUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Ip_historyAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ip_historyGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ip_historyCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ip_pp: { + payload: Prisma.$ip_ppPayload + fields: Prisma.ip_ppFieldRefs + operations: { + findUnique: { + args: Prisma.ip_ppFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ip_ppFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ip_ppFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ip_ppFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ip_ppFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ip_ppCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ip_ppCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ip_ppDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ip_ppUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ip_ppDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ip_ppUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ip_ppUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Ip_ppAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ip_ppGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ip_ppCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ip_static: { + payload: Prisma.$ip_staticPayload + fields: Prisma.ip_staticFieldRefs + operations: { + findUnique: { + args: Prisma.ip_staticFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ip_staticFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ip_staticFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ip_staticFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ip_staticFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ip_staticCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ip_staticCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ip_staticDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ip_staticUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ip_staticDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ip_staticUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ip_staticUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Ip_staticAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ip_staticGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ip_staticCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ip_targo: { + payload: Prisma.$ip_targoPayload + fields: Prisma.ip_targoFieldRefs + operations: { + findUnique: { + args: Prisma.ip_targoFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ip_targoFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ip_targoFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ip_targoFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ip_targoFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ip_targoCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ip_targoCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ip_targoDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ip_targoUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ip_targoDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ip_targoUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ip_targoUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Ip_targoAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ip_targoGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ip_targoCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + invoice: { + payload: Prisma.$invoicePayload + fields: Prisma.invoiceFieldRefs + operations: { + findUnique: { + args: Prisma.invoiceFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.invoiceFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.invoiceFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.invoiceFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.invoiceFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.invoiceCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.invoiceCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.invoiceDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.invoiceUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.invoiceDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.invoiceUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.invoiceUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.InvoiceAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.invoiceGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.invoiceCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + invoice_bk: { + payload: Prisma.$invoice_bkPayload + fields: Prisma.invoice_bkFieldRefs + operations: { + findUnique: { + args: Prisma.invoice_bkFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.invoice_bkFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.invoice_bkFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.invoice_bkFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.invoice_bkFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.invoice_bkCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.invoice_bkCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.invoice_bkDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.invoice_bkUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.invoice_bkDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.invoice_bkUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.invoice_bkUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Invoice_bkAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.invoice_bkGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.invoice_bkCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + invoice_call: { + payload: Prisma.$invoice_callPayload + fields: Prisma.invoice_callFieldRefs + operations: { + findUnique: { + args: Prisma.invoice_callFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.invoice_callFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.invoice_callFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.invoice_callFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.invoice_callFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.invoice_callCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.invoice_callCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.invoice_callDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.invoice_callUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.invoice_callDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.invoice_callUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.invoice_callUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Invoice_callAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.invoice_callGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.invoice_callCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + invoice_item: { + payload: Prisma.$invoice_itemPayload + fields: Prisma.invoice_itemFieldRefs + operations: { + findUnique: { + args: Prisma.invoice_itemFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.invoice_itemFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.invoice_itemFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.invoice_itemFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.invoice_itemFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.invoice_itemCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.invoice_itemCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.invoice_itemDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.invoice_itemUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.invoice_itemDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.invoice_itemUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.invoice_itemUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Invoice_itemAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.invoice_itemGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.invoice_itemCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + invoice_item_bk: { + payload: Prisma.$invoice_item_bkPayload + fields: Prisma.invoice_item_bkFieldRefs + operations: { + findUnique: { + args: Prisma.invoice_item_bkFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.invoice_item_bkFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.invoice_item_bkFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.invoice_item_bkFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.invoice_item_bkFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.invoice_item_bkCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.invoice_item_bkCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.invoice_item_bkDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.invoice_item_bkUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.invoice_item_bkDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.invoice_item_bkUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.invoice_item_bkUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Invoice_item_bkAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.invoice_item_bkGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.invoice_item_bkCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + invoice_msg_template: { + payload: Prisma.$invoice_msg_templatePayload + fields: Prisma.invoice_msg_templateFieldRefs + operations: { + findUnique: { + args: Prisma.invoice_msg_templateFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.invoice_msg_templateFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.invoice_msg_templateFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.invoice_msg_templateFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.invoice_msg_templateFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.invoice_msg_templateCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.invoice_msg_templateCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.invoice_msg_templateDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.invoice_msg_templateUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.invoice_msg_templateDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.invoice_msg_templateUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.invoice_msg_templateUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Invoice_msg_templateAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.invoice_msg_templateGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.invoice_msg_templateCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + invoice_tax: { + payload: Prisma.$invoice_taxPayload + fields: Prisma.invoice_taxFieldRefs + operations: { + findUnique: { + args: Prisma.invoice_taxFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.invoice_taxFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.invoice_taxFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.invoice_taxFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.invoice_taxFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.invoice_taxCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.invoice_taxCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.invoice_taxDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.invoice_taxUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.invoice_taxDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.invoice_taxUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.invoice_taxUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Invoice_taxAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.invoice_taxGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.invoice_taxCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + invoice_tax_bk: { + payload: Prisma.$invoice_tax_bkPayload + fields: Prisma.invoice_tax_bkFieldRefs + operations: { + findUnique: { + args: Prisma.invoice_tax_bkFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.invoice_tax_bkFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.invoice_tax_bkFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.invoice_tax_bkFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.invoice_tax_bkFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.invoice_tax_bkCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.invoice_tax_bkCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.invoice_tax_bkDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.invoice_tax_bkUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.invoice_tax_bkDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.invoice_tax_bkUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.invoice_tax_bkUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Invoice_tax_bkAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.invoice_tax_bkGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.invoice_tax_bkCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + accord_paiement: { + payload: Prisma.$accord_paiementPayload + fields: Prisma.accord_paiementFieldRefs + operations: { + findUnique: { + args: Prisma.accord_paiementFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.accord_paiementFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.accord_paiementFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.accord_paiementFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.accord_paiementFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.accord_paiementCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.accord_paiementCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.accord_paiementDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.accord_paiementUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.accord_paiementDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.accord_paiementUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.accord_paiementUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Accord_paiementAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.accord_paiementGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.accord_paiementCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + autologin: { + payload: Prisma.$autologinPayload + fields: Prisma.autologinFieldRefs + operations: { + findUnique: { + args: Prisma.autologinFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.autologinFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.autologinFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.autologinFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.autologinFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.autologinCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.autologinCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.autologinDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.autologinUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.autologinDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.autologinUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.autologinUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AutologinAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.autologinGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.autologinCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + statement: { + payload: Prisma.$statementPayload + fields: Prisma.statementFieldRefs + operations: { + findUnique: { + args: Prisma.statementFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.statementFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.statementFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.statementFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.statementFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.statementCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.statementCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.statementDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.statementUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.statementDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.statementUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.statementUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.StatementAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.statementGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.statementCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + intranet_doc: { + payload: Prisma.$intranet_docPayload + fields: Prisma.intranet_docFieldRefs + operations: { + findUnique: { + args: Prisma.intranet_docFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.intranet_docFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.intranet_docFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.intranet_docFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.intranet_docFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.intranet_docCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.intranet_docCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.intranet_docDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.intranet_docUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.intranet_docDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.intranet_docUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.intranet_docUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Intranet_docAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.intranet_docGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.intranet_docCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + intranet_doc_paths: { + payload: Prisma.$intranet_doc_pathsPayload + fields: Prisma.intranet_doc_pathsFieldRefs + operations: { + findUnique: { + args: Prisma.intranet_doc_pathsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.intranet_doc_pathsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.intranet_doc_pathsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.intranet_doc_pathsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.intranet_doc_pathsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.intranet_doc_pathsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.intranet_doc_pathsCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.intranet_doc_pathsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.intranet_doc_pathsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.intranet_doc_pathsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.intranet_doc_pathsUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.intranet_doc_pathsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Intranet_doc_pathsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.intranet_doc_pathsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.intranet_doc_pathsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + intranet_doc_reply: { + payload: Prisma.$intranet_doc_replyPayload + fields: Prisma.intranet_doc_replyFieldRefs + operations: { + findUnique: { + args: Prisma.intranet_doc_replyFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.intranet_doc_replyFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.intranet_doc_replyFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.intranet_doc_replyFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.intranet_doc_replyFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.intranet_doc_replyCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.intranet_doc_replyCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.intranet_doc_replyDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.intranet_doc_replyUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.intranet_doc_replyDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.intranet_doc_replyUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.intranet_doc_replyUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Intranet_doc_replyAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.intranet_doc_replyGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.intranet_doc_replyCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + intranet_feed: { + payload: Prisma.$intranet_feedPayload + fields: Prisma.intranet_feedFieldRefs + operations: { + findUnique: { + args: Prisma.intranet_feedFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.intranet_feedFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.intranet_feedFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.intranet_feedFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.intranet_feedFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.intranet_feedCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.intranet_feedCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.intranet_feedDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.intranet_feedUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.intranet_feedDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.intranet_feedUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.intranet_feedUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Intranet_feedAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.intranet_feedGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.intranet_feedCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + intranet_feed_reply: { + payload: Prisma.$intranet_feed_replyPayload + fields: Prisma.intranet_feed_replyFieldRefs + operations: { + findUnique: { + args: Prisma.intranet_feed_replyFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.intranet_feed_replyFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.intranet_feed_replyFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.intranet_feed_replyFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.intranet_feed_replyFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.intranet_feed_replyCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.intranet_feed_replyCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.intranet_feed_replyDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.intranet_feed_replyUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.intranet_feed_replyDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.intranet_feed_replyUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.intranet_feed_replyUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Intranet_feed_replyAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.intranet_feed_replyGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.intranet_feed_replyCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + intranet_techniciens: { + payload: Prisma.$intranet_techniciensPayload + fields: Prisma.intranet_techniciensFieldRefs + operations: { + findUnique: { + args: Prisma.intranet_techniciensFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.intranet_techniciensFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.intranet_techniciensFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.intranet_techniciensFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.intranet_techniciensFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.intranet_techniciensCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.intranet_techniciensCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.intranet_techniciensDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.intranet_techniciensUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.intranet_techniciensDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.intranet_techniciensUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.intranet_techniciensUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Intranet_techniciensAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.intranet_techniciensGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.intranet_techniciensCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + intranet_techniciens_reply: { + payload: Prisma.$intranet_techniciens_replyPayload + fields: Prisma.intranet_techniciens_replyFieldRefs + operations: { + findUnique: { + args: Prisma.intranet_techniciens_replyFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.intranet_techniciens_replyFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.intranet_techniciens_replyFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.intranet_techniciens_replyFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.intranet_techniciens_replyFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.intranet_techniciens_replyCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.intranet_techniciens_replyCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.intranet_techniciens_replyDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.intranet_techniciens_replyUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.intranet_techniciens_replyDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.intranet_techniciens_replyUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.intranet_techniciens_replyUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Intranet_techniciens_replyAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.intranet_techniciens_replyGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.intranet_techniciens_replyCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + intranet_techno: { + payload: Prisma.$intranet_technoPayload + fields: Prisma.intranet_technoFieldRefs + operations: { + findUnique: { + args: Prisma.intranet_technoFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.intranet_technoFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.intranet_technoFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.intranet_technoFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.intranet_technoFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.intranet_technoCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.intranet_technoCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.intranet_technoDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.intranet_technoUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.intranet_technoDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.intranet_technoUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.intranet_technoUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Intranet_technoAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.intranet_technoGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.intranet_technoCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + intranet_techno_reply: { + payload: Prisma.$intranet_techno_replyPayload + fields: Prisma.intranet_techno_replyFieldRefs + operations: { + findUnique: { + args: Prisma.intranet_techno_replyFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.intranet_techno_replyFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.intranet_techno_replyFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.intranet_techno_replyFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.intranet_techno_replyFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.intranet_techno_replyCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.intranet_techno_replyCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.intranet_techno_replyDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.intranet_techno_replyUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.intranet_techno_replyDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.intranet_techno_replyUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.intranet_techno_replyUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Intranet_techno_replyAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.intranet_techno_replyGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.intranet_techno_replyCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + fibre: { + payload: Prisma.$fibrePayload + fields: Prisma.fibreFieldRefs + operations: { + findUnique: { + args: Prisma.fibreFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.fibreFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.fibreFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.fibreFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.fibreFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.fibreCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.fibreCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.fibreDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.fibreUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.fibreDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.fibreUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.fibreUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.FibreAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.fibreGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.fibreCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + fibre_olt: { + payload: Prisma.$fibre_oltPayload + fields: Prisma.fibre_oltFieldRefs + operations: { + findUnique: { + args: Prisma.fibre_oltFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.fibre_oltFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.fibre_oltFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.fibre_oltFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.fibre_oltFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.fibre_oltCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.fibre_oltCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.fibre_oltDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.fibre_oltUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.fibre_oltDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.fibre_oltUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.fibre_oltUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Fibre_oltAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.fibre_oltGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.fibre_oltCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + fibre_service_port: { + payload: Prisma.$fibre_service_portPayload + fields: Prisma.fibre_service_portFieldRefs + operations: { + findUnique: { + args: Prisma.fibre_service_portFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.fibre_service_portFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.fibre_service_portFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.fibre_service_portFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.fibre_service_portFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.fibre_service_portCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.fibre_service_portCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.fibre_service_portDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.fibre_service_portUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.fibre_service_portDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.fibre_service_portUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.fibre_service_portUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Fibre_service_portAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.fibre_service_portGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.fibre_service_portCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + fibre_suivi: { + payload: Prisma.$fibre_suiviPayload + fields: Prisma.fibre_suiviFieldRefs + operations: { + findUnique: { + args: Prisma.fibre_suiviFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.fibre_suiviFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.fibre_suiviFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.fibre_suiviFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.fibre_suiviFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.fibre_suiviCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.fibre_suiviCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.fibre_suiviDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.fibre_suiviUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.fibre_suiviDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.fibre_suiviUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.fibre_suiviUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Fibre_suiviAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.fibre_suiviGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.fibre_suiviCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + fibre_tech: { + payload: Prisma.$fibre_techPayload + fields: Prisma.fibre_techFieldRefs + operations: { + findUnique: { + args: Prisma.fibre_techFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.fibre_techFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.fibre_techFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.fibre_techFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.fibre_techFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.fibre_techCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.fibre_techCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.fibre_techDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.fibre_techUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.fibre_techDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.fibre_techUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.fibre_techUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Fibre_techAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.fibre_techGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.fibre_techCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + fibre_videotron: { + payload: Prisma.$fibre_videotronPayload + fields: Prisma.fibre_videotronFieldRefs + operations: { + findUnique: { + args: Prisma.fibre_videotronFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.fibre_videotronFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.fibre_videotronFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.fibre_videotronFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.fibre_videotronFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.fibre_videotronCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.fibre_videotronCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.fibre_videotronDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.fibre_videotronUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.fibre_videotronDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.fibre_videotronUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.fibre_videotronUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Fibre_videotronAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.fibre_videotronGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.fibre_videotronCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + gantt: { + payload: Prisma.$ganttPayload + fields: Prisma.ganttFieldRefs + operations: { + findUnique: { + args: Prisma.ganttFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ganttFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ganttFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ganttFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ganttFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ganttCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ganttCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ganttDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ganttUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ganttDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ganttUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ganttUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.GanttAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ganttGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ganttCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + gantt_template: { + payload: Prisma.$gantt_templatePayload + fields: Prisma.gantt_templateFieldRefs + operations: { + findUnique: { + args: Prisma.gantt_templateFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.gantt_templateFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.gantt_templateFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.gantt_templateFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.gantt_templateFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.gantt_templateCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.gantt_templateCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.gantt_templateDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.gantt_templateUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.gantt_templateDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.gantt_templateUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.gantt_templateUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Gantt_templateAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.gantt_templateGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.gantt_templateCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + project: { + payload: Prisma.$projectPayload + fields: Prisma.projectFieldRefs + operations: { + findUnique: { + args: Prisma.projectFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.projectFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.projectFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.projectFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.projectFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.projectCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.projectCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.projectDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.projectUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.projectDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.projectUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.projectUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ProjectAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.projectGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.projectCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + project_cmd: { + payload: Prisma.$project_cmdPayload + fields: Prisma.project_cmdFieldRefs + operations: { + findUnique: { + args: Prisma.project_cmdFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.project_cmdFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.project_cmdFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.project_cmdFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.project_cmdFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.project_cmdCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.project_cmdCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.project_cmdDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.project_cmdUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.project_cmdDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.project_cmdUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.project_cmdUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Project_cmdAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.project_cmdGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.project_cmdCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + project_cmd_item: { + payload: Prisma.$project_cmd_itemPayload + fields: Prisma.project_cmd_itemFieldRefs + operations: { + findUnique: { + args: Prisma.project_cmd_itemFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.project_cmd_itemFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.project_cmd_itemFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.project_cmd_itemFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.project_cmd_itemFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.project_cmd_itemCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.project_cmd_itemCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.project_cmd_itemDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.project_cmd_itemUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.project_cmd_itemDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.project_cmd_itemUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.project_cmd_itemUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Project_cmd_itemAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.project_cmd_itemGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.project_cmd_itemCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + project_manager_cat: { + payload: Prisma.$project_manager_catPayload + fields: Prisma.project_manager_catFieldRefs + operations: { + findUnique: { + args: Prisma.project_manager_catFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.project_manager_catFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.project_manager_catFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.project_manager_catFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.project_manager_catFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.project_manager_catCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.project_manager_catCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.project_manager_catDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.project_manager_catUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.project_manager_catDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.project_manager_catUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.project_manager_catUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Project_manager_catAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.project_manager_catGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.project_manager_catCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + project_manager_checklist: { + payload: Prisma.$project_manager_checklistPayload + fields: Prisma.project_manager_checklistFieldRefs + operations: { + findUnique: { + args: Prisma.project_manager_checklistFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.project_manager_checklistFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.project_manager_checklistFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.project_manager_checklistFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.project_manager_checklistFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.project_manager_checklistCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.project_manager_checklistCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.project_manager_checklistDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.project_manager_checklistUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.project_manager_checklistDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.project_manager_checklistUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.project_manager_checklistUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Project_manager_checklistAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.project_manager_checklistGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.project_manager_checklistCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + project_manager_comment: { + payload: Prisma.$project_manager_commentPayload + fields: Prisma.project_manager_commentFieldRefs + operations: { + findUnique: { + args: Prisma.project_manager_commentFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.project_manager_commentFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.project_manager_commentFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.project_manager_commentFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.project_manager_commentFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.project_manager_commentCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.project_manager_commentCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.project_manager_commentDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.project_manager_commentUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.project_manager_commentDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.project_manager_commentUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.project_manager_commentUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Project_manager_commentAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.project_manager_commentGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.project_manager_commentCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + project_manager_task: { + payload: Prisma.$project_manager_taskPayload + fields: Prisma.project_manager_taskFieldRefs + operations: { + findUnique: { + args: Prisma.project_manager_taskFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.project_manager_taskFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.project_manager_taskFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.project_manager_taskFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.project_manager_taskFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.project_manager_taskCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.project_manager_taskCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.project_manager_taskDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.project_manager_taskUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.project_manager_taskDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.project_manager_taskUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.project_manager_taskUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Project_manager_taskAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.project_manager_taskGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.project_manager_taskCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + service: { + payload: Prisma.$servicePayload + fields: Prisma.serviceFieldRefs + operations: { + findUnique: { + args: Prisma.serviceFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.serviceFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.serviceFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.serviceFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.serviceFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.serviceCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.serviceCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.serviceDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.serviceUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.serviceDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.serviceUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.serviceUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ServiceAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.serviceGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.serviceCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + service_snapshot: { + payload: Prisma.$service_snapshotPayload + fields: Prisma.service_snapshotFieldRefs + operations: { + findUnique: { + args: Prisma.service_snapshotFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.service_snapshotFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.service_snapshotFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.service_snapshotFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.service_snapshotFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.service_snapshotCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.service_snapshotCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.service_snapshotDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.service_snapshotUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.service_snapshotDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.service_snapshotUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.service_snapshotUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Service_snapshotAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.service_snapshotGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.service_snapshotCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + soumission: { + payload: Prisma.$soumissionPayload + fields: Prisma.soumissionFieldRefs + operations: { + findUnique: { + args: Prisma.soumissionFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.soumissionFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.soumissionFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.soumissionFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.soumissionFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.soumissionCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.soumissionCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.soumissionDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.soumissionUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.soumissionDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.soumissionUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.soumissionUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.SoumissionAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.soumissionGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.soumissionCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + soumission_template: { + payload: Prisma.$soumission_templatePayload + fields: Prisma.soumission_templateFieldRefs + operations: { + findUnique: { + args: Prisma.soumission_templateFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.soumission_templateFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.soumission_templateFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.soumission_templateFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.soumission_templateFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.soumission_templateCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.soumission_templateCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.soumission_templateDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.soumission_templateUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.soumission_templateDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.soumission_templateUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.soumission_templateUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Soumission_templateAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.soumission_templateGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.soumission_templateCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + staff: { + payload: Prisma.$staffPayload + fields: Prisma.staffFieldRefs + operations: { + findUnique: { + args: Prisma.staffFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.staffFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.staffFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.staffFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.staffFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.staffCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.staffCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.staffDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.staffUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.staffDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.staffUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.staffUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.StaffAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.staffGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.staffCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + staff_dispo: { + payload: Prisma.$staff_dispoPayload + fields: Prisma.staff_dispoFieldRefs + operations: { + findUnique: { + args: Prisma.staff_dispoFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.staff_dispoFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.staff_dispoFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.staff_dispoFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.staff_dispoFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.staff_dispoCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.staff_dispoCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.staff_dispoDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.staff_dispoUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.staff_dispoDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.staff_dispoUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.staff_dispoUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Staff_dispoAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.staff_dispoGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.staff_dispoCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + staff_supp: { + payload: Prisma.$staff_suppPayload + fields: Prisma.staff_suppFieldRefs + operations: { + findUnique: { + args: Prisma.staff_suppFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.staff_suppFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.staff_suppFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.staff_suppFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.staff_suppFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.staff_suppCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.staff_suppCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.staff_suppDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.staff_suppUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.staff_suppDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.staff_suppUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.staff_suppUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Staff_suppAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.staff_suppGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.staff_suppCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + tele_carte: { + payload: Prisma.$tele_cartePayload + fields: Prisma.tele_carteFieldRefs + operations: { + findUnique: { + args: Prisma.tele_carteFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.tele_carteFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.tele_carteFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.tele_carteFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.tele_carteFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.tele_carteCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.tele_carteCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.tele_carteDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.tele_carteUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.tele_carteDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.tele_carteUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.tele_carteUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Tele_carteAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.tele_carteGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.tele_carteCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + tele_channel: { + payload: Prisma.$tele_channelPayload + fields: Prisma.tele_channelFieldRefs + operations: { + findUnique: { + args: Prisma.tele_channelFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.tele_channelFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.tele_channelFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.tele_channelFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.tele_channelFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.tele_channelCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.tele_channelCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.tele_channelDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.tele_channelUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.tele_channelDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.tele_channelUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.tele_channelUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Tele_channelAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.tele_channelGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.tele_channelCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + tele_groupe: { + payload: Prisma.$tele_groupePayload + fields: Prisma.tele_groupeFieldRefs + operations: { + findUnique: { + args: Prisma.tele_groupeFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.tele_groupeFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.tele_groupeFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.tele_groupeFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.tele_groupeFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.tele_groupeCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.tele_groupeCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.tele_groupeDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.tele_groupeUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.tele_groupeDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.tele_groupeUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.tele_groupeUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Tele_groupeAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.tele_groupeGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.tele_groupeCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + tele_network: { + payload: Prisma.$tele_networkPayload + fields: Prisma.tele_networkFieldRefs + operations: { + findUnique: { + args: Prisma.tele_networkFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.tele_networkFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.tele_networkFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.tele_networkFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.tele_networkFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.tele_networkCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.tele_networkCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.tele_networkDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.tele_networkUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.tele_networkDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.tele_networkUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.tele_networkUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Tele_networkAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.tele_networkGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.tele_networkCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + tele_pack: { + payload: Prisma.$tele_packPayload + fields: Prisma.tele_packFieldRefs + operations: { + findUnique: { + args: Prisma.tele_packFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.tele_packFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.tele_packFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.tele_packFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.tele_packFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.tele_packCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.tele_packCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.tele_packDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.tele_packUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.tele_packDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.tele_packUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.tele_packUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Tele_packAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.tele_packGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.tele_packCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + tele_penetration: { + payload: Prisma.$tele_penetrationPayload + fields: Prisma.tele_penetrationFieldRefs + operations: { + findUnique: { + args: Prisma.tele_penetrationFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.tele_penetrationFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.tele_penetrationFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.tele_penetrationFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.tele_penetrationFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.tele_penetrationCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.tele_penetrationCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.tele_penetrationDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.tele_penetrationUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.tele_penetrationDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.tele_penetrationUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.tele_penetrationUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Tele_penetrationAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.tele_penetrationGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.tele_penetrationCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + tele_sub_archive: { + payload: Prisma.$tele_sub_archivePayload + fields: Prisma.tele_sub_archiveFieldRefs + operations: { + findUnique: { + args: Prisma.tele_sub_archiveFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.tele_sub_archiveFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.tele_sub_archiveFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.tele_sub_archiveFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.tele_sub_archiveFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.tele_sub_archiveCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.tele_sub_archiveCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.tele_sub_archiveDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.tele_sub_archiveUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.tele_sub_archiveDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.tele_sub_archiveUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.tele_sub_archiveUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Tele_sub_archiveAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.tele_sub_archiveGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.tele_sub_archiveCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + tele_wiz: { + payload: Prisma.$tele_wizPayload + fields: Prisma.tele_wizFieldRefs + operations: { + findUnique: { + args: Prisma.tele_wizFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.tele_wizFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.tele_wizFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.tele_wizFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.tele_wizFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.tele_wizCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.tele_wizCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.tele_wizDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.tele_wizUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.tele_wizDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.tele_wizUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.tele_wizUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Tele_wizAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.tele_wizGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.tele_wizCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + tv_mac: { + payload: Prisma.$tv_macPayload + fields: Prisma.tv_macFieldRefs + operations: { + findUnique: { + args: Prisma.tv_macFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.tv_macFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.tv_macFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.tv_macFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.tv_macFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.tv_macCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.tv_macCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.tv_macDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.tv_macUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.tv_macDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.tv_macUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.tv_macUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Tv_macAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.tv_macGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.tv_macCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ticket: { + payload: Prisma.$ticketPayload + fields: Prisma.ticketFieldRefs + operations: { + findUnique: { + args: Prisma.ticketFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ticketFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ticketFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ticketFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ticketFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ticketCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ticketCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ticketDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ticketUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ticketDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ticketUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ticketUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.TicketAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ticketGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ticketCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ticket_calendar_lock: { + payload: Prisma.$ticket_calendar_lockPayload + fields: Prisma.ticket_calendar_lockFieldRefs + operations: { + findUnique: { + args: Prisma.ticket_calendar_lockFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ticket_calendar_lockFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ticket_calendar_lockFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ticket_calendar_lockFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ticket_calendar_lockFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ticket_calendar_lockCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ticket_calendar_lockCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ticket_calendar_lockDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ticket_calendar_lockUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ticket_calendar_lockDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ticket_calendar_lockUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ticket_calendar_lockUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Ticket_calendar_lockAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ticket_calendar_lockGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ticket_calendar_lockCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ticket_calendar_staff_lock: { + payload: Prisma.$ticket_calendar_staff_lockPayload + fields: Prisma.ticket_calendar_staff_lockFieldRefs + operations: { + findUnique: { + args: Prisma.ticket_calendar_staff_lockFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ticket_calendar_staff_lockFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ticket_calendar_staff_lockFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ticket_calendar_staff_lockFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ticket_calendar_staff_lockFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ticket_calendar_staff_lockCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ticket_calendar_staff_lockCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ticket_calendar_staff_lockDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ticket_calendar_staff_lockUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ticket_calendar_staff_lockDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ticket_calendar_staff_lockUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ticket_calendar_staff_lockUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Ticket_calendar_staff_lockAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ticket_calendar_staff_lockGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ticket_calendar_staff_lockCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ticket_conge: { + payload: Prisma.$ticket_congePayload + fields: Prisma.ticket_congeFieldRefs + operations: { + findUnique: { + args: Prisma.ticket_congeFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ticket_congeFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ticket_congeFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ticket_congeFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ticket_congeFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ticket_congeCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ticket_congeCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ticket_congeDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ticket_congeUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ticket_congeDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ticket_congeUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ticket_congeUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Ticket_congeAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ticket_congeGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ticket_congeCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ticket_dept: { + payload: Prisma.$ticket_deptPayload + fields: Prisma.ticket_deptFieldRefs + operations: { + findUnique: { + args: Prisma.ticket_deptFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ticket_deptFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ticket_deptFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ticket_deptFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ticket_deptFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ticket_deptCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ticket_deptCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ticket_deptDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ticket_deptUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ticket_deptDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ticket_deptUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ticket_deptUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Ticket_deptAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ticket_deptGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ticket_deptCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ticket_msg: { + payload: Prisma.$ticket_msgPayload + fields: Prisma.ticket_msgFieldRefs + operations: { + findUnique: { + args: Prisma.ticket_msgFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ticket_msgFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ticket_msgFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ticket_msgFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ticket_msgFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ticket_msgCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ticket_msgCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ticket_msgDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ticket_msgUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ticket_msgDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ticket_msgUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ticket_msgUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Ticket_msgAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ticket_msgGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ticket_msgCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ticket_template: { + payload: Prisma.$ticket_templatePayload + fields: Prisma.ticket_templateFieldRefs + operations: { + findUnique: { + args: Prisma.ticket_templateFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ticket_templateFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ticket_templateFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ticket_templateFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ticket_templateFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ticket_templateCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ticket_templateCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.ticket_templateDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ticket_templateUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ticket_templateDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ticket_templateUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.ticket_templateUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Ticket_templateAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ticket_templateGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ticket_templateCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + tmp_vpn: { + payload: Prisma.$tmp_vpnPayload + fields: Prisma.tmp_vpnFieldRefs + operations: { + findUnique: { + args: Prisma.tmp_vpnFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.tmp_vpnFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.tmp_vpnFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.tmp_vpnFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.tmp_vpnFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.tmp_vpnCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.tmp_vpnCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.tmp_vpnDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.tmp_vpnUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.tmp_vpnDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.tmp_vpnUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.tmp_vpnUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Tmp_vpnAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.tmp_vpnGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.tmp_vpnCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + bon_travail: { + payload: Prisma.$bon_travailPayload + fields: Prisma.bon_travailFieldRefs + operations: { + findUnique: { + args: Prisma.bon_travailFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.bon_travailFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.bon_travailFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.bon_travailFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.bon_travailFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.bon_travailCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.bon_travailCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.bon_travailDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.bon_travailUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.bon_travailDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.bon_travailUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.bon_travailUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Bon_travailAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.bon_travailGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.bon_travailCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + bon_travail_item: { + payload: Prisma.$bon_travail_itemPayload + fields: Prisma.bon_travail_itemFieldRefs + operations: { + findUnique: { + args: Prisma.bon_travail_itemFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.bon_travail_itemFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.bon_travail_itemFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.bon_travail_itemFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.bon_travail_itemFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.bon_travail_itemCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.bon_travail_itemCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.bon_travail_itemDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.bon_travail_itemUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.bon_travail_itemDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.bon_travail_itemUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.bon_travail_itemUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Bon_travail_itemAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.bon_travail_itemGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.bon_travail_itemCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + checklist_relais: { + payload: Prisma.$checklist_relaisPayload + fields: Prisma.checklist_relaisFieldRefs + operations: { + findUnique: { + args: Prisma.checklist_relaisFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.checklist_relaisFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.checklist_relaisFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.checklist_relaisFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.checklist_relaisFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.checklist_relaisCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.checklist_relaisCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.checklist_relaisDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.checklist_relaisUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.checklist_relaisDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.checklist_relaisUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.checklist_relaisUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Checklist_relaisAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.checklist_relaisGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.checklist_relaisCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + conference: { + payload: Prisma.$conferencePayload + fields: Prisma.conferenceFieldRefs + operations: { + findUnique: { + args: Prisma.conferenceFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.conferenceFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.conferenceFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.conferenceFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.conferenceFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.conferenceCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.conferenceCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.conferenceDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.conferenceUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.conferenceDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.conferenceUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.conferenceUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ConferenceAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.conferenceGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.conferenceCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + conference_room: { + payload: Prisma.$conference_roomPayload + fields: Prisma.conference_roomFieldRefs + operations: { + findUnique: { + args: Prisma.conference_roomFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.conference_roomFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.conference_roomFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.conference_roomFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.conference_roomFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.conference_roomCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.conference_roomCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.conference_roomDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.conference_roomUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.conference_roomDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.conference_roomUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.conference_roomUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Conference_roomAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.conference_roomGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.conference_roomCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + fournisseur: { + payload: Prisma.$fournisseurPayload + fields: Prisma.fournisseurFieldRefs + operations: { + findUnique: { + args: Prisma.fournisseurFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.fournisseurFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.fournisseurFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.fournisseurFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.fournisseurFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.fournisseurCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.fournisseurCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.fournisseurDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.fournisseurUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.fournisseurDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.fournisseurUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.fournisseurUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.FournisseurAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.fournisseurGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.fournisseurCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + notice_gui: { + payload: Prisma.$notice_guiPayload + fields: Prisma.notice_guiFieldRefs + operations: { + findUnique: { + args: Prisma.notice_guiFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.notice_guiFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.notice_guiFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.notice_guiFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.notice_guiFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.notice_guiCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.notice_guiCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.notice_guiDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.notice_guiUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.notice_guiDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.notice_guiUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.notice_guiUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Notice_guiAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.notice_guiGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.notice_guiCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + promo: { + payload: Prisma.$promoPayload + fields: Prisma.promoFieldRefs + operations: { + findUnique: { + args: Prisma.promoFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.promoFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.promoFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.promoFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.promoFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.promoCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.promoCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.promoDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.promoUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.promoDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.promoUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.promoUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.PromoAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.promoGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.promoCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + stbs: { + payload: Prisma.$stbsPayload + fields: Prisma.stbsFieldRefs + operations: { + findUnique: { + args: Prisma.stbsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.stbsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.stbsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.stbsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.stbsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.stbsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.stbsCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.stbsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.stbsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.stbsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.stbsUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.stbsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.StbsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.stbsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.stbsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + tech_dispo: { + payload: Prisma.$tech_dispoPayload + fields: Prisma.tech_dispoFieldRefs + operations: { + findUnique: { + args: Prisma.tech_dispoFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.tech_dispoFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.tech_dispoFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.tech_dispoFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.tech_dispoFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.tech_dispoCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.tech_dispoCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.tech_dispoDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.tech_dispoUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.tech_dispoDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.tech_dispoUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.tech_dispoUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Tech_dispoAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.tech_dispoGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.tech_dispoCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + debug: { + payload: Prisma.$debugPayload + fields: Prisma.debugFieldRefs + operations: { + findUnique: { + args: Prisma.debugFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.debugFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.debugFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.debugFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.debugFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.debugCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.debugCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.debugDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.debugUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.debugDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.debugUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.debugUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.DebugAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.debugGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.debugCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + carte_temps: { + payload: Prisma.$carte_tempsPayload + fields: Prisma.carte_tempsFieldRefs + operations: { + findUnique: { + args: Prisma.carte_tempsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.carte_tempsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.carte_tempsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.carte_tempsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.carte_tempsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.carte_tempsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.carte_tempsCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.carte_tempsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.carte_tempsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.carte_tempsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.carte_tempsUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.carte_tempsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Carte_tempsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.carte_tempsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.carte_tempsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + carte_temps_periode: { + payload: Prisma.$carte_temps_periodePayload + fields: Prisma.carte_temps_periodeFieldRefs + operations: { + findUnique: { + args: Prisma.carte_temps_periodeFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.carte_temps_periodeFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.carte_temps_periodeFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.carte_temps_periodeFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.carte_temps_periodeFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.carte_temps_periodeCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.carte_temps_periodeCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.carte_temps_periodeDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.carte_temps_periodeUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.carte_temps_periodeDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.carte_temps_periodeUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.carte_temps_periodeUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Carte_temps_periodeAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.carte_temps_periodeGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.carte_temps_periodeCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + banque_heure_staff: { + payload: Prisma.$banque_heure_staffPayload + fields: Prisma.banque_heure_staffFieldRefs + operations: { + findUnique: { + args: Prisma.banque_heure_staffFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.banque_heure_staffFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.banque_heure_staffFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.banque_heure_staffFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.banque_heure_staffFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.banque_heure_staffCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.banque_heure_staffCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.banque_heure_staffDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.banque_heure_staffUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.banque_heure_staffDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.banque_heure_staffUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.banque_heure_staffUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Banque_heure_staffAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.banque_heure_staffGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.banque_heure_staffCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + hour_bank: { + payload: Prisma.$hour_bankPayload + fields: Prisma.hour_bankFieldRefs + operations: { + findUnique: { + args: Prisma.hour_bankFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.hour_bankFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.hour_bankFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.hour_bankFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.hour_bankFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.hour_bankCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.hour_bankCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.hour_bankDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.hour_bankUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.hour_bankDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.hour_bankUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.hour_bankUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Hour_bankAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.hour_bankGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.hour_bankCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + hour_bank_detail: { + payload: Prisma.$hour_bank_detailPayload + fields: Prisma.hour_bank_detailFieldRefs + operations: { + findUnique: { + args: Prisma.hour_bank_detailFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.hour_bank_detailFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.hour_bank_detailFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.hour_bank_detailFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.hour_bank_detailFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.hour_bank_detailCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.hour_bank_detailCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.hour_bank_detailDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.hour_bank_detailUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.hour_bank_detailDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.hour_bank_detailUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.hour_bank_detailUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Hour_bank_detailAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.hour_bank_detailGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.hour_bank_detailCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + test: { + payload: Prisma.$testPayload + fields: Prisma.testFieldRefs + operations: { + findUnique: { + args: Prisma.testFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.testFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.testFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.testFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.testFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.testCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.testCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.testDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.testUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.testDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.testUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.testUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.TestAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.testGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.testCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + account_memo_template: { + payload: Prisma.$account_memo_templatePayload + fields: Prisma.account_memo_templateFieldRefs + operations: { + findUnique: { + args: Prisma.account_memo_templateFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.account_memo_templateFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.account_memo_templateFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.account_memo_templateFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.account_memo_templateFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.account_memo_templateCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.account_memo_templateCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.account_memo_templateDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.account_memo_templateUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.account_memo_templateDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.account_memo_templateUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.account_memo_templateUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Account_memo_templateAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.account_memo_templateGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.account_memo_templateCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + notes: { + payload: Prisma.$notesPayload + fields: Prisma.notesFieldRefs + operations: { + findUnique: { + args: Prisma.notesFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.notesFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.notesFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.notesFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.notesFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.notesCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.notesCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.notesDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.notesUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.notesDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.notesUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.notesUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.NotesAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.notesGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.notesCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + email: { + payload: Prisma.$emailPayload + fields: Prisma.emailFieldRefs + operations: { + findUnique: { + args: Prisma.emailFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.emailFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.emailFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.emailFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.emailFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.emailCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.emailCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.emailDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.emailUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.emailDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.emailUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.emailUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.EmailAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.emailGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.emailCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + client_pwd: { + payload: Prisma.$client_pwdPayload + fields: Prisma.client_pwdFieldRefs + operations: { + findUnique: { + args: Prisma.client_pwdFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.client_pwdFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.client_pwdFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.client_pwdFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.client_pwdFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.client_pwdCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.client_pwdCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.client_pwdDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.client_pwdUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.client_pwdDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.client_pwdUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.client_pwdUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Client_pwdAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.client_pwdGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.client_pwdCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + account_profile: { + payload: Prisma.$account_profilePayload + fields: Prisma.account_profileFieldRefs + operations: { + findUnique: { + args: Prisma.account_profileFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.account_profileFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.account_profileFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.account_profileFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.account_profileFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.account_profileCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.account_profileCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.account_profileDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.account_profileUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.account_profileDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.account_profileUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.account_profileUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Account_profileAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.account_profileGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.account_profileCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + deposit_slip: { + payload: Prisma.$deposit_slipPayload + fields: Prisma.deposit_slipFieldRefs + operations: { + findUnique: { + args: Prisma.deposit_slipFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.deposit_slipFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.deposit_slipFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.deposit_slipFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.deposit_slipFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.deposit_slipCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.deposit_slipCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.deposit_slipDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.deposit_slipUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.deposit_slipDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.deposit_slipUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.deposit_slipUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Deposit_slipAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.deposit_slipGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.deposit_slipCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + account_suspension: { + payload: Prisma.$account_suspensionPayload + fields: Prisma.account_suspensionFieldRefs + operations: { + findUnique: { + args: Prisma.account_suspensionFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.account_suspensionFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.account_suspensionFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.account_suspensionFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.account_suspensionFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.account_suspensionCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.account_suspensionCreateManyArgs + result: BatchPayload + } + delete: { + args: Prisma.account_suspensionDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.account_suspensionUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.account_suspensionDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.account_suspensionUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.account_suspensionUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.Account_suspensionAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.account_suspensionGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.account_suspensionCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + } +} & { + other: { + payload: any + operations: { + $executeRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]], + result: any + } + $executeRawUnsafe: { + args: [query: string, ...values: any[]], + result: any + } + $queryRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]], + result: any + } + $queryRawUnsafe: { + args: [query: string, ...values: any[]], + result: any + } + } + } +} + +/** + * Enums + */ + +export const TransactionIsolationLevel = runtime.makeStrictEnum({ + ReadUncommitted: 'ReadUncommitted', + ReadCommitted: 'ReadCommitted', + RepeatableRead: 'RepeatableRead', + Serializable: 'Serializable' +} as const) + +export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + + +export const AccountScalarFieldEnum = { + id: 'id', + customer_id: 'customer_id', + date_orig: 'date_orig', + date_last: 'date_last', + date_expire: 'date_expire', + language_id: 'language_id', + country_id: 'country_id', + currency_id: 'currency_id', + username: 'username', + password: 'password', + group_id: 'group_id', + misc: 'misc', + status: 'status', + first_name: 'first_name', + middle_name: 'middle_name', + last_name: 'last_name', + mandataire: 'mandataire', + title: 'title', + email: 'email', + email_autre: 'email_autre', + company: 'company', + contact: 'contact', + address1: 'address1', + address2: 'address2', + city: 'city', + state: 'state', + zip: 'zip', + tel_home: 'tel_home', + tel_office: 'tel_office', + tel_office_ext: 'tel_office_ext', + cell: 'cell', + fax: 'fax', + invoice_delivery: 'invoice_delivery', + land_owner: 'land_owner', + frais: 'frais', + ppa: 'ppa', + ppa_all_invoice: 'ppa_all_invoice', + ppa_name: 'ppa_name', + ppa_code: 'ppa_code', + ppa_branch: 'ppa_branch', + ppa_account: 'ppa_account', + ppa_amount: 'ppa_amount', + ppa_amount_buffer: 'ppa_amount_buffer', + ppa_all_tmp: 'ppa_all_tmp', + ppa_fixed: 'ppa_fixed', + commercial: 'commercial', + vip: 'vip', + tax_group: 'tax_group', + data_check: 'data_check', + created_by: 'created_by', + notes_client: 'notes_client', + keyword: 'keyword', + terminate_reason: 'terminate_reason', + terminate_cie: 'terminate_cie', + terminate_note: 'terminate_note', + terminate_date: 'terminate_date', + call: 'call', + pub: 'pub', + portal_client_log: 'portal_client_log', + mauvais_payeur: 'mauvais_payeur', + renew_phone: 'renew_phone', + ppa_cc: 'ppa_cc', + stripe_id: 'stripe_id' +} as const + +export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] + + +export const Account_groupScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + group_name: 'group_name' +} as const + +export type Account_groupScalarFieldEnum = (typeof Account_groupScalarFieldEnum)[keyof typeof Account_groupScalarFieldEnum] + + +export const Account_memoScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + last_updated: 'last_updated', + staff_id: 'staff_id', + account_id: 'account_id', + memo: 'memo', + color: 'color', + bcolor: 'bcolor', + border: 'border' +} as const + +export type Account_memoScalarFieldEnum = (typeof Account_memoScalarFieldEnum)[keyof typeof Account_memoScalarFieldEnum] + + +export const Compta_comptesScalarFieldEnum = { + id: 'id', + category: 'category', + num_compte: 'num_compte', + desc: 'desc' +} as const + +export type Compta_comptesScalarFieldEnum = (typeof Compta_comptesScalarFieldEnum)[keyof typeof Compta_comptesScalarFieldEnum] + + +export const Compta_comptes_soldesScalarFieldEnum = { + id: 'id', + num_compte: 'num_compte', + year: 'year', + amount: 'amount', + comment: 'comment', + type: 'type' +} as const + +export type Compta_comptes_soldesScalarFieldEnum = (typeof Compta_comptes_soldesScalarFieldEnum)[keyof typeof Compta_comptes_soldesScalarFieldEnum] + + +export const Compta_journal_ecritureScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + type: 'type', + num: 'num', + customer_id: 'customer_id', + full_name: 'full_name', + desc: 'desc', + mo: 'mo', + em: 'em' +} as const + +export type Compta_journal_ecritureScalarFieldEnum = (typeof Compta_journal_ecritureScalarFieldEnum)[keyof typeof Compta_journal_ecritureScalarFieldEnum] + + +export const Compta_journal_ecriture_bkScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + type: 'type', + num: 'num', + customer_id: 'customer_id', + full_name: 'full_name', + desc: 'desc', + mo: 'mo', + em: 'em' +} as const + +export type Compta_journal_ecriture_bkScalarFieldEnum = (typeof Compta_journal_ecriture_bkScalarFieldEnum)[keyof typeof Compta_journal_ecriture_bkScalarFieldEnum] + + +export const Compta_journal_ecriture_detailScalarFieldEnum = { + id: 'id', + journal_id: 'journal_id', + num_compte: 'num_compte', + amount: 'amount', + action: 'action' +} as const + +export type Compta_journal_ecriture_detailScalarFieldEnum = (typeof Compta_journal_ecriture_detailScalarFieldEnum)[keyof typeof Compta_journal_ecriture_detailScalarFieldEnum] + + +export const Compta_journal_ecriture_detail_bkScalarFieldEnum = { + id: 'id', + journal_id: 'journal_id', + num_compte: 'num_compte', + amount: 'amount', + action: 'action' +} as const + +export type Compta_journal_ecriture_detail_bkScalarFieldEnum = (typeof Compta_journal_ecriture_detail_bkScalarFieldEnum)[keyof typeof Compta_journal_ecriture_detail_bkScalarFieldEnum] + + +export const Compta_periodeScalarFieldEnum = { + month: 'month' +} as const + +export type Compta_periodeScalarFieldEnum = (typeof Compta_periodeScalarFieldEnum)[keyof typeof Compta_periodeScalarFieldEnum] + + +export const Compta_ppa_file_idScalarFieldEnum = { + last_id: 'last_id' +} as const + +export type Compta_ppa_file_idScalarFieldEnum = (typeof Compta_ppa_file_idScalarFieldEnum)[keyof typeof Compta_ppa_file_idScalarFieldEnum] + + +export const Compta_setupScalarFieldEnum = { + setup_id: 'setup_id', + period_month: 'period_month', + ppa_id: 'ppa_id', + excedent_max: 'excedent_max', + month_closed: 'month_closed', + pay_week_closed: 'pay_week_closed', + attachment_ext: 'attachment_ext', + netadmin_dispo: 'netadmin_dispo', + imap_token: 'imap_token' +} as const + +export type Compta_setupScalarFieldEnum = (typeof Compta_setupScalarFieldEnum)[keyof typeof Compta_setupScalarFieldEnum] + + +export const Credit_codeScalarFieldEnum = { + id: 'id', + code: 'code', + desc: 'desc' +} as const + +export type Credit_codeScalarFieldEnum = (typeof Credit_codeScalarFieldEnum)[keyof typeof Credit_codeScalarFieldEnum] + + +export const TaxScalarFieldEnum = { + id: 'id', + name: 'name', + description: 'description', + rate: 'rate' +} as const + +export type TaxScalarFieldEnum = (typeof TaxScalarFieldEnum)[keyof typeof TaxScalarFieldEnum] + + +export const Tax_groupScalarFieldEnum = { + id: 'id', + name: 'name', + description: 'description', + tax: 'tax' +} as const + +export type Tax_groupScalarFieldEnum = (typeof Tax_groupScalarFieldEnum)[keyof typeof Tax_groupScalarFieldEnum] + + +export const Td_payableScalarFieldEnum = { + id: 'id', + ticket_id: 'ticket_id', + invoice: 'invoice', + date_invoice: 'date_invoice', + fournisseur: 'fournisseur', + montant: 'montant', + devise: 'devise', + methode: 'methode', + reference: 'reference', + date_paiement: 'date_paiement', + releve: 'releve' +} as const + +export type Td_payableScalarFieldEnum = (typeof Td_payableScalarFieldEnum)[keyof typeof Td_payableScalarFieldEnum] + + +export const ConsoScalarFieldEnum = { + id: 'id', + ip_id: 'ip_id', + date: 'date', + total: 'total', + total_day: 'total_day', + total_night: 'total_night' +} as const + +export type ConsoScalarFieldEnum = (typeof ConsoScalarFieldEnum)[keyof typeof ConsoScalarFieldEnum] + + +export const Conso_archiveScalarFieldEnum = { + id: 'id', + ip_id: 'ip_id', + date: 'date', + total: 'total', + total_day: 'total_day', + total_night: 'total_night' +} as const + +export type Conso_archiveScalarFieldEnum = (typeof Conso_archiveScalarFieldEnum)[keyof typeof Conso_archiveScalarFieldEnum] + + +export const Conso_avisScalarFieldEnum = { + id: 'id', + date: 'date', + account_id: 'account_id', + delivery_id: 'delivery_id', + service_id: 'service_id', + ip_id: 'ip_id', + avis: 'avis' +} as const + +export type Conso_avisScalarFieldEnum = (typeof Conso_avisScalarFieldEnum)[keyof typeof Conso_avisScalarFieldEnum] + + +export const Conso_radiusScalarFieldEnum = { + id: 'id', + username: 'username', + date: 'date', + download: 'download', + upload: 'upload', + nb_sess: 'nb_sess' +} as const + +export type Conso_radiusScalarFieldEnum = (typeof Conso_radiusScalarFieldEnum)[keyof typeof Conso_radiusScalarFieldEnum] + + +export const Conso_radius_dailyScalarFieldEnum = { + id: 'id', + username: 'username', + date: 'date', + download_nuit: 'download_nuit', + upload_nuit: 'upload_nuit', + download_jour: 'download_jour', + upload_jour: 'upload_jour' +} as const + +export type Conso_radius_dailyScalarFieldEnum = (typeof Conso_radius_dailyScalarFieldEnum)[keyof typeof Conso_radius_dailyScalarFieldEnum] + + +export const Conso_radius_daily2ScalarFieldEnum = { + id: 'id', + username: 'username', + date: 'date', + download_nuit: 'download_nuit', + upload_nuit: 'upload_nuit', + download_jour: 'download_jour', + upload_jour: 'upload_jour' +} as const + +export type Conso_radius_daily2ScalarFieldEnum = (typeof Conso_radius_daily2ScalarFieldEnum)[keyof typeof Conso_radius_daily2ScalarFieldEnum] + + +export const Conso_radius_hourlyScalarFieldEnum = { + id: 'id', + username: 'username', + date: 'date', + download: 'download', + upload: 'upload' +} as const + +export type Conso_radius_hourlyScalarFieldEnum = (typeof Conso_radius_hourlyScalarFieldEnum)[keyof typeof Conso_radius_hourlyScalarFieldEnum] + + +export const Conso_radius_monthlyScalarFieldEnum = { + id: 'id', + date: 'date', + username: 'username', + nuit: 'nuit', + jour: 'jour' +} as const + +export type Conso_radius_monthlyScalarFieldEnum = (typeof Conso_radius_monthlyScalarFieldEnum)[keyof typeof Conso_radius_monthlyScalarFieldEnum] + + +export const Conso_radius_monthly2ScalarFieldEnum = { + id: 'id', + date: 'date', + username: 'username', + nuit: 'nuit', + jour: 'jour' +} as const + +export type Conso_radius_monthly2ScalarFieldEnum = (typeof Conso_radius_monthly2ScalarFieldEnum)[keyof typeof Conso_radius_monthly2ScalarFieldEnum] + + +export const DeliveryScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + name: 'name', + comment: 'comment', + date_orig: 'date_orig', + address1: 'address1', + address2: 'address2', + city: 'city', + state: 'state', + zip: 'zip', + longitude: 'longitude', + latitude: 'latitude', + tel_home: 'tel_home', + tel_office: 'tel_office', + tel_office_ext: 'tel_office_ext', + cell: 'cell', + fax: 'fax', + email: 'email', + quota_max_day: 'quota_max_day', + quota_max_night: 'quota_max_night', + contact: 'contact', + expanded: 'expanded', + placemarks_id: 'placemarks_id', + epg_subid: 'epg_subid' +} as const + +export type DeliveryScalarFieldEnum = (typeof DeliveryScalarFieldEnum)[keyof typeof DeliveryScalarFieldEnum] + + +export const Delivery_historyScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date_orig: 'date_orig', + address1: 'address1', + address2: 'address2', + city: 'city', + state: 'state', + zip: 'zip' +} as const + +export type Delivery_historyScalarFieldEnum = (typeof Delivery_historyScalarFieldEnum)[keyof typeof Delivery_historyScalarFieldEnum] + + +export const DeviceScalarFieldEnum = { + id: 'id', + delivery_id: 'delivery_id', + category: 'category', + name: 'name', + manufacturier: 'manufacturier', + model: 'model', + sn: 'sn', + mac: 'mac', + manage: 'manage', + port: 'port', + protocol: 'protocol', + manage_cli: 'manage_cli', + port_cli: 'port_cli', + protocol_cli: 'protocol_cli', + user: 'user', + pass: 'pass', + parent: 'parent' +} as const + +export type DeviceScalarFieldEnum = (typeof DeviceScalarFieldEnum)[keyof typeof DeviceScalarFieldEnum] + + +export const Device_archiveScalarFieldEnum = { + id: 'id', + delivery_id: 'delivery_id', + category: 'category', + name: 'name', + manufacturier: 'manufacturier', + model: 'model', + sn: 'sn', + mac: 'mac', + manage: 'manage', + port: 'port', + protocol: 'protocol', + manage_cli: 'manage_cli', + port_cli: 'port_cli', + protocol_cli: 'protocol_cli', + user: 'user', + pass: 'pass', + parent: 'parent' +} as const + +export type Device_archiveScalarFieldEnum = (typeof Device_archiveScalarFieldEnum)[keyof typeof Device_archiveScalarFieldEnum] + + +export const Device_attrScalarFieldEnum = { + id: 'id', + device_id: 'device_id', + attr: 'attr', + value: 'value' +} as const + +export type Device_attrScalarFieldEnum = (typeof Device_attrScalarFieldEnum)[keyof typeof Device_attrScalarFieldEnum] + + +export const Device_linkScalarFieldEnum = { + id: 'id', + parent: 'parent', + child: 'child' +} as const + +export type Device_linkScalarFieldEnum = (typeof Device_linkScalarFieldEnum)[keyof typeof Device_linkScalarFieldEnum] + + +export const Device_templateScalarFieldEnum = { + id: 'id', + nom: 'nom' +} as const + +export type Device_templateScalarFieldEnum = (typeof Device_templateScalarFieldEnum)[keyof typeof Device_templateScalarFieldEnum] + + +export const Device_template_attrScalarFieldEnum = { + id: 'id', + template_id: 'template_id', + attr: 'attr', + default_val: 'default_val' +} as const + +export type Device_template_attrScalarFieldEnum = (typeof Device_template_attrScalarFieldEnum)[keyof typeof Device_template_attrScalarFieldEnum] + + +export const ProductScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + sku: 'sku', + active: 'active', + price: 'price', + price_recurr_type: 'price_recurr_type', + price_recurr_weekday: 'price_recurr_weekday', + price_recurr_week: 'price_recurr_week', + price_recurr_schedule: 'price_recurr_schedule', + download_speed: 'download_speed', + upload_speed: 'upload_speed', + night_package: 'night_package', + quota_day: 'quota_day', + quota_night: 'quota_night', + category: 'category', + uniq_charge: 'uniq_charge', + commercial: 'commercial', + portal_hidden: 'portal_hidden', + inv_keep: 'inv_keep', + inv_tag: 'inv_tag', + inv_threshold: 'inv_threshold', + inv_qte: 'inv_qte', + emplacement: 'emplacement', + list_tech: 'list_tech', + type: 'type', + combo_ready: 'combo_ready', + fibre_lineprofile: 'fibre_lineprofile', + fibre_serviceprofile: 'fibre_serviceprofile' +} as const + +export type ProductScalarFieldEnum = (typeof ProductScalarFieldEnum)[keyof typeof ProductScalarFieldEnum] + + +export const Product_catScalarFieldEnum = { + id: 'id', + name: 'name', + notes: 'notes', + status: 'status', + num_compte: 'num_compte', + combo_dispo: 'combo_dispo' +} as const + +export type Product_catScalarFieldEnum = (typeof Product_catScalarFieldEnum)[keyof typeof Product_catScalarFieldEnum] + + +export const Product_formatScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + name: 'name', + type: 'type', + product_idx: 'product_idx', + description: 'description' +} as const + +export type Product_formatScalarFieldEnum = (typeof Product_formatScalarFieldEnum)[keyof typeof Product_formatScalarFieldEnum] + + +export const Product_fournisseurScalarFieldEnum = { + id: 'id', + product_id: 'product_id', + nom_fournisseur: 'nom_fournisseur', + prix_us: 'prix_us', + prix_achat: 'prix_achat', + prix_livr: 'prix_livr', + delais_livr: 'delais_livr', + comment: 'comment' +} as const + +export type Product_fournisseurScalarFieldEnum = (typeof Product_fournisseurScalarFieldEnum)[keyof typeof Product_fournisseurScalarFieldEnum] + + +export const Product_profileScalarFieldEnum = { + id: 'id', + product_id: 'product_id', + device_type: 'device_type', + line_profile: 'line_profile', + service_profile: 'service_profile' +} as const + +export type Product_profileScalarFieldEnum = (typeof Product_profileScalarFieldEnum)[keyof typeof Product_profileScalarFieldEnum] + + +export const Product_speciauxScalarFieldEnum = { + id: 'id', + product_zone_id: 'product_zone_id', + product_id: 'product_id', + price: 'price', + price_install: 'price_install', + exp_timestamp: 'exp_timestamp', + duree_contrat: 'duree_contrat' +} as const + +export type Product_speciauxScalarFieldEnum = (typeof Product_speciauxScalarFieldEnum)[keyof typeof Product_speciauxScalarFieldEnum] + + +export const Product_translateScalarFieldEnum = { + id: 'id', + product_id: 'product_id', + language_id: 'language_id', + name: 'name', + description_short: 'description_short', + description_full: 'description_full' +} as const + +export type Product_translateScalarFieldEnum = (typeof Product_translateScalarFieldEnum)[keyof typeof Product_translateScalarFieldEnum] + + +export const Product_zoneScalarFieldEnum = { + id: 'id', + zoneNumber: 'zoneNumber', + description: 'description' +} as const + +export type Product_zoneScalarFieldEnum = (typeof Product_zoneScalarFieldEnum)[keyof typeof Product_zoneScalarFieldEnum] + + +export const Product_zone_placemarksScalarFieldEnum = { + id: 'id', + product_zone_id: 'product_zone_id', + placemarks_id: 'placemarks_id' +} as const + +export type Product_zone_placemarksScalarFieldEnum = (typeof Product_zone_placemarksScalarFieldEnum)[keyof typeof Product_zone_placemarksScalarFieldEnum] + + +export const Inventaire_logScalarFieldEnum = { + id: 'id', + prod_tag: 'prod_tag', + staff_id: 'staff_id', + action: 'action', + qte: 'qte', + timestamp: 'timestamp' +} as const + +export type Inventaire_logScalarFieldEnum = (typeof Inventaire_logScalarFieldEnum)[keyof typeof Inventaire_logScalarFieldEnum] + + +export const PhoneScalarFieldEnum = { + id: 'id', + service_id: 'service_id', + phone_num: 'phone_num', + note: 'note', + fournisseur: 'fournisseur' +} as const + +export type PhoneScalarFieldEnum = (typeof PhoneScalarFieldEnum)[keyof typeof PhoneScalarFieldEnum] + + +export const Phone_addrScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + phone: 'phone', + street_number: 'street_number', + apt: 'apt', + street_name: 'street_name', + city: 'city', + state: 'state', + zip: 'zip', + first_name: 'first_name', + last_name: 'last_name', + info: 'info', + enhanced_capable: 'enhanced_capable', + code_cauca: 'code_cauca', + class_service: 'class_service' +} as const + +export type Phone_addrScalarFieldEnum = (typeof Phone_addrScalarFieldEnum)[keyof typeof Phone_addrScalarFieldEnum] + + +export const Phone_comwaveScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + service_id: 'service_id', + requestId: 'requestId', + phoneNumber: 'phoneNumber', + status: 'status', + date: 'date', + reason: 'reason' +} as const + +export type Phone_comwaveScalarFieldEnum = (typeof Phone_comwaveScalarFieldEnum)[keyof typeof Phone_comwaveScalarFieldEnum] + + +export const Phone_noteScalarFieldEnum = { + id: 'id', + phone: 'phone', + rate_center: 'rate_center', + fournisseur: 'fournisseur', + note: 'note' +} as const + +export type Phone_noteScalarFieldEnum = (typeof Phone_noteScalarFieldEnum)[keyof typeof Phone_noteScalarFieldEnum] + + +export const Phone_provisioningScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + delivery_id: 'delivery_id', + service_id: 'service_id', + phone: 'phone', + app: 'app', + mac: 'mac', + password: 'password', + internationnal: 'internationnal', + date_orig: 'date_orig', + date_update: 'date_update' +} as const + +export type Phone_provisioningScalarFieldEnum = (typeof Phone_provisioningScalarFieldEnum)[keyof typeof Phone_provisioningScalarFieldEnum] + + +export const Phonecall_channelScalarFieldEnum = { + id: 'id', + timestamp: 'timestamp', + max_tinktell: 'max_tinktell', + max_outgoing_thinktell: 'max_outgoing_thinktell', + max_comwave: 'max_comwave', + max_outgoing_comwave: 'max_outgoing_comwave', + max_total: 'max_total' +} as const + +export type Phonecall_channelScalarFieldEnum = (typeof Phonecall_channelScalarFieldEnum)[keyof typeof Phonecall_channelScalarFieldEnum] + + +export const Phonecall_log_2025ScalarFieldEnum = { + id: 'id', + caller_id_name: 'caller_id_name', + caller_id_number: 'caller_id_number', + destination_number: 'destination_number', + start_stamp: 'start_stamp', + answer_stamp: 'answer_stamp', + end_stamp: 'end_stamp', + duration: 'duration', + billing: 'billing', + hangup_cause: 'hangup_cause', + uuid: 'uuid' +} as const + +export type Phonecall_log_2025ScalarFieldEnum = (typeof Phonecall_log_2025ScalarFieldEnum)[keyof typeof Phonecall_log_2025ScalarFieldEnum] + + +export const Phonecall_log_2026ScalarFieldEnum = { + id: 'id', + caller_id_name: 'caller_id_name', + caller_id_number: 'caller_id_number', + destination_number: 'destination_number', + start_stamp: 'start_stamp', + answer_stamp: 'answer_stamp', + end_stamp: 'end_stamp', + duration: 'duration', + billing: 'billing', + hangup_cause: 'hangup_cause', + uuid: 'uuid' +} as const + +export type Phonecall_log_2026ScalarFieldEnum = (typeof Phonecall_log_2026ScalarFieldEnum)[keyof typeof Phonecall_log_2026ScalarFieldEnum] + + +export const VoicemeupScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date: 'date', + duration: 'duration', + destination: 'destination', + country: 'country', + state: 'state', + district: 'district', + amount: 'amount', + uuid: 'uuid' +} as const + +export type VoicemeupScalarFieldEnum = (typeof VoicemeupScalarFieldEnum)[keyof typeof VoicemeupScalarFieldEnum] + + +export const PbxScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + delivery_id: 'delivery_id', + service_id: 'service_id', + phone: 'phone', + name: 'name', + password: 'password', + vm_password: 'vm_password', + has_vm: 'has_vm', + vm_email: 'vm_email', + keep_msg: 'keep_msg', + vm_disk_quota: 'vm_disk_quota', + int_code: 'int_code', + language: 'language', + call_911: 'call_911', + max_calls: 'max_calls', + call_timeout: 'call_timeout', + user_context: 'user_context', + country_whitelist: 'country_whitelist', + date_origin: 'date_origin', + date_update: 'date_update', + update_by: 'update_by' +} as const + +export type PbxScalarFieldEnum = (typeof PbxScalarFieldEnum)[keyof typeof PbxScalarFieldEnum] + + +export const Pbx_appScalarFieldEnum = { + id: 'id', + pbx_id: 'pbx_id', + username: 'username', + mac: 'mac', + app: 'app', + note: 'note', + date_origin: 'date_origin', + date_update: 'date_update', + update_by: 'update_by' +} as const + +export type Pbx_appScalarFieldEnum = (typeof Pbx_appScalarFieldEnum)[keyof typeof Pbx_appScalarFieldEnum] + + +export const Pbx_comScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + delivery_id: 'delivery_id', + service_id: 'service_id', + phone: 'phone', + name: 'name', + failover: 'failover', + auth_method: 'auth_method', + password: 'password', + ip: 'ip', + int_code: 'int_code', + country_whitelist: 'country_whitelist', + language: 'language', + call_911: 'call_911', + max_calls: 'max_calls', + user_context: 'user_context', + date_origin: 'date_origin', + date_update: 'date_update', + update_by: 'update_by' +} as const + +export type Pbx_comScalarFieldEnum = (typeof Pbx_comScalarFieldEnum)[keyof typeof Pbx_comScalarFieldEnum] + + +export const Pbx_com_wlScalarFieldEnum = { + id: 'id', + phone: 'phone', + country_whitelist: 'country_whitelist' +} as const + +export type Pbx_com_wlScalarFieldEnum = (typeof Pbx_com_wlScalarFieldEnum)[keyof typeof Pbx_com_wlScalarFieldEnum] + + +export const Pbx_faxScalarFieldEnum = { + id: 'id', + number: 'number', + email: 'email', + description: 'description', + service_id: 'service_id' +} as const + +export type Pbx_faxScalarFieldEnum = (typeof Pbx_faxScalarFieldEnum)[keyof typeof Pbx_faxScalarFieldEnum] + + +export const PaymentScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date_orig: 'date_orig', + amount: 'amount', + applied_amt: 'applied_amt', + type: 'type', + memo: 'memo', + reference: 'reference', + excedent: 'excedent', + correction: 'correction', + cr: 'cr', + uniqsess: 'uniqsess' +} as const + +export type PaymentScalarFieldEnum = (typeof PaymentScalarFieldEnum)[keyof typeof PaymentScalarFieldEnum] + + +export const Payment_itemScalarFieldEnum = { + id: 'id', + payment_id: 'payment_id', + invoice_id: 'invoice_id', + amount: 'amount', + date_orig: 'date_orig' +} as const + +export type Payment_itemScalarFieldEnum = (typeof Payment_itemScalarFieldEnum)[keyof typeof Payment_itemScalarFieldEnum] + + +export const Passwords_managerScalarFieldEnum = { + id: 'id', + title: 'title', + login: 'login', + pass: 'pass', + url: 'url', + email: 'email', + phone: 'phone', + category: 'category', + subcategory: 'subcategory', + desc: 'desc', + notes: 'notes', + logs: 'logs', + date_orig: 'date_orig', + date_last: 'date_last', + users_granted: 'users_granted', + group_granted: 'group_granted', + created_by: 'created_by', + keywords: 'keywords' +} as const + +export type Passwords_managerScalarFieldEnum = (typeof Passwords_managerScalarFieldEnum)[keyof typeof Passwords_managerScalarFieldEnum] + + +export const Passwords_manager_catScalarFieldEnum = { + id: 'id', + title: 'title', + desc: 'desc' +} as const + +export type Passwords_manager_catScalarFieldEnum = (typeof Passwords_manager_catScalarFieldEnum)[keyof typeof Passwords_manager_catScalarFieldEnum] + + +export const Passwords_manager_groupScalarFieldEnum = { + id: 'id', + name: 'name', + users: 'users' +} as const + +export type Passwords_manager_groupScalarFieldEnum = (typeof Passwords_manager_groupScalarFieldEnum)[keyof typeof Passwords_manager_groupScalarFieldEnum] + + +export const NotificationScalarFieldEnum = { + id: 'id', + staff_id: 'staff_id', + endpoint: 'endpoint', + authToken: 'authToken', + publicKey: 'publicKey', + contentEncoding: 'contentEncoding', + plateforme: 'plateforme' +} as const + +export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum] + + +export const Notification_payloadScalarFieldEnum = { + id: 'id', + notification_id: 'notification_id', + payload: 'payload', + timestamp: 'timestamp' +} as const + +export type Notification_payloadScalarFieldEnum = (typeof Notification_payloadScalarFieldEnum)[keyof typeof Notification_payloadScalarFieldEnum] + + +export const MunicipaliteScalarFieldEnum = { + id: 'id', + nom: 'nom', + code: 'code', + administration: 'administration', + often_used: 'often_used' +} as const + +export type MunicipaliteScalarFieldEnum = (typeof MunicipaliteScalarFieldEnum)[keyof typeof MunicipaliteScalarFieldEnum] + + +export const Sommaire_porteScalarFieldEnum = { + id: 'id', + fibre_id: 'fibre_id', + id_adresse: 'id_adresse', + id_subvention: 'id_subvention', + adresse_subvention: 'adresse_subvention', + ville_subvention: 'ville_subvention', + latitude: 'latitude', + longitude: 'longitude', + contest_adresse: 'contest_adresse', + new_adresse: 'new_adresse', + placemarks_id: 'placemarks_id' +} as const + +export type Sommaire_porteScalarFieldEnum = (typeof Sommaire_porteScalarFieldEnum)[keyof typeof Sommaire_porteScalarFieldEnum] + + +export const StateScalarFieldEnum = { + id: 'id', + name_en: 'name_en', + name_fr: 'name_fr', + abbrev: 'abbrev', + country: 'country' +} as const + +export type StateScalarFieldEnum = (typeof StateScalarFieldEnum)[keyof typeof StateScalarFieldEnum] + + +export const LicenceScalarFieldEnum = { + id: 'id', + nom: 'nom', + date: 'date', + can_manage: 'can_manage', + comment: 'comment' +} as const + +export type LicenceScalarFieldEnum = (typeof LicenceScalarFieldEnum)[keyof typeof LicenceScalarFieldEnum] + + +export const Licence_keyScalarFieldEnum = { + id: 'id', + licence_id: 'licence_id', + licence_key: 'licence_key', + date: 'date', + date_expire: 'date_expire', + comment: 'comment' +} as const + +export type Licence_keyScalarFieldEnum = (typeof Licence_keyScalarFieldEnum)[keyof typeof Licence_keyScalarFieldEnum] + + +export const IpScalarFieldEnum = { + id: 'id', + service_id: 'service_id', + ip: 'ip', + prive: 'prive', + ip_relais: 'ip_relais', + technology: 'technology', + name_access_point: 'name_access_point', + mac: 'mac', + web_link: 'web_link', + link_relais: 'link_relais', + ip_conso: 'ip_conso', + actif: 'actif', + comment: 'comment', + cidr: 'cidr', + last_updated: 'last_updated' +} as const + +export type IpScalarFieldEnum = (typeof IpScalarFieldEnum)[keyof typeof IpScalarFieldEnum] + + +export const Ip_adminScalarFieldEnum = { + id: 'id', + ip: 'ip', + comment: 'comment' +} as const + +export type Ip_adminScalarFieldEnum = (typeof Ip_adminScalarFieldEnum)[keyof typeof Ip_adminScalarFieldEnum] + + +export const Ip_historyScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + delivery_id: 'delivery_id', + service_id: 'service_id', + ip: 'ip', + date: 'date' +} as const + +export type Ip_historyScalarFieldEnum = (typeof Ip_historyScalarFieldEnum)[keyof typeof Ip_historyScalarFieldEnum] + + +export const Ip_ppScalarFieldEnum = { + id: 'id', + ip_prive: 'ip_prive', + ip_public: 'ip_public', + date: 'date', + ip_id: 'ip_id' +} as const + +export type Ip_ppScalarFieldEnum = (typeof Ip_ppScalarFieldEnum)[keyof typeof Ip_ppScalarFieldEnum] + + +export const Ip_staticScalarFieldEnum = { + id: 'id', + ip: 'ip', + static: 'static', + reverse: 'reverse' +} as const + +export type Ip_staticScalarFieldEnum = (typeof Ip_staticScalarFieldEnum)[keyof typeof Ip_staticScalarFieldEnum] + + +export const Ip_targoScalarFieldEnum = { + id: 'id', + ip: 'ip', + cidr: 'cidr', + comment: 'comment' +} as const + +export type Ip_targoScalarFieldEnum = (typeof Ip_targoScalarFieldEnum)[keyof typeof Ip_targoScalarFieldEnum] + + +export const InvoiceScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + process_status: 'process_status', + billing_status: 'billing_status', + refund_status: 'refund_status', + print_status: 'print_status', + account_id: 'account_id', + total_amt: 'total_amt', + billed_amt: 'billed_amt', + due_date: 'due_date', + notes: 'notes', + template_message: 'template_message', + email_status: 'email_status', + working_order: 'working_order', + correction: 'correction', + ppa_charge: 'ppa_charge', + credit_code_id: 'credit_code_id' +} as const + +export type InvoiceScalarFieldEnum = (typeof InvoiceScalarFieldEnum)[keyof typeof InvoiceScalarFieldEnum] + + +export const Invoice_bkScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + process_status: 'process_status', + billing_status: 'billing_status', + refund_status: 'refund_status', + print_status: 'print_status', + account_id: 'account_id', + total_amt: 'total_amt', + billed_amt: 'billed_amt', + due_date: 'due_date', + notes: 'notes', + template_message: 'template_message', + email_status: 'email_status', + working_order: 'working_order', + correction: 'correction', + ppa_charge: 'ppa_charge', + credit_code_id: 'credit_code_id' +} as const + +export type Invoice_bkScalarFieldEnum = (typeof Invoice_bkScalarFieldEnum)[keyof typeof Invoice_bkScalarFieldEnum] + + +export const Invoice_callScalarFieldEnum = { + id: 'id', + date: 'date', + number: 'number', + amount: 'amount' +} as const + +export type Invoice_callScalarFieldEnum = (typeof Invoice_callScalarFieldEnum)[keyof typeof Invoice_callScalarFieldEnum] + + +export const Invoice_itemScalarFieldEnum = { + id: 'id', + service_id: 'service_id', + invoice_id: 'invoice_id', + sku: 'sku', + quantity: 'quantity', + product_name: 'product_name', + unitary_price: 'unitary_price', + nosub: 'nosub', + delivery_name: 'delivery_name' +} as const + +export type Invoice_itemScalarFieldEnum = (typeof Invoice_itemScalarFieldEnum)[keyof typeof Invoice_itemScalarFieldEnum] + + +export const Invoice_item_bkScalarFieldEnum = { + id: 'id', + service_id: 'service_id', + invoice_id: 'invoice_id', + sku: 'sku', + quantity: 'quantity', + product_name: 'product_name', + unitary_price: 'unitary_price', + nosub: 'nosub', + delivery_name: 'delivery_name' +} as const + +export type Invoice_item_bkScalarFieldEnum = (typeof Invoice_item_bkScalarFieldEnum)[keyof typeof Invoice_item_bkScalarFieldEnum] + + +export const Invoice_msg_templateScalarFieldEnum = { + id: 'id', + name: 'name', + message: 'message' +} as const + +export type Invoice_msg_templateScalarFieldEnum = (typeof Invoice_msg_templateScalarFieldEnum)[keyof typeof Invoice_msg_templateScalarFieldEnum] + + +export const Invoice_taxScalarFieldEnum = { + id: 'id', + invoice_id: 'invoice_id', + tax_name: 'tax_name', + tax_description: 'tax_description', + tax_rate: 'tax_rate', + amount: 'amount' +} as const + +export type Invoice_taxScalarFieldEnum = (typeof Invoice_taxScalarFieldEnum)[keyof typeof Invoice_taxScalarFieldEnum] + + +export const Invoice_tax_bkScalarFieldEnum = { + id: 'id', + invoice_id: 'invoice_id', + tax_name: 'tax_name', + tax_description: 'tax_description', + tax_rate: 'tax_rate', + amount: 'amount' +} as const + +export type Invoice_tax_bkScalarFieldEnum = (typeof Invoice_tax_bkScalarFieldEnum)[keyof typeof Invoice_tax_bkScalarFieldEnum] + + +export const Accord_paiementScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date_accord: 'date_accord', + date_echeance: 'date_echeance', + date_coupure: 'date_coupure', + raison_changement: 'raison_changement', + montant: 'montant', + method: 'method', + ferie: 'ferie', + note: 'note', + status: 'status', + staff_id: 'staff_id', + date_create: 'date_create' +} as const + +export type Accord_paiementScalarFieldEnum = (typeof Accord_paiementScalarFieldEnum)[keyof typeof Accord_paiementScalarFieldEnum] + + +export const AutologinScalarFieldEnum = { + id: 'id', + token: 'token', + date: 'date', + staff: 'staff' +} as const + +export type AutologinScalarFieldEnum = (typeof AutologinScalarFieldEnum)[keyof typeof AutologinScalarFieldEnum] + + +export const StatementScalarFieldEnum = { + id: 'id', + date: 'date', + type: 'type', + number: 'number', + reference: 'reference', + amt: 'amt', + paid_amt: 'paid_amt' +} as const + +export type StatementScalarFieldEnum = (typeof StatementScalarFieldEnum)[keyof typeof StatementScalarFieldEnum] + + +export const Intranet_docScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date: 'date', + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv', + path_id: 'path_id', + priority_order: 'priority_order', + update_timestamp: 'update_timestamp' +} as const + +export type Intranet_docScalarFieldEnum = (typeof Intranet_docScalarFieldEnum)[keyof typeof Intranet_docScalarFieldEnum] + + +export const Intranet_doc_pathsScalarFieldEnum = { + id: 'id', + description: 'description', + parent_id: 'parent_id', + priority_order: 'priority_order' +} as const + +export type Intranet_doc_pathsScalarFieldEnum = (typeof Intranet_doc_pathsScalarFieldEnum)[keyof typeof Intranet_doc_pathsScalarFieldEnum] + + +export const Intranet_doc_replyScalarFieldEnum = { + id: 'id', + feed_id: 'feed_id', + date: 'date', + account_id: 'account_id', + msg: 'msg', + attachment: 'attachment', + update_timestamp: 'update_timestamp' +} as const + +export type Intranet_doc_replyScalarFieldEnum = (typeof Intranet_doc_replyScalarFieldEnum)[keyof typeof Intranet_doc_replyScalarFieldEnum] + + +export const Intranet_feedScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date: 'date', + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv' +} as const + +export type Intranet_feedScalarFieldEnum = (typeof Intranet_feedScalarFieldEnum)[keyof typeof Intranet_feedScalarFieldEnum] + + +export const Intranet_feed_replyScalarFieldEnum = { + id: 'id', + feed_id: 'feed_id', + date: 'date', + account_id: 'account_id', + msg: 'msg', + attachment: 'attachment' +} as const + +export type Intranet_feed_replyScalarFieldEnum = (typeof Intranet_feed_replyScalarFieldEnum)[keyof typeof Intranet_feed_replyScalarFieldEnum] + + +export const Intranet_techniciensScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date: 'date', + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv' +} as const + +export type Intranet_techniciensScalarFieldEnum = (typeof Intranet_techniciensScalarFieldEnum)[keyof typeof Intranet_techniciensScalarFieldEnum] + + +export const Intranet_techniciens_replyScalarFieldEnum = { + id: 'id', + feed_id: 'feed_id', + date: 'date', + account_id: 'account_id', + msg: 'msg', + attachment: 'attachment' +} as const + +export type Intranet_techniciens_replyScalarFieldEnum = (typeof Intranet_techniciens_replyScalarFieldEnum)[keyof typeof Intranet_techniciens_replyScalarFieldEnum] + + +export const Intranet_technoScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date: 'date', + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv' +} as const + +export type Intranet_technoScalarFieldEnum = (typeof Intranet_technoScalarFieldEnum)[keyof typeof Intranet_technoScalarFieldEnum] + + +export const Intranet_techno_replyScalarFieldEnum = { + id: 'id', + feed_id: 'feed_id', + date: 'date', + account_id: 'account_id', + msg: 'msg', + attachment: 'attachment' +} as const + +export type Intranet_techno_replyScalarFieldEnum = (typeof Intranet_techno_replyScalarFieldEnum)[keyof typeof Intranet_techno_replyScalarFieldEnum] + + +export const FibreScalarFieldEnum = { + id: 'id', + terrain: 'terrain', + rue: 'rue', + ville: 'ville', + zip: 'zip', + ontid: 'ontid', + sn: 'sn', + tech: 'tech', + info_connect: 'info_connect', + frame: 'frame', + slot: 'slot', + port: 'port', + vlan_manage: 'vlan_manage', + vlan_internet: 'vlan_internet', + vlan_telephone: 'vlan_telephone', + vlan_tele: 'vlan_tele', + manage_service_id: 'manage_service_id', + internet_service_id: 'internet_service_id', + telephone_service_id: 'telephone_service_id', + tele_service_id: 'tele_service_id', + service_id: 'service_id', + nb_drop: 'nb_drop', + placemarks_id: 'placemarks_id', + appartements_id: 'appartements_id', + latitude: 'latitude', + longitude: 'longitude', + boitier_pas_install: 'boitier_pas_install', + description: 'description', + suite: 'suite', + distance: 'distance', + nb_portees: 'nb_portees' +} as const + +export type FibreScalarFieldEnum = (typeof FibreScalarFieldEnum)[keyof typeof FibreScalarFieldEnum] + + +export const Fibre_oltScalarFieldEnum = { + id: 'id', + tech: 'tech', + ip: 'ip', + description: 'description' +} as const + +export type Fibre_oltScalarFieldEnum = (typeof Fibre_oltScalarFieldEnum)[keyof typeof Fibre_oltScalarFieldEnum] + + +export const Fibre_service_portScalarFieldEnum = { + id: 'id', + last_service_id: 'last_service_id' +} as const + +export type Fibre_service_portScalarFieldEnum = (typeof Fibre_service_portScalarFieldEnum)[keyof typeof Fibre_service_portScalarFieldEnum] + + +export const Fibre_suiviScalarFieldEnum = { + id: 'id', + customer_id: 'customer_id', + first_name: 'first_name', + last_name: 'last_name', + address: 'address', + city: 'city', + zip: 'zip', + phone: 'phone', + email: 'email', + longitude: 'longitude', + latitude: 'latitude', + called: 'called', + create_by: 'create_by', + note: 'note' +} as const + +export type Fibre_suiviScalarFieldEnum = (typeof Fibre_suiviScalarFieldEnum)[keyof typeof Fibre_suiviScalarFieldEnum] + + +export const Fibre_techScalarFieldEnum = { + id: 'id', + description: 'description' +} as const + +export type Fibre_techScalarFieldEnum = (typeof Fibre_techScalarFieldEnum)[keyof typeof Fibre_techScalarFieldEnum] + + +export const Fibre_videotronScalarFieldEnum = { + id: 'id', + date: 'date', + download: 'download', + upload: 'upload', + ethernet: 'ethernet', + interface: 'interface' +} as const + +export type Fibre_videotronScalarFieldEnum = (typeof Fibre_videotronScalarFieldEnum)[keyof typeof Fibre_videotronScalarFieldEnum] + + +export const GanttScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + name: 'name', + gantt: 'gantt', + closed: 'closed' +} as const + +export type GanttScalarFieldEnum = (typeof GanttScalarFieldEnum)[keyof typeof GanttScalarFieldEnum] + + +export const Gantt_templateScalarFieldEnum = { + id: 'id', + name: 'name', + gantt: 'gantt' +} as const + +export type Gantt_templateScalarFieldEnum = (typeof Gantt_templateScalarFieldEnum)[keyof typeof Gantt_templateScalarFieldEnum] + + +export const ProjectScalarFieldEnum = { + id: 'id', + name: 'name', + status: 'status', + desc: 'desc', + date_start: 'date_start', + date_end: 'date_end', + manager_name: 'manager_name' +} as const + +export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum] + + +export const Project_cmdScalarFieldEnum = { + id: 'id', + project_id: 'project_id', + date: 'date', + vendeur: 'vendeur', + no_cmd: 'no_cmd', + po: 'po', + staff_id: 'staff_id' +} as const + +export type Project_cmdScalarFieldEnum = (typeof Project_cmdScalarFieldEnum)[keyof typeof Project_cmdScalarFieldEnum] + + +export const Project_cmd_itemScalarFieldEnum = { + id: 'id', + cmd_id: 'cmd_id', + product_id: 'product_id', + desc: 'desc', + qte: 'qte', + price: 'price', + usd: 'usd', + recu: 'recu', + qte_recu: 'qte_recu', + date_recu: 'date_recu', + comment: 'comment', + eta: 'eta', + status: 'status' +} as const + +export type Project_cmd_itemScalarFieldEnum = (typeof Project_cmd_itemScalarFieldEnum)[keyof typeof Project_cmd_itemScalarFieldEnum] + + +export const Project_manager_catScalarFieldEnum = { + id: 'id', + pos: 'pos', + name: 'name', + color: 'color', + text_color: 'text_color' +} as const + +export type Project_manager_catScalarFieldEnum = (typeof Project_manager_catScalarFieldEnum)[keyof typeof Project_manager_catScalarFieldEnum] + + +export const Project_manager_checklistScalarFieldEnum = { + id: 'id', + task_id: 'task_id', + ticket_id: 'ticket_id', + desc: 'desc', + poids: 'poids', + done: 'done' +} as const + +export type Project_manager_checklistScalarFieldEnum = (typeof Project_manager_checklistScalarFieldEnum)[keyof typeof Project_manager_checklistScalarFieldEnum] + + +export const Project_manager_commentScalarFieldEnum = { + id: 'id', + task_id: 'task_id', + comment: 'comment', + staff_id: 'staff_id', + date: 'date', + unread: 'unread' +} as const + +export type Project_manager_commentScalarFieldEnum = (typeof Project_manager_commentScalarFieldEnum)[keyof typeof Project_manager_commentScalarFieldEnum] + + +export const Project_manager_taskScalarFieldEnum = { + id: 'id', + category_id: 'category_id', + pos: 'pos', + titre: 'titre', + color: 'color', + text_color: 'text_color', + desc: 'desc', + ticket_id: 'ticket_id', + date_start: 'date_start', + date_deadline: 'date_deadline', + deadline_watch: 'deadline_watch', + assign_staff: 'assign_staff', + priority: 'priority', + done: 'done', + create_by: 'create_by', + date_creation: 'date_creation', + date_update: 'date_update' +} as const + +export type Project_manager_taskScalarFieldEnum = (typeof Project_manager_taskScalarFieldEnum)[keyof typeof Project_manager_taskScalarFieldEnum] + + +export const ServiceScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + date_suspended: 'date_suspended', + date_next_invoice: 'date_next_invoice', + date_last_invoice: 'date_last_invoice', + delivery_id: 'delivery_id', + device_id: 'device_id', + product_id: 'product_id', + comment: 'comment', + payment_recurrence: 'payment_recurrence', + status: 'status', + hijack: 'hijack', + hijack_price: 'hijack_price', + hijack_desc: 'hijack_desc', + hijack_download_speed: 'hijack_download_speed', + hijack_upload_speed: 'hijack_upload_speed', + hijack_quota_day: 'hijack_quota_day', + hijack_quota_night: 'hijack_quota_night', + date_end_contract: 'date_end_contract', + actif_until: 'actif_until', + forfait_internet: 'forfait_internet', + radius_user: 'radius_user', + radius_pwd: 'radius_pwd', + radius_conso: 'radius_conso' +} as const + +export type ServiceScalarFieldEnum = (typeof ServiceScalarFieldEnum)[keyof typeof ServiceScalarFieldEnum] + + +export const Service_snapshotScalarFieldEnum = { + id: 'id', + date: 'date', + account_id: 'account_id', + service_id: 'service_id', + quota_day: 'quota_day', + quota_night: 'quota_night' +} as const + +export type Service_snapshotScalarFieldEnum = (typeof Service_snapshotScalarFieldEnum)[keyof typeof Service_snapshotScalarFieldEnum] + + +export const SoumissionScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + name: 'name', + po: 'po', + date: 'date', + tax: 'tax', + materiel: 'materiel', + mensuel: 'mensuel', + text: 'text' +} as const + +export type SoumissionScalarFieldEnum = (typeof SoumissionScalarFieldEnum)[keyof typeof SoumissionScalarFieldEnum] + + +export const Soumission_templateScalarFieldEnum = { + id: 'id', + name: 'name', + materiel: 'materiel', + mensuel: 'mensuel' +} as const + +export type Soumission_templateScalarFieldEnum = (typeof Soumission_templateScalarFieldEnum)[keyof typeof Soumission_templateScalarFieldEnum] + + +export const StaffScalarFieldEnum = { + id: 'id', + status: 'status', + username: 'username', + password: 'password', + vpn: 'vpn', + first_name: 'first_name', + last_name: 'last_name', + email: 'email', + ext: 'ext', + cell: 'cell', + gpin: 'gpin', + rights: 'rights', + date_embauche: 'date_embauche', + fete: 'fete', + supp: 'supp', + group_ad: 'group_ad', + dept_list: 'dept_list', + notification: 'notification', + darkmode: 'darkmode', + matricule_desjardins: 'matricule_desjardins', + compagnie_desjardins: 'compagnie_desjardins', + ldap_id: 'ldap_id' +} as const + +export type StaffScalarFieldEnum = (typeof StaffScalarFieldEnum)[keyof typeof StaffScalarFieldEnum] + + +export const Staff_dispoScalarFieldEnum = { + id: 'id', + day_num: 'day_num', + staff_id: 'staff_id' +} as const + +export type Staff_dispoScalarFieldEnum = (typeof Staff_dispoScalarFieldEnum)[keyof typeof Staff_dispoScalarFieldEnum] + + +export const Staff_suppScalarFieldEnum = { + id: 'id', + nom: 'nom', + staff_ids: 'staff_ids' +} as const + +export type Staff_suppScalarFieldEnum = (typeof Staff_suppScalarFieldEnum)[keyof typeof Staff_suppScalarFieldEnum] + + +export const Tele_carteScalarFieldEnum = { + id: 'id', + delivery_id: 'delivery_id', + service_id: 'service_id', + channels: 'channels' +} as const + +export type Tele_carteScalarFieldEnum = (typeof Tele_carteScalarFieldEnum)[keyof typeof Tele_carteScalarFieldEnum] + + +export const Tele_channelScalarFieldEnum = { + id: 'id', + proprio: 'proprio', + poste: 'poste', + pack_min: 'pack_min', + pack_redevance: 'pack_redevance', + pack_prix_vendu: 'pack_prix_vendu', + carte_percentage: 'carte_percentage', + carte_redevance_min: 'carte_redevance_min', + carte_prix_vendu: 'carte_prix_vendu', + monthly_min: 'monthly_min', + has_penetration_rate: 'has_penetration_rate', + penetration_actuel: 'penetration_actuel', + is_commercial: 'is_commercial', + note: 'note', + epgId: 'epgId', + uptele_no: 'uptele_no', + uptele_code: 'uptele_code', + abbr: 'abbr', + groupe_id: 'groupe_id', + ccsa_packageID: 'ccsa_packageID', + ccsa_desc: 'ccsa_desc', + rapport_bell: 'rapport_bell' +} as const + +export type Tele_channelScalarFieldEnum = (typeof Tele_channelScalarFieldEnum)[keyof typeof Tele_channelScalarFieldEnum] + + +export const Tele_groupeScalarFieldEnum = { + id: 'id', + nom: 'nom', + small_desc: 'small_desc' +} as const + +export type Tele_groupeScalarFieldEnum = (typeof Tele_groupeScalarFieldEnum)[keyof typeof Tele_groupeScalarFieldEnum] + + +export const Tele_networkScalarFieldEnum = { + id: 'id', + network_name: 'network_name', + fournisseur: 'fournisseur' +} as const + +export type Tele_networkScalarFieldEnum = (typeof Tele_networkScalarFieldEnum)[keyof typeof Tele_networkScalarFieldEnum] + + +export const Tele_packScalarFieldEnum = { + id: 'id', + product_id: 'product_id', + channels: 'channels', + actif: 'actif', + ccsa_packageID: 'ccsa_packageID', + ccsa_desc: 'ccsa_desc', + rapport_bell: 'rapport_bell', + bell_name: 'bell_name', + epgId: 'epgId' +} as const + +export type Tele_packScalarFieldEnum = (typeof Tele_packScalarFieldEnum)[keyof typeof Tele_packScalarFieldEnum] + + +export const Tele_penetrationScalarFieldEnum = { + id: 'id', + id_channel: 'id_channel', + percentage: 'percentage', + prix: 'prix' +} as const + +export type Tele_penetrationScalarFieldEnum = (typeof Tele_penetrationScalarFieldEnum)[keyof typeof Tele_penetrationScalarFieldEnum] + + +export const Tele_sub_archiveScalarFieldEnum = { + id: 'id', + date_archive: 'date_archive', + subs: 'subs' +} as const + +export type Tele_sub_archiveScalarFieldEnum = (typeof Tele_sub_archiveScalarFieldEnum)[keyof typeof Tele_sub_archiveScalarFieldEnum] + + +export const Tele_wizScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + delivery_id: 'delivery_id', + ticket_id: 'ticket_id', + nb_stb: 'nb_stb', + credit: 'credit', + fbase: 'fbase', + fthem: 'fthem' +} as const + +export type Tele_wizScalarFieldEnum = (typeof Tele_wizScalarFieldEnum)[keyof typeof Tele_wizScalarFieldEnum] + + +export const Tv_macScalarFieldEnum = { + id: 'id', + service_id: 'service_id', + mac: 'mac' +} as const + +export type Tv_macScalarFieldEnum = (typeof Tv_macScalarFieldEnum)[keyof typeof Tv_macScalarFieldEnum] + + +export const TicketScalarFieldEnum = { + id: 'id', + ost_id: 'ost_id', + parent: 'parent', + account_id: 'account_id', + delivery_id: 'delivery_id', + bon_id: 'bon_id', + subject: 'subject', + dept_id: 'dept_id', + open_by: 'open_by', + email_from: 'email_from', + assign_to: 'assign_to', + status: 'status', + due_date: 'due_date', + due_time: 'due_time', + date_create: 'date_create', + last_update: 'last_update', + date_closed: 'date_closed', + pending_to_open: 'pending_to_open', + waiting_for: 'waiting_for', + lock_name: 'lock_name', + public: 'public', + priority: 'priority', + install_success: 'install_success', + wizard: 'wizard', + wizard_fibre: 'wizard_fibre', + important: 'important', + followed_by: 'followed_by', + participant: 'participant', + update_timestamp: 'update_timestamp', + closed_by: 'closed_by' +} as const + +export type TicketScalarFieldEnum = (typeof TicketScalarFieldEnum)[keyof typeof TicketScalarFieldEnum] + + +export const Ticket_calendar_lockScalarFieldEnum = { + id: 'id', + date_lock: 'date_lock', + dept_id: 'dept_id', + nb_install: 'nb_install', + create_by: 'create_by', + update_by: 'update_by', + last_update: 'last_update' +} as const + +export type Ticket_calendar_lockScalarFieldEnum = (typeof Ticket_calendar_lockScalarFieldEnum)[keyof typeof Ticket_calendar_lockScalarFieldEnum] + + +export const Ticket_calendar_staff_lockScalarFieldEnum = { + id: 'id', + date: 'date', + staff_id: 'staff_id' +} as const + +export type Ticket_calendar_staff_lockScalarFieldEnum = (typeof Ticket_calendar_staff_lockScalarFieldEnum)[keyof typeof Ticket_calendar_staff_lockScalarFieldEnum] + + +export const Ticket_congeScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + name: 'name', + date: 'date', + desc: 'desc', + ticket_id: 'ticket_id' +} as const + +export type Ticket_congeScalarFieldEnum = (typeof Ticket_congeScalarFieldEnum)[keyof typeof Ticket_congeScalarFieldEnum] + + +export const Ticket_deptScalarFieldEnum = { + id: 'id', + parent: 'parent', + name: 'name', + hasChild: 'hasChild', + email: 'email', + manager_id: 'manager_id', + member_only: 'member_only', + protected: 'protected', + default_staff: 'default_staff', + default_follow: 'default_follow' +} as const + +export type Ticket_deptScalarFieldEnum = (typeof Ticket_deptScalarFieldEnum)[keyof typeof Ticket_deptScalarFieldEnum] + + +export const Ticket_msgScalarFieldEnum = { + id: 'id', + ticket_id: 'ticket_id', + staff_id: 'staff_id', + msg: 'msg', + date_orig: 'date_orig', + unread_csv: 'unread_csv', + public: 'public', + important: 'important', + update_timestamp: 'update_timestamp' +} as const + +export type Ticket_msgScalarFieldEnum = (typeof Ticket_msgScalarFieldEnum)[keyof typeof Ticket_msgScalarFieldEnum] + + +export const Ticket_templateScalarFieldEnum = { + id: 'id', + name: 'name', + template: 'template' +} as const + +export type Ticket_templateScalarFieldEnum = (typeof Ticket_templateScalarFieldEnum)[keyof typeof Ticket_templateScalarFieldEnum] + + +export const Tmp_vpnScalarFieldEnum = { + id: 'id', + username: 'username', + password: 'password', + ad_done: 'ad_done', + tacacs: 'tacacs', + m: 'm' +} as const + +export type Tmp_vpnScalarFieldEnum = (typeof Tmp_vpnScalarFieldEnum)[keyof typeof Tmp_vpnScalarFieldEnum] + + +export const Bon_travailScalarFieldEnum = { + id: 'id', + date: 'date', + account_id: 'account_id', + tech1: 'tech1', + heure_arrive_t1: 'heure_arrive_t1', + heure_depart_t1: 'heure_depart_t1', + tech2: 'tech2', + heure_arrive_t2: 'heure_arrive_t2', + heure_depart_t2: 'heure_depart_t2', + note: 'note', + subtotal: 'subtotal', + tps: 'tps', + tvq: 'tvq', + total: 'total' +} as const + +export type Bon_travailScalarFieldEnum = (typeof Bon_travailScalarFieldEnum)[keyof typeof Bon_travailScalarFieldEnum] + + +export const Bon_travail_itemScalarFieldEnum = { + id: 'id', + bon_id: 'bon_id', + product_id: 'product_id', + qte: 'qte', + price: 'price', + desc: 'desc' +} as const + +export type Bon_travail_itemScalarFieldEnum = (typeof Bon_travail_itemScalarFieldEnum)[keyof typeof Bon_travail_itemScalarFieldEnum] + + +export const Checklist_relaisScalarFieldEnum = { + id: 'id', + site_id: 'site_id', + site_name: 'site_name', + account_id: 'account_id', + priority: 'priority', + done: 'done', + equipement: 'equipement', + connecteur: 'connecteur', + grounding: 'grounding', + surge_lightning: 'surge_lightning', + switch_poe: 'switch_poe', + switch_giga_shield: 'switch_giga_shield', + batterie: 'batterie', + solidity: 'solidity', + redondance: 'redondance', + antenne_58_360: 'antenne_58_360', + antenne_24_360: 'antenne_24_360', + rspro_maj: 'rspro_maj', + boite: 'boite', + cable: 'cable', + staros_ubnt: 'staros_ubnt', + autre: 'autre' +} as const + +export type Checklist_relaisScalarFieldEnum = (typeof Checklist_relaisScalarFieldEnum)[keyof typeof Checklist_relaisScalarFieldEnum] + + +export const ConferenceScalarFieldEnum = { + id: 'id', + room_id: 'room_id', + time_start: 'time_start', + time_end: 'time_end', + name: 'name', + description: 'description', + host: 'host', + participant: 'participant' +} as const + +export type ConferenceScalarFieldEnum = (typeof ConferenceScalarFieldEnum)[keyof typeof ConferenceScalarFieldEnum] + + +export const Conference_roomScalarFieldEnum = { + id: 'id', + name: 'name', + status: 'status', + location: 'location', + description: 'description' +} as const + +export type Conference_roomScalarFieldEnum = (typeof Conference_roomScalarFieldEnum)[keyof typeof Conference_roomScalarFieldEnum] + + +export const FournisseurScalarFieldEnum = { + id: 'id', + nom: 'nom', + email: 'email', + actif: 'actif' +} as const + +export type FournisseurScalarFieldEnum = (typeof FournisseurScalarFieldEnum)[keyof typeof FournisseurScalarFieldEnum] + + +export const Notice_guiScalarFieldEnum = { + id: 'id', + staff_id: 'staff_id', + message: 'message', + is_read: 'is_read', + timestamp: 'timestamp' +} as const + +export type Notice_guiScalarFieldEnum = (typeof Notice_guiScalarFieldEnum)[keyof typeof Notice_guiScalarFieldEnum] + + +export const PromoScalarFieldEnum = { + id: 'id', + name: 'name', + desc: 'desc', + date_start: 'date_start', + date_end: 'date_end', + date_orig: 'date_orig', + visible_until: 'visible_until', + actif: 'actif' +} as const + +export type PromoScalarFieldEnum = (typeof PromoScalarFieldEnum)[keyof typeof PromoScalarFieldEnum] + + +export const StbsScalarFieldEnum = { + id: 'id', + mac: 'mac', + sn: 'sn', + targo: 'targo' +} as const + +export type StbsScalarFieldEnum = (typeof StbsScalarFieldEnum)[keyof typeof StbsScalarFieldEnum] + + +export const Tech_dispoScalarFieldEnum = { + id: 'id', + date: 'date', + tech: 'tech' +} as const + +export type Tech_dispoScalarFieldEnum = (typeof Tech_dispoScalarFieldEnum)[keyof typeof Tech_dispoScalarFieldEnum] + + +export const DebugScalarFieldEnum = { + id: 'id', + autor: 'autor', + url: 'url', + date_last: 'date_last', + desc: 'desc', + note4autor: 'note4autor', + note4dev: 'note4dev', + status: 'status' +} as const + +export type DebugScalarFieldEnum = (typeof DebugScalarFieldEnum)[keyof typeof DebugScalarFieldEnum] + + +export const Carte_tempsScalarFieldEnum = { + id: 'id', + week: 'week', + year: 'year', + date: 'date', + staff_id: 'staff_id', + start_am: 'start_am', + end_am: 'end_am', + start_pm: 'start_pm', + end_pm: 'end_pm', + start_night: 'start_night', + end_night: 'end_night', + relais: 'relais', + comment: 'comment', + note_int: 'note_int', + conge: 'conge', + appr: 'appr', + appr_dir: 'appr_dir' +} as const + +export type Carte_tempsScalarFieldEnum = (typeof Carte_tempsScalarFieldEnum)[keyof typeof Carte_tempsScalarFieldEnum] + + +export const Carte_temps_periodeScalarFieldEnum = { + id: 'id', + debut: 'debut', + fin: 'fin', + paid: 'paid', + periode: 'periode', + annee: 'annee' +} as const + +export type Carte_temps_periodeScalarFieldEnum = (typeof Carte_temps_periodeScalarFieldEnum)[keyof typeof Carte_temps_periodeScalarFieldEnum] + + +export const Banque_heure_staffScalarFieldEnum = { + id: 'id', + staff_id: 'staff_id', + week: 'week', + year: 'year', + sunday: 'sunday', + heure: 'heure' +} as const + +export type Banque_heure_staffScalarFieldEnum = (typeof Banque_heure_staffScalarFieldEnum)[keyof typeof Banque_heure_staffScalarFieldEnum] + + +export const Hour_bankScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + remaining_time: 'remaining_time', + expiration_date: 'expiration_date', + note: 'note', + recurrence: 'recurrence', + reset_value: 'reset_value' +} as const + +export type Hour_bankScalarFieldEnum = (typeof Hour_bankScalarFieldEnum)[keyof typeof Hour_bankScalarFieldEnum] + + +export const Hour_bank_detailScalarFieldEnum = { + id: 'id', + hour_id: 'hour_id', + staff_id: 'staff_id', + date_orig: 'date_orig', + used_time: 'used_time', + ticket_id: 'ticket_id', + working_order: 'working_order', + detail: 'detail' +} as const + +export type Hour_bank_detailScalarFieldEnum = (typeof Hour_bank_detailScalarFieldEnum)[keyof typeof Hour_bank_detailScalarFieldEnum] + + +export const TestScalarFieldEnum = { + id: 'id', + text: 'text', + c2: 'c2' +} as const + +export type TestScalarFieldEnum = (typeof TestScalarFieldEnum)[keyof typeof TestScalarFieldEnum] + + +export const Account_memo_templateScalarFieldEnum = { + id: 'id', + name: 'name', + color: 'color', + bcolor: 'bcolor', + border: 'border' +} as const + +export type Account_memo_templateScalarFieldEnum = (typeof Account_memo_templateScalarFieldEnum)[keyof typeof Account_memo_templateScalarFieldEnum] + + +export const NotesScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + notes: 'notes' +} as const + +export type NotesScalarFieldEnum = (typeof NotesScalarFieldEnum)[keyof typeof NotesScalarFieldEnum] + + +export const EmailScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + email: 'email', + password: 'password' +} as const + +export type EmailScalarFieldEnum = (typeof EmailScalarFieldEnum)[keyof typeof EmailScalarFieldEnum] + + +export const Client_pwdScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date: 'date', + uid: 'uid', + used: 'used' +} as const + +export type Client_pwdScalarFieldEnum = (typeof Client_pwdScalarFieldEnum)[keyof typeof Client_pwdScalarFieldEnum] + + +export const Account_profileScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + profile_id: 'profile_id', + address_id: 'address_id', + card_id: 'card_id', + token: 'token', + initial_transaction: 'initial_transaction' +} as const + +export type Account_profileScalarFieldEnum = (typeof Account_profileScalarFieldEnum)[keyof typeof Account_profileScalarFieldEnum] + + +export const Deposit_slipScalarFieldEnum = { + id: 'id', + customer_id: 'customer_id', + name: 'name', + amount: 'amount', + type: 'type', + desc: 'desc', + date: 'date' +} as const + +export type Deposit_slipScalarFieldEnum = (typeof Deposit_slipScalarFieldEnum)[keyof typeof Deposit_slipScalarFieldEnum] + + +export const Account_suspensionScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date_start: 'date_start', + date_end: 'date_end', + note: 'note' +} as const + +export type Account_suspensionScalarFieldEnum = (typeof Account_suspensionScalarFieldEnum)[keyof typeof Account_suspensionScalarFieldEnum] + + +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] + + +export const accountOrderByRelevanceFieldEnum = { + customer_id: 'customer_id', + language_id: 'language_id', + username: 'username', + password: 'password', + misc: 'misc', + first_name: 'first_name', + middle_name: 'middle_name', + last_name: 'last_name', + mandataire: 'mandataire', + title: 'title', + email: 'email', + email_autre: 'email_autre', + company: 'company', + contact: 'contact', + address1: 'address1', + address2: 'address2', + city: 'city', + state: 'state', + zip: 'zip', + tel_home: 'tel_home', + tel_office: 'tel_office', + tel_office_ext: 'tel_office_ext', + cell: 'cell', + fax: 'fax', + ppa_name: 'ppa_name', + ppa_code: 'ppa_code', + ppa_branch: 'ppa_branch', + ppa_account: 'ppa_account', + notes_client: 'notes_client', + keyword: 'keyword', + terminate_reason: 'terminate_reason', + terminate_cie: 'terminate_cie', + terminate_note: 'terminate_note', + terminate_date: 'terminate_date', + stripe_id: 'stripe_id' +} as const + +export type accountOrderByRelevanceFieldEnum = (typeof accountOrderByRelevanceFieldEnum)[keyof typeof accountOrderByRelevanceFieldEnum] + + +export const account_groupOrderByRelevanceFieldEnum = { + group_name: 'group_name' +} as const + +export type account_groupOrderByRelevanceFieldEnum = (typeof account_groupOrderByRelevanceFieldEnum)[keyof typeof account_groupOrderByRelevanceFieldEnum] + + +export const account_memoOrderByRelevanceFieldEnum = { + memo: 'memo', + color: 'color', + bcolor: 'bcolor', + border: 'border' +} as const + +export type account_memoOrderByRelevanceFieldEnum = (typeof account_memoOrderByRelevanceFieldEnum)[keyof typeof account_memoOrderByRelevanceFieldEnum] + + +export const compta_comptesOrderByRelevanceFieldEnum = { + category: 'category', + num_compte: 'num_compte', + desc: 'desc' +} as const + +export type compta_comptesOrderByRelevanceFieldEnum = (typeof compta_comptesOrderByRelevanceFieldEnum)[keyof typeof compta_comptesOrderByRelevanceFieldEnum] + + +export const compta_comptes_soldesOrderByRelevanceFieldEnum = { + comment: 'comment', + type: 'type' +} as const + +export type compta_comptes_soldesOrderByRelevanceFieldEnum = (typeof compta_comptes_soldesOrderByRelevanceFieldEnum)[keyof typeof compta_comptes_soldesOrderByRelevanceFieldEnum] + + +export const compta_journal_ecritureOrderByRelevanceFieldEnum = { + type: 'type', + customer_id: 'customer_id', + full_name: 'full_name', + desc: 'desc', + mo: 'mo' +} as const + +export type compta_journal_ecritureOrderByRelevanceFieldEnum = (typeof compta_journal_ecritureOrderByRelevanceFieldEnum)[keyof typeof compta_journal_ecritureOrderByRelevanceFieldEnum] + + +export const compta_journal_ecriture_bkOrderByRelevanceFieldEnum = { + type: 'type', + customer_id: 'customer_id', + full_name: 'full_name', + desc: 'desc', + mo: 'mo' +} as const + +export type compta_journal_ecriture_bkOrderByRelevanceFieldEnum = (typeof compta_journal_ecriture_bkOrderByRelevanceFieldEnum)[keyof typeof compta_journal_ecriture_bkOrderByRelevanceFieldEnum] + + +export const compta_journal_ecriture_detailOrderByRelevanceFieldEnum = { + action: 'action' +} as const + +export type compta_journal_ecriture_detailOrderByRelevanceFieldEnum = (typeof compta_journal_ecriture_detailOrderByRelevanceFieldEnum)[keyof typeof compta_journal_ecriture_detailOrderByRelevanceFieldEnum] + + +export const compta_journal_ecriture_detail_bkOrderByRelevanceFieldEnum = { + action: 'action' +} as const + +export type compta_journal_ecriture_detail_bkOrderByRelevanceFieldEnum = (typeof compta_journal_ecriture_detail_bkOrderByRelevanceFieldEnum)[keyof typeof compta_journal_ecriture_detail_bkOrderByRelevanceFieldEnum] + + +export const compta_setupOrderByRelevanceFieldEnum = { + attachment_ext: 'attachment_ext', + imap_token: 'imap_token' +} as const + +export type compta_setupOrderByRelevanceFieldEnum = (typeof compta_setupOrderByRelevanceFieldEnum)[keyof typeof compta_setupOrderByRelevanceFieldEnum] + + +export const credit_codeOrderByRelevanceFieldEnum = { + code: 'code', + desc: 'desc' +} as const + +export type credit_codeOrderByRelevanceFieldEnum = (typeof credit_codeOrderByRelevanceFieldEnum)[keyof typeof credit_codeOrderByRelevanceFieldEnum] + + +export const taxOrderByRelevanceFieldEnum = { + name: 'name', + description: 'description' +} as const + +export type taxOrderByRelevanceFieldEnum = (typeof taxOrderByRelevanceFieldEnum)[keyof typeof taxOrderByRelevanceFieldEnum] + + +export const tax_groupOrderByRelevanceFieldEnum = { + name: 'name', + description: 'description', + tax: 'tax' +} as const + +export type tax_groupOrderByRelevanceFieldEnum = (typeof tax_groupOrderByRelevanceFieldEnum)[keyof typeof tax_groupOrderByRelevanceFieldEnum] + + +export const td_payableOrderByRelevanceFieldEnum = { + invoice: 'invoice', + date_invoice: 'date_invoice', + fournisseur: 'fournisseur', + devise: 'devise', + methode: 'methode', + reference: 'reference', + date_paiement: 'date_paiement', + releve: 'releve' +} as const + +export type td_payableOrderByRelevanceFieldEnum = (typeof td_payableOrderByRelevanceFieldEnum)[keyof typeof td_payableOrderByRelevanceFieldEnum] + + +export const consoOrderByRelevanceFieldEnum = { + ip_id: 'ip_id' +} as const + +export type consoOrderByRelevanceFieldEnum = (typeof consoOrderByRelevanceFieldEnum)[keyof typeof consoOrderByRelevanceFieldEnum] + + +export const conso_archiveOrderByRelevanceFieldEnum = { + ip_id: 'ip_id' +} as const + +export type conso_archiveOrderByRelevanceFieldEnum = (typeof conso_archiveOrderByRelevanceFieldEnum)[keyof typeof conso_archiveOrderByRelevanceFieldEnum] + + +export const conso_avisOrderByRelevanceFieldEnum = { + avis: 'avis' +} as const + +export type conso_avisOrderByRelevanceFieldEnum = (typeof conso_avisOrderByRelevanceFieldEnum)[keyof typeof conso_avisOrderByRelevanceFieldEnum] + + +export const conso_radiusOrderByRelevanceFieldEnum = { + username: 'username', + date: 'date', + download: 'download', + upload: 'upload' +} as const + +export type conso_radiusOrderByRelevanceFieldEnum = (typeof conso_radiusOrderByRelevanceFieldEnum)[keyof typeof conso_radiusOrderByRelevanceFieldEnum] + + +export const conso_radius_dailyOrderByRelevanceFieldEnum = { + username: 'username', + date: 'date', + download_nuit: 'download_nuit', + upload_nuit: 'upload_nuit', + download_jour: 'download_jour', + upload_jour: 'upload_jour' +} as const + +export type conso_radius_dailyOrderByRelevanceFieldEnum = (typeof conso_radius_dailyOrderByRelevanceFieldEnum)[keyof typeof conso_radius_dailyOrderByRelevanceFieldEnum] + + +export const conso_radius_daily2OrderByRelevanceFieldEnum = { + username: 'username', + date: 'date', + download_nuit: 'download_nuit', + upload_nuit: 'upload_nuit', + download_jour: 'download_jour', + upload_jour: 'upload_jour' +} as const + +export type conso_radius_daily2OrderByRelevanceFieldEnum = (typeof conso_radius_daily2OrderByRelevanceFieldEnum)[keyof typeof conso_radius_daily2OrderByRelevanceFieldEnum] + + +export const conso_radius_hourlyOrderByRelevanceFieldEnum = { + username: 'username', + date: 'date', + download: 'download', + upload: 'upload' +} as const + +export type conso_radius_hourlyOrderByRelevanceFieldEnum = (typeof conso_radius_hourlyOrderByRelevanceFieldEnum)[keyof typeof conso_radius_hourlyOrderByRelevanceFieldEnum] + + +export const conso_radius_monthlyOrderByRelevanceFieldEnum = { + date: 'date', + username: 'username', + nuit: 'nuit', + jour: 'jour' +} as const + +export type conso_radius_monthlyOrderByRelevanceFieldEnum = (typeof conso_radius_monthlyOrderByRelevanceFieldEnum)[keyof typeof conso_radius_monthlyOrderByRelevanceFieldEnum] + + +export const conso_radius_monthly2OrderByRelevanceFieldEnum = { + date: 'date', + username: 'username', + nuit: 'nuit', + jour: 'jour' +} as const + +export type conso_radius_monthly2OrderByRelevanceFieldEnum = (typeof conso_radius_monthly2OrderByRelevanceFieldEnum)[keyof typeof conso_radius_monthly2OrderByRelevanceFieldEnum] + + +export const deliveryOrderByRelevanceFieldEnum = { + name: 'name', + comment: 'comment', + address1: 'address1', + address2: 'address2', + city: 'city', + state: 'state', + zip: 'zip', + tel_home: 'tel_home', + tel_office: 'tel_office', + tel_office_ext: 'tel_office_ext', + cell: 'cell', + fax: 'fax', + email: 'email', + contact: 'contact' +} as const + +export type deliveryOrderByRelevanceFieldEnum = (typeof deliveryOrderByRelevanceFieldEnum)[keyof typeof deliveryOrderByRelevanceFieldEnum] + + +export const delivery_historyOrderByRelevanceFieldEnum = { + address1: 'address1', + address2: 'address2', + city: 'city', + state: 'state', + zip: 'zip' +} as const + +export type delivery_historyOrderByRelevanceFieldEnum = (typeof delivery_historyOrderByRelevanceFieldEnum)[keyof typeof delivery_historyOrderByRelevanceFieldEnum] + + +export const deviceOrderByRelevanceFieldEnum = { + category: 'category', + name: 'name', + manufacturier: 'manufacturier', + model: 'model', + sn: 'sn', + mac: 'mac', + manage: 'manage', + port: 'port', + protocol: 'protocol', + manage_cli: 'manage_cli', + port_cli: 'port_cli', + protocol_cli: 'protocol_cli', + user: 'user', + pass: 'pass' +} as const + +export type deviceOrderByRelevanceFieldEnum = (typeof deviceOrderByRelevanceFieldEnum)[keyof typeof deviceOrderByRelevanceFieldEnum] + + +export const device_archiveOrderByRelevanceFieldEnum = { + category: 'category', + name: 'name', + manufacturier: 'manufacturier', + model: 'model', + sn: 'sn', + mac: 'mac', + manage: 'manage', + port: 'port', + protocol: 'protocol', + manage_cli: 'manage_cli', + port_cli: 'port_cli', + protocol_cli: 'protocol_cli', + user: 'user', + pass: 'pass' +} as const + +export type device_archiveOrderByRelevanceFieldEnum = (typeof device_archiveOrderByRelevanceFieldEnum)[keyof typeof device_archiveOrderByRelevanceFieldEnum] + + +export const device_attrOrderByRelevanceFieldEnum = { + attr: 'attr', + value: 'value' +} as const + +export type device_attrOrderByRelevanceFieldEnum = (typeof device_attrOrderByRelevanceFieldEnum)[keyof typeof device_attrOrderByRelevanceFieldEnum] + + +export const device_templateOrderByRelevanceFieldEnum = { + nom: 'nom' +} as const + +export type device_templateOrderByRelevanceFieldEnum = (typeof device_templateOrderByRelevanceFieldEnum)[keyof typeof device_templateOrderByRelevanceFieldEnum] + + +export const device_template_attrOrderByRelevanceFieldEnum = { + attr: 'attr', + default_val: 'default_val' +} as const + +export type device_template_attrOrderByRelevanceFieldEnum = (typeof device_template_attrOrderByRelevanceFieldEnum)[keyof typeof device_template_attrOrderByRelevanceFieldEnum] + + +export const productOrderByRelevanceFieldEnum = { + sku: 'sku', + inv_tag: 'inv_tag', + emplacement: 'emplacement', + fibre_lineprofile: 'fibre_lineprofile', + fibre_serviceprofile: 'fibre_serviceprofile' +} as const + +export type productOrderByRelevanceFieldEnum = (typeof productOrderByRelevanceFieldEnum)[keyof typeof productOrderByRelevanceFieldEnum] + + +export const product_catOrderByRelevanceFieldEnum = { + name: 'name', + notes: 'notes' +} as const + +export type product_catOrderByRelevanceFieldEnum = (typeof product_catOrderByRelevanceFieldEnum)[keyof typeof product_catOrderByRelevanceFieldEnum] + + +export const product_formatOrderByRelevanceFieldEnum = { + name: 'name', + product_idx: 'product_idx', + description: 'description' +} as const + +export type product_formatOrderByRelevanceFieldEnum = (typeof product_formatOrderByRelevanceFieldEnum)[keyof typeof product_formatOrderByRelevanceFieldEnum] + + +export const product_fournisseurOrderByRelevanceFieldEnum = { + nom_fournisseur: 'nom_fournisseur', + prix_livr: 'prix_livr', + delais_livr: 'delais_livr', + comment: 'comment' +} as const + +export type product_fournisseurOrderByRelevanceFieldEnum = (typeof product_fournisseurOrderByRelevanceFieldEnum)[keyof typeof product_fournisseurOrderByRelevanceFieldEnum] + + +export const product_profileOrderByRelevanceFieldEnum = { + device_type: 'device_type' +} as const + +export type product_profileOrderByRelevanceFieldEnum = (typeof product_profileOrderByRelevanceFieldEnum)[keyof typeof product_profileOrderByRelevanceFieldEnum] + + +export const product_translateOrderByRelevanceFieldEnum = { + language_id: 'language_id', + name: 'name', + description_short: 'description_short', + description_full: 'description_full' +} as const + +export type product_translateOrderByRelevanceFieldEnum = (typeof product_translateOrderByRelevanceFieldEnum)[keyof typeof product_translateOrderByRelevanceFieldEnum] + + +export const product_zoneOrderByRelevanceFieldEnum = { + description: 'description' +} as const + +export type product_zoneOrderByRelevanceFieldEnum = (typeof product_zoneOrderByRelevanceFieldEnum)[keyof typeof product_zoneOrderByRelevanceFieldEnum] + + +export const inventaire_logOrderByRelevanceFieldEnum = { + prod_tag: 'prod_tag', + action: 'action', + timestamp: 'timestamp' +} as const + +export type inventaire_logOrderByRelevanceFieldEnum = (typeof inventaire_logOrderByRelevanceFieldEnum)[keyof typeof inventaire_logOrderByRelevanceFieldEnum] + + +export const phoneOrderByRelevanceFieldEnum = { + phone_num: 'phone_num', + note: 'note', + fournisseur: 'fournisseur' +} as const + +export type phoneOrderByRelevanceFieldEnum = (typeof phoneOrderByRelevanceFieldEnum)[keyof typeof phoneOrderByRelevanceFieldEnum] + + +export const phone_addrOrderByRelevanceFieldEnum = { + phone: 'phone', + street_number: 'street_number', + apt: 'apt', + street_name: 'street_name', + city: 'city', + state: 'state', + zip: 'zip', + first_name: 'first_name', + last_name: 'last_name', + info: 'info', + code_cauca: 'code_cauca', + class_service: 'class_service' +} as const + +export type phone_addrOrderByRelevanceFieldEnum = (typeof phone_addrOrderByRelevanceFieldEnum)[keyof typeof phone_addrOrderByRelevanceFieldEnum] + + +export const phone_comwaveOrderByRelevanceFieldEnum = { + phoneNumber: 'phoneNumber', + status: 'status', + date: 'date', + reason: 'reason' +} as const + +export type phone_comwaveOrderByRelevanceFieldEnum = (typeof phone_comwaveOrderByRelevanceFieldEnum)[keyof typeof phone_comwaveOrderByRelevanceFieldEnum] + + +export const phone_noteOrderByRelevanceFieldEnum = { + phone: 'phone', + rate_center: 'rate_center', + fournisseur: 'fournisseur', + note: 'note' +} as const + +export type phone_noteOrderByRelevanceFieldEnum = (typeof phone_noteOrderByRelevanceFieldEnum)[keyof typeof phone_noteOrderByRelevanceFieldEnum] + + +export const phone_provisioningOrderByRelevanceFieldEnum = { + phone: 'phone', + app: 'app', + mac: 'mac', + password: 'password', + internationnal: 'internationnal' +} as const + +export type phone_provisioningOrderByRelevanceFieldEnum = (typeof phone_provisioningOrderByRelevanceFieldEnum)[keyof typeof phone_provisioningOrderByRelevanceFieldEnum] + + +export const phonecall_log_2025OrderByRelevanceFieldEnum = { + caller_id_name: 'caller_id_name', + caller_id_number: 'caller_id_number', + destination_number: 'destination_number', + hangup_cause: 'hangup_cause', + uuid: 'uuid' +} as const + +export type phonecall_log_2025OrderByRelevanceFieldEnum = (typeof phonecall_log_2025OrderByRelevanceFieldEnum)[keyof typeof phonecall_log_2025OrderByRelevanceFieldEnum] + + +export const phonecall_log_2026OrderByRelevanceFieldEnum = { + caller_id_name: 'caller_id_name', + caller_id_number: 'caller_id_number', + destination_number: 'destination_number', + hangup_cause: 'hangup_cause', + uuid: 'uuid' +} as const + +export type phonecall_log_2026OrderByRelevanceFieldEnum = (typeof phonecall_log_2026OrderByRelevanceFieldEnum)[keyof typeof phonecall_log_2026OrderByRelevanceFieldEnum] + + +export const voicemeupOrderByRelevanceFieldEnum = { + destination: 'destination', + country: 'country', + state: 'state', + district: 'district', + uuid: 'uuid' +} as const + +export type voicemeupOrderByRelevanceFieldEnum = (typeof voicemeupOrderByRelevanceFieldEnum)[keyof typeof voicemeupOrderByRelevanceFieldEnum] + + +export const pbxOrderByRelevanceFieldEnum = { + phone: 'phone', + name: 'name', + password: 'password', + vm_password: 'vm_password', + vm_email: 'vm_email', + int_code: 'int_code', + language: 'language', + call_911: 'call_911', + user_context: 'user_context', + country_whitelist: 'country_whitelist' +} as const + +export type pbxOrderByRelevanceFieldEnum = (typeof pbxOrderByRelevanceFieldEnum)[keyof typeof pbxOrderByRelevanceFieldEnum] + + +export const pbx_appOrderByRelevanceFieldEnum = { + username: 'username', + mac: 'mac', + app: 'app', + note: 'note' +} as const + +export type pbx_appOrderByRelevanceFieldEnum = (typeof pbx_appOrderByRelevanceFieldEnum)[keyof typeof pbx_appOrderByRelevanceFieldEnum] + + +export const pbx_comOrderByRelevanceFieldEnum = { + phone: 'phone', + name: 'name', + failover: 'failover', + auth_method: 'auth_method', + password: 'password', + ip: 'ip', + int_code: 'int_code', + country_whitelist: 'country_whitelist', + language: 'language', + call_911: 'call_911', + user_context: 'user_context', + date_origin: 'date_origin', + date_update: 'date_update' +} as const + +export type pbx_comOrderByRelevanceFieldEnum = (typeof pbx_comOrderByRelevanceFieldEnum)[keyof typeof pbx_comOrderByRelevanceFieldEnum] + + +export const pbx_com_wlOrderByRelevanceFieldEnum = { + phone: 'phone', + country_whitelist: 'country_whitelist' +} as const + +export type pbx_com_wlOrderByRelevanceFieldEnum = (typeof pbx_com_wlOrderByRelevanceFieldEnum)[keyof typeof pbx_com_wlOrderByRelevanceFieldEnum] + + +export const pbx_faxOrderByRelevanceFieldEnum = { + number: 'number', + email: 'email', + description: 'description' +} as const + +export type pbx_faxOrderByRelevanceFieldEnum = (typeof pbx_faxOrderByRelevanceFieldEnum)[keyof typeof pbx_faxOrderByRelevanceFieldEnum] + + +export const paymentOrderByRelevanceFieldEnum = { + type: 'type', + memo: 'memo', + reference: 'reference', + uniqsess: 'uniqsess' +} as const + +export type paymentOrderByRelevanceFieldEnum = (typeof paymentOrderByRelevanceFieldEnum)[keyof typeof paymentOrderByRelevanceFieldEnum] + + +export const passwords_managerOrderByRelevanceFieldEnum = { + title: 'title', + login: 'login', + pass: 'pass', + url: 'url', + email: 'email', + phone: 'phone', + category: 'category', + subcategory: 'subcategory', + desc: 'desc', + notes: 'notes', + logs: 'logs', + users_granted: 'users_granted', + group_granted: 'group_granted', + keywords: 'keywords' +} as const + +export type passwords_managerOrderByRelevanceFieldEnum = (typeof passwords_managerOrderByRelevanceFieldEnum)[keyof typeof passwords_managerOrderByRelevanceFieldEnum] + + +export const passwords_manager_catOrderByRelevanceFieldEnum = { + title: 'title', + desc: 'desc' +} as const + +export type passwords_manager_catOrderByRelevanceFieldEnum = (typeof passwords_manager_catOrderByRelevanceFieldEnum)[keyof typeof passwords_manager_catOrderByRelevanceFieldEnum] + + +export const passwords_manager_groupOrderByRelevanceFieldEnum = { + name: 'name', + users: 'users' +} as const + +export type passwords_manager_groupOrderByRelevanceFieldEnum = (typeof passwords_manager_groupOrderByRelevanceFieldEnum)[keyof typeof passwords_manager_groupOrderByRelevanceFieldEnum] + + +export const notificationOrderByRelevanceFieldEnum = { + endpoint: 'endpoint', + authToken: 'authToken', + publicKey: 'publicKey', + contentEncoding: 'contentEncoding', + plateforme: 'plateforme' +} as const + +export type notificationOrderByRelevanceFieldEnum = (typeof notificationOrderByRelevanceFieldEnum)[keyof typeof notificationOrderByRelevanceFieldEnum] + + +export const notification_payloadOrderByRelevanceFieldEnum = { + payload: 'payload' +} as const + +export type notification_payloadOrderByRelevanceFieldEnum = (typeof notification_payloadOrderByRelevanceFieldEnum)[keyof typeof notification_payloadOrderByRelevanceFieldEnum] + + +export const municipaliteOrderByRelevanceFieldEnum = { + nom: 'nom', + code: 'code', + administration: 'administration' +} as const + +export type municipaliteOrderByRelevanceFieldEnum = (typeof municipaliteOrderByRelevanceFieldEnum)[keyof typeof municipaliteOrderByRelevanceFieldEnum] + + +export const sommaire_porteOrderByRelevanceFieldEnum = { + id_adresse: 'id_adresse', + id_subvention: 'id_subvention', + adresse_subvention: 'adresse_subvention', + ville_subvention: 'ville_subvention', + latitude: 'latitude', + longitude: 'longitude' +} as const + +export type sommaire_porteOrderByRelevanceFieldEnum = (typeof sommaire_porteOrderByRelevanceFieldEnum)[keyof typeof sommaire_porteOrderByRelevanceFieldEnum] + + +export const stateOrderByRelevanceFieldEnum = { + name_en: 'name_en', + name_fr: 'name_fr', + abbrev: 'abbrev', + country: 'country' +} as const + +export type stateOrderByRelevanceFieldEnum = (typeof stateOrderByRelevanceFieldEnum)[keyof typeof stateOrderByRelevanceFieldEnum] + + +export const licenceOrderByRelevanceFieldEnum = { + nom: 'nom', + date: 'date', + can_manage: 'can_manage', + comment: 'comment' +} as const + +export type licenceOrderByRelevanceFieldEnum = (typeof licenceOrderByRelevanceFieldEnum)[keyof typeof licenceOrderByRelevanceFieldEnum] + + +export const licence_keyOrderByRelevanceFieldEnum = { + licence_key: 'licence_key', + date: 'date', + date_expire: 'date_expire', + comment: 'comment' +} as const + +export type licence_keyOrderByRelevanceFieldEnum = (typeof licence_keyOrderByRelevanceFieldEnum)[keyof typeof licence_keyOrderByRelevanceFieldEnum] + + +export const ipOrderByRelevanceFieldEnum = { + ip: 'ip', + prive: 'prive', + ip_relais: 'ip_relais', + technology: 'technology', + name_access_point: 'name_access_point', + mac: 'mac', + web_link: 'web_link', + link_relais: 'link_relais', + comment: 'comment', + cidr: 'cidr' +} as const + +export type ipOrderByRelevanceFieldEnum = (typeof ipOrderByRelevanceFieldEnum)[keyof typeof ipOrderByRelevanceFieldEnum] + + +export const ip_adminOrderByRelevanceFieldEnum = { + ip: 'ip', + comment: 'comment' +} as const + +export type ip_adminOrderByRelevanceFieldEnum = (typeof ip_adminOrderByRelevanceFieldEnum)[keyof typeof ip_adminOrderByRelevanceFieldEnum] + + +export const ip_historyOrderByRelevanceFieldEnum = { + ip: 'ip' +} as const + +export type ip_historyOrderByRelevanceFieldEnum = (typeof ip_historyOrderByRelevanceFieldEnum)[keyof typeof ip_historyOrderByRelevanceFieldEnum] + + +export const ip_ppOrderByRelevanceFieldEnum = { + ip_prive: 'ip_prive', + ip_public: 'ip_public', + ip_id: 'ip_id' +} as const + +export type ip_ppOrderByRelevanceFieldEnum = (typeof ip_ppOrderByRelevanceFieldEnum)[keyof typeof ip_ppOrderByRelevanceFieldEnum] + + +export const ip_staticOrderByRelevanceFieldEnum = { + ip: 'ip', + reverse: 'reverse' +} as const + +export type ip_staticOrderByRelevanceFieldEnum = (typeof ip_staticOrderByRelevanceFieldEnum)[keyof typeof ip_staticOrderByRelevanceFieldEnum] + + +export const ip_targoOrderByRelevanceFieldEnum = { + ip: 'ip', + comment: 'comment' +} as const + +export type ip_targoOrderByRelevanceFieldEnum = (typeof ip_targoOrderByRelevanceFieldEnum)[keyof typeof ip_targoOrderByRelevanceFieldEnum] + + +export const invoiceOrderByRelevanceFieldEnum = { + notes: 'notes', + template_message: 'template_message', + working_order: 'working_order' +} as const + +export type invoiceOrderByRelevanceFieldEnum = (typeof invoiceOrderByRelevanceFieldEnum)[keyof typeof invoiceOrderByRelevanceFieldEnum] + + +export const invoice_bkOrderByRelevanceFieldEnum = { + notes: 'notes', + template_message: 'template_message', + working_order: 'working_order' +} as const + +export type invoice_bkOrderByRelevanceFieldEnum = (typeof invoice_bkOrderByRelevanceFieldEnum)[keyof typeof invoice_bkOrderByRelevanceFieldEnum] + + +export const invoice_callOrderByRelevanceFieldEnum = { + number: 'number' +} as const + +export type invoice_callOrderByRelevanceFieldEnum = (typeof invoice_callOrderByRelevanceFieldEnum)[keyof typeof invoice_callOrderByRelevanceFieldEnum] + + +export const invoice_itemOrderByRelevanceFieldEnum = { + sku: 'sku', + product_name: 'product_name', + delivery_name: 'delivery_name' +} as const + +export type invoice_itemOrderByRelevanceFieldEnum = (typeof invoice_itemOrderByRelevanceFieldEnum)[keyof typeof invoice_itemOrderByRelevanceFieldEnum] + + +export const invoice_item_bkOrderByRelevanceFieldEnum = { + sku: 'sku', + product_name: 'product_name', + delivery_name: 'delivery_name' +} as const + +export type invoice_item_bkOrderByRelevanceFieldEnum = (typeof invoice_item_bkOrderByRelevanceFieldEnum)[keyof typeof invoice_item_bkOrderByRelevanceFieldEnum] + + +export const invoice_msg_templateOrderByRelevanceFieldEnum = { + name: 'name', + message: 'message' +} as const + +export type invoice_msg_templateOrderByRelevanceFieldEnum = (typeof invoice_msg_templateOrderByRelevanceFieldEnum)[keyof typeof invoice_msg_templateOrderByRelevanceFieldEnum] + + +export const invoice_taxOrderByRelevanceFieldEnum = { + tax_name: 'tax_name', + tax_description: 'tax_description' +} as const + +export type invoice_taxOrderByRelevanceFieldEnum = (typeof invoice_taxOrderByRelevanceFieldEnum)[keyof typeof invoice_taxOrderByRelevanceFieldEnum] + + +export const invoice_tax_bkOrderByRelevanceFieldEnum = { + tax_name: 'tax_name', + tax_description: 'tax_description' +} as const + +export type invoice_tax_bkOrderByRelevanceFieldEnum = (typeof invoice_tax_bkOrderByRelevanceFieldEnum)[keyof typeof invoice_tax_bkOrderByRelevanceFieldEnum] + + +export const accord_paiementOrderByRelevanceFieldEnum = { + raison_changement: 'raison_changement', + note: 'note', + date_create: 'date_create' +} as const + +export type accord_paiementOrderByRelevanceFieldEnum = (typeof accord_paiementOrderByRelevanceFieldEnum)[keyof typeof accord_paiementOrderByRelevanceFieldEnum] + + +export const autologinOrderByRelevanceFieldEnum = { + token: 'token', + date: 'date' +} as const + +export type autologinOrderByRelevanceFieldEnum = (typeof autologinOrderByRelevanceFieldEnum)[keyof typeof autologinOrderByRelevanceFieldEnum] + + +export const statementOrderByRelevanceFieldEnum = { + type: 'type', + reference: 'reference' +} as const + +export type statementOrderByRelevanceFieldEnum = (typeof statementOrderByRelevanceFieldEnum)[keyof typeof statementOrderByRelevanceFieldEnum] + + +export const intranet_docOrderByRelevanceFieldEnum = { + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv' +} as const + +export type intranet_docOrderByRelevanceFieldEnum = (typeof intranet_docOrderByRelevanceFieldEnum)[keyof typeof intranet_docOrderByRelevanceFieldEnum] + + +export const intranet_doc_pathsOrderByRelevanceFieldEnum = { + description: 'description' +} as const + +export type intranet_doc_pathsOrderByRelevanceFieldEnum = (typeof intranet_doc_pathsOrderByRelevanceFieldEnum)[keyof typeof intranet_doc_pathsOrderByRelevanceFieldEnum] + + +export const intranet_doc_replyOrderByRelevanceFieldEnum = { + msg: 'msg' +} as const + +export type intranet_doc_replyOrderByRelevanceFieldEnum = (typeof intranet_doc_replyOrderByRelevanceFieldEnum)[keyof typeof intranet_doc_replyOrderByRelevanceFieldEnum] + + +export const intranet_feedOrderByRelevanceFieldEnum = { + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv' +} as const + +export type intranet_feedOrderByRelevanceFieldEnum = (typeof intranet_feedOrderByRelevanceFieldEnum)[keyof typeof intranet_feedOrderByRelevanceFieldEnum] + + +export const intranet_feed_replyOrderByRelevanceFieldEnum = { + msg: 'msg' +} as const + +export type intranet_feed_replyOrderByRelevanceFieldEnum = (typeof intranet_feed_replyOrderByRelevanceFieldEnum)[keyof typeof intranet_feed_replyOrderByRelevanceFieldEnum] + + +export const intranet_techniciensOrderByRelevanceFieldEnum = { + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv' +} as const + +export type intranet_techniciensOrderByRelevanceFieldEnum = (typeof intranet_techniciensOrderByRelevanceFieldEnum)[keyof typeof intranet_techniciensOrderByRelevanceFieldEnum] + + +export const intranet_techniciens_replyOrderByRelevanceFieldEnum = { + msg: 'msg' +} as const + +export type intranet_techniciens_replyOrderByRelevanceFieldEnum = (typeof intranet_techniciens_replyOrderByRelevanceFieldEnum)[keyof typeof intranet_techniciens_replyOrderByRelevanceFieldEnum] + + +export const intranet_technoOrderByRelevanceFieldEnum = { + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv' +} as const + +export type intranet_technoOrderByRelevanceFieldEnum = (typeof intranet_technoOrderByRelevanceFieldEnum)[keyof typeof intranet_technoOrderByRelevanceFieldEnum] + + +export const intranet_techno_replyOrderByRelevanceFieldEnum = { + msg: 'msg' +} as const + +export type intranet_techno_replyOrderByRelevanceFieldEnum = (typeof intranet_techno_replyOrderByRelevanceFieldEnum)[keyof typeof intranet_techno_replyOrderByRelevanceFieldEnum] + + +export const fibreOrderByRelevanceFieldEnum = { + terrain: 'terrain', + rue: 'rue', + ville: 'ville', + zip: 'zip', + sn: 'sn', + info_connect: 'info_connect', + description: 'description' +} as const + +export type fibreOrderByRelevanceFieldEnum = (typeof fibreOrderByRelevanceFieldEnum)[keyof typeof fibreOrderByRelevanceFieldEnum] + + +export const fibre_oltOrderByRelevanceFieldEnum = { + ip: 'ip', + description: 'description' +} as const + +export type fibre_oltOrderByRelevanceFieldEnum = (typeof fibre_oltOrderByRelevanceFieldEnum)[keyof typeof fibre_oltOrderByRelevanceFieldEnum] + + +export const fibre_suiviOrderByRelevanceFieldEnum = { + customer_id: 'customer_id', + first_name: 'first_name', + last_name: 'last_name', + address: 'address', + city: 'city', + zip: 'zip', + phone: 'phone', + email: 'email', + note: 'note' +} as const + +export type fibre_suiviOrderByRelevanceFieldEnum = (typeof fibre_suiviOrderByRelevanceFieldEnum)[keyof typeof fibre_suiviOrderByRelevanceFieldEnum] + + +export const fibre_techOrderByRelevanceFieldEnum = { + description: 'description' +} as const + +export type fibre_techOrderByRelevanceFieldEnum = (typeof fibre_techOrderByRelevanceFieldEnum)[keyof typeof fibre_techOrderByRelevanceFieldEnum] + + +export const fibre_videotronOrderByRelevanceFieldEnum = { + date: 'date', + download: 'download', + upload: 'upload', + ethernet: 'ethernet', + interface: 'interface' +} as const + +export type fibre_videotronOrderByRelevanceFieldEnum = (typeof fibre_videotronOrderByRelevanceFieldEnum)[keyof typeof fibre_videotronOrderByRelevanceFieldEnum] + + +export const ganttOrderByRelevanceFieldEnum = { + name: 'name', + gantt: 'gantt' +} as const + +export type ganttOrderByRelevanceFieldEnum = (typeof ganttOrderByRelevanceFieldEnum)[keyof typeof ganttOrderByRelevanceFieldEnum] + + +export const gantt_templateOrderByRelevanceFieldEnum = { + name: 'name', + gantt: 'gantt' +} as const + +export type gantt_templateOrderByRelevanceFieldEnum = (typeof gantt_templateOrderByRelevanceFieldEnum)[keyof typeof gantt_templateOrderByRelevanceFieldEnum] + + +export const projectOrderByRelevanceFieldEnum = { + name: 'name', + status: 'status', + desc: 'desc', + manager_name: 'manager_name' +} as const + +export type projectOrderByRelevanceFieldEnum = (typeof projectOrderByRelevanceFieldEnum)[keyof typeof projectOrderByRelevanceFieldEnum] + + +export const project_cmdOrderByRelevanceFieldEnum = { + vendeur: 'vendeur', + no_cmd: 'no_cmd', + po: 'po' +} as const + +export type project_cmdOrderByRelevanceFieldEnum = (typeof project_cmdOrderByRelevanceFieldEnum)[keyof typeof project_cmdOrderByRelevanceFieldEnum] + + +export const project_cmd_itemOrderByRelevanceFieldEnum = { + desc: 'desc', + date_recu: 'date_recu', + comment: 'comment', + eta: 'eta' +} as const + +export type project_cmd_itemOrderByRelevanceFieldEnum = (typeof project_cmd_itemOrderByRelevanceFieldEnum)[keyof typeof project_cmd_itemOrderByRelevanceFieldEnum] + + +export const project_manager_catOrderByRelevanceFieldEnum = { + name: 'name', + color: 'color', + text_color: 'text_color' +} as const + +export type project_manager_catOrderByRelevanceFieldEnum = (typeof project_manager_catOrderByRelevanceFieldEnum)[keyof typeof project_manager_catOrderByRelevanceFieldEnum] + + +export const project_manager_checklistOrderByRelevanceFieldEnum = { + desc: 'desc' +} as const + +export type project_manager_checklistOrderByRelevanceFieldEnum = (typeof project_manager_checklistOrderByRelevanceFieldEnum)[keyof typeof project_manager_checklistOrderByRelevanceFieldEnum] + + +export const project_manager_commentOrderByRelevanceFieldEnum = { + comment: 'comment', + date: 'date', + unread: 'unread' +} as const + +export type project_manager_commentOrderByRelevanceFieldEnum = (typeof project_manager_commentOrderByRelevanceFieldEnum)[keyof typeof project_manager_commentOrderByRelevanceFieldEnum] + + +export const project_manager_taskOrderByRelevanceFieldEnum = { + titre: 'titre', + color: 'color', + text_color: 'text_color', + desc: 'desc', + ticket_id: 'ticket_id', + date_start: 'date_start', + date_deadline: 'date_deadline', + assign_staff: 'assign_staff', + date_creation: 'date_creation', + date_update: 'date_update' +} as const + +export type project_manager_taskOrderByRelevanceFieldEnum = (typeof project_manager_taskOrderByRelevanceFieldEnum)[keyof typeof project_manager_taskOrderByRelevanceFieldEnum] + + +export const serviceOrderByRelevanceFieldEnum = { + comment: 'comment', + hijack_desc: 'hijack_desc', + radius_user: 'radius_user', + radius_pwd: 'radius_pwd' +} as const + +export type serviceOrderByRelevanceFieldEnum = (typeof serviceOrderByRelevanceFieldEnum)[keyof typeof serviceOrderByRelevanceFieldEnum] + + +export const soumissionOrderByRelevanceFieldEnum = { + name: 'name', + po: 'po', + date: 'date', + materiel: 'materiel', + mensuel: 'mensuel', + text: 'text' +} as const + +export type soumissionOrderByRelevanceFieldEnum = (typeof soumissionOrderByRelevanceFieldEnum)[keyof typeof soumissionOrderByRelevanceFieldEnum] + + +export const soumission_templateOrderByRelevanceFieldEnum = { + name: 'name', + materiel: 'materiel', + mensuel: 'mensuel' +} as const + +export type soumission_templateOrderByRelevanceFieldEnum = (typeof soumission_templateOrderByRelevanceFieldEnum)[keyof typeof soumission_templateOrderByRelevanceFieldEnum] + + +export const staffOrderByRelevanceFieldEnum = { + username: 'username', + password: 'password', + vpn: 'vpn', + first_name: 'first_name', + last_name: 'last_name', + email: 'email', + ext: 'ext', + cell: 'cell', + gpin: 'gpin', + rights: 'rights', + date_embauche: 'date_embauche', + fete: 'fete', + supp: 'supp', + group_ad: 'group_ad', + dept_list: 'dept_list', + notification: 'notification', + compagnie_desjardins: 'compagnie_desjardins' +} as const + +export type staffOrderByRelevanceFieldEnum = (typeof staffOrderByRelevanceFieldEnum)[keyof typeof staffOrderByRelevanceFieldEnum] + + +export const staff_suppOrderByRelevanceFieldEnum = { + nom: 'nom', + staff_ids: 'staff_ids' +} as const + +export type staff_suppOrderByRelevanceFieldEnum = (typeof staff_suppOrderByRelevanceFieldEnum)[keyof typeof staff_suppOrderByRelevanceFieldEnum] + + +export const tele_carteOrderByRelevanceFieldEnum = { + channels: 'channels' +} as const + +export type tele_carteOrderByRelevanceFieldEnum = (typeof tele_carteOrderByRelevanceFieldEnum)[keyof typeof tele_carteOrderByRelevanceFieldEnum] + + +export const tele_channelOrderByRelevanceFieldEnum = { + proprio: 'proprio', + poste: 'poste', + note: 'note', + uptele_code: 'uptele_code', + abbr: 'abbr', + ccsa_desc: 'ccsa_desc' +} as const + +export type tele_channelOrderByRelevanceFieldEnum = (typeof tele_channelOrderByRelevanceFieldEnum)[keyof typeof tele_channelOrderByRelevanceFieldEnum] + + +export const tele_groupeOrderByRelevanceFieldEnum = { + nom: 'nom', + small_desc: 'small_desc' +} as const + +export type tele_groupeOrderByRelevanceFieldEnum = (typeof tele_groupeOrderByRelevanceFieldEnum)[keyof typeof tele_groupeOrderByRelevanceFieldEnum] + + +export const tele_networkOrderByRelevanceFieldEnum = { + network_name: 'network_name', + fournisseur: 'fournisseur' +} as const + +export type tele_networkOrderByRelevanceFieldEnum = (typeof tele_networkOrderByRelevanceFieldEnum)[keyof typeof tele_networkOrderByRelevanceFieldEnum] + + +export const tele_packOrderByRelevanceFieldEnum = { + channels: 'channels', + ccsa_desc: 'ccsa_desc', + bell_name: 'bell_name' +} as const + +export type tele_packOrderByRelevanceFieldEnum = (typeof tele_packOrderByRelevanceFieldEnum)[keyof typeof tele_packOrderByRelevanceFieldEnum] + + +export const tele_sub_archiveOrderByRelevanceFieldEnum = { + date_archive: 'date_archive', + subs: 'subs' +} as const + +export type tele_sub_archiveOrderByRelevanceFieldEnum = (typeof tele_sub_archiveOrderByRelevanceFieldEnum)[keyof typeof tele_sub_archiveOrderByRelevanceFieldEnum] + + +export const tele_wizOrderByRelevanceFieldEnum = { + fthem: 'fthem' +} as const + +export type tele_wizOrderByRelevanceFieldEnum = (typeof tele_wizOrderByRelevanceFieldEnum)[keyof typeof tele_wizOrderByRelevanceFieldEnum] + + +export const tv_macOrderByRelevanceFieldEnum = { + mac: 'mac' +} as const + +export type tv_macOrderByRelevanceFieldEnum = (typeof tv_macOrderByRelevanceFieldEnum)[keyof typeof tv_macOrderByRelevanceFieldEnum] + + +export const ticketOrderByRelevanceFieldEnum = { + subject: 'subject', + email_from: 'email_from', + status: 'status', + due_time: 'due_time', + date_closed: 'date_closed', + lock_name: 'lock_name', + wizard: 'wizard', + wizard_fibre: 'wizard_fibre', + followed_by: 'followed_by', + participant: 'participant' +} as const + +export type ticketOrderByRelevanceFieldEnum = (typeof ticketOrderByRelevanceFieldEnum)[keyof typeof ticketOrderByRelevanceFieldEnum] + + +export const ticket_congeOrderByRelevanceFieldEnum = { + name: 'name', + desc: 'desc' +} as const + +export type ticket_congeOrderByRelevanceFieldEnum = (typeof ticket_congeOrderByRelevanceFieldEnum)[keyof typeof ticket_congeOrderByRelevanceFieldEnum] + + +export const ticket_deptOrderByRelevanceFieldEnum = { + name: 'name', + email: 'email', + default_follow: 'default_follow' +} as const + +export type ticket_deptOrderByRelevanceFieldEnum = (typeof ticket_deptOrderByRelevanceFieldEnum)[keyof typeof ticket_deptOrderByRelevanceFieldEnum] + + +export const ticket_msgOrderByRelevanceFieldEnum = { + msg: 'msg', + unread_csv: 'unread_csv' +} as const + +export type ticket_msgOrderByRelevanceFieldEnum = (typeof ticket_msgOrderByRelevanceFieldEnum)[keyof typeof ticket_msgOrderByRelevanceFieldEnum] + + +export const ticket_templateOrderByRelevanceFieldEnum = { + name: 'name', + template: 'template' +} as const + +export type ticket_templateOrderByRelevanceFieldEnum = (typeof ticket_templateOrderByRelevanceFieldEnum)[keyof typeof ticket_templateOrderByRelevanceFieldEnum] + + +export const tmp_vpnOrderByRelevanceFieldEnum = { + username: 'username', + password: 'password' +} as const + +export type tmp_vpnOrderByRelevanceFieldEnum = (typeof tmp_vpnOrderByRelevanceFieldEnum)[keyof typeof tmp_vpnOrderByRelevanceFieldEnum] + + +export const bon_travailOrderByRelevanceFieldEnum = { + heure_arrive_t1: 'heure_arrive_t1', + heure_depart_t1: 'heure_depart_t1', + heure_arrive_t2: 'heure_arrive_t2', + heure_depart_t2: 'heure_depart_t2', + note: 'note' +} as const + +export type bon_travailOrderByRelevanceFieldEnum = (typeof bon_travailOrderByRelevanceFieldEnum)[keyof typeof bon_travailOrderByRelevanceFieldEnum] + + +export const bon_travail_itemOrderByRelevanceFieldEnum = { + desc: 'desc' +} as const + +export type bon_travail_itemOrderByRelevanceFieldEnum = (typeof bon_travail_itemOrderByRelevanceFieldEnum)[keyof typeof bon_travail_itemOrderByRelevanceFieldEnum] + + +export const checklist_relaisOrderByRelevanceFieldEnum = { + site_name: 'site_name', + equipement: 'equipement', + connecteur: 'connecteur', + grounding: 'grounding', + surge_lightning: 'surge_lightning', + switch_poe: 'switch_poe', + switch_giga_shield: 'switch_giga_shield', + batterie: 'batterie', + solidity: 'solidity', + redondance: 'redondance', + antenne_58_360: 'antenne_58_360', + antenne_24_360: 'antenne_24_360', + rspro_maj: 'rspro_maj', + boite: 'boite', + cable: 'cable', + staros_ubnt: 'staros_ubnt', + autre: 'autre' +} as const + +export type checklist_relaisOrderByRelevanceFieldEnum = (typeof checklist_relaisOrderByRelevanceFieldEnum)[keyof typeof checklist_relaisOrderByRelevanceFieldEnum] + + +export const conferenceOrderByRelevanceFieldEnum = { + time_start: 'time_start', + time_end: 'time_end', + name: 'name', + description: 'description', + participant: 'participant' +} as const + +export type conferenceOrderByRelevanceFieldEnum = (typeof conferenceOrderByRelevanceFieldEnum)[keyof typeof conferenceOrderByRelevanceFieldEnum] + + +export const conference_roomOrderByRelevanceFieldEnum = { + name: 'name', + location: 'location', + description: 'description' +} as const + +export type conference_roomOrderByRelevanceFieldEnum = (typeof conference_roomOrderByRelevanceFieldEnum)[keyof typeof conference_roomOrderByRelevanceFieldEnum] + + +export const fournisseurOrderByRelevanceFieldEnum = { + nom: 'nom', + email: 'email' +} as const + +export type fournisseurOrderByRelevanceFieldEnum = (typeof fournisseurOrderByRelevanceFieldEnum)[keyof typeof fournisseurOrderByRelevanceFieldEnum] + + +export const notice_guiOrderByRelevanceFieldEnum = { + message: 'message', + timestamp: 'timestamp' +} as const + +export type notice_guiOrderByRelevanceFieldEnum = (typeof notice_guiOrderByRelevanceFieldEnum)[keyof typeof notice_guiOrderByRelevanceFieldEnum] + + +export const promoOrderByRelevanceFieldEnum = { + name: 'name', + desc: 'desc' +} as const + +export type promoOrderByRelevanceFieldEnum = (typeof promoOrderByRelevanceFieldEnum)[keyof typeof promoOrderByRelevanceFieldEnum] + + +export const stbsOrderByRelevanceFieldEnum = { + mac: 'mac', + sn: 'sn', + targo: 'targo' +} as const + +export type stbsOrderByRelevanceFieldEnum = (typeof stbsOrderByRelevanceFieldEnum)[keyof typeof stbsOrderByRelevanceFieldEnum] + + +export const debugOrderByRelevanceFieldEnum = { + autor: 'autor', + url: 'url', + desc: 'desc', + note4autor: 'note4autor', + note4dev: 'note4dev', + status: 'status' +} as const + +export type debugOrderByRelevanceFieldEnum = (typeof debugOrderByRelevanceFieldEnum)[keyof typeof debugOrderByRelevanceFieldEnum] + + +export const carte_tempsOrderByRelevanceFieldEnum = { + comment: 'comment', + note_int: 'note_int', + appr: 'appr', + appr_dir: 'appr_dir' +} as const + +export type carte_tempsOrderByRelevanceFieldEnum = (typeof carte_tempsOrderByRelevanceFieldEnum)[keyof typeof carte_tempsOrderByRelevanceFieldEnum] + + +export const carte_temps_periodeOrderByRelevanceFieldEnum = { + debut: 'debut', + fin: 'fin', + paid: 'paid' +} as const + +export type carte_temps_periodeOrderByRelevanceFieldEnum = (typeof carte_temps_periodeOrderByRelevanceFieldEnum)[keyof typeof carte_temps_periodeOrderByRelevanceFieldEnum] + + +export const banque_heure_staffOrderByRelevanceFieldEnum = { + sunday: 'sunday' +} as const + +export type banque_heure_staffOrderByRelevanceFieldEnum = (typeof banque_heure_staffOrderByRelevanceFieldEnum)[keyof typeof banque_heure_staffOrderByRelevanceFieldEnum] + + +export const hour_bankOrderByRelevanceFieldEnum = { + note: 'note' +} as const + +export type hour_bankOrderByRelevanceFieldEnum = (typeof hour_bankOrderByRelevanceFieldEnum)[keyof typeof hour_bankOrderByRelevanceFieldEnum] + + +export const hour_bank_detailOrderByRelevanceFieldEnum = { + working_order: 'working_order', + detail: 'detail' +} as const + +export type hour_bank_detailOrderByRelevanceFieldEnum = (typeof hour_bank_detailOrderByRelevanceFieldEnum)[keyof typeof hour_bank_detailOrderByRelevanceFieldEnum] + + +export const testOrderByRelevanceFieldEnum = { + text: 'text' +} as const + +export type testOrderByRelevanceFieldEnum = (typeof testOrderByRelevanceFieldEnum)[keyof typeof testOrderByRelevanceFieldEnum] + + +export const account_memo_templateOrderByRelevanceFieldEnum = { + name: 'name', + color: 'color', + bcolor: 'bcolor', + border: 'border' +} as const + +export type account_memo_templateOrderByRelevanceFieldEnum = (typeof account_memo_templateOrderByRelevanceFieldEnum)[keyof typeof account_memo_templateOrderByRelevanceFieldEnum] + + +export const notesOrderByRelevanceFieldEnum = { + notes: 'notes' +} as const + +export type notesOrderByRelevanceFieldEnum = (typeof notesOrderByRelevanceFieldEnum)[keyof typeof notesOrderByRelevanceFieldEnum] + + +export const emailOrderByRelevanceFieldEnum = { + email: 'email', + password: 'password' +} as const + +export type emailOrderByRelevanceFieldEnum = (typeof emailOrderByRelevanceFieldEnum)[keyof typeof emailOrderByRelevanceFieldEnum] + + +export const client_pwdOrderByRelevanceFieldEnum = { + uid: 'uid' +} as const + +export type client_pwdOrderByRelevanceFieldEnum = (typeof client_pwdOrderByRelevanceFieldEnum)[keyof typeof client_pwdOrderByRelevanceFieldEnum] + + +export const account_profileOrderByRelevanceFieldEnum = { + profile_id: 'profile_id', + address_id: 'address_id', + card_id: 'card_id', + token: 'token', + initial_transaction: 'initial_transaction' +} as const + +export type account_profileOrderByRelevanceFieldEnum = (typeof account_profileOrderByRelevanceFieldEnum)[keyof typeof account_profileOrderByRelevanceFieldEnum] + + +export const deposit_slipOrderByRelevanceFieldEnum = { + customer_id: 'customer_id', + name: 'name', + type: 'type', + desc: 'desc' +} as const + +export type deposit_slipOrderByRelevanceFieldEnum = (typeof deposit_slipOrderByRelevanceFieldEnum)[keyof typeof deposit_slipOrderByRelevanceFieldEnum] + + +export const account_suspensionOrderByRelevanceFieldEnum = { + note: 'note' +} as const + +export type account_suspensionOrderByRelevanceFieldEnum = (typeof account_suspensionOrderByRelevanceFieldEnum)[keyof typeof account_suspensionOrderByRelevanceFieldEnum] + + + +/** + * Field references + */ + + +/** + * Reference to a field of type 'BigInt' + */ +export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'> + + + +/** + * Reference to a field of type 'String' + */ +export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> + + + +/** + * 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 'Decimal' + */ +export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'> + + + +/** + * Reference to a field of type 'Float' + */ +export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> + + + +/** + * Reference to a field of type 'phone_addr_enhanced_capable' + */ +export type Enumphone_addr_enhanced_capableFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'phone_addr_enhanced_capable'> + + + +/** + * Reference to a field of type 'DateTime' + */ +export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> + + +/** + * Batch Payload for updateMany & deleteMany & createMany + */ +export type BatchPayload = { + count: number +} + +export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs> +export type DefaultPrismaClient = PrismaClient +export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' +export type PrismaClientOptions = ({ + /** + * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`. + */ + adapter: runtime.SqlDriverAdapterFactory + accelerateUrl?: never +} | { + /** + * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database. + */ + accelerateUrl: string + adapter?: never +}) & { + /** + * @default "colorless" + */ + errorFormat?: ErrorFormat + /** + * @example + * ``` + * // Shorthand for `emit: 'stdout'` + * log: ['query', 'info', 'warn', 'error'] + * + * // Emit as events only + * log: [ + * { emit: 'event', level: 'query' }, + * { emit: 'event', level: 'info' }, + * { emit: 'event', level: 'warn' } + * { emit: 'event', level: 'error' } + * ] + * + * / Emit as events and log to stdout + * og: [ + * { emit: 'stdout', level: 'query' }, + * { emit: 'stdout', level: 'info' }, + * { emit: 'stdout', level: 'warn' } + * { emit: 'stdout', level: 'error' } + * + * ``` + * Read more in our [docs](https://pris.ly/d/logging). + */ + log?: (LogLevel | LogDefinition)[] + /** + * The default values for transactionOptions + * maxWait ?= 2000 + * timeout ?= 5000 + */ + transactionOptions?: { + maxWait?: number + timeout?: number + isolationLevel?: TransactionIsolationLevel + } + /** + * Global configuration for omitting model fields by default. + * + * @example + * ``` + * const prisma = new PrismaClient({ + * omit: { + * user: { + * password: true + * } + * } + * }) + * ``` + */ + omit?: GlobalOmitConfig + /** + * SQL commenter plugins that add metadata to SQL queries as comments. + * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/ + * + * @example + * ``` + * const prisma = new PrismaClient({ + * adapter, + * comments: [ + * traceContext(), + * queryInsights(), + * ], + * }) + * ``` + */ + comments?: runtime.SqlCommenterPlugin[] +} +export type GlobalOmitConfig = { + account?: Prisma.accountOmit + account_group?: Prisma.account_groupOmit + account_memo?: Prisma.account_memoOmit + compta_comptes?: Prisma.compta_comptesOmit + compta_comptes_soldes?: Prisma.compta_comptes_soldesOmit + compta_journal_ecriture?: Prisma.compta_journal_ecritureOmit + compta_journal_ecriture_bk?: Prisma.compta_journal_ecriture_bkOmit + compta_journal_ecriture_detail?: Prisma.compta_journal_ecriture_detailOmit + compta_journal_ecriture_detail_bk?: Prisma.compta_journal_ecriture_detail_bkOmit + compta_periode?: Prisma.compta_periodeOmit + compta_ppa_file_id?: Prisma.compta_ppa_file_idOmit + compta_setup?: Prisma.compta_setupOmit + credit_code?: Prisma.credit_codeOmit + tax?: Prisma.taxOmit + tax_group?: Prisma.tax_groupOmit + td_payable?: Prisma.td_payableOmit + conso?: Prisma.consoOmit + conso_archive?: Prisma.conso_archiveOmit + conso_avis?: Prisma.conso_avisOmit + conso_radius?: Prisma.conso_radiusOmit + conso_radius_daily?: Prisma.conso_radius_dailyOmit + conso_radius_daily2?: Prisma.conso_radius_daily2Omit + conso_radius_hourly?: Prisma.conso_radius_hourlyOmit + conso_radius_monthly?: Prisma.conso_radius_monthlyOmit + conso_radius_monthly2?: Prisma.conso_radius_monthly2Omit + delivery?: Prisma.deliveryOmit + delivery_history?: Prisma.delivery_historyOmit + device?: Prisma.deviceOmit + device_archive?: Prisma.device_archiveOmit + device_attr?: Prisma.device_attrOmit + device_link?: Prisma.device_linkOmit + device_template?: Prisma.device_templateOmit + device_template_attr?: Prisma.device_template_attrOmit + product?: Prisma.productOmit + product_cat?: Prisma.product_catOmit + product_format?: Prisma.product_formatOmit + product_fournisseur?: Prisma.product_fournisseurOmit + product_profile?: Prisma.product_profileOmit + product_speciaux?: Prisma.product_speciauxOmit + product_translate?: Prisma.product_translateOmit + product_zone?: Prisma.product_zoneOmit + product_zone_placemarks?: Prisma.product_zone_placemarksOmit + inventaire_log?: Prisma.inventaire_logOmit + phone?: Prisma.phoneOmit + phone_addr?: Prisma.phone_addrOmit + phone_comwave?: Prisma.phone_comwaveOmit + phone_note?: Prisma.phone_noteOmit + phone_provisioning?: Prisma.phone_provisioningOmit + phonecall_channel?: Prisma.phonecall_channelOmit + phonecall_log_2025?: Prisma.phonecall_log_2025Omit + phonecall_log_2026?: Prisma.phonecall_log_2026Omit + voicemeup?: Prisma.voicemeupOmit + pbx?: Prisma.pbxOmit + pbx_app?: Prisma.pbx_appOmit + pbx_com?: Prisma.pbx_comOmit + pbx_com_wl?: Prisma.pbx_com_wlOmit + pbx_fax?: Prisma.pbx_faxOmit + payment?: Prisma.paymentOmit + payment_item?: Prisma.payment_itemOmit + passwords_manager?: Prisma.passwords_managerOmit + passwords_manager_cat?: Prisma.passwords_manager_catOmit + passwords_manager_group?: Prisma.passwords_manager_groupOmit + notification?: Prisma.notificationOmit + notification_payload?: Prisma.notification_payloadOmit + municipalite?: Prisma.municipaliteOmit + sommaire_porte?: Prisma.sommaire_porteOmit + state?: Prisma.stateOmit + licence?: Prisma.licenceOmit + licence_key?: Prisma.licence_keyOmit + ip?: Prisma.ipOmit + ip_admin?: Prisma.ip_adminOmit + ip_history?: Prisma.ip_historyOmit + ip_pp?: Prisma.ip_ppOmit + ip_static?: Prisma.ip_staticOmit + ip_targo?: Prisma.ip_targoOmit + invoice?: Prisma.invoiceOmit + invoice_bk?: Prisma.invoice_bkOmit + invoice_call?: Prisma.invoice_callOmit + invoice_item?: Prisma.invoice_itemOmit + invoice_item_bk?: Prisma.invoice_item_bkOmit + invoice_msg_template?: Prisma.invoice_msg_templateOmit + invoice_tax?: Prisma.invoice_taxOmit + invoice_tax_bk?: Prisma.invoice_tax_bkOmit + accord_paiement?: Prisma.accord_paiementOmit + autologin?: Prisma.autologinOmit + statement?: Prisma.statementOmit + intranet_doc?: Prisma.intranet_docOmit + intranet_doc_paths?: Prisma.intranet_doc_pathsOmit + intranet_doc_reply?: Prisma.intranet_doc_replyOmit + intranet_feed?: Prisma.intranet_feedOmit + intranet_feed_reply?: Prisma.intranet_feed_replyOmit + intranet_techniciens?: Prisma.intranet_techniciensOmit + intranet_techniciens_reply?: Prisma.intranet_techniciens_replyOmit + intranet_techno?: Prisma.intranet_technoOmit + intranet_techno_reply?: Prisma.intranet_techno_replyOmit + fibre?: Prisma.fibreOmit + fibre_olt?: Prisma.fibre_oltOmit + fibre_service_port?: Prisma.fibre_service_portOmit + fibre_suivi?: Prisma.fibre_suiviOmit + fibre_tech?: Prisma.fibre_techOmit + fibre_videotron?: Prisma.fibre_videotronOmit + gantt?: Prisma.ganttOmit + gantt_template?: Prisma.gantt_templateOmit + project?: Prisma.projectOmit + project_cmd?: Prisma.project_cmdOmit + project_cmd_item?: Prisma.project_cmd_itemOmit + project_manager_cat?: Prisma.project_manager_catOmit + project_manager_checklist?: Prisma.project_manager_checklistOmit + project_manager_comment?: Prisma.project_manager_commentOmit + project_manager_task?: Prisma.project_manager_taskOmit + service?: Prisma.serviceOmit + service_snapshot?: Prisma.service_snapshotOmit + soumission?: Prisma.soumissionOmit + soumission_template?: Prisma.soumission_templateOmit + staff?: Prisma.staffOmit + staff_dispo?: Prisma.staff_dispoOmit + staff_supp?: Prisma.staff_suppOmit + tele_carte?: Prisma.tele_carteOmit + tele_channel?: Prisma.tele_channelOmit + tele_groupe?: Prisma.tele_groupeOmit + tele_network?: Prisma.tele_networkOmit + tele_pack?: Prisma.tele_packOmit + tele_penetration?: Prisma.tele_penetrationOmit + tele_sub_archive?: Prisma.tele_sub_archiveOmit + tele_wiz?: Prisma.tele_wizOmit + tv_mac?: Prisma.tv_macOmit + ticket?: Prisma.ticketOmit + ticket_calendar_lock?: Prisma.ticket_calendar_lockOmit + ticket_calendar_staff_lock?: Prisma.ticket_calendar_staff_lockOmit + ticket_conge?: Prisma.ticket_congeOmit + ticket_dept?: Prisma.ticket_deptOmit + ticket_msg?: Prisma.ticket_msgOmit + ticket_template?: Prisma.ticket_templateOmit + tmp_vpn?: Prisma.tmp_vpnOmit + bon_travail?: Prisma.bon_travailOmit + bon_travail_item?: Prisma.bon_travail_itemOmit + checklist_relais?: Prisma.checklist_relaisOmit + conference?: Prisma.conferenceOmit + conference_room?: Prisma.conference_roomOmit + fournisseur?: Prisma.fournisseurOmit + notice_gui?: Prisma.notice_guiOmit + promo?: Prisma.promoOmit + stbs?: Prisma.stbsOmit + tech_dispo?: Prisma.tech_dispoOmit + debug?: Prisma.debugOmit + carte_temps?: Prisma.carte_tempsOmit + carte_temps_periode?: Prisma.carte_temps_periodeOmit + banque_heure_staff?: Prisma.banque_heure_staffOmit + hour_bank?: Prisma.hour_bankOmit + hour_bank_detail?: Prisma.hour_bank_detailOmit + test?: Prisma.testOmit + account_memo_template?: Prisma.account_memo_templateOmit + notes?: Prisma.notesOmit + email?: Prisma.emailOmit + client_pwd?: Prisma.client_pwdOmit + account_profile?: Prisma.account_profileOmit + deposit_slip?: Prisma.deposit_slipOmit + account_suspension?: Prisma.account_suspensionOmit +} + +/* 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/prisma/generated/mariadb/internal/prismaNamespaceBrowser.ts b/prisma/generated/mariadb/internal/prismaNamespaceBrowser.ts new file mode 100644 index 0000000..c946806 --- /dev/null +++ b/prisma/generated/mariadb/internal/prismaNamespaceBrowser.ts @@ -0,0 +1,3906 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * ๐Ÿ›‘ Under no circumstances should you import this file directly! ๐Ÿ›‘ + * + * All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * model files in the `model` directory! + */ + +import * as runtime from "@prisma/client/runtime/index-browser" + +export type * from '../models' +export type * from './prismaNamespace' + +export const Decimal = runtime.Decimal + + +export const NullTypes = { + DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), + JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), + AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), +} +/** + * Helper for filtering JSON entries that have `null` on the database (empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const DbNull = runtime.DbNull + +/** + * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const JsonNull = runtime.JsonNull + +/** + * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const AnyNull = runtime.AnyNull + + +export const ModelName = { + account: 'account', + account_group: 'account_group', + account_memo: 'account_memo', + compta_comptes: 'compta_comptes', + compta_comptes_soldes: 'compta_comptes_soldes', + compta_journal_ecriture: 'compta_journal_ecriture', + compta_journal_ecriture_bk: 'compta_journal_ecriture_bk', + compta_journal_ecriture_detail: 'compta_journal_ecriture_detail', + compta_journal_ecriture_detail_bk: 'compta_journal_ecriture_detail_bk', + compta_periode: 'compta_periode', + compta_ppa_file_id: 'compta_ppa_file_id', + compta_setup: 'compta_setup', + credit_code: 'credit_code', + tax: 'tax', + tax_group: 'tax_group', + td_payable: 'td_payable', + conso: 'conso', + conso_archive: 'conso_archive', + conso_avis: 'conso_avis', + conso_radius: 'conso_radius', + conso_radius_daily: 'conso_radius_daily', + conso_radius_daily2: 'conso_radius_daily2', + conso_radius_hourly: 'conso_radius_hourly', + conso_radius_monthly: 'conso_radius_monthly', + conso_radius_monthly2: 'conso_radius_monthly2', + delivery: 'delivery', + delivery_history: 'delivery_history', + device: 'device', + device_archive: 'device_archive', + device_attr: 'device_attr', + device_link: 'device_link', + device_template: 'device_template', + device_template_attr: 'device_template_attr', + product: 'product', + product_cat: 'product_cat', + product_format: 'product_format', + product_fournisseur: 'product_fournisseur', + product_profile: 'product_profile', + product_speciaux: 'product_speciaux', + product_translate: 'product_translate', + product_zone: 'product_zone', + product_zone_placemarks: 'product_zone_placemarks', + inventaire_log: 'inventaire_log', + phone: 'phone', + phone_addr: 'phone_addr', + phone_comwave: 'phone_comwave', + phone_note: 'phone_note', + phone_provisioning: 'phone_provisioning', + phonecall_channel: 'phonecall_channel', + phonecall_log_2025: 'phonecall_log_2025', + phonecall_log_2026: 'phonecall_log_2026', + voicemeup: 'voicemeup', + pbx: 'pbx', + pbx_app: 'pbx_app', + pbx_com: 'pbx_com', + pbx_com_wl: 'pbx_com_wl', + pbx_fax: 'pbx_fax', + payment: 'payment', + payment_item: 'payment_item', + passwords_manager: 'passwords_manager', + passwords_manager_cat: 'passwords_manager_cat', + passwords_manager_group: 'passwords_manager_group', + notification: 'notification', + notification_payload: 'notification_payload', + municipalite: 'municipalite', + sommaire_porte: 'sommaire_porte', + state: 'state', + licence: 'licence', + licence_key: 'licence_key', + ip: 'ip', + ip_admin: 'ip_admin', + ip_history: 'ip_history', + ip_pp: 'ip_pp', + ip_static: 'ip_static', + ip_targo: 'ip_targo', + invoice: 'invoice', + invoice_bk: 'invoice_bk', + invoice_call: 'invoice_call', + invoice_item: 'invoice_item', + invoice_item_bk: 'invoice_item_bk', + invoice_msg_template: 'invoice_msg_template', + invoice_tax: 'invoice_tax', + invoice_tax_bk: 'invoice_tax_bk', + accord_paiement: 'accord_paiement', + autologin: 'autologin', + statement: 'statement', + intranet_doc: 'intranet_doc', + intranet_doc_paths: 'intranet_doc_paths', + intranet_doc_reply: 'intranet_doc_reply', + intranet_feed: 'intranet_feed', + intranet_feed_reply: 'intranet_feed_reply', + intranet_techniciens: 'intranet_techniciens', + intranet_techniciens_reply: 'intranet_techniciens_reply', + intranet_techno: 'intranet_techno', + intranet_techno_reply: 'intranet_techno_reply', + fibre: 'fibre', + fibre_olt: 'fibre_olt', + fibre_service_port: 'fibre_service_port', + fibre_suivi: 'fibre_suivi', + fibre_tech: 'fibre_tech', + fibre_videotron: 'fibre_videotron', + gantt: 'gantt', + gantt_template: 'gantt_template', + project: 'project', + project_cmd: 'project_cmd', + project_cmd_item: 'project_cmd_item', + project_manager_cat: 'project_manager_cat', + project_manager_checklist: 'project_manager_checklist', + project_manager_comment: 'project_manager_comment', + project_manager_task: 'project_manager_task', + service: 'service', + service_snapshot: 'service_snapshot', + soumission: 'soumission', + soumission_template: 'soumission_template', + staff: 'staff', + staff_dispo: 'staff_dispo', + staff_supp: 'staff_supp', + tele_carte: 'tele_carte', + tele_channel: 'tele_channel', + tele_groupe: 'tele_groupe', + tele_network: 'tele_network', + tele_pack: 'tele_pack', + tele_penetration: 'tele_penetration', + tele_sub_archive: 'tele_sub_archive', + tele_wiz: 'tele_wiz', + tv_mac: 'tv_mac', + ticket: 'ticket', + ticket_calendar_lock: 'ticket_calendar_lock', + ticket_calendar_staff_lock: 'ticket_calendar_staff_lock', + ticket_conge: 'ticket_conge', + ticket_dept: 'ticket_dept', + ticket_msg: 'ticket_msg', + ticket_template: 'ticket_template', + tmp_vpn: 'tmp_vpn', + bon_travail: 'bon_travail', + bon_travail_item: 'bon_travail_item', + checklist_relais: 'checklist_relais', + conference: 'conference', + conference_room: 'conference_room', + fournisseur: 'fournisseur', + notice_gui: 'notice_gui', + promo: 'promo', + stbs: 'stbs', + tech_dispo: 'tech_dispo', + debug: 'debug', + carte_temps: 'carte_temps', + carte_temps_periode: 'carte_temps_periode', + banque_heure_staff: 'banque_heure_staff', + hour_bank: 'hour_bank', + hour_bank_detail: 'hour_bank_detail', + test: 'test', + account_memo_template: 'account_memo_template', + notes: 'notes', + email: 'email', + client_pwd: 'client_pwd', + account_profile: 'account_profile', + deposit_slip: 'deposit_slip', + account_suspension: 'account_suspension' +} as const + +export type ModelName = (typeof ModelName)[keyof typeof ModelName] + +/* + * Enums + */ + +export const TransactionIsolationLevel = runtime.makeStrictEnum({ + ReadUncommitted: 'ReadUncommitted', + ReadCommitted: 'ReadCommitted', + RepeatableRead: 'RepeatableRead', + Serializable: 'Serializable' +} as const) + +export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + + +export const AccountScalarFieldEnum = { + id: 'id', + customer_id: 'customer_id', + date_orig: 'date_orig', + date_last: 'date_last', + date_expire: 'date_expire', + language_id: 'language_id', + country_id: 'country_id', + currency_id: 'currency_id', + username: 'username', + password: 'password', + group_id: 'group_id', + misc: 'misc', + status: 'status', + first_name: 'first_name', + middle_name: 'middle_name', + last_name: 'last_name', + mandataire: 'mandataire', + title: 'title', + email: 'email', + email_autre: 'email_autre', + company: 'company', + contact: 'contact', + address1: 'address1', + address2: 'address2', + city: 'city', + state: 'state', + zip: 'zip', + tel_home: 'tel_home', + tel_office: 'tel_office', + tel_office_ext: 'tel_office_ext', + cell: 'cell', + fax: 'fax', + invoice_delivery: 'invoice_delivery', + land_owner: 'land_owner', + frais: 'frais', + ppa: 'ppa', + ppa_all_invoice: 'ppa_all_invoice', + ppa_name: 'ppa_name', + ppa_code: 'ppa_code', + ppa_branch: 'ppa_branch', + ppa_account: 'ppa_account', + ppa_amount: 'ppa_amount', + ppa_amount_buffer: 'ppa_amount_buffer', + ppa_all_tmp: 'ppa_all_tmp', + ppa_fixed: 'ppa_fixed', + commercial: 'commercial', + vip: 'vip', + tax_group: 'tax_group', + data_check: 'data_check', + created_by: 'created_by', + notes_client: 'notes_client', + keyword: 'keyword', + terminate_reason: 'terminate_reason', + terminate_cie: 'terminate_cie', + terminate_note: 'terminate_note', + terminate_date: 'terminate_date', + call: 'call', + pub: 'pub', + portal_client_log: 'portal_client_log', + mauvais_payeur: 'mauvais_payeur', + renew_phone: 'renew_phone', + ppa_cc: 'ppa_cc', + stripe_id: 'stripe_id' +} as const + +export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] + + +export const Account_groupScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + group_name: 'group_name' +} as const + +export type Account_groupScalarFieldEnum = (typeof Account_groupScalarFieldEnum)[keyof typeof Account_groupScalarFieldEnum] + + +export const Account_memoScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + last_updated: 'last_updated', + staff_id: 'staff_id', + account_id: 'account_id', + memo: 'memo', + color: 'color', + bcolor: 'bcolor', + border: 'border' +} as const + +export type Account_memoScalarFieldEnum = (typeof Account_memoScalarFieldEnum)[keyof typeof Account_memoScalarFieldEnum] + + +export const Compta_comptesScalarFieldEnum = { + id: 'id', + category: 'category', + num_compte: 'num_compte', + desc: 'desc' +} as const + +export type Compta_comptesScalarFieldEnum = (typeof Compta_comptesScalarFieldEnum)[keyof typeof Compta_comptesScalarFieldEnum] + + +export const Compta_comptes_soldesScalarFieldEnum = { + id: 'id', + num_compte: 'num_compte', + year: 'year', + amount: 'amount', + comment: 'comment', + type: 'type' +} as const + +export type Compta_comptes_soldesScalarFieldEnum = (typeof Compta_comptes_soldesScalarFieldEnum)[keyof typeof Compta_comptes_soldesScalarFieldEnum] + + +export const Compta_journal_ecritureScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + type: 'type', + num: 'num', + customer_id: 'customer_id', + full_name: 'full_name', + desc: 'desc', + mo: 'mo', + em: 'em' +} as const + +export type Compta_journal_ecritureScalarFieldEnum = (typeof Compta_journal_ecritureScalarFieldEnum)[keyof typeof Compta_journal_ecritureScalarFieldEnum] + + +export const Compta_journal_ecriture_bkScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + type: 'type', + num: 'num', + customer_id: 'customer_id', + full_name: 'full_name', + desc: 'desc', + mo: 'mo', + em: 'em' +} as const + +export type Compta_journal_ecriture_bkScalarFieldEnum = (typeof Compta_journal_ecriture_bkScalarFieldEnum)[keyof typeof Compta_journal_ecriture_bkScalarFieldEnum] + + +export const Compta_journal_ecriture_detailScalarFieldEnum = { + id: 'id', + journal_id: 'journal_id', + num_compte: 'num_compte', + amount: 'amount', + action: 'action' +} as const + +export type Compta_journal_ecriture_detailScalarFieldEnum = (typeof Compta_journal_ecriture_detailScalarFieldEnum)[keyof typeof Compta_journal_ecriture_detailScalarFieldEnum] + + +export const Compta_journal_ecriture_detail_bkScalarFieldEnum = { + id: 'id', + journal_id: 'journal_id', + num_compte: 'num_compte', + amount: 'amount', + action: 'action' +} as const + +export type Compta_journal_ecriture_detail_bkScalarFieldEnum = (typeof Compta_journal_ecriture_detail_bkScalarFieldEnum)[keyof typeof Compta_journal_ecriture_detail_bkScalarFieldEnum] + + +export const Compta_periodeScalarFieldEnum = { + month: 'month' +} as const + +export type Compta_periodeScalarFieldEnum = (typeof Compta_periodeScalarFieldEnum)[keyof typeof Compta_periodeScalarFieldEnum] + + +export const Compta_ppa_file_idScalarFieldEnum = { + last_id: 'last_id' +} as const + +export type Compta_ppa_file_idScalarFieldEnum = (typeof Compta_ppa_file_idScalarFieldEnum)[keyof typeof Compta_ppa_file_idScalarFieldEnum] + + +export const Compta_setupScalarFieldEnum = { + setup_id: 'setup_id', + period_month: 'period_month', + ppa_id: 'ppa_id', + excedent_max: 'excedent_max', + month_closed: 'month_closed', + pay_week_closed: 'pay_week_closed', + attachment_ext: 'attachment_ext', + netadmin_dispo: 'netadmin_dispo', + imap_token: 'imap_token' +} as const + +export type Compta_setupScalarFieldEnum = (typeof Compta_setupScalarFieldEnum)[keyof typeof Compta_setupScalarFieldEnum] + + +export const Credit_codeScalarFieldEnum = { + id: 'id', + code: 'code', + desc: 'desc' +} as const + +export type Credit_codeScalarFieldEnum = (typeof Credit_codeScalarFieldEnum)[keyof typeof Credit_codeScalarFieldEnum] + + +export const TaxScalarFieldEnum = { + id: 'id', + name: 'name', + description: 'description', + rate: 'rate' +} as const + +export type TaxScalarFieldEnum = (typeof TaxScalarFieldEnum)[keyof typeof TaxScalarFieldEnum] + + +export const Tax_groupScalarFieldEnum = { + id: 'id', + name: 'name', + description: 'description', + tax: 'tax' +} as const + +export type Tax_groupScalarFieldEnum = (typeof Tax_groupScalarFieldEnum)[keyof typeof Tax_groupScalarFieldEnum] + + +export const Td_payableScalarFieldEnum = { + id: 'id', + ticket_id: 'ticket_id', + invoice: 'invoice', + date_invoice: 'date_invoice', + fournisseur: 'fournisseur', + montant: 'montant', + devise: 'devise', + methode: 'methode', + reference: 'reference', + date_paiement: 'date_paiement', + releve: 'releve' +} as const + +export type Td_payableScalarFieldEnum = (typeof Td_payableScalarFieldEnum)[keyof typeof Td_payableScalarFieldEnum] + + +export const ConsoScalarFieldEnum = { + id: 'id', + ip_id: 'ip_id', + date: 'date', + total: 'total', + total_day: 'total_day', + total_night: 'total_night' +} as const + +export type ConsoScalarFieldEnum = (typeof ConsoScalarFieldEnum)[keyof typeof ConsoScalarFieldEnum] + + +export const Conso_archiveScalarFieldEnum = { + id: 'id', + ip_id: 'ip_id', + date: 'date', + total: 'total', + total_day: 'total_day', + total_night: 'total_night' +} as const + +export type Conso_archiveScalarFieldEnum = (typeof Conso_archiveScalarFieldEnum)[keyof typeof Conso_archiveScalarFieldEnum] + + +export const Conso_avisScalarFieldEnum = { + id: 'id', + date: 'date', + account_id: 'account_id', + delivery_id: 'delivery_id', + service_id: 'service_id', + ip_id: 'ip_id', + avis: 'avis' +} as const + +export type Conso_avisScalarFieldEnum = (typeof Conso_avisScalarFieldEnum)[keyof typeof Conso_avisScalarFieldEnum] + + +export const Conso_radiusScalarFieldEnum = { + id: 'id', + username: 'username', + date: 'date', + download: 'download', + upload: 'upload', + nb_sess: 'nb_sess' +} as const + +export type Conso_radiusScalarFieldEnum = (typeof Conso_radiusScalarFieldEnum)[keyof typeof Conso_radiusScalarFieldEnum] + + +export const Conso_radius_dailyScalarFieldEnum = { + id: 'id', + username: 'username', + date: 'date', + download_nuit: 'download_nuit', + upload_nuit: 'upload_nuit', + download_jour: 'download_jour', + upload_jour: 'upload_jour' +} as const + +export type Conso_radius_dailyScalarFieldEnum = (typeof Conso_radius_dailyScalarFieldEnum)[keyof typeof Conso_radius_dailyScalarFieldEnum] + + +export const Conso_radius_daily2ScalarFieldEnum = { + id: 'id', + username: 'username', + date: 'date', + download_nuit: 'download_nuit', + upload_nuit: 'upload_nuit', + download_jour: 'download_jour', + upload_jour: 'upload_jour' +} as const + +export type Conso_radius_daily2ScalarFieldEnum = (typeof Conso_radius_daily2ScalarFieldEnum)[keyof typeof Conso_radius_daily2ScalarFieldEnum] + + +export const Conso_radius_hourlyScalarFieldEnum = { + id: 'id', + username: 'username', + date: 'date', + download: 'download', + upload: 'upload' +} as const + +export type Conso_radius_hourlyScalarFieldEnum = (typeof Conso_radius_hourlyScalarFieldEnum)[keyof typeof Conso_radius_hourlyScalarFieldEnum] + + +export const Conso_radius_monthlyScalarFieldEnum = { + id: 'id', + date: 'date', + username: 'username', + nuit: 'nuit', + jour: 'jour' +} as const + +export type Conso_radius_monthlyScalarFieldEnum = (typeof Conso_radius_monthlyScalarFieldEnum)[keyof typeof Conso_radius_monthlyScalarFieldEnum] + + +export const Conso_radius_monthly2ScalarFieldEnum = { + id: 'id', + date: 'date', + username: 'username', + nuit: 'nuit', + jour: 'jour' +} as const + +export type Conso_radius_monthly2ScalarFieldEnum = (typeof Conso_radius_monthly2ScalarFieldEnum)[keyof typeof Conso_radius_monthly2ScalarFieldEnum] + + +export const DeliveryScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + name: 'name', + comment: 'comment', + date_orig: 'date_orig', + address1: 'address1', + address2: 'address2', + city: 'city', + state: 'state', + zip: 'zip', + longitude: 'longitude', + latitude: 'latitude', + tel_home: 'tel_home', + tel_office: 'tel_office', + tel_office_ext: 'tel_office_ext', + cell: 'cell', + fax: 'fax', + email: 'email', + quota_max_day: 'quota_max_day', + quota_max_night: 'quota_max_night', + contact: 'contact', + expanded: 'expanded', + placemarks_id: 'placemarks_id', + epg_subid: 'epg_subid' +} as const + +export type DeliveryScalarFieldEnum = (typeof DeliveryScalarFieldEnum)[keyof typeof DeliveryScalarFieldEnum] + + +export const Delivery_historyScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date_orig: 'date_orig', + address1: 'address1', + address2: 'address2', + city: 'city', + state: 'state', + zip: 'zip' +} as const + +export type Delivery_historyScalarFieldEnum = (typeof Delivery_historyScalarFieldEnum)[keyof typeof Delivery_historyScalarFieldEnum] + + +export const DeviceScalarFieldEnum = { + id: 'id', + delivery_id: 'delivery_id', + category: 'category', + name: 'name', + manufacturier: 'manufacturier', + model: 'model', + sn: 'sn', + mac: 'mac', + manage: 'manage', + port: 'port', + protocol: 'protocol', + manage_cli: 'manage_cli', + port_cli: 'port_cli', + protocol_cli: 'protocol_cli', + user: 'user', + pass: 'pass', + parent: 'parent' +} as const + +export type DeviceScalarFieldEnum = (typeof DeviceScalarFieldEnum)[keyof typeof DeviceScalarFieldEnum] + + +export const Device_archiveScalarFieldEnum = { + id: 'id', + delivery_id: 'delivery_id', + category: 'category', + name: 'name', + manufacturier: 'manufacturier', + model: 'model', + sn: 'sn', + mac: 'mac', + manage: 'manage', + port: 'port', + protocol: 'protocol', + manage_cli: 'manage_cli', + port_cli: 'port_cli', + protocol_cli: 'protocol_cli', + user: 'user', + pass: 'pass', + parent: 'parent' +} as const + +export type Device_archiveScalarFieldEnum = (typeof Device_archiveScalarFieldEnum)[keyof typeof Device_archiveScalarFieldEnum] + + +export const Device_attrScalarFieldEnum = { + id: 'id', + device_id: 'device_id', + attr: 'attr', + value: 'value' +} as const + +export type Device_attrScalarFieldEnum = (typeof Device_attrScalarFieldEnum)[keyof typeof Device_attrScalarFieldEnum] + + +export const Device_linkScalarFieldEnum = { + id: 'id', + parent: 'parent', + child: 'child' +} as const + +export type Device_linkScalarFieldEnum = (typeof Device_linkScalarFieldEnum)[keyof typeof Device_linkScalarFieldEnum] + + +export const Device_templateScalarFieldEnum = { + id: 'id', + nom: 'nom' +} as const + +export type Device_templateScalarFieldEnum = (typeof Device_templateScalarFieldEnum)[keyof typeof Device_templateScalarFieldEnum] + + +export const Device_template_attrScalarFieldEnum = { + id: 'id', + template_id: 'template_id', + attr: 'attr', + default_val: 'default_val' +} as const + +export type Device_template_attrScalarFieldEnum = (typeof Device_template_attrScalarFieldEnum)[keyof typeof Device_template_attrScalarFieldEnum] + + +export const ProductScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + sku: 'sku', + active: 'active', + price: 'price', + price_recurr_type: 'price_recurr_type', + price_recurr_weekday: 'price_recurr_weekday', + price_recurr_week: 'price_recurr_week', + price_recurr_schedule: 'price_recurr_schedule', + download_speed: 'download_speed', + upload_speed: 'upload_speed', + night_package: 'night_package', + quota_day: 'quota_day', + quota_night: 'quota_night', + category: 'category', + uniq_charge: 'uniq_charge', + commercial: 'commercial', + portal_hidden: 'portal_hidden', + inv_keep: 'inv_keep', + inv_tag: 'inv_tag', + inv_threshold: 'inv_threshold', + inv_qte: 'inv_qte', + emplacement: 'emplacement', + list_tech: 'list_tech', + type: 'type', + combo_ready: 'combo_ready', + fibre_lineprofile: 'fibre_lineprofile', + fibre_serviceprofile: 'fibre_serviceprofile' +} as const + +export type ProductScalarFieldEnum = (typeof ProductScalarFieldEnum)[keyof typeof ProductScalarFieldEnum] + + +export const Product_catScalarFieldEnum = { + id: 'id', + name: 'name', + notes: 'notes', + status: 'status', + num_compte: 'num_compte', + combo_dispo: 'combo_dispo' +} as const + +export type Product_catScalarFieldEnum = (typeof Product_catScalarFieldEnum)[keyof typeof Product_catScalarFieldEnum] + + +export const Product_formatScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + name: 'name', + type: 'type', + product_idx: 'product_idx', + description: 'description' +} as const + +export type Product_formatScalarFieldEnum = (typeof Product_formatScalarFieldEnum)[keyof typeof Product_formatScalarFieldEnum] + + +export const Product_fournisseurScalarFieldEnum = { + id: 'id', + product_id: 'product_id', + nom_fournisseur: 'nom_fournisseur', + prix_us: 'prix_us', + prix_achat: 'prix_achat', + prix_livr: 'prix_livr', + delais_livr: 'delais_livr', + comment: 'comment' +} as const + +export type Product_fournisseurScalarFieldEnum = (typeof Product_fournisseurScalarFieldEnum)[keyof typeof Product_fournisseurScalarFieldEnum] + + +export const Product_profileScalarFieldEnum = { + id: 'id', + product_id: 'product_id', + device_type: 'device_type', + line_profile: 'line_profile', + service_profile: 'service_profile' +} as const + +export type Product_profileScalarFieldEnum = (typeof Product_profileScalarFieldEnum)[keyof typeof Product_profileScalarFieldEnum] + + +export const Product_speciauxScalarFieldEnum = { + id: 'id', + product_zone_id: 'product_zone_id', + product_id: 'product_id', + price: 'price', + price_install: 'price_install', + exp_timestamp: 'exp_timestamp', + duree_contrat: 'duree_contrat' +} as const + +export type Product_speciauxScalarFieldEnum = (typeof Product_speciauxScalarFieldEnum)[keyof typeof Product_speciauxScalarFieldEnum] + + +export const Product_translateScalarFieldEnum = { + id: 'id', + product_id: 'product_id', + language_id: 'language_id', + name: 'name', + description_short: 'description_short', + description_full: 'description_full' +} as const + +export type Product_translateScalarFieldEnum = (typeof Product_translateScalarFieldEnum)[keyof typeof Product_translateScalarFieldEnum] + + +export const Product_zoneScalarFieldEnum = { + id: 'id', + zoneNumber: 'zoneNumber', + description: 'description' +} as const + +export type Product_zoneScalarFieldEnum = (typeof Product_zoneScalarFieldEnum)[keyof typeof Product_zoneScalarFieldEnum] + + +export const Product_zone_placemarksScalarFieldEnum = { + id: 'id', + product_zone_id: 'product_zone_id', + placemarks_id: 'placemarks_id' +} as const + +export type Product_zone_placemarksScalarFieldEnum = (typeof Product_zone_placemarksScalarFieldEnum)[keyof typeof Product_zone_placemarksScalarFieldEnum] + + +export const Inventaire_logScalarFieldEnum = { + id: 'id', + prod_tag: 'prod_tag', + staff_id: 'staff_id', + action: 'action', + qte: 'qte', + timestamp: 'timestamp' +} as const + +export type Inventaire_logScalarFieldEnum = (typeof Inventaire_logScalarFieldEnum)[keyof typeof Inventaire_logScalarFieldEnum] + + +export const PhoneScalarFieldEnum = { + id: 'id', + service_id: 'service_id', + phone_num: 'phone_num', + note: 'note', + fournisseur: 'fournisseur' +} as const + +export type PhoneScalarFieldEnum = (typeof PhoneScalarFieldEnum)[keyof typeof PhoneScalarFieldEnum] + + +export const Phone_addrScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + phone: 'phone', + street_number: 'street_number', + apt: 'apt', + street_name: 'street_name', + city: 'city', + state: 'state', + zip: 'zip', + first_name: 'first_name', + last_name: 'last_name', + info: 'info', + enhanced_capable: 'enhanced_capable', + code_cauca: 'code_cauca', + class_service: 'class_service' +} as const + +export type Phone_addrScalarFieldEnum = (typeof Phone_addrScalarFieldEnum)[keyof typeof Phone_addrScalarFieldEnum] + + +export const Phone_comwaveScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + service_id: 'service_id', + requestId: 'requestId', + phoneNumber: 'phoneNumber', + status: 'status', + date: 'date', + reason: 'reason' +} as const + +export type Phone_comwaveScalarFieldEnum = (typeof Phone_comwaveScalarFieldEnum)[keyof typeof Phone_comwaveScalarFieldEnum] + + +export const Phone_noteScalarFieldEnum = { + id: 'id', + phone: 'phone', + rate_center: 'rate_center', + fournisseur: 'fournisseur', + note: 'note' +} as const + +export type Phone_noteScalarFieldEnum = (typeof Phone_noteScalarFieldEnum)[keyof typeof Phone_noteScalarFieldEnum] + + +export const Phone_provisioningScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + delivery_id: 'delivery_id', + service_id: 'service_id', + phone: 'phone', + app: 'app', + mac: 'mac', + password: 'password', + internationnal: 'internationnal', + date_orig: 'date_orig', + date_update: 'date_update' +} as const + +export type Phone_provisioningScalarFieldEnum = (typeof Phone_provisioningScalarFieldEnum)[keyof typeof Phone_provisioningScalarFieldEnum] + + +export const Phonecall_channelScalarFieldEnum = { + id: 'id', + timestamp: 'timestamp', + max_tinktell: 'max_tinktell', + max_outgoing_thinktell: 'max_outgoing_thinktell', + max_comwave: 'max_comwave', + max_outgoing_comwave: 'max_outgoing_comwave', + max_total: 'max_total' +} as const + +export type Phonecall_channelScalarFieldEnum = (typeof Phonecall_channelScalarFieldEnum)[keyof typeof Phonecall_channelScalarFieldEnum] + + +export const Phonecall_log_2025ScalarFieldEnum = { + id: 'id', + caller_id_name: 'caller_id_name', + caller_id_number: 'caller_id_number', + destination_number: 'destination_number', + start_stamp: 'start_stamp', + answer_stamp: 'answer_stamp', + end_stamp: 'end_stamp', + duration: 'duration', + billing: 'billing', + hangup_cause: 'hangup_cause', + uuid: 'uuid' +} as const + +export type Phonecall_log_2025ScalarFieldEnum = (typeof Phonecall_log_2025ScalarFieldEnum)[keyof typeof Phonecall_log_2025ScalarFieldEnum] + + +export const Phonecall_log_2026ScalarFieldEnum = { + id: 'id', + caller_id_name: 'caller_id_name', + caller_id_number: 'caller_id_number', + destination_number: 'destination_number', + start_stamp: 'start_stamp', + answer_stamp: 'answer_stamp', + end_stamp: 'end_stamp', + duration: 'duration', + billing: 'billing', + hangup_cause: 'hangup_cause', + uuid: 'uuid' +} as const + +export type Phonecall_log_2026ScalarFieldEnum = (typeof Phonecall_log_2026ScalarFieldEnum)[keyof typeof Phonecall_log_2026ScalarFieldEnum] + + +export const VoicemeupScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date: 'date', + duration: 'duration', + destination: 'destination', + country: 'country', + state: 'state', + district: 'district', + amount: 'amount', + uuid: 'uuid' +} as const + +export type VoicemeupScalarFieldEnum = (typeof VoicemeupScalarFieldEnum)[keyof typeof VoicemeupScalarFieldEnum] + + +export const PbxScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + delivery_id: 'delivery_id', + service_id: 'service_id', + phone: 'phone', + name: 'name', + password: 'password', + vm_password: 'vm_password', + has_vm: 'has_vm', + vm_email: 'vm_email', + keep_msg: 'keep_msg', + vm_disk_quota: 'vm_disk_quota', + int_code: 'int_code', + language: 'language', + call_911: 'call_911', + max_calls: 'max_calls', + call_timeout: 'call_timeout', + user_context: 'user_context', + country_whitelist: 'country_whitelist', + date_origin: 'date_origin', + date_update: 'date_update', + update_by: 'update_by' +} as const + +export type PbxScalarFieldEnum = (typeof PbxScalarFieldEnum)[keyof typeof PbxScalarFieldEnum] + + +export const Pbx_appScalarFieldEnum = { + id: 'id', + pbx_id: 'pbx_id', + username: 'username', + mac: 'mac', + app: 'app', + note: 'note', + date_origin: 'date_origin', + date_update: 'date_update', + update_by: 'update_by' +} as const + +export type Pbx_appScalarFieldEnum = (typeof Pbx_appScalarFieldEnum)[keyof typeof Pbx_appScalarFieldEnum] + + +export const Pbx_comScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + delivery_id: 'delivery_id', + service_id: 'service_id', + phone: 'phone', + name: 'name', + failover: 'failover', + auth_method: 'auth_method', + password: 'password', + ip: 'ip', + int_code: 'int_code', + country_whitelist: 'country_whitelist', + language: 'language', + call_911: 'call_911', + max_calls: 'max_calls', + user_context: 'user_context', + date_origin: 'date_origin', + date_update: 'date_update', + update_by: 'update_by' +} as const + +export type Pbx_comScalarFieldEnum = (typeof Pbx_comScalarFieldEnum)[keyof typeof Pbx_comScalarFieldEnum] + + +export const Pbx_com_wlScalarFieldEnum = { + id: 'id', + phone: 'phone', + country_whitelist: 'country_whitelist' +} as const + +export type Pbx_com_wlScalarFieldEnum = (typeof Pbx_com_wlScalarFieldEnum)[keyof typeof Pbx_com_wlScalarFieldEnum] + + +export const Pbx_faxScalarFieldEnum = { + id: 'id', + number: 'number', + email: 'email', + description: 'description', + service_id: 'service_id' +} as const + +export type Pbx_faxScalarFieldEnum = (typeof Pbx_faxScalarFieldEnum)[keyof typeof Pbx_faxScalarFieldEnum] + + +export const PaymentScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date_orig: 'date_orig', + amount: 'amount', + applied_amt: 'applied_amt', + type: 'type', + memo: 'memo', + reference: 'reference', + excedent: 'excedent', + correction: 'correction', + cr: 'cr', + uniqsess: 'uniqsess' +} as const + +export type PaymentScalarFieldEnum = (typeof PaymentScalarFieldEnum)[keyof typeof PaymentScalarFieldEnum] + + +export const Payment_itemScalarFieldEnum = { + id: 'id', + payment_id: 'payment_id', + invoice_id: 'invoice_id', + amount: 'amount', + date_orig: 'date_orig' +} as const + +export type Payment_itemScalarFieldEnum = (typeof Payment_itemScalarFieldEnum)[keyof typeof Payment_itemScalarFieldEnum] + + +export const Passwords_managerScalarFieldEnum = { + id: 'id', + title: 'title', + login: 'login', + pass: 'pass', + url: 'url', + email: 'email', + phone: 'phone', + category: 'category', + subcategory: 'subcategory', + desc: 'desc', + notes: 'notes', + logs: 'logs', + date_orig: 'date_orig', + date_last: 'date_last', + users_granted: 'users_granted', + group_granted: 'group_granted', + created_by: 'created_by', + keywords: 'keywords' +} as const + +export type Passwords_managerScalarFieldEnum = (typeof Passwords_managerScalarFieldEnum)[keyof typeof Passwords_managerScalarFieldEnum] + + +export const Passwords_manager_catScalarFieldEnum = { + id: 'id', + title: 'title', + desc: 'desc' +} as const + +export type Passwords_manager_catScalarFieldEnum = (typeof Passwords_manager_catScalarFieldEnum)[keyof typeof Passwords_manager_catScalarFieldEnum] + + +export const Passwords_manager_groupScalarFieldEnum = { + id: 'id', + name: 'name', + users: 'users' +} as const + +export type Passwords_manager_groupScalarFieldEnum = (typeof Passwords_manager_groupScalarFieldEnum)[keyof typeof Passwords_manager_groupScalarFieldEnum] + + +export const NotificationScalarFieldEnum = { + id: 'id', + staff_id: 'staff_id', + endpoint: 'endpoint', + authToken: 'authToken', + publicKey: 'publicKey', + contentEncoding: 'contentEncoding', + plateforme: 'plateforme' +} as const + +export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum] + + +export const Notification_payloadScalarFieldEnum = { + id: 'id', + notification_id: 'notification_id', + payload: 'payload', + timestamp: 'timestamp' +} as const + +export type Notification_payloadScalarFieldEnum = (typeof Notification_payloadScalarFieldEnum)[keyof typeof Notification_payloadScalarFieldEnum] + + +export const MunicipaliteScalarFieldEnum = { + id: 'id', + nom: 'nom', + code: 'code', + administration: 'administration', + often_used: 'often_used' +} as const + +export type MunicipaliteScalarFieldEnum = (typeof MunicipaliteScalarFieldEnum)[keyof typeof MunicipaliteScalarFieldEnum] + + +export const Sommaire_porteScalarFieldEnum = { + id: 'id', + fibre_id: 'fibre_id', + id_adresse: 'id_adresse', + id_subvention: 'id_subvention', + adresse_subvention: 'adresse_subvention', + ville_subvention: 'ville_subvention', + latitude: 'latitude', + longitude: 'longitude', + contest_adresse: 'contest_adresse', + new_adresse: 'new_adresse', + placemarks_id: 'placemarks_id' +} as const + +export type Sommaire_porteScalarFieldEnum = (typeof Sommaire_porteScalarFieldEnum)[keyof typeof Sommaire_porteScalarFieldEnum] + + +export const StateScalarFieldEnum = { + id: 'id', + name_en: 'name_en', + name_fr: 'name_fr', + abbrev: 'abbrev', + country: 'country' +} as const + +export type StateScalarFieldEnum = (typeof StateScalarFieldEnum)[keyof typeof StateScalarFieldEnum] + + +export const LicenceScalarFieldEnum = { + id: 'id', + nom: 'nom', + date: 'date', + can_manage: 'can_manage', + comment: 'comment' +} as const + +export type LicenceScalarFieldEnum = (typeof LicenceScalarFieldEnum)[keyof typeof LicenceScalarFieldEnum] + + +export const Licence_keyScalarFieldEnum = { + id: 'id', + licence_id: 'licence_id', + licence_key: 'licence_key', + date: 'date', + date_expire: 'date_expire', + comment: 'comment' +} as const + +export type Licence_keyScalarFieldEnum = (typeof Licence_keyScalarFieldEnum)[keyof typeof Licence_keyScalarFieldEnum] + + +export const IpScalarFieldEnum = { + id: 'id', + service_id: 'service_id', + ip: 'ip', + prive: 'prive', + ip_relais: 'ip_relais', + technology: 'technology', + name_access_point: 'name_access_point', + mac: 'mac', + web_link: 'web_link', + link_relais: 'link_relais', + ip_conso: 'ip_conso', + actif: 'actif', + comment: 'comment', + cidr: 'cidr', + last_updated: 'last_updated' +} as const + +export type IpScalarFieldEnum = (typeof IpScalarFieldEnum)[keyof typeof IpScalarFieldEnum] + + +export const Ip_adminScalarFieldEnum = { + id: 'id', + ip: 'ip', + comment: 'comment' +} as const + +export type Ip_adminScalarFieldEnum = (typeof Ip_adminScalarFieldEnum)[keyof typeof Ip_adminScalarFieldEnum] + + +export const Ip_historyScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + delivery_id: 'delivery_id', + service_id: 'service_id', + ip: 'ip', + date: 'date' +} as const + +export type Ip_historyScalarFieldEnum = (typeof Ip_historyScalarFieldEnum)[keyof typeof Ip_historyScalarFieldEnum] + + +export const Ip_ppScalarFieldEnum = { + id: 'id', + ip_prive: 'ip_prive', + ip_public: 'ip_public', + date: 'date', + ip_id: 'ip_id' +} as const + +export type Ip_ppScalarFieldEnum = (typeof Ip_ppScalarFieldEnum)[keyof typeof Ip_ppScalarFieldEnum] + + +export const Ip_staticScalarFieldEnum = { + id: 'id', + ip: 'ip', + static: 'static', + reverse: 'reverse' +} as const + +export type Ip_staticScalarFieldEnum = (typeof Ip_staticScalarFieldEnum)[keyof typeof Ip_staticScalarFieldEnum] + + +export const Ip_targoScalarFieldEnum = { + id: 'id', + ip: 'ip', + cidr: 'cidr', + comment: 'comment' +} as const + +export type Ip_targoScalarFieldEnum = (typeof Ip_targoScalarFieldEnum)[keyof typeof Ip_targoScalarFieldEnum] + + +export const InvoiceScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + process_status: 'process_status', + billing_status: 'billing_status', + refund_status: 'refund_status', + print_status: 'print_status', + account_id: 'account_id', + total_amt: 'total_amt', + billed_amt: 'billed_amt', + due_date: 'due_date', + notes: 'notes', + template_message: 'template_message', + email_status: 'email_status', + working_order: 'working_order', + correction: 'correction', + ppa_charge: 'ppa_charge', + credit_code_id: 'credit_code_id' +} as const + +export type InvoiceScalarFieldEnum = (typeof InvoiceScalarFieldEnum)[keyof typeof InvoiceScalarFieldEnum] + + +export const Invoice_bkScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + process_status: 'process_status', + billing_status: 'billing_status', + refund_status: 'refund_status', + print_status: 'print_status', + account_id: 'account_id', + total_amt: 'total_amt', + billed_amt: 'billed_amt', + due_date: 'due_date', + notes: 'notes', + template_message: 'template_message', + email_status: 'email_status', + working_order: 'working_order', + correction: 'correction', + ppa_charge: 'ppa_charge', + credit_code_id: 'credit_code_id' +} as const + +export type Invoice_bkScalarFieldEnum = (typeof Invoice_bkScalarFieldEnum)[keyof typeof Invoice_bkScalarFieldEnum] + + +export const Invoice_callScalarFieldEnum = { + id: 'id', + date: 'date', + number: 'number', + amount: 'amount' +} as const + +export type Invoice_callScalarFieldEnum = (typeof Invoice_callScalarFieldEnum)[keyof typeof Invoice_callScalarFieldEnum] + + +export const Invoice_itemScalarFieldEnum = { + id: 'id', + service_id: 'service_id', + invoice_id: 'invoice_id', + sku: 'sku', + quantity: 'quantity', + product_name: 'product_name', + unitary_price: 'unitary_price', + nosub: 'nosub', + delivery_name: 'delivery_name' +} as const + +export type Invoice_itemScalarFieldEnum = (typeof Invoice_itemScalarFieldEnum)[keyof typeof Invoice_itemScalarFieldEnum] + + +export const Invoice_item_bkScalarFieldEnum = { + id: 'id', + service_id: 'service_id', + invoice_id: 'invoice_id', + sku: 'sku', + quantity: 'quantity', + product_name: 'product_name', + unitary_price: 'unitary_price', + nosub: 'nosub', + delivery_name: 'delivery_name' +} as const + +export type Invoice_item_bkScalarFieldEnum = (typeof Invoice_item_bkScalarFieldEnum)[keyof typeof Invoice_item_bkScalarFieldEnum] + + +export const Invoice_msg_templateScalarFieldEnum = { + id: 'id', + name: 'name', + message: 'message' +} as const + +export type Invoice_msg_templateScalarFieldEnum = (typeof Invoice_msg_templateScalarFieldEnum)[keyof typeof Invoice_msg_templateScalarFieldEnum] + + +export const Invoice_taxScalarFieldEnum = { + id: 'id', + invoice_id: 'invoice_id', + tax_name: 'tax_name', + tax_description: 'tax_description', + tax_rate: 'tax_rate', + amount: 'amount' +} as const + +export type Invoice_taxScalarFieldEnum = (typeof Invoice_taxScalarFieldEnum)[keyof typeof Invoice_taxScalarFieldEnum] + + +export const Invoice_tax_bkScalarFieldEnum = { + id: 'id', + invoice_id: 'invoice_id', + tax_name: 'tax_name', + tax_description: 'tax_description', + tax_rate: 'tax_rate', + amount: 'amount' +} as const + +export type Invoice_tax_bkScalarFieldEnum = (typeof Invoice_tax_bkScalarFieldEnum)[keyof typeof Invoice_tax_bkScalarFieldEnum] + + +export const Accord_paiementScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date_accord: 'date_accord', + date_echeance: 'date_echeance', + date_coupure: 'date_coupure', + raison_changement: 'raison_changement', + montant: 'montant', + method: 'method', + ferie: 'ferie', + note: 'note', + status: 'status', + staff_id: 'staff_id', + date_create: 'date_create' +} as const + +export type Accord_paiementScalarFieldEnum = (typeof Accord_paiementScalarFieldEnum)[keyof typeof Accord_paiementScalarFieldEnum] + + +export const AutologinScalarFieldEnum = { + id: 'id', + token: 'token', + date: 'date', + staff: 'staff' +} as const + +export type AutologinScalarFieldEnum = (typeof AutologinScalarFieldEnum)[keyof typeof AutologinScalarFieldEnum] + + +export const StatementScalarFieldEnum = { + id: 'id', + date: 'date', + type: 'type', + number: 'number', + reference: 'reference', + amt: 'amt', + paid_amt: 'paid_amt' +} as const + +export type StatementScalarFieldEnum = (typeof StatementScalarFieldEnum)[keyof typeof StatementScalarFieldEnum] + + +export const Intranet_docScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date: 'date', + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv', + path_id: 'path_id', + priority_order: 'priority_order', + update_timestamp: 'update_timestamp' +} as const + +export type Intranet_docScalarFieldEnum = (typeof Intranet_docScalarFieldEnum)[keyof typeof Intranet_docScalarFieldEnum] + + +export const Intranet_doc_pathsScalarFieldEnum = { + id: 'id', + description: 'description', + parent_id: 'parent_id', + priority_order: 'priority_order' +} as const + +export type Intranet_doc_pathsScalarFieldEnum = (typeof Intranet_doc_pathsScalarFieldEnum)[keyof typeof Intranet_doc_pathsScalarFieldEnum] + + +export const Intranet_doc_replyScalarFieldEnum = { + id: 'id', + feed_id: 'feed_id', + date: 'date', + account_id: 'account_id', + msg: 'msg', + attachment: 'attachment', + update_timestamp: 'update_timestamp' +} as const + +export type Intranet_doc_replyScalarFieldEnum = (typeof Intranet_doc_replyScalarFieldEnum)[keyof typeof Intranet_doc_replyScalarFieldEnum] + + +export const Intranet_feedScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date: 'date', + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv' +} as const + +export type Intranet_feedScalarFieldEnum = (typeof Intranet_feedScalarFieldEnum)[keyof typeof Intranet_feedScalarFieldEnum] + + +export const Intranet_feed_replyScalarFieldEnum = { + id: 'id', + feed_id: 'feed_id', + date: 'date', + account_id: 'account_id', + msg: 'msg', + attachment: 'attachment' +} as const + +export type Intranet_feed_replyScalarFieldEnum = (typeof Intranet_feed_replyScalarFieldEnum)[keyof typeof Intranet_feed_replyScalarFieldEnum] + + +export const Intranet_techniciensScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date: 'date', + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv' +} as const + +export type Intranet_techniciensScalarFieldEnum = (typeof Intranet_techniciensScalarFieldEnum)[keyof typeof Intranet_techniciensScalarFieldEnum] + + +export const Intranet_techniciens_replyScalarFieldEnum = { + id: 'id', + feed_id: 'feed_id', + date: 'date', + account_id: 'account_id', + msg: 'msg', + attachment: 'attachment' +} as const + +export type Intranet_techniciens_replyScalarFieldEnum = (typeof Intranet_techniciens_replyScalarFieldEnum)[keyof typeof Intranet_techniciens_replyScalarFieldEnum] + + +export const Intranet_technoScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date: 'date', + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv' +} as const + +export type Intranet_technoScalarFieldEnum = (typeof Intranet_technoScalarFieldEnum)[keyof typeof Intranet_technoScalarFieldEnum] + + +export const Intranet_techno_replyScalarFieldEnum = { + id: 'id', + feed_id: 'feed_id', + date: 'date', + account_id: 'account_id', + msg: 'msg', + attachment: 'attachment' +} as const + +export type Intranet_techno_replyScalarFieldEnum = (typeof Intranet_techno_replyScalarFieldEnum)[keyof typeof Intranet_techno_replyScalarFieldEnum] + + +export const FibreScalarFieldEnum = { + id: 'id', + terrain: 'terrain', + rue: 'rue', + ville: 'ville', + zip: 'zip', + ontid: 'ontid', + sn: 'sn', + tech: 'tech', + info_connect: 'info_connect', + frame: 'frame', + slot: 'slot', + port: 'port', + vlan_manage: 'vlan_manage', + vlan_internet: 'vlan_internet', + vlan_telephone: 'vlan_telephone', + vlan_tele: 'vlan_tele', + manage_service_id: 'manage_service_id', + internet_service_id: 'internet_service_id', + telephone_service_id: 'telephone_service_id', + tele_service_id: 'tele_service_id', + service_id: 'service_id', + nb_drop: 'nb_drop', + placemarks_id: 'placemarks_id', + appartements_id: 'appartements_id', + latitude: 'latitude', + longitude: 'longitude', + boitier_pas_install: 'boitier_pas_install', + description: 'description', + suite: 'suite', + distance: 'distance', + nb_portees: 'nb_portees' +} as const + +export type FibreScalarFieldEnum = (typeof FibreScalarFieldEnum)[keyof typeof FibreScalarFieldEnum] + + +export const Fibre_oltScalarFieldEnum = { + id: 'id', + tech: 'tech', + ip: 'ip', + description: 'description' +} as const + +export type Fibre_oltScalarFieldEnum = (typeof Fibre_oltScalarFieldEnum)[keyof typeof Fibre_oltScalarFieldEnum] + + +export const Fibre_service_portScalarFieldEnum = { + id: 'id', + last_service_id: 'last_service_id' +} as const + +export type Fibre_service_portScalarFieldEnum = (typeof Fibre_service_portScalarFieldEnum)[keyof typeof Fibre_service_portScalarFieldEnum] + + +export const Fibre_suiviScalarFieldEnum = { + id: 'id', + customer_id: 'customer_id', + first_name: 'first_name', + last_name: 'last_name', + address: 'address', + city: 'city', + zip: 'zip', + phone: 'phone', + email: 'email', + longitude: 'longitude', + latitude: 'latitude', + called: 'called', + create_by: 'create_by', + note: 'note' +} as const + +export type Fibre_suiviScalarFieldEnum = (typeof Fibre_suiviScalarFieldEnum)[keyof typeof Fibre_suiviScalarFieldEnum] + + +export const Fibre_techScalarFieldEnum = { + id: 'id', + description: 'description' +} as const + +export type Fibre_techScalarFieldEnum = (typeof Fibre_techScalarFieldEnum)[keyof typeof Fibre_techScalarFieldEnum] + + +export const Fibre_videotronScalarFieldEnum = { + id: 'id', + date: 'date', + download: 'download', + upload: 'upload', + ethernet: 'ethernet', + interface: 'interface' +} as const + +export type Fibre_videotronScalarFieldEnum = (typeof Fibre_videotronScalarFieldEnum)[keyof typeof Fibre_videotronScalarFieldEnum] + + +export const GanttScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + name: 'name', + gantt: 'gantt', + closed: 'closed' +} as const + +export type GanttScalarFieldEnum = (typeof GanttScalarFieldEnum)[keyof typeof GanttScalarFieldEnum] + + +export const Gantt_templateScalarFieldEnum = { + id: 'id', + name: 'name', + gantt: 'gantt' +} as const + +export type Gantt_templateScalarFieldEnum = (typeof Gantt_templateScalarFieldEnum)[keyof typeof Gantt_templateScalarFieldEnum] + + +export const ProjectScalarFieldEnum = { + id: 'id', + name: 'name', + status: 'status', + desc: 'desc', + date_start: 'date_start', + date_end: 'date_end', + manager_name: 'manager_name' +} as const + +export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum] + + +export const Project_cmdScalarFieldEnum = { + id: 'id', + project_id: 'project_id', + date: 'date', + vendeur: 'vendeur', + no_cmd: 'no_cmd', + po: 'po', + staff_id: 'staff_id' +} as const + +export type Project_cmdScalarFieldEnum = (typeof Project_cmdScalarFieldEnum)[keyof typeof Project_cmdScalarFieldEnum] + + +export const Project_cmd_itemScalarFieldEnum = { + id: 'id', + cmd_id: 'cmd_id', + product_id: 'product_id', + desc: 'desc', + qte: 'qte', + price: 'price', + usd: 'usd', + recu: 'recu', + qte_recu: 'qte_recu', + date_recu: 'date_recu', + comment: 'comment', + eta: 'eta', + status: 'status' +} as const + +export type Project_cmd_itemScalarFieldEnum = (typeof Project_cmd_itemScalarFieldEnum)[keyof typeof Project_cmd_itemScalarFieldEnum] + + +export const Project_manager_catScalarFieldEnum = { + id: 'id', + pos: 'pos', + name: 'name', + color: 'color', + text_color: 'text_color' +} as const + +export type Project_manager_catScalarFieldEnum = (typeof Project_manager_catScalarFieldEnum)[keyof typeof Project_manager_catScalarFieldEnum] + + +export const Project_manager_checklistScalarFieldEnum = { + id: 'id', + task_id: 'task_id', + ticket_id: 'ticket_id', + desc: 'desc', + poids: 'poids', + done: 'done' +} as const + +export type Project_manager_checklistScalarFieldEnum = (typeof Project_manager_checklistScalarFieldEnum)[keyof typeof Project_manager_checklistScalarFieldEnum] + + +export const Project_manager_commentScalarFieldEnum = { + id: 'id', + task_id: 'task_id', + comment: 'comment', + staff_id: 'staff_id', + date: 'date', + unread: 'unread' +} as const + +export type Project_manager_commentScalarFieldEnum = (typeof Project_manager_commentScalarFieldEnum)[keyof typeof Project_manager_commentScalarFieldEnum] + + +export const Project_manager_taskScalarFieldEnum = { + id: 'id', + category_id: 'category_id', + pos: 'pos', + titre: 'titre', + color: 'color', + text_color: 'text_color', + desc: 'desc', + ticket_id: 'ticket_id', + date_start: 'date_start', + date_deadline: 'date_deadline', + deadline_watch: 'deadline_watch', + assign_staff: 'assign_staff', + priority: 'priority', + done: 'done', + create_by: 'create_by', + date_creation: 'date_creation', + date_update: 'date_update' +} as const + +export type Project_manager_taskScalarFieldEnum = (typeof Project_manager_taskScalarFieldEnum)[keyof typeof Project_manager_taskScalarFieldEnum] + + +export const ServiceScalarFieldEnum = { + id: 'id', + date_orig: 'date_orig', + date_suspended: 'date_suspended', + date_next_invoice: 'date_next_invoice', + date_last_invoice: 'date_last_invoice', + delivery_id: 'delivery_id', + device_id: 'device_id', + product_id: 'product_id', + comment: 'comment', + payment_recurrence: 'payment_recurrence', + status: 'status', + hijack: 'hijack', + hijack_price: 'hijack_price', + hijack_desc: 'hijack_desc', + hijack_download_speed: 'hijack_download_speed', + hijack_upload_speed: 'hijack_upload_speed', + hijack_quota_day: 'hijack_quota_day', + hijack_quota_night: 'hijack_quota_night', + date_end_contract: 'date_end_contract', + actif_until: 'actif_until', + forfait_internet: 'forfait_internet', + radius_user: 'radius_user', + radius_pwd: 'radius_pwd', + radius_conso: 'radius_conso' +} as const + +export type ServiceScalarFieldEnum = (typeof ServiceScalarFieldEnum)[keyof typeof ServiceScalarFieldEnum] + + +export const Service_snapshotScalarFieldEnum = { + id: 'id', + date: 'date', + account_id: 'account_id', + service_id: 'service_id', + quota_day: 'quota_day', + quota_night: 'quota_night' +} as const + +export type Service_snapshotScalarFieldEnum = (typeof Service_snapshotScalarFieldEnum)[keyof typeof Service_snapshotScalarFieldEnum] + + +export const SoumissionScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + name: 'name', + po: 'po', + date: 'date', + tax: 'tax', + materiel: 'materiel', + mensuel: 'mensuel', + text: 'text' +} as const + +export type SoumissionScalarFieldEnum = (typeof SoumissionScalarFieldEnum)[keyof typeof SoumissionScalarFieldEnum] + + +export const Soumission_templateScalarFieldEnum = { + id: 'id', + name: 'name', + materiel: 'materiel', + mensuel: 'mensuel' +} as const + +export type Soumission_templateScalarFieldEnum = (typeof Soumission_templateScalarFieldEnum)[keyof typeof Soumission_templateScalarFieldEnum] + + +export const StaffScalarFieldEnum = { + id: 'id', + status: 'status', + username: 'username', + password: 'password', + vpn: 'vpn', + first_name: 'first_name', + last_name: 'last_name', + email: 'email', + ext: 'ext', + cell: 'cell', + gpin: 'gpin', + rights: 'rights', + date_embauche: 'date_embauche', + fete: 'fete', + supp: 'supp', + group_ad: 'group_ad', + dept_list: 'dept_list', + notification: 'notification', + darkmode: 'darkmode', + matricule_desjardins: 'matricule_desjardins', + compagnie_desjardins: 'compagnie_desjardins', + ldap_id: 'ldap_id' +} as const + +export type StaffScalarFieldEnum = (typeof StaffScalarFieldEnum)[keyof typeof StaffScalarFieldEnum] + + +export const Staff_dispoScalarFieldEnum = { + id: 'id', + day_num: 'day_num', + staff_id: 'staff_id' +} as const + +export type Staff_dispoScalarFieldEnum = (typeof Staff_dispoScalarFieldEnum)[keyof typeof Staff_dispoScalarFieldEnum] + + +export const Staff_suppScalarFieldEnum = { + id: 'id', + nom: 'nom', + staff_ids: 'staff_ids' +} as const + +export type Staff_suppScalarFieldEnum = (typeof Staff_suppScalarFieldEnum)[keyof typeof Staff_suppScalarFieldEnum] + + +export const Tele_carteScalarFieldEnum = { + id: 'id', + delivery_id: 'delivery_id', + service_id: 'service_id', + channels: 'channels' +} as const + +export type Tele_carteScalarFieldEnum = (typeof Tele_carteScalarFieldEnum)[keyof typeof Tele_carteScalarFieldEnum] + + +export const Tele_channelScalarFieldEnum = { + id: 'id', + proprio: 'proprio', + poste: 'poste', + pack_min: 'pack_min', + pack_redevance: 'pack_redevance', + pack_prix_vendu: 'pack_prix_vendu', + carte_percentage: 'carte_percentage', + carte_redevance_min: 'carte_redevance_min', + carte_prix_vendu: 'carte_prix_vendu', + monthly_min: 'monthly_min', + has_penetration_rate: 'has_penetration_rate', + penetration_actuel: 'penetration_actuel', + is_commercial: 'is_commercial', + note: 'note', + epgId: 'epgId', + uptele_no: 'uptele_no', + uptele_code: 'uptele_code', + abbr: 'abbr', + groupe_id: 'groupe_id', + ccsa_packageID: 'ccsa_packageID', + ccsa_desc: 'ccsa_desc', + rapport_bell: 'rapport_bell' +} as const + +export type Tele_channelScalarFieldEnum = (typeof Tele_channelScalarFieldEnum)[keyof typeof Tele_channelScalarFieldEnum] + + +export const Tele_groupeScalarFieldEnum = { + id: 'id', + nom: 'nom', + small_desc: 'small_desc' +} as const + +export type Tele_groupeScalarFieldEnum = (typeof Tele_groupeScalarFieldEnum)[keyof typeof Tele_groupeScalarFieldEnum] + + +export const Tele_networkScalarFieldEnum = { + id: 'id', + network_name: 'network_name', + fournisseur: 'fournisseur' +} as const + +export type Tele_networkScalarFieldEnum = (typeof Tele_networkScalarFieldEnum)[keyof typeof Tele_networkScalarFieldEnum] + + +export const Tele_packScalarFieldEnum = { + id: 'id', + product_id: 'product_id', + channels: 'channels', + actif: 'actif', + ccsa_packageID: 'ccsa_packageID', + ccsa_desc: 'ccsa_desc', + rapport_bell: 'rapport_bell', + bell_name: 'bell_name', + epgId: 'epgId' +} as const + +export type Tele_packScalarFieldEnum = (typeof Tele_packScalarFieldEnum)[keyof typeof Tele_packScalarFieldEnum] + + +export const Tele_penetrationScalarFieldEnum = { + id: 'id', + id_channel: 'id_channel', + percentage: 'percentage', + prix: 'prix' +} as const + +export type Tele_penetrationScalarFieldEnum = (typeof Tele_penetrationScalarFieldEnum)[keyof typeof Tele_penetrationScalarFieldEnum] + + +export const Tele_sub_archiveScalarFieldEnum = { + id: 'id', + date_archive: 'date_archive', + subs: 'subs' +} as const + +export type Tele_sub_archiveScalarFieldEnum = (typeof Tele_sub_archiveScalarFieldEnum)[keyof typeof Tele_sub_archiveScalarFieldEnum] + + +export const Tele_wizScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + delivery_id: 'delivery_id', + ticket_id: 'ticket_id', + nb_stb: 'nb_stb', + credit: 'credit', + fbase: 'fbase', + fthem: 'fthem' +} as const + +export type Tele_wizScalarFieldEnum = (typeof Tele_wizScalarFieldEnum)[keyof typeof Tele_wizScalarFieldEnum] + + +export const Tv_macScalarFieldEnum = { + id: 'id', + service_id: 'service_id', + mac: 'mac' +} as const + +export type Tv_macScalarFieldEnum = (typeof Tv_macScalarFieldEnum)[keyof typeof Tv_macScalarFieldEnum] + + +export const TicketScalarFieldEnum = { + id: 'id', + ost_id: 'ost_id', + parent: 'parent', + account_id: 'account_id', + delivery_id: 'delivery_id', + bon_id: 'bon_id', + subject: 'subject', + dept_id: 'dept_id', + open_by: 'open_by', + email_from: 'email_from', + assign_to: 'assign_to', + status: 'status', + due_date: 'due_date', + due_time: 'due_time', + date_create: 'date_create', + last_update: 'last_update', + date_closed: 'date_closed', + pending_to_open: 'pending_to_open', + waiting_for: 'waiting_for', + lock_name: 'lock_name', + public: 'public', + priority: 'priority', + install_success: 'install_success', + wizard: 'wizard', + wizard_fibre: 'wizard_fibre', + important: 'important', + followed_by: 'followed_by', + participant: 'participant', + update_timestamp: 'update_timestamp', + closed_by: 'closed_by' +} as const + +export type TicketScalarFieldEnum = (typeof TicketScalarFieldEnum)[keyof typeof TicketScalarFieldEnum] + + +export const Ticket_calendar_lockScalarFieldEnum = { + id: 'id', + date_lock: 'date_lock', + dept_id: 'dept_id', + nb_install: 'nb_install', + create_by: 'create_by', + update_by: 'update_by', + last_update: 'last_update' +} as const + +export type Ticket_calendar_lockScalarFieldEnum = (typeof Ticket_calendar_lockScalarFieldEnum)[keyof typeof Ticket_calendar_lockScalarFieldEnum] + + +export const Ticket_calendar_staff_lockScalarFieldEnum = { + id: 'id', + date: 'date', + staff_id: 'staff_id' +} as const + +export type Ticket_calendar_staff_lockScalarFieldEnum = (typeof Ticket_calendar_staff_lockScalarFieldEnum)[keyof typeof Ticket_calendar_staff_lockScalarFieldEnum] + + +export const Ticket_congeScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + name: 'name', + date: 'date', + desc: 'desc', + ticket_id: 'ticket_id' +} as const + +export type Ticket_congeScalarFieldEnum = (typeof Ticket_congeScalarFieldEnum)[keyof typeof Ticket_congeScalarFieldEnum] + + +export const Ticket_deptScalarFieldEnum = { + id: 'id', + parent: 'parent', + name: 'name', + hasChild: 'hasChild', + email: 'email', + manager_id: 'manager_id', + member_only: 'member_only', + protected: 'protected', + default_staff: 'default_staff', + default_follow: 'default_follow' +} as const + +export type Ticket_deptScalarFieldEnum = (typeof Ticket_deptScalarFieldEnum)[keyof typeof Ticket_deptScalarFieldEnum] + + +export const Ticket_msgScalarFieldEnum = { + id: 'id', + ticket_id: 'ticket_id', + staff_id: 'staff_id', + msg: 'msg', + date_orig: 'date_orig', + unread_csv: 'unread_csv', + public: 'public', + important: 'important', + update_timestamp: 'update_timestamp' +} as const + +export type Ticket_msgScalarFieldEnum = (typeof Ticket_msgScalarFieldEnum)[keyof typeof Ticket_msgScalarFieldEnum] + + +export const Ticket_templateScalarFieldEnum = { + id: 'id', + name: 'name', + template: 'template' +} as const + +export type Ticket_templateScalarFieldEnum = (typeof Ticket_templateScalarFieldEnum)[keyof typeof Ticket_templateScalarFieldEnum] + + +export const Tmp_vpnScalarFieldEnum = { + id: 'id', + username: 'username', + password: 'password', + ad_done: 'ad_done', + tacacs: 'tacacs', + m: 'm' +} as const + +export type Tmp_vpnScalarFieldEnum = (typeof Tmp_vpnScalarFieldEnum)[keyof typeof Tmp_vpnScalarFieldEnum] + + +export const Bon_travailScalarFieldEnum = { + id: 'id', + date: 'date', + account_id: 'account_id', + tech1: 'tech1', + heure_arrive_t1: 'heure_arrive_t1', + heure_depart_t1: 'heure_depart_t1', + tech2: 'tech2', + heure_arrive_t2: 'heure_arrive_t2', + heure_depart_t2: 'heure_depart_t2', + note: 'note', + subtotal: 'subtotal', + tps: 'tps', + tvq: 'tvq', + total: 'total' +} as const + +export type Bon_travailScalarFieldEnum = (typeof Bon_travailScalarFieldEnum)[keyof typeof Bon_travailScalarFieldEnum] + + +export const Bon_travail_itemScalarFieldEnum = { + id: 'id', + bon_id: 'bon_id', + product_id: 'product_id', + qte: 'qte', + price: 'price', + desc: 'desc' +} as const + +export type Bon_travail_itemScalarFieldEnum = (typeof Bon_travail_itemScalarFieldEnum)[keyof typeof Bon_travail_itemScalarFieldEnum] + + +export const Checklist_relaisScalarFieldEnum = { + id: 'id', + site_id: 'site_id', + site_name: 'site_name', + account_id: 'account_id', + priority: 'priority', + done: 'done', + equipement: 'equipement', + connecteur: 'connecteur', + grounding: 'grounding', + surge_lightning: 'surge_lightning', + switch_poe: 'switch_poe', + switch_giga_shield: 'switch_giga_shield', + batterie: 'batterie', + solidity: 'solidity', + redondance: 'redondance', + antenne_58_360: 'antenne_58_360', + antenne_24_360: 'antenne_24_360', + rspro_maj: 'rspro_maj', + boite: 'boite', + cable: 'cable', + staros_ubnt: 'staros_ubnt', + autre: 'autre' +} as const + +export type Checklist_relaisScalarFieldEnum = (typeof Checklist_relaisScalarFieldEnum)[keyof typeof Checklist_relaisScalarFieldEnum] + + +export const ConferenceScalarFieldEnum = { + id: 'id', + room_id: 'room_id', + time_start: 'time_start', + time_end: 'time_end', + name: 'name', + description: 'description', + host: 'host', + participant: 'participant' +} as const + +export type ConferenceScalarFieldEnum = (typeof ConferenceScalarFieldEnum)[keyof typeof ConferenceScalarFieldEnum] + + +export const Conference_roomScalarFieldEnum = { + id: 'id', + name: 'name', + status: 'status', + location: 'location', + description: 'description' +} as const + +export type Conference_roomScalarFieldEnum = (typeof Conference_roomScalarFieldEnum)[keyof typeof Conference_roomScalarFieldEnum] + + +export const FournisseurScalarFieldEnum = { + id: 'id', + nom: 'nom', + email: 'email', + actif: 'actif' +} as const + +export type FournisseurScalarFieldEnum = (typeof FournisseurScalarFieldEnum)[keyof typeof FournisseurScalarFieldEnum] + + +export const Notice_guiScalarFieldEnum = { + id: 'id', + staff_id: 'staff_id', + message: 'message', + is_read: 'is_read', + timestamp: 'timestamp' +} as const + +export type Notice_guiScalarFieldEnum = (typeof Notice_guiScalarFieldEnum)[keyof typeof Notice_guiScalarFieldEnum] + + +export const PromoScalarFieldEnum = { + id: 'id', + name: 'name', + desc: 'desc', + date_start: 'date_start', + date_end: 'date_end', + date_orig: 'date_orig', + visible_until: 'visible_until', + actif: 'actif' +} as const + +export type PromoScalarFieldEnum = (typeof PromoScalarFieldEnum)[keyof typeof PromoScalarFieldEnum] + + +export const StbsScalarFieldEnum = { + id: 'id', + mac: 'mac', + sn: 'sn', + targo: 'targo' +} as const + +export type StbsScalarFieldEnum = (typeof StbsScalarFieldEnum)[keyof typeof StbsScalarFieldEnum] + + +export const Tech_dispoScalarFieldEnum = { + id: 'id', + date: 'date', + tech: 'tech' +} as const + +export type Tech_dispoScalarFieldEnum = (typeof Tech_dispoScalarFieldEnum)[keyof typeof Tech_dispoScalarFieldEnum] + + +export const DebugScalarFieldEnum = { + id: 'id', + autor: 'autor', + url: 'url', + date_last: 'date_last', + desc: 'desc', + note4autor: 'note4autor', + note4dev: 'note4dev', + status: 'status' +} as const + +export type DebugScalarFieldEnum = (typeof DebugScalarFieldEnum)[keyof typeof DebugScalarFieldEnum] + + +export const Carte_tempsScalarFieldEnum = { + id: 'id', + week: 'week', + year: 'year', + date: 'date', + staff_id: 'staff_id', + start_am: 'start_am', + end_am: 'end_am', + start_pm: 'start_pm', + end_pm: 'end_pm', + start_night: 'start_night', + end_night: 'end_night', + relais: 'relais', + comment: 'comment', + note_int: 'note_int', + conge: 'conge', + appr: 'appr', + appr_dir: 'appr_dir' +} as const + +export type Carte_tempsScalarFieldEnum = (typeof Carte_tempsScalarFieldEnum)[keyof typeof Carte_tempsScalarFieldEnum] + + +export const Carte_temps_periodeScalarFieldEnum = { + id: 'id', + debut: 'debut', + fin: 'fin', + paid: 'paid', + periode: 'periode', + annee: 'annee' +} as const + +export type Carte_temps_periodeScalarFieldEnum = (typeof Carte_temps_periodeScalarFieldEnum)[keyof typeof Carte_temps_periodeScalarFieldEnum] + + +export const Banque_heure_staffScalarFieldEnum = { + id: 'id', + staff_id: 'staff_id', + week: 'week', + year: 'year', + sunday: 'sunday', + heure: 'heure' +} as const + +export type Banque_heure_staffScalarFieldEnum = (typeof Banque_heure_staffScalarFieldEnum)[keyof typeof Banque_heure_staffScalarFieldEnum] + + +export const Hour_bankScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + remaining_time: 'remaining_time', + expiration_date: 'expiration_date', + note: 'note', + recurrence: 'recurrence', + reset_value: 'reset_value' +} as const + +export type Hour_bankScalarFieldEnum = (typeof Hour_bankScalarFieldEnum)[keyof typeof Hour_bankScalarFieldEnum] + + +export const Hour_bank_detailScalarFieldEnum = { + id: 'id', + hour_id: 'hour_id', + staff_id: 'staff_id', + date_orig: 'date_orig', + used_time: 'used_time', + ticket_id: 'ticket_id', + working_order: 'working_order', + detail: 'detail' +} as const + +export type Hour_bank_detailScalarFieldEnum = (typeof Hour_bank_detailScalarFieldEnum)[keyof typeof Hour_bank_detailScalarFieldEnum] + + +export const TestScalarFieldEnum = { + id: 'id', + text: 'text', + c2: 'c2' +} as const + +export type TestScalarFieldEnum = (typeof TestScalarFieldEnum)[keyof typeof TestScalarFieldEnum] + + +export const Account_memo_templateScalarFieldEnum = { + id: 'id', + name: 'name', + color: 'color', + bcolor: 'bcolor', + border: 'border' +} as const + +export type Account_memo_templateScalarFieldEnum = (typeof Account_memo_templateScalarFieldEnum)[keyof typeof Account_memo_templateScalarFieldEnum] + + +export const NotesScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + notes: 'notes' +} as const + +export type NotesScalarFieldEnum = (typeof NotesScalarFieldEnum)[keyof typeof NotesScalarFieldEnum] + + +export const EmailScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + email: 'email', + password: 'password' +} as const + +export type EmailScalarFieldEnum = (typeof EmailScalarFieldEnum)[keyof typeof EmailScalarFieldEnum] + + +export const Client_pwdScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date: 'date', + uid: 'uid', + used: 'used' +} as const + +export type Client_pwdScalarFieldEnum = (typeof Client_pwdScalarFieldEnum)[keyof typeof Client_pwdScalarFieldEnum] + + +export const Account_profileScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + profile_id: 'profile_id', + address_id: 'address_id', + card_id: 'card_id', + token: 'token', + initial_transaction: 'initial_transaction' +} as const + +export type Account_profileScalarFieldEnum = (typeof Account_profileScalarFieldEnum)[keyof typeof Account_profileScalarFieldEnum] + + +export const Deposit_slipScalarFieldEnum = { + id: 'id', + customer_id: 'customer_id', + name: 'name', + amount: 'amount', + type: 'type', + desc: 'desc', + date: 'date' +} as const + +export type Deposit_slipScalarFieldEnum = (typeof Deposit_slipScalarFieldEnum)[keyof typeof Deposit_slipScalarFieldEnum] + + +export const Account_suspensionScalarFieldEnum = { + id: 'id', + account_id: 'account_id', + date_start: 'date_start', + date_end: 'date_end', + note: 'note' +} as const + +export type Account_suspensionScalarFieldEnum = (typeof Account_suspensionScalarFieldEnum)[keyof typeof Account_suspensionScalarFieldEnum] + + +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] + + +export const accountOrderByRelevanceFieldEnum = { + customer_id: 'customer_id', + language_id: 'language_id', + username: 'username', + password: 'password', + misc: 'misc', + first_name: 'first_name', + middle_name: 'middle_name', + last_name: 'last_name', + mandataire: 'mandataire', + title: 'title', + email: 'email', + email_autre: 'email_autre', + company: 'company', + contact: 'contact', + address1: 'address1', + address2: 'address2', + city: 'city', + state: 'state', + zip: 'zip', + tel_home: 'tel_home', + tel_office: 'tel_office', + tel_office_ext: 'tel_office_ext', + cell: 'cell', + fax: 'fax', + ppa_name: 'ppa_name', + ppa_code: 'ppa_code', + ppa_branch: 'ppa_branch', + ppa_account: 'ppa_account', + notes_client: 'notes_client', + keyword: 'keyword', + terminate_reason: 'terminate_reason', + terminate_cie: 'terminate_cie', + terminate_note: 'terminate_note', + terminate_date: 'terminate_date', + stripe_id: 'stripe_id' +} as const + +export type accountOrderByRelevanceFieldEnum = (typeof accountOrderByRelevanceFieldEnum)[keyof typeof accountOrderByRelevanceFieldEnum] + + +export const account_groupOrderByRelevanceFieldEnum = { + group_name: 'group_name' +} as const + +export type account_groupOrderByRelevanceFieldEnum = (typeof account_groupOrderByRelevanceFieldEnum)[keyof typeof account_groupOrderByRelevanceFieldEnum] + + +export const account_memoOrderByRelevanceFieldEnum = { + memo: 'memo', + color: 'color', + bcolor: 'bcolor', + border: 'border' +} as const + +export type account_memoOrderByRelevanceFieldEnum = (typeof account_memoOrderByRelevanceFieldEnum)[keyof typeof account_memoOrderByRelevanceFieldEnum] + + +export const compta_comptesOrderByRelevanceFieldEnum = { + category: 'category', + num_compte: 'num_compte', + desc: 'desc' +} as const + +export type compta_comptesOrderByRelevanceFieldEnum = (typeof compta_comptesOrderByRelevanceFieldEnum)[keyof typeof compta_comptesOrderByRelevanceFieldEnum] + + +export const compta_comptes_soldesOrderByRelevanceFieldEnum = { + comment: 'comment', + type: 'type' +} as const + +export type compta_comptes_soldesOrderByRelevanceFieldEnum = (typeof compta_comptes_soldesOrderByRelevanceFieldEnum)[keyof typeof compta_comptes_soldesOrderByRelevanceFieldEnum] + + +export const compta_journal_ecritureOrderByRelevanceFieldEnum = { + type: 'type', + customer_id: 'customer_id', + full_name: 'full_name', + desc: 'desc', + mo: 'mo' +} as const + +export type compta_journal_ecritureOrderByRelevanceFieldEnum = (typeof compta_journal_ecritureOrderByRelevanceFieldEnum)[keyof typeof compta_journal_ecritureOrderByRelevanceFieldEnum] + + +export const compta_journal_ecriture_bkOrderByRelevanceFieldEnum = { + type: 'type', + customer_id: 'customer_id', + full_name: 'full_name', + desc: 'desc', + mo: 'mo' +} as const + +export type compta_journal_ecriture_bkOrderByRelevanceFieldEnum = (typeof compta_journal_ecriture_bkOrderByRelevanceFieldEnum)[keyof typeof compta_journal_ecriture_bkOrderByRelevanceFieldEnum] + + +export const compta_journal_ecriture_detailOrderByRelevanceFieldEnum = { + action: 'action' +} as const + +export type compta_journal_ecriture_detailOrderByRelevanceFieldEnum = (typeof compta_journal_ecriture_detailOrderByRelevanceFieldEnum)[keyof typeof compta_journal_ecriture_detailOrderByRelevanceFieldEnum] + + +export const compta_journal_ecriture_detail_bkOrderByRelevanceFieldEnum = { + action: 'action' +} as const + +export type compta_journal_ecriture_detail_bkOrderByRelevanceFieldEnum = (typeof compta_journal_ecriture_detail_bkOrderByRelevanceFieldEnum)[keyof typeof compta_journal_ecriture_detail_bkOrderByRelevanceFieldEnum] + + +export const compta_setupOrderByRelevanceFieldEnum = { + attachment_ext: 'attachment_ext', + imap_token: 'imap_token' +} as const + +export type compta_setupOrderByRelevanceFieldEnum = (typeof compta_setupOrderByRelevanceFieldEnum)[keyof typeof compta_setupOrderByRelevanceFieldEnum] + + +export const credit_codeOrderByRelevanceFieldEnum = { + code: 'code', + desc: 'desc' +} as const + +export type credit_codeOrderByRelevanceFieldEnum = (typeof credit_codeOrderByRelevanceFieldEnum)[keyof typeof credit_codeOrderByRelevanceFieldEnum] + + +export const taxOrderByRelevanceFieldEnum = { + name: 'name', + description: 'description' +} as const + +export type taxOrderByRelevanceFieldEnum = (typeof taxOrderByRelevanceFieldEnum)[keyof typeof taxOrderByRelevanceFieldEnum] + + +export const tax_groupOrderByRelevanceFieldEnum = { + name: 'name', + description: 'description', + tax: 'tax' +} as const + +export type tax_groupOrderByRelevanceFieldEnum = (typeof tax_groupOrderByRelevanceFieldEnum)[keyof typeof tax_groupOrderByRelevanceFieldEnum] + + +export const td_payableOrderByRelevanceFieldEnum = { + invoice: 'invoice', + date_invoice: 'date_invoice', + fournisseur: 'fournisseur', + devise: 'devise', + methode: 'methode', + reference: 'reference', + date_paiement: 'date_paiement', + releve: 'releve' +} as const + +export type td_payableOrderByRelevanceFieldEnum = (typeof td_payableOrderByRelevanceFieldEnum)[keyof typeof td_payableOrderByRelevanceFieldEnum] + + +export const consoOrderByRelevanceFieldEnum = { + ip_id: 'ip_id' +} as const + +export type consoOrderByRelevanceFieldEnum = (typeof consoOrderByRelevanceFieldEnum)[keyof typeof consoOrderByRelevanceFieldEnum] + + +export const conso_archiveOrderByRelevanceFieldEnum = { + ip_id: 'ip_id' +} as const + +export type conso_archiveOrderByRelevanceFieldEnum = (typeof conso_archiveOrderByRelevanceFieldEnum)[keyof typeof conso_archiveOrderByRelevanceFieldEnum] + + +export const conso_avisOrderByRelevanceFieldEnum = { + avis: 'avis' +} as const + +export type conso_avisOrderByRelevanceFieldEnum = (typeof conso_avisOrderByRelevanceFieldEnum)[keyof typeof conso_avisOrderByRelevanceFieldEnum] + + +export const conso_radiusOrderByRelevanceFieldEnum = { + username: 'username', + date: 'date', + download: 'download', + upload: 'upload' +} as const + +export type conso_radiusOrderByRelevanceFieldEnum = (typeof conso_radiusOrderByRelevanceFieldEnum)[keyof typeof conso_radiusOrderByRelevanceFieldEnum] + + +export const conso_radius_dailyOrderByRelevanceFieldEnum = { + username: 'username', + date: 'date', + download_nuit: 'download_nuit', + upload_nuit: 'upload_nuit', + download_jour: 'download_jour', + upload_jour: 'upload_jour' +} as const + +export type conso_radius_dailyOrderByRelevanceFieldEnum = (typeof conso_radius_dailyOrderByRelevanceFieldEnum)[keyof typeof conso_radius_dailyOrderByRelevanceFieldEnum] + + +export const conso_radius_daily2OrderByRelevanceFieldEnum = { + username: 'username', + date: 'date', + download_nuit: 'download_nuit', + upload_nuit: 'upload_nuit', + download_jour: 'download_jour', + upload_jour: 'upload_jour' +} as const + +export type conso_radius_daily2OrderByRelevanceFieldEnum = (typeof conso_radius_daily2OrderByRelevanceFieldEnum)[keyof typeof conso_radius_daily2OrderByRelevanceFieldEnum] + + +export const conso_radius_hourlyOrderByRelevanceFieldEnum = { + username: 'username', + date: 'date', + download: 'download', + upload: 'upload' +} as const + +export type conso_radius_hourlyOrderByRelevanceFieldEnum = (typeof conso_radius_hourlyOrderByRelevanceFieldEnum)[keyof typeof conso_radius_hourlyOrderByRelevanceFieldEnum] + + +export const conso_radius_monthlyOrderByRelevanceFieldEnum = { + date: 'date', + username: 'username', + nuit: 'nuit', + jour: 'jour' +} as const + +export type conso_radius_monthlyOrderByRelevanceFieldEnum = (typeof conso_radius_monthlyOrderByRelevanceFieldEnum)[keyof typeof conso_radius_monthlyOrderByRelevanceFieldEnum] + + +export const conso_radius_monthly2OrderByRelevanceFieldEnum = { + date: 'date', + username: 'username', + nuit: 'nuit', + jour: 'jour' +} as const + +export type conso_radius_monthly2OrderByRelevanceFieldEnum = (typeof conso_radius_monthly2OrderByRelevanceFieldEnum)[keyof typeof conso_radius_monthly2OrderByRelevanceFieldEnum] + + +export const deliveryOrderByRelevanceFieldEnum = { + name: 'name', + comment: 'comment', + address1: 'address1', + address2: 'address2', + city: 'city', + state: 'state', + zip: 'zip', + tel_home: 'tel_home', + tel_office: 'tel_office', + tel_office_ext: 'tel_office_ext', + cell: 'cell', + fax: 'fax', + email: 'email', + contact: 'contact' +} as const + +export type deliveryOrderByRelevanceFieldEnum = (typeof deliveryOrderByRelevanceFieldEnum)[keyof typeof deliveryOrderByRelevanceFieldEnum] + + +export const delivery_historyOrderByRelevanceFieldEnum = { + address1: 'address1', + address2: 'address2', + city: 'city', + state: 'state', + zip: 'zip' +} as const + +export type delivery_historyOrderByRelevanceFieldEnum = (typeof delivery_historyOrderByRelevanceFieldEnum)[keyof typeof delivery_historyOrderByRelevanceFieldEnum] + + +export const deviceOrderByRelevanceFieldEnum = { + category: 'category', + name: 'name', + manufacturier: 'manufacturier', + model: 'model', + sn: 'sn', + mac: 'mac', + manage: 'manage', + port: 'port', + protocol: 'protocol', + manage_cli: 'manage_cli', + port_cli: 'port_cli', + protocol_cli: 'protocol_cli', + user: 'user', + pass: 'pass' +} as const + +export type deviceOrderByRelevanceFieldEnum = (typeof deviceOrderByRelevanceFieldEnum)[keyof typeof deviceOrderByRelevanceFieldEnum] + + +export const device_archiveOrderByRelevanceFieldEnum = { + category: 'category', + name: 'name', + manufacturier: 'manufacturier', + model: 'model', + sn: 'sn', + mac: 'mac', + manage: 'manage', + port: 'port', + protocol: 'protocol', + manage_cli: 'manage_cli', + port_cli: 'port_cli', + protocol_cli: 'protocol_cli', + user: 'user', + pass: 'pass' +} as const + +export type device_archiveOrderByRelevanceFieldEnum = (typeof device_archiveOrderByRelevanceFieldEnum)[keyof typeof device_archiveOrderByRelevanceFieldEnum] + + +export const device_attrOrderByRelevanceFieldEnum = { + attr: 'attr', + value: 'value' +} as const + +export type device_attrOrderByRelevanceFieldEnum = (typeof device_attrOrderByRelevanceFieldEnum)[keyof typeof device_attrOrderByRelevanceFieldEnum] + + +export const device_templateOrderByRelevanceFieldEnum = { + nom: 'nom' +} as const + +export type device_templateOrderByRelevanceFieldEnum = (typeof device_templateOrderByRelevanceFieldEnum)[keyof typeof device_templateOrderByRelevanceFieldEnum] + + +export const device_template_attrOrderByRelevanceFieldEnum = { + attr: 'attr', + default_val: 'default_val' +} as const + +export type device_template_attrOrderByRelevanceFieldEnum = (typeof device_template_attrOrderByRelevanceFieldEnum)[keyof typeof device_template_attrOrderByRelevanceFieldEnum] + + +export const productOrderByRelevanceFieldEnum = { + sku: 'sku', + inv_tag: 'inv_tag', + emplacement: 'emplacement', + fibre_lineprofile: 'fibre_lineprofile', + fibre_serviceprofile: 'fibre_serviceprofile' +} as const + +export type productOrderByRelevanceFieldEnum = (typeof productOrderByRelevanceFieldEnum)[keyof typeof productOrderByRelevanceFieldEnum] + + +export const product_catOrderByRelevanceFieldEnum = { + name: 'name', + notes: 'notes' +} as const + +export type product_catOrderByRelevanceFieldEnum = (typeof product_catOrderByRelevanceFieldEnum)[keyof typeof product_catOrderByRelevanceFieldEnum] + + +export const product_formatOrderByRelevanceFieldEnum = { + name: 'name', + product_idx: 'product_idx', + description: 'description' +} as const + +export type product_formatOrderByRelevanceFieldEnum = (typeof product_formatOrderByRelevanceFieldEnum)[keyof typeof product_formatOrderByRelevanceFieldEnum] + + +export const product_fournisseurOrderByRelevanceFieldEnum = { + nom_fournisseur: 'nom_fournisseur', + prix_livr: 'prix_livr', + delais_livr: 'delais_livr', + comment: 'comment' +} as const + +export type product_fournisseurOrderByRelevanceFieldEnum = (typeof product_fournisseurOrderByRelevanceFieldEnum)[keyof typeof product_fournisseurOrderByRelevanceFieldEnum] + + +export const product_profileOrderByRelevanceFieldEnum = { + device_type: 'device_type' +} as const + +export type product_profileOrderByRelevanceFieldEnum = (typeof product_profileOrderByRelevanceFieldEnum)[keyof typeof product_profileOrderByRelevanceFieldEnum] + + +export const product_translateOrderByRelevanceFieldEnum = { + language_id: 'language_id', + name: 'name', + description_short: 'description_short', + description_full: 'description_full' +} as const + +export type product_translateOrderByRelevanceFieldEnum = (typeof product_translateOrderByRelevanceFieldEnum)[keyof typeof product_translateOrderByRelevanceFieldEnum] + + +export const product_zoneOrderByRelevanceFieldEnum = { + description: 'description' +} as const + +export type product_zoneOrderByRelevanceFieldEnum = (typeof product_zoneOrderByRelevanceFieldEnum)[keyof typeof product_zoneOrderByRelevanceFieldEnum] + + +export const inventaire_logOrderByRelevanceFieldEnum = { + prod_tag: 'prod_tag', + action: 'action', + timestamp: 'timestamp' +} as const + +export type inventaire_logOrderByRelevanceFieldEnum = (typeof inventaire_logOrderByRelevanceFieldEnum)[keyof typeof inventaire_logOrderByRelevanceFieldEnum] + + +export const phoneOrderByRelevanceFieldEnum = { + phone_num: 'phone_num', + note: 'note', + fournisseur: 'fournisseur' +} as const + +export type phoneOrderByRelevanceFieldEnum = (typeof phoneOrderByRelevanceFieldEnum)[keyof typeof phoneOrderByRelevanceFieldEnum] + + +export const phone_addrOrderByRelevanceFieldEnum = { + phone: 'phone', + street_number: 'street_number', + apt: 'apt', + street_name: 'street_name', + city: 'city', + state: 'state', + zip: 'zip', + first_name: 'first_name', + last_name: 'last_name', + info: 'info', + code_cauca: 'code_cauca', + class_service: 'class_service' +} as const + +export type phone_addrOrderByRelevanceFieldEnum = (typeof phone_addrOrderByRelevanceFieldEnum)[keyof typeof phone_addrOrderByRelevanceFieldEnum] + + +export const phone_comwaveOrderByRelevanceFieldEnum = { + phoneNumber: 'phoneNumber', + status: 'status', + date: 'date', + reason: 'reason' +} as const + +export type phone_comwaveOrderByRelevanceFieldEnum = (typeof phone_comwaveOrderByRelevanceFieldEnum)[keyof typeof phone_comwaveOrderByRelevanceFieldEnum] + + +export const phone_noteOrderByRelevanceFieldEnum = { + phone: 'phone', + rate_center: 'rate_center', + fournisseur: 'fournisseur', + note: 'note' +} as const + +export type phone_noteOrderByRelevanceFieldEnum = (typeof phone_noteOrderByRelevanceFieldEnum)[keyof typeof phone_noteOrderByRelevanceFieldEnum] + + +export const phone_provisioningOrderByRelevanceFieldEnum = { + phone: 'phone', + app: 'app', + mac: 'mac', + password: 'password', + internationnal: 'internationnal' +} as const + +export type phone_provisioningOrderByRelevanceFieldEnum = (typeof phone_provisioningOrderByRelevanceFieldEnum)[keyof typeof phone_provisioningOrderByRelevanceFieldEnum] + + +export const phonecall_log_2025OrderByRelevanceFieldEnum = { + caller_id_name: 'caller_id_name', + caller_id_number: 'caller_id_number', + destination_number: 'destination_number', + hangup_cause: 'hangup_cause', + uuid: 'uuid' +} as const + +export type phonecall_log_2025OrderByRelevanceFieldEnum = (typeof phonecall_log_2025OrderByRelevanceFieldEnum)[keyof typeof phonecall_log_2025OrderByRelevanceFieldEnum] + + +export const phonecall_log_2026OrderByRelevanceFieldEnum = { + caller_id_name: 'caller_id_name', + caller_id_number: 'caller_id_number', + destination_number: 'destination_number', + hangup_cause: 'hangup_cause', + uuid: 'uuid' +} as const + +export type phonecall_log_2026OrderByRelevanceFieldEnum = (typeof phonecall_log_2026OrderByRelevanceFieldEnum)[keyof typeof phonecall_log_2026OrderByRelevanceFieldEnum] + + +export const voicemeupOrderByRelevanceFieldEnum = { + destination: 'destination', + country: 'country', + state: 'state', + district: 'district', + uuid: 'uuid' +} as const + +export type voicemeupOrderByRelevanceFieldEnum = (typeof voicemeupOrderByRelevanceFieldEnum)[keyof typeof voicemeupOrderByRelevanceFieldEnum] + + +export const pbxOrderByRelevanceFieldEnum = { + phone: 'phone', + name: 'name', + password: 'password', + vm_password: 'vm_password', + vm_email: 'vm_email', + int_code: 'int_code', + language: 'language', + call_911: 'call_911', + user_context: 'user_context', + country_whitelist: 'country_whitelist' +} as const + +export type pbxOrderByRelevanceFieldEnum = (typeof pbxOrderByRelevanceFieldEnum)[keyof typeof pbxOrderByRelevanceFieldEnum] + + +export const pbx_appOrderByRelevanceFieldEnum = { + username: 'username', + mac: 'mac', + app: 'app', + note: 'note' +} as const + +export type pbx_appOrderByRelevanceFieldEnum = (typeof pbx_appOrderByRelevanceFieldEnum)[keyof typeof pbx_appOrderByRelevanceFieldEnum] + + +export const pbx_comOrderByRelevanceFieldEnum = { + phone: 'phone', + name: 'name', + failover: 'failover', + auth_method: 'auth_method', + password: 'password', + ip: 'ip', + int_code: 'int_code', + country_whitelist: 'country_whitelist', + language: 'language', + call_911: 'call_911', + user_context: 'user_context', + date_origin: 'date_origin', + date_update: 'date_update' +} as const + +export type pbx_comOrderByRelevanceFieldEnum = (typeof pbx_comOrderByRelevanceFieldEnum)[keyof typeof pbx_comOrderByRelevanceFieldEnum] + + +export const pbx_com_wlOrderByRelevanceFieldEnum = { + phone: 'phone', + country_whitelist: 'country_whitelist' +} as const + +export type pbx_com_wlOrderByRelevanceFieldEnum = (typeof pbx_com_wlOrderByRelevanceFieldEnum)[keyof typeof pbx_com_wlOrderByRelevanceFieldEnum] + + +export const pbx_faxOrderByRelevanceFieldEnum = { + number: 'number', + email: 'email', + description: 'description' +} as const + +export type pbx_faxOrderByRelevanceFieldEnum = (typeof pbx_faxOrderByRelevanceFieldEnum)[keyof typeof pbx_faxOrderByRelevanceFieldEnum] + + +export const paymentOrderByRelevanceFieldEnum = { + type: 'type', + memo: 'memo', + reference: 'reference', + uniqsess: 'uniqsess' +} as const + +export type paymentOrderByRelevanceFieldEnum = (typeof paymentOrderByRelevanceFieldEnum)[keyof typeof paymentOrderByRelevanceFieldEnum] + + +export const passwords_managerOrderByRelevanceFieldEnum = { + title: 'title', + login: 'login', + pass: 'pass', + url: 'url', + email: 'email', + phone: 'phone', + category: 'category', + subcategory: 'subcategory', + desc: 'desc', + notes: 'notes', + logs: 'logs', + users_granted: 'users_granted', + group_granted: 'group_granted', + keywords: 'keywords' +} as const + +export type passwords_managerOrderByRelevanceFieldEnum = (typeof passwords_managerOrderByRelevanceFieldEnum)[keyof typeof passwords_managerOrderByRelevanceFieldEnum] + + +export const passwords_manager_catOrderByRelevanceFieldEnum = { + title: 'title', + desc: 'desc' +} as const + +export type passwords_manager_catOrderByRelevanceFieldEnum = (typeof passwords_manager_catOrderByRelevanceFieldEnum)[keyof typeof passwords_manager_catOrderByRelevanceFieldEnum] + + +export const passwords_manager_groupOrderByRelevanceFieldEnum = { + name: 'name', + users: 'users' +} as const + +export type passwords_manager_groupOrderByRelevanceFieldEnum = (typeof passwords_manager_groupOrderByRelevanceFieldEnum)[keyof typeof passwords_manager_groupOrderByRelevanceFieldEnum] + + +export const notificationOrderByRelevanceFieldEnum = { + endpoint: 'endpoint', + authToken: 'authToken', + publicKey: 'publicKey', + contentEncoding: 'contentEncoding', + plateforme: 'plateforme' +} as const + +export type notificationOrderByRelevanceFieldEnum = (typeof notificationOrderByRelevanceFieldEnum)[keyof typeof notificationOrderByRelevanceFieldEnum] + + +export const notification_payloadOrderByRelevanceFieldEnum = { + payload: 'payload' +} as const + +export type notification_payloadOrderByRelevanceFieldEnum = (typeof notification_payloadOrderByRelevanceFieldEnum)[keyof typeof notification_payloadOrderByRelevanceFieldEnum] + + +export const municipaliteOrderByRelevanceFieldEnum = { + nom: 'nom', + code: 'code', + administration: 'administration' +} as const + +export type municipaliteOrderByRelevanceFieldEnum = (typeof municipaliteOrderByRelevanceFieldEnum)[keyof typeof municipaliteOrderByRelevanceFieldEnum] + + +export const sommaire_porteOrderByRelevanceFieldEnum = { + id_adresse: 'id_adresse', + id_subvention: 'id_subvention', + adresse_subvention: 'adresse_subvention', + ville_subvention: 'ville_subvention', + latitude: 'latitude', + longitude: 'longitude' +} as const + +export type sommaire_porteOrderByRelevanceFieldEnum = (typeof sommaire_porteOrderByRelevanceFieldEnum)[keyof typeof sommaire_porteOrderByRelevanceFieldEnum] + + +export const stateOrderByRelevanceFieldEnum = { + name_en: 'name_en', + name_fr: 'name_fr', + abbrev: 'abbrev', + country: 'country' +} as const + +export type stateOrderByRelevanceFieldEnum = (typeof stateOrderByRelevanceFieldEnum)[keyof typeof stateOrderByRelevanceFieldEnum] + + +export const licenceOrderByRelevanceFieldEnum = { + nom: 'nom', + date: 'date', + can_manage: 'can_manage', + comment: 'comment' +} as const + +export type licenceOrderByRelevanceFieldEnum = (typeof licenceOrderByRelevanceFieldEnum)[keyof typeof licenceOrderByRelevanceFieldEnum] + + +export const licence_keyOrderByRelevanceFieldEnum = { + licence_key: 'licence_key', + date: 'date', + date_expire: 'date_expire', + comment: 'comment' +} as const + +export type licence_keyOrderByRelevanceFieldEnum = (typeof licence_keyOrderByRelevanceFieldEnum)[keyof typeof licence_keyOrderByRelevanceFieldEnum] + + +export const ipOrderByRelevanceFieldEnum = { + ip: 'ip', + prive: 'prive', + ip_relais: 'ip_relais', + technology: 'technology', + name_access_point: 'name_access_point', + mac: 'mac', + web_link: 'web_link', + link_relais: 'link_relais', + comment: 'comment', + cidr: 'cidr' +} as const + +export type ipOrderByRelevanceFieldEnum = (typeof ipOrderByRelevanceFieldEnum)[keyof typeof ipOrderByRelevanceFieldEnum] + + +export const ip_adminOrderByRelevanceFieldEnum = { + ip: 'ip', + comment: 'comment' +} as const + +export type ip_adminOrderByRelevanceFieldEnum = (typeof ip_adminOrderByRelevanceFieldEnum)[keyof typeof ip_adminOrderByRelevanceFieldEnum] + + +export const ip_historyOrderByRelevanceFieldEnum = { + ip: 'ip' +} as const + +export type ip_historyOrderByRelevanceFieldEnum = (typeof ip_historyOrderByRelevanceFieldEnum)[keyof typeof ip_historyOrderByRelevanceFieldEnum] + + +export const ip_ppOrderByRelevanceFieldEnum = { + ip_prive: 'ip_prive', + ip_public: 'ip_public', + ip_id: 'ip_id' +} as const + +export type ip_ppOrderByRelevanceFieldEnum = (typeof ip_ppOrderByRelevanceFieldEnum)[keyof typeof ip_ppOrderByRelevanceFieldEnum] + + +export const ip_staticOrderByRelevanceFieldEnum = { + ip: 'ip', + reverse: 'reverse' +} as const + +export type ip_staticOrderByRelevanceFieldEnum = (typeof ip_staticOrderByRelevanceFieldEnum)[keyof typeof ip_staticOrderByRelevanceFieldEnum] + + +export const ip_targoOrderByRelevanceFieldEnum = { + ip: 'ip', + comment: 'comment' +} as const + +export type ip_targoOrderByRelevanceFieldEnum = (typeof ip_targoOrderByRelevanceFieldEnum)[keyof typeof ip_targoOrderByRelevanceFieldEnum] + + +export const invoiceOrderByRelevanceFieldEnum = { + notes: 'notes', + template_message: 'template_message', + working_order: 'working_order' +} as const + +export type invoiceOrderByRelevanceFieldEnum = (typeof invoiceOrderByRelevanceFieldEnum)[keyof typeof invoiceOrderByRelevanceFieldEnum] + + +export const invoice_bkOrderByRelevanceFieldEnum = { + notes: 'notes', + template_message: 'template_message', + working_order: 'working_order' +} as const + +export type invoice_bkOrderByRelevanceFieldEnum = (typeof invoice_bkOrderByRelevanceFieldEnum)[keyof typeof invoice_bkOrderByRelevanceFieldEnum] + + +export const invoice_callOrderByRelevanceFieldEnum = { + number: 'number' +} as const + +export type invoice_callOrderByRelevanceFieldEnum = (typeof invoice_callOrderByRelevanceFieldEnum)[keyof typeof invoice_callOrderByRelevanceFieldEnum] + + +export const invoice_itemOrderByRelevanceFieldEnum = { + sku: 'sku', + product_name: 'product_name', + delivery_name: 'delivery_name' +} as const + +export type invoice_itemOrderByRelevanceFieldEnum = (typeof invoice_itemOrderByRelevanceFieldEnum)[keyof typeof invoice_itemOrderByRelevanceFieldEnum] + + +export const invoice_item_bkOrderByRelevanceFieldEnum = { + sku: 'sku', + product_name: 'product_name', + delivery_name: 'delivery_name' +} as const + +export type invoice_item_bkOrderByRelevanceFieldEnum = (typeof invoice_item_bkOrderByRelevanceFieldEnum)[keyof typeof invoice_item_bkOrderByRelevanceFieldEnum] + + +export const invoice_msg_templateOrderByRelevanceFieldEnum = { + name: 'name', + message: 'message' +} as const + +export type invoice_msg_templateOrderByRelevanceFieldEnum = (typeof invoice_msg_templateOrderByRelevanceFieldEnum)[keyof typeof invoice_msg_templateOrderByRelevanceFieldEnum] + + +export const invoice_taxOrderByRelevanceFieldEnum = { + tax_name: 'tax_name', + tax_description: 'tax_description' +} as const + +export type invoice_taxOrderByRelevanceFieldEnum = (typeof invoice_taxOrderByRelevanceFieldEnum)[keyof typeof invoice_taxOrderByRelevanceFieldEnum] + + +export const invoice_tax_bkOrderByRelevanceFieldEnum = { + tax_name: 'tax_name', + tax_description: 'tax_description' +} as const + +export type invoice_tax_bkOrderByRelevanceFieldEnum = (typeof invoice_tax_bkOrderByRelevanceFieldEnum)[keyof typeof invoice_tax_bkOrderByRelevanceFieldEnum] + + +export const accord_paiementOrderByRelevanceFieldEnum = { + raison_changement: 'raison_changement', + note: 'note', + date_create: 'date_create' +} as const + +export type accord_paiementOrderByRelevanceFieldEnum = (typeof accord_paiementOrderByRelevanceFieldEnum)[keyof typeof accord_paiementOrderByRelevanceFieldEnum] + + +export const autologinOrderByRelevanceFieldEnum = { + token: 'token', + date: 'date' +} as const + +export type autologinOrderByRelevanceFieldEnum = (typeof autologinOrderByRelevanceFieldEnum)[keyof typeof autologinOrderByRelevanceFieldEnum] + + +export const statementOrderByRelevanceFieldEnum = { + type: 'type', + reference: 'reference' +} as const + +export type statementOrderByRelevanceFieldEnum = (typeof statementOrderByRelevanceFieldEnum)[keyof typeof statementOrderByRelevanceFieldEnum] + + +export const intranet_docOrderByRelevanceFieldEnum = { + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv' +} as const + +export type intranet_docOrderByRelevanceFieldEnum = (typeof intranet_docOrderByRelevanceFieldEnum)[keyof typeof intranet_docOrderByRelevanceFieldEnum] + + +export const intranet_doc_pathsOrderByRelevanceFieldEnum = { + description: 'description' +} as const + +export type intranet_doc_pathsOrderByRelevanceFieldEnum = (typeof intranet_doc_pathsOrderByRelevanceFieldEnum)[keyof typeof intranet_doc_pathsOrderByRelevanceFieldEnum] + + +export const intranet_doc_replyOrderByRelevanceFieldEnum = { + msg: 'msg' +} as const + +export type intranet_doc_replyOrderByRelevanceFieldEnum = (typeof intranet_doc_replyOrderByRelevanceFieldEnum)[keyof typeof intranet_doc_replyOrderByRelevanceFieldEnum] + + +export const intranet_feedOrderByRelevanceFieldEnum = { + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv' +} as const + +export type intranet_feedOrderByRelevanceFieldEnum = (typeof intranet_feedOrderByRelevanceFieldEnum)[keyof typeof intranet_feedOrderByRelevanceFieldEnum] + + +export const intranet_feed_replyOrderByRelevanceFieldEnum = { + msg: 'msg' +} as const + +export type intranet_feed_replyOrderByRelevanceFieldEnum = (typeof intranet_feed_replyOrderByRelevanceFieldEnum)[keyof typeof intranet_feed_replyOrderByRelevanceFieldEnum] + + +export const intranet_techniciensOrderByRelevanceFieldEnum = { + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv' +} as const + +export type intranet_techniciensOrderByRelevanceFieldEnum = (typeof intranet_techniciensOrderByRelevanceFieldEnum)[keyof typeof intranet_techniciensOrderByRelevanceFieldEnum] + + +export const intranet_techniciens_replyOrderByRelevanceFieldEnum = { + msg: 'msg' +} as const + +export type intranet_techniciens_replyOrderByRelevanceFieldEnum = (typeof intranet_techniciens_replyOrderByRelevanceFieldEnum)[keyof typeof intranet_techniciens_replyOrderByRelevanceFieldEnum] + + +export const intranet_technoOrderByRelevanceFieldEnum = { + title: 'title', + msg: 'msg', + attachment: 'attachment', + unread_csv: 'unread_csv' +} as const + +export type intranet_technoOrderByRelevanceFieldEnum = (typeof intranet_technoOrderByRelevanceFieldEnum)[keyof typeof intranet_technoOrderByRelevanceFieldEnum] + + +export const intranet_techno_replyOrderByRelevanceFieldEnum = { + msg: 'msg' +} as const + +export type intranet_techno_replyOrderByRelevanceFieldEnum = (typeof intranet_techno_replyOrderByRelevanceFieldEnum)[keyof typeof intranet_techno_replyOrderByRelevanceFieldEnum] + + +export const fibreOrderByRelevanceFieldEnum = { + terrain: 'terrain', + rue: 'rue', + ville: 'ville', + zip: 'zip', + sn: 'sn', + info_connect: 'info_connect', + description: 'description' +} as const + +export type fibreOrderByRelevanceFieldEnum = (typeof fibreOrderByRelevanceFieldEnum)[keyof typeof fibreOrderByRelevanceFieldEnum] + + +export const fibre_oltOrderByRelevanceFieldEnum = { + ip: 'ip', + description: 'description' +} as const + +export type fibre_oltOrderByRelevanceFieldEnum = (typeof fibre_oltOrderByRelevanceFieldEnum)[keyof typeof fibre_oltOrderByRelevanceFieldEnum] + + +export const fibre_suiviOrderByRelevanceFieldEnum = { + customer_id: 'customer_id', + first_name: 'first_name', + last_name: 'last_name', + address: 'address', + city: 'city', + zip: 'zip', + phone: 'phone', + email: 'email', + note: 'note' +} as const + +export type fibre_suiviOrderByRelevanceFieldEnum = (typeof fibre_suiviOrderByRelevanceFieldEnum)[keyof typeof fibre_suiviOrderByRelevanceFieldEnum] + + +export const fibre_techOrderByRelevanceFieldEnum = { + description: 'description' +} as const + +export type fibre_techOrderByRelevanceFieldEnum = (typeof fibre_techOrderByRelevanceFieldEnum)[keyof typeof fibre_techOrderByRelevanceFieldEnum] + + +export const fibre_videotronOrderByRelevanceFieldEnum = { + date: 'date', + download: 'download', + upload: 'upload', + ethernet: 'ethernet', + interface: 'interface' +} as const + +export type fibre_videotronOrderByRelevanceFieldEnum = (typeof fibre_videotronOrderByRelevanceFieldEnum)[keyof typeof fibre_videotronOrderByRelevanceFieldEnum] + + +export const ganttOrderByRelevanceFieldEnum = { + name: 'name', + gantt: 'gantt' +} as const + +export type ganttOrderByRelevanceFieldEnum = (typeof ganttOrderByRelevanceFieldEnum)[keyof typeof ganttOrderByRelevanceFieldEnum] + + +export const gantt_templateOrderByRelevanceFieldEnum = { + name: 'name', + gantt: 'gantt' +} as const + +export type gantt_templateOrderByRelevanceFieldEnum = (typeof gantt_templateOrderByRelevanceFieldEnum)[keyof typeof gantt_templateOrderByRelevanceFieldEnum] + + +export const projectOrderByRelevanceFieldEnum = { + name: 'name', + status: 'status', + desc: 'desc', + manager_name: 'manager_name' +} as const + +export type projectOrderByRelevanceFieldEnum = (typeof projectOrderByRelevanceFieldEnum)[keyof typeof projectOrderByRelevanceFieldEnum] + + +export const project_cmdOrderByRelevanceFieldEnum = { + vendeur: 'vendeur', + no_cmd: 'no_cmd', + po: 'po' +} as const + +export type project_cmdOrderByRelevanceFieldEnum = (typeof project_cmdOrderByRelevanceFieldEnum)[keyof typeof project_cmdOrderByRelevanceFieldEnum] + + +export const project_cmd_itemOrderByRelevanceFieldEnum = { + desc: 'desc', + date_recu: 'date_recu', + comment: 'comment', + eta: 'eta' +} as const + +export type project_cmd_itemOrderByRelevanceFieldEnum = (typeof project_cmd_itemOrderByRelevanceFieldEnum)[keyof typeof project_cmd_itemOrderByRelevanceFieldEnum] + + +export const project_manager_catOrderByRelevanceFieldEnum = { + name: 'name', + color: 'color', + text_color: 'text_color' +} as const + +export type project_manager_catOrderByRelevanceFieldEnum = (typeof project_manager_catOrderByRelevanceFieldEnum)[keyof typeof project_manager_catOrderByRelevanceFieldEnum] + + +export const project_manager_checklistOrderByRelevanceFieldEnum = { + desc: 'desc' +} as const + +export type project_manager_checklistOrderByRelevanceFieldEnum = (typeof project_manager_checklistOrderByRelevanceFieldEnum)[keyof typeof project_manager_checklistOrderByRelevanceFieldEnum] + + +export const project_manager_commentOrderByRelevanceFieldEnum = { + comment: 'comment', + date: 'date', + unread: 'unread' +} as const + +export type project_manager_commentOrderByRelevanceFieldEnum = (typeof project_manager_commentOrderByRelevanceFieldEnum)[keyof typeof project_manager_commentOrderByRelevanceFieldEnum] + + +export const project_manager_taskOrderByRelevanceFieldEnum = { + titre: 'titre', + color: 'color', + text_color: 'text_color', + desc: 'desc', + ticket_id: 'ticket_id', + date_start: 'date_start', + date_deadline: 'date_deadline', + assign_staff: 'assign_staff', + date_creation: 'date_creation', + date_update: 'date_update' +} as const + +export type project_manager_taskOrderByRelevanceFieldEnum = (typeof project_manager_taskOrderByRelevanceFieldEnum)[keyof typeof project_manager_taskOrderByRelevanceFieldEnum] + + +export const serviceOrderByRelevanceFieldEnum = { + comment: 'comment', + hijack_desc: 'hijack_desc', + radius_user: 'radius_user', + radius_pwd: 'radius_pwd' +} as const + +export type serviceOrderByRelevanceFieldEnum = (typeof serviceOrderByRelevanceFieldEnum)[keyof typeof serviceOrderByRelevanceFieldEnum] + + +export const soumissionOrderByRelevanceFieldEnum = { + name: 'name', + po: 'po', + date: 'date', + materiel: 'materiel', + mensuel: 'mensuel', + text: 'text' +} as const + +export type soumissionOrderByRelevanceFieldEnum = (typeof soumissionOrderByRelevanceFieldEnum)[keyof typeof soumissionOrderByRelevanceFieldEnum] + + +export const soumission_templateOrderByRelevanceFieldEnum = { + name: 'name', + materiel: 'materiel', + mensuel: 'mensuel' +} as const + +export type soumission_templateOrderByRelevanceFieldEnum = (typeof soumission_templateOrderByRelevanceFieldEnum)[keyof typeof soumission_templateOrderByRelevanceFieldEnum] + + +export const staffOrderByRelevanceFieldEnum = { + username: 'username', + password: 'password', + vpn: 'vpn', + first_name: 'first_name', + last_name: 'last_name', + email: 'email', + ext: 'ext', + cell: 'cell', + gpin: 'gpin', + rights: 'rights', + date_embauche: 'date_embauche', + fete: 'fete', + supp: 'supp', + group_ad: 'group_ad', + dept_list: 'dept_list', + notification: 'notification', + compagnie_desjardins: 'compagnie_desjardins' +} as const + +export type staffOrderByRelevanceFieldEnum = (typeof staffOrderByRelevanceFieldEnum)[keyof typeof staffOrderByRelevanceFieldEnum] + + +export const staff_suppOrderByRelevanceFieldEnum = { + nom: 'nom', + staff_ids: 'staff_ids' +} as const + +export type staff_suppOrderByRelevanceFieldEnum = (typeof staff_suppOrderByRelevanceFieldEnum)[keyof typeof staff_suppOrderByRelevanceFieldEnum] + + +export const tele_carteOrderByRelevanceFieldEnum = { + channels: 'channels' +} as const + +export type tele_carteOrderByRelevanceFieldEnum = (typeof tele_carteOrderByRelevanceFieldEnum)[keyof typeof tele_carteOrderByRelevanceFieldEnum] + + +export const tele_channelOrderByRelevanceFieldEnum = { + proprio: 'proprio', + poste: 'poste', + note: 'note', + uptele_code: 'uptele_code', + abbr: 'abbr', + ccsa_desc: 'ccsa_desc' +} as const + +export type tele_channelOrderByRelevanceFieldEnum = (typeof tele_channelOrderByRelevanceFieldEnum)[keyof typeof tele_channelOrderByRelevanceFieldEnum] + + +export const tele_groupeOrderByRelevanceFieldEnum = { + nom: 'nom', + small_desc: 'small_desc' +} as const + +export type tele_groupeOrderByRelevanceFieldEnum = (typeof tele_groupeOrderByRelevanceFieldEnum)[keyof typeof tele_groupeOrderByRelevanceFieldEnum] + + +export const tele_networkOrderByRelevanceFieldEnum = { + network_name: 'network_name', + fournisseur: 'fournisseur' +} as const + +export type tele_networkOrderByRelevanceFieldEnum = (typeof tele_networkOrderByRelevanceFieldEnum)[keyof typeof tele_networkOrderByRelevanceFieldEnum] + + +export const tele_packOrderByRelevanceFieldEnum = { + channels: 'channels', + ccsa_desc: 'ccsa_desc', + bell_name: 'bell_name' +} as const + +export type tele_packOrderByRelevanceFieldEnum = (typeof tele_packOrderByRelevanceFieldEnum)[keyof typeof tele_packOrderByRelevanceFieldEnum] + + +export const tele_sub_archiveOrderByRelevanceFieldEnum = { + date_archive: 'date_archive', + subs: 'subs' +} as const + +export type tele_sub_archiveOrderByRelevanceFieldEnum = (typeof tele_sub_archiveOrderByRelevanceFieldEnum)[keyof typeof tele_sub_archiveOrderByRelevanceFieldEnum] + + +export const tele_wizOrderByRelevanceFieldEnum = { + fthem: 'fthem' +} as const + +export type tele_wizOrderByRelevanceFieldEnum = (typeof tele_wizOrderByRelevanceFieldEnum)[keyof typeof tele_wizOrderByRelevanceFieldEnum] + + +export const tv_macOrderByRelevanceFieldEnum = { + mac: 'mac' +} as const + +export type tv_macOrderByRelevanceFieldEnum = (typeof tv_macOrderByRelevanceFieldEnum)[keyof typeof tv_macOrderByRelevanceFieldEnum] + + +export const ticketOrderByRelevanceFieldEnum = { + subject: 'subject', + email_from: 'email_from', + status: 'status', + due_time: 'due_time', + date_closed: 'date_closed', + lock_name: 'lock_name', + wizard: 'wizard', + wizard_fibre: 'wizard_fibre', + followed_by: 'followed_by', + participant: 'participant' +} as const + +export type ticketOrderByRelevanceFieldEnum = (typeof ticketOrderByRelevanceFieldEnum)[keyof typeof ticketOrderByRelevanceFieldEnum] + + +export const ticket_congeOrderByRelevanceFieldEnum = { + name: 'name', + desc: 'desc' +} as const + +export type ticket_congeOrderByRelevanceFieldEnum = (typeof ticket_congeOrderByRelevanceFieldEnum)[keyof typeof ticket_congeOrderByRelevanceFieldEnum] + + +export const ticket_deptOrderByRelevanceFieldEnum = { + name: 'name', + email: 'email', + default_follow: 'default_follow' +} as const + +export type ticket_deptOrderByRelevanceFieldEnum = (typeof ticket_deptOrderByRelevanceFieldEnum)[keyof typeof ticket_deptOrderByRelevanceFieldEnum] + + +export const ticket_msgOrderByRelevanceFieldEnum = { + msg: 'msg', + unread_csv: 'unread_csv' +} as const + +export type ticket_msgOrderByRelevanceFieldEnum = (typeof ticket_msgOrderByRelevanceFieldEnum)[keyof typeof ticket_msgOrderByRelevanceFieldEnum] + + +export const ticket_templateOrderByRelevanceFieldEnum = { + name: 'name', + template: 'template' +} as const + +export type ticket_templateOrderByRelevanceFieldEnum = (typeof ticket_templateOrderByRelevanceFieldEnum)[keyof typeof ticket_templateOrderByRelevanceFieldEnum] + + +export const tmp_vpnOrderByRelevanceFieldEnum = { + username: 'username', + password: 'password' +} as const + +export type tmp_vpnOrderByRelevanceFieldEnum = (typeof tmp_vpnOrderByRelevanceFieldEnum)[keyof typeof tmp_vpnOrderByRelevanceFieldEnum] + + +export const bon_travailOrderByRelevanceFieldEnum = { + heure_arrive_t1: 'heure_arrive_t1', + heure_depart_t1: 'heure_depart_t1', + heure_arrive_t2: 'heure_arrive_t2', + heure_depart_t2: 'heure_depart_t2', + note: 'note' +} as const + +export type bon_travailOrderByRelevanceFieldEnum = (typeof bon_travailOrderByRelevanceFieldEnum)[keyof typeof bon_travailOrderByRelevanceFieldEnum] + + +export const bon_travail_itemOrderByRelevanceFieldEnum = { + desc: 'desc' +} as const + +export type bon_travail_itemOrderByRelevanceFieldEnum = (typeof bon_travail_itemOrderByRelevanceFieldEnum)[keyof typeof bon_travail_itemOrderByRelevanceFieldEnum] + + +export const checklist_relaisOrderByRelevanceFieldEnum = { + site_name: 'site_name', + equipement: 'equipement', + connecteur: 'connecteur', + grounding: 'grounding', + surge_lightning: 'surge_lightning', + switch_poe: 'switch_poe', + switch_giga_shield: 'switch_giga_shield', + batterie: 'batterie', + solidity: 'solidity', + redondance: 'redondance', + antenne_58_360: 'antenne_58_360', + antenne_24_360: 'antenne_24_360', + rspro_maj: 'rspro_maj', + boite: 'boite', + cable: 'cable', + staros_ubnt: 'staros_ubnt', + autre: 'autre' +} as const + +export type checklist_relaisOrderByRelevanceFieldEnum = (typeof checklist_relaisOrderByRelevanceFieldEnum)[keyof typeof checklist_relaisOrderByRelevanceFieldEnum] + + +export const conferenceOrderByRelevanceFieldEnum = { + time_start: 'time_start', + time_end: 'time_end', + name: 'name', + description: 'description', + participant: 'participant' +} as const + +export type conferenceOrderByRelevanceFieldEnum = (typeof conferenceOrderByRelevanceFieldEnum)[keyof typeof conferenceOrderByRelevanceFieldEnum] + + +export const conference_roomOrderByRelevanceFieldEnum = { + name: 'name', + location: 'location', + description: 'description' +} as const + +export type conference_roomOrderByRelevanceFieldEnum = (typeof conference_roomOrderByRelevanceFieldEnum)[keyof typeof conference_roomOrderByRelevanceFieldEnum] + + +export const fournisseurOrderByRelevanceFieldEnum = { + nom: 'nom', + email: 'email' +} as const + +export type fournisseurOrderByRelevanceFieldEnum = (typeof fournisseurOrderByRelevanceFieldEnum)[keyof typeof fournisseurOrderByRelevanceFieldEnum] + + +export const notice_guiOrderByRelevanceFieldEnum = { + message: 'message', + timestamp: 'timestamp' +} as const + +export type notice_guiOrderByRelevanceFieldEnum = (typeof notice_guiOrderByRelevanceFieldEnum)[keyof typeof notice_guiOrderByRelevanceFieldEnum] + + +export const promoOrderByRelevanceFieldEnum = { + name: 'name', + desc: 'desc' +} as const + +export type promoOrderByRelevanceFieldEnum = (typeof promoOrderByRelevanceFieldEnum)[keyof typeof promoOrderByRelevanceFieldEnum] + + +export const stbsOrderByRelevanceFieldEnum = { + mac: 'mac', + sn: 'sn', + targo: 'targo' +} as const + +export type stbsOrderByRelevanceFieldEnum = (typeof stbsOrderByRelevanceFieldEnum)[keyof typeof stbsOrderByRelevanceFieldEnum] + + +export const debugOrderByRelevanceFieldEnum = { + autor: 'autor', + url: 'url', + desc: 'desc', + note4autor: 'note4autor', + note4dev: 'note4dev', + status: 'status' +} as const + +export type debugOrderByRelevanceFieldEnum = (typeof debugOrderByRelevanceFieldEnum)[keyof typeof debugOrderByRelevanceFieldEnum] + + +export const carte_tempsOrderByRelevanceFieldEnum = { + comment: 'comment', + note_int: 'note_int', + appr: 'appr', + appr_dir: 'appr_dir' +} as const + +export type carte_tempsOrderByRelevanceFieldEnum = (typeof carte_tempsOrderByRelevanceFieldEnum)[keyof typeof carte_tempsOrderByRelevanceFieldEnum] + + +export const carte_temps_periodeOrderByRelevanceFieldEnum = { + debut: 'debut', + fin: 'fin', + paid: 'paid' +} as const + +export type carte_temps_periodeOrderByRelevanceFieldEnum = (typeof carte_temps_periodeOrderByRelevanceFieldEnum)[keyof typeof carte_temps_periodeOrderByRelevanceFieldEnum] + + +export const banque_heure_staffOrderByRelevanceFieldEnum = { + sunday: 'sunday' +} as const + +export type banque_heure_staffOrderByRelevanceFieldEnum = (typeof banque_heure_staffOrderByRelevanceFieldEnum)[keyof typeof banque_heure_staffOrderByRelevanceFieldEnum] + + +export const hour_bankOrderByRelevanceFieldEnum = { + note: 'note' +} as const + +export type hour_bankOrderByRelevanceFieldEnum = (typeof hour_bankOrderByRelevanceFieldEnum)[keyof typeof hour_bankOrderByRelevanceFieldEnum] + + +export const hour_bank_detailOrderByRelevanceFieldEnum = { + working_order: 'working_order', + detail: 'detail' +} as const + +export type hour_bank_detailOrderByRelevanceFieldEnum = (typeof hour_bank_detailOrderByRelevanceFieldEnum)[keyof typeof hour_bank_detailOrderByRelevanceFieldEnum] + + +export const testOrderByRelevanceFieldEnum = { + text: 'text' +} as const + +export type testOrderByRelevanceFieldEnum = (typeof testOrderByRelevanceFieldEnum)[keyof typeof testOrderByRelevanceFieldEnum] + + +export const account_memo_templateOrderByRelevanceFieldEnum = { + name: 'name', + color: 'color', + bcolor: 'bcolor', + border: 'border' +} as const + +export type account_memo_templateOrderByRelevanceFieldEnum = (typeof account_memo_templateOrderByRelevanceFieldEnum)[keyof typeof account_memo_templateOrderByRelevanceFieldEnum] + + +export const notesOrderByRelevanceFieldEnum = { + notes: 'notes' +} as const + +export type notesOrderByRelevanceFieldEnum = (typeof notesOrderByRelevanceFieldEnum)[keyof typeof notesOrderByRelevanceFieldEnum] + + +export const emailOrderByRelevanceFieldEnum = { + email: 'email', + password: 'password' +} as const + +export type emailOrderByRelevanceFieldEnum = (typeof emailOrderByRelevanceFieldEnum)[keyof typeof emailOrderByRelevanceFieldEnum] + + +export const client_pwdOrderByRelevanceFieldEnum = { + uid: 'uid' +} as const + +export type client_pwdOrderByRelevanceFieldEnum = (typeof client_pwdOrderByRelevanceFieldEnum)[keyof typeof client_pwdOrderByRelevanceFieldEnum] + + +export const account_profileOrderByRelevanceFieldEnum = { + profile_id: 'profile_id', + address_id: 'address_id', + card_id: 'card_id', + token: 'token', + initial_transaction: 'initial_transaction' +} as const + +export type account_profileOrderByRelevanceFieldEnum = (typeof account_profileOrderByRelevanceFieldEnum)[keyof typeof account_profileOrderByRelevanceFieldEnum] + + +export const deposit_slipOrderByRelevanceFieldEnum = { + customer_id: 'customer_id', + name: 'name', + type: 'type', + desc: 'desc' +} as const + +export type deposit_slipOrderByRelevanceFieldEnum = (typeof deposit_slipOrderByRelevanceFieldEnum)[keyof typeof deposit_slipOrderByRelevanceFieldEnum] + + +export const account_suspensionOrderByRelevanceFieldEnum = { + note: 'note' +} as const + +export type account_suspensionOrderByRelevanceFieldEnum = (typeof account_suspensionOrderByRelevanceFieldEnum)[keyof typeof account_suspensionOrderByRelevanceFieldEnum] + diff --git a/prisma/generated/mariadb/models.ts b/prisma/generated/mariadb/models.ts new file mode 100644 index 0000000..5debfc4 --- /dev/null +++ b/prisma/generated/mariadb/models.ts @@ -0,0 +1,169 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This is a barrel export file for all models and their related types. + * + * ๐ŸŸข You can import this file directly. + */ +export type * from './models/account' +export type * from './models/account_group' +export type * from './models/account_memo' +export type * from './models/compta_comptes' +export type * from './models/compta_comptes_soldes' +export type * from './models/compta_journal_ecriture' +export type * from './models/compta_journal_ecriture_bk' +export type * from './models/compta_journal_ecriture_detail' +export type * from './models/compta_journal_ecriture_detail_bk' +export type * from './models/compta_periode' +export type * from './models/compta_ppa_file_id' +export type * from './models/compta_setup' +export type * from './models/credit_code' +export type * from './models/tax' +export type * from './models/tax_group' +export type * from './models/td_payable' +export type * from './models/conso' +export type * from './models/conso_archive' +export type * from './models/conso_avis' +export type * from './models/conso_radius' +export type * from './models/conso_radius_daily' +export type * from './models/conso_radius_daily2' +export type * from './models/conso_radius_hourly' +export type * from './models/conso_radius_monthly' +export type * from './models/conso_radius_monthly2' +export type * from './models/delivery' +export type * from './models/delivery_history' +export type * from './models/device' +export type * from './models/device_archive' +export type * from './models/device_attr' +export type * from './models/device_link' +export type * from './models/device_template' +export type * from './models/device_template_attr' +export type * from './models/product' +export type * from './models/product_cat' +export type * from './models/product_format' +export type * from './models/product_fournisseur' +export type * from './models/product_profile' +export type * from './models/product_speciaux' +export type * from './models/product_translate' +export type * from './models/product_zone' +export type * from './models/product_zone_placemarks' +export type * from './models/inventaire_log' +export type * from './models/phone' +export type * from './models/phone_addr' +export type * from './models/phone_comwave' +export type * from './models/phone_note' +export type * from './models/phone_provisioning' +export type * from './models/phonecall_channel' +export type * from './models/phonecall_log_2025' +export type * from './models/phonecall_log_2026' +export type * from './models/voicemeup' +export type * from './models/pbx' +export type * from './models/pbx_app' +export type * from './models/pbx_com' +export type * from './models/pbx_com_wl' +export type * from './models/pbx_fax' +export type * from './models/payment' +export type * from './models/payment_item' +export type * from './models/passwords_manager' +export type * from './models/passwords_manager_cat' +export type * from './models/passwords_manager_group' +export type * from './models/notification' +export type * from './models/notification_payload' +export type * from './models/municipalite' +export type * from './models/sommaire_porte' +export type * from './models/state' +export type * from './models/licence' +export type * from './models/licence_key' +export type * from './models/ip' +export type * from './models/ip_admin' +export type * from './models/ip_history' +export type * from './models/ip_pp' +export type * from './models/ip_static' +export type * from './models/ip_targo' +export type * from './models/invoice' +export type * from './models/invoice_bk' +export type * from './models/invoice_call' +export type * from './models/invoice_item' +export type * from './models/invoice_item_bk' +export type * from './models/invoice_msg_template' +export type * from './models/invoice_tax' +export type * from './models/invoice_tax_bk' +export type * from './models/accord_paiement' +export type * from './models/autologin' +export type * from './models/statement' +export type * from './models/intranet_doc' +export type * from './models/intranet_doc_paths' +export type * from './models/intranet_doc_reply' +export type * from './models/intranet_feed' +export type * from './models/intranet_feed_reply' +export type * from './models/intranet_techniciens' +export type * from './models/intranet_techniciens_reply' +export type * from './models/intranet_techno' +export type * from './models/intranet_techno_reply' +export type * from './models/fibre' +export type * from './models/fibre_olt' +export type * from './models/fibre_service_port' +export type * from './models/fibre_suivi' +export type * from './models/fibre_tech' +export type * from './models/fibre_videotron' +export type * from './models/gantt' +export type * from './models/gantt_template' +export type * from './models/project' +export type * from './models/project_cmd' +export type * from './models/project_cmd_item' +export type * from './models/project_manager_cat' +export type * from './models/project_manager_checklist' +export type * from './models/project_manager_comment' +export type * from './models/project_manager_task' +export type * from './models/service' +export type * from './models/service_snapshot' +export type * from './models/soumission' +export type * from './models/soumission_template' +export type * from './models/staff' +export type * from './models/staff_dispo' +export type * from './models/staff_supp' +export type * from './models/tele_carte' +export type * from './models/tele_channel' +export type * from './models/tele_groupe' +export type * from './models/tele_network' +export type * from './models/tele_pack' +export type * from './models/tele_penetration' +export type * from './models/tele_sub_archive' +export type * from './models/tele_wiz' +export type * from './models/tv_mac' +export type * from './models/ticket' +export type * from './models/ticket_calendar_lock' +export type * from './models/ticket_calendar_staff_lock' +export type * from './models/ticket_conge' +export type * from './models/ticket_dept' +export type * from './models/ticket_msg' +export type * from './models/ticket_template' +export type * from './models/tmp_vpn' +export type * from './models/bon_travail' +export type * from './models/bon_travail_item' +export type * from './models/checklist_relais' +export type * from './models/conference' +export type * from './models/conference_room' +export type * from './models/fournisseur' +export type * from './models/notice_gui' +export type * from './models/promo' +export type * from './models/stbs' +export type * from './models/tech_dispo' +export type * from './models/debug' +export type * from './models/carte_temps' +export type * from './models/carte_temps_periode' +export type * from './models/banque_heure_staff' +export type * from './models/hour_bank' +export type * from './models/hour_bank_detail' +export type * from './models/test' +export type * from './models/account_memo_template' +export type * from './models/notes' +export type * from './models/email' +export type * from './models/client_pwd' +export type * from './models/account_profile' +export type * from './models/deposit_slip' +export type * from './models/account_suspension' +export type * from './commonInputTypes' \ No newline at end of file diff --git a/prisma/generated/mariadb/models/accord_paiement.ts b/prisma/generated/mariadb/models/accord_paiement.ts new file mode 100644 index 0000000..de49552 --- /dev/null +++ b/prisma/generated/mariadb/models/accord_paiement.ts @@ -0,0 +1,1335 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `accord_paiement` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model accord_paiement + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type accord_paiementModel = runtime.Types.Result.DefaultSelection + +export type AggregateAccord_paiement = { + _count: Accord_paiementCountAggregateOutputType | null + _avg: Accord_paiementAvgAggregateOutputType | null + _sum: Accord_paiementSumAggregateOutputType | null + _min: Accord_paiementMinAggregateOutputType | null + _max: Accord_paiementMaxAggregateOutputType | null +} + +export type Accord_paiementAvgAggregateOutputType = { + id: number | null + account_id: number | null + date_accord: number | null + date_echeance: number | null + date_coupure: number | null + montant: runtime.Decimal | null + method: number | null + status: number | null + staff_id: number | null +} + +export type Accord_paiementSumAggregateOutputType = { + id: number | null + account_id: number | null + date_accord: bigint | null + date_echeance: bigint | null + date_coupure: bigint | null + montant: runtime.Decimal | null + method: number | null + status: number | null + staff_id: number | null +} + +export type Accord_paiementMinAggregateOutputType = { + id: number | null + account_id: number | null + date_accord: bigint | null + date_echeance: bigint | null + date_coupure: bigint | null + raison_changement: string | null + montant: runtime.Decimal | null + method: number | null + ferie: boolean | null + note: string | null + status: number | null + staff_id: number | null + date_create: string | null +} + +export type Accord_paiementMaxAggregateOutputType = { + id: number | null + account_id: number | null + date_accord: bigint | null + date_echeance: bigint | null + date_coupure: bigint | null + raison_changement: string | null + montant: runtime.Decimal | null + method: number | null + ferie: boolean | null + note: string | null + status: number | null + staff_id: number | null + date_create: string | null +} + +export type Accord_paiementCountAggregateOutputType = { + id: number + account_id: number + date_accord: number + date_echeance: number + date_coupure: number + raison_changement: number + montant: number + method: number + ferie: number + note: number + status: number + staff_id: number + date_create: number + _all: number +} + + +export type Accord_paiementAvgAggregateInputType = { + id?: true + account_id?: true + date_accord?: true + date_echeance?: true + date_coupure?: true + montant?: true + method?: true + status?: true + staff_id?: true +} + +export type Accord_paiementSumAggregateInputType = { + id?: true + account_id?: true + date_accord?: true + date_echeance?: true + date_coupure?: true + montant?: true + method?: true + status?: true + staff_id?: true +} + +export type Accord_paiementMinAggregateInputType = { + id?: true + account_id?: true + date_accord?: true + date_echeance?: true + date_coupure?: true + raison_changement?: true + montant?: true + method?: true + ferie?: true + note?: true + status?: true + staff_id?: true + date_create?: true +} + +export type Accord_paiementMaxAggregateInputType = { + id?: true + account_id?: true + date_accord?: true + date_echeance?: true + date_coupure?: true + raison_changement?: true + montant?: true + method?: true + ferie?: true + note?: true + status?: true + staff_id?: true + date_create?: true +} + +export type Accord_paiementCountAggregateInputType = { + id?: true + account_id?: true + date_accord?: true + date_echeance?: true + date_coupure?: true + raison_changement?: true + montant?: true + method?: true + ferie?: true + note?: true + status?: true + staff_id?: true + date_create?: true + _all?: true +} + +export type Accord_paiementAggregateArgs = { + /** + * Filter which accord_paiement to aggregate. + */ + where?: Prisma.accord_paiementWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of accord_paiements to fetch. + */ + orderBy?: Prisma.accord_paiementOrderByWithRelationInput | Prisma.accord_paiementOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.accord_paiementWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` accord_paiements 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` accord_paiements. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned accord_paiements + **/ + _count?: true | Accord_paiementCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Accord_paiementAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Accord_paiementSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Accord_paiementMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Accord_paiementMaxAggregateInputType +} + +export type GetAccord_paiementAggregateType = { + [P in keyof T & keyof AggregateAccord_paiement]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type accord_paiementGroupByArgs = { + where?: Prisma.accord_paiementWhereInput + orderBy?: Prisma.accord_paiementOrderByWithAggregationInput | Prisma.accord_paiementOrderByWithAggregationInput[] + by: Prisma.Accord_paiementScalarFieldEnum[] | Prisma.Accord_paiementScalarFieldEnum + having?: Prisma.accord_paiementScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Accord_paiementCountAggregateInputType | true + _avg?: Accord_paiementAvgAggregateInputType + _sum?: Accord_paiementSumAggregateInputType + _min?: Accord_paiementMinAggregateInputType + _max?: Accord_paiementMaxAggregateInputType +} + +export type Accord_paiementGroupByOutputType = { + id: number + account_id: number + date_accord: bigint + date_echeance: bigint + date_coupure: bigint + raison_changement: string | null + montant: runtime.Decimal + method: number + ferie: boolean + note: string | null + status: number + staff_id: number + date_create: string + _count: Accord_paiementCountAggregateOutputType | null + _avg: Accord_paiementAvgAggregateOutputType | null + _sum: Accord_paiementSumAggregateOutputType | null + _min: Accord_paiementMinAggregateOutputType | null + _max: Accord_paiementMaxAggregateOutputType | null +} + +type GetAccord_paiementGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Accord_paiementGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type accord_paiementWhereInput = { + AND?: Prisma.accord_paiementWhereInput | Prisma.accord_paiementWhereInput[] + OR?: Prisma.accord_paiementWhereInput[] + NOT?: Prisma.accord_paiementWhereInput | Prisma.accord_paiementWhereInput[] + id?: Prisma.IntFilter<"accord_paiement"> | number + account_id?: Prisma.IntFilter<"accord_paiement"> | number + date_accord?: Prisma.BigIntFilter<"accord_paiement"> | bigint | number + date_echeance?: Prisma.BigIntFilter<"accord_paiement"> | bigint | number + date_coupure?: Prisma.BigIntFilter<"accord_paiement"> | bigint | number + raison_changement?: Prisma.StringNullableFilter<"accord_paiement"> | string | null + montant?: Prisma.DecimalFilter<"accord_paiement"> | runtime.Decimal | runtime.DecimalJsLike | number | string + method?: Prisma.IntFilter<"accord_paiement"> | number + ferie?: Prisma.BoolFilter<"accord_paiement"> | boolean + note?: Prisma.StringNullableFilter<"accord_paiement"> | string | null + status?: Prisma.IntFilter<"accord_paiement"> | number + staff_id?: Prisma.IntFilter<"accord_paiement"> | number + date_create?: Prisma.StringFilter<"accord_paiement"> | string +} + +export type accord_paiementOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_accord?: Prisma.SortOrder + date_echeance?: Prisma.SortOrder + date_coupure?: Prisma.SortOrder + raison_changement?: Prisma.SortOrderInput | Prisma.SortOrder + montant?: Prisma.SortOrder + method?: Prisma.SortOrder + ferie?: Prisma.SortOrder + note?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date_create?: Prisma.SortOrder + _relevance?: Prisma.accord_paiementOrderByRelevanceInput +} + +export type accord_paiementWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.accord_paiementWhereInput | Prisma.accord_paiementWhereInput[] + OR?: Prisma.accord_paiementWhereInput[] + NOT?: Prisma.accord_paiementWhereInput | Prisma.accord_paiementWhereInput[] + account_id?: Prisma.IntFilter<"accord_paiement"> | number + date_accord?: Prisma.BigIntFilter<"accord_paiement"> | bigint | number + date_echeance?: Prisma.BigIntFilter<"accord_paiement"> | bigint | number + date_coupure?: Prisma.BigIntFilter<"accord_paiement"> | bigint | number + raison_changement?: Prisma.StringNullableFilter<"accord_paiement"> | string | null + montant?: Prisma.DecimalFilter<"accord_paiement"> | runtime.Decimal | runtime.DecimalJsLike | number | string + method?: Prisma.IntFilter<"accord_paiement"> | number + ferie?: Prisma.BoolFilter<"accord_paiement"> | boolean + note?: Prisma.StringNullableFilter<"accord_paiement"> | string | null + status?: Prisma.IntFilter<"accord_paiement"> | number + staff_id?: Prisma.IntFilter<"accord_paiement"> | number + date_create?: Prisma.StringFilter<"accord_paiement"> | string +}, "id"> + +export type accord_paiementOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_accord?: Prisma.SortOrder + date_echeance?: Prisma.SortOrder + date_coupure?: Prisma.SortOrder + raison_changement?: Prisma.SortOrderInput | Prisma.SortOrder + montant?: Prisma.SortOrder + method?: Prisma.SortOrder + ferie?: Prisma.SortOrder + note?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date_create?: Prisma.SortOrder + _count?: Prisma.accord_paiementCountOrderByAggregateInput + _avg?: Prisma.accord_paiementAvgOrderByAggregateInput + _max?: Prisma.accord_paiementMaxOrderByAggregateInput + _min?: Prisma.accord_paiementMinOrderByAggregateInput + _sum?: Prisma.accord_paiementSumOrderByAggregateInput +} + +export type accord_paiementScalarWhereWithAggregatesInput = { + AND?: Prisma.accord_paiementScalarWhereWithAggregatesInput | Prisma.accord_paiementScalarWhereWithAggregatesInput[] + OR?: Prisma.accord_paiementScalarWhereWithAggregatesInput[] + NOT?: Prisma.accord_paiementScalarWhereWithAggregatesInput | Prisma.accord_paiementScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"accord_paiement"> | number + account_id?: Prisma.IntWithAggregatesFilter<"accord_paiement"> | number + date_accord?: Prisma.BigIntWithAggregatesFilter<"accord_paiement"> | bigint | number + date_echeance?: Prisma.BigIntWithAggregatesFilter<"accord_paiement"> | bigint | number + date_coupure?: Prisma.BigIntWithAggregatesFilter<"accord_paiement"> | bigint | number + raison_changement?: Prisma.StringNullableWithAggregatesFilter<"accord_paiement"> | string | null + montant?: Prisma.DecimalWithAggregatesFilter<"accord_paiement"> | runtime.Decimal | runtime.DecimalJsLike | number | string + method?: Prisma.IntWithAggregatesFilter<"accord_paiement"> | number + ferie?: Prisma.BoolWithAggregatesFilter<"accord_paiement"> | boolean + note?: Prisma.StringNullableWithAggregatesFilter<"accord_paiement"> | string | null + status?: Prisma.IntWithAggregatesFilter<"accord_paiement"> | number + staff_id?: Prisma.IntWithAggregatesFilter<"accord_paiement"> | number + date_create?: Prisma.StringWithAggregatesFilter<"accord_paiement"> | string +} + +export type accord_paiementCreateInput = { + account_id: number + date_accord: bigint | number + date_echeance: bigint | number + date_coupure: bigint | number + raison_changement?: string | null + montant: runtime.Decimal | runtime.DecimalJsLike | number | string + method?: number + ferie?: boolean + note?: string | null + status?: number + staff_id?: number + date_create: string +} + +export type accord_paiementUncheckedCreateInput = { + id?: number + account_id: number + date_accord: bigint | number + date_echeance: bigint | number + date_coupure: bigint | number + raison_changement?: string | null + montant: runtime.Decimal | runtime.DecimalJsLike | number | string + method?: number + ferie?: boolean + note?: string | null + status?: number + staff_id?: number + date_create: string +} + +export type accord_paiementUpdateInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date_accord?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_echeance?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_coupure?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + raison_changement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + montant?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + method?: Prisma.IntFieldUpdateOperationsInput | number + ferie?: Prisma.BoolFieldUpdateOperationsInput | boolean + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + date_create?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type accord_paiementUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date_accord?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_echeance?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_coupure?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + raison_changement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + montant?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + method?: Prisma.IntFieldUpdateOperationsInput | number + ferie?: Prisma.BoolFieldUpdateOperationsInput | boolean + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + date_create?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type accord_paiementCreateManyInput = { + id?: number + account_id: number + date_accord: bigint | number + date_echeance: bigint | number + date_coupure: bigint | number + raison_changement?: string | null + montant: runtime.Decimal | runtime.DecimalJsLike | number | string + method?: number + ferie?: boolean + note?: string | null + status?: number + staff_id?: number + date_create: string +} + +export type accord_paiementUpdateManyMutationInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date_accord?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_echeance?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_coupure?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + raison_changement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + montant?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + method?: Prisma.IntFieldUpdateOperationsInput | number + ferie?: Prisma.BoolFieldUpdateOperationsInput | boolean + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + date_create?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type accord_paiementUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date_accord?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_echeance?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_coupure?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + raison_changement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + montant?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + method?: Prisma.IntFieldUpdateOperationsInput | number + ferie?: Prisma.BoolFieldUpdateOperationsInput | boolean + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + date_create?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type accord_paiementOrderByRelevanceInput = { + fields: Prisma.accord_paiementOrderByRelevanceFieldEnum | Prisma.accord_paiementOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type accord_paiementCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_accord?: Prisma.SortOrder + date_echeance?: Prisma.SortOrder + date_coupure?: Prisma.SortOrder + raison_changement?: Prisma.SortOrder + montant?: Prisma.SortOrder + method?: Prisma.SortOrder + ferie?: Prisma.SortOrder + note?: Prisma.SortOrder + status?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date_create?: Prisma.SortOrder +} + +export type accord_paiementAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_accord?: Prisma.SortOrder + date_echeance?: Prisma.SortOrder + date_coupure?: Prisma.SortOrder + montant?: Prisma.SortOrder + method?: Prisma.SortOrder + status?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type accord_paiementMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_accord?: Prisma.SortOrder + date_echeance?: Prisma.SortOrder + date_coupure?: Prisma.SortOrder + raison_changement?: Prisma.SortOrder + montant?: Prisma.SortOrder + method?: Prisma.SortOrder + ferie?: Prisma.SortOrder + note?: Prisma.SortOrder + status?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date_create?: Prisma.SortOrder +} + +export type accord_paiementMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_accord?: Prisma.SortOrder + date_echeance?: Prisma.SortOrder + date_coupure?: Prisma.SortOrder + raison_changement?: Prisma.SortOrder + montant?: Prisma.SortOrder + method?: Prisma.SortOrder + ferie?: Prisma.SortOrder + note?: Prisma.SortOrder + status?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date_create?: Prisma.SortOrder +} + +export type accord_paiementSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_accord?: Prisma.SortOrder + date_echeance?: Prisma.SortOrder + date_coupure?: Prisma.SortOrder + montant?: Prisma.SortOrder + method?: Prisma.SortOrder + status?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + + + +export type accord_paiementSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + date_accord?: boolean + date_echeance?: boolean + date_coupure?: boolean + raison_changement?: boolean + montant?: boolean + method?: boolean + ferie?: boolean + note?: boolean + status?: boolean + staff_id?: boolean + date_create?: boolean +}, ExtArgs["result"]["accord_paiement"]> + + + +export type accord_paiementSelectScalar = { + id?: boolean + account_id?: boolean + date_accord?: boolean + date_echeance?: boolean + date_coupure?: boolean + raison_changement?: boolean + montant?: boolean + method?: boolean + ferie?: boolean + note?: boolean + status?: boolean + staff_id?: boolean + date_create?: boolean +} + +export type accord_paiementOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date_accord" | "date_echeance" | "date_coupure" | "raison_changement" | "montant" | "method" | "ferie" | "note" | "status" | "staff_id" | "date_create", ExtArgs["result"]["accord_paiement"]> + +export type $accord_paiementPayload = { + name: "accord_paiement" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: number + date_accord: bigint + date_echeance: bigint + date_coupure: bigint + raison_changement: string | null + montant: runtime.Decimal + method: number + ferie: boolean + note: string | null + status: number + staff_id: number + date_create: string + }, ExtArgs["result"]["accord_paiement"]> + composites: {} +} + +export type accord_paiementGetPayload = runtime.Types.Result.GetResult + +export type accord_paiementCountArgs = + Omit & { + select?: Accord_paiementCountAggregateInputType | true + } + +export interface accord_paiementDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['accord_paiement'], meta: { name: 'accord_paiement' } } + /** + * Find zero or one Accord_paiement that matches the filter. + * @param {accord_paiementFindUniqueArgs} args - Arguments to find a Accord_paiement + * @example + * // Get one Accord_paiement + * const accord_paiement = await prisma.accord_paiement.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__accord_paiementClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Accord_paiement that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {accord_paiementFindUniqueOrThrowArgs} args - Arguments to find a Accord_paiement + * @example + * // Get one Accord_paiement + * const accord_paiement = await prisma.accord_paiement.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__accord_paiementClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Accord_paiement 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 {accord_paiementFindFirstArgs} args - Arguments to find a Accord_paiement + * @example + * // Get one Accord_paiement + * const accord_paiement = await prisma.accord_paiement.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__accord_paiementClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Accord_paiement 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 {accord_paiementFindFirstOrThrowArgs} args - Arguments to find a Accord_paiement + * @example + * // Get one Accord_paiement + * const accord_paiement = await prisma.accord_paiement.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__accord_paiementClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Accord_paiements 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 {accord_paiementFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Accord_paiements + * const accord_paiements = await prisma.accord_paiement.findMany() + * + * // Get first 10 Accord_paiements + * const accord_paiements = await prisma.accord_paiement.findMany({ take: 10 }) + * + * // Only select the `id` + * const accord_paiementWithIdOnly = await prisma.accord_paiement.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Accord_paiement. + * @param {accord_paiementCreateArgs} args - Arguments to create a Accord_paiement. + * @example + * // Create one Accord_paiement + * const Accord_paiement = await prisma.accord_paiement.create({ + * data: { + * // ... data to create a Accord_paiement + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__accord_paiementClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Accord_paiements. + * @param {accord_paiementCreateManyArgs} args - Arguments to create many Accord_paiements. + * @example + * // Create many Accord_paiements + * const accord_paiement = await prisma.accord_paiement.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Accord_paiement. + * @param {accord_paiementDeleteArgs} args - Arguments to delete one Accord_paiement. + * @example + * // Delete one Accord_paiement + * const Accord_paiement = await prisma.accord_paiement.delete({ + * where: { + * // ... filter to delete one Accord_paiement + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__accord_paiementClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Accord_paiement. + * @param {accord_paiementUpdateArgs} args - Arguments to update one Accord_paiement. + * @example + * // Update one Accord_paiement + * const accord_paiement = await prisma.accord_paiement.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__accord_paiementClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Accord_paiements. + * @param {accord_paiementDeleteManyArgs} args - Arguments to filter Accord_paiements to delete. + * @example + * // Delete a few Accord_paiements + * const { count } = await prisma.accord_paiement.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Accord_paiements. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {accord_paiementUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Accord_paiements + * const accord_paiement = await prisma.accord_paiement.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Accord_paiement. + * @param {accord_paiementUpsertArgs} args - Arguments to update or create a Accord_paiement. + * @example + * // Update or create a Accord_paiement + * const accord_paiement = await prisma.accord_paiement.upsert({ + * create: { + * // ... data to create a Accord_paiement + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Accord_paiement we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__accord_paiementClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Accord_paiements. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {accord_paiementCountArgs} args - Arguments to filter Accord_paiements to count. + * @example + * // Count the number of Accord_paiements + * const count = await prisma.accord_paiement.count({ + * where: { + * // ... the filter for the Accord_paiements 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 Accord_paiement. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Accord_paiementAggregateArgs} 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 Accord_paiement. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {accord_paiementGroupByArgs} 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 accord_paiementGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: accord_paiementGroupByArgs['orderBy'] } + : { orderBy?: accord_paiementGroupByArgs['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 ? GetAccord_paiementGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the accord_paiement model + */ +readonly fields: accord_paiementFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for accord_paiement. + * 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__accord_paiementClient 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 accord_paiement model + */ +export interface accord_paiementFieldRefs { + readonly id: Prisma.FieldRef<"accord_paiement", 'Int'> + readonly account_id: Prisma.FieldRef<"accord_paiement", 'Int'> + readonly date_accord: Prisma.FieldRef<"accord_paiement", 'BigInt'> + readonly date_echeance: Prisma.FieldRef<"accord_paiement", 'BigInt'> + readonly date_coupure: Prisma.FieldRef<"accord_paiement", 'BigInt'> + readonly raison_changement: Prisma.FieldRef<"accord_paiement", 'String'> + readonly montant: Prisma.FieldRef<"accord_paiement", 'Decimal'> + readonly method: Prisma.FieldRef<"accord_paiement", 'Int'> + readonly ferie: Prisma.FieldRef<"accord_paiement", 'Boolean'> + readonly note: Prisma.FieldRef<"accord_paiement", 'String'> + readonly status: Prisma.FieldRef<"accord_paiement", 'Int'> + readonly staff_id: Prisma.FieldRef<"accord_paiement", 'Int'> + readonly date_create: Prisma.FieldRef<"accord_paiement", 'String'> +} + + +// Custom InputTypes +/** + * accord_paiement findUnique + */ +export type accord_paiementFindUniqueArgs = { + /** + * Select specific fields to fetch from the accord_paiement + */ + select?: Prisma.accord_paiementSelect | null + /** + * Omit specific fields from the accord_paiement + */ + omit?: Prisma.accord_paiementOmit | null + /** + * Filter, which accord_paiement to fetch. + */ + where: Prisma.accord_paiementWhereUniqueInput +} + +/** + * accord_paiement findUniqueOrThrow + */ +export type accord_paiementFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the accord_paiement + */ + select?: Prisma.accord_paiementSelect | null + /** + * Omit specific fields from the accord_paiement + */ + omit?: Prisma.accord_paiementOmit | null + /** + * Filter, which accord_paiement to fetch. + */ + where: Prisma.accord_paiementWhereUniqueInput +} + +/** + * accord_paiement findFirst + */ +export type accord_paiementFindFirstArgs = { + /** + * Select specific fields to fetch from the accord_paiement + */ + select?: Prisma.accord_paiementSelect | null + /** + * Omit specific fields from the accord_paiement + */ + omit?: Prisma.accord_paiementOmit | null + /** + * Filter, which accord_paiement to fetch. + */ + where?: Prisma.accord_paiementWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of accord_paiements to fetch. + */ + orderBy?: Prisma.accord_paiementOrderByWithRelationInput | Prisma.accord_paiementOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for accord_paiements. + */ + cursor?: Prisma.accord_paiementWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` accord_paiements 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` accord_paiements. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of accord_paiements. + */ + distinct?: Prisma.Accord_paiementScalarFieldEnum | Prisma.Accord_paiementScalarFieldEnum[] +} + +/** + * accord_paiement findFirstOrThrow + */ +export type accord_paiementFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the accord_paiement + */ + select?: Prisma.accord_paiementSelect | null + /** + * Omit specific fields from the accord_paiement + */ + omit?: Prisma.accord_paiementOmit | null + /** + * Filter, which accord_paiement to fetch. + */ + where?: Prisma.accord_paiementWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of accord_paiements to fetch. + */ + orderBy?: Prisma.accord_paiementOrderByWithRelationInput | Prisma.accord_paiementOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for accord_paiements. + */ + cursor?: Prisma.accord_paiementWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` accord_paiements 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` accord_paiements. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of accord_paiements. + */ + distinct?: Prisma.Accord_paiementScalarFieldEnum | Prisma.Accord_paiementScalarFieldEnum[] +} + +/** + * accord_paiement findMany + */ +export type accord_paiementFindManyArgs = { + /** + * Select specific fields to fetch from the accord_paiement + */ + select?: Prisma.accord_paiementSelect | null + /** + * Omit specific fields from the accord_paiement + */ + omit?: Prisma.accord_paiementOmit | null + /** + * Filter, which accord_paiements to fetch. + */ + where?: Prisma.accord_paiementWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of accord_paiements to fetch. + */ + orderBy?: Prisma.accord_paiementOrderByWithRelationInput | Prisma.accord_paiementOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing accord_paiements. + */ + cursor?: Prisma.accord_paiementWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` accord_paiements 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` accord_paiements. + */ + skip?: number + distinct?: Prisma.Accord_paiementScalarFieldEnum | Prisma.Accord_paiementScalarFieldEnum[] +} + +/** + * accord_paiement create + */ +export type accord_paiementCreateArgs = { + /** + * Select specific fields to fetch from the accord_paiement + */ + select?: Prisma.accord_paiementSelect | null + /** + * Omit specific fields from the accord_paiement + */ + omit?: Prisma.accord_paiementOmit | null + /** + * The data needed to create a accord_paiement. + */ + data: Prisma.XOR +} + +/** + * accord_paiement createMany + */ +export type accord_paiementCreateManyArgs = { + /** + * The data used to create many accord_paiements. + */ + data: Prisma.accord_paiementCreateManyInput | Prisma.accord_paiementCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * accord_paiement update + */ +export type accord_paiementUpdateArgs = { + /** + * Select specific fields to fetch from the accord_paiement + */ + select?: Prisma.accord_paiementSelect | null + /** + * Omit specific fields from the accord_paiement + */ + omit?: Prisma.accord_paiementOmit | null + /** + * The data needed to update a accord_paiement. + */ + data: Prisma.XOR + /** + * Choose, which accord_paiement to update. + */ + where: Prisma.accord_paiementWhereUniqueInput +} + +/** + * accord_paiement updateMany + */ +export type accord_paiementUpdateManyArgs = { + /** + * The data used to update accord_paiements. + */ + data: Prisma.XOR + /** + * Filter which accord_paiements to update + */ + where?: Prisma.accord_paiementWhereInput + /** + * Limit how many accord_paiements to update. + */ + limit?: number +} + +/** + * accord_paiement upsert + */ +export type accord_paiementUpsertArgs = { + /** + * Select specific fields to fetch from the accord_paiement + */ + select?: Prisma.accord_paiementSelect | null + /** + * Omit specific fields from the accord_paiement + */ + omit?: Prisma.accord_paiementOmit | null + /** + * The filter to search for the accord_paiement to update in case it exists. + */ + where: Prisma.accord_paiementWhereUniqueInput + /** + * In case the accord_paiement found by the `where` argument doesn't exist, create a new accord_paiement with this data. + */ + create: Prisma.XOR + /** + * In case the accord_paiement was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * accord_paiement delete + */ +export type accord_paiementDeleteArgs = { + /** + * Select specific fields to fetch from the accord_paiement + */ + select?: Prisma.accord_paiementSelect | null + /** + * Omit specific fields from the accord_paiement + */ + omit?: Prisma.accord_paiementOmit | null + /** + * Filter which accord_paiement to delete. + */ + where: Prisma.accord_paiementWhereUniqueInput +} + +/** + * accord_paiement deleteMany + */ +export type accord_paiementDeleteManyArgs = { + /** + * Filter which accord_paiements to delete + */ + where?: Prisma.accord_paiementWhereInput + /** + * Limit how many accord_paiements to delete. + */ + limit?: number +} + +/** + * accord_paiement without action + */ +export type accord_paiementDefaultArgs = { + /** + * Select specific fields to fetch from the accord_paiement + */ + select?: Prisma.accord_paiementSelect | null + /** + * Omit specific fields from the accord_paiement + */ + omit?: Prisma.accord_paiementOmit | null +} diff --git a/prisma/generated/mariadb/models/account.ts b/prisma/generated/mariadb/models/account.ts new file mode 100644 index 0000000..4680032 --- /dev/null +++ b/prisma/generated/mariadb/models/account.ts @@ -0,0 +1,2740 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `account` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model account + * + */ +export type accountModel = runtime.Types.Result.DefaultSelection + +export type AggregateAccount = { + _count: AccountCountAggregateOutputType | null + _avg: AccountAvgAggregateOutputType | null + _sum: AccountSumAggregateOutputType | null + _min: AccountMinAggregateOutputType | null + _max: AccountMaxAggregateOutputType | null +} + +export type AccountAvgAggregateOutputType = { + id: number | null + date_orig: number | null + date_last: number | null + date_expire: number | null + country_id: number | null + currency_id: number | null + group_id: number | null + status: number | null + invoice_delivery: number | null + ppa_all_invoice: number | null + ppa_amount: runtime.Decimal | null + ppa_amount_buffer: number | null + ppa_all_tmp: number | null + tax_group: number | null + created_by: number | null + ppa_cc: number | null +} + +export type AccountSumAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + date_last: bigint | null + date_expire: bigint | null + country_id: number | null + currency_id: number | null + group_id: number | null + status: number | null + invoice_delivery: number | null + ppa_all_invoice: number | null + ppa_amount: runtime.Decimal | null + ppa_amount_buffer: number | null + ppa_all_tmp: number | null + tax_group: number | null + created_by: number | null + ppa_cc: number | null +} + +export type AccountMinAggregateOutputType = { + id: bigint | null + customer_id: string | null + date_orig: bigint | null + date_last: bigint | null + date_expire: bigint | null + language_id: string | null + country_id: number | null + currency_id: number | null + username: string | null + password: string | null + group_id: number | null + misc: string | null + status: number | null + first_name: string | null + middle_name: string | null + last_name: string | null + mandataire: string | null + title: string | null + email: string | null + email_autre: string | null + company: string | null + contact: string | null + address1: string | null + address2: string | null + city: string | null + state: string | null + zip: string | null + tel_home: string | null + tel_office: string | null + tel_office_ext: string | null + cell: string | null + fax: string | null + invoice_delivery: number | null + land_owner: boolean | null + frais: boolean | null + ppa: boolean | null + ppa_all_invoice: number | null + ppa_name: string | null + ppa_code: string | null + ppa_branch: string | null + ppa_account: string | null + ppa_amount: runtime.Decimal | null + ppa_amount_buffer: number | null + ppa_all_tmp: number | null + ppa_fixed: boolean | null + commercial: boolean | null + vip: boolean | null + tax_group: number | null + data_check: boolean | null + created_by: number | null + notes_client: string | null + keyword: string | null + terminate_reason: string | null + terminate_cie: string | null + terminate_note: string | null + terminate_date: string | null + call: boolean | null + pub: boolean | null + portal_client_log: boolean | null + mauvais_payeur: boolean | null + renew_phone: boolean | null + ppa_cc: number | null + stripe_id: string | null +} + +export type AccountMaxAggregateOutputType = { + id: bigint | null + customer_id: string | null + date_orig: bigint | null + date_last: bigint | null + date_expire: bigint | null + language_id: string | null + country_id: number | null + currency_id: number | null + username: string | null + password: string | null + group_id: number | null + misc: string | null + status: number | null + first_name: string | null + middle_name: string | null + last_name: string | null + mandataire: string | null + title: string | null + email: string | null + email_autre: string | null + company: string | null + contact: string | null + address1: string | null + address2: string | null + city: string | null + state: string | null + zip: string | null + tel_home: string | null + tel_office: string | null + tel_office_ext: string | null + cell: string | null + fax: string | null + invoice_delivery: number | null + land_owner: boolean | null + frais: boolean | null + ppa: boolean | null + ppa_all_invoice: number | null + ppa_name: string | null + ppa_code: string | null + ppa_branch: string | null + ppa_account: string | null + ppa_amount: runtime.Decimal | null + ppa_amount_buffer: number | null + ppa_all_tmp: number | null + ppa_fixed: boolean | null + commercial: boolean | null + vip: boolean | null + tax_group: number | null + data_check: boolean | null + created_by: number | null + notes_client: string | null + keyword: string | null + terminate_reason: string | null + terminate_cie: string | null + terminate_note: string | null + terminate_date: string | null + call: boolean | null + pub: boolean | null + portal_client_log: boolean | null + mauvais_payeur: boolean | null + renew_phone: boolean | null + ppa_cc: number | null + stripe_id: string | null +} + +export type AccountCountAggregateOutputType = { + id: number + customer_id: number + date_orig: number + date_last: number + date_expire: number + language_id: number + country_id: number + currency_id: number + username: number + password: number + group_id: number + misc: number + status: number + first_name: number + middle_name: number + last_name: number + mandataire: number + title: number + email: number + email_autre: number + company: number + contact: number + address1: number + address2: number + city: number + state: number + zip: number + tel_home: number + tel_office: number + tel_office_ext: number + cell: number + fax: number + invoice_delivery: number + land_owner: number + frais: number + ppa: number + ppa_all_invoice: number + ppa_name: number + ppa_code: number + ppa_branch: number + ppa_account: number + ppa_amount: number + ppa_amount_buffer: number + ppa_all_tmp: number + ppa_fixed: number + commercial: number + vip: number + tax_group: number + data_check: number + created_by: number + notes_client: number + keyword: number + terminate_reason: number + terminate_cie: number + terminate_note: number + terminate_date: number + call: number + pub: number + portal_client_log: number + mauvais_payeur: number + renew_phone: number + ppa_cc: number + stripe_id: number + _all: number +} + + +export type AccountAvgAggregateInputType = { + id?: true + date_orig?: true + date_last?: true + date_expire?: true + country_id?: true + currency_id?: true + group_id?: true + status?: true + invoice_delivery?: true + ppa_all_invoice?: true + ppa_amount?: true + ppa_amount_buffer?: true + ppa_all_tmp?: true + tax_group?: true + created_by?: true + ppa_cc?: true +} + +export type AccountSumAggregateInputType = { + id?: true + date_orig?: true + date_last?: true + date_expire?: true + country_id?: true + currency_id?: true + group_id?: true + status?: true + invoice_delivery?: true + ppa_all_invoice?: true + ppa_amount?: true + ppa_amount_buffer?: true + ppa_all_tmp?: true + tax_group?: true + created_by?: true + ppa_cc?: true +} + +export type AccountMinAggregateInputType = { + id?: true + customer_id?: true + date_orig?: true + date_last?: true + date_expire?: true + language_id?: true + country_id?: true + currency_id?: true + username?: true + password?: true + group_id?: true + misc?: true + status?: true + first_name?: true + middle_name?: true + last_name?: true + mandataire?: true + title?: true + email?: true + email_autre?: true + company?: true + contact?: true + address1?: true + address2?: true + city?: true + state?: true + zip?: true + tel_home?: true + tel_office?: true + tel_office_ext?: true + cell?: true + fax?: true + invoice_delivery?: true + land_owner?: true + frais?: true + ppa?: true + ppa_all_invoice?: true + ppa_name?: true + ppa_code?: true + ppa_branch?: true + ppa_account?: true + ppa_amount?: true + ppa_amount_buffer?: true + ppa_all_tmp?: true + ppa_fixed?: true + commercial?: true + vip?: true + tax_group?: true + data_check?: true + created_by?: true + notes_client?: true + keyword?: true + terminate_reason?: true + terminate_cie?: true + terminate_note?: true + terminate_date?: true + call?: true + pub?: true + portal_client_log?: true + mauvais_payeur?: true + renew_phone?: true + ppa_cc?: true + stripe_id?: true +} + +export type AccountMaxAggregateInputType = { + id?: true + customer_id?: true + date_orig?: true + date_last?: true + date_expire?: true + language_id?: true + country_id?: true + currency_id?: true + username?: true + password?: true + group_id?: true + misc?: true + status?: true + first_name?: true + middle_name?: true + last_name?: true + mandataire?: true + title?: true + email?: true + email_autre?: true + company?: true + contact?: true + address1?: true + address2?: true + city?: true + state?: true + zip?: true + tel_home?: true + tel_office?: true + tel_office_ext?: true + cell?: true + fax?: true + invoice_delivery?: true + land_owner?: true + frais?: true + ppa?: true + ppa_all_invoice?: true + ppa_name?: true + ppa_code?: true + ppa_branch?: true + ppa_account?: true + ppa_amount?: true + ppa_amount_buffer?: true + ppa_all_tmp?: true + ppa_fixed?: true + commercial?: true + vip?: true + tax_group?: true + data_check?: true + created_by?: true + notes_client?: true + keyword?: true + terminate_reason?: true + terminate_cie?: true + terminate_note?: true + terminate_date?: true + call?: true + pub?: true + portal_client_log?: true + mauvais_payeur?: true + renew_phone?: true + ppa_cc?: true + stripe_id?: true +} + +export type AccountCountAggregateInputType = { + id?: true + customer_id?: true + date_orig?: true + date_last?: true + date_expire?: true + language_id?: true + country_id?: true + currency_id?: true + username?: true + password?: true + group_id?: true + misc?: true + status?: true + first_name?: true + middle_name?: true + last_name?: true + mandataire?: true + title?: true + email?: true + email_autre?: true + company?: true + contact?: true + address1?: true + address2?: true + city?: true + state?: true + zip?: true + tel_home?: true + tel_office?: true + tel_office_ext?: true + cell?: true + fax?: true + invoice_delivery?: true + land_owner?: true + frais?: true + ppa?: true + ppa_all_invoice?: true + ppa_name?: true + ppa_code?: true + ppa_branch?: true + ppa_account?: true + ppa_amount?: true + ppa_amount_buffer?: true + ppa_all_tmp?: true + ppa_fixed?: true + commercial?: true + vip?: true + tax_group?: true + data_check?: true + created_by?: true + notes_client?: true + keyword?: true + terminate_reason?: true + terminate_cie?: true + terminate_note?: true + terminate_date?: true + call?: true + pub?: true + portal_client_log?: true + mauvais_payeur?: true + renew_phone?: true + ppa_cc?: true + stripe_id?: 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: bigint + customer_id: string | null + date_orig: bigint | null + date_last: bigint | null + date_expire: bigint | null + language_id: string + country_id: number + currency_id: number | null + username: string | null + password: string | null + group_id: number + misc: string | null + status: number | null + first_name: string | null + middle_name: string | null + last_name: string | null + mandataire: string | null + title: string | null + email: string | null + email_autre: string | null + company: string | null + contact: string + address1: string | null + address2: string | null + city: string | null + state: string | null + zip: string | null + tel_home: string | null + tel_office: string | null + tel_office_ext: string | null + cell: string | null + fax: string | null + invoice_delivery: number + land_owner: boolean + frais: boolean + ppa: boolean + ppa_all_invoice: number + ppa_name: string | null + ppa_code: string | null + ppa_branch: string | null + ppa_account: string | null + ppa_amount: runtime.Decimal + ppa_amount_buffer: number + ppa_all_tmp: number + ppa_fixed: boolean + commercial: boolean + vip: boolean + tax_group: number + data_check: boolean + created_by: number | null + notes_client: string | null + keyword: string | null + terminate_reason: string | null + terminate_cie: string | null + terminate_note: string | null + terminate_date: string | null + call: boolean + pub: boolean + portal_client_log: boolean + mauvais_payeur: boolean + renew_phone: boolean + ppa_cc: number + stripe_id: 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.BigIntFilter<"account"> | bigint | number + customer_id?: Prisma.StringNullableFilter<"account"> | string | null + date_orig?: Prisma.BigIntNullableFilter<"account"> | bigint | number | null + date_last?: Prisma.BigIntNullableFilter<"account"> | bigint | number | null + date_expire?: Prisma.BigIntNullableFilter<"account"> | bigint | number | null + language_id?: Prisma.StringFilter<"account"> | string + country_id?: Prisma.IntFilter<"account"> | number + currency_id?: Prisma.IntNullableFilter<"account"> | number | null + username?: Prisma.StringNullableFilter<"account"> | string | null + password?: Prisma.StringNullableFilter<"account"> | string | null + group_id?: Prisma.IntFilter<"account"> | number + misc?: Prisma.StringNullableFilter<"account"> | string | null + status?: Prisma.IntNullableFilter<"account"> | number | null + first_name?: Prisma.StringNullableFilter<"account"> | string | null + middle_name?: Prisma.StringNullableFilter<"account"> | string | null + last_name?: Prisma.StringNullableFilter<"account"> | string | null + mandataire?: Prisma.StringNullableFilter<"account"> | string | null + title?: Prisma.StringNullableFilter<"account"> | string | null + email?: Prisma.StringNullableFilter<"account"> | string | null + email_autre?: Prisma.StringNullableFilter<"account"> | string | null + company?: Prisma.StringNullableFilter<"account"> | string | null + contact?: Prisma.StringFilter<"account"> | string + address1?: Prisma.StringNullableFilter<"account"> | string | null + address2?: Prisma.StringNullableFilter<"account"> | string | null + city?: Prisma.StringNullableFilter<"account"> | string | null + state?: Prisma.StringNullableFilter<"account"> | string | null + zip?: Prisma.StringNullableFilter<"account"> | string | null + tel_home?: Prisma.StringNullableFilter<"account"> | string | null + tel_office?: Prisma.StringNullableFilter<"account"> | string | null + tel_office_ext?: Prisma.StringNullableFilter<"account"> | string | null + cell?: Prisma.StringNullableFilter<"account"> | string | null + fax?: Prisma.StringNullableFilter<"account"> | string | null + invoice_delivery?: Prisma.IntFilter<"account"> | number + land_owner?: Prisma.BoolFilter<"account"> | boolean + frais?: Prisma.BoolFilter<"account"> | boolean + ppa?: Prisma.BoolFilter<"account"> | boolean + ppa_all_invoice?: Prisma.IntFilter<"account"> | number + ppa_name?: Prisma.StringNullableFilter<"account"> | string | null + ppa_code?: Prisma.StringNullableFilter<"account"> | string | null + ppa_branch?: Prisma.StringNullableFilter<"account"> | string | null + ppa_account?: Prisma.StringNullableFilter<"account"> | string | null + ppa_amount?: Prisma.DecimalFilter<"account"> | runtime.Decimal | runtime.DecimalJsLike | number | string + ppa_amount_buffer?: Prisma.FloatFilter<"account"> | number + ppa_all_tmp?: Prisma.IntFilter<"account"> | number + ppa_fixed?: Prisma.BoolFilter<"account"> | boolean + commercial?: Prisma.BoolFilter<"account"> | boolean + vip?: Prisma.BoolFilter<"account"> | boolean + tax_group?: Prisma.IntFilter<"account"> | number + data_check?: Prisma.BoolFilter<"account"> | boolean + created_by?: Prisma.IntNullableFilter<"account"> | number | null + notes_client?: Prisma.StringNullableFilter<"account"> | string | null + keyword?: Prisma.StringNullableFilter<"account"> | string | null + terminate_reason?: Prisma.StringNullableFilter<"account"> | string | null + terminate_cie?: Prisma.StringNullableFilter<"account"> | string | null + terminate_note?: Prisma.StringNullableFilter<"account"> | string | null + terminate_date?: Prisma.StringNullableFilter<"account"> | string | null + call?: Prisma.BoolFilter<"account"> | boolean + pub?: Prisma.BoolFilter<"account"> | boolean + portal_client_log?: Prisma.BoolFilter<"account"> | boolean + mauvais_payeur?: Prisma.BoolFilter<"account"> | boolean + renew_phone?: Prisma.BoolFilter<"account"> | boolean + ppa_cc?: Prisma.IntFilter<"account"> | number + stripe_id?: Prisma.StringNullableFilter<"account"> | string | null +} + +export type accountOrderByWithRelationInput = { + id?: Prisma.SortOrder + customer_id?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + date_last?: Prisma.SortOrderInput | Prisma.SortOrder + date_expire?: Prisma.SortOrderInput | Prisma.SortOrder + language_id?: Prisma.SortOrder + country_id?: Prisma.SortOrder + currency_id?: Prisma.SortOrderInput | Prisma.SortOrder + username?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + group_id?: Prisma.SortOrder + misc?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + first_name?: Prisma.SortOrderInput | Prisma.SortOrder + middle_name?: Prisma.SortOrderInput | Prisma.SortOrder + last_name?: Prisma.SortOrderInput | Prisma.SortOrder + mandataire?: Prisma.SortOrderInput | Prisma.SortOrder + title?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + email_autre?: Prisma.SortOrderInput | Prisma.SortOrder + company?: Prisma.SortOrderInput | Prisma.SortOrder + contact?: Prisma.SortOrder + address1?: Prisma.SortOrderInput | Prisma.SortOrder + address2?: Prisma.SortOrderInput | Prisma.SortOrder + city?: Prisma.SortOrderInput | Prisma.SortOrder + state?: Prisma.SortOrderInput | Prisma.SortOrder + zip?: Prisma.SortOrderInput | Prisma.SortOrder + tel_home?: Prisma.SortOrderInput | Prisma.SortOrder + tel_office?: Prisma.SortOrderInput | Prisma.SortOrder + tel_office_ext?: Prisma.SortOrderInput | Prisma.SortOrder + cell?: Prisma.SortOrderInput | Prisma.SortOrder + fax?: Prisma.SortOrderInput | Prisma.SortOrder + invoice_delivery?: Prisma.SortOrder + land_owner?: Prisma.SortOrder + frais?: Prisma.SortOrder + ppa?: Prisma.SortOrder + ppa_all_invoice?: Prisma.SortOrder + ppa_name?: Prisma.SortOrderInput | Prisma.SortOrder + ppa_code?: Prisma.SortOrderInput | Prisma.SortOrder + ppa_branch?: Prisma.SortOrderInput | Prisma.SortOrder + ppa_account?: Prisma.SortOrderInput | Prisma.SortOrder + ppa_amount?: Prisma.SortOrder + ppa_amount_buffer?: Prisma.SortOrder + ppa_all_tmp?: Prisma.SortOrder + ppa_fixed?: Prisma.SortOrder + commercial?: Prisma.SortOrder + vip?: Prisma.SortOrder + tax_group?: Prisma.SortOrder + data_check?: Prisma.SortOrder + created_by?: Prisma.SortOrderInput | Prisma.SortOrder + notes_client?: Prisma.SortOrderInput | Prisma.SortOrder + keyword?: Prisma.SortOrderInput | Prisma.SortOrder + terminate_reason?: Prisma.SortOrderInput | Prisma.SortOrder + terminate_cie?: Prisma.SortOrderInput | Prisma.SortOrder + terminate_note?: Prisma.SortOrderInput | Prisma.SortOrder + terminate_date?: Prisma.SortOrderInput | Prisma.SortOrder + call?: Prisma.SortOrder + pub?: Prisma.SortOrder + portal_client_log?: Prisma.SortOrder + mauvais_payeur?: Prisma.SortOrder + renew_phone?: Prisma.SortOrder + ppa_cc?: Prisma.SortOrder + stripe_id?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.accountOrderByRelevanceInput +} + +export type accountWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.accountWhereInput | Prisma.accountWhereInput[] + OR?: Prisma.accountWhereInput[] + NOT?: Prisma.accountWhereInput | Prisma.accountWhereInput[] + customer_id?: Prisma.StringNullableFilter<"account"> | string | null + date_orig?: Prisma.BigIntNullableFilter<"account"> | bigint | number | null + date_last?: Prisma.BigIntNullableFilter<"account"> | bigint | number | null + date_expire?: Prisma.BigIntNullableFilter<"account"> | bigint | number | null + language_id?: Prisma.StringFilter<"account"> | string + country_id?: Prisma.IntFilter<"account"> | number + currency_id?: Prisma.IntNullableFilter<"account"> | number | null + username?: Prisma.StringNullableFilter<"account"> | string | null + password?: Prisma.StringNullableFilter<"account"> | string | null + group_id?: Prisma.IntFilter<"account"> | number + misc?: Prisma.StringNullableFilter<"account"> | string | null + status?: Prisma.IntNullableFilter<"account"> | number | null + first_name?: Prisma.StringNullableFilter<"account"> | string | null + middle_name?: Prisma.StringNullableFilter<"account"> | string | null + last_name?: Prisma.StringNullableFilter<"account"> | string | null + mandataire?: Prisma.StringNullableFilter<"account"> | string | null + title?: Prisma.StringNullableFilter<"account"> | string | null + email?: Prisma.StringNullableFilter<"account"> | string | null + email_autre?: Prisma.StringNullableFilter<"account"> | string | null + company?: Prisma.StringNullableFilter<"account"> | string | null + contact?: Prisma.StringFilter<"account"> | string + address1?: Prisma.StringNullableFilter<"account"> | string | null + address2?: Prisma.StringNullableFilter<"account"> | string | null + city?: Prisma.StringNullableFilter<"account"> | string | null + state?: Prisma.StringNullableFilter<"account"> | string | null + zip?: Prisma.StringNullableFilter<"account"> | string | null + tel_home?: Prisma.StringNullableFilter<"account"> | string | null + tel_office?: Prisma.StringNullableFilter<"account"> | string | null + tel_office_ext?: Prisma.StringNullableFilter<"account"> | string | null + cell?: Prisma.StringNullableFilter<"account"> | string | null + fax?: Prisma.StringNullableFilter<"account"> | string | null + invoice_delivery?: Prisma.IntFilter<"account"> | number + land_owner?: Prisma.BoolFilter<"account"> | boolean + frais?: Prisma.BoolFilter<"account"> | boolean + ppa?: Prisma.BoolFilter<"account"> | boolean + ppa_all_invoice?: Prisma.IntFilter<"account"> | number + ppa_name?: Prisma.StringNullableFilter<"account"> | string | null + ppa_code?: Prisma.StringNullableFilter<"account"> | string | null + ppa_branch?: Prisma.StringNullableFilter<"account"> | string | null + ppa_account?: Prisma.StringNullableFilter<"account"> | string | null + ppa_amount?: Prisma.DecimalFilter<"account"> | runtime.Decimal | runtime.DecimalJsLike | number | string + ppa_amount_buffer?: Prisma.FloatFilter<"account"> | number + ppa_all_tmp?: Prisma.IntFilter<"account"> | number + ppa_fixed?: Prisma.BoolFilter<"account"> | boolean + commercial?: Prisma.BoolFilter<"account"> | boolean + vip?: Prisma.BoolFilter<"account"> | boolean + tax_group?: Prisma.IntFilter<"account"> | number + data_check?: Prisma.BoolFilter<"account"> | boolean + created_by?: Prisma.IntNullableFilter<"account"> | number | null + notes_client?: Prisma.StringNullableFilter<"account"> | string | null + keyword?: Prisma.StringNullableFilter<"account"> | string | null + terminate_reason?: Prisma.StringNullableFilter<"account"> | string | null + terminate_cie?: Prisma.StringNullableFilter<"account"> | string | null + terminate_note?: Prisma.StringNullableFilter<"account"> | string | null + terminate_date?: Prisma.StringNullableFilter<"account"> | string | null + call?: Prisma.BoolFilter<"account"> | boolean + pub?: Prisma.BoolFilter<"account"> | boolean + portal_client_log?: Prisma.BoolFilter<"account"> | boolean + mauvais_payeur?: Prisma.BoolFilter<"account"> | boolean + renew_phone?: Prisma.BoolFilter<"account"> | boolean + ppa_cc?: Prisma.IntFilter<"account"> | number + stripe_id?: Prisma.StringNullableFilter<"account"> | string | null +}, "id"> + +export type accountOrderByWithAggregationInput = { + id?: Prisma.SortOrder + customer_id?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + date_last?: Prisma.SortOrderInput | Prisma.SortOrder + date_expire?: Prisma.SortOrderInput | Prisma.SortOrder + language_id?: Prisma.SortOrder + country_id?: Prisma.SortOrder + currency_id?: Prisma.SortOrderInput | Prisma.SortOrder + username?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + group_id?: Prisma.SortOrder + misc?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + first_name?: Prisma.SortOrderInput | Prisma.SortOrder + middle_name?: Prisma.SortOrderInput | Prisma.SortOrder + last_name?: Prisma.SortOrderInput | Prisma.SortOrder + mandataire?: Prisma.SortOrderInput | Prisma.SortOrder + title?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + email_autre?: Prisma.SortOrderInput | Prisma.SortOrder + company?: Prisma.SortOrderInput | Prisma.SortOrder + contact?: Prisma.SortOrder + address1?: Prisma.SortOrderInput | Prisma.SortOrder + address2?: Prisma.SortOrderInput | Prisma.SortOrder + city?: Prisma.SortOrderInput | Prisma.SortOrder + state?: Prisma.SortOrderInput | Prisma.SortOrder + zip?: Prisma.SortOrderInput | Prisma.SortOrder + tel_home?: Prisma.SortOrderInput | Prisma.SortOrder + tel_office?: Prisma.SortOrderInput | Prisma.SortOrder + tel_office_ext?: Prisma.SortOrderInput | Prisma.SortOrder + cell?: Prisma.SortOrderInput | Prisma.SortOrder + fax?: Prisma.SortOrderInput | Prisma.SortOrder + invoice_delivery?: Prisma.SortOrder + land_owner?: Prisma.SortOrder + frais?: Prisma.SortOrder + ppa?: Prisma.SortOrder + ppa_all_invoice?: Prisma.SortOrder + ppa_name?: Prisma.SortOrderInput | Prisma.SortOrder + ppa_code?: Prisma.SortOrderInput | Prisma.SortOrder + ppa_branch?: Prisma.SortOrderInput | Prisma.SortOrder + ppa_account?: Prisma.SortOrderInput | Prisma.SortOrder + ppa_amount?: Prisma.SortOrder + ppa_amount_buffer?: Prisma.SortOrder + ppa_all_tmp?: Prisma.SortOrder + ppa_fixed?: Prisma.SortOrder + commercial?: Prisma.SortOrder + vip?: Prisma.SortOrder + tax_group?: Prisma.SortOrder + data_check?: Prisma.SortOrder + created_by?: Prisma.SortOrderInput | Prisma.SortOrder + notes_client?: Prisma.SortOrderInput | Prisma.SortOrder + keyword?: Prisma.SortOrderInput | Prisma.SortOrder + terminate_reason?: Prisma.SortOrderInput | Prisma.SortOrder + terminate_cie?: Prisma.SortOrderInput | Prisma.SortOrder + terminate_note?: Prisma.SortOrderInput | Prisma.SortOrder + terminate_date?: Prisma.SortOrderInput | Prisma.SortOrder + call?: Prisma.SortOrder + pub?: Prisma.SortOrder + portal_client_log?: Prisma.SortOrder + mauvais_payeur?: Prisma.SortOrder + renew_phone?: Prisma.SortOrder + ppa_cc?: Prisma.SortOrder + stripe_id?: 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.BigIntWithAggregatesFilter<"account"> | bigint | number + customer_id?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"account"> | bigint | number | null + date_last?: Prisma.BigIntNullableWithAggregatesFilter<"account"> | bigint | number | null + date_expire?: Prisma.BigIntNullableWithAggregatesFilter<"account"> | bigint | number | null + language_id?: Prisma.StringWithAggregatesFilter<"account"> | string + country_id?: Prisma.IntWithAggregatesFilter<"account"> | number + currency_id?: Prisma.IntNullableWithAggregatesFilter<"account"> | number | null + username?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + password?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + group_id?: Prisma.IntWithAggregatesFilter<"account"> | number + misc?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + status?: Prisma.IntNullableWithAggregatesFilter<"account"> | number | null + first_name?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + middle_name?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + last_name?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + mandataire?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + title?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + email?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + email_autre?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + company?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + contact?: Prisma.StringWithAggregatesFilter<"account"> | string + address1?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + address2?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + city?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + state?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + zip?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + tel_home?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + tel_office?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + tel_office_ext?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + cell?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + fax?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + invoice_delivery?: Prisma.IntWithAggregatesFilter<"account"> | number + land_owner?: Prisma.BoolWithAggregatesFilter<"account"> | boolean + frais?: Prisma.BoolWithAggregatesFilter<"account"> | boolean + ppa?: Prisma.BoolWithAggregatesFilter<"account"> | boolean + ppa_all_invoice?: Prisma.IntWithAggregatesFilter<"account"> | number + ppa_name?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + ppa_code?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + ppa_branch?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + ppa_account?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + ppa_amount?: Prisma.DecimalWithAggregatesFilter<"account"> | runtime.Decimal | runtime.DecimalJsLike | number | string + ppa_amount_buffer?: Prisma.FloatWithAggregatesFilter<"account"> | number + ppa_all_tmp?: Prisma.IntWithAggregatesFilter<"account"> | number + ppa_fixed?: Prisma.BoolWithAggregatesFilter<"account"> | boolean + commercial?: Prisma.BoolWithAggregatesFilter<"account"> | boolean + vip?: Prisma.BoolWithAggregatesFilter<"account"> | boolean + tax_group?: Prisma.IntWithAggregatesFilter<"account"> | number + data_check?: Prisma.BoolWithAggregatesFilter<"account"> | boolean + created_by?: Prisma.IntNullableWithAggregatesFilter<"account"> | number | null + notes_client?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + keyword?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + terminate_reason?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + terminate_cie?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + terminate_note?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + terminate_date?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null + call?: Prisma.BoolWithAggregatesFilter<"account"> | boolean + pub?: Prisma.BoolWithAggregatesFilter<"account"> | boolean + portal_client_log?: Prisma.BoolWithAggregatesFilter<"account"> | boolean + mauvais_payeur?: Prisma.BoolWithAggregatesFilter<"account"> | boolean + renew_phone?: Prisma.BoolWithAggregatesFilter<"account"> | boolean + ppa_cc?: Prisma.IntWithAggregatesFilter<"account"> | number + stripe_id?: Prisma.StringNullableWithAggregatesFilter<"account"> | string | null +} + +export type accountCreateInput = { + id?: bigint | number + customer_id?: string | null + date_orig?: bigint | number | null + date_last?: bigint | number | null + date_expire?: bigint | number | null + language_id?: string + country_id?: number + currency_id?: number | null + username?: string | null + password?: string | null + group_id?: number + misc?: string | null + status?: number | null + first_name?: string | null + middle_name?: string | null + last_name?: string | null + mandataire?: string | null + title?: string | null + email?: string | null + email_autre?: string | null + company?: string | null + contact: string + address1?: string | null + address2?: string | null + city?: string | null + state?: string | null + zip?: string | null + tel_home?: string | null + tel_office?: string | null + tel_office_ext?: string | null + cell?: string | null + fax?: string | null + invoice_delivery?: number + land_owner?: boolean + frais?: boolean + ppa?: boolean + ppa_all_invoice?: number + ppa_name?: string | null + ppa_code?: string | null + ppa_branch?: string | null + ppa_account?: string | null + ppa_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string + ppa_amount_buffer?: number + ppa_all_tmp?: number + ppa_fixed?: boolean + commercial?: boolean + vip?: boolean + tax_group?: number + data_check?: boolean + created_by?: number | null + notes_client?: string | null + keyword?: string | null + terminate_reason?: string | null + terminate_cie?: string | null + terminate_note?: string | null + terminate_date?: string | null + call?: boolean + pub?: boolean + portal_client_log?: boolean + mauvais_payeur?: boolean + renew_phone?: boolean + ppa_cc?: number + stripe_id?: string | null +} + +export type accountUncheckedCreateInput = { + id?: bigint | number + customer_id?: string | null + date_orig?: bigint | number | null + date_last?: bigint | number | null + date_expire?: bigint | number | null + language_id?: string + country_id?: number + currency_id?: number | null + username?: string | null + password?: string | null + group_id?: number + misc?: string | null + status?: number | null + first_name?: string | null + middle_name?: string | null + last_name?: string | null + mandataire?: string | null + title?: string | null + email?: string | null + email_autre?: string | null + company?: string | null + contact: string + address1?: string | null + address2?: string | null + city?: string | null + state?: string | null + zip?: string | null + tel_home?: string | null + tel_office?: string | null + tel_office_ext?: string | null + cell?: string | null + fax?: string | null + invoice_delivery?: number + land_owner?: boolean + frais?: boolean + ppa?: boolean + ppa_all_invoice?: number + ppa_name?: string | null + ppa_code?: string | null + ppa_branch?: string | null + ppa_account?: string | null + ppa_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string + ppa_amount_buffer?: number + ppa_all_tmp?: number + ppa_fixed?: boolean + commercial?: boolean + vip?: boolean + tax_group?: number + data_check?: boolean + created_by?: number | null + notes_client?: string | null + keyword?: string | null + terminate_reason?: string | null + terminate_cie?: string | null + terminate_note?: string | null + terminate_date?: string | null + call?: boolean + pub?: boolean + portal_client_log?: boolean + mauvais_payeur?: boolean + renew_phone?: boolean + ppa_cc?: number + stripe_id?: string | null +} + +export type accountUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_expire?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + language_id?: Prisma.StringFieldUpdateOperationsInput | string + country_id?: Prisma.IntFieldUpdateOperationsInput | number + currency_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + group_id?: Prisma.IntFieldUpdateOperationsInput | number + misc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + middle_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mandataire?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email_autre?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + company?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + contact?: Prisma.StringFieldUpdateOperationsInput | string + address1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + address2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + zip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_home?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office_ext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cell?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invoice_delivery?: Prisma.IntFieldUpdateOperationsInput | number + land_owner?: Prisma.BoolFieldUpdateOperationsInput | boolean + frais?: Prisma.BoolFieldUpdateOperationsInput | boolean + ppa?: Prisma.BoolFieldUpdateOperationsInput | boolean + ppa_all_invoice?: Prisma.IntFieldUpdateOperationsInput | number + ppa_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_branch?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_account?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + ppa_amount_buffer?: Prisma.FloatFieldUpdateOperationsInput | number + ppa_all_tmp?: Prisma.IntFieldUpdateOperationsInput | number + ppa_fixed?: Prisma.BoolFieldUpdateOperationsInput | boolean + commercial?: Prisma.BoolFieldUpdateOperationsInput | boolean + vip?: Prisma.BoolFieldUpdateOperationsInput | boolean + tax_group?: Prisma.IntFieldUpdateOperationsInput | number + data_check?: Prisma.BoolFieldUpdateOperationsInput | boolean + created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + notes_client?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + keyword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_cie?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + call?: Prisma.BoolFieldUpdateOperationsInput | boolean + pub?: Prisma.BoolFieldUpdateOperationsInput | boolean + portal_client_log?: Prisma.BoolFieldUpdateOperationsInput | boolean + mauvais_payeur?: Prisma.BoolFieldUpdateOperationsInput | boolean + renew_phone?: Prisma.BoolFieldUpdateOperationsInput | boolean + ppa_cc?: Prisma.IntFieldUpdateOperationsInput | number + stripe_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type accountUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_expire?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + language_id?: Prisma.StringFieldUpdateOperationsInput | string + country_id?: Prisma.IntFieldUpdateOperationsInput | number + currency_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + group_id?: Prisma.IntFieldUpdateOperationsInput | number + misc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + middle_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mandataire?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email_autre?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + company?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + contact?: Prisma.StringFieldUpdateOperationsInput | string + address1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + address2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + zip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_home?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office_ext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cell?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invoice_delivery?: Prisma.IntFieldUpdateOperationsInput | number + land_owner?: Prisma.BoolFieldUpdateOperationsInput | boolean + frais?: Prisma.BoolFieldUpdateOperationsInput | boolean + ppa?: Prisma.BoolFieldUpdateOperationsInput | boolean + ppa_all_invoice?: Prisma.IntFieldUpdateOperationsInput | number + ppa_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_branch?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_account?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + ppa_amount_buffer?: Prisma.FloatFieldUpdateOperationsInput | number + ppa_all_tmp?: Prisma.IntFieldUpdateOperationsInput | number + ppa_fixed?: Prisma.BoolFieldUpdateOperationsInput | boolean + commercial?: Prisma.BoolFieldUpdateOperationsInput | boolean + vip?: Prisma.BoolFieldUpdateOperationsInput | boolean + tax_group?: Prisma.IntFieldUpdateOperationsInput | number + data_check?: Prisma.BoolFieldUpdateOperationsInput | boolean + created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + notes_client?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + keyword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_cie?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + call?: Prisma.BoolFieldUpdateOperationsInput | boolean + pub?: Prisma.BoolFieldUpdateOperationsInput | boolean + portal_client_log?: Prisma.BoolFieldUpdateOperationsInput | boolean + mauvais_payeur?: Prisma.BoolFieldUpdateOperationsInput | boolean + renew_phone?: Prisma.BoolFieldUpdateOperationsInput | boolean + ppa_cc?: Prisma.IntFieldUpdateOperationsInput | number + stripe_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type accountCreateManyInput = { + id?: bigint | number + customer_id?: string | null + date_orig?: bigint | number | null + date_last?: bigint | number | null + date_expire?: bigint | number | null + language_id?: string + country_id?: number + currency_id?: number | null + username?: string | null + password?: string | null + group_id?: number + misc?: string | null + status?: number | null + first_name?: string | null + middle_name?: string | null + last_name?: string | null + mandataire?: string | null + title?: string | null + email?: string | null + email_autre?: string | null + company?: string | null + contact: string + address1?: string | null + address2?: string | null + city?: string | null + state?: string | null + zip?: string | null + tel_home?: string | null + tel_office?: string | null + tel_office_ext?: string | null + cell?: string | null + fax?: string | null + invoice_delivery?: number + land_owner?: boolean + frais?: boolean + ppa?: boolean + ppa_all_invoice?: number + ppa_name?: string | null + ppa_code?: string | null + ppa_branch?: string | null + ppa_account?: string | null + ppa_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string + ppa_amount_buffer?: number + ppa_all_tmp?: number + ppa_fixed?: boolean + commercial?: boolean + vip?: boolean + tax_group?: number + data_check?: boolean + created_by?: number | null + notes_client?: string | null + keyword?: string | null + terminate_reason?: string | null + terminate_cie?: string | null + terminate_note?: string | null + terminate_date?: string | null + call?: boolean + pub?: boolean + portal_client_log?: boolean + mauvais_payeur?: boolean + renew_phone?: boolean + ppa_cc?: number + stripe_id?: string | null +} + +export type accountUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_expire?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + language_id?: Prisma.StringFieldUpdateOperationsInput | string + country_id?: Prisma.IntFieldUpdateOperationsInput | number + currency_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + group_id?: Prisma.IntFieldUpdateOperationsInput | number + misc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + middle_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mandataire?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email_autre?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + company?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + contact?: Prisma.StringFieldUpdateOperationsInput | string + address1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + address2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + zip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_home?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office_ext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cell?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invoice_delivery?: Prisma.IntFieldUpdateOperationsInput | number + land_owner?: Prisma.BoolFieldUpdateOperationsInput | boolean + frais?: Prisma.BoolFieldUpdateOperationsInput | boolean + ppa?: Prisma.BoolFieldUpdateOperationsInput | boolean + ppa_all_invoice?: Prisma.IntFieldUpdateOperationsInput | number + ppa_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_branch?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_account?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + ppa_amount_buffer?: Prisma.FloatFieldUpdateOperationsInput | number + ppa_all_tmp?: Prisma.IntFieldUpdateOperationsInput | number + ppa_fixed?: Prisma.BoolFieldUpdateOperationsInput | boolean + commercial?: Prisma.BoolFieldUpdateOperationsInput | boolean + vip?: Prisma.BoolFieldUpdateOperationsInput | boolean + tax_group?: Prisma.IntFieldUpdateOperationsInput | number + data_check?: Prisma.BoolFieldUpdateOperationsInput | boolean + created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + notes_client?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + keyword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_cie?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + call?: Prisma.BoolFieldUpdateOperationsInput | boolean + pub?: Prisma.BoolFieldUpdateOperationsInput | boolean + portal_client_log?: Prisma.BoolFieldUpdateOperationsInput | boolean + mauvais_payeur?: Prisma.BoolFieldUpdateOperationsInput | boolean + renew_phone?: Prisma.BoolFieldUpdateOperationsInput | boolean + ppa_cc?: Prisma.IntFieldUpdateOperationsInput | number + stripe_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type accountUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_expire?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + language_id?: Prisma.StringFieldUpdateOperationsInput | string + country_id?: Prisma.IntFieldUpdateOperationsInput | number + currency_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + group_id?: Prisma.IntFieldUpdateOperationsInput | number + misc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + middle_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mandataire?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email_autre?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + company?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + contact?: Prisma.StringFieldUpdateOperationsInput | string + address1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + address2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + zip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_home?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office_ext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cell?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + invoice_delivery?: Prisma.IntFieldUpdateOperationsInput | number + land_owner?: Prisma.BoolFieldUpdateOperationsInput | boolean + frais?: Prisma.BoolFieldUpdateOperationsInput | boolean + ppa?: Prisma.BoolFieldUpdateOperationsInput | boolean + ppa_all_invoice?: Prisma.IntFieldUpdateOperationsInput | number + ppa_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_branch?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_account?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ppa_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + ppa_amount_buffer?: Prisma.FloatFieldUpdateOperationsInput | number + ppa_all_tmp?: Prisma.IntFieldUpdateOperationsInput | number + ppa_fixed?: Prisma.BoolFieldUpdateOperationsInput | boolean + commercial?: Prisma.BoolFieldUpdateOperationsInput | boolean + vip?: Prisma.BoolFieldUpdateOperationsInput | boolean + tax_group?: Prisma.IntFieldUpdateOperationsInput | number + data_check?: Prisma.BoolFieldUpdateOperationsInput | boolean + created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + notes_client?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + keyword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_cie?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + terminate_date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + call?: Prisma.BoolFieldUpdateOperationsInput | boolean + pub?: Prisma.BoolFieldUpdateOperationsInput | boolean + portal_client_log?: Prisma.BoolFieldUpdateOperationsInput | boolean + mauvais_payeur?: Prisma.BoolFieldUpdateOperationsInput | boolean + renew_phone?: Prisma.BoolFieldUpdateOperationsInput | boolean + ppa_cc?: Prisma.IntFieldUpdateOperationsInput | number + stripe_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type accountOrderByRelevanceInput = { + fields: Prisma.accountOrderByRelevanceFieldEnum | Prisma.accountOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type accountCountOrderByAggregateInput = { + id?: Prisma.SortOrder + customer_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_last?: Prisma.SortOrder + date_expire?: Prisma.SortOrder + language_id?: Prisma.SortOrder + country_id?: Prisma.SortOrder + currency_id?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + group_id?: Prisma.SortOrder + misc?: Prisma.SortOrder + status?: Prisma.SortOrder + first_name?: Prisma.SortOrder + middle_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + mandataire?: Prisma.SortOrder + title?: Prisma.SortOrder + email?: Prisma.SortOrder + email_autre?: Prisma.SortOrder + company?: Prisma.SortOrder + contact?: Prisma.SortOrder + address1?: Prisma.SortOrder + address2?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder + tel_home?: Prisma.SortOrder + tel_office?: Prisma.SortOrder + tel_office_ext?: Prisma.SortOrder + cell?: Prisma.SortOrder + fax?: Prisma.SortOrder + invoice_delivery?: Prisma.SortOrder + land_owner?: Prisma.SortOrder + frais?: Prisma.SortOrder + ppa?: Prisma.SortOrder + ppa_all_invoice?: Prisma.SortOrder + ppa_name?: Prisma.SortOrder + ppa_code?: Prisma.SortOrder + ppa_branch?: Prisma.SortOrder + ppa_account?: Prisma.SortOrder + ppa_amount?: Prisma.SortOrder + ppa_amount_buffer?: Prisma.SortOrder + ppa_all_tmp?: Prisma.SortOrder + ppa_fixed?: Prisma.SortOrder + commercial?: Prisma.SortOrder + vip?: Prisma.SortOrder + tax_group?: Prisma.SortOrder + data_check?: Prisma.SortOrder + created_by?: Prisma.SortOrder + notes_client?: Prisma.SortOrder + keyword?: Prisma.SortOrder + terminate_reason?: Prisma.SortOrder + terminate_cie?: Prisma.SortOrder + terminate_note?: Prisma.SortOrder + terminate_date?: Prisma.SortOrder + call?: Prisma.SortOrder + pub?: Prisma.SortOrder + portal_client_log?: Prisma.SortOrder + mauvais_payeur?: Prisma.SortOrder + renew_phone?: Prisma.SortOrder + ppa_cc?: Prisma.SortOrder + stripe_id?: Prisma.SortOrder +} + +export type accountAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_last?: Prisma.SortOrder + date_expire?: Prisma.SortOrder + country_id?: Prisma.SortOrder + currency_id?: Prisma.SortOrder + group_id?: Prisma.SortOrder + status?: Prisma.SortOrder + invoice_delivery?: Prisma.SortOrder + ppa_all_invoice?: Prisma.SortOrder + ppa_amount?: Prisma.SortOrder + ppa_amount_buffer?: Prisma.SortOrder + ppa_all_tmp?: Prisma.SortOrder + tax_group?: Prisma.SortOrder + created_by?: Prisma.SortOrder + ppa_cc?: Prisma.SortOrder +} + +export type accountMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + customer_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_last?: Prisma.SortOrder + date_expire?: Prisma.SortOrder + language_id?: Prisma.SortOrder + country_id?: Prisma.SortOrder + currency_id?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + group_id?: Prisma.SortOrder + misc?: Prisma.SortOrder + status?: Prisma.SortOrder + first_name?: Prisma.SortOrder + middle_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + mandataire?: Prisma.SortOrder + title?: Prisma.SortOrder + email?: Prisma.SortOrder + email_autre?: Prisma.SortOrder + company?: Prisma.SortOrder + contact?: Prisma.SortOrder + address1?: Prisma.SortOrder + address2?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder + tel_home?: Prisma.SortOrder + tel_office?: Prisma.SortOrder + tel_office_ext?: Prisma.SortOrder + cell?: Prisma.SortOrder + fax?: Prisma.SortOrder + invoice_delivery?: Prisma.SortOrder + land_owner?: Prisma.SortOrder + frais?: Prisma.SortOrder + ppa?: Prisma.SortOrder + ppa_all_invoice?: Prisma.SortOrder + ppa_name?: Prisma.SortOrder + ppa_code?: Prisma.SortOrder + ppa_branch?: Prisma.SortOrder + ppa_account?: Prisma.SortOrder + ppa_amount?: Prisma.SortOrder + ppa_amount_buffer?: Prisma.SortOrder + ppa_all_tmp?: Prisma.SortOrder + ppa_fixed?: Prisma.SortOrder + commercial?: Prisma.SortOrder + vip?: Prisma.SortOrder + tax_group?: Prisma.SortOrder + data_check?: Prisma.SortOrder + created_by?: Prisma.SortOrder + notes_client?: Prisma.SortOrder + keyword?: Prisma.SortOrder + terminate_reason?: Prisma.SortOrder + terminate_cie?: Prisma.SortOrder + terminate_note?: Prisma.SortOrder + terminate_date?: Prisma.SortOrder + call?: Prisma.SortOrder + pub?: Prisma.SortOrder + portal_client_log?: Prisma.SortOrder + mauvais_payeur?: Prisma.SortOrder + renew_phone?: Prisma.SortOrder + ppa_cc?: Prisma.SortOrder + stripe_id?: Prisma.SortOrder +} + +export type accountMinOrderByAggregateInput = { + id?: Prisma.SortOrder + customer_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_last?: Prisma.SortOrder + date_expire?: Prisma.SortOrder + language_id?: Prisma.SortOrder + country_id?: Prisma.SortOrder + currency_id?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + group_id?: Prisma.SortOrder + misc?: Prisma.SortOrder + status?: Prisma.SortOrder + first_name?: Prisma.SortOrder + middle_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + mandataire?: Prisma.SortOrder + title?: Prisma.SortOrder + email?: Prisma.SortOrder + email_autre?: Prisma.SortOrder + company?: Prisma.SortOrder + contact?: Prisma.SortOrder + address1?: Prisma.SortOrder + address2?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder + tel_home?: Prisma.SortOrder + tel_office?: Prisma.SortOrder + tel_office_ext?: Prisma.SortOrder + cell?: Prisma.SortOrder + fax?: Prisma.SortOrder + invoice_delivery?: Prisma.SortOrder + land_owner?: Prisma.SortOrder + frais?: Prisma.SortOrder + ppa?: Prisma.SortOrder + ppa_all_invoice?: Prisma.SortOrder + ppa_name?: Prisma.SortOrder + ppa_code?: Prisma.SortOrder + ppa_branch?: Prisma.SortOrder + ppa_account?: Prisma.SortOrder + ppa_amount?: Prisma.SortOrder + ppa_amount_buffer?: Prisma.SortOrder + ppa_all_tmp?: Prisma.SortOrder + ppa_fixed?: Prisma.SortOrder + commercial?: Prisma.SortOrder + vip?: Prisma.SortOrder + tax_group?: Prisma.SortOrder + data_check?: Prisma.SortOrder + created_by?: Prisma.SortOrder + notes_client?: Prisma.SortOrder + keyword?: Prisma.SortOrder + terminate_reason?: Prisma.SortOrder + terminate_cie?: Prisma.SortOrder + terminate_note?: Prisma.SortOrder + terminate_date?: Prisma.SortOrder + call?: Prisma.SortOrder + pub?: Prisma.SortOrder + portal_client_log?: Prisma.SortOrder + mauvais_payeur?: Prisma.SortOrder + renew_phone?: Prisma.SortOrder + ppa_cc?: Prisma.SortOrder + stripe_id?: Prisma.SortOrder +} + +export type accountSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_last?: Prisma.SortOrder + date_expire?: Prisma.SortOrder + country_id?: Prisma.SortOrder + currency_id?: Prisma.SortOrder + group_id?: Prisma.SortOrder + status?: Prisma.SortOrder + invoice_delivery?: Prisma.SortOrder + ppa_all_invoice?: Prisma.SortOrder + ppa_amount?: Prisma.SortOrder + ppa_amount_buffer?: Prisma.SortOrder + ppa_all_tmp?: Prisma.SortOrder + tax_group?: Prisma.SortOrder + created_by?: Prisma.SortOrder + ppa_cc?: Prisma.SortOrder +} + +export type BigIntFieldUpdateOperationsInput = { + set?: bigint | number + increment?: bigint | number + decrement?: bigint | number + multiply?: bigint | number + divide?: bigint | number +} + +export type NullableStringFieldUpdateOperationsInput = { + set?: string | null +} + +export type NullableBigIntFieldUpdateOperationsInput = { + set?: bigint | number | null + increment?: bigint | number + decrement?: bigint | number + multiply?: bigint | number + divide?: bigint | number +} + +export type StringFieldUpdateOperationsInput = { + set?: string +} + +export type IntFieldUpdateOperationsInput = { + set?: number + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type NullableIntFieldUpdateOperationsInput = { + set?: number | null + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type BoolFieldUpdateOperationsInput = { + set?: boolean +} + +export type DecimalFieldUpdateOperationsInput = { + set?: runtime.Decimal | runtime.DecimalJsLike | number | string + increment?: runtime.Decimal | runtime.DecimalJsLike | number | string + decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string + multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string + divide?: runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type FloatFieldUpdateOperationsInput = { + set?: number + increment?: number + decrement?: number + multiply?: number + divide?: number +} + + + +export type accountSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + customer_id?: boolean + date_orig?: boolean + date_last?: boolean + date_expire?: boolean + language_id?: boolean + country_id?: boolean + currency_id?: boolean + username?: boolean + password?: boolean + group_id?: boolean + misc?: boolean + status?: boolean + first_name?: boolean + middle_name?: boolean + last_name?: boolean + mandataire?: boolean + title?: boolean + email?: boolean + email_autre?: boolean + company?: boolean + contact?: boolean + address1?: boolean + address2?: boolean + city?: boolean + state?: boolean + zip?: boolean + tel_home?: boolean + tel_office?: boolean + tel_office_ext?: boolean + cell?: boolean + fax?: boolean + invoice_delivery?: boolean + land_owner?: boolean + frais?: boolean + ppa?: boolean + ppa_all_invoice?: boolean + ppa_name?: boolean + ppa_code?: boolean + ppa_branch?: boolean + ppa_account?: boolean + ppa_amount?: boolean + ppa_amount_buffer?: boolean + ppa_all_tmp?: boolean + ppa_fixed?: boolean + commercial?: boolean + vip?: boolean + tax_group?: boolean + data_check?: boolean + created_by?: boolean + notes_client?: boolean + keyword?: boolean + terminate_reason?: boolean + terminate_cie?: boolean + terminate_note?: boolean + terminate_date?: boolean + call?: boolean + pub?: boolean + portal_client_log?: boolean + mauvais_payeur?: boolean + renew_phone?: boolean + ppa_cc?: boolean + stripe_id?: boolean +}, ExtArgs["result"]["account"]> + + + +export type accountSelectScalar = { + id?: boolean + customer_id?: boolean + date_orig?: boolean + date_last?: boolean + date_expire?: boolean + language_id?: boolean + country_id?: boolean + currency_id?: boolean + username?: boolean + password?: boolean + group_id?: boolean + misc?: boolean + status?: boolean + first_name?: boolean + middle_name?: boolean + last_name?: boolean + mandataire?: boolean + title?: boolean + email?: boolean + email_autre?: boolean + company?: boolean + contact?: boolean + address1?: boolean + address2?: boolean + city?: boolean + state?: boolean + zip?: boolean + tel_home?: boolean + tel_office?: boolean + tel_office_ext?: boolean + cell?: boolean + fax?: boolean + invoice_delivery?: boolean + land_owner?: boolean + frais?: boolean + ppa?: boolean + ppa_all_invoice?: boolean + ppa_name?: boolean + ppa_code?: boolean + ppa_branch?: boolean + ppa_account?: boolean + ppa_amount?: boolean + ppa_amount_buffer?: boolean + ppa_all_tmp?: boolean + ppa_fixed?: boolean + commercial?: boolean + vip?: boolean + tax_group?: boolean + data_check?: boolean + created_by?: boolean + notes_client?: boolean + keyword?: boolean + terminate_reason?: boolean + terminate_cie?: boolean + terminate_note?: boolean + terminate_date?: boolean + call?: boolean + pub?: boolean + portal_client_log?: boolean + mauvais_payeur?: boolean + renew_phone?: boolean + ppa_cc?: boolean + stripe_id?: boolean +} + +export type accountOmit = runtime.Types.Extensions.GetOmit<"id" | "customer_id" | "date_orig" | "date_last" | "date_expire" | "language_id" | "country_id" | "currency_id" | "username" | "password" | "group_id" | "misc" | "status" | "first_name" | "middle_name" | "last_name" | "mandataire" | "title" | "email" | "email_autre" | "company" | "contact" | "address1" | "address2" | "city" | "state" | "zip" | "tel_home" | "tel_office" | "tel_office_ext" | "cell" | "fax" | "invoice_delivery" | "land_owner" | "frais" | "ppa" | "ppa_all_invoice" | "ppa_name" | "ppa_code" | "ppa_branch" | "ppa_account" | "ppa_amount" | "ppa_amount_buffer" | "ppa_all_tmp" | "ppa_fixed" | "commercial" | "vip" | "tax_group" | "data_check" | "created_by" | "notes_client" | "keyword" | "terminate_reason" | "terminate_cie" | "terminate_note" | "terminate_date" | "call" | "pub" | "portal_client_log" | "mauvais_payeur" | "renew_phone" | "ppa_cc" | "stripe_id", ExtArgs["result"]["account"]> + +export type $accountPayload = { + name: "account" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + customer_id: string | null + date_orig: bigint | null + date_last: bigint | null + date_expire: bigint | null + language_id: string + country_id: number + currency_id: number | null + username: string | null + password: string | null + group_id: number + misc: string | null + status: number | null + first_name: string | null + middle_name: string | null + last_name: string | null + mandataire: string | null + title: string | null + email: string | null + email_autre: string | null + company: string | null + contact: string + address1: string | null + address2: string | null + city: string | null + state: string | null + zip: string | null + tel_home: string | null + tel_office: string | null + tel_office_ext: string | null + cell: string | null + fax: string | null + invoice_delivery: number + land_owner: boolean + frais: boolean + ppa: boolean + ppa_all_invoice: number + ppa_name: string | null + ppa_code: string | null + ppa_branch: string | null + ppa_account: string | null + ppa_amount: runtime.Decimal + ppa_amount_buffer: number + ppa_all_tmp: number + ppa_fixed: boolean + commercial: boolean + vip: boolean + tax_group: number + data_check: boolean + created_by: number | null + notes_client: string | null + keyword: string | null + terminate_reason: string | null + terminate_cie: string | null + terminate_note: string | null + terminate_date: string | null + call: boolean + pub: boolean + portal_client_log: boolean + mauvais_payeur: boolean + renew_phone: boolean + ppa_cc: number + stripe_id: 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 + + /** + * 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 + + /** + * 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" + /** + * 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", 'BigInt'> + readonly customer_id: Prisma.FieldRef<"account", 'String'> + readonly date_orig: Prisma.FieldRef<"account", 'BigInt'> + readonly date_last: Prisma.FieldRef<"account", 'BigInt'> + readonly date_expire: Prisma.FieldRef<"account", 'BigInt'> + readonly language_id: Prisma.FieldRef<"account", 'String'> + readonly country_id: Prisma.FieldRef<"account", 'Int'> + readonly currency_id: Prisma.FieldRef<"account", 'Int'> + readonly username: Prisma.FieldRef<"account", 'String'> + readonly password: Prisma.FieldRef<"account", 'String'> + readonly group_id: Prisma.FieldRef<"account", 'Int'> + readonly misc: Prisma.FieldRef<"account", 'String'> + readonly status: Prisma.FieldRef<"account", 'Int'> + readonly first_name: Prisma.FieldRef<"account", 'String'> + readonly middle_name: Prisma.FieldRef<"account", 'String'> + readonly last_name: Prisma.FieldRef<"account", 'String'> + readonly mandataire: Prisma.FieldRef<"account", 'String'> + readonly title: Prisma.FieldRef<"account", 'String'> + readonly email: Prisma.FieldRef<"account", 'String'> + readonly email_autre: Prisma.FieldRef<"account", 'String'> + readonly company: Prisma.FieldRef<"account", 'String'> + readonly contact: Prisma.FieldRef<"account", 'String'> + readonly address1: Prisma.FieldRef<"account", 'String'> + readonly address2: Prisma.FieldRef<"account", 'String'> + readonly city: Prisma.FieldRef<"account", 'String'> + readonly state: Prisma.FieldRef<"account", 'String'> + readonly zip: Prisma.FieldRef<"account", 'String'> + readonly tel_home: Prisma.FieldRef<"account", 'String'> + readonly tel_office: Prisma.FieldRef<"account", 'String'> + readonly tel_office_ext: Prisma.FieldRef<"account", 'String'> + readonly cell: Prisma.FieldRef<"account", 'String'> + readonly fax: Prisma.FieldRef<"account", 'String'> + readonly invoice_delivery: Prisma.FieldRef<"account", 'Int'> + readonly land_owner: Prisma.FieldRef<"account", 'Boolean'> + readonly frais: Prisma.FieldRef<"account", 'Boolean'> + readonly ppa: Prisma.FieldRef<"account", 'Boolean'> + readonly ppa_all_invoice: Prisma.FieldRef<"account", 'Int'> + readonly ppa_name: Prisma.FieldRef<"account", 'String'> + readonly ppa_code: Prisma.FieldRef<"account", 'String'> + readonly ppa_branch: Prisma.FieldRef<"account", 'String'> + readonly ppa_account: Prisma.FieldRef<"account", 'String'> + readonly ppa_amount: Prisma.FieldRef<"account", 'Decimal'> + readonly ppa_amount_buffer: Prisma.FieldRef<"account", 'Float'> + readonly ppa_all_tmp: Prisma.FieldRef<"account", 'Int'> + readonly ppa_fixed: Prisma.FieldRef<"account", 'Boolean'> + readonly commercial: Prisma.FieldRef<"account", 'Boolean'> + readonly vip: Prisma.FieldRef<"account", 'Boolean'> + readonly tax_group: Prisma.FieldRef<"account", 'Int'> + readonly data_check: Prisma.FieldRef<"account", 'Boolean'> + readonly created_by: Prisma.FieldRef<"account", 'Int'> + readonly notes_client: Prisma.FieldRef<"account", 'String'> + readonly keyword: Prisma.FieldRef<"account", 'String'> + readonly terminate_reason: Prisma.FieldRef<"account", 'String'> + readonly terminate_cie: Prisma.FieldRef<"account", 'String'> + readonly terminate_note: Prisma.FieldRef<"account", 'String'> + readonly terminate_date: Prisma.FieldRef<"account", 'String'> + readonly call: Prisma.FieldRef<"account", 'Boolean'> + readonly pub: Prisma.FieldRef<"account", 'Boolean'> + readonly portal_client_log: Prisma.FieldRef<"account", 'Boolean'> + readonly mauvais_payeur: Prisma.FieldRef<"account", 'Boolean'> + readonly renew_phone: Prisma.FieldRef<"account", 'Boolean'> + readonly ppa_cc: Prisma.FieldRef<"account", 'Int'> + readonly stripe_id: 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 + /** + * 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 + /** + * 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 + /** + * 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 + /** + * 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 + /** + * 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 + /** + * The data needed to create a account. + */ + data: Prisma.XOR +} + +/** + * account createMany + */ +export type accountCreateManyArgs = { + /** + * The data used to create many accounts. + */ + data: Prisma.accountCreateManyInput | Prisma.accountCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * account 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 + /** + * 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 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 + /** + * 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 + /** + * 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 +} diff --git a/prisma/generated/mariadb/models/account_group.ts b/prisma/generated/mariadb/models/account_group.ts new file mode 100644 index 0000000..489dc2e --- /dev/null +++ b/prisma/generated/mariadb/models/account_group.ts @@ -0,0 +1,1033 @@ + +/* !!! 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_group` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model account_group + * + */ +export type account_groupModel = runtime.Types.Result.DefaultSelection + +export type AggregateAccount_group = { + _count: Account_groupCountAggregateOutputType | null + _avg: Account_groupAvgAggregateOutputType | null + _sum: Account_groupSumAggregateOutputType | null + _min: Account_groupMinAggregateOutputType | null + _max: Account_groupMaxAggregateOutputType | null +} + +export type Account_groupAvgAggregateOutputType = { + id: number | null + date_orig: number | null +} + +export type Account_groupSumAggregateOutputType = { + id: number | null + date_orig: bigint | null +} + +export type Account_groupMinAggregateOutputType = { + id: number | null + date_orig: bigint | null + group_name: string | null +} + +export type Account_groupMaxAggregateOutputType = { + id: number | null + date_orig: bigint | null + group_name: string | null +} + +export type Account_groupCountAggregateOutputType = { + id: number + date_orig: number + group_name: number + _all: number +} + + +export type Account_groupAvgAggregateInputType = { + id?: true + date_orig?: true +} + +export type Account_groupSumAggregateInputType = { + id?: true + date_orig?: true +} + +export type Account_groupMinAggregateInputType = { + id?: true + date_orig?: true + group_name?: true +} + +export type Account_groupMaxAggregateInputType = { + id?: true + date_orig?: true + group_name?: true +} + +export type Account_groupCountAggregateInputType = { + id?: true + date_orig?: true + group_name?: true + _all?: true +} + +export type Account_groupAggregateArgs = { + /** + * Filter which account_group to aggregate. + */ + where?: Prisma.account_groupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_groups to fetch. + */ + orderBy?: Prisma.account_groupOrderByWithRelationInput | Prisma.account_groupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.account_groupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_groups 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` account_groups. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned account_groups + **/ + _count?: true | Account_groupCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Account_groupAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Account_groupSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Account_groupMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Account_groupMaxAggregateInputType +} + +export type GetAccount_groupAggregateType = { + [P in keyof T & keyof AggregateAccount_group]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type account_groupGroupByArgs = { + where?: Prisma.account_groupWhereInput + orderBy?: Prisma.account_groupOrderByWithAggregationInput | Prisma.account_groupOrderByWithAggregationInput[] + by: Prisma.Account_groupScalarFieldEnum[] | Prisma.Account_groupScalarFieldEnum + having?: Prisma.account_groupScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Account_groupCountAggregateInputType | true + _avg?: Account_groupAvgAggregateInputType + _sum?: Account_groupSumAggregateInputType + _min?: Account_groupMinAggregateInputType + _max?: Account_groupMaxAggregateInputType +} + +export type Account_groupGroupByOutputType = { + id: number + date_orig: bigint | null + group_name: string | null + _count: Account_groupCountAggregateOutputType | null + _avg: Account_groupAvgAggregateOutputType | null + _sum: Account_groupSumAggregateOutputType | null + _min: Account_groupMinAggregateOutputType | null + _max: Account_groupMaxAggregateOutputType | null +} + +type GetAccount_groupGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Account_groupGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type account_groupWhereInput = { + AND?: Prisma.account_groupWhereInput | Prisma.account_groupWhereInput[] + OR?: Prisma.account_groupWhereInput[] + NOT?: Prisma.account_groupWhereInput | Prisma.account_groupWhereInput[] + id?: Prisma.IntFilter<"account_group"> | number + date_orig?: Prisma.BigIntNullableFilter<"account_group"> | bigint | number | null + group_name?: Prisma.StringNullableFilter<"account_group"> | string | null +} + +export type account_groupOrderByWithRelationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + group_name?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.account_groupOrderByRelevanceInput +} + +export type account_groupWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.account_groupWhereInput | Prisma.account_groupWhereInput[] + OR?: Prisma.account_groupWhereInput[] + NOT?: Prisma.account_groupWhereInput | Prisma.account_groupWhereInput[] + date_orig?: Prisma.BigIntNullableFilter<"account_group"> | bigint | number | null + group_name?: Prisma.StringNullableFilter<"account_group"> | string | null +}, "id"> + +export type account_groupOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + group_name?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.account_groupCountOrderByAggregateInput + _avg?: Prisma.account_groupAvgOrderByAggregateInput + _max?: Prisma.account_groupMaxOrderByAggregateInput + _min?: Prisma.account_groupMinOrderByAggregateInput + _sum?: Prisma.account_groupSumOrderByAggregateInput +} + +export type account_groupScalarWhereWithAggregatesInput = { + AND?: Prisma.account_groupScalarWhereWithAggregatesInput | Prisma.account_groupScalarWhereWithAggregatesInput[] + OR?: Prisma.account_groupScalarWhereWithAggregatesInput[] + NOT?: Prisma.account_groupScalarWhereWithAggregatesInput | Prisma.account_groupScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"account_group"> | number + date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"account_group"> | bigint | number | null + group_name?: Prisma.StringNullableWithAggregatesFilter<"account_group"> | string | null +} + +export type account_groupCreateInput = { + date_orig?: bigint | number | null + group_name?: string | null +} + +export type account_groupUncheckedCreateInput = { + id?: number + date_orig?: bigint | number | null + group_name?: string | null +} + +export type account_groupUpdateInput = { + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + group_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type account_groupUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + group_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type account_groupCreateManyInput = { + id?: number + date_orig?: bigint | number | null + group_name?: string | null +} + +export type account_groupUpdateManyMutationInput = { + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + group_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type account_groupUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + group_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type account_groupOrderByRelevanceInput = { + fields: Prisma.account_groupOrderByRelevanceFieldEnum | Prisma.account_groupOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type account_groupCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + group_name?: Prisma.SortOrder +} + +export type account_groupAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder +} + +export type account_groupMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + group_name?: Prisma.SortOrder +} + +export type account_groupMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + group_name?: Prisma.SortOrder +} + +export type account_groupSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder +} + + + +export type account_groupSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date_orig?: boolean + group_name?: boolean +}, ExtArgs["result"]["account_group"]> + + + +export type account_groupSelectScalar = { + id?: boolean + date_orig?: boolean + group_name?: boolean +} + +export type account_groupOmit = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "group_name", ExtArgs["result"]["account_group"]> + +export type $account_groupPayload = { + name: "account_group" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + date_orig: bigint | null + group_name: string | null + }, ExtArgs["result"]["account_group"]> + composites: {} +} + +export type account_groupGetPayload = runtime.Types.Result.GetResult + +export type account_groupCountArgs = + Omit & { + select?: Account_groupCountAggregateInputType | true + } + +export interface account_groupDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['account_group'], meta: { name: 'account_group' } } + /** + * Find zero or one Account_group that matches the filter. + * @param {account_groupFindUniqueArgs} args - Arguments to find a Account_group + * @example + * // Get one Account_group + * const account_group = await prisma.account_group.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__account_groupClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Account_group that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {account_groupFindUniqueOrThrowArgs} args - Arguments to find a Account_group + * @example + * // Get one Account_group + * const account_group = await prisma.account_group.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__account_groupClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Account_group 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 {account_groupFindFirstArgs} args - Arguments to find a Account_group + * @example + * // Get one Account_group + * const account_group = await prisma.account_group.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__account_groupClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Account_group 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 {account_groupFindFirstOrThrowArgs} args - Arguments to find a Account_group + * @example + * // Get one Account_group + * const account_group = await prisma.account_group.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__account_groupClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Account_groups 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 {account_groupFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Account_groups + * const account_groups = await prisma.account_group.findMany() + * + * // Get first 10 Account_groups + * const account_groups = await prisma.account_group.findMany({ take: 10 }) + * + * // Only select the `id` + * const account_groupWithIdOnly = await prisma.account_group.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Account_group. + * @param {account_groupCreateArgs} args - Arguments to create a Account_group. + * @example + * // Create one Account_group + * const Account_group = await prisma.account_group.create({ + * data: { + * // ... data to create a Account_group + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__account_groupClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Account_groups. + * @param {account_groupCreateManyArgs} args - Arguments to create many Account_groups. + * @example + * // Create many Account_groups + * const account_group = await prisma.account_group.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Account_group. + * @param {account_groupDeleteArgs} args - Arguments to delete one Account_group. + * @example + * // Delete one Account_group + * const Account_group = await prisma.account_group.delete({ + * where: { + * // ... filter to delete one Account_group + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__account_groupClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Account_group. + * @param {account_groupUpdateArgs} args - Arguments to update one Account_group. + * @example + * // Update one Account_group + * const account_group = await prisma.account_group.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__account_groupClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Account_groups. + * @param {account_groupDeleteManyArgs} args - Arguments to filter Account_groups to delete. + * @example + * // Delete a few Account_groups + * const { count } = await prisma.account_group.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Account_groups. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {account_groupUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Account_groups + * const account_group = await prisma.account_group.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Account_group. + * @param {account_groupUpsertArgs} args - Arguments to update or create a Account_group. + * @example + * // Update or create a Account_group + * const account_group = await prisma.account_group.upsert({ + * create: { + * // ... data to create a Account_group + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Account_group we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__account_groupClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Account_groups. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {account_groupCountArgs} args - Arguments to filter Account_groups to count. + * @example + * // Count the number of Account_groups + * const count = await prisma.account_group.count({ + * where: { + * // ... the filter for the Account_groups 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_group. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Account_groupAggregateArgs} 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_group. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {account_groupGroupByArgs} 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 account_groupGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: account_groupGroupByArgs['orderBy'] } + : { orderBy?: account_groupGroupByArgs['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 ? GetAccount_groupGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the account_group model + */ +readonly fields: account_groupFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for account_group. + * 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__account_groupClient 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 account_group model + */ +export interface account_groupFieldRefs { + readonly id: Prisma.FieldRef<"account_group", 'Int'> + readonly date_orig: Prisma.FieldRef<"account_group", 'BigInt'> + readonly group_name: Prisma.FieldRef<"account_group", 'String'> +} + + +// Custom InputTypes +/** + * account_group findUnique + */ +export type account_groupFindUniqueArgs = { + /** + * Select specific fields to fetch from the account_group + */ + select?: Prisma.account_groupSelect | null + /** + * Omit specific fields from the account_group + */ + omit?: Prisma.account_groupOmit | null + /** + * Filter, which account_group to fetch. + */ + where: Prisma.account_groupWhereUniqueInput +} + +/** + * account_group findUniqueOrThrow + */ +export type account_groupFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the account_group + */ + select?: Prisma.account_groupSelect | null + /** + * Omit specific fields from the account_group + */ + omit?: Prisma.account_groupOmit | null + /** + * Filter, which account_group to fetch. + */ + where: Prisma.account_groupWhereUniqueInput +} + +/** + * account_group findFirst + */ +export type account_groupFindFirstArgs = { + /** + * Select specific fields to fetch from the account_group + */ + select?: Prisma.account_groupSelect | null + /** + * Omit specific fields from the account_group + */ + omit?: Prisma.account_groupOmit | null + /** + * Filter, which account_group to fetch. + */ + where?: Prisma.account_groupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_groups to fetch. + */ + orderBy?: Prisma.account_groupOrderByWithRelationInput | Prisma.account_groupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for account_groups. + */ + cursor?: Prisma.account_groupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_groups 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` account_groups. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of account_groups. + */ + distinct?: Prisma.Account_groupScalarFieldEnum | Prisma.Account_groupScalarFieldEnum[] +} + +/** + * account_group findFirstOrThrow + */ +export type account_groupFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the account_group + */ + select?: Prisma.account_groupSelect | null + /** + * Omit specific fields from the account_group + */ + omit?: Prisma.account_groupOmit | null + /** + * Filter, which account_group to fetch. + */ + where?: Prisma.account_groupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_groups to fetch. + */ + orderBy?: Prisma.account_groupOrderByWithRelationInput | Prisma.account_groupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for account_groups. + */ + cursor?: Prisma.account_groupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_groups 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` account_groups. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of account_groups. + */ + distinct?: Prisma.Account_groupScalarFieldEnum | Prisma.Account_groupScalarFieldEnum[] +} + +/** + * account_group findMany + */ +export type account_groupFindManyArgs = { + /** + * Select specific fields to fetch from the account_group + */ + select?: Prisma.account_groupSelect | null + /** + * Omit specific fields from the account_group + */ + omit?: Prisma.account_groupOmit | null + /** + * Filter, which account_groups to fetch. + */ + where?: Prisma.account_groupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_groups to fetch. + */ + orderBy?: Prisma.account_groupOrderByWithRelationInput | Prisma.account_groupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing account_groups. + */ + cursor?: Prisma.account_groupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_groups 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` account_groups. + */ + skip?: number + distinct?: Prisma.Account_groupScalarFieldEnum | Prisma.Account_groupScalarFieldEnum[] +} + +/** + * account_group create + */ +export type account_groupCreateArgs = { + /** + * Select specific fields to fetch from the account_group + */ + select?: Prisma.account_groupSelect | null + /** + * Omit specific fields from the account_group + */ + omit?: Prisma.account_groupOmit | null + /** + * The data needed to create a account_group. + */ + data?: Prisma.XOR +} + +/** + * account_group createMany + */ +export type account_groupCreateManyArgs = { + /** + * The data used to create many account_groups. + */ + data: Prisma.account_groupCreateManyInput | Prisma.account_groupCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * account_group update + */ +export type account_groupUpdateArgs = { + /** + * Select specific fields to fetch from the account_group + */ + select?: Prisma.account_groupSelect | null + /** + * Omit specific fields from the account_group + */ + omit?: Prisma.account_groupOmit | null + /** + * The data needed to update a account_group. + */ + data: Prisma.XOR + /** + * Choose, which account_group to update. + */ + where: Prisma.account_groupWhereUniqueInput +} + +/** + * account_group updateMany + */ +export type account_groupUpdateManyArgs = { + /** + * The data used to update account_groups. + */ + data: Prisma.XOR + /** + * Filter which account_groups to update + */ + where?: Prisma.account_groupWhereInput + /** + * Limit how many account_groups to update. + */ + limit?: number +} + +/** + * account_group upsert + */ +export type account_groupUpsertArgs = { + /** + * Select specific fields to fetch from the account_group + */ + select?: Prisma.account_groupSelect | null + /** + * Omit specific fields from the account_group + */ + omit?: Prisma.account_groupOmit | null + /** + * The filter to search for the account_group to update in case it exists. + */ + where: Prisma.account_groupWhereUniqueInput + /** + * In case the account_group found by the `where` argument doesn't exist, create a new account_group with this data. + */ + create: Prisma.XOR + /** + * In case the account_group was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * account_group delete + */ +export type account_groupDeleteArgs = { + /** + * Select specific fields to fetch from the account_group + */ + select?: Prisma.account_groupSelect | null + /** + * Omit specific fields from the account_group + */ + omit?: Prisma.account_groupOmit | null + /** + * Filter which account_group to delete. + */ + where: Prisma.account_groupWhereUniqueInput +} + +/** + * account_group deleteMany + */ +export type account_groupDeleteManyArgs = { + /** + * Filter which account_groups to delete + */ + where?: Prisma.account_groupWhereInput + /** + * Limit how many account_groups to delete. + */ + limit?: number +} + +/** + * account_group without action + */ +export type account_groupDefaultArgs = { + /** + * Select specific fields to fetch from the account_group + */ + select?: Prisma.account_groupSelect | null + /** + * Omit specific fields from the account_group + */ + omit?: Prisma.account_groupOmit | null +} diff --git a/prisma/generated/mariadb/models/account_memo.ts b/prisma/generated/mariadb/models/account_memo.ts new file mode 100644 index 0000000..2638552 --- /dev/null +++ b/prisma/generated/mariadb/models/account_memo.ts @@ -0,0 +1,1210 @@ + +/* !!! 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_memo` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model account_memo + * + */ +export type account_memoModel = runtime.Types.Result.DefaultSelection + +export type AggregateAccount_memo = { + _count: Account_memoCountAggregateOutputType | null + _avg: Account_memoAvgAggregateOutputType | null + _sum: Account_memoSumAggregateOutputType | null + _min: Account_memoMinAggregateOutputType | null + _max: Account_memoMaxAggregateOutputType | null +} + +export type Account_memoAvgAggregateOutputType = { + id: number | null + date_orig: number | null + last_updated: number | null + staff_id: number | null + account_id: number | null +} + +export type Account_memoSumAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + last_updated: bigint | null + staff_id: bigint | null + account_id: bigint | null +} + +export type Account_memoMinAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + last_updated: bigint | null + staff_id: bigint | null + account_id: bigint | null + memo: string | null + color: string | null + bcolor: string | null + border: string | null +} + +export type Account_memoMaxAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + last_updated: bigint | null + staff_id: bigint | null + account_id: bigint | null + memo: string | null + color: string | null + bcolor: string | null + border: string | null +} + +export type Account_memoCountAggregateOutputType = { + id: number + date_orig: number + last_updated: number + staff_id: number + account_id: number + memo: number + color: number + bcolor: number + border: number + _all: number +} + + +export type Account_memoAvgAggregateInputType = { + id?: true + date_orig?: true + last_updated?: true + staff_id?: true + account_id?: true +} + +export type Account_memoSumAggregateInputType = { + id?: true + date_orig?: true + last_updated?: true + staff_id?: true + account_id?: true +} + +export type Account_memoMinAggregateInputType = { + id?: true + date_orig?: true + last_updated?: true + staff_id?: true + account_id?: true + memo?: true + color?: true + bcolor?: true + border?: true +} + +export type Account_memoMaxAggregateInputType = { + id?: true + date_orig?: true + last_updated?: true + staff_id?: true + account_id?: true + memo?: true + color?: true + bcolor?: true + border?: true +} + +export type Account_memoCountAggregateInputType = { + id?: true + date_orig?: true + last_updated?: true + staff_id?: true + account_id?: true + memo?: true + color?: true + bcolor?: true + border?: true + _all?: true +} + +export type Account_memoAggregateArgs = { + /** + * Filter which account_memo to aggregate. + */ + where?: Prisma.account_memoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_memos to fetch. + */ + orderBy?: Prisma.account_memoOrderByWithRelationInput | Prisma.account_memoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.account_memoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_memos 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` account_memos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned account_memos + **/ + _count?: true | Account_memoCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Account_memoAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Account_memoSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Account_memoMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Account_memoMaxAggregateInputType +} + +export type GetAccount_memoAggregateType = { + [P in keyof T & keyof AggregateAccount_memo]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type account_memoGroupByArgs = { + where?: Prisma.account_memoWhereInput + orderBy?: Prisma.account_memoOrderByWithAggregationInput | Prisma.account_memoOrderByWithAggregationInput[] + by: Prisma.Account_memoScalarFieldEnum[] | Prisma.Account_memoScalarFieldEnum + having?: Prisma.account_memoScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Account_memoCountAggregateInputType | true + _avg?: Account_memoAvgAggregateInputType + _sum?: Account_memoSumAggregateInputType + _min?: Account_memoMinAggregateInputType + _max?: Account_memoMaxAggregateInputType +} + +export type Account_memoGroupByOutputType = { + id: bigint + date_orig: bigint | null + last_updated: bigint + staff_id: bigint | null + account_id: bigint | null + memo: string | null + color: string + bcolor: string + border: string + _count: Account_memoCountAggregateOutputType | null + _avg: Account_memoAvgAggregateOutputType | null + _sum: Account_memoSumAggregateOutputType | null + _min: Account_memoMinAggregateOutputType | null + _max: Account_memoMaxAggregateOutputType | null +} + +type GetAccount_memoGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Account_memoGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type account_memoWhereInput = { + AND?: Prisma.account_memoWhereInput | Prisma.account_memoWhereInput[] + OR?: Prisma.account_memoWhereInput[] + NOT?: Prisma.account_memoWhereInput | Prisma.account_memoWhereInput[] + id?: Prisma.BigIntFilter<"account_memo"> | bigint | number + date_orig?: Prisma.BigIntNullableFilter<"account_memo"> | bigint | number | null + last_updated?: Prisma.BigIntFilter<"account_memo"> | bigint | number + staff_id?: Prisma.BigIntNullableFilter<"account_memo"> | bigint | number | null + account_id?: Prisma.BigIntNullableFilter<"account_memo"> | bigint | number | null + memo?: Prisma.StringNullableFilter<"account_memo"> | string | null + color?: Prisma.StringFilter<"account_memo"> | string + bcolor?: Prisma.StringFilter<"account_memo"> | string + border?: Prisma.StringFilter<"account_memo"> | string +} + +export type account_memoOrderByWithRelationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + last_updated?: Prisma.SortOrder + staff_id?: Prisma.SortOrderInput | Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + memo?: Prisma.SortOrderInput | Prisma.SortOrder + color?: Prisma.SortOrder + bcolor?: Prisma.SortOrder + border?: Prisma.SortOrder + _relevance?: Prisma.account_memoOrderByRelevanceInput +} + +export type account_memoWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.account_memoWhereInput | Prisma.account_memoWhereInput[] + OR?: Prisma.account_memoWhereInput[] + NOT?: Prisma.account_memoWhereInput | Prisma.account_memoWhereInput[] + date_orig?: Prisma.BigIntNullableFilter<"account_memo"> | bigint | number | null + last_updated?: Prisma.BigIntFilter<"account_memo"> | bigint | number + staff_id?: Prisma.BigIntNullableFilter<"account_memo"> | bigint | number | null + account_id?: Prisma.BigIntNullableFilter<"account_memo"> | bigint | number | null + memo?: Prisma.StringNullableFilter<"account_memo"> | string | null + color?: Prisma.StringFilter<"account_memo"> | string + bcolor?: Prisma.StringFilter<"account_memo"> | string + border?: Prisma.StringFilter<"account_memo"> | string +}, "id"> + +export type account_memoOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + last_updated?: Prisma.SortOrder + staff_id?: Prisma.SortOrderInput | Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + memo?: Prisma.SortOrderInput | Prisma.SortOrder + color?: Prisma.SortOrder + bcolor?: Prisma.SortOrder + border?: Prisma.SortOrder + _count?: Prisma.account_memoCountOrderByAggregateInput + _avg?: Prisma.account_memoAvgOrderByAggregateInput + _max?: Prisma.account_memoMaxOrderByAggregateInput + _min?: Prisma.account_memoMinOrderByAggregateInput + _sum?: Prisma.account_memoSumOrderByAggregateInput +} + +export type account_memoScalarWhereWithAggregatesInput = { + AND?: Prisma.account_memoScalarWhereWithAggregatesInput | Prisma.account_memoScalarWhereWithAggregatesInput[] + OR?: Prisma.account_memoScalarWhereWithAggregatesInput[] + NOT?: Prisma.account_memoScalarWhereWithAggregatesInput | Prisma.account_memoScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"account_memo"> | bigint | number + date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"account_memo"> | bigint | number | null + last_updated?: Prisma.BigIntWithAggregatesFilter<"account_memo"> | bigint | number + staff_id?: Prisma.BigIntNullableWithAggregatesFilter<"account_memo"> | bigint | number | null + account_id?: Prisma.BigIntNullableWithAggregatesFilter<"account_memo"> | bigint | number | null + memo?: Prisma.StringNullableWithAggregatesFilter<"account_memo"> | string | null + color?: Prisma.StringWithAggregatesFilter<"account_memo"> | string + bcolor?: Prisma.StringWithAggregatesFilter<"account_memo"> | string + border?: Prisma.StringWithAggregatesFilter<"account_memo"> | string +} + +export type account_memoCreateInput = { + id?: bigint | number + date_orig?: bigint | number | null + last_updated?: bigint | number + staff_id?: bigint | number | null + account_id?: bigint | number | null + memo?: string | null + color?: string + bcolor?: string + border?: string +} + +export type account_memoUncheckedCreateInput = { + id?: bigint | number + date_orig?: bigint | number | null + last_updated?: bigint | number + staff_id?: bigint | number | null + account_id?: bigint | number | null + memo?: string | null + color?: string + bcolor?: string + border?: string +} + +export type account_memoUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + last_updated?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + color?: Prisma.StringFieldUpdateOperationsInput | string + bcolor?: Prisma.StringFieldUpdateOperationsInput | string + border?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_memoUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + last_updated?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + color?: Prisma.StringFieldUpdateOperationsInput | string + bcolor?: Prisma.StringFieldUpdateOperationsInput | string + border?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_memoCreateManyInput = { + id?: bigint | number + date_orig?: bigint | number | null + last_updated?: bigint | number + staff_id?: bigint | number | null + account_id?: bigint | number | null + memo?: string | null + color?: string + bcolor?: string + border?: string +} + +export type account_memoUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + last_updated?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + color?: Prisma.StringFieldUpdateOperationsInput | string + bcolor?: Prisma.StringFieldUpdateOperationsInput | string + border?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_memoUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + last_updated?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + color?: Prisma.StringFieldUpdateOperationsInput | string + bcolor?: Prisma.StringFieldUpdateOperationsInput | string + border?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_memoOrderByRelevanceInput = { + fields: Prisma.account_memoOrderByRelevanceFieldEnum | Prisma.account_memoOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type account_memoCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + last_updated?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + memo?: Prisma.SortOrder + color?: Prisma.SortOrder + bcolor?: Prisma.SortOrder + border?: Prisma.SortOrder +} + +export type account_memoAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + last_updated?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + account_id?: Prisma.SortOrder +} + +export type account_memoMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + last_updated?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + memo?: Prisma.SortOrder + color?: Prisma.SortOrder + bcolor?: Prisma.SortOrder + border?: Prisma.SortOrder +} + +export type account_memoMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + last_updated?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + memo?: Prisma.SortOrder + color?: Prisma.SortOrder + bcolor?: Prisma.SortOrder + border?: Prisma.SortOrder +} + +export type account_memoSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + last_updated?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + account_id?: Prisma.SortOrder +} + + + +export type account_memoSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date_orig?: boolean + last_updated?: boolean + staff_id?: boolean + account_id?: boolean + memo?: boolean + color?: boolean + bcolor?: boolean + border?: boolean +}, ExtArgs["result"]["account_memo"]> + + + +export type account_memoSelectScalar = { + id?: boolean + date_orig?: boolean + last_updated?: boolean + staff_id?: boolean + account_id?: boolean + memo?: boolean + color?: boolean + bcolor?: boolean + border?: boolean +} + +export type account_memoOmit = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "last_updated" | "staff_id" | "account_id" | "memo" | "color" | "bcolor" | "border", ExtArgs["result"]["account_memo"]> + +export type $account_memoPayload = { + name: "account_memo" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + date_orig: bigint | null + last_updated: bigint + staff_id: bigint | null + account_id: bigint | null + memo: string | null + color: string + bcolor: string + border: string + }, ExtArgs["result"]["account_memo"]> + composites: {} +} + +export type account_memoGetPayload = runtime.Types.Result.GetResult + +export type account_memoCountArgs = + Omit & { + select?: Account_memoCountAggregateInputType | true + } + +export interface account_memoDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['account_memo'], meta: { name: 'account_memo' } } + /** + * Find zero or one Account_memo that matches the filter. + * @param {account_memoFindUniqueArgs} args - Arguments to find a Account_memo + * @example + * // Get one Account_memo + * const account_memo = await prisma.account_memo.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__account_memoClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Account_memo that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {account_memoFindUniqueOrThrowArgs} args - Arguments to find a Account_memo + * @example + * // Get one Account_memo + * const account_memo = await prisma.account_memo.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__account_memoClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Account_memo 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 {account_memoFindFirstArgs} args - Arguments to find a Account_memo + * @example + * // Get one Account_memo + * const account_memo = await prisma.account_memo.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__account_memoClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Account_memo 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 {account_memoFindFirstOrThrowArgs} args - Arguments to find a Account_memo + * @example + * // Get one Account_memo + * const account_memo = await prisma.account_memo.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__account_memoClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Account_memos 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 {account_memoFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Account_memos + * const account_memos = await prisma.account_memo.findMany() + * + * // Get first 10 Account_memos + * const account_memos = await prisma.account_memo.findMany({ take: 10 }) + * + * // Only select the `id` + * const account_memoWithIdOnly = await prisma.account_memo.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Account_memo. + * @param {account_memoCreateArgs} args - Arguments to create a Account_memo. + * @example + * // Create one Account_memo + * const Account_memo = await prisma.account_memo.create({ + * data: { + * // ... data to create a Account_memo + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__account_memoClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Account_memos. + * @param {account_memoCreateManyArgs} args - Arguments to create many Account_memos. + * @example + * // Create many Account_memos + * const account_memo = await prisma.account_memo.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Account_memo. + * @param {account_memoDeleteArgs} args - Arguments to delete one Account_memo. + * @example + * // Delete one Account_memo + * const Account_memo = await prisma.account_memo.delete({ + * where: { + * // ... filter to delete one Account_memo + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__account_memoClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Account_memo. + * @param {account_memoUpdateArgs} args - Arguments to update one Account_memo. + * @example + * // Update one Account_memo + * const account_memo = await prisma.account_memo.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__account_memoClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Account_memos. + * @param {account_memoDeleteManyArgs} args - Arguments to filter Account_memos to delete. + * @example + * // Delete a few Account_memos + * const { count } = await prisma.account_memo.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Account_memos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {account_memoUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Account_memos + * const account_memo = await prisma.account_memo.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Account_memo. + * @param {account_memoUpsertArgs} args - Arguments to update or create a Account_memo. + * @example + * // Update or create a Account_memo + * const account_memo = await prisma.account_memo.upsert({ + * create: { + * // ... data to create a Account_memo + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Account_memo we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__account_memoClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Account_memos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {account_memoCountArgs} args - Arguments to filter Account_memos to count. + * @example + * // Count the number of Account_memos + * const count = await prisma.account_memo.count({ + * where: { + * // ... the filter for the Account_memos 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_memo. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Account_memoAggregateArgs} 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_memo. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {account_memoGroupByArgs} 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 account_memoGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: account_memoGroupByArgs['orderBy'] } + : { orderBy?: account_memoGroupByArgs['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 ? GetAccount_memoGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the account_memo model + */ +readonly fields: account_memoFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for account_memo. + * 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__account_memoClient 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 account_memo model + */ +export interface account_memoFieldRefs { + readonly id: Prisma.FieldRef<"account_memo", 'BigInt'> + readonly date_orig: Prisma.FieldRef<"account_memo", 'BigInt'> + readonly last_updated: Prisma.FieldRef<"account_memo", 'BigInt'> + readonly staff_id: Prisma.FieldRef<"account_memo", 'BigInt'> + readonly account_id: Prisma.FieldRef<"account_memo", 'BigInt'> + readonly memo: Prisma.FieldRef<"account_memo", 'String'> + readonly color: Prisma.FieldRef<"account_memo", 'String'> + readonly bcolor: Prisma.FieldRef<"account_memo", 'String'> + readonly border: Prisma.FieldRef<"account_memo", 'String'> +} + + +// Custom InputTypes +/** + * account_memo findUnique + */ +export type account_memoFindUniqueArgs = { + /** + * Select specific fields to fetch from the account_memo + */ + select?: Prisma.account_memoSelect | null + /** + * Omit specific fields from the account_memo + */ + omit?: Prisma.account_memoOmit | null + /** + * Filter, which account_memo to fetch. + */ + where: Prisma.account_memoWhereUniqueInput +} + +/** + * account_memo findUniqueOrThrow + */ +export type account_memoFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the account_memo + */ + select?: Prisma.account_memoSelect | null + /** + * Omit specific fields from the account_memo + */ + omit?: Prisma.account_memoOmit | null + /** + * Filter, which account_memo to fetch. + */ + where: Prisma.account_memoWhereUniqueInput +} + +/** + * account_memo findFirst + */ +export type account_memoFindFirstArgs = { + /** + * Select specific fields to fetch from the account_memo + */ + select?: Prisma.account_memoSelect | null + /** + * Omit specific fields from the account_memo + */ + omit?: Prisma.account_memoOmit | null + /** + * Filter, which account_memo to fetch. + */ + where?: Prisma.account_memoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_memos to fetch. + */ + orderBy?: Prisma.account_memoOrderByWithRelationInput | Prisma.account_memoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for account_memos. + */ + cursor?: Prisma.account_memoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_memos 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` account_memos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of account_memos. + */ + distinct?: Prisma.Account_memoScalarFieldEnum | Prisma.Account_memoScalarFieldEnum[] +} + +/** + * account_memo findFirstOrThrow + */ +export type account_memoFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the account_memo + */ + select?: Prisma.account_memoSelect | null + /** + * Omit specific fields from the account_memo + */ + omit?: Prisma.account_memoOmit | null + /** + * Filter, which account_memo to fetch. + */ + where?: Prisma.account_memoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_memos to fetch. + */ + orderBy?: Prisma.account_memoOrderByWithRelationInput | Prisma.account_memoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for account_memos. + */ + cursor?: Prisma.account_memoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_memos 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` account_memos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of account_memos. + */ + distinct?: Prisma.Account_memoScalarFieldEnum | Prisma.Account_memoScalarFieldEnum[] +} + +/** + * account_memo findMany + */ +export type account_memoFindManyArgs = { + /** + * Select specific fields to fetch from the account_memo + */ + select?: Prisma.account_memoSelect | null + /** + * Omit specific fields from the account_memo + */ + omit?: Prisma.account_memoOmit | null + /** + * Filter, which account_memos to fetch. + */ + where?: Prisma.account_memoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_memos to fetch. + */ + orderBy?: Prisma.account_memoOrderByWithRelationInput | Prisma.account_memoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing account_memos. + */ + cursor?: Prisma.account_memoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_memos 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` account_memos. + */ + skip?: number + distinct?: Prisma.Account_memoScalarFieldEnum | Prisma.Account_memoScalarFieldEnum[] +} + +/** + * account_memo create + */ +export type account_memoCreateArgs = { + /** + * Select specific fields to fetch from the account_memo + */ + select?: Prisma.account_memoSelect | null + /** + * Omit specific fields from the account_memo + */ + omit?: Prisma.account_memoOmit | null + /** + * The data needed to create a account_memo. + */ + data?: Prisma.XOR +} + +/** + * account_memo createMany + */ +export type account_memoCreateManyArgs = { + /** + * The data used to create many account_memos. + */ + data: Prisma.account_memoCreateManyInput | Prisma.account_memoCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * account_memo update + */ +export type account_memoUpdateArgs = { + /** + * Select specific fields to fetch from the account_memo + */ + select?: Prisma.account_memoSelect | null + /** + * Omit specific fields from the account_memo + */ + omit?: Prisma.account_memoOmit | null + /** + * The data needed to update a account_memo. + */ + data: Prisma.XOR + /** + * Choose, which account_memo to update. + */ + where: Prisma.account_memoWhereUniqueInput +} + +/** + * account_memo updateMany + */ +export type account_memoUpdateManyArgs = { + /** + * The data used to update account_memos. + */ + data: Prisma.XOR + /** + * Filter which account_memos to update + */ + where?: Prisma.account_memoWhereInput + /** + * Limit how many account_memos to update. + */ + limit?: number +} + +/** + * account_memo upsert + */ +export type account_memoUpsertArgs = { + /** + * Select specific fields to fetch from the account_memo + */ + select?: Prisma.account_memoSelect | null + /** + * Omit specific fields from the account_memo + */ + omit?: Prisma.account_memoOmit | null + /** + * The filter to search for the account_memo to update in case it exists. + */ + where: Prisma.account_memoWhereUniqueInput + /** + * In case the account_memo found by the `where` argument doesn't exist, create a new account_memo with this data. + */ + create: Prisma.XOR + /** + * In case the account_memo was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * account_memo delete + */ +export type account_memoDeleteArgs = { + /** + * Select specific fields to fetch from the account_memo + */ + select?: Prisma.account_memoSelect | null + /** + * Omit specific fields from the account_memo + */ + omit?: Prisma.account_memoOmit | null + /** + * Filter which account_memo to delete. + */ + where: Prisma.account_memoWhereUniqueInput +} + +/** + * account_memo deleteMany + */ +export type account_memoDeleteManyArgs = { + /** + * Filter which account_memos to delete + */ + where?: Prisma.account_memoWhereInput + /** + * Limit how many account_memos to delete. + */ + limit?: number +} + +/** + * account_memo without action + */ +export type account_memoDefaultArgs = { + /** + * Select specific fields to fetch from the account_memo + */ + select?: Prisma.account_memoSelect | null + /** + * Omit specific fields from the account_memo + */ + omit?: Prisma.account_memoOmit | null +} diff --git a/prisma/generated/mariadb/models/account_memo_template.ts b/prisma/generated/mariadb/models/account_memo_template.ts new file mode 100644 index 0000000..f8714dc --- /dev/null +++ b/prisma/generated/mariadb/models/account_memo_template.ts @@ -0,0 +1,1079 @@ + +/* !!! 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_memo_template` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model account_memo_template + * + */ +export type account_memo_templateModel = runtime.Types.Result.DefaultSelection + +export type AggregateAccount_memo_template = { + _count: Account_memo_templateCountAggregateOutputType | null + _avg: Account_memo_templateAvgAggregateOutputType | null + _sum: Account_memo_templateSumAggregateOutputType | null + _min: Account_memo_templateMinAggregateOutputType | null + _max: Account_memo_templateMaxAggregateOutputType | null +} + +export type Account_memo_templateAvgAggregateOutputType = { + id: number | null +} + +export type Account_memo_templateSumAggregateOutputType = { + id: number | null +} + +export type Account_memo_templateMinAggregateOutputType = { + id: number | null + name: string | null + color: string | null + bcolor: string | null + border: string | null +} + +export type Account_memo_templateMaxAggregateOutputType = { + id: number | null + name: string | null + color: string | null + bcolor: string | null + border: string | null +} + +export type Account_memo_templateCountAggregateOutputType = { + id: number + name: number + color: number + bcolor: number + border: number + _all: number +} + + +export type Account_memo_templateAvgAggregateInputType = { + id?: true +} + +export type Account_memo_templateSumAggregateInputType = { + id?: true +} + +export type Account_memo_templateMinAggregateInputType = { + id?: true + name?: true + color?: true + bcolor?: true + border?: true +} + +export type Account_memo_templateMaxAggregateInputType = { + id?: true + name?: true + color?: true + bcolor?: true + border?: true +} + +export type Account_memo_templateCountAggregateInputType = { + id?: true + name?: true + color?: true + bcolor?: true + border?: true + _all?: true +} + +export type Account_memo_templateAggregateArgs = { + /** + * Filter which account_memo_template to aggregate. + */ + where?: Prisma.account_memo_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_memo_templates to fetch. + */ + orderBy?: Prisma.account_memo_templateOrderByWithRelationInput | Prisma.account_memo_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.account_memo_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_memo_templates 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` account_memo_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned account_memo_templates + **/ + _count?: true | Account_memo_templateCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Account_memo_templateAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Account_memo_templateSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Account_memo_templateMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Account_memo_templateMaxAggregateInputType +} + +export type GetAccount_memo_templateAggregateType = { + [P in keyof T & keyof AggregateAccount_memo_template]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type account_memo_templateGroupByArgs = { + where?: Prisma.account_memo_templateWhereInput + orderBy?: Prisma.account_memo_templateOrderByWithAggregationInput | Prisma.account_memo_templateOrderByWithAggregationInput[] + by: Prisma.Account_memo_templateScalarFieldEnum[] | Prisma.Account_memo_templateScalarFieldEnum + having?: Prisma.account_memo_templateScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Account_memo_templateCountAggregateInputType | true + _avg?: Account_memo_templateAvgAggregateInputType + _sum?: Account_memo_templateSumAggregateInputType + _min?: Account_memo_templateMinAggregateInputType + _max?: Account_memo_templateMaxAggregateInputType +} + +export type Account_memo_templateGroupByOutputType = { + id: number + name: string + color: string + bcolor: string + border: string + _count: Account_memo_templateCountAggregateOutputType | null + _avg: Account_memo_templateAvgAggregateOutputType | null + _sum: Account_memo_templateSumAggregateOutputType | null + _min: Account_memo_templateMinAggregateOutputType | null + _max: Account_memo_templateMaxAggregateOutputType | null +} + +type GetAccount_memo_templateGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Account_memo_templateGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type account_memo_templateWhereInput = { + AND?: Prisma.account_memo_templateWhereInput | Prisma.account_memo_templateWhereInput[] + OR?: Prisma.account_memo_templateWhereInput[] + NOT?: Prisma.account_memo_templateWhereInput | Prisma.account_memo_templateWhereInput[] + id?: Prisma.IntFilter<"account_memo_template"> | number + name?: Prisma.StringFilter<"account_memo_template"> | string + color?: Prisma.StringFilter<"account_memo_template"> | string + bcolor?: Prisma.StringFilter<"account_memo_template"> | string + border?: Prisma.StringFilter<"account_memo_template"> | string +} + +export type account_memo_templateOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + color?: Prisma.SortOrder + bcolor?: Prisma.SortOrder + border?: Prisma.SortOrder + _relevance?: Prisma.account_memo_templateOrderByRelevanceInput +} + +export type account_memo_templateWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.account_memo_templateWhereInput | Prisma.account_memo_templateWhereInput[] + OR?: Prisma.account_memo_templateWhereInput[] + NOT?: Prisma.account_memo_templateWhereInput | Prisma.account_memo_templateWhereInput[] + name?: Prisma.StringFilter<"account_memo_template"> | string + color?: Prisma.StringFilter<"account_memo_template"> | string + bcolor?: Prisma.StringFilter<"account_memo_template"> | string + border?: Prisma.StringFilter<"account_memo_template"> | string +}, "id"> + +export type account_memo_templateOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + color?: Prisma.SortOrder + bcolor?: Prisma.SortOrder + border?: Prisma.SortOrder + _count?: Prisma.account_memo_templateCountOrderByAggregateInput + _avg?: Prisma.account_memo_templateAvgOrderByAggregateInput + _max?: Prisma.account_memo_templateMaxOrderByAggregateInput + _min?: Prisma.account_memo_templateMinOrderByAggregateInput + _sum?: Prisma.account_memo_templateSumOrderByAggregateInput +} + +export type account_memo_templateScalarWhereWithAggregatesInput = { + AND?: Prisma.account_memo_templateScalarWhereWithAggregatesInput | Prisma.account_memo_templateScalarWhereWithAggregatesInput[] + OR?: Prisma.account_memo_templateScalarWhereWithAggregatesInput[] + NOT?: Prisma.account_memo_templateScalarWhereWithAggregatesInput | Prisma.account_memo_templateScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"account_memo_template"> | number + name?: Prisma.StringWithAggregatesFilter<"account_memo_template"> | string + color?: Prisma.StringWithAggregatesFilter<"account_memo_template"> | string + bcolor?: Prisma.StringWithAggregatesFilter<"account_memo_template"> | string + border?: Prisma.StringWithAggregatesFilter<"account_memo_template"> | string +} + +export type account_memo_templateCreateInput = { + name: string + color: string + bcolor: string + border?: string +} + +export type account_memo_templateUncheckedCreateInput = { + id?: number + name: string + color: string + bcolor: string + border?: string +} + +export type account_memo_templateUpdateInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + color?: Prisma.StringFieldUpdateOperationsInput | string + bcolor?: Prisma.StringFieldUpdateOperationsInput | string + border?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_memo_templateUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + color?: Prisma.StringFieldUpdateOperationsInput | string + bcolor?: Prisma.StringFieldUpdateOperationsInput | string + border?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_memo_templateCreateManyInput = { + id?: number + name: string + color: string + bcolor: string + border?: string +} + +export type account_memo_templateUpdateManyMutationInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + color?: Prisma.StringFieldUpdateOperationsInput | string + bcolor?: Prisma.StringFieldUpdateOperationsInput | string + border?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_memo_templateUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + color?: Prisma.StringFieldUpdateOperationsInput | string + bcolor?: Prisma.StringFieldUpdateOperationsInput | string + border?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_memo_templateOrderByRelevanceInput = { + fields: Prisma.account_memo_templateOrderByRelevanceFieldEnum | Prisma.account_memo_templateOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type account_memo_templateCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + color?: Prisma.SortOrder + bcolor?: Prisma.SortOrder + border?: Prisma.SortOrder +} + +export type account_memo_templateAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type account_memo_templateMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + color?: Prisma.SortOrder + bcolor?: Prisma.SortOrder + border?: Prisma.SortOrder +} + +export type account_memo_templateMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + color?: Prisma.SortOrder + bcolor?: Prisma.SortOrder + border?: Prisma.SortOrder +} + +export type account_memo_templateSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type account_memo_templateSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + color?: boolean + bcolor?: boolean + border?: boolean +}, ExtArgs["result"]["account_memo_template"]> + + + +export type account_memo_templateSelectScalar = { + id?: boolean + name?: boolean + color?: boolean + bcolor?: boolean + border?: boolean +} + +export type account_memo_templateOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "color" | "bcolor" | "border", ExtArgs["result"]["account_memo_template"]> + +export type $account_memo_templatePayload = { + name: "account_memo_template" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name: string + color: string + bcolor: string + border: string + }, ExtArgs["result"]["account_memo_template"]> + composites: {} +} + +export type account_memo_templateGetPayload = runtime.Types.Result.GetResult + +export type account_memo_templateCountArgs = + Omit & { + select?: Account_memo_templateCountAggregateInputType | true + } + +export interface account_memo_templateDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['account_memo_template'], meta: { name: 'account_memo_template' } } + /** + * Find zero or one Account_memo_template that matches the filter. + * @param {account_memo_templateFindUniqueArgs} args - Arguments to find a Account_memo_template + * @example + * // Get one Account_memo_template + * const account_memo_template = await prisma.account_memo_template.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__account_memo_templateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Account_memo_template that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {account_memo_templateFindUniqueOrThrowArgs} args - Arguments to find a Account_memo_template + * @example + * // Get one Account_memo_template + * const account_memo_template = await prisma.account_memo_template.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__account_memo_templateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Account_memo_template 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 {account_memo_templateFindFirstArgs} args - Arguments to find a Account_memo_template + * @example + * // Get one Account_memo_template + * const account_memo_template = await prisma.account_memo_template.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__account_memo_templateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Account_memo_template 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 {account_memo_templateFindFirstOrThrowArgs} args - Arguments to find a Account_memo_template + * @example + * // Get one Account_memo_template + * const account_memo_template = await prisma.account_memo_template.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__account_memo_templateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Account_memo_templates 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 {account_memo_templateFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Account_memo_templates + * const account_memo_templates = await prisma.account_memo_template.findMany() + * + * // Get first 10 Account_memo_templates + * const account_memo_templates = await prisma.account_memo_template.findMany({ take: 10 }) + * + * // Only select the `id` + * const account_memo_templateWithIdOnly = await prisma.account_memo_template.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Account_memo_template. + * @param {account_memo_templateCreateArgs} args - Arguments to create a Account_memo_template. + * @example + * // Create one Account_memo_template + * const Account_memo_template = await prisma.account_memo_template.create({ + * data: { + * // ... data to create a Account_memo_template + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__account_memo_templateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Account_memo_templates. + * @param {account_memo_templateCreateManyArgs} args - Arguments to create many Account_memo_templates. + * @example + * // Create many Account_memo_templates + * const account_memo_template = await prisma.account_memo_template.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Account_memo_template. + * @param {account_memo_templateDeleteArgs} args - Arguments to delete one Account_memo_template. + * @example + * // Delete one Account_memo_template + * const Account_memo_template = await prisma.account_memo_template.delete({ + * where: { + * // ... filter to delete one Account_memo_template + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__account_memo_templateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Account_memo_template. + * @param {account_memo_templateUpdateArgs} args - Arguments to update one Account_memo_template. + * @example + * // Update one Account_memo_template + * const account_memo_template = await prisma.account_memo_template.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__account_memo_templateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Account_memo_templates. + * @param {account_memo_templateDeleteManyArgs} args - Arguments to filter Account_memo_templates to delete. + * @example + * // Delete a few Account_memo_templates + * const { count } = await prisma.account_memo_template.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Account_memo_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {account_memo_templateUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Account_memo_templates + * const account_memo_template = await prisma.account_memo_template.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Account_memo_template. + * @param {account_memo_templateUpsertArgs} args - Arguments to update or create a Account_memo_template. + * @example + * // Update or create a Account_memo_template + * const account_memo_template = await prisma.account_memo_template.upsert({ + * create: { + * // ... data to create a Account_memo_template + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Account_memo_template we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__account_memo_templateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Account_memo_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {account_memo_templateCountArgs} args - Arguments to filter Account_memo_templates to count. + * @example + * // Count the number of Account_memo_templates + * const count = await prisma.account_memo_template.count({ + * where: { + * // ... the filter for the Account_memo_templates 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_memo_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Account_memo_templateAggregateArgs} 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_memo_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {account_memo_templateGroupByArgs} 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 account_memo_templateGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: account_memo_templateGroupByArgs['orderBy'] } + : { orderBy?: account_memo_templateGroupByArgs['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 ? GetAccount_memo_templateGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the account_memo_template model + */ +readonly fields: account_memo_templateFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for account_memo_template. + * 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__account_memo_templateClient 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 account_memo_template model + */ +export interface account_memo_templateFieldRefs { + readonly id: Prisma.FieldRef<"account_memo_template", 'Int'> + readonly name: Prisma.FieldRef<"account_memo_template", 'String'> + readonly color: Prisma.FieldRef<"account_memo_template", 'String'> + readonly bcolor: Prisma.FieldRef<"account_memo_template", 'String'> + readonly border: Prisma.FieldRef<"account_memo_template", 'String'> +} + + +// Custom InputTypes +/** + * account_memo_template findUnique + */ +export type account_memo_templateFindUniqueArgs = { + /** + * Select specific fields to fetch from the account_memo_template + */ + select?: Prisma.account_memo_templateSelect | null + /** + * Omit specific fields from the account_memo_template + */ + omit?: Prisma.account_memo_templateOmit | null + /** + * Filter, which account_memo_template to fetch. + */ + where: Prisma.account_memo_templateWhereUniqueInput +} + +/** + * account_memo_template findUniqueOrThrow + */ +export type account_memo_templateFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the account_memo_template + */ + select?: Prisma.account_memo_templateSelect | null + /** + * Omit specific fields from the account_memo_template + */ + omit?: Prisma.account_memo_templateOmit | null + /** + * Filter, which account_memo_template to fetch. + */ + where: Prisma.account_memo_templateWhereUniqueInput +} + +/** + * account_memo_template findFirst + */ +export type account_memo_templateFindFirstArgs = { + /** + * Select specific fields to fetch from the account_memo_template + */ + select?: Prisma.account_memo_templateSelect | null + /** + * Omit specific fields from the account_memo_template + */ + omit?: Prisma.account_memo_templateOmit | null + /** + * Filter, which account_memo_template to fetch. + */ + where?: Prisma.account_memo_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_memo_templates to fetch. + */ + orderBy?: Prisma.account_memo_templateOrderByWithRelationInput | Prisma.account_memo_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for account_memo_templates. + */ + cursor?: Prisma.account_memo_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_memo_templates 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` account_memo_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of account_memo_templates. + */ + distinct?: Prisma.Account_memo_templateScalarFieldEnum | Prisma.Account_memo_templateScalarFieldEnum[] +} + +/** + * account_memo_template findFirstOrThrow + */ +export type account_memo_templateFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the account_memo_template + */ + select?: Prisma.account_memo_templateSelect | null + /** + * Omit specific fields from the account_memo_template + */ + omit?: Prisma.account_memo_templateOmit | null + /** + * Filter, which account_memo_template to fetch. + */ + where?: Prisma.account_memo_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_memo_templates to fetch. + */ + orderBy?: Prisma.account_memo_templateOrderByWithRelationInput | Prisma.account_memo_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for account_memo_templates. + */ + cursor?: Prisma.account_memo_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_memo_templates 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` account_memo_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of account_memo_templates. + */ + distinct?: Prisma.Account_memo_templateScalarFieldEnum | Prisma.Account_memo_templateScalarFieldEnum[] +} + +/** + * account_memo_template findMany + */ +export type account_memo_templateFindManyArgs = { + /** + * Select specific fields to fetch from the account_memo_template + */ + select?: Prisma.account_memo_templateSelect | null + /** + * Omit specific fields from the account_memo_template + */ + omit?: Prisma.account_memo_templateOmit | null + /** + * Filter, which account_memo_templates to fetch. + */ + where?: Prisma.account_memo_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_memo_templates to fetch. + */ + orderBy?: Prisma.account_memo_templateOrderByWithRelationInput | Prisma.account_memo_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing account_memo_templates. + */ + cursor?: Prisma.account_memo_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_memo_templates 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` account_memo_templates. + */ + skip?: number + distinct?: Prisma.Account_memo_templateScalarFieldEnum | Prisma.Account_memo_templateScalarFieldEnum[] +} + +/** + * account_memo_template create + */ +export type account_memo_templateCreateArgs = { + /** + * Select specific fields to fetch from the account_memo_template + */ + select?: Prisma.account_memo_templateSelect | null + /** + * Omit specific fields from the account_memo_template + */ + omit?: Prisma.account_memo_templateOmit | null + /** + * The data needed to create a account_memo_template. + */ + data: Prisma.XOR +} + +/** + * account_memo_template createMany + */ +export type account_memo_templateCreateManyArgs = { + /** + * The data used to create many account_memo_templates. + */ + data: Prisma.account_memo_templateCreateManyInput | Prisma.account_memo_templateCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * account_memo_template update + */ +export type account_memo_templateUpdateArgs = { + /** + * Select specific fields to fetch from the account_memo_template + */ + select?: Prisma.account_memo_templateSelect | null + /** + * Omit specific fields from the account_memo_template + */ + omit?: Prisma.account_memo_templateOmit | null + /** + * The data needed to update a account_memo_template. + */ + data: Prisma.XOR + /** + * Choose, which account_memo_template to update. + */ + where: Prisma.account_memo_templateWhereUniqueInput +} + +/** + * account_memo_template updateMany + */ +export type account_memo_templateUpdateManyArgs = { + /** + * The data used to update account_memo_templates. + */ + data: Prisma.XOR + /** + * Filter which account_memo_templates to update + */ + where?: Prisma.account_memo_templateWhereInput + /** + * Limit how many account_memo_templates to update. + */ + limit?: number +} + +/** + * account_memo_template upsert + */ +export type account_memo_templateUpsertArgs = { + /** + * Select specific fields to fetch from the account_memo_template + */ + select?: Prisma.account_memo_templateSelect | null + /** + * Omit specific fields from the account_memo_template + */ + omit?: Prisma.account_memo_templateOmit | null + /** + * The filter to search for the account_memo_template to update in case it exists. + */ + where: Prisma.account_memo_templateWhereUniqueInput + /** + * In case the account_memo_template found by the `where` argument doesn't exist, create a new account_memo_template with this data. + */ + create: Prisma.XOR + /** + * In case the account_memo_template was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * account_memo_template delete + */ +export type account_memo_templateDeleteArgs = { + /** + * Select specific fields to fetch from the account_memo_template + */ + select?: Prisma.account_memo_templateSelect | null + /** + * Omit specific fields from the account_memo_template + */ + omit?: Prisma.account_memo_templateOmit | null + /** + * Filter which account_memo_template to delete. + */ + where: Prisma.account_memo_templateWhereUniqueInput +} + +/** + * account_memo_template deleteMany + */ +export type account_memo_templateDeleteManyArgs = { + /** + * Filter which account_memo_templates to delete + */ + where?: Prisma.account_memo_templateWhereInput + /** + * Limit how many account_memo_templates to delete. + */ + limit?: number +} + +/** + * account_memo_template without action + */ +export type account_memo_templateDefaultArgs = { + /** + * Select specific fields to fetch from the account_memo_template + */ + select?: Prisma.account_memo_templateSelect | null + /** + * Omit specific fields from the account_memo_template + */ + omit?: Prisma.account_memo_templateOmit | null +} diff --git a/prisma/generated/mariadb/models/account_profile.ts b/prisma/generated/mariadb/models/account_profile.ts new file mode 100644 index 0000000..68c27e9 --- /dev/null +++ b/prisma/generated/mariadb/models/account_profile.ts @@ -0,0 +1,1137 @@ + +/* !!! 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_profile` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model account_profile + * + */ +export type account_profileModel = runtime.Types.Result.DefaultSelection + +export type AggregateAccount_profile = { + _count: Account_profileCountAggregateOutputType | null + _avg: Account_profileAvgAggregateOutputType | null + _sum: Account_profileSumAggregateOutputType | null + _min: Account_profileMinAggregateOutputType | null + _max: Account_profileMaxAggregateOutputType | null +} + +export type Account_profileAvgAggregateOutputType = { + id: number | null + account_id: number | null +} + +export type Account_profileSumAggregateOutputType = { + id: number | null + account_id: number | null +} + +export type Account_profileMinAggregateOutputType = { + id: number | null + account_id: number | null + profile_id: string | null + address_id: string | null + card_id: string | null + token: string | null + initial_transaction: string | null +} + +export type Account_profileMaxAggregateOutputType = { + id: number | null + account_id: number | null + profile_id: string | null + address_id: string | null + card_id: string | null + token: string | null + initial_transaction: string | null +} + +export type Account_profileCountAggregateOutputType = { + id: number + account_id: number + profile_id: number + address_id: number + card_id: number + token: number + initial_transaction: number + _all: number +} + + +export type Account_profileAvgAggregateInputType = { + id?: true + account_id?: true +} + +export type Account_profileSumAggregateInputType = { + id?: true + account_id?: true +} + +export type Account_profileMinAggregateInputType = { + id?: true + account_id?: true + profile_id?: true + address_id?: true + card_id?: true + token?: true + initial_transaction?: true +} + +export type Account_profileMaxAggregateInputType = { + id?: true + account_id?: true + profile_id?: true + address_id?: true + card_id?: true + token?: true + initial_transaction?: true +} + +export type Account_profileCountAggregateInputType = { + id?: true + account_id?: true + profile_id?: true + address_id?: true + card_id?: true + token?: true + initial_transaction?: true + _all?: true +} + +export type Account_profileAggregateArgs = { + /** + * Filter which account_profile to aggregate. + */ + where?: Prisma.account_profileWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_profiles to fetch. + */ + orderBy?: Prisma.account_profileOrderByWithRelationInput | Prisma.account_profileOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.account_profileWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_profiles 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` account_profiles. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned account_profiles + **/ + _count?: true | Account_profileCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Account_profileAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Account_profileSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Account_profileMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Account_profileMaxAggregateInputType +} + +export type GetAccount_profileAggregateType = { + [P in keyof T & keyof AggregateAccount_profile]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type account_profileGroupByArgs = { + where?: Prisma.account_profileWhereInput + orderBy?: Prisma.account_profileOrderByWithAggregationInput | Prisma.account_profileOrderByWithAggregationInput[] + by: Prisma.Account_profileScalarFieldEnum[] | Prisma.Account_profileScalarFieldEnum + having?: Prisma.account_profileScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Account_profileCountAggregateInputType | true + _avg?: Account_profileAvgAggregateInputType + _sum?: Account_profileSumAggregateInputType + _min?: Account_profileMinAggregateInputType + _max?: Account_profileMaxAggregateInputType +} + +export type Account_profileGroupByOutputType = { + id: number + account_id: number + profile_id: string + address_id: string + card_id: string + token: string + initial_transaction: string + _count: Account_profileCountAggregateOutputType | null + _avg: Account_profileAvgAggregateOutputType | null + _sum: Account_profileSumAggregateOutputType | null + _min: Account_profileMinAggregateOutputType | null + _max: Account_profileMaxAggregateOutputType | null +} + +type GetAccount_profileGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Account_profileGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type account_profileWhereInput = { + AND?: Prisma.account_profileWhereInput | Prisma.account_profileWhereInput[] + OR?: Prisma.account_profileWhereInput[] + NOT?: Prisma.account_profileWhereInput | Prisma.account_profileWhereInput[] + id?: Prisma.IntFilter<"account_profile"> | number + account_id?: Prisma.IntFilter<"account_profile"> | number + profile_id?: Prisma.StringFilter<"account_profile"> | string + address_id?: Prisma.StringFilter<"account_profile"> | string + card_id?: Prisma.StringFilter<"account_profile"> | string + token?: Prisma.StringFilter<"account_profile"> | string + initial_transaction?: Prisma.StringFilter<"account_profile"> | string +} + +export type account_profileOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + profile_id?: Prisma.SortOrder + address_id?: Prisma.SortOrder + card_id?: Prisma.SortOrder + token?: Prisma.SortOrder + initial_transaction?: Prisma.SortOrder + _relevance?: Prisma.account_profileOrderByRelevanceInput +} + +export type account_profileWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.account_profileWhereInput | Prisma.account_profileWhereInput[] + OR?: Prisma.account_profileWhereInput[] + NOT?: Prisma.account_profileWhereInput | Prisma.account_profileWhereInput[] + account_id?: Prisma.IntFilter<"account_profile"> | number + profile_id?: Prisma.StringFilter<"account_profile"> | string + address_id?: Prisma.StringFilter<"account_profile"> | string + card_id?: Prisma.StringFilter<"account_profile"> | string + token?: Prisma.StringFilter<"account_profile"> | string + initial_transaction?: Prisma.StringFilter<"account_profile"> | string +}, "id"> + +export type account_profileOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + profile_id?: Prisma.SortOrder + address_id?: Prisma.SortOrder + card_id?: Prisma.SortOrder + token?: Prisma.SortOrder + initial_transaction?: Prisma.SortOrder + _count?: Prisma.account_profileCountOrderByAggregateInput + _avg?: Prisma.account_profileAvgOrderByAggregateInput + _max?: Prisma.account_profileMaxOrderByAggregateInput + _min?: Prisma.account_profileMinOrderByAggregateInput + _sum?: Prisma.account_profileSumOrderByAggregateInput +} + +export type account_profileScalarWhereWithAggregatesInput = { + AND?: Prisma.account_profileScalarWhereWithAggregatesInput | Prisma.account_profileScalarWhereWithAggregatesInput[] + OR?: Prisma.account_profileScalarWhereWithAggregatesInput[] + NOT?: Prisma.account_profileScalarWhereWithAggregatesInput | Prisma.account_profileScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"account_profile"> | number + account_id?: Prisma.IntWithAggregatesFilter<"account_profile"> | number + profile_id?: Prisma.StringWithAggregatesFilter<"account_profile"> | string + address_id?: Prisma.StringWithAggregatesFilter<"account_profile"> | string + card_id?: Prisma.StringWithAggregatesFilter<"account_profile"> | string + token?: Prisma.StringWithAggregatesFilter<"account_profile"> | string + initial_transaction?: Prisma.StringWithAggregatesFilter<"account_profile"> | string +} + +export type account_profileCreateInput = { + account_id: number + profile_id: string + address_id: string + card_id: string + token: string + initial_transaction: string +} + +export type account_profileUncheckedCreateInput = { + id?: number + account_id: number + profile_id: string + address_id: string + card_id: string + token: string + initial_transaction: string +} + +export type account_profileUpdateInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + profile_id?: Prisma.StringFieldUpdateOperationsInput | string + address_id?: Prisma.StringFieldUpdateOperationsInput | string + card_id?: Prisma.StringFieldUpdateOperationsInput | string + token?: Prisma.StringFieldUpdateOperationsInput | string + initial_transaction?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_profileUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + profile_id?: Prisma.StringFieldUpdateOperationsInput | string + address_id?: Prisma.StringFieldUpdateOperationsInput | string + card_id?: Prisma.StringFieldUpdateOperationsInput | string + token?: Prisma.StringFieldUpdateOperationsInput | string + initial_transaction?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_profileCreateManyInput = { + id?: number + account_id: number + profile_id: string + address_id: string + card_id: string + token: string + initial_transaction: string +} + +export type account_profileUpdateManyMutationInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + profile_id?: Prisma.StringFieldUpdateOperationsInput | string + address_id?: Prisma.StringFieldUpdateOperationsInput | string + card_id?: Prisma.StringFieldUpdateOperationsInput | string + token?: Prisma.StringFieldUpdateOperationsInput | string + initial_transaction?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_profileUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + profile_id?: Prisma.StringFieldUpdateOperationsInput | string + address_id?: Prisma.StringFieldUpdateOperationsInput | string + card_id?: Prisma.StringFieldUpdateOperationsInput | string + token?: Prisma.StringFieldUpdateOperationsInput | string + initial_transaction?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_profileOrderByRelevanceInput = { + fields: Prisma.account_profileOrderByRelevanceFieldEnum | Prisma.account_profileOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type account_profileCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + profile_id?: Prisma.SortOrder + address_id?: Prisma.SortOrder + card_id?: Prisma.SortOrder + token?: Prisma.SortOrder + initial_transaction?: Prisma.SortOrder +} + +export type account_profileAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder +} + +export type account_profileMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + profile_id?: Prisma.SortOrder + address_id?: Prisma.SortOrder + card_id?: Prisma.SortOrder + token?: Prisma.SortOrder + initial_transaction?: Prisma.SortOrder +} + +export type account_profileMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + profile_id?: Prisma.SortOrder + address_id?: Prisma.SortOrder + card_id?: Prisma.SortOrder + token?: Prisma.SortOrder + initial_transaction?: Prisma.SortOrder +} + +export type account_profileSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder +} + + + +export type account_profileSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + profile_id?: boolean + address_id?: boolean + card_id?: boolean + token?: boolean + initial_transaction?: boolean +}, ExtArgs["result"]["account_profile"]> + + + +export type account_profileSelectScalar = { + id?: boolean + account_id?: boolean + profile_id?: boolean + address_id?: boolean + card_id?: boolean + token?: boolean + initial_transaction?: boolean +} + +export type account_profileOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "profile_id" | "address_id" | "card_id" | "token" | "initial_transaction", ExtArgs["result"]["account_profile"]> + +export type $account_profilePayload = { + name: "account_profile" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: number + profile_id: string + address_id: string + card_id: string + token: string + initial_transaction: string + }, ExtArgs["result"]["account_profile"]> + composites: {} +} + +export type account_profileGetPayload = runtime.Types.Result.GetResult + +export type account_profileCountArgs = + Omit & { + select?: Account_profileCountAggregateInputType | true + } + +export interface account_profileDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['account_profile'], meta: { name: 'account_profile' } } + /** + * Find zero or one Account_profile that matches the filter. + * @param {account_profileFindUniqueArgs} args - Arguments to find a Account_profile + * @example + * // Get one Account_profile + * const account_profile = await prisma.account_profile.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__account_profileClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Account_profile that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {account_profileFindUniqueOrThrowArgs} args - Arguments to find a Account_profile + * @example + * // Get one Account_profile + * const account_profile = await prisma.account_profile.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__account_profileClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Account_profile 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 {account_profileFindFirstArgs} args - Arguments to find a Account_profile + * @example + * // Get one Account_profile + * const account_profile = await prisma.account_profile.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__account_profileClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Account_profile 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 {account_profileFindFirstOrThrowArgs} args - Arguments to find a Account_profile + * @example + * // Get one Account_profile + * const account_profile = await prisma.account_profile.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__account_profileClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Account_profiles 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 {account_profileFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Account_profiles + * const account_profiles = await prisma.account_profile.findMany() + * + * // Get first 10 Account_profiles + * const account_profiles = await prisma.account_profile.findMany({ take: 10 }) + * + * // Only select the `id` + * const account_profileWithIdOnly = await prisma.account_profile.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Account_profile. + * @param {account_profileCreateArgs} args - Arguments to create a Account_profile. + * @example + * // Create one Account_profile + * const Account_profile = await prisma.account_profile.create({ + * data: { + * // ... data to create a Account_profile + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__account_profileClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Account_profiles. + * @param {account_profileCreateManyArgs} args - Arguments to create many Account_profiles. + * @example + * // Create many Account_profiles + * const account_profile = await prisma.account_profile.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Account_profile. + * @param {account_profileDeleteArgs} args - Arguments to delete one Account_profile. + * @example + * // Delete one Account_profile + * const Account_profile = await prisma.account_profile.delete({ + * where: { + * // ... filter to delete one Account_profile + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__account_profileClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Account_profile. + * @param {account_profileUpdateArgs} args - Arguments to update one Account_profile. + * @example + * // Update one Account_profile + * const account_profile = await prisma.account_profile.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__account_profileClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Account_profiles. + * @param {account_profileDeleteManyArgs} args - Arguments to filter Account_profiles to delete. + * @example + * // Delete a few Account_profiles + * const { count } = await prisma.account_profile.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Account_profiles. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {account_profileUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Account_profiles + * const account_profile = await prisma.account_profile.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Account_profile. + * @param {account_profileUpsertArgs} args - Arguments to update or create a Account_profile. + * @example + * // Update or create a Account_profile + * const account_profile = await prisma.account_profile.upsert({ + * create: { + * // ... data to create a Account_profile + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Account_profile we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__account_profileClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Account_profiles. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {account_profileCountArgs} args - Arguments to filter Account_profiles to count. + * @example + * // Count the number of Account_profiles + * const count = await prisma.account_profile.count({ + * where: { + * // ... the filter for the Account_profiles 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_profile. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Account_profileAggregateArgs} 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_profile. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {account_profileGroupByArgs} 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 account_profileGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: account_profileGroupByArgs['orderBy'] } + : { orderBy?: account_profileGroupByArgs['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 ? GetAccount_profileGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the account_profile model + */ +readonly fields: account_profileFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for account_profile. + * 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__account_profileClient 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 account_profile model + */ +export interface account_profileFieldRefs { + readonly id: Prisma.FieldRef<"account_profile", 'Int'> + readonly account_id: Prisma.FieldRef<"account_profile", 'Int'> + readonly profile_id: Prisma.FieldRef<"account_profile", 'String'> + readonly address_id: Prisma.FieldRef<"account_profile", 'String'> + readonly card_id: Prisma.FieldRef<"account_profile", 'String'> + readonly token: Prisma.FieldRef<"account_profile", 'String'> + readonly initial_transaction: Prisma.FieldRef<"account_profile", 'String'> +} + + +// Custom InputTypes +/** + * account_profile findUnique + */ +export type account_profileFindUniqueArgs = { + /** + * Select specific fields to fetch from the account_profile + */ + select?: Prisma.account_profileSelect | null + /** + * Omit specific fields from the account_profile + */ + omit?: Prisma.account_profileOmit | null + /** + * Filter, which account_profile to fetch. + */ + where: Prisma.account_profileWhereUniqueInput +} + +/** + * account_profile findUniqueOrThrow + */ +export type account_profileFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the account_profile + */ + select?: Prisma.account_profileSelect | null + /** + * Omit specific fields from the account_profile + */ + omit?: Prisma.account_profileOmit | null + /** + * Filter, which account_profile to fetch. + */ + where: Prisma.account_profileWhereUniqueInput +} + +/** + * account_profile findFirst + */ +export type account_profileFindFirstArgs = { + /** + * Select specific fields to fetch from the account_profile + */ + select?: Prisma.account_profileSelect | null + /** + * Omit specific fields from the account_profile + */ + omit?: Prisma.account_profileOmit | null + /** + * Filter, which account_profile to fetch. + */ + where?: Prisma.account_profileWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_profiles to fetch. + */ + orderBy?: Prisma.account_profileOrderByWithRelationInput | Prisma.account_profileOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for account_profiles. + */ + cursor?: Prisma.account_profileWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_profiles 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` account_profiles. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of account_profiles. + */ + distinct?: Prisma.Account_profileScalarFieldEnum | Prisma.Account_profileScalarFieldEnum[] +} + +/** + * account_profile findFirstOrThrow + */ +export type account_profileFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the account_profile + */ + select?: Prisma.account_profileSelect | null + /** + * Omit specific fields from the account_profile + */ + omit?: Prisma.account_profileOmit | null + /** + * Filter, which account_profile to fetch. + */ + where?: Prisma.account_profileWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_profiles to fetch. + */ + orderBy?: Prisma.account_profileOrderByWithRelationInput | Prisma.account_profileOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for account_profiles. + */ + cursor?: Prisma.account_profileWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_profiles 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` account_profiles. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of account_profiles. + */ + distinct?: Prisma.Account_profileScalarFieldEnum | Prisma.Account_profileScalarFieldEnum[] +} + +/** + * account_profile findMany + */ +export type account_profileFindManyArgs = { + /** + * Select specific fields to fetch from the account_profile + */ + select?: Prisma.account_profileSelect | null + /** + * Omit specific fields from the account_profile + */ + omit?: Prisma.account_profileOmit | null + /** + * Filter, which account_profiles to fetch. + */ + where?: Prisma.account_profileWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_profiles to fetch. + */ + orderBy?: Prisma.account_profileOrderByWithRelationInput | Prisma.account_profileOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing account_profiles. + */ + cursor?: Prisma.account_profileWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_profiles 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` account_profiles. + */ + skip?: number + distinct?: Prisma.Account_profileScalarFieldEnum | Prisma.Account_profileScalarFieldEnum[] +} + +/** + * account_profile create + */ +export type account_profileCreateArgs = { + /** + * Select specific fields to fetch from the account_profile + */ + select?: Prisma.account_profileSelect | null + /** + * Omit specific fields from the account_profile + */ + omit?: Prisma.account_profileOmit | null + /** + * The data needed to create a account_profile. + */ + data: Prisma.XOR +} + +/** + * account_profile createMany + */ +export type account_profileCreateManyArgs = { + /** + * The data used to create many account_profiles. + */ + data: Prisma.account_profileCreateManyInput | Prisma.account_profileCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * account_profile update + */ +export type account_profileUpdateArgs = { + /** + * Select specific fields to fetch from the account_profile + */ + select?: Prisma.account_profileSelect | null + /** + * Omit specific fields from the account_profile + */ + omit?: Prisma.account_profileOmit | null + /** + * The data needed to update a account_profile. + */ + data: Prisma.XOR + /** + * Choose, which account_profile to update. + */ + where: Prisma.account_profileWhereUniqueInput +} + +/** + * account_profile updateMany + */ +export type account_profileUpdateManyArgs = { + /** + * The data used to update account_profiles. + */ + data: Prisma.XOR + /** + * Filter which account_profiles to update + */ + where?: Prisma.account_profileWhereInput + /** + * Limit how many account_profiles to update. + */ + limit?: number +} + +/** + * account_profile upsert + */ +export type account_profileUpsertArgs = { + /** + * Select specific fields to fetch from the account_profile + */ + select?: Prisma.account_profileSelect | null + /** + * Omit specific fields from the account_profile + */ + omit?: Prisma.account_profileOmit | null + /** + * The filter to search for the account_profile to update in case it exists. + */ + where: Prisma.account_profileWhereUniqueInput + /** + * In case the account_profile found by the `where` argument doesn't exist, create a new account_profile with this data. + */ + create: Prisma.XOR + /** + * In case the account_profile was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * account_profile delete + */ +export type account_profileDeleteArgs = { + /** + * Select specific fields to fetch from the account_profile + */ + select?: Prisma.account_profileSelect | null + /** + * Omit specific fields from the account_profile + */ + omit?: Prisma.account_profileOmit | null + /** + * Filter which account_profile to delete. + */ + where: Prisma.account_profileWhereUniqueInput +} + +/** + * account_profile deleteMany + */ +export type account_profileDeleteManyArgs = { + /** + * Filter which account_profiles to delete + */ + where?: Prisma.account_profileWhereInput + /** + * Limit how many account_profiles to delete. + */ + limit?: number +} + +/** + * account_profile without action + */ +export type account_profileDefaultArgs = { + /** + * Select specific fields to fetch from the account_profile + */ + select?: Prisma.account_profileSelect | null + /** + * Omit specific fields from the account_profile + */ + omit?: Prisma.account_profileOmit | null +} diff --git a/prisma/generated/mariadb/models/account_suspension.ts b/prisma/generated/mariadb/models/account_suspension.ts new file mode 100644 index 0000000..bcac33f --- /dev/null +++ b/prisma/generated/mariadb/models/account_suspension.ts @@ -0,0 +1,1097 @@ + +/* !!! 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_suspension` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model account_suspension + * + */ +export type account_suspensionModel = runtime.Types.Result.DefaultSelection + +export type AggregateAccount_suspension = { + _count: Account_suspensionCountAggregateOutputType | null + _avg: Account_suspensionAvgAggregateOutputType | null + _sum: Account_suspensionSumAggregateOutputType | null + _min: Account_suspensionMinAggregateOutputType | null + _max: Account_suspensionMaxAggregateOutputType | null +} + +export type Account_suspensionAvgAggregateOutputType = { + id: number | null + account_id: number | null + date_start: number | null + date_end: number | null +} + +export type Account_suspensionSumAggregateOutputType = { + id: number | null + account_id: number | null + date_start: bigint | null + date_end: bigint | null +} + +export type Account_suspensionMinAggregateOutputType = { + id: number | null + account_id: number | null + date_start: bigint | null + date_end: bigint | null + note: string | null +} + +export type Account_suspensionMaxAggregateOutputType = { + id: number | null + account_id: number | null + date_start: bigint | null + date_end: bigint | null + note: string | null +} + +export type Account_suspensionCountAggregateOutputType = { + id: number + account_id: number + date_start: number + date_end: number + note: number + _all: number +} + + +export type Account_suspensionAvgAggregateInputType = { + id?: true + account_id?: true + date_start?: true + date_end?: true +} + +export type Account_suspensionSumAggregateInputType = { + id?: true + account_id?: true + date_start?: true + date_end?: true +} + +export type Account_suspensionMinAggregateInputType = { + id?: true + account_id?: true + date_start?: true + date_end?: true + note?: true +} + +export type Account_suspensionMaxAggregateInputType = { + id?: true + account_id?: true + date_start?: true + date_end?: true + note?: true +} + +export type Account_suspensionCountAggregateInputType = { + id?: true + account_id?: true + date_start?: true + date_end?: true + note?: true + _all?: true +} + +export type Account_suspensionAggregateArgs = { + /** + * Filter which account_suspension to aggregate. + */ + where?: Prisma.account_suspensionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_suspensions to fetch. + */ + orderBy?: Prisma.account_suspensionOrderByWithRelationInput | Prisma.account_suspensionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.account_suspensionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_suspensions 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` account_suspensions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned account_suspensions + **/ + _count?: true | Account_suspensionCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Account_suspensionAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Account_suspensionSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Account_suspensionMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Account_suspensionMaxAggregateInputType +} + +export type GetAccount_suspensionAggregateType = { + [P in keyof T & keyof AggregateAccount_suspension]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type account_suspensionGroupByArgs = { + where?: Prisma.account_suspensionWhereInput + orderBy?: Prisma.account_suspensionOrderByWithAggregationInput | Prisma.account_suspensionOrderByWithAggregationInput[] + by: Prisma.Account_suspensionScalarFieldEnum[] | Prisma.Account_suspensionScalarFieldEnum + having?: Prisma.account_suspensionScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Account_suspensionCountAggregateInputType | true + _avg?: Account_suspensionAvgAggregateInputType + _sum?: Account_suspensionSumAggregateInputType + _min?: Account_suspensionMinAggregateInputType + _max?: Account_suspensionMaxAggregateInputType +} + +export type Account_suspensionGroupByOutputType = { + id: number + account_id: number + date_start: bigint + date_end: bigint + note: string + _count: Account_suspensionCountAggregateOutputType | null + _avg: Account_suspensionAvgAggregateOutputType | null + _sum: Account_suspensionSumAggregateOutputType | null + _min: Account_suspensionMinAggregateOutputType | null + _max: Account_suspensionMaxAggregateOutputType | null +} + +type GetAccount_suspensionGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Account_suspensionGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type account_suspensionWhereInput = { + AND?: Prisma.account_suspensionWhereInput | Prisma.account_suspensionWhereInput[] + OR?: Prisma.account_suspensionWhereInput[] + NOT?: Prisma.account_suspensionWhereInput | Prisma.account_suspensionWhereInput[] + id?: Prisma.IntFilter<"account_suspension"> | number + account_id?: Prisma.IntFilter<"account_suspension"> | number + date_start?: Prisma.BigIntFilter<"account_suspension"> | bigint | number + date_end?: Prisma.BigIntFilter<"account_suspension"> | bigint | number + note?: Prisma.StringFilter<"account_suspension"> | string +} + +export type account_suspensionOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder + note?: Prisma.SortOrder + _relevance?: Prisma.account_suspensionOrderByRelevanceInput +} + +export type account_suspensionWhereUniqueInput = Prisma.AtLeast<{ + id?: number + account_id?: number + AND?: Prisma.account_suspensionWhereInput | Prisma.account_suspensionWhereInput[] + OR?: Prisma.account_suspensionWhereInput[] + NOT?: Prisma.account_suspensionWhereInput | Prisma.account_suspensionWhereInput[] + date_start?: Prisma.BigIntFilter<"account_suspension"> | bigint | number + date_end?: Prisma.BigIntFilter<"account_suspension"> | bigint | number + note?: Prisma.StringFilter<"account_suspension"> | string +}, "id" | "account_id"> + +export type account_suspensionOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder + note?: Prisma.SortOrder + _count?: Prisma.account_suspensionCountOrderByAggregateInput + _avg?: Prisma.account_suspensionAvgOrderByAggregateInput + _max?: Prisma.account_suspensionMaxOrderByAggregateInput + _min?: Prisma.account_suspensionMinOrderByAggregateInput + _sum?: Prisma.account_suspensionSumOrderByAggregateInput +} + +export type account_suspensionScalarWhereWithAggregatesInput = { + AND?: Prisma.account_suspensionScalarWhereWithAggregatesInput | Prisma.account_suspensionScalarWhereWithAggregatesInput[] + OR?: Prisma.account_suspensionScalarWhereWithAggregatesInput[] + NOT?: Prisma.account_suspensionScalarWhereWithAggregatesInput | Prisma.account_suspensionScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"account_suspension"> | number + account_id?: Prisma.IntWithAggregatesFilter<"account_suspension"> | number + date_start?: Prisma.BigIntWithAggregatesFilter<"account_suspension"> | bigint | number + date_end?: Prisma.BigIntWithAggregatesFilter<"account_suspension"> | bigint | number + note?: Prisma.StringWithAggregatesFilter<"account_suspension"> | string +} + +export type account_suspensionCreateInput = { + account_id: number + date_start: bigint | number + date_end: bigint | number + note: string +} + +export type account_suspensionUncheckedCreateInput = { + id?: number + account_id: number + date_start: bigint | number + date_end: bigint | number + note: string +} + +export type account_suspensionUpdateInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date_start?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_end?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + note?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_suspensionUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date_start?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_end?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + note?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_suspensionCreateManyInput = { + id?: number + account_id: number + date_start: bigint | number + date_end: bigint | number + note: string +} + +export type account_suspensionUpdateManyMutationInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date_start?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_end?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + note?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_suspensionUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date_start?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_end?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + note?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type account_suspensionOrderByRelevanceInput = { + fields: Prisma.account_suspensionOrderByRelevanceFieldEnum | Prisma.account_suspensionOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type account_suspensionCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder + note?: Prisma.SortOrder +} + +export type account_suspensionAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder +} + +export type account_suspensionMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder + note?: Prisma.SortOrder +} + +export type account_suspensionMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder + note?: Prisma.SortOrder +} + +export type account_suspensionSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder +} + + + +export type account_suspensionSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + date_start?: boolean + date_end?: boolean + note?: boolean +}, ExtArgs["result"]["account_suspension"]> + + + +export type account_suspensionSelectScalar = { + id?: boolean + account_id?: boolean + date_start?: boolean + date_end?: boolean + note?: boolean +} + +export type account_suspensionOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date_start" | "date_end" | "note", ExtArgs["result"]["account_suspension"]> + +export type $account_suspensionPayload = { + name: "account_suspension" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: number + date_start: bigint + date_end: bigint + note: string + }, ExtArgs["result"]["account_suspension"]> + composites: {} +} + +export type account_suspensionGetPayload = runtime.Types.Result.GetResult + +export type account_suspensionCountArgs = + Omit & { + select?: Account_suspensionCountAggregateInputType | true + } + +export interface account_suspensionDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['account_suspension'], meta: { name: 'account_suspension' } } + /** + * Find zero or one Account_suspension that matches the filter. + * @param {account_suspensionFindUniqueArgs} args - Arguments to find a Account_suspension + * @example + * // Get one Account_suspension + * const account_suspension = await prisma.account_suspension.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__account_suspensionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Account_suspension that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {account_suspensionFindUniqueOrThrowArgs} args - Arguments to find a Account_suspension + * @example + * // Get one Account_suspension + * const account_suspension = await prisma.account_suspension.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__account_suspensionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Account_suspension 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 {account_suspensionFindFirstArgs} args - Arguments to find a Account_suspension + * @example + * // Get one Account_suspension + * const account_suspension = await prisma.account_suspension.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__account_suspensionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Account_suspension 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 {account_suspensionFindFirstOrThrowArgs} args - Arguments to find a Account_suspension + * @example + * // Get one Account_suspension + * const account_suspension = await prisma.account_suspension.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__account_suspensionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Account_suspensions 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 {account_suspensionFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Account_suspensions + * const account_suspensions = await prisma.account_suspension.findMany() + * + * // Get first 10 Account_suspensions + * const account_suspensions = await prisma.account_suspension.findMany({ take: 10 }) + * + * // Only select the `id` + * const account_suspensionWithIdOnly = await prisma.account_suspension.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Account_suspension. + * @param {account_suspensionCreateArgs} args - Arguments to create a Account_suspension. + * @example + * // Create one Account_suspension + * const Account_suspension = await prisma.account_suspension.create({ + * data: { + * // ... data to create a Account_suspension + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__account_suspensionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Account_suspensions. + * @param {account_suspensionCreateManyArgs} args - Arguments to create many Account_suspensions. + * @example + * // Create many Account_suspensions + * const account_suspension = await prisma.account_suspension.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Account_suspension. + * @param {account_suspensionDeleteArgs} args - Arguments to delete one Account_suspension. + * @example + * // Delete one Account_suspension + * const Account_suspension = await prisma.account_suspension.delete({ + * where: { + * // ... filter to delete one Account_suspension + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__account_suspensionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Account_suspension. + * @param {account_suspensionUpdateArgs} args - Arguments to update one Account_suspension. + * @example + * // Update one Account_suspension + * const account_suspension = await prisma.account_suspension.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__account_suspensionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Account_suspensions. + * @param {account_suspensionDeleteManyArgs} args - Arguments to filter Account_suspensions to delete. + * @example + * // Delete a few Account_suspensions + * const { count } = await prisma.account_suspension.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Account_suspensions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {account_suspensionUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Account_suspensions + * const account_suspension = await prisma.account_suspension.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Account_suspension. + * @param {account_suspensionUpsertArgs} args - Arguments to update or create a Account_suspension. + * @example + * // Update or create a Account_suspension + * const account_suspension = await prisma.account_suspension.upsert({ + * create: { + * // ... data to create a Account_suspension + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Account_suspension we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__account_suspensionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Account_suspensions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {account_suspensionCountArgs} args - Arguments to filter Account_suspensions to count. + * @example + * // Count the number of Account_suspensions + * const count = await prisma.account_suspension.count({ + * where: { + * // ... the filter for the Account_suspensions 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_suspension. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Account_suspensionAggregateArgs} 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_suspension. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {account_suspensionGroupByArgs} 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 account_suspensionGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: account_suspensionGroupByArgs['orderBy'] } + : { orderBy?: account_suspensionGroupByArgs['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 ? GetAccount_suspensionGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the account_suspension model + */ +readonly fields: account_suspensionFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for account_suspension. + * 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__account_suspensionClient 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 account_suspension model + */ +export interface account_suspensionFieldRefs { + readonly id: Prisma.FieldRef<"account_suspension", 'Int'> + readonly account_id: Prisma.FieldRef<"account_suspension", 'Int'> + readonly date_start: Prisma.FieldRef<"account_suspension", 'BigInt'> + readonly date_end: Prisma.FieldRef<"account_suspension", 'BigInt'> + readonly note: Prisma.FieldRef<"account_suspension", 'String'> +} + + +// Custom InputTypes +/** + * account_suspension findUnique + */ +export type account_suspensionFindUniqueArgs = { + /** + * Select specific fields to fetch from the account_suspension + */ + select?: Prisma.account_suspensionSelect | null + /** + * Omit specific fields from the account_suspension + */ + omit?: Prisma.account_suspensionOmit | null + /** + * Filter, which account_suspension to fetch. + */ + where: Prisma.account_suspensionWhereUniqueInput +} + +/** + * account_suspension findUniqueOrThrow + */ +export type account_suspensionFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the account_suspension + */ + select?: Prisma.account_suspensionSelect | null + /** + * Omit specific fields from the account_suspension + */ + omit?: Prisma.account_suspensionOmit | null + /** + * Filter, which account_suspension to fetch. + */ + where: Prisma.account_suspensionWhereUniqueInput +} + +/** + * account_suspension findFirst + */ +export type account_suspensionFindFirstArgs = { + /** + * Select specific fields to fetch from the account_suspension + */ + select?: Prisma.account_suspensionSelect | null + /** + * Omit specific fields from the account_suspension + */ + omit?: Prisma.account_suspensionOmit | null + /** + * Filter, which account_suspension to fetch. + */ + where?: Prisma.account_suspensionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_suspensions to fetch. + */ + orderBy?: Prisma.account_suspensionOrderByWithRelationInput | Prisma.account_suspensionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for account_suspensions. + */ + cursor?: Prisma.account_suspensionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_suspensions 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` account_suspensions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of account_suspensions. + */ + distinct?: Prisma.Account_suspensionScalarFieldEnum | Prisma.Account_suspensionScalarFieldEnum[] +} + +/** + * account_suspension findFirstOrThrow + */ +export type account_suspensionFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the account_suspension + */ + select?: Prisma.account_suspensionSelect | null + /** + * Omit specific fields from the account_suspension + */ + omit?: Prisma.account_suspensionOmit | null + /** + * Filter, which account_suspension to fetch. + */ + where?: Prisma.account_suspensionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_suspensions to fetch. + */ + orderBy?: Prisma.account_suspensionOrderByWithRelationInput | Prisma.account_suspensionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for account_suspensions. + */ + cursor?: Prisma.account_suspensionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_suspensions 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` account_suspensions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of account_suspensions. + */ + distinct?: Prisma.Account_suspensionScalarFieldEnum | Prisma.Account_suspensionScalarFieldEnum[] +} + +/** + * account_suspension findMany + */ +export type account_suspensionFindManyArgs = { + /** + * Select specific fields to fetch from the account_suspension + */ + select?: Prisma.account_suspensionSelect | null + /** + * Omit specific fields from the account_suspension + */ + omit?: Prisma.account_suspensionOmit | null + /** + * Filter, which account_suspensions to fetch. + */ + where?: Prisma.account_suspensionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of account_suspensions to fetch. + */ + orderBy?: Prisma.account_suspensionOrderByWithRelationInput | Prisma.account_suspensionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing account_suspensions. + */ + cursor?: Prisma.account_suspensionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` account_suspensions 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` account_suspensions. + */ + skip?: number + distinct?: Prisma.Account_suspensionScalarFieldEnum | Prisma.Account_suspensionScalarFieldEnum[] +} + +/** + * account_suspension create + */ +export type account_suspensionCreateArgs = { + /** + * Select specific fields to fetch from the account_suspension + */ + select?: Prisma.account_suspensionSelect | null + /** + * Omit specific fields from the account_suspension + */ + omit?: Prisma.account_suspensionOmit | null + /** + * The data needed to create a account_suspension. + */ + data: Prisma.XOR +} + +/** + * account_suspension createMany + */ +export type account_suspensionCreateManyArgs = { + /** + * The data used to create many account_suspensions. + */ + data: Prisma.account_suspensionCreateManyInput | Prisma.account_suspensionCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * account_suspension update + */ +export type account_suspensionUpdateArgs = { + /** + * Select specific fields to fetch from the account_suspension + */ + select?: Prisma.account_suspensionSelect | null + /** + * Omit specific fields from the account_suspension + */ + omit?: Prisma.account_suspensionOmit | null + /** + * The data needed to update a account_suspension. + */ + data: Prisma.XOR + /** + * Choose, which account_suspension to update. + */ + where: Prisma.account_suspensionWhereUniqueInput +} + +/** + * account_suspension updateMany + */ +export type account_suspensionUpdateManyArgs = { + /** + * The data used to update account_suspensions. + */ + data: Prisma.XOR + /** + * Filter which account_suspensions to update + */ + where?: Prisma.account_suspensionWhereInput + /** + * Limit how many account_suspensions to update. + */ + limit?: number +} + +/** + * account_suspension upsert + */ +export type account_suspensionUpsertArgs = { + /** + * Select specific fields to fetch from the account_suspension + */ + select?: Prisma.account_suspensionSelect | null + /** + * Omit specific fields from the account_suspension + */ + omit?: Prisma.account_suspensionOmit | null + /** + * The filter to search for the account_suspension to update in case it exists. + */ + where: Prisma.account_suspensionWhereUniqueInput + /** + * In case the account_suspension found by the `where` argument doesn't exist, create a new account_suspension with this data. + */ + create: Prisma.XOR + /** + * In case the account_suspension was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * account_suspension delete + */ +export type account_suspensionDeleteArgs = { + /** + * Select specific fields to fetch from the account_suspension + */ + select?: Prisma.account_suspensionSelect | null + /** + * Omit specific fields from the account_suspension + */ + omit?: Prisma.account_suspensionOmit | null + /** + * Filter which account_suspension to delete. + */ + where: Prisma.account_suspensionWhereUniqueInput +} + +/** + * account_suspension deleteMany + */ +export type account_suspensionDeleteManyArgs = { + /** + * Filter which account_suspensions to delete + */ + where?: Prisma.account_suspensionWhereInput + /** + * Limit how many account_suspensions to delete. + */ + limit?: number +} + +/** + * account_suspension without action + */ +export type account_suspensionDefaultArgs = { + /** + * Select specific fields to fetch from the account_suspension + */ + select?: Prisma.account_suspensionSelect | null + /** + * Omit specific fields from the account_suspension + */ + omit?: Prisma.account_suspensionOmit | null +} diff --git a/prisma/generated/mariadb/models/autologin.ts b/prisma/generated/mariadb/models/autologin.ts new file mode 100644 index 0000000..c607d63 --- /dev/null +++ b/prisma/generated/mariadb/models/autologin.ts @@ -0,0 +1,1059 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `autologin` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model autologin + * + */ +export type autologinModel = runtime.Types.Result.DefaultSelection + +export type AggregateAutologin = { + _count: AutologinCountAggregateOutputType | null + _avg: AutologinAvgAggregateOutputType | null + _sum: AutologinSumAggregateOutputType | null + _min: AutologinMinAggregateOutputType | null + _max: AutologinMaxAggregateOutputType | null +} + +export type AutologinAvgAggregateOutputType = { + id: number | null + staff: number | null +} + +export type AutologinSumAggregateOutputType = { + id: number | null + staff: number | null +} + +export type AutologinMinAggregateOutputType = { + id: number | null + token: string | null + date: string | null + staff: number | null +} + +export type AutologinMaxAggregateOutputType = { + id: number | null + token: string | null + date: string | null + staff: number | null +} + +export type AutologinCountAggregateOutputType = { + id: number + token: number + date: number + staff: number + _all: number +} + + +export type AutologinAvgAggregateInputType = { + id?: true + staff?: true +} + +export type AutologinSumAggregateInputType = { + id?: true + staff?: true +} + +export type AutologinMinAggregateInputType = { + id?: true + token?: true + date?: true + staff?: true +} + +export type AutologinMaxAggregateInputType = { + id?: true + token?: true + date?: true + staff?: true +} + +export type AutologinCountAggregateInputType = { + id?: true + token?: true + date?: true + staff?: true + _all?: true +} + +export type AutologinAggregateArgs = { + /** + * Filter which autologin to aggregate. + */ + where?: Prisma.autologinWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of autologins to fetch. + */ + orderBy?: Prisma.autologinOrderByWithRelationInput | Prisma.autologinOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.autologinWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` autologins 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` autologins. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned autologins + **/ + _count?: true | AutologinCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: AutologinAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: AutologinSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AutologinMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AutologinMaxAggregateInputType +} + +export type GetAutologinAggregateType = { + [P in keyof T & keyof AggregateAutologin]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type autologinGroupByArgs = { + where?: Prisma.autologinWhereInput + orderBy?: Prisma.autologinOrderByWithAggregationInput | Prisma.autologinOrderByWithAggregationInput[] + by: Prisma.AutologinScalarFieldEnum[] | Prisma.AutologinScalarFieldEnum + having?: Prisma.autologinScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AutologinCountAggregateInputType | true + _avg?: AutologinAvgAggregateInputType + _sum?: AutologinSumAggregateInputType + _min?: AutologinMinAggregateInputType + _max?: AutologinMaxAggregateInputType +} + +export type AutologinGroupByOutputType = { + id: number + token: string + date: string + staff: number + _count: AutologinCountAggregateOutputType | null + _avg: AutologinAvgAggregateOutputType | null + _sum: AutologinSumAggregateOutputType | null + _min: AutologinMinAggregateOutputType | null + _max: AutologinMaxAggregateOutputType | null +} + +type GetAutologinGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof AutologinGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type autologinWhereInput = { + AND?: Prisma.autologinWhereInput | Prisma.autologinWhereInput[] + OR?: Prisma.autologinWhereInput[] + NOT?: Prisma.autologinWhereInput | Prisma.autologinWhereInput[] + id?: Prisma.IntFilter<"autologin"> | number + token?: Prisma.StringFilter<"autologin"> | string + date?: Prisma.StringFilter<"autologin"> | string + staff?: Prisma.IntFilter<"autologin"> | number +} + +export type autologinOrderByWithRelationInput = { + id?: Prisma.SortOrder + token?: Prisma.SortOrder + date?: Prisma.SortOrder + staff?: Prisma.SortOrder + _relevance?: Prisma.autologinOrderByRelevanceInput +} + +export type autologinWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.autologinWhereInput | Prisma.autologinWhereInput[] + OR?: Prisma.autologinWhereInput[] + NOT?: Prisma.autologinWhereInput | Prisma.autologinWhereInput[] + token?: Prisma.StringFilter<"autologin"> | string + date?: Prisma.StringFilter<"autologin"> | string + staff?: Prisma.IntFilter<"autologin"> | number +}, "id"> + +export type autologinOrderByWithAggregationInput = { + id?: Prisma.SortOrder + token?: Prisma.SortOrder + date?: Prisma.SortOrder + staff?: Prisma.SortOrder + _count?: Prisma.autologinCountOrderByAggregateInput + _avg?: Prisma.autologinAvgOrderByAggregateInput + _max?: Prisma.autologinMaxOrderByAggregateInput + _min?: Prisma.autologinMinOrderByAggregateInput + _sum?: Prisma.autologinSumOrderByAggregateInput +} + +export type autologinScalarWhereWithAggregatesInput = { + AND?: Prisma.autologinScalarWhereWithAggregatesInput | Prisma.autologinScalarWhereWithAggregatesInput[] + OR?: Prisma.autologinScalarWhereWithAggregatesInput[] + NOT?: Prisma.autologinScalarWhereWithAggregatesInput | Prisma.autologinScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"autologin"> | number + token?: Prisma.StringWithAggregatesFilter<"autologin"> | string + date?: Prisma.StringWithAggregatesFilter<"autologin"> | string + staff?: Prisma.IntWithAggregatesFilter<"autologin"> | number +} + +export type autologinCreateInput = { + token: string + date: string + staff: number +} + +export type autologinUncheckedCreateInput = { + id?: number + token: string + date: string + staff: number +} + +export type autologinUpdateInput = { + token?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + staff?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type autologinUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + token?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + staff?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type autologinCreateManyInput = { + id?: number + token: string + date: string + staff: number +} + +export type autologinUpdateManyMutationInput = { + token?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + staff?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type autologinUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + token?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + staff?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type autologinOrderByRelevanceInput = { + fields: Prisma.autologinOrderByRelevanceFieldEnum | Prisma.autologinOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type autologinCountOrderByAggregateInput = { + id?: Prisma.SortOrder + token?: Prisma.SortOrder + date?: Prisma.SortOrder + staff?: Prisma.SortOrder +} + +export type autologinAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + staff?: Prisma.SortOrder +} + +export type autologinMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + token?: Prisma.SortOrder + date?: Prisma.SortOrder + staff?: Prisma.SortOrder +} + +export type autologinMinOrderByAggregateInput = { + id?: Prisma.SortOrder + token?: Prisma.SortOrder + date?: Prisma.SortOrder + staff?: Prisma.SortOrder +} + +export type autologinSumOrderByAggregateInput = { + id?: Prisma.SortOrder + staff?: Prisma.SortOrder +} + + + +export type autologinSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + token?: boolean + date?: boolean + staff?: boolean +}, ExtArgs["result"]["autologin"]> + + + +export type autologinSelectScalar = { + id?: boolean + token?: boolean + date?: boolean + staff?: boolean +} + +export type autologinOmit = runtime.Types.Extensions.GetOmit<"id" | "token" | "date" | "staff", ExtArgs["result"]["autologin"]> + +export type $autologinPayload = { + name: "autologin" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + token: string + date: string + staff: number + }, ExtArgs["result"]["autologin"]> + composites: {} +} + +export type autologinGetPayload = runtime.Types.Result.GetResult + +export type autologinCountArgs = + Omit & { + select?: AutologinCountAggregateInputType | true + } + +export interface autologinDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['autologin'], meta: { name: 'autologin' } } + /** + * Find zero or one Autologin that matches the filter. + * @param {autologinFindUniqueArgs} args - Arguments to find a Autologin + * @example + * // Get one Autologin + * const autologin = await prisma.autologin.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__autologinClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Autologin that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {autologinFindUniqueOrThrowArgs} args - Arguments to find a Autologin + * @example + * // Get one Autologin + * const autologin = await prisma.autologin.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__autologinClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Autologin 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 {autologinFindFirstArgs} args - Arguments to find a Autologin + * @example + * // Get one Autologin + * const autologin = await prisma.autologin.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__autologinClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Autologin 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 {autologinFindFirstOrThrowArgs} args - Arguments to find a Autologin + * @example + * // Get one Autologin + * const autologin = await prisma.autologin.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__autologinClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Autologins 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 {autologinFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Autologins + * const autologins = await prisma.autologin.findMany() + * + * // Get first 10 Autologins + * const autologins = await prisma.autologin.findMany({ take: 10 }) + * + * // Only select the `id` + * const autologinWithIdOnly = await prisma.autologin.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Autologin. + * @param {autologinCreateArgs} args - Arguments to create a Autologin. + * @example + * // Create one Autologin + * const Autologin = await prisma.autologin.create({ + * data: { + * // ... data to create a Autologin + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__autologinClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Autologins. + * @param {autologinCreateManyArgs} args - Arguments to create many Autologins. + * @example + * // Create many Autologins + * const autologin = await prisma.autologin.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Autologin. + * @param {autologinDeleteArgs} args - Arguments to delete one Autologin. + * @example + * // Delete one Autologin + * const Autologin = await prisma.autologin.delete({ + * where: { + * // ... filter to delete one Autologin + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__autologinClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Autologin. + * @param {autologinUpdateArgs} args - Arguments to update one Autologin. + * @example + * // Update one Autologin + * const autologin = await prisma.autologin.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__autologinClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Autologins. + * @param {autologinDeleteManyArgs} args - Arguments to filter Autologins to delete. + * @example + * // Delete a few Autologins + * const { count } = await prisma.autologin.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Autologins. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {autologinUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Autologins + * const autologin = await prisma.autologin.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Autologin. + * @param {autologinUpsertArgs} args - Arguments to update or create a Autologin. + * @example + * // Update or create a Autologin + * const autologin = await prisma.autologin.upsert({ + * create: { + * // ... data to create a Autologin + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Autologin we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__autologinClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Autologins. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {autologinCountArgs} args - Arguments to filter Autologins to count. + * @example + * // Count the number of Autologins + * const count = await prisma.autologin.count({ + * where: { + * // ... the filter for the Autologins 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 Autologin. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AutologinAggregateArgs} 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 Autologin. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {autologinGroupByArgs} 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 autologinGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: autologinGroupByArgs['orderBy'] } + : { orderBy?: autologinGroupByArgs['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 ? GetAutologinGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the autologin model + */ +readonly fields: autologinFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for autologin. + * 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__autologinClient 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 autologin model + */ +export interface autologinFieldRefs { + readonly id: Prisma.FieldRef<"autologin", 'Int'> + readonly token: Prisma.FieldRef<"autologin", 'String'> + readonly date: Prisma.FieldRef<"autologin", 'String'> + readonly staff: Prisma.FieldRef<"autologin", 'Int'> +} + + +// Custom InputTypes +/** + * autologin findUnique + */ +export type autologinFindUniqueArgs = { + /** + * Select specific fields to fetch from the autologin + */ + select?: Prisma.autologinSelect | null + /** + * Omit specific fields from the autologin + */ + omit?: Prisma.autologinOmit | null + /** + * Filter, which autologin to fetch. + */ + where: Prisma.autologinWhereUniqueInput +} + +/** + * autologin findUniqueOrThrow + */ +export type autologinFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the autologin + */ + select?: Prisma.autologinSelect | null + /** + * Omit specific fields from the autologin + */ + omit?: Prisma.autologinOmit | null + /** + * Filter, which autologin to fetch. + */ + where: Prisma.autologinWhereUniqueInput +} + +/** + * autologin findFirst + */ +export type autologinFindFirstArgs = { + /** + * Select specific fields to fetch from the autologin + */ + select?: Prisma.autologinSelect | null + /** + * Omit specific fields from the autologin + */ + omit?: Prisma.autologinOmit | null + /** + * Filter, which autologin to fetch. + */ + where?: Prisma.autologinWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of autologins to fetch. + */ + orderBy?: Prisma.autologinOrderByWithRelationInput | Prisma.autologinOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for autologins. + */ + cursor?: Prisma.autologinWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` autologins 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` autologins. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of autologins. + */ + distinct?: Prisma.AutologinScalarFieldEnum | Prisma.AutologinScalarFieldEnum[] +} + +/** + * autologin findFirstOrThrow + */ +export type autologinFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the autologin + */ + select?: Prisma.autologinSelect | null + /** + * Omit specific fields from the autologin + */ + omit?: Prisma.autologinOmit | null + /** + * Filter, which autologin to fetch. + */ + where?: Prisma.autologinWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of autologins to fetch. + */ + orderBy?: Prisma.autologinOrderByWithRelationInput | Prisma.autologinOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for autologins. + */ + cursor?: Prisma.autologinWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` autologins 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` autologins. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of autologins. + */ + distinct?: Prisma.AutologinScalarFieldEnum | Prisma.AutologinScalarFieldEnum[] +} + +/** + * autologin findMany + */ +export type autologinFindManyArgs = { + /** + * Select specific fields to fetch from the autologin + */ + select?: Prisma.autologinSelect | null + /** + * Omit specific fields from the autologin + */ + omit?: Prisma.autologinOmit | null + /** + * Filter, which autologins to fetch. + */ + where?: Prisma.autologinWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of autologins to fetch. + */ + orderBy?: Prisma.autologinOrderByWithRelationInput | Prisma.autologinOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing autologins. + */ + cursor?: Prisma.autologinWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` autologins 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` autologins. + */ + skip?: number + distinct?: Prisma.AutologinScalarFieldEnum | Prisma.AutologinScalarFieldEnum[] +} + +/** + * autologin create + */ +export type autologinCreateArgs = { + /** + * Select specific fields to fetch from the autologin + */ + select?: Prisma.autologinSelect | null + /** + * Omit specific fields from the autologin + */ + omit?: Prisma.autologinOmit | null + /** + * The data needed to create a autologin. + */ + data: Prisma.XOR +} + +/** + * autologin createMany + */ +export type autologinCreateManyArgs = { + /** + * The data used to create many autologins. + */ + data: Prisma.autologinCreateManyInput | Prisma.autologinCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * autologin update + */ +export type autologinUpdateArgs = { + /** + * Select specific fields to fetch from the autologin + */ + select?: Prisma.autologinSelect | null + /** + * Omit specific fields from the autologin + */ + omit?: Prisma.autologinOmit | null + /** + * The data needed to update a autologin. + */ + data: Prisma.XOR + /** + * Choose, which autologin to update. + */ + where: Prisma.autologinWhereUniqueInput +} + +/** + * autologin updateMany + */ +export type autologinUpdateManyArgs = { + /** + * The data used to update autologins. + */ + data: Prisma.XOR + /** + * Filter which autologins to update + */ + where?: Prisma.autologinWhereInput + /** + * Limit how many autologins to update. + */ + limit?: number +} + +/** + * autologin upsert + */ +export type autologinUpsertArgs = { + /** + * Select specific fields to fetch from the autologin + */ + select?: Prisma.autologinSelect | null + /** + * Omit specific fields from the autologin + */ + omit?: Prisma.autologinOmit | null + /** + * The filter to search for the autologin to update in case it exists. + */ + where: Prisma.autologinWhereUniqueInput + /** + * In case the autologin found by the `where` argument doesn't exist, create a new autologin with this data. + */ + create: Prisma.XOR + /** + * In case the autologin was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * autologin delete + */ +export type autologinDeleteArgs = { + /** + * Select specific fields to fetch from the autologin + */ + select?: Prisma.autologinSelect | null + /** + * Omit specific fields from the autologin + */ + omit?: Prisma.autologinOmit | null + /** + * Filter which autologin to delete. + */ + where: Prisma.autologinWhereUniqueInput +} + +/** + * autologin deleteMany + */ +export type autologinDeleteManyArgs = { + /** + * Filter which autologins to delete + */ + where?: Prisma.autologinWhereInput + /** + * Limit how many autologins to delete. + */ + limit?: number +} + +/** + * autologin without action + */ +export type autologinDefaultArgs = { + /** + * Select specific fields to fetch from the autologin + */ + select?: Prisma.autologinSelect | null + /** + * Omit specific fields from the autologin + */ + omit?: Prisma.autologinOmit | null +} diff --git a/prisma/generated/mariadb/models/banque_heure_staff.ts b/prisma/generated/mariadb/models/banque_heure_staff.ts new file mode 100644 index 0000000..fa79d2a --- /dev/null +++ b/prisma/generated/mariadb/models/banque_heure_staff.ts @@ -0,0 +1,1129 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `banque_heure_staff` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model banque_heure_staff + * + */ +export type banque_heure_staffModel = runtime.Types.Result.DefaultSelection + +export type AggregateBanque_heure_staff = { + _count: Banque_heure_staffCountAggregateOutputType | null + _avg: Banque_heure_staffAvgAggregateOutputType | null + _sum: Banque_heure_staffSumAggregateOutputType | null + _min: Banque_heure_staffMinAggregateOutputType | null + _max: Banque_heure_staffMaxAggregateOutputType | null +} + +export type Banque_heure_staffAvgAggregateOutputType = { + id: number | null + staff_id: number | null + week: number | null + year: number | null + heure: number | null +} + +export type Banque_heure_staffSumAggregateOutputType = { + id: number | null + staff_id: number | null + week: number | null + year: number | null + heure: number | null +} + +export type Banque_heure_staffMinAggregateOutputType = { + id: number | null + staff_id: number | null + week: number | null + year: number | null + sunday: string | null + heure: number | null +} + +export type Banque_heure_staffMaxAggregateOutputType = { + id: number | null + staff_id: number | null + week: number | null + year: number | null + sunday: string | null + heure: number | null +} + +export type Banque_heure_staffCountAggregateOutputType = { + id: number + staff_id: number + week: number + year: number + sunday: number + heure: number + _all: number +} + + +export type Banque_heure_staffAvgAggregateInputType = { + id?: true + staff_id?: true + week?: true + year?: true + heure?: true +} + +export type Banque_heure_staffSumAggregateInputType = { + id?: true + staff_id?: true + week?: true + year?: true + heure?: true +} + +export type Banque_heure_staffMinAggregateInputType = { + id?: true + staff_id?: true + week?: true + year?: true + sunday?: true + heure?: true +} + +export type Banque_heure_staffMaxAggregateInputType = { + id?: true + staff_id?: true + week?: true + year?: true + sunday?: true + heure?: true +} + +export type Banque_heure_staffCountAggregateInputType = { + id?: true + staff_id?: true + week?: true + year?: true + sunday?: true + heure?: true + _all?: true +} + +export type Banque_heure_staffAggregateArgs = { + /** + * Filter which banque_heure_staff to aggregate. + */ + where?: Prisma.banque_heure_staffWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of banque_heure_staffs to fetch. + */ + orderBy?: Prisma.banque_heure_staffOrderByWithRelationInput | Prisma.banque_heure_staffOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.banque_heure_staffWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` banque_heure_staffs 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` banque_heure_staffs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned banque_heure_staffs + **/ + _count?: true | Banque_heure_staffCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Banque_heure_staffAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Banque_heure_staffSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Banque_heure_staffMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Banque_heure_staffMaxAggregateInputType +} + +export type GetBanque_heure_staffAggregateType = { + [P in keyof T & keyof AggregateBanque_heure_staff]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type banque_heure_staffGroupByArgs = { + where?: Prisma.banque_heure_staffWhereInput + orderBy?: Prisma.banque_heure_staffOrderByWithAggregationInput | Prisma.banque_heure_staffOrderByWithAggregationInput[] + by: Prisma.Banque_heure_staffScalarFieldEnum[] | Prisma.Banque_heure_staffScalarFieldEnum + having?: Prisma.banque_heure_staffScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Banque_heure_staffCountAggregateInputType | true + _avg?: Banque_heure_staffAvgAggregateInputType + _sum?: Banque_heure_staffSumAggregateInputType + _min?: Banque_heure_staffMinAggregateInputType + _max?: Banque_heure_staffMaxAggregateInputType +} + +export type Banque_heure_staffGroupByOutputType = { + id: number + staff_id: number + week: number + year: number + sunday: string | null + heure: number + _count: Banque_heure_staffCountAggregateOutputType | null + _avg: Banque_heure_staffAvgAggregateOutputType | null + _sum: Banque_heure_staffSumAggregateOutputType | null + _min: Banque_heure_staffMinAggregateOutputType | null + _max: Banque_heure_staffMaxAggregateOutputType | null +} + +type GetBanque_heure_staffGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Banque_heure_staffGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type banque_heure_staffWhereInput = { + AND?: Prisma.banque_heure_staffWhereInput | Prisma.banque_heure_staffWhereInput[] + OR?: Prisma.banque_heure_staffWhereInput[] + NOT?: Prisma.banque_heure_staffWhereInput | Prisma.banque_heure_staffWhereInput[] + id?: Prisma.IntFilter<"banque_heure_staff"> | number + staff_id?: Prisma.IntFilter<"banque_heure_staff"> | number + week?: Prisma.IntFilter<"banque_heure_staff"> | number + year?: Prisma.IntFilter<"banque_heure_staff"> | number + sunday?: Prisma.StringNullableFilter<"banque_heure_staff"> | string | null + heure?: Prisma.FloatFilter<"banque_heure_staff"> | number +} + +export type banque_heure_staffOrderByWithRelationInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + week?: Prisma.SortOrder + year?: Prisma.SortOrder + sunday?: Prisma.SortOrderInput | Prisma.SortOrder + heure?: Prisma.SortOrder + _relevance?: Prisma.banque_heure_staffOrderByRelevanceInput +} + +export type banque_heure_staffWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.banque_heure_staffWhereInput | Prisma.banque_heure_staffWhereInput[] + OR?: Prisma.banque_heure_staffWhereInput[] + NOT?: Prisma.banque_heure_staffWhereInput | Prisma.banque_heure_staffWhereInput[] + staff_id?: Prisma.IntFilter<"banque_heure_staff"> | number + week?: Prisma.IntFilter<"banque_heure_staff"> | number + year?: Prisma.IntFilter<"banque_heure_staff"> | number + sunday?: Prisma.StringNullableFilter<"banque_heure_staff"> | string | null + heure?: Prisma.FloatFilter<"banque_heure_staff"> | number +}, "id"> + +export type banque_heure_staffOrderByWithAggregationInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + week?: Prisma.SortOrder + year?: Prisma.SortOrder + sunday?: Prisma.SortOrderInput | Prisma.SortOrder + heure?: Prisma.SortOrder + _count?: Prisma.banque_heure_staffCountOrderByAggregateInput + _avg?: Prisma.banque_heure_staffAvgOrderByAggregateInput + _max?: Prisma.banque_heure_staffMaxOrderByAggregateInput + _min?: Prisma.banque_heure_staffMinOrderByAggregateInput + _sum?: Prisma.banque_heure_staffSumOrderByAggregateInput +} + +export type banque_heure_staffScalarWhereWithAggregatesInput = { + AND?: Prisma.banque_heure_staffScalarWhereWithAggregatesInput | Prisma.banque_heure_staffScalarWhereWithAggregatesInput[] + OR?: Prisma.banque_heure_staffScalarWhereWithAggregatesInput[] + NOT?: Prisma.banque_heure_staffScalarWhereWithAggregatesInput | Prisma.banque_heure_staffScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"banque_heure_staff"> | number + staff_id?: Prisma.IntWithAggregatesFilter<"banque_heure_staff"> | number + week?: Prisma.IntWithAggregatesFilter<"banque_heure_staff"> | number + year?: Prisma.IntWithAggregatesFilter<"banque_heure_staff"> | number + sunday?: Prisma.StringNullableWithAggregatesFilter<"banque_heure_staff"> | string | null + heure?: Prisma.FloatWithAggregatesFilter<"banque_heure_staff"> | number +} + +export type banque_heure_staffCreateInput = { + staff_id: number + week: number + year: number + sunday?: string | null + heure: number +} + +export type banque_heure_staffUncheckedCreateInput = { + id?: number + staff_id: number + week: number + year: number + sunday?: string | null + heure: number +} + +export type banque_heure_staffUpdateInput = { + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + week?: Prisma.IntFieldUpdateOperationsInput | number + year?: Prisma.IntFieldUpdateOperationsInput | number + sunday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + heure?: Prisma.FloatFieldUpdateOperationsInput | number +} + +export type banque_heure_staffUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + week?: Prisma.IntFieldUpdateOperationsInput | number + year?: Prisma.IntFieldUpdateOperationsInput | number + sunday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + heure?: Prisma.FloatFieldUpdateOperationsInput | number +} + +export type banque_heure_staffCreateManyInput = { + id?: number + staff_id: number + week: number + year: number + sunday?: string | null + heure: number +} + +export type banque_heure_staffUpdateManyMutationInput = { + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + week?: Prisma.IntFieldUpdateOperationsInput | number + year?: Prisma.IntFieldUpdateOperationsInput | number + sunday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + heure?: Prisma.FloatFieldUpdateOperationsInput | number +} + +export type banque_heure_staffUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + week?: Prisma.IntFieldUpdateOperationsInput | number + year?: Prisma.IntFieldUpdateOperationsInput | number + sunday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + heure?: Prisma.FloatFieldUpdateOperationsInput | number +} + +export type banque_heure_staffOrderByRelevanceInput = { + fields: Prisma.banque_heure_staffOrderByRelevanceFieldEnum | Prisma.banque_heure_staffOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type banque_heure_staffCountOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + week?: Prisma.SortOrder + year?: Prisma.SortOrder + sunday?: Prisma.SortOrder + heure?: Prisma.SortOrder +} + +export type banque_heure_staffAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + week?: Prisma.SortOrder + year?: Prisma.SortOrder + heure?: Prisma.SortOrder +} + +export type banque_heure_staffMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + week?: Prisma.SortOrder + year?: Prisma.SortOrder + sunday?: Prisma.SortOrder + heure?: Prisma.SortOrder +} + +export type banque_heure_staffMinOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + week?: Prisma.SortOrder + year?: Prisma.SortOrder + sunday?: Prisma.SortOrder + heure?: Prisma.SortOrder +} + +export type banque_heure_staffSumOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + week?: Prisma.SortOrder + year?: Prisma.SortOrder + heure?: Prisma.SortOrder +} + + + +export type banque_heure_staffSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + staff_id?: boolean + week?: boolean + year?: boolean + sunday?: boolean + heure?: boolean +}, ExtArgs["result"]["banque_heure_staff"]> + + + +export type banque_heure_staffSelectScalar = { + id?: boolean + staff_id?: boolean + week?: boolean + year?: boolean + sunday?: boolean + heure?: boolean +} + +export type banque_heure_staffOmit = runtime.Types.Extensions.GetOmit<"id" | "staff_id" | "week" | "year" | "sunday" | "heure", ExtArgs["result"]["banque_heure_staff"]> + +export type $banque_heure_staffPayload = { + name: "banque_heure_staff" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + staff_id: number + week: number + year: number + sunday: string | null + heure: number + }, ExtArgs["result"]["banque_heure_staff"]> + composites: {} +} + +export type banque_heure_staffGetPayload = runtime.Types.Result.GetResult + +export type banque_heure_staffCountArgs = + Omit & { + select?: Banque_heure_staffCountAggregateInputType | true + } + +export interface banque_heure_staffDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['banque_heure_staff'], meta: { name: 'banque_heure_staff' } } + /** + * Find zero or one Banque_heure_staff that matches the filter. + * @param {banque_heure_staffFindUniqueArgs} args - Arguments to find a Banque_heure_staff + * @example + * // Get one Banque_heure_staff + * const banque_heure_staff = await prisma.banque_heure_staff.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__banque_heure_staffClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Banque_heure_staff that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {banque_heure_staffFindUniqueOrThrowArgs} args - Arguments to find a Banque_heure_staff + * @example + * // Get one Banque_heure_staff + * const banque_heure_staff = await prisma.banque_heure_staff.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__banque_heure_staffClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Banque_heure_staff 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 {banque_heure_staffFindFirstArgs} args - Arguments to find a Banque_heure_staff + * @example + * // Get one Banque_heure_staff + * const banque_heure_staff = await prisma.banque_heure_staff.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__banque_heure_staffClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Banque_heure_staff 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 {banque_heure_staffFindFirstOrThrowArgs} args - Arguments to find a Banque_heure_staff + * @example + * // Get one Banque_heure_staff + * const banque_heure_staff = await prisma.banque_heure_staff.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__banque_heure_staffClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Banque_heure_staffs 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 {banque_heure_staffFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Banque_heure_staffs + * const banque_heure_staffs = await prisma.banque_heure_staff.findMany() + * + * // Get first 10 Banque_heure_staffs + * const banque_heure_staffs = await prisma.banque_heure_staff.findMany({ take: 10 }) + * + * // Only select the `id` + * const banque_heure_staffWithIdOnly = await prisma.banque_heure_staff.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Banque_heure_staff. + * @param {banque_heure_staffCreateArgs} args - Arguments to create a Banque_heure_staff. + * @example + * // Create one Banque_heure_staff + * const Banque_heure_staff = await prisma.banque_heure_staff.create({ + * data: { + * // ... data to create a Banque_heure_staff + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__banque_heure_staffClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Banque_heure_staffs. + * @param {banque_heure_staffCreateManyArgs} args - Arguments to create many Banque_heure_staffs. + * @example + * // Create many Banque_heure_staffs + * const banque_heure_staff = await prisma.banque_heure_staff.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Banque_heure_staff. + * @param {banque_heure_staffDeleteArgs} args - Arguments to delete one Banque_heure_staff. + * @example + * // Delete one Banque_heure_staff + * const Banque_heure_staff = await prisma.banque_heure_staff.delete({ + * where: { + * // ... filter to delete one Banque_heure_staff + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__banque_heure_staffClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Banque_heure_staff. + * @param {banque_heure_staffUpdateArgs} args - Arguments to update one Banque_heure_staff. + * @example + * // Update one Banque_heure_staff + * const banque_heure_staff = await prisma.banque_heure_staff.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__banque_heure_staffClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Banque_heure_staffs. + * @param {banque_heure_staffDeleteManyArgs} args - Arguments to filter Banque_heure_staffs to delete. + * @example + * // Delete a few Banque_heure_staffs + * const { count } = await prisma.banque_heure_staff.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Banque_heure_staffs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {banque_heure_staffUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Banque_heure_staffs + * const banque_heure_staff = await prisma.banque_heure_staff.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Banque_heure_staff. + * @param {banque_heure_staffUpsertArgs} args - Arguments to update or create a Banque_heure_staff. + * @example + * // Update or create a Banque_heure_staff + * const banque_heure_staff = await prisma.banque_heure_staff.upsert({ + * create: { + * // ... data to create a Banque_heure_staff + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Banque_heure_staff we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__banque_heure_staffClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Banque_heure_staffs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {banque_heure_staffCountArgs} args - Arguments to filter Banque_heure_staffs to count. + * @example + * // Count the number of Banque_heure_staffs + * const count = await prisma.banque_heure_staff.count({ + * where: { + * // ... the filter for the Banque_heure_staffs 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 Banque_heure_staff. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Banque_heure_staffAggregateArgs} 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 Banque_heure_staff. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {banque_heure_staffGroupByArgs} 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 banque_heure_staffGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: banque_heure_staffGroupByArgs['orderBy'] } + : { orderBy?: banque_heure_staffGroupByArgs['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 ? GetBanque_heure_staffGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the banque_heure_staff model + */ +readonly fields: banque_heure_staffFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for banque_heure_staff. + * 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__banque_heure_staffClient 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 banque_heure_staff model + */ +export interface banque_heure_staffFieldRefs { + readonly id: Prisma.FieldRef<"banque_heure_staff", 'Int'> + readonly staff_id: Prisma.FieldRef<"banque_heure_staff", 'Int'> + readonly week: Prisma.FieldRef<"banque_heure_staff", 'Int'> + readonly year: Prisma.FieldRef<"banque_heure_staff", 'Int'> + readonly sunday: Prisma.FieldRef<"banque_heure_staff", 'String'> + readonly heure: Prisma.FieldRef<"banque_heure_staff", 'Float'> +} + + +// Custom InputTypes +/** + * banque_heure_staff findUnique + */ +export type banque_heure_staffFindUniqueArgs = { + /** + * Select specific fields to fetch from the banque_heure_staff + */ + select?: Prisma.banque_heure_staffSelect | null + /** + * Omit specific fields from the banque_heure_staff + */ + omit?: Prisma.banque_heure_staffOmit | null + /** + * Filter, which banque_heure_staff to fetch. + */ + where: Prisma.banque_heure_staffWhereUniqueInput +} + +/** + * banque_heure_staff findUniqueOrThrow + */ +export type banque_heure_staffFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the banque_heure_staff + */ + select?: Prisma.banque_heure_staffSelect | null + /** + * Omit specific fields from the banque_heure_staff + */ + omit?: Prisma.banque_heure_staffOmit | null + /** + * Filter, which banque_heure_staff to fetch. + */ + where: Prisma.banque_heure_staffWhereUniqueInput +} + +/** + * banque_heure_staff findFirst + */ +export type banque_heure_staffFindFirstArgs = { + /** + * Select specific fields to fetch from the banque_heure_staff + */ + select?: Prisma.banque_heure_staffSelect | null + /** + * Omit specific fields from the banque_heure_staff + */ + omit?: Prisma.banque_heure_staffOmit | null + /** + * Filter, which banque_heure_staff to fetch. + */ + where?: Prisma.banque_heure_staffWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of banque_heure_staffs to fetch. + */ + orderBy?: Prisma.banque_heure_staffOrderByWithRelationInput | Prisma.banque_heure_staffOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for banque_heure_staffs. + */ + cursor?: Prisma.banque_heure_staffWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` banque_heure_staffs 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` banque_heure_staffs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of banque_heure_staffs. + */ + distinct?: Prisma.Banque_heure_staffScalarFieldEnum | Prisma.Banque_heure_staffScalarFieldEnum[] +} + +/** + * banque_heure_staff findFirstOrThrow + */ +export type banque_heure_staffFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the banque_heure_staff + */ + select?: Prisma.banque_heure_staffSelect | null + /** + * Omit specific fields from the banque_heure_staff + */ + omit?: Prisma.banque_heure_staffOmit | null + /** + * Filter, which banque_heure_staff to fetch. + */ + where?: Prisma.banque_heure_staffWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of banque_heure_staffs to fetch. + */ + orderBy?: Prisma.banque_heure_staffOrderByWithRelationInput | Prisma.banque_heure_staffOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for banque_heure_staffs. + */ + cursor?: Prisma.banque_heure_staffWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` banque_heure_staffs 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` banque_heure_staffs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of banque_heure_staffs. + */ + distinct?: Prisma.Banque_heure_staffScalarFieldEnum | Prisma.Banque_heure_staffScalarFieldEnum[] +} + +/** + * banque_heure_staff findMany + */ +export type banque_heure_staffFindManyArgs = { + /** + * Select specific fields to fetch from the banque_heure_staff + */ + select?: Prisma.banque_heure_staffSelect | null + /** + * Omit specific fields from the banque_heure_staff + */ + omit?: Prisma.banque_heure_staffOmit | null + /** + * Filter, which banque_heure_staffs to fetch. + */ + where?: Prisma.banque_heure_staffWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of banque_heure_staffs to fetch. + */ + orderBy?: Prisma.banque_heure_staffOrderByWithRelationInput | Prisma.banque_heure_staffOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing banque_heure_staffs. + */ + cursor?: Prisma.banque_heure_staffWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` banque_heure_staffs 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` banque_heure_staffs. + */ + skip?: number + distinct?: Prisma.Banque_heure_staffScalarFieldEnum | Prisma.Banque_heure_staffScalarFieldEnum[] +} + +/** + * banque_heure_staff create + */ +export type banque_heure_staffCreateArgs = { + /** + * Select specific fields to fetch from the banque_heure_staff + */ + select?: Prisma.banque_heure_staffSelect | null + /** + * Omit specific fields from the banque_heure_staff + */ + omit?: Prisma.banque_heure_staffOmit | null + /** + * The data needed to create a banque_heure_staff. + */ + data: Prisma.XOR +} + +/** + * banque_heure_staff createMany + */ +export type banque_heure_staffCreateManyArgs = { + /** + * The data used to create many banque_heure_staffs. + */ + data: Prisma.banque_heure_staffCreateManyInput | Prisma.banque_heure_staffCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * banque_heure_staff update + */ +export type banque_heure_staffUpdateArgs = { + /** + * Select specific fields to fetch from the banque_heure_staff + */ + select?: Prisma.banque_heure_staffSelect | null + /** + * Omit specific fields from the banque_heure_staff + */ + omit?: Prisma.banque_heure_staffOmit | null + /** + * The data needed to update a banque_heure_staff. + */ + data: Prisma.XOR + /** + * Choose, which banque_heure_staff to update. + */ + where: Prisma.banque_heure_staffWhereUniqueInput +} + +/** + * banque_heure_staff updateMany + */ +export type banque_heure_staffUpdateManyArgs = { + /** + * The data used to update banque_heure_staffs. + */ + data: Prisma.XOR + /** + * Filter which banque_heure_staffs to update + */ + where?: Prisma.banque_heure_staffWhereInput + /** + * Limit how many banque_heure_staffs to update. + */ + limit?: number +} + +/** + * banque_heure_staff upsert + */ +export type banque_heure_staffUpsertArgs = { + /** + * Select specific fields to fetch from the banque_heure_staff + */ + select?: Prisma.banque_heure_staffSelect | null + /** + * Omit specific fields from the banque_heure_staff + */ + omit?: Prisma.banque_heure_staffOmit | null + /** + * The filter to search for the banque_heure_staff to update in case it exists. + */ + where: Prisma.banque_heure_staffWhereUniqueInput + /** + * In case the banque_heure_staff found by the `where` argument doesn't exist, create a new banque_heure_staff with this data. + */ + create: Prisma.XOR + /** + * In case the banque_heure_staff was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * banque_heure_staff delete + */ +export type banque_heure_staffDeleteArgs = { + /** + * Select specific fields to fetch from the banque_heure_staff + */ + select?: Prisma.banque_heure_staffSelect | null + /** + * Omit specific fields from the banque_heure_staff + */ + omit?: Prisma.banque_heure_staffOmit | null + /** + * Filter which banque_heure_staff to delete. + */ + where: Prisma.banque_heure_staffWhereUniqueInput +} + +/** + * banque_heure_staff deleteMany + */ +export type banque_heure_staffDeleteManyArgs = { + /** + * Filter which banque_heure_staffs to delete + */ + where?: Prisma.banque_heure_staffWhereInput + /** + * Limit how many banque_heure_staffs to delete. + */ + limit?: number +} + +/** + * banque_heure_staff without action + */ +export type banque_heure_staffDefaultArgs = { + /** + * Select specific fields to fetch from the banque_heure_staff + */ + select?: Prisma.banque_heure_staffSelect | null + /** + * Omit specific fields from the banque_heure_staff + */ + omit?: Prisma.banque_heure_staffOmit | null +} diff --git a/prisma/generated/mariadb/models/bon_travail.ts b/prisma/generated/mariadb/models/bon_travail.ts new file mode 100644 index 0000000..dd6fd4e --- /dev/null +++ b/prisma/generated/mariadb/models/bon_travail.ts @@ -0,0 +1,1369 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `bon_travail` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model bon_travail + * + */ +export type bon_travailModel = runtime.Types.Result.DefaultSelection + +export type AggregateBon_travail = { + _count: Bon_travailCountAggregateOutputType | null + _avg: Bon_travailAvgAggregateOutputType | null + _sum: Bon_travailSumAggregateOutputType | null + _min: Bon_travailMinAggregateOutputType | null + _max: Bon_travailMaxAggregateOutputType | null +} + +export type Bon_travailAvgAggregateOutputType = { + id: number | null + date: number | null + account_id: number | null + tech1: number | null + tech2: number | null + subtotal: runtime.Decimal | null + tps: runtime.Decimal | null + tvq: runtime.Decimal | null + total: runtime.Decimal | null +} + +export type Bon_travailSumAggregateOutputType = { + id: number | null + date: bigint | null + account_id: number | null + tech1: number | null + tech2: number | null + subtotal: runtime.Decimal | null + tps: runtime.Decimal | null + tvq: runtime.Decimal | null + total: runtime.Decimal | null +} + +export type Bon_travailMinAggregateOutputType = { + id: number | null + date: bigint | null + account_id: number | null + tech1: number | null + heure_arrive_t1: string | null + heure_depart_t1: string | null + tech2: number | null + heure_arrive_t2: string | null + heure_depart_t2: string | null + note: string | null + subtotal: runtime.Decimal | null + tps: runtime.Decimal | null + tvq: runtime.Decimal | null + total: runtime.Decimal | null +} + +export type Bon_travailMaxAggregateOutputType = { + id: number | null + date: bigint | null + account_id: number | null + tech1: number | null + heure_arrive_t1: string | null + heure_depart_t1: string | null + tech2: number | null + heure_arrive_t2: string | null + heure_depart_t2: string | null + note: string | null + subtotal: runtime.Decimal | null + tps: runtime.Decimal | null + tvq: runtime.Decimal | null + total: runtime.Decimal | null +} + +export type Bon_travailCountAggregateOutputType = { + id: number + date: number + account_id: number + tech1: number + heure_arrive_t1: number + heure_depart_t1: number + tech2: number + heure_arrive_t2: number + heure_depart_t2: number + note: number + subtotal: number + tps: number + tvq: number + total: number + _all: number +} + + +export type Bon_travailAvgAggregateInputType = { + id?: true + date?: true + account_id?: true + tech1?: true + tech2?: true + subtotal?: true + tps?: true + tvq?: true + total?: true +} + +export type Bon_travailSumAggregateInputType = { + id?: true + date?: true + account_id?: true + tech1?: true + tech2?: true + subtotal?: true + tps?: true + tvq?: true + total?: true +} + +export type Bon_travailMinAggregateInputType = { + id?: true + date?: true + account_id?: true + tech1?: true + heure_arrive_t1?: true + heure_depart_t1?: true + tech2?: true + heure_arrive_t2?: true + heure_depart_t2?: true + note?: true + subtotal?: true + tps?: true + tvq?: true + total?: true +} + +export type Bon_travailMaxAggregateInputType = { + id?: true + date?: true + account_id?: true + tech1?: true + heure_arrive_t1?: true + heure_depart_t1?: true + tech2?: true + heure_arrive_t2?: true + heure_depart_t2?: true + note?: true + subtotal?: true + tps?: true + tvq?: true + total?: true +} + +export type Bon_travailCountAggregateInputType = { + id?: true + date?: true + account_id?: true + tech1?: true + heure_arrive_t1?: true + heure_depart_t1?: true + tech2?: true + heure_arrive_t2?: true + heure_depart_t2?: true + note?: true + subtotal?: true + tps?: true + tvq?: true + total?: true + _all?: true +} + +export type Bon_travailAggregateArgs = { + /** + * Filter which bon_travail to aggregate. + */ + where?: Prisma.bon_travailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of bon_travails to fetch. + */ + orderBy?: Prisma.bon_travailOrderByWithRelationInput | Prisma.bon_travailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.bon_travailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` bon_travails 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` bon_travails. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned bon_travails + **/ + _count?: true | Bon_travailCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Bon_travailAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Bon_travailSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Bon_travailMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Bon_travailMaxAggregateInputType +} + +export type GetBon_travailAggregateType = { + [P in keyof T & keyof AggregateBon_travail]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type bon_travailGroupByArgs = { + where?: Prisma.bon_travailWhereInput + orderBy?: Prisma.bon_travailOrderByWithAggregationInput | Prisma.bon_travailOrderByWithAggregationInput[] + by: Prisma.Bon_travailScalarFieldEnum[] | Prisma.Bon_travailScalarFieldEnum + having?: Prisma.bon_travailScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Bon_travailCountAggregateInputType | true + _avg?: Bon_travailAvgAggregateInputType + _sum?: Bon_travailSumAggregateInputType + _min?: Bon_travailMinAggregateInputType + _max?: Bon_travailMaxAggregateInputType +} + +export type Bon_travailGroupByOutputType = { + id: number + date: bigint | null + account_id: number + tech1: number | null + heure_arrive_t1: string | null + heure_depart_t1: string | null + tech2: number | null + heure_arrive_t2: string | null + heure_depart_t2: string | null + note: string | null + subtotal: runtime.Decimal | null + tps: runtime.Decimal | null + tvq: runtime.Decimal | null + total: runtime.Decimal | null + _count: Bon_travailCountAggregateOutputType | null + _avg: Bon_travailAvgAggregateOutputType | null + _sum: Bon_travailSumAggregateOutputType | null + _min: Bon_travailMinAggregateOutputType | null + _max: Bon_travailMaxAggregateOutputType | null +} + +type GetBon_travailGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Bon_travailGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type bon_travailWhereInput = { + AND?: Prisma.bon_travailWhereInput | Prisma.bon_travailWhereInput[] + OR?: Prisma.bon_travailWhereInput[] + NOT?: Prisma.bon_travailWhereInput | Prisma.bon_travailWhereInput[] + id?: Prisma.IntFilter<"bon_travail"> | number + date?: Prisma.BigIntNullableFilter<"bon_travail"> | bigint | number | null + account_id?: Prisma.IntFilter<"bon_travail"> | number + tech1?: Prisma.IntNullableFilter<"bon_travail"> | number | null + heure_arrive_t1?: Prisma.StringNullableFilter<"bon_travail"> | string | null + heure_depart_t1?: Prisma.StringNullableFilter<"bon_travail"> | string | null + tech2?: Prisma.IntNullableFilter<"bon_travail"> | number | null + heure_arrive_t2?: Prisma.StringNullableFilter<"bon_travail"> | string | null + heure_depart_t2?: Prisma.StringNullableFilter<"bon_travail"> | string | null + note?: Prisma.StringNullableFilter<"bon_travail"> | string | null + subtotal?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + tps?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + tvq?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + total?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type bon_travailOrderByWithRelationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + account_id?: Prisma.SortOrder + tech1?: Prisma.SortOrderInput | Prisma.SortOrder + heure_arrive_t1?: Prisma.SortOrderInput | Prisma.SortOrder + heure_depart_t1?: Prisma.SortOrderInput | Prisma.SortOrder + tech2?: Prisma.SortOrderInput | Prisma.SortOrder + heure_arrive_t2?: Prisma.SortOrderInput | Prisma.SortOrder + heure_depart_t2?: Prisma.SortOrderInput | Prisma.SortOrder + note?: Prisma.SortOrderInput | Prisma.SortOrder + subtotal?: Prisma.SortOrderInput | Prisma.SortOrder + tps?: Prisma.SortOrderInput | Prisma.SortOrder + tvq?: Prisma.SortOrderInput | Prisma.SortOrder + total?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.bon_travailOrderByRelevanceInput +} + +export type bon_travailWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.bon_travailWhereInput | Prisma.bon_travailWhereInput[] + OR?: Prisma.bon_travailWhereInput[] + NOT?: Prisma.bon_travailWhereInput | Prisma.bon_travailWhereInput[] + date?: Prisma.BigIntNullableFilter<"bon_travail"> | bigint | number | null + account_id?: Prisma.IntFilter<"bon_travail"> | number + tech1?: Prisma.IntNullableFilter<"bon_travail"> | number | null + heure_arrive_t1?: Prisma.StringNullableFilter<"bon_travail"> | string | null + heure_depart_t1?: Prisma.StringNullableFilter<"bon_travail"> | string | null + tech2?: Prisma.IntNullableFilter<"bon_travail"> | number | null + heure_arrive_t2?: Prisma.StringNullableFilter<"bon_travail"> | string | null + heure_depart_t2?: Prisma.StringNullableFilter<"bon_travail"> | string | null + note?: Prisma.StringNullableFilter<"bon_travail"> | string | null + subtotal?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + tps?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + tvq?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + total?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null +}, "id"> + +export type bon_travailOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + account_id?: Prisma.SortOrder + tech1?: Prisma.SortOrderInput | Prisma.SortOrder + heure_arrive_t1?: Prisma.SortOrderInput | Prisma.SortOrder + heure_depart_t1?: Prisma.SortOrderInput | Prisma.SortOrder + tech2?: Prisma.SortOrderInput | Prisma.SortOrder + heure_arrive_t2?: Prisma.SortOrderInput | Prisma.SortOrder + heure_depart_t2?: Prisma.SortOrderInput | Prisma.SortOrder + note?: Prisma.SortOrderInput | Prisma.SortOrder + subtotal?: Prisma.SortOrderInput | Prisma.SortOrder + tps?: Prisma.SortOrderInput | Prisma.SortOrder + tvq?: Prisma.SortOrderInput | Prisma.SortOrder + total?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.bon_travailCountOrderByAggregateInput + _avg?: Prisma.bon_travailAvgOrderByAggregateInput + _max?: Prisma.bon_travailMaxOrderByAggregateInput + _min?: Prisma.bon_travailMinOrderByAggregateInput + _sum?: Prisma.bon_travailSumOrderByAggregateInput +} + +export type bon_travailScalarWhereWithAggregatesInput = { + AND?: Prisma.bon_travailScalarWhereWithAggregatesInput | Prisma.bon_travailScalarWhereWithAggregatesInput[] + OR?: Prisma.bon_travailScalarWhereWithAggregatesInput[] + NOT?: Prisma.bon_travailScalarWhereWithAggregatesInput | Prisma.bon_travailScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"bon_travail"> | number + date?: Prisma.BigIntNullableWithAggregatesFilter<"bon_travail"> | bigint | number | null + account_id?: Prisma.IntWithAggregatesFilter<"bon_travail"> | number + tech1?: Prisma.IntNullableWithAggregatesFilter<"bon_travail"> | number | null + heure_arrive_t1?: Prisma.StringNullableWithAggregatesFilter<"bon_travail"> | string | null + heure_depart_t1?: Prisma.StringNullableWithAggregatesFilter<"bon_travail"> | string | null + tech2?: Prisma.IntNullableWithAggregatesFilter<"bon_travail"> | number | null + heure_arrive_t2?: Prisma.StringNullableWithAggregatesFilter<"bon_travail"> | string | null + heure_depart_t2?: Prisma.StringNullableWithAggregatesFilter<"bon_travail"> | string | null + note?: Prisma.StringNullableWithAggregatesFilter<"bon_travail"> | string | null + subtotal?: Prisma.DecimalNullableWithAggregatesFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + tps?: Prisma.DecimalNullableWithAggregatesFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + tvq?: Prisma.DecimalNullableWithAggregatesFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + total?: Prisma.DecimalNullableWithAggregatesFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type bon_travailCreateInput = { + date?: bigint | number | null + account_id: number + tech1?: number | null + heure_arrive_t1?: string | null + heure_depart_t1?: string | null + tech2?: number | null + heure_arrive_t2?: string | null + heure_depart_t2?: string | null + note?: string | null + subtotal?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + tps?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + tvq?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + total?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type bon_travailUncheckedCreateInput = { + id?: number + date?: bigint | number | null + account_id: number + tech1?: number | null + heure_arrive_t1?: string | null + heure_depart_t1?: string | null + tech2?: number | null + heure_arrive_t2?: string | null + heure_depart_t2?: string | null + note?: string | null + subtotal?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + tps?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + tvq?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + total?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type bon_travailUpdateInput = { + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + account_id?: Prisma.IntFieldUpdateOperationsInput | number + tech1?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + heure_arrive_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + heure_depart_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tech2?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + heure_arrive_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + heure_depart_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + subtotal?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + tps?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + tvq?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + total?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type bon_travailUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + account_id?: Prisma.IntFieldUpdateOperationsInput | number + tech1?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + heure_arrive_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + heure_depart_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tech2?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + heure_arrive_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + heure_depart_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + subtotal?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + tps?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + tvq?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + total?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type bon_travailCreateManyInput = { + id?: number + date?: bigint | number | null + account_id: number + tech1?: number | null + heure_arrive_t1?: string | null + heure_depart_t1?: string | null + tech2?: number | null + heure_arrive_t2?: string | null + heure_depart_t2?: string | null + note?: string | null + subtotal?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + tps?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + tvq?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + total?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type bon_travailUpdateManyMutationInput = { + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + account_id?: Prisma.IntFieldUpdateOperationsInput | number + tech1?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + heure_arrive_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + heure_depart_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tech2?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + heure_arrive_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + heure_depart_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + subtotal?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + tps?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + tvq?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + total?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type bon_travailUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + account_id?: Prisma.IntFieldUpdateOperationsInput | number + tech1?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + heure_arrive_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + heure_depart_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tech2?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + heure_arrive_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + heure_depart_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + subtotal?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + tps?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + tvq?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + total?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type bon_travailOrderByRelevanceInput = { + fields: Prisma.bon_travailOrderByRelevanceFieldEnum | Prisma.bon_travailOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type bon_travailCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + tech1?: Prisma.SortOrder + heure_arrive_t1?: Prisma.SortOrder + heure_depart_t1?: Prisma.SortOrder + tech2?: Prisma.SortOrder + heure_arrive_t2?: Prisma.SortOrder + heure_depart_t2?: Prisma.SortOrder + note?: Prisma.SortOrder + subtotal?: Prisma.SortOrder + tps?: Prisma.SortOrder + tvq?: Prisma.SortOrder + total?: Prisma.SortOrder +} + +export type bon_travailAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + tech1?: Prisma.SortOrder + tech2?: Prisma.SortOrder + subtotal?: Prisma.SortOrder + tps?: Prisma.SortOrder + tvq?: Prisma.SortOrder + total?: Prisma.SortOrder +} + +export type bon_travailMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + tech1?: Prisma.SortOrder + heure_arrive_t1?: Prisma.SortOrder + heure_depart_t1?: Prisma.SortOrder + tech2?: Prisma.SortOrder + heure_arrive_t2?: Prisma.SortOrder + heure_depart_t2?: Prisma.SortOrder + note?: Prisma.SortOrder + subtotal?: Prisma.SortOrder + tps?: Prisma.SortOrder + tvq?: Prisma.SortOrder + total?: Prisma.SortOrder +} + +export type bon_travailMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + tech1?: Prisma.SortOrder + heure_arrive_t1?: Prisma.SortOrder + heure_depart_t1?: Prisma.SortOrder + tech2?: Prisma.SortOrder + heure_arrive_t2?: Prisma.SortOrder + heure_depart_t2?: Prisma.SortOrder + note?: Prisma.SortOrder + subtotal?: Prisma.SortOrder + tps?: Prisma.SortOrder + tvq?: Prisma.SortOrder + total?: Prisma.SortOrder +} + +export type bon_travailSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + tech1?: Prisma.SortOrder + tech2?: Prisma.SortOrder + subtotal?: Prisma.SortOrder + tps?: Prisma.SortOrder + tvq?: Prisma.SortOrder + total?: Prisma.SortOrder +} + +export type NullableDecimalFieldUpdateOperationsInput = { + set?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + increment?: runtime.Decimal | runtime.DecimalJsLike | number | string + decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string + multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string + divide?: runtime.Decimal | runtime.DecimalJsLike | number | string +} + + + +export type bon_travailSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date?: boolean + account_id?: boolean + tech1?: boolean + heure_arrive_t1?: boolean + heure_depart_t1?: boolean + tech2?: boolean + heure_arrive_t2?: boolean + heure_depart_t2?: boolean + note?: boolean + subtotal?: boolean + tps?: boolean + tvq?: boolean + total?: boolean +}, ExtArgs["result"]["bon_travail"]> + + + +export type bon_travailSelectScalar = { + id?: boolean + date?: boolean + account_id?: boolean + tech1?: boolean + heure_arrive_t1?: boolean + heure_depart_t1?: boolean + tech2?: boolean + heure_arrive_t2?: boolean + heure_depart_t2?: boolean + note?: boolean + subtotal?: boolean + tps?: boolean + tvq?: boolean + total?: boolean +} + +export type bon_travailOmit = runtime.Types.Extensions.GetOmit<"id" | "date" | "account_id" | "tech1" | "heure_arrive_t1" | "heure_depart_t1" | "tech2" | "heure_arrive_t2" | "heure_depart_t2" | "note" | "subtotal" | "tps" | "tvq" | "total", ExtArgs["result"]["bon_travail"]> + +export type $bon_travailPayload = { + name: "bon_travail" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + date: bigint | null + account_id: number + tech1: number | null + heure_arrive_t1: string | null + heure_depart_t1: string | null + tech2: number | null + heure_arrive_t2: string | null + heure_depart_t2: string | null + note: string | null + subtotal: runtime.Decimal | null + tps: runtime.Decimal | null + tvq: runtime.Decimal | null + total: runtime.Decimal | null + }, ExtArgs["result"]["bon_travail"]> + composites: {} +} + +export type bon_travailGetPayload = runtime.Types.Result.GetResult + +export type bon_travailCountArgs = + Omit & { + select?: Bon_travailCountAggregateInputType | true + } + +export interface bon_travailDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['bon_travail'], meta: { name: 'bon_travail' } } + /** + * Find zero or one Bon_travail that matches the filter. + * @param {bon_travailFindUniqueArgs} args - Arguments to find a Bon_travail + * @example + * // Get one Bon_travail + * const bon_travail = await prisma.bon_travail.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Bon_travail that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {bon_travailFindUniqueOrThrowArgs} args - Arguments to find a Bon_travail + * @example + * // Get one Bon_travail + * const bon_travail = await prisma.bon_travail.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Bon_travail 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 {bon_travailFindFirstArgs} args - Arguments to find a Bon_travail + * @example + * // Get one Bon_travail + * const bon_travail = await prisma.bon_travail.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Bon_travail 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 {bon_travailFindFirstOrThrowArgs} args - Arguments to find a Bon_travail + * @example + * // Get one Bon_travail + * const bon_travail = await prisma.bon_travail.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Bon_travails 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 {bon_travailFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Bon_travails + * const bon_travails = await prisma.bon_travail.findMany() + * + * // Get first 10 Bon_travails + * const bon_travails = await prisma.bon_travail.findMany({ take: 10 }) + * + * // Only select the `id` + * const bon_travailWithIdOnly = await prisma.bon_travail.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Bon_travail. + * @param {bon_travailCreateArgs} args - Arguments to create a Bon_travail. + * @example + * // Create one Bon_travail + * const Bon_travail = await prisma.bon_travail.create({ + * data: { + * // ... data to create a Bon_travail + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Bon_travails. + * @param {bon_travailCreateManyArgs} args - Arguments to create many Bon_travails. + * @example + * // Create many Bon_travails + * const bon_travail = await prisma.bon_travail.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Bon_travail. + * @param {bon_travailDeleteArgs} args - Arguments to delete one Bon_travail. + * @example + * // Delete one Bon_travail + * const Bon_travail = await prisma.bon_travail.delete({ + * where: { + * // ... filter to delete one Bon_travail + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Bon_travail. + * @param {bon_travailUpdateArgs} args - Arguments to update one Bon_travail. + * @example + * // Update one Bon_travail + * const bon_travail = await prisma.bon_travail.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Bon_travails. + * @param {bon_travailDeleteManyArgs} args - Arguments to filter Bon_travails to delete. + * @example + * // Delete a few Bon_travails + * const { count } = await prisma.bon_travail.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Bon_travails. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {bon_travailUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Bon_travails + * const bon_travail = await prisma.bon_travail.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Bon_travail. + * @param {bon_travailUpsertArgs} args - Arguments to update or create a Bon_travail. + * @example + * // Update or create a Bon_travail + * const bon_travail = await prisma.bon_travail.upsert({ + * create: { + * // ... data to create a Bon_travail + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Bon_travail we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Bon_travails. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {bon_travailCountArgs} args - Arguments to filter Bon_travails to count. + * @example + * // Count the number of Bon_travails + * const count = await prisma.bon_travail.count({ + * where: { + * // ... the filter for the Bon_travails 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 Bon_travail. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Bon_travailAggregateArgs} 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 Bon_travail. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {bon_travailGroupByArgs} 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 bon_travailGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: bon_travailGroupByArgs['orderBy'] } + : { orderBy?: bon_travailGroupByArgs['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 ? GetBon_travailGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the bon_travail model + */ +readonly fields: bon_travailFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for bon_travail. + * 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__bon_travailClient 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 bon_travail model + */ +export interface bon_travailFieldRefs { + readonly id: Prisma.FieldRef<"bon_travail", 'Int'> + readonly date: Prisma.FieldRef<"bon_travail", 'BigInt'> + readonly account_id: Prisma.FieldRef<"bon_travail", 'Int'> + readonly tech1: Prisma.FieldRef<"bon_travail", 'Int'> + readonly heure_arrive_t1: Prisma.FieldRef<"bon_travail", 'String'> + readonly heure_depart_t1: Prisma.FieldRef<"bon_travail", 'String'> + readonly tech2: Prisma.FieldRef<"bon_travail", 'Int'> + readonly heure_arrive_t2: Prisma.FieldRef<"bon_travail", 'String'> + readonly heure_depart_t2: Prisma.FieldRef<"bon_travail", 'String'> + readonly note: Prisma.FieldRef<"bon_travail", 'String'> + readonly subtotal: Prisma.FieldRef<"bon_travail", 'Decimal'> + readonly tps: Prisma.FieldRef<"bon_travail", 'Decimal'> + readonly tvq: Prisma.FieldRef<"bon_travail", 'Decimal'> + readonly total: Prisma.FieldRef<"bon_travail", 'Decimal'> +} + + +// Custom InputTypes +/** + * bon_travail findUnique + */ +export type bon_travailFindUniqueArgs = { + /** + * Select specific fields to fetch from the bon_travail + */ + select?: Prisma.bon_travailSelect | null + /** + * Omit specific fields from the bon_travail + */ + omit?: Prisma.bon_travailOmit | null + /** + * Filter, which bon_travail to fetch. + */ + where: Prisma.bon_travailWhereUniqueInput +} + +/** + * bon_travail findUniqueOrThrow + */ +export type bon_travailFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the bon_travail + */ + select?: Prisma.bon_travailSelect | null + /** + * Omit specific fields from the bon_travail + */ + omit?: Prisma.bon_travailOmit | null + /** + * Filter, which bon_travail to fetch. + */ + where: Prisma.bon_travailWhereUniqueInput +} + +/** + * bon_travail findFirst + */ +export type bon_travailFindFirstArgs = { + /** + * Select specific fields to fetch from the bon_travail + */ + select?: Prisma.bon_travailSelect | null + /** + * Omit specific fields from the bon_travail + */ + omit?: Prisma.bon_travailOmit | null + /** + * Filter, which bon_travail to fetch. + */ + where?: Prisma.bon_travailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of bon_travails to fetch. + */ + orderBy?: Prisma.bon_travailOrderByWithRelationInput | Prisma.bon_travailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for bon_travails. + */ + cursor?: Prisma.bon_travailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` bon_travails 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` bon_travails. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of bon_travails. + */ + distinct?: Prisma.Bon_travailScalarFieldEnum | Prisma.Bon_travailScalarFieldEnum[] +} + +/** + * bon_travail findFirstOrThrow + */ +export type bon_travailFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the bon_travail + */ + select?: Prisma.bon_travailSelect | null + /** + * Omit specific fields from the bon_travail + */ + omit?: Prisma.bon_travailOmit | null + /** + * Filter, which bon_travail to fetch. + */ + where?: Prisma.bon_travailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of bon_travails to fetch. + */ + orderBy?: Prisma.bon_travailOrderByWithRelationInput | Prisma.bon_travailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for bon_travails. + */ + cursor?: Prisma.bon_travailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` bon_travails 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` bon_travails. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of bon_travails. + */ + distinct?: Prisma.Bon_travailScalarFieldEnum | Prisma.Bon_travailScalarFieldEnum[] +} + +/** + * bon_travail findMany + */ +export type bon_travailFindManyArgs = { + /** + * Select specific fields to fetch from the bon_travail + */ + select?: Prisma.bon_travailSelect | null + /** + * Omit specific fields from the bon_travail + */ + omit?: Prisma.bon_travailOmit | null + /** + * Filter, which bon_travails to fetch. + */ + where?: Prisma.bon_travailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of bon_travails to fetch. + */ + orderBy?: Prisma.bon_travailOrderByWithRelationInput | Prisma.bon_travailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing bon_travails. + */ + cursor?: Prisma.bon_travailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` bon_travails 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` bon_travails. + */ + skip?: number + distinct?: Prisma.Bon_travailScalarFieldEnum | Prisma.Bon_travailScalarFieldEnum[] +} + +/** + * bon_travail create + */ +export type bon_travailCreateArgs = { + /** + * Select specific fields to fetch from the bon_travail + */ + select?: Prisma.bon_travailSelect | null + /** + * Omit specific fields from the bon_travail + */ + omit?: Prisma.bon_travailOmit | null + /** + * The data needed to create a bon_travail. + */ + data: Prisma.XOR +} + +/** + * bon_travail createMany + */ +export type bon_travailCreateManyArgs = { + /** + * The data used to create many bon_travails. + */ + data: Prisma.bon_travailCreateManyInput | Prisma.bon_travailCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * bon_travail update + */ +export type bon_travailUpdateArgs = { + /** + * Select specific fields to fetch from the bon_travail + */ + select?: Prisma.bon_travailSelect | null + /** + * Omit specific fields from the bon_travail + */ + omit?: Prisma.bon_travailOmit | null + /** + * The data needed to update a bon_travail. + */ + data: Prisma.XOR + /** + * Choose, which bon_travail to update. + */ + where: Prisma.bon_travailWhereUniqueInput +} + +/** + * bon_travail updateMany + */ +export type bon_travailUpdateManyArgs = { + /** + * The data used to update bon_travails. + */ + data: Prisma.XOR + /** + * Filter which bon_travails to update + */ + where?: Prisma.bon_travailWhereInput + /** + * Limit how many bon_travails to update. + */ + limit?: number +} + +/** + * bon_travail upsert + */ +export type bon_travailUpsertArgs = { + /** + * Select specific fields to fetch from the bon_travail + */ + select?: Prisma.bon_travailSelect | null + /** + * Omit specific fields from the bon_travail + */ + omit?: Prisma.bon_travailOmit | null + /** + * The filter to search for the bon_travail to update in case it exists. + */ + where: Prisma.bon_travailWhereUniqueInput + /** + * In case the bon_travail found by the `where` argument doesn't exist, create a new bon_travail with this data. + */ + create: Prisma.XOR + /** + * In case the bon_travail was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * bon_travail delete + */ +export type bon_travailDeleteArgs = { + /** + * Select specific fields to fetch from the bon_travail + */ + select?: Prisma.bon_travailSelect | null + /** + * Omit specific fields from the bon_travail + */ + omit?: Prisma.bon_travailOmit | null + /** + * Filter which bon_travail to delete. + */ + where: Prisma.bon_travailWhereUniqueInput +} + +/** + * bon_travail deleteMany + */ +export type bon_travailDeleteManyArgs = { + /** + * Filter which bon_travails to delete + */ + where?: Prisma.bon_travailWhereInput + /** + * Limit how many bon_travails to delete. + */ + limit?: number +} + +/** + * bon_travail without action + */ +export type bon_travailDefaultArgs = { + /** + * Select specific fields to fetch from the bon_travail + */ + select?: Prisma.bon_travailSelect | null + /** + * Omit specific fields from the bon_travail + */ + omit?: Prisma.bon_travailOmit | null +} diff --git a/prisma/generated/mariadb/models/bon_travail_item.ts b/prisma/generated/mariadb/models/bon_travail_item.ts new file mode 100644 index 0000000..5c80482 --- /dev/null +++ b/prisma/generated/mariadb/models/bon_travail_item.ts @@ -0,0 +1,1129 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `bon_travail_item` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model bon_travail_item + * + */ +export type bon_travail_itemModel = runtime.Types.Result.DefaultSelection + +export type AggregateBon_travail_item = { + _count: Bon_travail_itemCountAggregateOutputType | null + _avg: Bon_travail_itemAvgAggregateOutputType | null + _sum: Bon_travail_itemSumAggregateOutputType | null + _min: Bon_travail_itemMinAggregateOutputType | null + _max: Bon_travail_itemMaxAggregateOutputType | null +} + +export type Bon_travail_itemAvgAggregateOutputType = { + id: number | null + bon_id: number | null + product_id: number | null + qte: number | null + price: runtime.Decimal | null +} + +export type Bon_travail_itemSumAggregateOutputType = { + id: number | null + bon_id: number | null + product_id: number | null + qte: number | null + price: runtime.Decimal | null +} + +export type Bon_travail_itemMinAggregateOutputType = { + id: number | null + bon_id: number | null + product_id: number | null + qte: number | null + price: runtime.Decimal | null + desc: string | null +} + +export type Bon_travail_itemMaxAggregateOutputType = { + id: number | null + bon_id: number | null + product_id: number | null + qte: number | null + price: runtime.Decimal | null + desc: string | null +} + +export type Bon_travail_itemCountAggregateOutputType = { + id: number + bon_id: number + product_id: number + qte: number + price: number + desc: number + _all: number +} + + +export type Bon_travail_itemAvgAggregateInputType = { + id?: true + bon_id?: true + product_id?: true + qte?: true + price?: true +} + +export type Bon_travail_itemSumAggregateInputType = { + id?: true + bon_id?: true + product_id?: true + qte?: true + price?: true +} + +export type Bon_travail_itemMinAggregateInputType = { + id?: true + bon_id?: true + product_id?: true + qte?: true + price?: true + desc?: true +} + +export type Bon_travail_itemMaxAggregateInputType = { + id?: true + bon_id?: true + product_id?: true + qte?: true + price?: true + desc?: true +} + +export type Bon_travail_itemCountAggregateInputType = { + id?: true + bon_id?: true + product_id?: true + qte?: true + price?: true + desc?: true + _all?: true +} + +export type Bon_travail_itemAggregateArgs = { + /** + * Filter which bon_travail_item to aggregate. + */ + where?: Prisma.bon_travail_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of bon_travail_items to fetch. + */ + orderBy?: Prisma.bon_travail_itemOrderByWithRelationInput | Prisma.bon_travail_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.bon_travail_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` bon_travail_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` bon_travail_items. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned bon_travail_items + **/ + _count?: true | Bon_travail_itemCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Bon_travail_itemAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Bon_travail_itemSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Bon_travail_itemMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Bon_travail_itemMaxAggregateInputType +} + +export type GetBon_travail_itemAggregateType = { + [P in keyof T & keyof AggregateBon_travail_item]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type bon_travail_itemGroupByArgs = { + where?: Prisma.bon_travail_itemWhereInput + orderBy?: Prisma.bon_travail_itemOrderByWithAggregationInput | Prisma.bon_travail_itemOrderByWithAggregationInput[] + by: Prisma.Bon_travail_itemScalarFieldEnum[] | Prisma.Bon_travail_itemScalarFieldEnum + having?: Prisma.bon_travail_itemScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Bon_travail_itemCountAggregateInputType | true + _avg?: Bon_travail_itemAvgAggregateInputType + _sum?: Bon_travail_itemSumAggregateInputType + _min?: Bon_travail_itemMinAggregateInputType + _max?: Bon_travail_itemMaxAggregateInputType +} + +export type Bon_travail_itemGroupByOutputType = { + id: number + bon_id: number + product_id: number + qte: number + price: runtime.Decimal + desc: string + _count: Bon_travail_itemCountAggregateOutputType | null + _avg: Bon_travail_itemAvgAggregateOutputType | null + _sum: Bon_travail_itemSumAggregateOutputType | null + _min: Bon_travail_itemMinAggregateOutputType | null + _max: Bon_travail_itemMaxAggregateOutputType | null +} + +type GetBon_travail_itemGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Bon_travail_itemGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type bon_travail_itemWhereInput = { + AND?: Prisma.bon_travail_itemWhereInput | Prisma.bon_travail_itemWhereInput[] + OR?: Prisma.bon_travail_itemWhereInput[] + NOT?: Prisma.bon_travail_itemWhereInput | Prisma.bon_travail_itemWhereInput[] + id?: Prisma.IntFilter<"bon_travail_item"> | number + bon_id?: Prisma.IntFilter<"bon_travail_item"> | number + product_id?: Prisma.IntFilter<"bon_travail_item"> | number + qte?: Prisma.IntFilter<"bon_travail_item"> | number + price?: Prisma.DecimalFilter<"bon_travail_item"> | runtime.Decimal | runtime.DecimalJsLike | number | string + desc?: Prisma.StringFilter<"bon_travail_item"> | string +} + +export type bon_travail_itemOrderByWithRelationInput = { + id?: Prisma.SortOrder + bon_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + qte?: Prisma.SortOrder + price?: Prisma.SortOrder + desc?: Prisma.SortOrder + _relevance?: Prisma.bon_travail_itemOrderByRelevanceInput +} + +export type bon_travail_itemWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.bon_travail_itemWhereInput | Prisma.bon_travail_itemWhereInput[] + OR?: Prisma.bon_travail_itemWhereInput[] + NOT?: Prisma.bon_travail_itemWhereInput | Prisma.bon_travail_itemWhereInput[] + bon_id?: Prisma.IntFilter<"bon_travail_item"> | number + product_id?: Prisma.IntFilter<"bon_travail_item"> | number + qte?: Prisma.IntFilter<"bon_travail_item"> | number + price?: Prisma.DecimalFilter<"bon_travail_item"> | runtime.Decimal | runtime.DecimalJsLike | number | string + desc?: Prisma.StringFilter<"bon_travail_item"> | string +}, "id"> + +export type bon_travail_itemOrderByWithAggregationInput = { + id?: Prisma.SortOrder + bon_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + qte?: Prisma.SortOrder + price?: Prisma.SortOrder + desc?: Prisma.SortOrder + _count?: Prisma.bon_travail_itemCountOrderByAggregateInput + _avg?: Prisma.bon_travail_itemAvgOrderByAggregateInput + _max?: Prisma.bon_travail_itemMaxOrderByAggregateInput + _min?: Prisma.bon_travail_itemMinOrderByAggregateInput + _sum?: Prisma.bon_travail_itemSumOrderByAggregateInput +} + +export type bon_travail_itemScalarWhereWithAggregatesInput = { + AND?: Prisma.bon_travail_itemScalarWhereWithAggregatesInput | Prisma.bon_travail_itemScalarWhereWithAggregatesInput[] + OR?: Prisma.bon_travail_itemScalarWhereWithAggregatesInput[] + NOT?: Prisma.bon_travail_itemScalarWhereWithAggregatesInput | Prisma.bon_travail_itemScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"bon_travail_item"> | number + bon_id?: Prisma.IntWithAggregatesFilter<"bon_travail_item"> | number + product_id?: Prisma.IntWithAggregatesFilter<"bon_travail_item"> | number + qte?: Prisma.IntWithAggregatesFilter<"bon_travail_item"> | number + price?: Prisma.DecimalWithAggregatesFilter<"bon_travail_item"> | runtime.Decimal | runtime.DecimalJsLike | number | string + desc?: Prisma.StringWithAggregatesFilter<"bon_travail_item"> | string +} + +export type bon_travail_itemCreateInput = { + bon_id: number + product_id: number + qte: number + price: runtime.Decimal | runtime.DecimalJsLike | number | string + desc: string +} + +export type bon_travail_itemUncheckedCreateInput = { + id?: number + bon_id: number + product_id: number + qte: number + price: runtime.Decimal | runtime.DecimalJsLike | number | string + desc: string +} + +export type bon_travail_itemUpdateInput = { + bon_id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.IntFieldUpdateOperationsInput | number + qte?: Prisma.IntFieldUpdateOperationsInput | number + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + desc?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type bon_travail_itemUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + bon_id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.IntFieldUpdateOperationsInput | number + qte?: Prisma.IntFieldUpdateOperationsInput | number + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + desc?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type bon_travail_itemCreateManyInput = { + id?: number + bon_id: number + product_id: number + qte: number + price: runtime.Decimal | runtime.DecimalJsLike | number | string + desc: string +} + +export type bon_travail_itemUpdateManyMutationInput = { + bon_id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.IntFieldUpdateOperationsInput | number + qte?: Prisma.IntFieldUpdateOperationsInput | number + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + desc?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type bon_travail_itemUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + bon_id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.IntFieldUpdateOperationsInput | number + qte?: Prisma.IntFieldUpdateOperationsInput | number + price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + desc?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type bon_travail_itemOrderByRelevanceInput = { + fields: Prisma.bon_travail_itemOrderByRelevanceFieldEnum | Prisma.bon_travail_itemOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type bon_travail_itemCountOrderByAggregateInput = { + id?: Prisma.SortOrder + bon_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + qte?: Prisma.SortOrder + price?: Prisma.SortOrder + desc?: Prisma.SortOrder +} + +export type bon_travail_itemAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + bon_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + qte?: Prisma.SortOrder + price?: Prisma.SortOrder +} + +export type bon_travail_itemMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + bon_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + qte?: Prisma.SortOrder + price?: Prisma.SortOrder + desc?: Prisma.SortOrder +} + +export type bon_travail_itemMinOrderByAggregateInput = { + id?: Prisma.SortOrder + bon_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + qte?: Prisma.SortOrder + price?: Prisma.SortOrder + desc?: Prisma.SortOrder +} + +export type bon_travail_itemSumOrderByAggregateInput = { + id?: Prisma.SortOrder + bon_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + qte?: Prisma.SortOrder + price?: Prisma.SortOrder +} + + + +export type bon_travail_itemSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + bon_id?: boolean + product_id?: boolean + qte?: boolean + price?: boolean + desc?: boolean +}, ExtArgs["result"]["bon_travail_item"]> + + + +export type bon_travail_itemSelectScalar = { + id?: boolean + bon_id?: boolean + product_id?: boolean + qte?: boolean + price?: boolean + desc?: boolean +} + +export type bon_travail_itemOmit = runtime.Types.Extensions.GetOmit<"id" | "bon_id" | "product_id" | "qte" | "price" | "desc", ExtArgs["result"]["bon_travail_item"]> + +export type $bon_travail_itemPayload = { + name: "bon_travail_item" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + bon_id: number + product_id: number + qte: number + price: runtime.Decimal + desc: string + }, ExtArgs["result"]["bon_travail_item"]> + composites: {} +} + +export type bon_travail_itemGetPayload = runtime.Types.Result.GetResult + +export type bon_travail_itemCountArgs = + Omit & { + select?: Bon_travail_itemCountAggregateInputType | true + } + +export interface bon_travail_itemDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['bon_travail_item'], meta: { name: 'bon_travail_item' } } + /** + * Find zero or one Bon_travail_item that matches the filter. + * @param {bon_travail_itemFindUniqueArgs} args - Arguments to find a Bon_travail_item + * @example + * // Get one Bon_travail_item + * const bon_travail_item = await prisma.bon_travail_item.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travail_itemClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Bon_travail_item that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {bon_travail_itemFindUniqueOrThrowArgs} args - Arguments to find a Bon_travail_item + * @example + * // Get one Bon_travail_item + * const bon_travail_item = await prisma.bon_travail_item.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travail_itemClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Bon_travail_item that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {bon_travail_itemFindFirstArgs} args - Arguments to find a Bon_travail_item + * @example + * // Get one Bon_travail_item + * const bon_travail_item = await prisma.bon_travail_item.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__bon_travail_itemClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Bon_travail_item that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {bon_travail_itemFindFirstOrThrowArgs} args - Arguments to find a Bon_travail_item + * @example + * // Get one Bon_travail_item + * const bon_travail_item = await prisma.bon_travail_item.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__bon_travail_itemClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Bon_travail_items that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {bon_travail_itemFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Bon_travail_items + * const bon_travail_items = await prisma.bon_travail_item.findMany() + * + * // Get first 10 Bon_travail_items + * const bon_travail_items = await prisma.bon_travail_item.findMany({ take: 10 }) + * + * // Only select the `id` + * const bon_travail_itemWithIdOnly = await prisma.bon_travail_item.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Bon_travail_item. + * @param {bon_travail_itemCreateArgs} args - Arguments to create a Bon_travail_item. + * @example + * // Create one Bon_travail_item + * const Bon_travail_item = await prisma.bon_travail_item.create({ + * data: { + * // ... data to create a Bon_travail_item + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travail_itemClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Bon_travail_items. + * @param {bon_travail_itemCreateManyArgs} args - Arguments to create many Bon_travail_items. + * @example + * // Create many Bon_travail_items + * const bon_travail_item = await prisma.bon_travail_item.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Bon_travail_item. + * @param {bon_travail_itemDeleteArgs} args - Arguments to delete one Bon_travail_item. + * @example + * // Delete one Bon_travail_item + * const Bon_travail_item = await prisma.bon_travail_item.delete({ + * where: { + * // ... filter to delete one Bon_travail_item + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travail_itemClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Bon_travail_item. + * @param {bon_travail_itemUpdateArgs} args - Arguments to update one Bon_travail_item. + * @example + * // Update one Bon_travail_item + * const bon_travail_item = await prisma.bon_travail_item.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travail_itemClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Bon_travail_items. + * @param {bon_travail_itemDeleteManyArgs} args - Arguments to filter Bon_travail_items to delete. + * @example + * // Delete a few Bon_travail_items + * const { count } = await prisma.bon_travail_item.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Bon_travail_items. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {bon_travail_itemUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Bon_travail_items + * const bon_travail_item = await prisma.bon_travail_item.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Bon_travail_item. + * @param {bon_travail_itemUpsertArgs} args - Arguments to update or create a Bon_travail_item. + * @example + * // Update or create a Bon_travail_item + * const bon_travail_item = await prisma.bon_travail_item.upsert({ + * create: { + * // ... data to create a Bon_travail_item + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Bon_travail_item we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travail_itemClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Bon_travail_items. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {bon_travail_itemCountArgs} args - Arguments to filter Bon_travail_items to count. + * @example + * // Count the number of Bon_travail_items + * const count = await prisma.bon_travail_item.count({ + * where: { + * // ... the filter for the Bon_travail_items we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Bon_travail_item. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Bon_travail_itemAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Bon_travail_item. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {bon_travail_itemGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends bon_travail_itemGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: bon_travail_itemGroupByArgs['orderBy'] } + : { orderBy?: bon_travail_itemGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetBon_travail_itemGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the bon_travail_item model + */ +readonly fields: bon_travail_itemFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for bon_travail_item. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__bon_travail_itemClient 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 bon_travail_item model + */ +export interface bon_travail_itemFieldRefs { + readonly id: Prisma.FieldRef<"bon_travail_item", 'Int'> + readonly bon_id: Prisma.FieldRef<"bon_travail_item", 'Int'> + readonly product_id: Prisma.FieldRef<"bon_travail_item", 'Int'> + readonly qte: Prisma.FieldRef<"bon_travail_item", 'Int'> + readonly price: Prisma.FieldRef<"bon_travail_item", 'Decimal'> + readonly desc: Prisma.FieldRef<"bon_travail_item", 'String'> +} + + +// Custom InputTypes +/** + * bon_travail_item findUnique + */ +export type bon_travail_itemFindUniqueArgs = { + /** + * Select specific fields to fetch from the bon_travail_item + */ + select?: Prisma.bon_travail_itemSelect | null + /** + * Omit specific fields from the bon_travail_item + */ + omit?: Prisma.bon_travail_itemOmit | null + /** + * Filter, which bon_travail_item to fetch. + */ + where: Prisma.bon_travail_itemWhereUniqueInput +} + +/** + * bon_travail_item findUniqueOrThrow + */ +export type bon_travail_itemFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the bon_travail_item + */ + select?: Prisma.bon_travail_itemSelect | null + /** + * Omit specific fields from the bon_travail_item + */ + omit?: Prisma.bon_travail_itemOmit | null + /** + * Filter, which bon_travail_item to fetch. + */ + where: Prisma.bon_travail_itemWhereUniqueInput +} + +/** + * bon_travail_item findFirst + */ +export type bon_travail_itemFindFirstArgs = { + /** + * Select specific fields to fetch from the bon_travail_item + */ + select?: Prisma.bon_travail_itemSelect | null + /** + * Omit specific fields from the bon_travail_item + */ + omit?: Prisma.bon_travail_itemOmit | null + /** + * Filter, which bon_travail_item to fetch. + */ + where?: Prisma.bon_travail_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of bon_travail_items to fetch. + */ + orderBy?: Prisma.bon_travail_itemOrderByWithRelationInput | Prisma.bon_travail_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for bon_travail_items. + */ + cursor?: Prisma.bon_travail_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` bon_travail_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` bon_travail_items. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of bon_travail_items. + */ + distinct?: Prisma.Bon_travail_itemScalarFieldEnum | Prisma.Bon_travail_itemScalarFieldEnum[] +} + +/** + * bon_travail_item findFirstOrThrow + */ +export type bon_travail_itemFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the bon_travail_item + */ + select?: Prisma.bon_travail_itemSelect | null + /** + * Omit specific fields from the bon_travail_item + */ + omit?: Prisma.bon_travail_itemOmit | null + /** + * Filter, which bon_travail_item to fetch. + */ + where?: Prisma.bon_travail_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of bon_travail_items to fetch. + */ + orderBy?: Prisma.bon_travail_itemOrderByWithRelationInput | Prisma.bon_travail_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for bon_travail_items. + */ + cursor?: Prisma.bon_travail_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` bon_travail_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` bon_travail_items. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of bon_travail_items. + */ + distinct?: Prisma.Bon_travail_itemScalarFieldEnum | Prisma.Bon_travail_itemScalarFieldEnum[] +} + +/** + * bon_travail_item findMany + */ +export type bon_travail_itemFindManyArgs = { + /** + * Select specific fields to fetch from the bon_travail_item + */ + select?: Prisma.bon_travail_itemSelect | null + /** + * Omit specific fields from the bon_travail_item + */ + omit?: Prisma.bon_travail_itemOmit | null + /** + * Filter, which bon_travail_items to fetch. + */ + where?: Prisma.bon_travail_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of bon_travail_items to fetch. + */ + orderBy?: Prisma.bon_travail_itemOrderByWithRelationInput | Prisma.bon_travail_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing bon_travail_items. + */ + cursor?: Prisma.bon_travail_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` bon_travail_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` bon_travail_items. + */ + skip?: number + distinct?: Prisma.Bon_travail_itemScalarFieldEnum | Prisma.Bon_travail_itemScalarFieldEnum[] +} + +/** + * bon_travail_item create + */ +export type bon_travail_itemCreateArgs = { + /** + * Select specific fields to fetch from the bon_travail_item + */ + select?: Prisma.bon_travail_itemSelect | null + /** + * Omit specific fields from the bon_travail_item + */ + omit?: Prisma.bon_travail_itemOmit | null + /** + * The data needed to create a bon_travail_item. + */ + data: Prisma.XOR +} + +/** + * bon_travail_item createMany + */ +export type bon_travail_itemCreateManyArgs = { + /** + * The data used to create many bon_travail_items. + */ + data: Prisma.bon_travail_itemCreateManyInput | Prisma.bon_travail_itemCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * bon_travail_item update + */ +export type bon_travail_itemUpdateArgs = { + /** + * Select specific fields to fetch from the bon_travail_item + */ + select?: Prisma.bon_travail_itemSelect | null + /** + * Omit specific fields from the bon_travail_item + */ + omit?: Prisma.bon_travail_itemOmit | null + /** + * The data needed to update a bon_travail_item. + */ + data: Prisma.XOR + /** + * Choose, which bon_travail_item to update. + */ + where: Prisma.bon_travail_itemWhereUniqueInput +} + +/** + * bon_travail_item updateMany + */ +export type bon_travail_itemUpdateManyArgs = { + /** + * The data used to update bon_travail_items. + */ + data: Prisma.XOR + /** + * Filter which bon_travail_items to update + */ + where?: Prisma.bon_travail_itemWhereInput + /** + * Limit how many bon_travail_items to update. + */ + limit?: number +} + +/** + * bon_travail_item upsert + */ +export type bon_travail_itemUpsertArgs = { + /** + * Select specific fields to fetch from the bon_travail_item + */ + select?: Prisma.bon_travail_itemSelect | null + /** + * Omit specific fields from the bon_travail_item + */ + omit?: Prisma.bon_travail_itemOmit | null + /** + * The filter to search for the bon_travail_item to update in case it exists. + */ + where: Prisma.bon_travail_itemWhereUniqueInput + /** + * In case the bon_travail_item found by the `where` argument doesn't exist, create a new bon_travail_item with this data. + */ + create: Prisma.XOR + /** + * In case the bon_travail_item was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * bon_travail_item delete + */ +export type bon_travail_itemDeleteArgs = { + /** + * Select specific fields to fetch from the bon_travail_item + */ + select?: Prisma.bon_travail_itemSelect | null + /** + * Omit specific fields from the bon_travail_item + */ + omit?: Prisma.bon_travail_itemOmit | null + /** + * Filter which bon_travail_item to delete. + */ + where: Prisma.bon_travail_itemWhereUniqueInput +} + +/** + * bon_travail_item deleteMany + */ +export type bon_travail_itemDeleteManyArgs = { + /** + * Filter which bon_travail_items to delete + */ + where?: Prisma.bon_travail_itemWhereInput + /** + * Limit how many bon_travail_items to delete. + */ + limit?: number +} + +/** + * bon_travail_item without action + */ +export type bon_travail_itemDefaultArgs = { + /** + * Select specific fields to fetch from the bon_travail_item + */ + select?: Prisma.bon_travail_itemSelect | null + /** + * Omit specific fields from the bon_travail_item + */ + omit?: Prisma.bon_travail_itemOmit | null +} diff --git a/prisma/generated/mariadb/models/carte_temps.ts b/prisma/generated/mariadb/models/carte_temps.ts new file mode 100644 index 0000000..c485d43 --- /dev/null +++ b/prisma/generated/mariadb/models/carte_temps.ts @@ -0,0 +1,1463 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `carte_temps` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model carte_temps + * + */ +export type carte_tempsModel = runtime.Types.Result.DefaultSelection + +export type AggregateCarte_temps = { + _count: Carte_tempsCountAggregateOutputType | null + _avg: Carte_tempsAvgAggregateOutputType | null + _sum: Carte_tempsSumAggregateOutputType | null + _min: Carte_tempsMinAggregateOutputType | null + _max: Carte_tempsMaxAggregateOutputType | null +} + +export type Carte_tempsAvgAggregateOutputType = { + id: number | null + week: number | null + year: number | null + date: number | null + staff_id: number | null + start_am: number | null + end_am: number | null + start_pm: number | null + end_pm: number | null + start_night: number | null + end_night: number | null + relais: number | null + conge: number | null +} + +export type Carte_tempsSumAggregateOutputType = { + id: number | null + week: number | null + year: number | null + date: bigint | null + staff_id: bigint | null + start_am: bigint | null + end_am: bigint | null + start_pm: bigint | null + end_pm: bigint | null + start_night: bigint | null + end_night: bigint | null + relais: number | null + conge: number | null +} + +export type Carte_tempsMinAggregateOutputType = { + id: number | null + week: number | null + year: number | null + date: bigint | null + staff_id: bigint | null + start_am: bigint | null + end_am: bigint | null + start_pm: bigint | null + end_pm: bigint | null + start_night: bigint | null + end_night: bigint | null + relais: number | null + comment: string | null + note_int: string | null + conge: number | null + appr: string | null + appr_dir: string | null +} + +export type Carte_tempsMaxAggregateOutputType = { + id: number | null + week: number | null + year: number | null + date: bigint | null + staff_id: bigint | null + start_am: bigint | null + end_am: bigint | null + start_pm: bigint | null + end_pm: bigint | null + start_night: bigint | null + end_night: bigint | null + relais: number | null + comment: string | null + note_int: string | null + conge: number | null + appr: string | null + appr_dir: string | null +} + +export type Carte_tempsCountAggregateOutputType = { + id: number + week: number + year: number + date: number + staff_id: number + start_am: number + end_am: number + start_pm: number + end_pm: number + start_night: number + end_night: number + relais: number + comment: number + note_int: number + conge: number + appr: number + appr_dir: number + _all: number +} + + +export type Carte_tempsAvgAggregateInputType = { + id?: true + week?: true + year?: true + date?: true + staff_id?: true + start_am?: true + end_am?: true + start_pm?: true + end_pm?: true + start_night?: true + end_night?: true + relais?: true + conge?: true +} + +export type Carte_tempsSumAggregateInputType = { + id?: true + week?: true + year?: true + date?: true + staff_id?: true + start_am?: true + end_am?: true + start_pm?: true + end_pm?: true + start_night?: true + end_night?: true + relais?: true + conge?: true +} + +export type Carte_tempsMinAggregateInputType = { + id?: true + week?: true + year?: true + date?: true + staff_id?: true + start_am?: true + end_am?: true + start_pm?: true + end_pm?: true + start_night?: true + end_night?: true + relais?: true + comment?: true + note_int?: true + conge?: true + appr?: true + appr_dir?: true +} + +export type Carte_tempsMaxAggregateInputType = { + id?: true + week?: true + year?: true + date?: true + staff_id?: true + start_am?: true + end_am?: true + start_pm?: true + end_pm?: true + start_night?: true + end_night?: true + relais?: true + comment?: true + note_int?: true + conge?: true + appr?: true + appr_dir?: true +} + +export type Carte_tempsCountAggregateInputType = { + id?: true + week?: true + year?: true + date?: true + staff_id?: true + start_am?: true + end_am?: true + start_pm?: true + end_pm?: true + start_night?: true + end_night?: true + relais?: true + comment?: true + note_int?: true + conge?: true + appr?: true + appr_dir?: true + _all?: true +} + +export type Carte_tempsAggregateArgs = { + /** + * Filter which carte_temps to aggregate. + */ + where?: Prisma.carte_tempsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of carte_temps to fetch. + */ + orderBy?: Prisma.carte_tempsOrderByWithRelationInput | Prisma.carte_tempsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.carte_tempsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` carte_temps 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` carte_temps. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned carte_temps + **/ + _count?: true | Carte_tempsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Carte_tempsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Carte_tempsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Carte_tempsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Carte_tempsMaxAggregateInputType +} + +export type GetCarte_tempsAggregateType = { + [P in keyof T & keyof AggregateCarte_temps]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type carte_tempsGroupByArgs = { + where?: Prisma.carte_tempsWhereInput + orderBy?: Prisma.carte_tempsOrderByWithAggregationInput | Prisma.carte_tempsOrderByWithAggregationInput[] + by: Prisma.Carte_tempsScalarFieldEnum[] | Prisma.Carte_tempsScalarFieldEnum + having?: Prisma.carte_tempsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Carte_tempsCountAggregateInputType | true + _avg?: Carte_tempsAvgAggregateInputType + _sum?: Carte_tempsSumAggregateInputType + _min?: Carte_tempsMinAggregateInputType + _max?: Carte_tempsMaxAggregateInputType +} + +export type Carte_tempsGroupByOutputType = { + id: number + week: number + year: number | null + date: bigint + staff_id: bigint + start_am: bigint | null + end_am: bigint | null + start_pm: bigint | null + end_pm: bigint | null + start_night: bigint | null + end_night: bigint | null + relais: number | null + comment: string | null + note_int: string | null + conge: number + appr: string | null + appr_dir: string | null + _count: Carte_tempsCountAggregateOutputType | null + _avg: Carte_tempsAvgAggregateOutputType | null + _sum: Carte_tempsSumAggregateOutputType | null + _min: Carte_tempsMinAggregateOutputType | null + _max: Carte_tempsMaxAggregateOutputType | null +} + +type GetCarte_tempsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Carte_tempsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type carte_tempsWhereInput = { + AND?: Prisma.carte_tempsWhereInput | Prisma.carte_tempsWhereInput[] + OR?: Prisma.carte_tempsWhereInput[] + NOT?: Prisma.carte_tempsWhereInput | Prisma.carte_tempsWhereInput[] + id?: Prisma.IntFilter<"carte_temps"> | number + week?: Prisma.IntFilter<"carte_temps"> | number + year?: Prisma.IntNullableFilter<"carte_temps"> | number | null + date?: Prisma.BigIntFilter<"carte_temps"> | bigint | number + staff_id?: Prisma.BigIntFilter<"carte_temps"> | bigint | number + start_am?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null + end_am?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null + start_pm?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null + end_pm?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null + start_night?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null + end_night?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null + relais?: Prisma.FloatNullableFilter<"carte_temps"> | number | null + comment?: Prisma.StringNullableFilter<"carte_temps"> | string | null + note_int?: Prisma.StringNullableFilter<"carte_temps"> | string | null + conge?: Prisma.IntFilter<"carte_temps"> | number + appr?: Prisma.StringNullableFilter<"carte_temps"> | string | null + appr_dir?: Prisma.StringNullableFilter<"carte_temps"> | string | null +} + +export type carte_tempsOrderByWithRelationInput = { + id?: Prisma.SortOrder + week?: Prisma.SortOrder + year?: Prisma.SortOrderInput | Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + start_am?: Prisma.SortOrderInput | Prisma.SortOrder + end_am?: Prisma.SortOrderInput | Prisma.SortOrder + start_pm?: Prisma.SortOrderInput | Prisma.SortOrder + end_pm?: Prisma.SortOrderInput | Prisma.SortOrder + start_night?: Prisma.SortOrderInput | Prisma.SortOrder + end_night?: Prisma.SortOrderInput | Prisma.SortOrder + relais?: Prisma.SortOrderInput | Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + note_int?: Prisma.SortOrderInput | Prisma.SortOrder + conge?: Prisma.SortOrder + appr?: Prisma.SortOrderInput | Prisma.SortOrder + appr_dir?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.carte_tempsOrderByRelevanceInput +} + +export type carte_tempsWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.carte_tempsWhereInput | Prisma.carte_tempsWhereInput[] + OR?: Prisma.carte_tempsWhereInput[] + NOT?: Prisma.carte_tempsWhereInput | Prisma.carte_tempsWhereInput[] + week?: Prisma.IntFilter<"carte_temps"> | number + year?: Prisma.IntNullableFilter<"carte_temps"> | number | null + date?: Prisma.BigIntFilter<"carte_temps"> | bigint | number + staff_id?: Prisma.BigIntFilter<"carte_temps"> | bigint | number + start_am?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null + end_am?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null + start_pm?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null + end_pm?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null + start_night?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null + end_night?: Prisma.BigIntNullableFilter<"carte_temps"> | bigint | number | null + relais?: Prisma.FloatNullableFilter<"carte_temps"> | number | null + comment?: Prisma.StringNullableFilter<"carte_temps"> | string | null + note_int?: Prisma.StringNullableFilter<"carte_temps"> | string | null + conge?: Prisma.IntFilter<"carte_temps"> | number + appr?: Prisma.StringNullableFilter<"carte_temps"> | string | null + appr_dir?: Prisma.StringNullableFilter<"carte_temps"> | string | null +}, "id"> + +export type carte_tempsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + week?: Prisma.SortOrder + year?: Prisma.SortOrderInput | Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + start_am?: Prisma.SortOrderInput | Prisma.SortOrder + end_am?: Prisma.SortOrderInput | Prisma.SortOrder + start_pm?: Prisma.SortOrderInput | Prisma.SortOrder + end_pm?: Prisma.SortOrderInput | Prisma.SortOrder + start_night?: Prisma.SortOrderInput | Prisma.SortOrder + end_night?: Prisma.SortOrderInput | Prisma.SortOrder + relais?: Prisma.SortOrderInput | Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + note_int?: Prisma.SortOrderInput | Prisma.SortOrder + conge?: Prisma.SortOrder + appr?: Prisma.SortOrderInput | Prisma.SortOrder + appr_dir?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.carte_tempsCountOrderByAggregateInput + _avg?: Prisma.carte_tempsAvgOrderByAggregateInput + _max?: Prisma.carte_tempsMaxOrderByAggregateInput + _min?: Prisma.carte_tempsMinOrderByAggregateInput + _sum?: Prisma.carte_tempsSumOrderByAggregateInput +} + +export type carte_tempsScalarWhereWithAggregatesInput = { + AND?: Prisma.carte_tempsScalarWhereWithAggregatesInput | Prisma.carte_tempsScalarWhereWithAggregatesInput[] + OR?: Prisma.carte_tempsScalarWhereWithAggregatesInput[] + NOT?: Prisma.carte_tempsScalarWhereWithAggregatesInput | Prisma.carte_tempsScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"carte_temps"> | number + week?: Prisma.IntWithAggregatesFilter<"carte_temps"> | number + year?: Prisma.IntNullableWithAggregatesFilter<"carte_temps"> | number | null + date?: Prisma.BigIntWithAggregatesFilter<"carte_temps"> | bigint | number + staff_id?: Prisma.BigIntWithAggregatesFilter<"carte_temps"> | bigint | number + start_am?: Prisma.BigIntNullableWithAggregatesFilter<"carte_temps"> | bigint | number | null + end_am?: Prisma.BigIntNullableWithAggregatesFilter<"carte_temps"> | bigint | number | null + start_pm?: Prisma.BigIntNullableWithAggregatesFilter<"carte_temps"> | bigint | number | null + end_pm?: Prisma.BigIntNullableWithAggregatesFilter<"carte_temps"> | bigint | number | null + start_night?: Prisma.BigIntNullableWithAggregatesFilter<"carte_temps"> | bigint | number | null + end_night?: Prisma.BigIntNullableWithAggregatesFilter<"carte_temps"> | bigint | number | null + relais?: Prisma.FloatNullableWithAggregatesFilter<"carte_temps"> | number | null + comment?: Prisma.StringNullableWithAggregatesFilter<"carte_temps"> | string | null + note_int?: Prisma.StringNullableWithAggregatesFilter<"carte_temps"> | string | null + conge?: Prisma.IntWithAggregatesFilter<"carte_temps"> | number + appr?: Prisma.StringNullableWithAggregatesFilter<"carte_temps"> | string | null + appr_dir?: Prisma.StringNullableWithAggregatesFilter<"carte_temps"> | string | null +} + +export type carte_tempsCreateInput = { + week: number + year?: number | null + date: bigint | number + staff_id: bigint | number + start_am?: bigint | number | null + end_am?: bigint | number | null + start_pm?: bigint | number | null + end_pm?: bigint | number | null + start_night?: bigint | number | null + end_night?: bigint | number | null + relais?: number | null + comment?: string | null + note_int?: string | null + conge?: number + appr?: string | null + appr_dir?: string | null +} + +export type carte_tempsUncheckedCreateInput = { + id?: number + week: number + year?: number | null + date: bigint | number + staff_id: bigint | number + start_am?: bigint | number | null + end_am?: bigint | number | null + start_pm?: bigint | number | null + end_pm?: bigint | number | null + start_night?: bigint | number | null + end_night?: bigint | number | null + relais?: number | null + comment?: string | null + note_int?: string | null + conge?: number + appr?: string | null + appr_dir?: string | null +} + +export type carte_tempsUpdateInput = { + week?: Prisma.IntFieldUpdateOperationsInput | number + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + start_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + start_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + start_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + relais?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note_int?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + conge?: Prisma.IntFieldUpdateOperationsInput | number + appr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + appr_dir?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type carte_tempsUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + week?: Prisma.IntFieldUpdateOperationsInput | number + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + start_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + start_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + start_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + relais?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note_int?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + conge?: Prisma.IntFieldUpdateOperationsInput | number + appr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + appr_dir?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type carte_tempsCreateManyInput = { + id?: number + week: number + year?: number | null + date: bigint | number + staff_id: bigint | number + start_am?: bigint | number | null + end_am?: bigint | number | null + start_pm?: bigint | number | null + end_pm?: bigint | number | null + start_night?: bigint | number | null + end_night?: bigint | number | null + relais?: number | null + comment?: string | null + note_int?: string | null + conge?: number + appr?: string | null + appr_dir?: string | null +} + +export type carte_tempsUpdateManyMutationInput = { + week?: Prisma.IntFieldUpdateOperationsInput | number + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + start_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + start_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + start_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + relais?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note_int?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + conge?: Prisma.IntFieldUpdateOperationsInput | number + appr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + appr_dir?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type carte_tempsUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + week?: Prisma.IntFieldUpdateOperationsInput | number + year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + start_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_am?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + start_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_pm?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + start_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + end_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + relais?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note_int?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + conge?: Prisma.IntFieldUpdateOperationsInput | number + appr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + appr_dir?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type carte_tempsOrderByRelevanceInput = { + fields: Prisma.carte_tempsOrderByRelevanceFieldEnum | Prisma.carte_tempsOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type carte_tempsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + week?: Prisma.SortOrder + year?: Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + start_am?: Prisma.SortOrder + end_am?: Prisma.SortOrder + start_pm?: Prisma.SortOrder + end_pm?: Prisma.SortOrder + start_night?: Prisma.SortOrder + end_night?: Prisma.SortOrder + relais?: Prisma.SortOrder + comment?: Prisma.SortOrder + note_int?: Prisma.SortOrder + conge?: Prisma.SortOrder + appr?: Prisma.SortOrder + appr_dir?: Prisma.SortOrder +} + +export type carte_tempsAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + week?: Prisma.SortOrder + year?: Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + start_am?: Prisma.SortOrder + end_am?: Prisma.SortOrder + start_pm?: Prisma.SortOrder + end_pm?: Prisma.SortOrder + start_night?: Prisma.SortOrder + end_night?: Prisma.SortOrder + relais?: Prisma.SortOrder + conge?: Prisma.SortOrder +} + +export type carte_tempsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + week?: Prisma.SortOrder + year?: Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + start_am?: Prisma.SortOrder + end_am?: Prisma.SortOrder + start_pm?: Prisma.SortOrder + end_pm?: Prisma.SortOrder + start_night?: Prisma.SortOrder + end_night?: Prisma.SortOrder + relais?: Prisma.SortOrder + comment?: Prisma.SortOrder + note_int?: Prisma.SortOrder + conge?: Prisma.SortOrder + appr?: Prisma.SortOrder + appr_dir?: Prisma.SortOrder +} + +export type carte_tempsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + week?: Prisma.SortOrder + year?: Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + start_am?: Prisma.SortOrder + end_am?: Prisma.SortOrder + start_pm?: Prisma.SortOrder + end_pm?: Prisma.SortOrder + start_night?: Prisma.SortOrder + end_night?: Prisma.SortOrder + relais?: Prisma.SortOrder + comment?: Prisma.SortOrder + note_int?: Prisma.SortOrder + conge?: Prisma.SortOrder + appr?: Prisma.SortOrder + appr_dir?: Prisma.SortOrder +} + +export type carte_tempsSumOrderByAggregateInput = { + id?: Prisma.SortOrder + week?: Prisma.SortOrder + year?: Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + start_am?: Prisma.SortOrder + end_am?: Prisma.SortOrder + start_pm?: Prisma.SortOrder + end_pm?: Prisma.SortOrder + start_night?: Prisma.SortOrder + end_night?: Prisma.SortOrder + relais?: Prisma.SortOrder + conge?: Prisma.SortOrder +} + + + +export type carte_tempsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + week?: boolean + year?: boolean + date?: boolean + staff_id?: boolean + start_am?: boolean + end_am?: boolean + start_pm?: boolean + end_pm?: boolean + start_night?: boolean + end_night?: boolean + relais?: boolean + comment?: boolean + note_int?: boolean + conge?: boolean + appr?: boolean + appr_dir?: boolean +}, ExtArgs["result"]["carte_temps"]> + + + +export type carte_tempsSelectScalar = { + id?: boolean + week?: boolean + year?: boolean + date?: boolean + staff_id?: boolean + start_am?: boolean + end_am?: boolean + start_pm?: boolean + end_pm?: boolean + start_night?: boolean + end_night?: boolean + relais?: boolean + comment?: boolean + note_int?: boolean + conge?: boolean + appr?: boolean + appr_dir?: boolean +} + +export type carte_tempsOmit = runtime.Types.Extensions.GetOmit<"id" | "week" | "year" | "date" | "staff_id" | "start_am" | "end_am" | "start_pm" | "end_pm" | "start_night" | "end_night" | "relais" | "comment" | "note_int" | "conge" | "appr" | "appr_dir", ExtArgs["result"]["carte_temps"]> + +export type $carte_tempsPayload = { + name: "carte_temps" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + week: number + year: number | null + date: bigint + staff_id: bigint + start_am: bigint | null + end_am: bigint | null + start_pm: bigint | null + end_pm: bigint | null + start_night: bigint | null + end_night: bigint | null + relais: number | null + comment: string | null + note_int: string | null + conge: number + appr: string | null + appr_dir: string | null + }, ExtArgs["result"]["carte_temps"]> + composites: {} +} + +export type carte_tempsGetPayload = runtime.Types.Result.GetResult + +export type carte_tempsCountArgs = + Omit & { + select?: Carte_tempsCountAggregateInputType | true + } + +export interface carte_tempsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['carte_temps'], meta: { name: 'carte_temps' } } + /** + * Find zero or one Carte_temps that matches the filter. + * @param {carte_tempsFindUniqueArgs} args - Arguments to find a Carte_temps + * @example + * // Get one Carte_temps + * const carte_temps = await prisma.carte_temps.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Carte_temps that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {carte_tempsFindUniqueOrThrowArgs} args - Arguments to find a Carte_temps + * @example + * // Get one Carte_temps + * const carte_temps = await prisma.carte_temps.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Carte_temps 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 {carte_tempsFindFirstArgs} args - Arguments to find a Carte_temps + * @example + * // Get one Carte_temps + * const carte_temps = await prisma.carte_temps.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Carte_temps 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 {carte_tempsFindFirstOrThrowArgs} args - Arguments to find a Carte_temps + * @example + * // Get one Carte_temps + * const carte_temps = await prisma.carte_temps.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Carte_temps 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 {carte_tempsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Carte_temps + * const carte_temps = await prisma.carte_temps.findMany() + * + * // Get first 10 Carte_temps + * const carte_temps = await prisma.carte_temps.findMany({ take: 10 }) + * + * // Only select the `id` + * const carte_tempsWithIdOnly = await prisma.carte_temps.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Carte_temps. + * @param {carte_tempsCreateArgs} args - Arguments to create a Carte_temps. + * @example + * // Create one Carte_temps + * const Carte_temps = await prisma.carte_temps.create({ + * data: { + * // ... data to create a Carte_temps + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Carte_temps. + * @param {carte_tempsCreateManyArgs} args - Arguments to create many Carte_temps. + * @example + * // Create many Carte_temps + * const carte_temps = await prisma.carte_temps.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Carte_temps. + * @param {carte_tempsDeleteArgs} args - Arguments to delete one Carte_temps. + * @example + * // Delete one Carte_temps + * const Carte_temps = await prisma.carte_temps.delete({ + * where: { + * // ... filter to delete one Carte_temps + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Carte_temps. + * @param {carte_tempsUpdateArgs} args - Arguments to update one Carte_temps. + * @example + * // Update one Carte_temps + * const carte_temps = await prisma.carte_temps.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Carte_temps. + * @param {carte_tempsDeleteManyArgs} args - Arguments to filter Carte_temps to delete. + * @example + * // Delete a few Carte_temps + * const { count } = await prisma.carte_temps.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Carte_temps. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {carte_tempsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Carte_temps + * const carte_temps = await prisma.carte_temps.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Carte_temps. + * @param {carte_tempsUpsertArgs} args - Arguments to update or create a Carte_temps. + * @example + * // Update or create a Carte_temps + * const carte_temps = await prisma.carte_temps.upsert({ + * create: { + * // ... data to create a Carte_temps + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Carte_temps we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__carte_tempsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Carte_temps. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {carte_tempsCountArgs} args - Arguments to filter Carte_temps to count. + * @example + * // Count the number of Carte_temps + * const count = await prisma.carte_temps.count({ + * where: { + * // ... the filter for the Carte_temps 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 Carte_temps. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Carte_tempsAggregateArgs} 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 Carte_temps. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {carte_tempsGroupByArgs} 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 carte_tempsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: carte_tempsGroupByArgs['orderBy'] } + : { orderBy?: carte_tempsGroupByArgs['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 ? GetCarte_tempsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the carte_temps model + */ +readonly fields: carte_tempsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for carte_temps. + * 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__carte_tempsClient 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 carte_temps model + */ +export interface carte_tempsFieldRefs { + readonly id: Prisma.FieldRef<"carte_temps", 'Int'> + readonly week: Prisma.FieldRef<"carte_temps", 'Int'> + readonly year: Prisma.FieldRef<"carte_temps", 'Int'> + readonly date: Prisma.FieldRef<"carte_temps", 'BigInt'> + readonly staff_id: Prisma.FieldRef<"carte_temps", 'BigInt'> + readonly start_am: Prisma.FieldRef<"carte_temps", 'BigInt'> + readonly end_am: Prisma.FieldRef<"carte_temps", 'BigInt'> + readonly start_pm: Prisma.FieldRef<"carte_temps", 'BigInt'> + readonly end_pm: Prisma.FieldRef<"carte_temps", 'BigInt'> + readonly start_night: Prisma.FieldRef<"carte_temps", 'BigInt'> + readonly end_night: Prisma.FieldRef<"carte_temps", 'BigInt'> + readonly relais: Prisma.FieldRef<"carte_temps", 'Float'> + readonly comment: Prisma.FieldRef<"carte_temps", 'String'> + readonly note_int: Prisma.FieldRef<"carte_temps", 'String'> + readonly conge: Prisma.FieldRef<"carte_temps", 'Int'> + readonly appr: Prisma.FieldRef<"carte_temps", 'String'> + readonly appr_dir: Prisma.FieldRef<"carte_temps", 'String'> +} + + +// Custom InputTypes +/** + * carte_temps findUnique + */ +export type carte_tempsFindUniqueArgs = { + /** + * Select specific fields to fetch from the carte_temps + */ + select?: Prisma.carte_tempsSelect | null + /** + * Omit specific fields from the carte_temps + */ + omit?: Prisma.carte_tempsOmit | null + /** + * Filter, which carte_temps to fetch. + */ + where: Prisma.carte_tempsWhereUniqueInput +} + +/** + * carte_temps findUniqueOrThrow + */ +export type carte_tempsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the carte_temps + */ + select?: Prisma.carte_tempsSelect | null + /** + * Omit specific fields from the carte_temps + */ + omit?: Prisma.carte_tempsOmit | null + /** + * Filter, which carte_temps to fetch. + */ + where: Prisma.carte_tempsWhereUniqueInput +} + +/** + * carte_temps findFirst + */ +export type carte_tempsFindFirstArgs = { + /** + * Select specific fields to fetch from the carte_temps + */ + select?: Prisma.carte_tempsSelect | null + /** + * Omit specific fields from the carte_temps + */ + omit?: Prisma.carte_tempsOmit | null + /** + * Filter, which carte_temps to fetch. + */ + where?: Prisma.carte_tempsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of carte_temps to fetch. + */ + orderBy?: Prisma.carte_tempsOrderByWithRelationInput | Prisma.carte_tempsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for carte_temps. + */ + cursor?: Prisma.carte_tempsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` carte_temps 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` carte_temps. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of carte_temps. + */ + distinct?: Prisma.Carte_tempsScalarFieldEnum | Prisma.Carte_tempsScalarFieldEnum[] +} + +/** + * carte_temps findFirstOrThrow + */ +export type carte_tempsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the carte_temps + */ + select?: Prisma.carte_tempsSelect | null + /** + * Omit specific fields from the carte_temps + */ + omit?: Prisma.carte_tempsOmit | null + /** + * Filter, which carte_temps to fetch. + */ + where?: Prisma.carte_tempsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of carte_temps to fetch. + */ + orderBy?: Prisma.carte_tempsOrderByWithRelationInput | Prisma.carte_tempsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for carte_temps. + */ + cursor?: Prisma.carte_tempsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` carte_temps 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` carte_temps. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of carte_temps. + */ + distinct?: Prisma.Carte_tempsScalarFieldEnum | Prisma.Carte_tempsScalarFieldEnum[] +} + +/** + * carte_temps findMany + */ +export type carte_tempsFindManyArgs = { + /** + * Select specific fields to fetch from the carte_temps + */ + select?: Prisma.carte_tempsSelect | null + /** + * Omit specific fields from the carte_temps + */ + omit?: Prisma.carte_tempsOmit | null + /** + * Filter, which carte_temps to fetch. + */ + where?: Prisma.carte_tempsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of carte_temps to fetch. + */ + orderBy?: Prisma.carte_tempsOrderByWithRelationInput | Prisma.carte_tempsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing carte_temps. + */ + cursor?: Prisma.carte_tempsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` carte_temps 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` carte_temps. + */ + skip?: number + distinct?: Prisma.Carte_tempsScalarFieldEnum | Prisma.Carte_tempsScalarFieldEnum[] +} + +/** + * carte_temps create + */ +export type carte_tempsCreateArgs = { + /** + * Select specific fields to fetch from the carte_temps + */ + select?: Prisma.carte_tempsSelect | null + /** + * Omit specific fields from the carte_temps + */ + omit?: Prisma.carte_tempsOmit | null + /** + * The data needed to create a carte_temps. + */ + data: Prisma.XOR +} + +/** + * carte_temps createMany + */ +export type carte_tempsCreateManyArgs = { + /** + * The data used to create many carte_temps. + */ + data: Prisma.carte_tempsCreateManyInput | Prisma.carte_tempsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * carte_temps update + */ +export type carte_tempsUpdateArgs = { + /** + * Select specific fields to fetch from the carte_temps + */ + select?: Prisma.carte_tempsSelect | null + /** + * Omit specific fields from the carte_temps + */ + omit?: Prisma.carte_tempsOmit | null + /** + * The data needed to update a carte_temps. + */ + data: Prisma.XOR + /** + * Choose, which carte_temps to update. + */ + where: Prisma.carte_tempsWhereUniqueInput +} + +/** + * carte_temps updateMany + */ +export type carte_tempsUpdateManyArgs = { + /** + * The data used to update carte_temps. + */ + data: Prisma.XOR + /** + * Filter which carte_temps to update + */ + where?: Prisma.carte_tempsWhereInput + /** + * Limit how many carte_temps to update. + */ + limit?: number +} + +/** + * carte_temps upsert + */ +export type carte_tempsUpsertArgs = { + /** + * Select specific fields to fetch from the carte_temps + */ + select?: Prisma.carte_tempsSelect | null + /** + * Omit specific fields from the carte_temps + */ + omit?: Prisma.carte_tempsOmit | null + /** + * The filter to search for the carte_temps to update in case it exists. + */ + where: Prisma.carte_tempsWhereUniqueInput + /** + * In case the carte_temps found by the `where` argument doesn't exist, create a new carte_temps with this data. + */ + create: Prisma.XOR + /** + * In case the carte_temps was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * carte_temps delete + */ +export type carte_tempsDeleteArgs = { + /** + * Select specific fields to fetch from the carte_temps + */ + select?: Prisma.carte_tempsSelect | null + /** + * Omit specific fields from the carte_temps + */ + omit?: Prisma.carte_tempsOmit | null + /** + * Filter which carte_temps to delete. + */ + where: Prisma.carte_tempsWhereUniqueInput +} + +/** + * carte_temps deleteMany + */ +export type carte_tempsDeleteManyArgs = { + /** + * Filter which carte_temps to delete + */ + where?: Prisma.carte_tempsWhereInput + /** + * Limit how many carte_temps to delete. + */ + limit?: number +} + +/** + * carte_temps without action + */ +export type carte_tempsDefaultArgs = { + /** + * Select specific fields to fetch from the carte_temps + */ + select?: Prisma.carte_tempsSelect | null + /** + * Omit specific fields from the carte_temps + */ + omit?: Prisma.carte_tempsOmit | null +} diff --git a/prisma/generated/mariadb/models/carte_temps_periode.ts b/prisma/generated/mariadb/models/carte_temps_periode.ts new file mode 100644 index 0000000..703aa27 --- /dev/null +++ b/prisma/generated/mariadb/models/carte_temps_periode.ts @@ -0,0 +1,1117 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `carte_temps_periode` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model carte_temps_periode + * + */ +export type carte_temps_periodeModel = runtime.Types.Result.DefaultSelection + +export type AggregateCarte_temps_periode = { + _count: Carte_temps_periodeCountAggregateOutputType | null + _avg: Carte_temps_periodeAvgAggregateOutputType | null + _sum: Carte_temps_periodeSumAggregateOutputType | null + _min: Carte_temps_periodeMinAggregateOutputType | null + _max: Carte_temps_periodeMaxAggregateOutputType | null +} + +export type Carte_temps_periodeAvgAggregateOutputType = { + id: number | null + periode: number | null + annee: number | null +} + +export type Carte_temps_periodeSumAggregateOutputType = { + id: number | null + periode: number | null + annee: number | null +} + +export type Carte_temps_periodeMinAggregateOutputType = { + id: number | null + debut: string | null + fin: string | null + paid: string | null + periode: number | null + annee: number | null +} + +export type Carte_temps_periodeMaxAggregateOutputType = { + id: number | null + debut: string | null + fin: string | null + paid: string | null + periode: number | null + annee: number | null +} + +export type Carte_temps_periodeCountAggregateOutputType = { + id: number + debut: number + fin: number + paid: number + periode: number + annee: number + _all: number +} + + +export type Carte_temps_periodeAvgAggregateInputType = { + id?: true + periode?: true + annee?: true +} + +export type Carte_temps_periodeSumAggregateInputType = { + id?: true + periode?: true + annee?: true +} + +export type Carte_temps_periodeMinAggregateInputType = { + id?: true + debut?: true + fin?: true + paid?: true + periode?: true + annee?: true +} + +export type Carte_temps_periodeMaxAggregateInputType = { + id?: true + debut?: true + fin?: true + paid?: true + periode?: true + annee?: true +} + +export type Carte_temps_periodeCountAggregateInputType = { + id?: true + debut?: true + fin?: true + paid?: true + periode?: true + annee?: true + _all?: true +} + +export type Carte_temps_periodeAggregateArgs = { + /** + * Filter which carte_temps_periode to aggregate. + */ + where?: Prisma.carte_temps_periodeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of carte_temps_periodes to fetch. + */ + orderBy?: Prisma.carte_temps_periodeOrderByWithRelationInput | Prisma.carte_temps_periodeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.carte_temps_periodeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` carte_temps_periodes 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` carte_temps_periodes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned carte_temps_periodes + **/ + _count?: true | Carte_temps_periodeCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Carte_temps_periodeAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Carte_temps_periodeSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Carte_temps_periodeMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Carte_temps_periodeMaxAggregateInputType +} + +export type GetCarte_temps_periodeAggregateType = { + [P in keyof T & keyof AggregateCarte_temps_periode]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type carte_temps_periodeGroupByArgs = { + where?: Prisma.carte_temps_periodeWhereInput + orderBy?: Prisma.carte_temps_periodeOrderByWithAggregationInput | Prisma.carte_temps_periodeOrderByWithAggregationInput[] + by: Prisma.Carte_temps_periodeScalarFieldEnum[] | Prisma.Carte_temps_periodeScalarFieldEnum + having?: Prisma.carte_temps_periodeScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Carte_temps_periodeCountAggregateInputType | true + _avg?: Carte_temps_periodeAvgAggregateInputType + _sum?: Carte_temps_periodeSumAggregateInputType + _min?: Carte_temps_periodeMinAggregateInputType + _max?: Carte_temps_periodeMaxAggregateInputType +} + +export type Carte_temps_periodeGroupByOutputType = { + id: number + debut: string + fin: string + paid: string + periode: number + annee: number + _count: Carte_temps_periodeCountAggregateOutputType | null + _avg: Carte_temps_periodeAvgAggregateOutputType | null + _sum: Carte_temps_periodeSumAggregateOutputType | null + _min: Carte_temps_periodeMinAggregateOutputType | null + _max: Carte_temps_periodeMaxAggregateOutputType | null +} + +type GetCarte_temps_periodeGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Carte_temps_periodeGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type carte_temps_periodeWhereInput = { + AND?: Prisma.carte_temps_periodeWhereInput | Prisma.carte_temps_periodeWhereInput[] + OR?: Prisma.carte_temps_periodeWhereInput[] + NOT?: Prisma.carte_temps_periodeWhereInput | Prisma.carte_temps_periodeWhereInput[] + id?: Prisma.IntFilter<"carte_temps_periode"> | number + debut?: Prisma.StringFilter<"carte_temps_periode"> | string + fin?: Prisma.StringFilter<"carte_temps_periode"> | string + paid?: Prisma.StringFilter<"carte_temps_periode"> | string + periode?: Prisma.IntFilter<"carte_temps_periode"> | number + annee?: Prisma.IntFilter<"carte_temps_periode"> | number +} + +export type carte_temps_periodeOrderByWithRelationInput = { + id?: Prisma.SortOrder + debut?: Prisma.SortOrder + fin?: Prisma.SortOrder + paid?: Prisma.SortOrder + periode?: Prisma.SortOrder + annee?: Prisma.SortOrder + _relevance?: Prisma.carte_temps_periodeOrderByRelevanceInput +} + +export type carte_temps_periodeWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.carte_temps_periodeWhereInput | Prisma.carte_temps_periodeWhereInput[] + OR?: Prisma.carte_temps_periodeWhereInput[] + NOT?: Prisma.carte_temps_periodeWhereInput | Prisma.carte_temps_periodeWhereInput[] + debut?: Prisma.StringFilter<"carte_temps_periode"> | string + fin?: Prisma.StringFilter<"carte_temps_periode"> | string + paid?: Prisma.StringFilter<"carte_temps_periode"> | string + periode?: Prisma.IntFilter<"carte_temps_periode"> | number + annee?: Prisma.IntFilter<"carte_temps_periode"> | number +}, "id"> + +export type carte_temps_periodeOrderByWithAggregationInput = { + id?: Prisma.SortOrder + debut?: Prisma.SortOrder + fin?: Prisma.SortOrder + paid?: Prisma.SortOrder + periode?: Prisma.SortOrder + annee?: Prisma.SortOrder + _count?: Prisma.carte_temps_periodeCountOrderByAggregateInput + _avg?: Prisma.carte_temps_periodeAvgOrderByAggregateInput + _max?: Prisma.carte_temps_periodeMaxOrderByAggregateInput + _min?: Prisma.carte_temps_periodeMinOrderByAggregateInput + _sum?: Prisma.carte_temps_periodeSumOrderByAggregateInput +} + +export type carte_temps_periodeScalarWhereWithAggregatesInput = { + AND?: Prisma.carte_temps_periodeScalarWhereWithAggregatesInput | Prisma.carte_temps_periodeScalarWhereWithAggregatesInput[] + OR?: Prisma.carte_temps_periodeScalarWhereWithAggregatesInput[] + NOT?: Prisma.carte_temps_periodeScalarWhereWithAggregatesInput | Prisma.carte_temps_periodeScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"carte_temps_periode"> | number + debut?: Prisma.StringWithAggregatesFilter<"carte_temps_periode"> | string + fin?: Prisma.StringWithAggregatesFilter<"carte_temps_periode"> | string + paid?: Prisma.StringWithAggregatesFilter<"carte_temps_periode"> | string + periode?: Prisma.IntWithAggregatesFilter<"carte_temps_periode"> | number + annee?: Prisma.IntWithAggregatesFilter<"carte_temps_periode"> | number +} + +export type carte_temps_periodeCreateInput = { + debut: string + fin: string + paid: string + periode: number + annee: number +} + +export type carte_temps_periodeUncheckedCreateInput = { + id?: number + debut: string + fin: string + paid: string + periode: number + annee: number +} + +export type carte_temps_periodeUpdateInput = { + debut?: Prisma.StringFieldUpdateOperationsInput | string + fin?: Prisma.StringFieldUpdateOperationsInput | string + paid?: Prisma.StringFieldUpdateOperationsInput | string + periode?: Prisma.IntFieldUpdateOperationsInput | number + annee?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type carte_temps_periodeUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + debut?: Prisma.StringFieldUpdateOperationsInput | string + fin?: Prisma.StringFieldUpdateOperationsInput | string + paid?: Prisma.StringFieldUpdateOperationsInput | string + periode?: Prisma.IntFieldUpdateOperationsInput | number + annee?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type carte_temps_periodeCreateManyInput = { + id?: number + debut: string + fin: string + paid: string + periode: number + annee: number +} + +export type carte_temps_periodeUpdateManyMutationInput = { + debut?: Prisma.StringFieldUpdateOperationsInput | string + fin?: Prisma.StringFieldUpdateOperationsInput | string + paid?: Prisma.StringFieldUpdateOperationsInput | string + periode?: Prisma.IntFieldUpdateOperationsInput | number + annee?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type carte_temps_periodeUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + debut?: Prisma.StringFieldUpdateOperationsInput | string + fin?: Prisma.StringFieldUpdateOperationsInput | string + paid?: Prisma.StringFieldUpdateOperationsInput | string + periode?: Prisma.IntFieldUpdateOperationsInput | number + annee?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type carte_temps_periodeOrderByRelevanceInput = { + fields: Prisma.carte_temps_periodeOrderByRelevanceFieldEnum | Prisma.carte_temps_periodeOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type carte_temps_periodeCountOrderByAggregateInput = { + id?: Prisma.SortOrder + debut?: Prisma.SortOrder + fin?: Prisma.SortOrder + paid?: Prisma.SortOrder + periode?: Prisma.SortOrder + annee?: Prisma.SortOrder +} + +export type carte_temps_periodeAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + periode?: Prisma.SortOrder + annee?: Prisma.SortOrder +} + +export type carte_temps_periodeMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + debut?: Prisma.SortOrder + fin?: Prisma.SortOrder + paid?: Prisma.SortOrder + periode?: Prisma.SortOrder + annee?: Prisma.SortOrder +} + +export type carte_temps_periodeMinOrderByAggregateInput = { + id?: Prisma.SortOrder + debut?: Prisma.SortOrder + fin?: Prisma.SortOrder + paid?: Prisma.SortOrder + periode?: Prisma.SortOrder + annee?: Prisma.SortOrder +} + +export type carte_temps_periodeSumOrderByAggregateInput = { + id?: Prisma.SortOrder + periode?: Prisma.SortOrder + annee?: Prisma.SortOrder +} + + + +export type carte_temps_periodeSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + debut?: boolean + fin?: boolean + paid?: boolean + periode?: boolean + annee?: boolean +}, ExtArgs["result"]["carte_temps_periode"]> + + + +export type carte_temps_periodeSelectScalar = { + id?: boolean + debut?: boolean + fin?: boolean + paid?: boolean + periode?: boolean + annee?: boolean +} + +export type carte_temps_periodeOmit = runtime.Types.Extensions.GetOmit<"id" | "debut" | "fin" | "paid" | "periode" | "annee", ExtArgs["result"]["carte_temps_periode"]> + +export type $carte_temps_periodePayload = { + name: "carte_temps_periode" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + debut: string + fin: string + paid: string + periode: number + annee: number + }, ExtArgs["result"]["carte_temps_periode"]> + composites: {} +} + +export type carte_temps_periodeGetPayload = runtime.Types.Result.GetResult + +export type carte_temps_periodeCountArgs = + Omit & { + select?: Carte_temps_periodeCountAggregateInputType | true + } + +export interface carte_temps_periodeDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['carte_temps_periode'], meta: { name: 'carte_temps_periode' } } + /** + * Find zero or one Carte_temps_periode that matches the filter. + * @param {carte_temps_periodeFindUniqueArgs} args - Arguments to find a Carte_temps_periode + * @example + * // Get one Carte_temps_periode + * const carte_temps_periode = await prisma.carte_temps_periode.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__carte_temps_periodeClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Carte_temps_periode that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {carte_temps_periodeFindUniqueOrThrowArgs} args - Arguments to find a Carte_temps_periode + * @example + * // Get one Carte_temps_periode + * const carte_temps_periode = await prisma.carte_temps_periode.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__carte_temps_periodeClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Carte_temps_periode 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 {carte_temps_periodeFindFirstArgs} args - Arguments to find a Carte_temps_periode + * @example + * // Get one Carte_temps_periode + * const carte_temps_periode = await prisma.carte_temps_periode.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__carte_temps_periodeClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Carte_temps_periode 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 {carte_temps_periodeFindFirstOrThrowArgs} args - Arguments to find a Carte_temps_periode + * @example + * // Get one Carte_temps_periode + * const carte_temps_periode = await prisma.carte_temps_periode.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__carte_temps_periodeClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Carte_temps_periodes 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 {carte_temps_periodeFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Carte_temps_periodes + * const carte_temps_periodes = await prisma.carte_temps_periode.findMany() + * + * // Get first 10 Carte_temps_periodes + * const carte_temps_periodes = await prisma.carte_temps_periode.findMany({ take: 10 }) + * + * // Only select the `id` + * const carte_temps_periodeWithIdOnly = await prisma.carte_temps_periode.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Carte_temps_periode. + * @param {carte_temps_periodeCreateArgs} args - Arguments to create a Carte_temps_periode. + * @example + * // Create one Carte_temps_periode + * const Carte_temps_periode = await prisma.carte_temps_periode.create({ + * data: { + * // ... data to create a Carte_temps_periode + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__carte_temps_periodeClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Carte_temps_periodes. + * @param {carte_temps_periodeCreateManyArgs} args - Arguments to create many Carte_temps_periodes. + * @example + * // Create many Carte_temps_periodes + * const carte_temps_periode = await prisma.carte_temps_periode.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Carte_temps_periode. + * @param {carte_temps_periodeDeleteArgs} args - Arguments to delete one Carte_temps_periode. + * @example + * // Delete one Carte_temps_periode + * const Carte_temps_periode = await prisma.carte_temps_periode.delete({ + * where: { + * // ... filter to delete one Carte_temps_periode + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__carte_temps_periodeClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Carte_temps_periode. + * @param {carte_temps_periodeUpdateArgs} args - Arguments to update one Carte_temps_periode. + * @example + * // Update one Carte_temps_periode + * const carte_temps_periode = await prisma.carte_temps_periode.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__carte_temps_periodeClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Carte_temps_periodes. + * @param {carte_temps_periodeDeleteManyArgs} args - Arguments to filter Carte_temps_periodes to delete. + * @example + * // Delete a few Carte_temps_periodes + * const { count } = await prisma.carte_temps_periode.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Carte_temps_periodes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {carte_temps_periodeUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Carte_temps_periodes + * const carte_temps_periode = await prisma.carte_temps_periode.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Carte_temps_periode. + * @param {carte_temps_periodeUpsertArgs} args - Arguments to update or create a Carte_temps_periode. + * @example + * // Update or create a Carte_temps_periode + * const carte_temps_periode = await prisma.carte_temps_periode.upsert({ + * create: { + * // ... data to create a Carte_temps_periode + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Carte_temps_periode we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__carte_temps_periodeClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Carte_temps_periodes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {carte_temps_periodeCountArgs} args - Arguments to filter Carte_temps_periodes to count. + * @example + * // Count the number of Carte_temps_periodes + * const count = await prisma.carte_temps_periode.count({ + * where: { + * // ... the filter for the Carte_temps_periodes 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 Carte_temps_periode. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Carte_temps_periodeAggregateArgs} 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 Carte_temps_periode. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {carte_temps_periodeGroupByArgs} 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 carte_temps_periodeGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: carte_temps_periodeGroupByArgs['orderBy'] } + : { orderBy?: carte_temps_periodeGroupByArgs['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 ? GetCarte_temps_periodeGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the carte_temps_periode model + */ +readonly fields: carte_temps_periodeFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for carte_temps_periode. + * 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__carte_temps_periodeClient 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 carte_temps_periode model + */ +export interface carte_temps_periodeFieldRefs { + readonly id: Prisma.FieldRef<"carte_temps_periode", 'Int'> + readonly debut: Prisma.FieldRef<"carte_temps_periode", 'String'> + readonly fin: Prisma.FieldRef<"carte_temps_periode", 'String'> + readonly paid: Prisma.FieldRef<"carte_temps_periode", 'String'> + readonly periode: Prisma.FieldRef<"carte_temps_periode", 'Int'> + readonly annee: Prisma.FieldRef<"carte_temps_periode", 'Int'> +} + + +// Custom InputTypes +/** + * carte_temps_periode findUnique + */ +export type carte_temps_periodeFindUniqueArgs = { + /** + * Select specific fields to fetch from the carte_temps_periode + */ + select?: Prisma.carte_temps_periodeSelect | null + /** + * Omit specific fields from the carte_temps_periode + */ + omit?: Prisma.carte_temps_periodeOmit | null + /** + * Filter, which carte_temps_periode to fetch. + */ + where: Prisma.carte_temps_periodeWhereUniqueInput +} + +/** + * carte_temps_periode findUniqueOrThrow + */ +export type carte_temps_periodeFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the carte_temps_periode + */ + select?: Prisma.carte_temps_periodeSelect | null + /** + * Omit specific fields from the carte_temps_periode + */ + omit?: Prisma.carte_temps_periodeOmit | null + /** + * Filter, which carte_temps_periode to fetch. + */ + where: Prisma.carte_temps_periodeWhereUniqueInput +} + +/** + * carte_temps_periode findFirst + */ +export type carte_temps_periodeFindFirstArgs = { + /** + * Select specific fields to fetch from the carte_temps_periode + */ + select?: Prisma.carte_temps_periodeSelect | null + /** + * Omit specific fields from the carte_temps_periode + */ + omit?: Prisma.carte_temps_periodeOmit | null + /** + * Filter, which carte_temps_periode to fetch. + */ + where?: Prisma.carte_temps_periodeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of carte_temps_periodes to fetch. + */ + orderBy?: Prisma.carte_temps_periodeOrderByWithRelationInput | Prisma.carte_temps_periodeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for carte_temps_periodes. + */ + cursor?: Prisma.carte_temps_periodeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` carte_temps_periodes 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` carte_temps_periodes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of carte_temps_periodes. + */ + distinct?: Prisma.Carte_temps_periodeScalarFieldEnum | Prisma.Carte_temps_periodeScalarFieldEnum[] +} + +/** + * carte_temps_periode findFirstOrThrow + */ +export type carte_temps_periodeFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the carte_temps_periode + */ + select?: Prisma.carte_temps_periodeSelect | null + /** + * Omit specific fields from the carte_temps_periode + */ + omit?: Prisma.carte_temps_periodeOmit | null + /** + * Filter, which carte_temps_periode to fetch. + */ + where?: Prisma.carte_temps_periodeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of carte_temps_periodes to fetch. + */ + orderBy?: Prisma.carte_temps_periodeOrderByWithRelationInput | Prisma.carte_temps_periodeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for carte_temps_periodes. + */ + cursor?: Prisma.carte_temps_periodeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` carte_temps_periodes 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` carte_temps_periodes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of carte_temps_periodes. + */ + distinct?: Prisma.Carte_temps_periodeScalarFieldEnum | Prisma.Carte_temps_periodeScalarFieldEnum[] +} + +/** + * carte_temps_periode findMany + */ +export type carte_temps_periodeFindManyArgs = { + /** + * Select specific fields to fetch from the carte_temps_periode + */ + select?: Prisma.carte_temps_periodeSelect | null + /** + * Omit specific fields from the carte_temps_periode + */ + omit?: Prisma.carte_temps_periodeOmit | null + /** + * Filter, which carte_temps_periodes to fetch. + */ + where?: Prisma.carte_temps_periodeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of carte_temps_periodes to fetch. + */ + orderBy?: Prisma.carte_temps_periodeOrderByWithRelationInput | Prisma.carte_temps_periodeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing carte_temps_periodes. + */ + cursor?: Prisma.carte_temps_periodeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` carte_temps_periodes 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` carte_temps_periodes. + */ + skip?: number + distinct?: Prisma.Carte_temps_periodeScalarFieldEnum | Prisma.Carte_temps_periodeScalarFieldEnum[] +} + +/** + * carte_temps_periode create + */ +export type carte_temps_periodeCreateArgs = { + /** + * Select specific fields to fetch from the carte_temps_periode + */ + select?: Prisma.carte_temps_periodeSelect | null + /** + * Omit specific fields from the carte_temps_periode + */ + omit?: Prisma.carte_temps_periodeOmit | null + /** + * The data needed to create a carte_temps_periode. + */ + data: Prisma.XOR +} + +/** + * carte_temps_periode createMany + */ +export type carte_temps_periodeCreateManyArgs = { + /** + * The data used to create many carte_temps_periodes. + */ + data: Prisma.carte_temps_periodeCreateManyInput | Prisma.carte_temps_periodeCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * carte_temps_periode update + */ +export type carte_temps_periodeUpdateArgs = { + /** + * Select specific fields to fetch from the carte_temps_periode + */ + select?: Prisma.carte_temps_periodeSelect | null + /** + * Omit specific fields from the carte_temps_periode + */ + omit?: Prisma.carte_temps_periodeOmit | null + /** + * The data needed to update a carte_temps_periode. + */ + data: Prisma.XOR + /** + * Choose, which carte_temps_periode to update. + */ + where: Prisma.carte_temps_periodeWhereUniqueInput +} + +/** + * carte_temps_periode updateMany + */ +export type carte_temps_periodeUpdateManyArgs = { + /** + * The data used to update carte_temps_periodes. + */ + data: Prisma.XOR + /** + * Filter which carte_temps_periodes to update + */ + where?: Prisma.carte_temps_periodeWhereInput + /** + * Limit how many carte_temps_periodes to update. + */ + limit?: number +} + +/** + * carte_temps_periode upsert + */ +export type carte_temps_periodeUpsertArgs = { + /** + * Select specific fields to fetch from the carte_temps_periode + */ + select?: Prisma.carte_temps_periodeSelect | null + /** + * Omit specific fields from the carte_temps_periode + */ + omit?: Prisma.carte_temps_periodeOmit | null + /** + * The filter to search for the carte_temps_periode to update in case it exists. + */ + where: Prisma.carte_temps_periodeWhereUniqueInput + /** + * In case the carte_temps_periode found by the `where` argument doesn't exist, create a new carte_temps_periode with this data. + */ + create: Prisma.XOR + /** + * In case the carte_temps_periode was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * carte_temps_periode delete + */ +export type carte_temps_periodeDeleteArgs = { + /** + * Select specific fields to fetch from the carte_temps_periode + */ + select?: Prisma.carte_temps_periodeSelect | null + /** + * Omit specific fields from the carte_temps_periode + */ + omit?: Prisma.carte_temps_periodeOmit | null + /** + * Filter which carte_temps_periode to delete. + */ + where: Prisma.carte_temps_periodeWhereUniqueInput +} + +/** + * carte_temps_periode deleteMany + */ +export type carte_temps_periodeDeleteManyArgs = { + /** + * Filter which carte_temps_periodes to delete + */ + where?: Prisma.carte_temps_periodeWhereInput + /** + * Limit how many carte_temps_periodes to delete. + */ + limit?: number +} + +/** + * carte_temps_periode without action + */ +export type carte_temps_periodeDefaultArgs = { + /** + * Select specific fields to fetch from the carte_temps_periode + */ + select?: Prisma.carte_temps_periodeSelect | null + /** + * Omit specific fields from the carte_temps_periode + */ + omit?: Prisma.carte_temps_periodeOmit | null +} diff --git a/prisma/generated/mariadb/models/checklist_relais.ts b/prisma/generated/mariadb/models/checklist_relais.ts new file mode 100644 index 0000000..061d6d5 --- /dev/null +++ b/prisma/generated/mariadb/models/checklist_relais.ts @@ -0,0 +1,1545 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `checklist_relais` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model checklist_relais + * + */ +export type checklist_relaisModel = runtime.Types.Result.DefaultSelection + +export type AggregateChecklist_relais = { + _count: Checklist_relaisCountAggregateOutputType | null + _avg: Checklist_relaisAvgAggregateOutputType | null + _sum: Checklist_relaisSumAggregateOutputType | null + _min: Checklist_relaisMinAggregateOutputType | null + _max: Checklist_relaisMaxAggregateOutputType | null +} + +export type Checklist_relaisAvgAggregateOutputType = { + id: number | null + site_id: number | null + account_id: number | null + priority: number | null + done: number | null +} + +export type Checklist_relaisSumAggregateOutputType = { + id: number | null + site_id: number | null + account_id: number | null + priority: number | null + done: number | null +} + +export type Checklist_relaisMinAggregateOutputType = { + id: number | null + site_id: number | null + site_name: string | null + account_id: number | null + priority: number | null + done: number | null + equipement: string | null + connecteur: string | null + grounding: string | null + surge_lightning: string | null + switch_poe: string | null + switch_giga_shield: string | null + batterie: string | null + solidity: string | null + redondance: string | null + antenne_58_360: string | null + antenne_24_360: string | null + rspro_maj: string | null + boite: string | null + cable: string | null + staros_ubnt: string | null + autre: string | null +} + +export type Checklist_relaisMaxAggregateOutputType = { + id: number | null + site_id: number | null + site_name: string | null + account_id: number | null + priority: number | null + done: number | null + equipement: string | null + connecteur: string | null + grounding: string | null + surge_lightning: string | null + switch_poe: string | null + switch_giga_shield: string | null + batterie: string | null + solidity: string | null + redondance: string | null + antenne_58_360: string | null + antenne_24_360: string | null + rspro_maj: string | null + boite: string | null + cable: string | null + staros_ubnt: string | null + autre: string | null +} + +export type Checklist_relaisCountAggregateOutputType = { + id: number + site_id: number + site_name: number + account_id: number + priority: number + done: number + equipement: number + connecteur: number + grounding: number + surge_lightning: number + switch_poe: number + switch_giga_shield: number + batterie: number + solidity: number + redondance: number + antenne_58_360: number + antenne_24_360: number + rspro_maj: number + boite: number + cable: number + staros_ubnt: number + autre: number + _all: number +} + + +export type Checklist_relaisAvgAggregateInputType = { + id?: true + site_id?: true + account_id?: true + priority?: true + done?: true +} + +export type Checklist_relaisSumAggregateInputType = { + id?: true + site_id?: true + account_id?: true + priority?: true + done?: true +} + +export type Checklist_relaisMinAggregateInputType = { + id?: true + site_id?: true + site_name?: true + account_id?: true + priority?: true + done?: true + equipement?: true + connecteur?: true + grounding?: true + surge_lightning?: true + switch_poe?: true + switch_giga_shield?: true + batterie?: true + solidity?: true + redondance?: true + antenne_58_360?: true + antenne_24_360?: true + rspro_maj?: true + boite?: true + cable?: true + staros_ubnt?: true + autre?: true +} + +export type Checklist_relaisMaxAggregateInputType = { + id?: true + site_id?: true + site_name?: true + account_id?: true + priority?: true + done?: true + equipement?: true + connecteur?: true + grounding?: true + surge_lightning?: true + switch_poe?: true + switch_giga_shield?: true + batterie?: true + solidity?: true + redondance?: true + antenne_58_360?: true + antenne_24_360?: true + rspro_maj?: true + boite?: true + cable?: true + staros_ubnt?: true + autre?: true +} + +export type Checklist_relaisCountAggregateInputType = { + id?: true + site_id?: true + site_name?: true + account_id?: true + priority?: true + done?: true + equipement?: true + connecteur?: true + grounding?: true + surge_lightning?: true + switch_poe?: true + switch_giga_shield?: true + batterie?: true + solidity?: true + redondance?: true + antenne_58_360?: true + antenne_24_360?: true + rspro_maj?: true + boite?: true + cable?: true + staros_ubnt?: true + autre?: true + _all?: true +} + +export type Checklist_relaisAggregateArgs = { + /** + * Filter which checklist_relais to aggregate. + */ + where?: Prisma.checklist_relaisWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of checklist_relais to fetch. + */ + orderBy?: Prisma.checklist_relaisOrderByWithRelationInput | Prisma.checklist_relaisOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.checklist_relaisWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` checklist_relais 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` checklist_relais. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned checklist_relais + **/ + _count?: true | Checklist_relaisCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Checklist_relaisAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Checklist_relaisSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Checklist_relaisMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Checklist_relaisMaxAggregateInputType +} + +export type GetChecklist_relaisAggregateType = { + [P in keyof T & keyof AggregateChecklist_relais]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type checklist_relaisGroupByArgs = { + where?: Prisma.checklist_relaisWhereInput + orderBy?: Prisma.checklist_relaisOrderByWithAggregationInput | Prisma.checklist_relaisOrderByWithAggregationInput[] + by: Prisma.Checklist_relaisScalarFieldEnum[] | Prisma.Checklist_relaisScalarFieldEnum + having?: Prisma.checklist_relaisScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Checklist_relaisCountAggregateInputType | true + _avg?: Checklist_relaisAvgAggregateInputType + _sum?: Checklist_relaisSumAggregateInputType + _min?: Checklist_relaisMinAggregateInputType + _max?: Checklist_relaisMaxAggregateInputType +} + +export type Checklist_relaisGroupByOutputType = { + id: number + site_id: number + site_name: string | null + account_id: number + priority: number + done: number + equipement: string | null + connecteur: string | null + grounding: string | null + surge_lightning: string | null + switch_poe: string | null + switch_giga_shield: string | null + batterie: string | null + solidity: string | null + redondance: string | null + antenne_58_360: string | null + antenne_24_360: string | null + rspro_maj: string | null + boite: string | null + cable: string | null + staros_ubnt: string | null + autre: string | null + _count: Checklist_relaisCountAggregateOutputType | null + _avg: Checklist_relaisAvgAggregateOutputType | null + _sum: Checklist_relaisSumAggregateOutputType | null + _min: Checklist_relaisMinAggregateOutputType | null + _max: Checklist_relaisMaxAggregateOutputType | null +} + +type GetChecklist_relaisGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Checklist_relaisGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type checklist_relaisWhereInput = { + AND?: Prisma.checklist_relaisWhereInput | Prisma.checklist_relaisWhereInput[] + OR?: Prisma.checklist_relaisWhereInput[] + NOT?: Prisma.checklist_relaisWhereInput | Prisma.checklist_relaisWhereInput[] + id?: Prisma.IntFilter<"checklist_relais"> | number + site_id?: Prisma.IntFilter<"checklist_relais"> | number + site_name?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + account_id?: Prisma.IntFilter<"checklist_relais"> | number + priority?: Prisma.IntFilter<"checklist_relais"> | number + done?: Prisma.IntFilter<"checklist_relais"> | number + equipement?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + connecteur?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + grounding?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + surge_lightning?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + switch_poe?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + switch_giga_shield?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + batterie?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + solidity?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + redondance?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + antenne_58_360?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + antenne_24_360?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + rspro_maj?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + boite?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + cable?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + staros_ubnt?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + autre?: Prisma.StringNullableFilter<"checklist_relais"> | string | null +} + +export type checklist_relaisOrderByWithRelationInput = { + id?: Prisma.SortOrder + site_id?: Prisma.SortOrder + site_name?: Prisma.SortOrderInput | Prisma.SortOrder + account_id?: Prisma.SortOrder + priority?: Prisma.SortOrder + done?: Prisma.SortOrder + equipement?: Prisma.SortOrderInput | Prisma.SortOrder + connecteur?: Prisma.SortOrderInput | Prisma.SortOrder + grounding?: Prisma.SortOrderInput | Prisma.SortOrder + surge_lightning?: Prisma.SortOrderInput | Prisma.SortOrder + switch_poe?: Prisma.SortOrderInput | Prisma.SortOrder + switch_giga_shield?: Prisma.SortOrderInput | Prisma.SortOrder + batterie?: Prisma.SortOrderInput | Prisma.SortOrder + solidity?: Prisma.SortOrderInput | Prisma.SortOrder + redondance?: Prisma.SortOrderInput | Prisma.SortOrder + antenne_58_360?: Prisma.SortOrderInput | Prisma.SortOrder + antenne_24_360?: Prisma.SortOrderInput | Prisma.SortOrder + rspro_maj?: Prisma.SortOrderInput | Prisma.SortOrder + boite?: Prisma.SortOrderInput | Prisma.SortOrder + cable?: Prisma.SortOrderInput | Prisma.SortOrder + staros_ubnt?: Prisma.SortOrderInput | Prisma.SortOrder + autre?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.checklist_relaisOrderByRelevanceInput +} + +export type checklist_relaisWhereUniqueInput = Prisma.AtLeast<{ + id?: number + site_id?: number + AND?: Prisma.checklist_relaisWhereInput | Prisma.checklist_relaisWhereInput[] + OR?: Prisma.checklist_relaisWhereInput[] + NOT?: Prisma.checklist_relaisWhereInput | Prisma.checklist_relaisWhereInput[] + site_name?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + account_id?: Prisma.IntFilter<"checklist_relais"> | number + priority?: Prisma.IntFilter<"checklist_relais"> | number + done?: Prisma.IntFilter<"checklist_relais"> | number + equipement?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + connecteur?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + grounding?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + surge_lightning?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + switch_poe?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + switch_giga_shield?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + batterie?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + solidity?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + redondance?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + antenne_58_360?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + antenne_24_360?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + rspro_maj?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + boite?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + cable?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + staros_ubnt?: Prisma.StringNullableFilter<"checklist_relais"> | string | null + autre?: Prisma.StringNullableFilter<"checklist_relais"> | string | null +}, "id" | "site_id"> + +export type checklist_relaisOrderByWithAggregationInput = { + id?: Prisma.SortOrder + site_id?: Prisma.SortOrder + site_name?: Prisma.SortOrderInput | Prisma.SortOrder + account_id?: Prisma.SortOrder + priority?: Prisma.SortOrder + done?: Prisma.SortOrder + equipement?: Prisma.SortOrderInput | Prisma.SortOrder + connecteur?: Prisma.SortOrderInput | Prisma.SortOrder + grounding?: Prisma.SortOrderInput | Prisma.SortOrder + surge_lightning?: Prisma.SortOrderInput | Prisma.SortOrder + switch_poe?: Prisma.SortOrderInput | Prisma.SortOrder + switch_giga_shield?: Prisma.SortOrderInput | Prisma.SortOrder + batterie?: Prisma.SortOrderInput | Prisma.SortOrder + solidity?: Prisma.SortOrderInput | Prisma.SortOrder + redondance?: Prisma.SortOrderInput | Prisma.SortOrder + antenne_58_360?: Prisma.SortOrderInput | Prisma.SortOrder + antenne_24_360?: Prisma.SortOrderInput | Prisma.SortOrder + rspro_maj?: Prisma.SortOrderInput | Prisma.SortOrder + boite?: Prisma.SortOrderInput | Prisma.SortOrder + cable?: Prisma.SortOrderInput | Prisma.SortOrder + staros_ubnt?: Prisma.SortOrderInput | Prisma.SortOrder + autre?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.checklist_relaisCountOrderByAggregateInput + _avg?: Prisma.checklist_relaisAvgOrderByAggregateInput + _max?: Prisma.checklist_relaisMaxOrderByAggregateInput + _min?: Prisma.checklist_relaisMinOrderByAggregateInput + _sum?: Prisma.checklist_relaisSumOrderByAggregateInput +} + +export type checklist_relaisScalarWhereWithAggregatesInput = { + AND?: Prisma.checklist_relaisScalarWhereWithAggregatesInput | Prisma.checklist_relaisScalarWhereWithAggregatesInput[] + OR?: Prisma.checklist_relaisScalarWhereWithAggregatesInput[] + NOT?: Prisma.checklist_relaisScalarWhereWithAggregatesInput | Prisma.checklist_relaisScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"checklist_relais"> | number + site_id?: Prisma.IntWithAggregatesFilter<"checklist_relais"> | number + site_name?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + account_id?: Prisma.IntWithAggregatesFilter<"checklist_relais"> | number + priority?: Prisma.IntWithAggregatesFilter<"checklist_relais"> | number + done?: Prisma.IntWithAggregatesFilter<"checklist_relais"> | number + equipement?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + connecteur?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + grounding?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + surge_lightning?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + switch_poe?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + switch_giga_shield?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + batterie?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + solidity?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + redondance?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + antenne_58_360?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + antenne_24_360?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + rspro_maj?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + boite?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + cable?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + staros_ubnt?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null + autre?: Prisma.StringNullableWithAggregatesFilter<"checklist_relais"> | string | null +} + +export type checklist_relaisCreateInput = { + site_id: number + site_name?: string | null + account_id: number + priority?: number + done?: number + equipement?: string | null + connecteur?: string | null + grounding?: string | null + surge_lightning?: string | null + switch_poe?: string | null + switch_giga_shield?: string | null + batterie?: string | null + solidity?: string | null + redondance?: string | null + antenne_58_360?: string | null + antenne_24_360?: string | null + rspro_maj?: string | null + boite?: string | null + cable?: string | null + staros_ubnt?: string | null + autre?: string | null +} + +export type checklist_relaisUncheckedCreateInput = { + id?: number + site_id: number + site_name?: string | null + account_id: number + priority?: number + done?: number + equipement?: string | null + connecteur?: string | null + grounding?: string | null + surge_lightning?: string | null + switch_poe?: string | null + switch_giga_shield?: string | null + batterie?: string | null + solidity?: string | null + redondance?: string | null + antenne_58_360?: string | null + antenne_24_360?: string | null + rspro_maj?: string | null + boite?: string | null + cable?: string | null + staros_ubnt?: string | null + autre?: string | null +} + +export type checklist_relaisUpdateInput = { + site_id?: Prisma.IntFieldUpdateOperationsInput | number + site_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + account_id?: Prisma.IntFieldUpdateOperationsInput | number + priority?: Prisma.IntFieldUpdateOperationsInput | number + done?: Prisma.IntFieldUpdateOperationsInput | number + equipement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + connecteur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + grounding?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + surge_lightning?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + switch_poe?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + switch_giga_shield?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + batterie?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + solidity?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + redondance?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + antenne_58_360?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + antenne_24_360?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + rspro_maj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + boite?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + staros_ubnt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + autre?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type checklist_relaisUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + site_id?: Prisma.IntFieldUpdateOperationsInput | number + site_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + account_id?: Prisma.IntFieldUpdateOperationsInput | number + priority?: Prisma.IntFieldUpdateOperationsInput | number + done?: Prisma.IntFieldUpdateOperationsInput | number + equipement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + connecteur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + grounding?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + surge_lightning?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + switch_poe?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + switch_giga_shield?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + batterie?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + solidity?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + redondance?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + antenne_58_360?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + antenne_24_360?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + rspro_maj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + boite?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + staros_ubnt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + autre?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type checklist_relaisCreateManyInput = { + id?: number + site_id: number + site_name?: string | null + account_id: number + priority?: number + done?: number + equipement?: string | null + connecteur?: string | null + grounding?: string | null + surge_lightning?: string | null + switch_poe?: string | null + switch_giga_shield?: string | null + batterie?: string | null + solidity?: string | null + redondance?: string | null + antenne_58_360?: string | null + antenne_24_360?: string | null + rspro_maj?: string | null + boite?: string | null + cable?: string | null + staros_ubnt?: string | null + autre?: string | null +} + +export type checklist_relaisUpdateManyMutationInput = { + site_id?: Prisma.IntFieldUpdateOperationsInput | number + site_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + account_id?: Prisma.IntFieldUpdateOperationsInput | number + priority?: Prisma.IntFieldUpdateOperationsInput | number + done?: Prisma.IntFieldUpdateOperationsInput | number + equipement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + connecteur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + grounding?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + surge_lightning?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + switch_poe?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + switch_giga_shield?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + batterie?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + solidity?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + redondance?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + antenne_58_360?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + antenne_24_360?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + rspro_maj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + boite?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + staros_ubnt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + autre?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type checklist_relaisUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + site_id?: Prisma.IntFieldUpdateOperationsInput | number + site_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + account_id?: Prisma.IntFieldUpdateOperationsInput | number + priority?: Prisma.IntFieldUpdateOperationsInput | number + done?: Prisma.IntFieldUpdateOperationsInput | number + equipement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + connecteur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + grounding?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + surge_lightning?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + switch_poe?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + switch_giga_shield?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + batterie?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + solidity?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + redondance?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + antenne_58_360?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + antenne_24_360?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + rspro_maj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + boite?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cable?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + staros_ubnt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + autre?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type checklist_relaisOrderByRelevanceInput = { + fields: Prisma.checklist_relaisOrderByRelevanceFieldEnum | Prisma.checklist_relaisOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type checklist_relaisCountOrderByAggregateInput = { + id?: Prisma.SortOrder + site_id?: Prisma.SortOrder + site_name?: Prisma.SortOrder + account_id?: Prisma.SortOrder + priority?: Prisma.SortOrder + done?: Prisma.SortOrder + equipement?: Prisma.SortOrder + connecteur?: Prisma.SortOrder + grounding?: Prisma.SortOrder + surge_lightning?: Prisma.SortOrder + switch_poe?: Prisma.SortOrder + switch_giga_shield?: Prisma.SortOrder + batterie?: Prisma.SortOrder + solidity?: Prisma.SortOrder + redondance?: Prisma.SortOrder + antenne_58_360?: Prisma.SortOrder + antenne_24_360?: Prisma.SortOrder + rspro_maj?: Prisma.SortOrder + boite?: Prisma.SortOrder + cable?: Prisma.SortOrder + staros_ubnt?: Prisma.SortOrder + autre?: Prisma.SortOrder +} + +export type checklist_relaisAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + site_id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + priority?: Prisma.SortOrder + done?: Prisma.SortOrder +} + +export type checklist_relaisMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + site_id?: Prisma.SortOrder + site_name?: Prisma.SortOrder + account_id?: Prisma.SortOrder + priority?: Prisma.SortOrder + done?: Prisma.SortOrder + equipement?: Prisma.SortOrder + connecteur?: Prisma.SortOrder + grounding?: Prisma.SortOrder + surge_lightning?: Prisma.SortOrder + switch_poe?: Prisma.SortOrder + switch_giga_shield?: Prisma.SortOrder + batterie?: Prisma.SortOrder + solidity?: Prisma.SortOrder + redondance?: Prisma.SortOrder + antenne_58_360?: Prisma.SortOrder + antenne_24_360?: Prisma.SortOrder + rspro_maj?: Prisma.SortOrder + boite?: Prisma.SortOrder + cable?: Prisma.SortOrder + staros_ubnt?: Prisma.SortOrder + autre?: Prisma.SortOrder +} + +export type checklist_relaisMinOrderByAggregateInput = { + id?: Prisma.SortOrder + site_id?: Prisma.SortOrder + site_name?: Prisma.SortOrder + account_id?: Prisma.SortOrder + priority?: Prisma.SortOrder + done?: Prisma.SortOrder + equipement?: Prisma.SortOrder + connecteur?: Prisma.SortOrder + grounding?: Prisma.SortOrder + surge_lightning?: Prisma.SortOrder + switch_poe?: Prisma.SortOrder + switch_giga_shield?: Prisma.SortOrder + batterie?: Prisma.SortOrder + solidity?: Prisma.SortOrder + redondance?: Prisma.SortOrder + antenne_58_360?: Prisma.SortOrder + antenne_24_360?: Prisma.SortOrder + rspro_maj?: Prisma.SortOrder + boite?: Prisma.SortOrder + cable?: Prisma.SortOrder + staros_ubnt?: Prisma.SortOrder + autre?: Prisma.SortOrder +} + +export type checklist_relaisSumOrderByAggregateInput = { + id?: Prisma.SortOrder + site_id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + priority?: Prisma.SortOrder + done?: Prisma.SortOrder +} + + + +export type checklist_relaisSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + site_id?: boolean + site_name?: boolean + account_id?: boolean + priority?: boolean + done?: boolean + equipement?: boolean + connecteur?: boolean + grounding?: boolean + surge_lightning?: boolean + switch_poe?: boolean + switch_giga_shield?: boolean + batterie?: boolean + solidity?: boolean + redondance?: boolean + antenne_58_360?: boolean + antenne_24_360?: boolean + rspro_maj?: boolean + boite?: boolean + cable?: boolean + staros_ubnt?: boolean + autre?: boolean +}, ExtArgs["result"]["checklist_relais"]> + + + +export type checklist_relaisSelectScalar = { + id?: boolean + site_id?: boolean + site_name?: boolean + account_id?: boolean + priority?: boolean + done?: boolean + equipement?: boolean + connecteur?: boolean + grounding?: boolean + surge_lightning?: boolean + switch_poe?: boolean + switch_giga_shield?: boolean + batterie?: boolean + solidity?: boolean + redondance?: boolean + antenne_58_360?: boolean + antenne_24_360?: boolean + rspro_maj?: boolean + boite?: boolean + cable?: boolean + staros_ubnt?: boolean + autre?: boolean +} + +export type checklist_relaisOmit = runtime.Types.Extensions.GetOmit<"id" | "site_id" | "site_name" | "account_id" | "priority" | "done" | "equipement" | "connecteur" | "grounding" | "surge_lightning" | "switch_poe" | "switch_giga_shield" | "batterie" | "solidity" | "redondance" | "antenne_58_360" | "antenne_24_360" | "rspro_maj" | "boite" | "cable" | "staros_ubnt" | "autre", ExtArgs["result"]["checklist_relais"]> + +export type $checklist_relaisPayload = { + name: "checklist_relais" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + site_id: number + site_name: string | null + account_id: number + priority: number + done: number + equipement: string | null + connecteur: string | null + grounding: string | null + surge_lightning: string | null + switch_poe: string | null + switch_giga_shield: string | null + batterie: string | null + solidity: string | null + redondance: string | null + antenne_58_360: string | null + antenne_24_360: string | null + rspro_maj: string | null + boite: string | null + cable: string | null + staros_ubnt: string | null + autre: string | null + }, ExtArgs["result"]["checklist_relais"]> + composites: {} +} + +export type checklist_relaisGetPayload = runtime.Types.Result.GetResult + +export type checklist_relaisCountArgs = + Omit & { + select?: Checklist_relaisCountAggregateInputType | true + } + +export interface checklist_relaisDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['checklist_relais'], meta: { name: 'checklist_relais' } } + /** + * Find zero or one Checklist_relais that matches the filter. + * @param {checklist_relaisFindUniqueArgs} args - Arguments to find a Checklist_relais + * @example + * // Get one Checklist_relais + * const checklist_relais = await prisma.checklist_relais.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__checklist_relaisClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Checklist_relais that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {checklist_relaisFindUniqueOrThrowArgs} args - Arguments to find a Checklist_relais + * @example + * // Get one Checklist_relais + * const checklist_relais = await prisma.checklist_relais.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__checklist_relaisClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Checklist_relais 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 {checklist_relaisFindFirstArgs} args - Arguments to find a Checklist_relais + * @example + * // Get one Checklist_relais + * const checklist_relais = await prisma.checklist_relais.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__checklist_relaisClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Checklist_relais 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 {checklist_relaisFindFirstOrThrowArgs} args - Arguments to find a Checklist_relais + * @example + * // Get one Checklist_relais + * const checklist_relais = await prisma.checklist_relais.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__checklist_relaisClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Checklist_relais 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 {checklist_relaisFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Checklist_relais + * const checklist_relais = await prisma.checklist_relais.findMany() + * + * // Get first 10 Checklist_relais + * const checklist_relais = await prisma.checklist_relais.findMany({ take: 10 }) + * + * // Only select the `id` + * const checklist_relaisWithIdOnly = await prisma.checklist_relais.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Checklist_relais. + * @param {checklist_relaisCreateArgs} args - Arguments to create a Checklist_relais. + * @example + * // Create one Checklist_relais + * const Checklist_relais = await prisma.checklist_relais.create({ + * data: { + * // ... data to create a Checklist_relais + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__checklist_relaisClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Checklist_relais. + * @param {checklist_relaisCreateManyArgs} args - Arguments to create many Checklist_relais. + * @example + * // Create many Checklist_relais + * const checklist_relais = await prisma.checklist_relais.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Checklist_relais. + * @param {checklist_relaisDeleteArgs} args - Arguments to delete one Checklist_relais. + * @example + * // Delete one Checklist_relais + * const Checklist_relais = await prisma.checklist_relais.delete({ + * where: { + * // ... filter to delete one Checklist_relais + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__checklist_relaisClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Checklist_relais. + * @param {checklist_relaisUpdateArgs} args - Arguments to update one Checklist_relais. + * @example + * // Update one Checklist_relais + * const checklist_relais = await prisma.checklist_relais.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__checklist_relaisClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Checklist_relais. + * @param {checklist_relaisDeleteManyArgs} args - Arguments to filter Checklist_relais to delete. + * @example + * // Delete a few Checklist_relais + * const { count } = await prisma.checklist_relais.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Checklist_relais. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {checklist_relaisUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Checklist_relais + * const checklist_relais = await prisma.checklist_relais.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Checklist_relais. + * @param {checklist_relaisUpsertArgs} args - Arguments to update or create a Checklist_relais. + * @example + * // Update or create a Checklist_relais + * const checklist_relais = await prisma.checklist_relais.upsert({ + * create: { + * // ... data to create a Checklist_relais + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Checklist_relais we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__checklist_relaisClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Checklist_relais. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {checklist_relaisCountArgs} args - Arguments to filter Checklist_relais to count. + * @example + * // Count the number of Checklist_relais + * const count = await prisma.checklist_relais.count({ + * where: { + * // ... the filter for the Checklist_relais 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 Checklist_relais. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Checklist_relaisAggregateArgs} 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 Checklist_relais. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {checklist_relaisGroupByArgs} 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 checklist_relaisGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: checklist_relaisGroupByArgs['orderBy'] } + : { orderBy?: checklist_relaisGroupByArgs['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 ? GetChecklist_relaisGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the checklist_relais model + */ +readonly fields: checklist_relaisFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for checklist_relais. + * 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__checklist_relaisClient 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 checklist_relais model + */ +export interface checklist_relaisFieldRefs { + readonly id: Prisma.FieldRef<"checklist_relais", 'Int'> + readonly site_id: Prisma.FieldRef<"checklist_relais", 'Int'> + readonly site_name: Prisma.FieldRef<"checklist_relais", 'String'> + readonly account_id: Prisma.FieldRef<"checklist_relais", 'Int'> + readonly priority: Prisma.FieldRef<"checklist_relais", 'Int'> + readonly done: Prisma.FieldRef<"checklist_relais", 'Int'> + readonly equipement: Prisma.FieldRef<"checklist_relais", 'String'> + readonly connecteur: Prisma.FieldRef<"checklist_relais", 'String'> + readonly grounding: Prisma.FieldRef<"checklist_relais", 'String'> + readonly surge_lightning: Prisma.FieldRef<"checklist_relais", 'String'> + readonly switch_poe: Prisma.FieldRef<"checklist_relais", 'String'> + readonly switch_giga_shield: Prisma.FieldRef<"checklist_relais", 'String'> + readonly batterie: Prisma.FieldRef<"checklist_relais", 'String'> + readonly solidity: Prisma.FieldRef<"checklist_relais", 'String'> + readonly redondance: Prisma.FieldRef<"checklist_relais", 'String'> + readonly antenne_58_360: Prisma.FieldRef<"checklist_relais", 'String'> + readonly antenne_24_360: Prisma.FieldRef<"checklist_relais", 'String'> + readonly rspro_maj: Prisma.FieldRef<"checklist_relais", 'String'> + readonly boite: Prisma.FieldRef<"checklist_relais", 'String'> + readonly cable: Prisma.FieldRef<"checklist_relais", 'String'> + readonly staros_ubnt: Prisma.FieldRef<"checklist_relais", 'String'> + readonly autre: Prisma.FieldRef<"checklist_relais", 'String'> +} + + +// Custom InputTypes +/** + * checklist_relais findUnique + */ +export type checklist_relaisFindUniqueArgs = { + /** + * Select specific fields to fetch from the checklist_relais + */ + select?: Prisma.checklist_relaisSelect | null + /** + * Omit specific fields from the checklist_relais + */ + omit?: Prisma.checklist_relaisOmit | null + /** + * Filter, which checklist_relais to fetch. + */ + where: Prisma.checklist_relaisWhereUniqueInput +} + +/** + * checklist_relais findUniqueOrThrow + */ +export type checklist_relaisFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the checklist_relais + */ + select?: Prisma.checklist_relaisSelect | null + /** + * Omit specific fields from the checklist_relais + */ + omit?: Prisma.checklist_relaisOmit | null + /** + * Filter, which checklist_relais to fetch. + */ + where: Prisma.checklist_relaisWhereUniqueInput +} + +/** + * checklist_relais findFirst + */ +export type checklist_relaisFindFirstArgs = { + /** + * Select specific fields to fetch from the checklist_relais + */ + select?: Prisma.checklist_relaisSelect | null + /** + * Omit specific fields from the checklist_relais + */ + omit?: Prisma.checklist_relaisOmit | null + /** + * Filter, which checklist_relais to fetch. + */ + where?: Prisma.checklist_relaisWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of checklist_relais to fetch. + */ + orderBy?: Prisma.checklist_relaisOrderByWithRelationInput | Prisma.checklist_relaisOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for checklist_relais. + */ + cursor?: Prisma.checklist_relaisWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` checklist_relais 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` checklist_relais. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of checklist_relais. + */ + distinct?: Prisma.Checklist_relaisScalarFieldEnum | Prisma.Checklist_relaisScalarFieldEnum[] +} + +/** + * checklist_relais findFirstOrThrow + */ +export type checklist_relaisFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the checklist_relais + */ + select?: Prisma.checklist_relaisSelect | null + /** + * Omit specific fields from the checklist_relais + */ + omit?: Prisma.checklist_relaisOmit | null + /** + * Filter, which checklist_relais to fetch. + */ + where?: Prisma.checklist_relaisWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of checklist_relais to fetch. + */ + orderBy?: Prisma.checklist_relaisOrderByWithRelationInput | Prisma.checklist_relaisOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for checklist_relais. + */ + cursor?: Prisma.checklist_relaisWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` checklist_relais 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` checklist_relais. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of checklist_relais. + */ + distinct?: Prisma.Checklist_relaisScalarFieldEnum | Prisma.Checklist_relaisScalarFieldEnum[] +} + +/** + * checklist_relais findMany + */ +export type checklist_relaisFindManyArgs = { + /** + * Select specific fields to fetch from the checklist_relais + */ + select?: Prisma.checklist_relaisSelect | null + /** + * Omit specific fields from the checklist_relais + */ + omit?: Prisma.checklist_relaisOmit | null + /** + * Filter, which checklist_relais to fetch. + */ + where?: Prisma.checklist_relaisWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of checklist_relais to fetch. + */ + orderBy?: Prisma.checklist_relaisOrderByWithRelationInput | Prisma.checklist_relaisOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing checklist_relais. + */ + cursor?: Prisma.checklist_relaisWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` checklist_relais 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` checklist_relais. + */ + skip?: number + distinct?: Prisma.Checklist_relaisScalarFieldEnum | Prisma.Checklist_relaisScalarFieldEnum[] +} + +/** + * checklist_relais create + */ +export type checklist_relaisCreateArgs = { + /** + * Select specific fields to fetch from the checklist_relais + */ + select?: Prisma.checklist_relaisSelect | null + /** + * Omit specific fields from the checklist_relais + */ + omit?: Prisma.checklist_relaisOmit | null + /** + * The data needed to create a checklist_relais. + */ + data: Prisma.XOR +} + +/** + * checklist_relais createMany + */ +export type checklist_relaisCreateManyArgs = { + /** + * The data used to create many checklist_relais. + */ + data: Prisma.checklist_relaisCreateManyInput | Prisma.checklist_relaisCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * checklist_relais update + */ +export type checklist_relaisUpdateArgs = { + /** + * Select specific fields to fetch from the checklist_relais + */ + select?: Prisma.checklist_relaisSelect | null + /** + * Omit specific fields from the checklist_relais + */ + omit?: Prisma.checklist_relaisOmit | null + /** + * The data needed to update a checklist_relais. + */ + data: Prisma.XOR + /** + * Choose, which checklist_relais to update. + */ + where: Prisma.checklist_relaisWhereUniqueInput +} + +/** + * checklist_relais updateMany + */ +export type checklist_relaisUpdateManyArgs = { + /** + * The data used to update checklist_relais. + */ + data: Prisma.XOR + /** + * Filter which checklist_relais to update + */ + where?: Prisma.checklist_relaisWhereInput + /** + * Limit how many checklist_relais to update. + */ + limit?: number +} + +/** + * checklist_relais upsert + */ +export type checklist_relaisUpsertArgs = { + /** + * Select specific fields to fetch from the checklist_relais + */ + select?: Prisma.checklist_relaisSelect | null + /** + * Omit specific fields from the checklist_relais + */ + omit?: Prisma.checklist_relaisOmit | null + /** + * The filter to search for the checklist_relais to update in case it exists. + */ + where: Prisma.checklist_relaisWhereUniqueInput + /** + * In case the checklist_relais found by the `where` argument doesn't exist, create a new checklist_relais with this data. + */ + create: Prisma.XOR + /** + * In case the checklist_relais was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * checklist_relais delete + */ +export type checklist_relaisDeleteArgs = { + /** + * Select specific fields to fetch from the checklist_relais + */ + select?: Prisma.checklist_relaisSelect | null + /** + * Omit specific fields from the checklist_relais + */ + omit?: Prisma.checklist_relaisOmit | null + /** + * Filter which checklist_relais to delete. + */ + where: Prisma.checklist_relaisWhereUniqueInput +} + +/** + * checklist_relais deleteMany + */ +export type checklist_relaisDeleteManyArgs = { + /** + * Filter which checklist_relais to delete + */ + where?: Prisma.checklist_relaisWhereInput + /** + * Limit how many checklist_relais to delete. + */ + limit?: number +} + +/** + * checklist_relais without action + */ +export type checklist_relaisDefaultArgs = { + /** + * Select specific fields to fetch from the checklist_relais + */ + select?: Prisma.checklist_relaisSelect | null + /** + * Omit specific fields from the checklist_relais + */ + omit?: Prisma.checklist_relaisOmit | null +} diff --git a/prisma/generated/mariadb/models/client_pwd.ts b/prisma/generated/mariadb/models/client_pwd.ts new file mode 100644 index 0000000..9de4c32 --- /dev/null +++ b/prisma/generated/mariadb/models/client_pwd.ts @@ -0,0 +1,1091 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `client_pwd` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model client_pwd + * + */ +export type client_pwdModel = runtime.Types.Result.DefaultSelection + +export type AggregateClient_pwd = { + _count: Client_pwdCountAggregateOutputType | null + _avg: Client_pwdAvgAggregateOutputType | null + _sum: Client_pwdSumAggregateOutputType | null + _min: Client_pwdMinAggregateOutputType | null + _max: Client_pwdMaxAggregateOutputType | null +} + +export type Client_pwdAvgAggregateOutputType = { + id: number | null + account_id: number | null + date: number | null +} + +export type Client_pwdSumAggregateOutputType = { + id: number | null + account_id: number | null + date: bigint | null +} + +export type Client_pwdMinAggregateOutputType = { + id: number | null + account_id: number | null + date: bigint | null + uid: string | null + used: boolean | null +} + +export type Client_pwdMaxAggregateOutputType = { + id: number | null + account_id: number | null + date: bigint | null + uid: string | null + used: boolean | null +} + +export type Client_pwdCountAggregateOutputType = { + id: number + account_id: number + date: number + uid: number + used: number + _all: number +} + + +export type Client_pwdAvgAggregateInputType = { + id?: true + account_id?: true + date?: true +} + +export type Client_pwdSumAggregateInputType = { + id?: true + account_id?: true + date?: true +} + +export type Client_pwdMinAggregateInputType = { + id?: true + account_id?: true + date?: true + uid?: true + used?: true +} + +export type Client_pwdMaxAggregateInputType = { + id?: true + account_id?: true + date?: true + uid?: true + used?: true +} + +export type Client_pwdCountAggregateInputType = { + id?: true + account_id?: true + date?: true + uid?: true + used?: true + _all?: true +} + +export type Client_pwdAggregateArgs = { + /** + * Filter which client_pwd to aggregate. + */ + where?: Prisma.client_pwdWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of client_pwds to fetch. + */ + orderBy?: Prisma.client_pwdOrderByWithRelationInput | Prisma.client_pwdOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.client_pwdWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` client_pwds 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` client_pwds. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned client_pwds + **/ + _count?: true | Client_pwdCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Client_pwdAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Client_pwdSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Client_pwdMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Client_pwdMaxAggregateInputType +} + +export type GetClient_pwdAggregateType = { + [P in keyof T & keyof AggregateClient_pwd]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type client_pwdGroupByArgs = { + where?: Prisma.client_pwdWhereInput + orderBy?: Prisma.client_pwdOrderByWithAggregationInput | Prisma.client_pwdOrderByWithAggregationInput[] + by: Prisma.Client_pwdScalarFieldEnum[] | Prisma.Client_pwdScalarFieldEnum + having?: Prisma.client_pwdScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Client_pwdCountAggregateInputType | true + _avg?: Client_pwdAvgAggregateInputType + _sum?: Client_pwdSumAggregateInputType + _min?: Client_pwdMinAggregateInputType + _max?: Client_pwdMaxAggregateInputType +} + +export type Client_pwdGroupByOutputType = { + id: number + account_id: number + date: bigint + uid: string + used: boolean + _count: Client_pwdCountAggregateOutputType | null + _avg: Client_pwdAvgAggregateOutputType | null + _sum: Client_pwdSumAggregateOutputType | null + _min: Client_pwdMinAggregateOutputType | null + _max: Client_pwdMaxAggregateOutputType | null +} + +type GetClient_pwdGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Client_pwdGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type client_pwdWhereInput = { + AND?: Prisma.client_pwdWhereInput | Prisma.client_pwdWhereInput[] + OR?: Prisma.client_pwdWhereInput[] + NOT?: Prisma.client_pwdWhereInput | Prisma.client_pwdWhereInput[] + id?: Prisma.IntFilter<"client_pwd"> | number + account_id?: Prisma.IntFilter<"client_pwd"> | number + date?: Prisma.BigIntFilter<"client_pwd"> | bigint | number + uid?: Prisma.StringFilter<"client_pwd"> | string + used?: Prisma.BoolFilter<"client_pwd"> | boolean +} + +export type client_pwdOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + uid?: Prisma.SortOrder + used?: Prisma.SortOrder + _relevance?: Prisma.client_pwdOrderByRelevanceInput +} + +export type client_pwdWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.client_pwdWhereInput | Prisma.client_pwdWhereInput[] + OR?: Prisma.client_pwdWhereInput[] + NOT?: Prisma.client_pwdWhereInput | Prisma.client_pwdWhereInput[] + account_id?: Prisma.IntFilter<"client_pwd"> | number + date?: Prisma.BigIntFilter<"client_pwd"> | bigint | number + uid?: Prisma.StringFilter<"client_pwd"> | string + used?: Prisma.BoolFilter<"client_pwd"> | boolean +}, "id"> + +export type client_pwdOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + uid?: Prisma.SortOrder + used?: Prisma.SortOrder + _count?: Prisma.client_pwdCountOrderByAggregateInput + _avg?: Prisma.client_pwdAvgOrderByAggregateInput + _max?: Prisma.client_pwdMaxOrderByAggregateInput + _min?: Prisma.client_pwdMinOrderByAggregateInput + _sum?: Prisma.client_pwdSumOrderByAggregateInput +} + +export type client_pwdScalarWhereWithAggregatesInput = { + AND?: Prisma.client_pwdScalarWhereWithAggregatesInput | Prisma.client_pwdScalarWhereWithAggregatesInput[] + OR?: Prisma.client_pwdScalarWhereWithAggregatesInput[] + NOT?: Prisma.client_pwdScalarWhereWithAggregatesInput | Prisma.client_pwdScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"client_pwd"> | number + account_id?: Prisma.IntWithAggregatesFilter<"client_pwd"> | number + date?: Prisma.BigIntWithAggregatesFilter<"client_pwd"> | bigint | number + uid?: Prisma.StringWithAggregatesFilter<"client_pwd"> | string + used?: Prisma.BoolWithAggregatesFilter<"client_pwd"> | boolean +} + +export type client_pwdCreateInput = { + account_id: number + date: bigint | number + uid: string + used?: boolean +} + +export type client_pwdUncheckedCreateInput = { + id?: number + account_id: number + date: bigint | number + uid: string + used?: boolean +} + +export type client_pwdUpdateInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + uid?: Prisma.StringFieldUpdateOperationsInput | string + used?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type client_pwdUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + uid?: Prisma.StringFieldUpdateOperationsInput | string + used?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type client_pwdCreateManyInput = { + id?: number + account_id: number + date: bigint | number + uid: string + used?: boolean +} + +export type client_pwdUpdateManyMutationInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + uid?: Prisma.StringFieldUpdateOperationsInput | string + used?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type client_pwdUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + uid?: Prisma.StringFieldUpdateOperationsInput | string + used?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type client_pwdOrderByRelevanceInput = { + fields: Prisma.client_pwdOrderByRelevanceFieldEnum | Prisma.client_pwdOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type client_pwdCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + uid?: Prisma.SortOrder + used?: Prisma.SortOrder +} + +export type client_pwdAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder +} + +export type client_pwdMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + uid?: Prisma.SortOrder + used?: Prisma.SortOrder +} + +export type client_pwdMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + uid?: Prisma.SortOrder + used?: Prisma.SortOrder +} + +export type client_pwdSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder +} + + + +export type client_pwdSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + date?: boolean + uid?: boolean + used?: boolean +}, ExtArgs["result"]["client_pwd"]> + + + +export type client_pwdSelectScalar = { + id?: boolean + account_id?: boolean + date?: boolean + uid?: boolean + used?: boolean +} + +export type client_pwdOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date" | "uid" | "used", ExtArgs["result"]["client_pwd"]> + +export type $client_pwdPayload = { + name: "client_pwd" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: number + date: bigint + uid: string + used: boolean + }, ExtArgs["result"]["client_pwd"]> + composites: {} +} + +export type client_pwdGetPayload = runtime.Types.Result.GetResult + +export type client_pwdCountArgs = + Omit & { + select?: Client_pwdCountAggregateInputType | true + } + +export interface client_pwdDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['client_pwd'], meta: { name: 'client_pwd' } } + /** + * Find zero or one Client_pwd that matches the filter. + * @param {client_pwdFindUniqueArgs} args - Arguments to find a Client_pwd + * @example + * // Get one Client_pwd + * const client_pwd = await prisma.client_pwd.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__client_pwdClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Client_pwd that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {client_pwdFindUniqueOrThrowArgs} args - Arguments to find a Client_pwd + * @example + * // Get one Client_pwd + * const client_pwd = await prisma.client_pwd.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__client_pwdClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Client_pwd 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 {client_pwdFindFirstArgs} args - Arguments to find a Client_pwd + * @example + * // Get one Client_pwd + * const client_pwd = await prisma.client_pwd.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__client_pwdClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Client_pwd 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 {client_pwdFindFirstOrThrowArgs} args - Arguments to find a Client_pwd + * @example + * // Get one Client_pwd + * const client_pwd = await prisma.client_pwd.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__client_pwdClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Client_pwds 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 {client_pwdFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Client_pwds + * const client_pwds = await prisma.client_pwd.findMany() + * + * // Get first 10 Client_pwds + * const client_pwds = await prisma.client_pwd.findMany({ take: 10 }) + * + * // Only select the `id` + * const client_pwdWithIdOnly = await prisma.client_pwd.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Client_pwd. + * @param {client_pwdCreateArgs} args - Arguments to create a Client_pwd. + * @example + * // Create one Client_pwd + * const Client_pwd = await prisma.client_pwd.create({ + * data: { + * // ... data to create a Client_pwd + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__client_pwdClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Client_pwds. + * @param {client_pwdCreateManyArgs} args - Arguments to create many Client_pwds. + * @example + * // Create many Client_pwds + * const client_pwd = await prisma.client_pwd.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Client_pwd. + * @param {client_pwdDeleteArgs} args - Arguments to delete one Client_pwd. + * @example + * // Delete one Client_pwd + * const Client_pwd = await prisma.client_pwd.delete({ + * where: { + * // ... filter to delete one Client_pwd + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__client_pwdClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Client_pwd. + * @param {client_pwdUpdateArgs} args - Arguments to update one Client_pwd. + * @example + * // Update one Client_pwd + * const client_pwd = await prisma.client_pwd.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__client_pwdClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Client_pwds. + * @param {client_pwdDeleteManyArgs} args - Arguments to filter Client_pwds to delete. + * @example + * // Delete a few Client_pwds + * const { count } = await prisma.client_pwd.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Client_pwds. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {client_pwdUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Client_pwds + * const client_pwd = await prisma.client_pwd.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Client_pwd. + * @param {client_pwdUpsertArgs} args - Arguments to update or create a Client_pwd. + * @example + * // Update or create a Client_pwd + * const client_pwd = await prisma.client_pwd.upsert({ + * create: { + * // ... data to create a Client_pwd + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Client_pwd we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__client_pwdClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Client_pwds. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {client_pwdCountArgs} args - Arguments to filter Client_pwds to count. + * @example + * // Count the number of Client_pwds + * const count = await prisma.client_pwd.count({ + * where: { + * // ... the filter for the Client_pwds 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 Client_pwd. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Client_pwdAggregateArgs} 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 Client_pwd. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {client_pwdGroupByArgs} 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 client_pwdGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: client_pwdGroupByArgs['orderBy'] } + : { orderBy?: client_pwdGroupByArgs['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 ? GetClient_pwdGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the client_pwd model + */ +readonly fields: client_pwdFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for client_pwd. + * 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__client_pwdClient 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 client_pwd model + */ +export interface client_pwdFieldRefs { + readonly id: Prisma.FieldRef<"client_pwd", 'Int'> + readonly account_id: Prisma.FieldRef<"client_pwd", 'Int'> + readonly date: Prisma.FieldRef<"client_pwd", 'BigInt'> + readonly uid: Prisma.FieldRef<"client_pwd", 'String'> + readonly used: Prisma.FieldRef<"client_pwd", 'Boolean'> +} + + +// Custom InputTypes +/** + * client_pwd findUnique + */ +export type client_pwdFindUniqueArgs = { + /** + * Select specific fields to fetch from the client_pwd + */ + select?: Prisma.client_pwdSelect | null + /** + * Omit specific fields from the client_pwd + */ + omit?: Prisma.client_pwdOmit | null + /** + * Filter, which client_pwd to fetch. + */ + where: Prisma.client_pwdWhereUniqueInput +} + +/** + * client_pwd findUniqueOrThrow + */ +export type client_pwdFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the client_pwd + */ + select?: Prisma.client_pwdSelect | null + /** + * Omit specific fields from the client_pwd + */ + omit?: Prisma.client_pwdOmit | null + /** + * Filter, which client_pwd to fetch. + */ + where: Prisma.client_pwdWhereUniqueInput +} + +/** + * client_pwd findFirst + */ +export type client_pwdFindFirstArgs = { + /** + * Select specific fields to fetch from the client_pwd + */ + select?: Prisma.client_pwdSelect | null + /** + * Omit specific fields from the client_pwd + */ + omit?: Prisma.client_pwdOmit | null + /** + * Filter, which client_pwd to fetch. + */ + where?: Prisma.client_pwdWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of client_pwds to fetch. + */ + orderBy?: Prisma.client_pwdOrderByWithRelationInput | Prisma.client_pwdOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for client_pwds. + */ + cursor?: Prisma.client_pwdWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` client_pwds 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` client_pwds. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of client_pwds. + */ + distinct?: Prisma.Client_pwdScalarFieldEnum | Prisma.Client_pwdScalarFieldEnum[] +} + +/** + * client_pwd findFirstOrThrow + */ +export type client_pwdFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the client_pwd + */ + select?: Prisma.client_pwdSelect | null + /** + * Omit specific fields from the client_pwd + */ + omit?: Prisma.client_pwdOmit | null + /** + * Filter, which client_pwd to fetch. + */ + where?: Prisma.client_pwdWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of client_pwds to fetch. + */ + orderBy?: Prisma.client_pwdOrderByWithRelationInput | Prisma.client_pwdOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for client_pwds. + */ + cursor?: Prisma.client_pwdWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` client_pwds 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` client_pwds. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of client_pwds. + */ + distinct?: Prisma.Client_pwdScalarFieldEnum | Prisma.Client_pwdScalarFieldEnum[] +} + +/** + * client_pwd findMany + */ +export type client_pwdFindManyArgs = { + /** + * Select specific fields to fetch from the client_pwd + */ + select?: Prisma.client_pwdSelect | null + /** + * Omit specific fields from the client_pwd + */ + omit?: Prisma.client_pwdOmit | null + /** + * Filter, which client_pwds to fetch. + */ + where?: Prisma.client_pwdWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of client_pwds to fetch. + */ + orderBy?: Prisma.client_pwdOrderByWithRelationInput | Prisma.client_pwdOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing client_pwds. + */ + cursor?: Prisma.client_pwdWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` client_pwds 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` client_pwds. + */ + skip?: number + distinct?: Prisma.Client_pwdScalarFieldEnum | Prisma.Client_pwdScalarFieldEnum[] +} + +/** + * client_pwd create + */ +export type client_pwdCreateArgs = { + /** + * Select specific fields to fetch from the client_pwd + */ + select?: Prisma.client_pwdSelect | null + /** + * Omit specific fields from the client_pwd + */ + omit?: Prisma.client_pwdOmit | null + /** + * The data needed to create a client_pwd. + */ + data: Prisma.XOR +} + +/** + * client_pwd createMany + */ +export type client_pwdCreateManyArgs = { + /** + * The data used to create many client_pwds. + */ + data: Prisma.client_pwdCreateManyInput | Prisma.client_pwdCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * client_pwd update + */ +export type client_pwdUpdateArgs = { + /** + * Select specific fields to fetch from the client_pwd + */ + select?: Prisma.client_pwdSelect | null + /** + * Omit specific fields from the client_pwd + */ + omit?: Prisma.client_pwdOmit | null + /** + * The data needed to update a client_pwd. + */ + data: Prisma.XOR + /** + * Choose, which client_pwd to update. + */ + where: Prisma.client_pwdWhereUniqueInput +} + +/** + * client_pwd updateMany + */ +export type client_pwdUpdateManyArgs = { + /** + * The data used to update client_pwds. + */ + data: Prisma.XOR + /** + * Filter which client_pwds to update + */ + where?: Prisma.client_pwdWhereInput + /** + * Limit how many client_pwds to update. + */ + limit?: number +} + +/** + * client_pwd upsert + */ +export type client_pwdUpsertArgs = { + /** + * Select specific fields to fetch from the client_pwd + */ + select?: Prisma.client_pwdSelect | null + /** + * Omit specific fields from the client_pwd + */ + omit?: Prisma.client_pwdOmit | null + /** + * The filter to search for the client_pwd to update in case it exists. + */ + where: Prisma.client_pwdWhereUniqueInput + /** + * In case the client_pwd found by the `where` argument doesn't exist, create a new client_pwd with this data. + */ + create: Prisma.XOR + /** + * In case the client_pwd was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * client_pwd delete + */ +export type client_pwdDeleteArgs = { + /** + * Select specific fields to fetch from the client_pwd + */ + select?: Prisma.client_pwdSelect | null + /** + * Omit specific fields from the client_pwd + */ + omit?: Prisma.client_pwdOmit | null + /** + * Filter which client_pwd to delete. + */ + where: Prisma.client_pwdWhereUniqueInput +} + +/** + * client_pwd deleteMany + */ +export type client_pwdDeleteManyArgs = { + /** + * Filter which client_pwds to delete + */ + where?: Prisma.client_pwdWhereInput + /** + * Limit how many client_pwds to delete. + */ + limit?: number +} + +/** + * client_pwd without action + */ +export type client_pwdDefaultArgs = { + /** + * Select specific fields to fetch from the client_pwd + */ + select?: Prisma.client_pwdSelect | null + /** + * Omit specific fields from the client_pwd + */ + omit?: Prisma.client_pwdOmit | null +} diff --git a/prisma/generated/mariadb/models/compta_comptes.ts b/prisma/generated/mariadb/models/compta_comptes.ts new file mode 100644 index 0000000..8b8cb8f --- /dev/null +++ b/prisma/generated/mariadb/models/compta_comptes.ts @@ -0,0 +1,1056 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `compta_comptes` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model compta_comptes + * + */ +export type compta_comptesModel = runtime.Types.Result.DefaultSelection + +export type AggregateCompta_comptes = { + _count: Compta_comptesCountAggregateOutputType | null + _avg: Compta_comptesAvgAggregateOutputType | null + _sum: Compta_comptesSumAggregateOutputType | null + _min: Compta_comptesMinAggregateOutputType | null + _max: Compta_comptesMaxAggregateOutputType | null +} + +export type Compta_comptesAvgAggregateOutputType = { + id: number | null +} + +export type Compta_comptesSumAggregateOutputType = { + id: bigint | null +} + +export type Compta_comptesMinAggregateOutputType = { + id: bigint | null + category: string | null + num_compte: string | null + desc: string | null +} + +export type Compta_comptesMaxAggregateOutputType = { + id: bigint | null + category: string | null + num_compte: string | null + desc: string | null +} + +export type Compta_comptesCountAggregateOutputType = { + id: number + category: number + num_compte: number + desc: number + _all: number +} + + +export type Compta_comptesAvgAggregateInputType = { + id?: true +} + +export type Compta_comptesSumAggregateInputType = { + id?: true +} + +export type Compta_comptesMinAggregateInputType = { + id?: true + category?: true + num_compte?: true + desc?: true +} + +export type Compta_comptesMaxAggregateInputType = { + id?: true + category?: true + num_compte?: true + desc?: true +} + +export type Compta_comptesCountAggregateInputType = { + id?: true + category?: true + num_compte?: true + desc?: true + _all?: true +} + +export type Compta_comptesAggregateArgs = { + /** + * Filter which compta_comptes to aggregate. + */ + where?: Prisma.compta_comptesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_comptes to fetch. + */ + orderBy?: Prisma.compta_comptesOrderByWithRelationInput | Prisma.compta_comptesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.compta_comptesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_comptes 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` compta_comptes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned compta_comptes + **/ + _count?: true | Compta_comptesCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Compta_comptesAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Compta_comptesSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Compta_comptesMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Compta_comptesMaxAggregateInputType +} + +export type GetCompta_comptesAggregateType = { + [P in keyof T & keyof AggregateCompta_comptes]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type compta_comptesGroupByArgs = { + where?: Prisma.compta_comptesWhereInput + orderBy?: Prisma.compta_comptesOrderByWithAggregationInput | Prisma.compta_comptesOrderByWithAggregationInput[] + by: Prisma.Compta_comptesScalarFieldEnum[] | Prisma.Compta_comptesScalarFieldEnum + having?: Prisma.compta_comptesScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Compta_comptesCountAggregateInputType | true + _avg?: Compta_comptesAvgAggregateInputType + _sum?: Compta_comptesSumAggregateInputType + _min?: Compta_comptesMinAggregateInputType + _max?: Compta_comptesMaxAggregateInputType +} + +export type Compta_comptesGroupByOutputType = { + id: bigint + category: string | null + num_compte: string | null + desc: string | null + _count: Compta_comptesCountAggregateOutputType | null + _avg: Compta_comptesAvgAggregateOutputType | null + _sum: Compta_comptesSumAggregateOutputType | null + _min: Compta_comptesMinAggregateOutputType | null + _max: Compta_comptesMaxAggregateOutputType | null +} + +type GetCompta_comptesGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Compta_comptesGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type compta_comptesWhereInput = { + AND?: Prisma.compta_comptesWhereInput | Prisma.compta_comptesWhereInput[] + OR?: Prisma.compta_comptesWhereInput[] + NOT?: Prisma.compta_comptesWhereInput | Prisma.compta_comptesWhereInput[] + id?: Prisma.BigIntFilter<"compta_comptes"> | bigint | number + category?: Prisma.StringNullableFilter<"compta_comptes"> | string | null + num_compte?: Prisma.StringNullableFilter<"compta_comptes"> | string | null + desc?: Prisma.StringNullableFilter<"compta_comptes"> | string | null +} + +export type compta_comptesOrderByWithRelationInput = { + id?: Prisma.SortOrder + category?: Prisma.SortOrderInput | Prisma.SortOrder + num_compte?: Prisma.SortOrderInput | Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.compta_comptesOrderByRelevanceInput +} + +export type compta_comptesWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.compta_comptesWhereInput | Prisma.compta_comptesWhereInput[] + OR?: Prisma.compta_comptesWhereInput[] + NOT?: Prisma.compta_comptesWhereInput | Prisma.compta_comptesWhereInput[] + category?: Prisma.StringNullableFilter<"compta_comptes"> | string | null + num_compte?: Prisma.StringNullableFilter<"compta_comptes"> | string | null + desc?: Prisma.StringNullableFilter<"compta_comptes"> | string | null +}, "id"> + +export type compta_comptesOrderByWithAggregationInput = { + id?: Prisma.SortOrder + category?: Prisma.SortOrderInput | Prisma.SortOrder + num_compte?: Prisma.SortOrderInput | Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.compta_comptesCountOrderByAggregateInput + _avg?: Prisma.compta_comptesAvgOrderByAggregateInput + _max?: Prisma.compta_comptesMaxOrderByAggregateInput + _min?: Prisma.compta_comptesMinOrderByAggregateInput + _sum?: Prisma.compta_comptesSumOrderByAggregateInput +} + +export type compta_comptesScalarWhereWithAggregatesInput = { + AND?: Prisma.compta_comptesScalarWhereWithAggregatesInput | Prisma.compta_comptesScalarWhereWithAggregatesInput[] + OR?: Prisma.compta_comptesScalarWhereWithAggregatesInput[] + NOT?: Prisma.compta_comptesScalarWhereWithAggregatesInput | Prisma.compta_comptesScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"compta_comptes"> | bigint | number + category?: Prisma.StringNullableWithAggregatesFilter<"compta_comptes"> | string | null + num_compte?: Prisma.StringNullableWithAggregatesFilter<"compta_comptes"> | string | null + desc?: Prisma.StringNullableWithAggregatesFilter<"compta_comptes"> | string | null +} + +export type compta_comptesCreateInput = { + id?: bigint | number + category?: string | null + num_compte?: string | null + desc?: string | null +} + +export type compta_comptesUncheckedCreateInput = { + id?: bigint | number + category?: string | null + num_compte?: string | null + desc?: string | null +} + +export type compta_comptesUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + num_compte?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_comptesUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + num_compte?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_comptesCreateManyInput = { + id?: bigint | number + category?: string | null + num_compte?: string | null + desc?: string | null +} + +export type compta_comptesUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + num_compte?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_comptesUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + num_compte?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_comptesOrderByRelevanceInput = { + fields: Prisma.compta_comptesOrderByRelevanceFieldEnum | Prisma.compta_comptesOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type compta_comptesCountOrderByAggregateInput = { + id?: Prisma.SortOrder + category?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + desc?: Prisma.SortOrder +} + +export type compta_comptesAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type compta_comptesMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + category?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + desc?: Prisma.SortOrder +} + +export type compta_comptesMinOrderByAggregateInput = { + id?: Prisma.SortOrder + category?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + desc?: Prisma.SortOrder +} + +export type compta_comptesSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type compta_comptesSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + category?: boolean + num_compte?: boolean + desc?: boolean +}, ExtArgs["result"]["compta_comptes"]> + + + +export type compta_comptesSelectScalar = { + id?: boolean + category?: boolean + num_compte?: boolean + desc?: boolean +} + +export type compta_comptesOmit = runtime.Types.Extensions.GetOmit<"id" | "category" | "num_compte" | "desc", ExtArgs["result"]["compta_comptes"]> + +export type $compta_comptesPayload = { + name: "compta_comptes" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + category: string | null + num_compte: string | null + desc: string | null + }, ExtArgs["result"]["compta_comptes"]> + composites: {} +} + +export type compta_comptesGetPayload = runtime.Types.Result.GetResult + +export type compta_comptesCountArgs = + Omit & { + select?: Compta_comptesCountAggregateInputType | true + } + +export interface compta_comptesDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['compta_comptes'], meta: { name: 'compta_comptes' } } + /** + * Find zero or one Compta_comptes that matches the filter. + * @param {compta_comptesFindUniqueArgs} args - Arguments to find a Compta_comptes + * @example + * // Get one Compta_comptes + * const compta_comptes = await prisma.compta_comptes.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__compta_comptesClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Compta_comptes that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {compta_comptesFindUniqueOrThrowArgs} args - Arguments to find a Compta_comptes + * @example + * // Get one Compta_comptes + * const compta_comptes = await prisma.compta_comptes.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__compta_comptesClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_comptes 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 {compta_comptesFindFirstArgs} args - Arguments to find a Compta_comptes + * @example + * // Get one Compta_comptes + * const compta_comptes = await prisma.compta_comptes.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_comptesClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_comptes 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 {compta_comptesFindFirstOrThrowArgs} args - Arguments to find a Compta_comptes + * @example + * // Get one Compta_comptes + * const compta_comptes = await prisma.compta_comptes.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_comptesClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Compta_comptes 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 {compta_comptesFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Compta_comptes + * const compta_comptes = await prisma.compta_comptes.findMany() + * + * // Get first 10 Compta_comptes + * const compta_comptes = await prisma.compta_comptes.findMany({ take: 10 }) + * + * // Only select the `id` + * const compta_comptesWithIdOnly = await prisma.compta_comptes.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Compta_comptes. + * @param {compta_comptesCreateArgs} args - Arguments to create a Compta_comptes. + * @example + * // Create one Compta_comptes + * const Compta_comptes = await prisma.compta_comptes.create({ + * data: { + * // ... data to create a Compta_comptes + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__compta_comptesClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Compta_comptes. + * @param {compta_comptesCreateManyArgs} args - Arguments to create many Compta_comptes. + * @example + * // Create many Compta_comptes + * const compta_comptes = await prisma.compta_comptes.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Compta_comptes. + * @param {compta_comptesDeleteArgs} args - Arguments to delete one Compta_comptes. + * @example + * // Delete one Compta_comptes + * const Compta_comptes = await prisma.compta_comptes.delete({ + * where: { + * // ... filter to delete one Compta_comptes + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__compta_comptesClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Compta_comptes. + * @param {compta_comptesUpdateArgs} args - Arguments to update one Compta_comptes. + * @example + * // Update one Compta_comptes + * const compta_comptes = await prisma.compta_comptes.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__compta_comptesClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Compta_comptes. + * @param {compta_comptesDeleteManyArgs} args - Arguments to filter Compta_comptes to delete. + * @example + * // Delete a few Compta_comptes + * const { count } = await prisma.compta_comptes.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Compta_comptes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_comptesUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Compta_comptes + * const compta_comptes = await prisma.compta_comptes.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Compta_comptes. + * @param {compta_comptesUpsertArgs} args - Arguments to update or create a Compta_comptes. + * @example + * // Update or create a Compta_comptes + * const compta_comptes = await prisma.compta_comptes.upsert({ + * create: { + * // ... data to create a Compta_comptes + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Compta_comptes we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__compta_comptesClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Compta_comptes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_comptesCountArgs} args - Arguments to filter Compta_comptes to count. + * @example + * // Count the number of Compta_comptes + * const count = await prisma.compta_comptes.count({ + * where: { + * // ... the filter for the Compta_comptes 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 Compta_comptes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Compta_comptesAggregateArgs} 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 Compta_comptes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_comptesGroupByArgs} 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 compta_comptesGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: compta_comptesGroupByArgs['orderBy'] } + : { orderBy?: compta_comptesGroupByArgs['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 ? GetCompta_comptesGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the compta_comptes model + */ +readonly fields: compta_comptesFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for compta_comptes. + * 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__compta_comptesClient 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 compta_comptes model + */ +export interface compta_comptesFieldRefs { + readonly id: Prisma.FieldRef<"compta_comptes", 'BigInt'> + readonly category: Prisma.FieldRef<"compta_comptes", 'String'> + readonly num_compte: Prisma.FieldRef<"compta_comptes", 'String'> + readonly desc: Prisma.FieldRef<"compta_comptes", 'String'> +} + + +// Custom InputTypes +/** + * compta_comptes findUnique + */ +export type compta_comptesFindUniqueArgs = { + /** + * Select specific fields to fetch from the compta_comptes + */ + select?: Prisma.compta_comptesSelect | null + /** + * Omit specific fields from the compta_comptes + */ + omit?: Prisma.compta_comptesOmit | null + /** + * Filter, which compta_comptes to fetch. + */ + where: Prisma.compta_comptesWhereUniqueInput +} + +/** + * compta_comptes findUniqueOrThrow + */ +export type compta_comptesFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_comptes + */ + select?: Prisma.compta_comptesSelect | null + /** + * Omit specific fields from the compta_comptes + */ + omit?: Prisma.compta_comptesOmit | null + /** + * Filter, which compta_comptes to fetch. + */ + where: Prisma.compta_comptesWhereUniqueInput +} + +/** + * compta_comptes findFirst + */ +export type compta_comptesFindFirstArgs = { + /** + * Select specific fields to fetch from the compta_comptes + */ + select?: Prisma.compta_comptesSelect | null + /** + * Omit specific fields from the compta_comptes + */ + omit?: Prisma.compta_comptesOmit | null + /** + * Filter, which compta_comptes to fetch. + */ + where?: Prisma.compta_comptesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_comptes to fetch. + */ + orderBy?: Prisma.compta_comptesOrderByWithRelationInput | Prisma.compta_comptesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_comptes. + */ + cursor?: Prisma.compta_comptesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_comptes 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` compta_comptes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_comptes. + */ + distinct?: Prisma.Compta_comptesScalarFieldEnum | Prisma.Compta_comptesScalarFieldEnum[] +} + +/** + * compta_comptes findFirstOrThrow + */ +export type compta_comptesFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_comptes + */ + select?: Prisma.compta_comptesSelect | null + /** + * Omit specific fields from the compta_comptes + */ + omit?: Prisma.compta_comptesOmit | null + /** + * Filter, which compta_comptes to fetch. + */ + where?: Prisma.compta_comptesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_comptes to fetch. + */ + orderBy?: Prisma.compta_comptesOrderByWithRelationInput | Prisma.compta_comptesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_comptes. + */ + cursor?: Prisma.compta_comptesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_comptes 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` compta_comptes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_comptes. + */ + distinct?: Prisma.Compta_comptesScalarFieldEnum | Prisma.Compta_comptesScalarFieldEnum[] +} + +/** + * compta_comptes findMany + */ +export type compta_comptesFindManyArgs = { + /** + * Select specific fields to fetch from the compta_comptes + */ + select?: Prisma.compta_comptesSelect | null + /** + * Omit specific fields from the compta_comptes + */ + omit?: Prisma.compta_comptesOmit | null + /** + * Filter, which compta_comptes to fetch. + */ + where?: Prisma.compta_comptesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_comptes to fetch. + */ + orderBy?: Prisma.compta_comptesOrderByWithRelationInput | Prisma.compta_comptesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing compta_comptes. + */ + cursor?: Prisma.compta_comptesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_comptes 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` compta_comptes. + */ + skip?: number + distinct?: Prisma.Compta_comptesScalarFieldEnum | Prisma.Compta_comptesScalarFieldEnum[] +} + +/** + * compta_comptes create + */ +export type compta_comptesCreateArgs = { + /** + * Select specific fields to fetch from the compta_comptes + */ + select?: Prisma.compta_comptesSelect | null + /** + * Omit specific fields from the compta_comptes + */ + omit?: Prisma.compta_comptesOmit | null + /** + * The data needed to create a compta_comptes. + */ + data?: Prisma.XOR +} + +/** + * compta_comptes createMany + */ +export type compta_comptesCreateManyArgs = { + /** + * The data used to create many compta_comptes. + */ + data: Prisma.compta_comptesCreateManyInput | Prisma.compta_comptesCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * compta_comptes update + */ +export type compta_comptesUpdateArgs = { + /** + * Select specific fields to fetch from the compta_comptes + */ + select?: Prisma.compta_comptesSelect | null + /** + * Omit specific fields from the compta_comptes + */ + omit?: Prisma.compta_comptesOmit | null + /** + * The data needed to update a compta_comptes. + */ + data: Prisma.XOR + /** + * Choose, which compta_comptes to update. + */ + where: Prisma.compta_comptesWhereUniqueInput +} + +/** + * compta_comptes updateMany + */ +export type compta_comptesUpdateManyArgs = { + /** + * The data used to update compta_comptes. + */ + data: Prisma.XOR + /** + * Filter which compta_comptes to update + */ + where?: Prisma.compta_comptesWhereInput + /** + * Limit how many compta_comptes to update. + */ + limit?: number +} + +/** + * compta_comptes upsert + */ +export type compta_comptesUpsertArgs = { + /** + * Select specific fields to fetch from the compta_comptes + */ + select?: Prisma.compta_comptesSelect | null + /** + * Omit specific fields from the compta_comptes + */ + omit?: Prisma.compta_comptesOmit | null + /** + * The filter to search for the compta_comptes to update in case it exists. + */ + where: Prisma.compta_comptesWhereUniqueInput + /** + * In case the compta_comptes found by the `where` argument doesn't exist, create a new compta_comptes with this data. + */ + create: Prisma.XOR + /** + * In case the compta_comptes was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * compta_comptes delete + */ +export type compta_comptesDeleteArgs = { + /** + * Select specific fields to fetch from the compta_comptes + */ + select?: Prisma.compta_comptesSelect | null + /** + * Omit specific fields from the compta_comptes + */ + omit?: Prisma.compta_comptesOmit | null + /** + * Filter which compta_comptes to delete. + */ + where: Prisma.compta_comptesWhereUniqueInput +} + +/** + * compta_comptes deleteMany + */ +export type compta_comptesDeleteManyArgs = { + /** + * Filter which compta_comptes to delete + */ + where?: Prisma.compta_comptesWhereInput + /** + * Limit how many compta_comptes to delete. + */ + limit?: number +} + +/** + * compta_comptes without action + */ +export type compta_comptesDefaultArgs = { + /** + * Select specific fields to fetch from the compta_comptes + */ + select?: Prisma.compta_comptesSelect | null + /** + * Omit specific fields from the compta_comptes + */ + omit?: Prisma.compta_comptesOmit | null +} diff --git a/prisma/generated/mariadb/models/compta_comptes_soldes.ts b/prisma/generated/mariadb/models/compta_comptes_soldes.ts new file mode 100644 index 0000000..19952c3 --- /dev/null +++ b/prisma/generated/mariadb/models/compta_comptes_soldes.ts @@ -0,0 +1,1126 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `compta_comptes_soldes` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model compta_comptes_soldes + * + */ +export type compta_comptes_soldesModel = runtime.Types.Result.DefaultSelection + +export type AggregateCompta_comptes_soldes = { + _count: Compta_comptes_soldesCountAggregateOutputType | null + _avg: Compta_comptes_soldesAvgAggregateOutputType | null + _sum: Compta_comptes_soldesSumAggregateOutputType | null + _min: Compta_comptes_soldesMinAggregateOutputType | null + _max: Compta_comptes_soldesMaxAggregateOutputType | null +} + +export type Compta_comptes_soldesAvgAggregateOutputType = { + id: number | null + num_compte: number | null + year: number | null + amount: number | null +} + +export type Compta_comptes_soldesSumAggregateOutputType = { + id: bigint | null + num_compte: number | null + year: number | null + amount: number | null +} + +export type Compta_comptes_soldesMinAggregateOutputType = { + id: bigint | null + num_compte: number | null + year: number | null + amount: number | null + comment: string | null + type: string | null +} + +export type Compta_comptes_soldesMaxAggregateOutputType = { + id: bigint | null + num_compte: number | null + year: number | null + amount: number | null + comment: string | null + type: string | null +} + +export type Compta_comptes_soldesCountAggregateOutputType = { + id: number + num_compte: number + year: number + amount: number + comment: number + type: number + _all: number +} + + +export type Compta_comptes_soldesAvgAggregateInputType = { + id?: true + num_compte?: true + year?: true + amount?: true +} + +export type Compta_comptes_soldesSumAggregateInputType = { + id?: true + num_compte?: true + year?: true + amount?: true +} + +export type Compta_comptes_soldesMinAggregateInputType = { + id?: true + num_compte?: true + year?: true + amount?: true + comment?: true + type?: true +} + +export type Compta_comptes_soldesMaxAggregateInputType = { + id?: true + num_compte?: true + year?: true + amount?: true + comment?: true + type?: true +} + +export type Compta_comptes_soldesCountAggregateInputType = { + id?: true + num_compte?: true + year?: true + amount?: true + comment?: true + type?: true + _all?: true +} + +export type Compta_comptes_soldesAggregateArgs = { + /** + * Filter which compta_comptes_soldes to aggregate. + */ + where?: Prisma.compta_comptes_soldesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_comptes_soldes to fetch. + */ + orderBy?: Prisma.compta_comptes_soldesOrderByWithRelationInput | Prisma.compta_comptes_soldesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.compta_comptes_soldesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_comptes_soldes 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` compta_comptes_soldes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned compta_comptes_soldes + **/ + _count?: true | Compta_comptes_soldesCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Compta_comptes_soldesAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Compta_comptes_soldesSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Compta_comptes_soldesMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Compta_comptes_soldesMaxAggregateInputType +} + +export type GetCompta_comptes_soldesAggregateType = { + [P in keyof T & keyof AggregateCompta_comptes_soldes]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type compta_comptes_soldesGroupByArgs = { + where?: Prisma.compta_comptes_soldesWhereInput + orderBy?: Prisma.compta_comptes_soldesOrderByWithAggregationInput | Prisma.compta_comptes_soldesOrderByWithAggregationInput[] + by: Prisma.Compta_comptes_soldesScalarFieldEnum[] | Prisma.Compta_comptes_soldesScalarFieldEnum + having?: Prisma.compta_comptes_soldesScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Compta_comptes_soldesCountAggregateInputType | true + _avg?: Compta_comptes_soldesAvgAggregateInputType + _sum?: Compta_comptes_soldesSumAggregateInputType + _min?: Compta_comptes_soldesMinAggregateInputType + _max?: Compta_comptes_soldesMaxAggregateInputType +} + +export type Compta_comptes_soldesGroupByOutputType = { + id: bigint + num_compte: number + year: number + amount: number + comment: string + type: string + _count: Compta_comptes_soldesCountAggregateOutputType | null + _avg: Compta_comptes_soldesAvgAggregateOutputType | null + _sum: Compta_comptes_soldesSumAggregateOutputType | null + _min: Compta_comptes_soldesMinAggregateOutputType | null + _max: Compta_comptes_soldesMaxAggregateOutputType | null +} + +type GetCompta_comptes_soldesGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Compta_comptes_soldesGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type compta_comptes_soldesWhereInput = { + AND?: Prisma.compta_comptes_soldesWhereInput | Prisma.compta_comptes_soldesWhereInput[] + OR?: Prisma.compta_comptes_soldesWhereInput[] + NOT?: Prisma.compta_comptes_soldesWhereInput | Prisma.compta_comptes_soldesWhereInput[] + id?: Prisma.BigIntFilter<"compta_comptes_soldes"> | bigint | number + num_compte?: Prisma.IntFilter<"compta_comptes_soldes"> | number + year?: Prisma.IntFilter<"compta_comptes_soldes"> | number + amount?: Prisma.FloatFilter<"compta_comptes_soldes"> | number + comment?: Prisma.StringFilter<"compta_comptes_soldes"> | string + type?: Prisma.StringFilter<"compta_comptes_soldes"> | string +} + +export type compta_comptes_soldesOrderByWithRelationInput = { + id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + year?: Prisma.SortOrder + amount?: Prisma.SortOrder + comment?: Prisma.SortOrder + type?: Prisma.SortOrder + _relevance?: Prisma.compta_comptes_soldesOrderByRelevanceInput +} + +export type compta_comptes_soldesWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.compta_comptes_soldesWhereInput | Prisma.compta_comptes_soldesWhereInput[] + OR?: Prisma.compta_comptes_soldesWhereInput[] + NOT?: Prisma.compta_comptes_soldesWhereInput | Prisma.compta_comptes_soldesWhereInput[] + num_compte?: Prisma.IntFilter<"compta_comptes_soldes"> | number + year?: Prisma.IntFilter<"compta_comptes_soldes"> | number + amount?: Prisma.FloatFilter<"compta_comptes_soldes"> | number + comment?: Prisma.StringFilter<"compta_comptes_soldes"> | string + type?: Prisma.StringFilter<"compta_comptes_soldes"> | string +}, "id"> + +export type compta_comptes_soldesOrderByWithAggregationInput = { + id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + year?: Prisma.SortOrder + amount?: Prisma.SortOrder + comment?: Prisma.SortOrder + type?: Prisma.SortOrder + _count?: Prisma.compta_comptes_soldesCountOrderByAggregateInput + _avg?: Prisma.compta_comptes_soldesAvgOrderByAggregateInput + _max?: Prisma.compta_comptes_soldesMaxOrderByAggregateInput + _min?: Prisma.compta_comptes_soldesMinOrderByAggregateInput + _sum?: Prisma.compta_comptes_soldesSumOrderByAggregateInput +} + +export type compta_comptes_soldesScalarWhereWithAggregatesInput = { + AND?: Prisma.compta_comptes_soldesScalarWhereWithAggregatesInput | Prisma.compta_comptes_soldesScalarWhereWithAggregatesInput[] + OR?: Prisma.compta_comptes_soldesScalarWhereWithAggregatesInput[] + NOT?: Prisma.compta_comptes_soldesScalarWhereWithAggregatesInput | Prisma.compta_comptes_soldesScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"compta_comptes_soldes"> | bigint | number + num_compte?: Prisma.IntWithAggregatesFilter<"compta_comptes_soldes"> | number + year?: Prisma.IntWithAggregatesFilter<"compta_comptes_soldes"> | number + amount?: Prisma.FloatWithAggregatesFilter<"compta_comptes_soldes"> | number + comment?: Prisma.StringWithAggregatesFilter<"compta_comptes_soldes"> | string + type?: Prisma.StringWithAggregatesFilter<"compta_comptes_soldes"> | string +} + +export type compta_comptes_soldesCreateInput = { + id?: bigint | number + num_compte: number + year: number + amount: number + comment: string + type: string +} + +export type compta_comptes_soldesUncheckedCreateInput = { + id?: bigint | number + num_compte: number + year: number + amount: number + comment: string + type: string +} + +export type compta_comptes_soldesUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + num_compte?: Prisma.IntFieldUpdateOperationsInput | number + year?: Prisma.IntFieldUpdateOperationsInput | number + amount?: Prisma.FloatFieldUpdateOperationsInput | number + comment?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type compta_comptes_soldesUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + num_compte?: Prisma.IntFieldUpdateOperationsInput | number + year?: Prisma.IntFieldUpdateOperationsInput | number + amount?: Prisma.FloatFieldUpdateOperationsInput | number + comment?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type compta_comptes_soldesCreateManyInput = { + id?: bigint | number + num_compte: number + year: number + amount: number + comment: string + type: string +} + +export type compta_comptes_soldesUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + num_compte?: Prisma.IntFieldUpdateOperationsInput | number + year?: Prisma.IntFieldUpdateOperationsInput | number + amount?: Prisma.FloatFieldUpdateOperationsInput | number + comment?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type compta_comptes_soldesUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + num_compte?: Prisma.IntFieldUpdateOperationsInput | number + year?: Prisma.IntFieldUpdateOperationsInput | number + amount?: Prisma.FloatFieldUpdateOperationsInput | number + comment?: Prisma.StringFieldUpdateOperationsInput | string + type?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type compta_comptes_soldesOrderByRelevanceInput = { + fields: Prisma.compta_comptes_soldesOrderByRelevanceFieldEnum | Prisma.compta_comptes_soldesOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type compta_comptes_soldesCountOrderByAggregateInput = { + id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + year?: Prisma.SortOrder + amount?: Prisma.SortOrder + comment?: Prisma.SortOrder + type?: Prisma.SortOrder +} + +export type compta_comptes_soldesAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + year?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type compta_comptes_soldesMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + year?: Prisma.SortOrder + amount?: Prisma.SortOrder + comment?: Prisma.SortOrder + type?: Prisma.SortOrder +} + +export type compta_comptes_soldesMinOrderByAggregateInput = { + id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + year?: Prisma.SortOrder + amount?: Prisma.SortOrder + comment?: Prisma.SortOrder + type?: Prisma.SortOrder +} + +export type compta_comptes_soldesSumOrderByAggregateInput = { + id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + year?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + + + +export type compta_comptes_soldesSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + num_compte?: boolean + year?: boolean + amount?: boolean + comment?: boolean + type?: boolean +}, ExtArgs["result"]["compta_comptes_soldes"]> + + + +export type compta_comptes_soldesSelectScalar = { + id?: boolean + num_compte?: boolean + year?: boolean + amount?: boolean + comment?: boolean + type?: boolean +} + +export type compta_comptes_soldesOmit = runtime.Types.Extensions.GetOmit<"id" | "num_compte" | "year" | "amount" | "comment" | "type", ExtArgs["result"]["compta_comptes_soldes"]> + +export type $compta_comptes_soldesPayload = { + name: "compta_comptes_soldes" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + num_compte: number + year: number + amount: number + comment: string + type: string + }, ExtArgs["result"]["compta_comptes_soldes"]> + composites: {} +} + +export type compta_comptes_soldesGetPayload = runtime.Types.Result.GetResult + +export type compta_comptes_soldesCountArgs = + Omit & { + select?: Compta_comptes_soldesCountAggregateInputType | true + } + +export interface compta_comptes_soldesDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['compta_comptes_soldes'], meta: { name: 'compta_comptes_soldes' } } + /** + * Find zero or one Compta_comptes_soldes that matches the filter. + * @param {compta_comptes_soldesFindUniqueArgs} args - Arguments to find a Compta_comptes_soldes + * @example + * // Get one Compta_comptes_soldes + * const compta_comptes_soldes = await prisma.compta_comptes_soldes.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__compta_comptes_soldesClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Compta_comptes_soldes that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {compta_comptes_soldesFindUniqueOrThrowArgs} args - Arguments to find a Compta_comptes_soldes + * @example + * // Get one Compta_comptes_soldes + * const compta_comptes_soldes = await prisma.compta_comptes_soldes.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__compta_comptes_soldesClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_comptes_soldes 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 {compta_comptes_soldesFindFirstArgs} args - Arguments to find a Compta_comptes_soldes + * @example + * // Get one Compta_comptes_soldes + * const compta_comptes_soldes = await prisma.compta_comptes_soldes.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_comptes_soldesClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_comptes_soldes 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 {compta_comptes_soldesFindFirstOrThrowArgs} args - Arguments to find a Compta_comptes_soldes + * @example + * // Get one Compta_comptes_soldes + * const compta_comptes_soldes = await prisma.compta_comptes_soldes.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_comptes_soldesClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Compta_comptes_soldes 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 {compta_comptes_soldesFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Compta_comptes_soldes + * const compta_comptes_soldes = await prisma.compta_comptes_soldes.findMany() + * + * // Get first 10 Compta_comptes_soldes + * const compta_comptes_soldes = await prisma.compta_comptes_soldes.findMany({ take: 10 }) + * + * // Only select the `id` + * const compta_comptes_soldesWithIdOnly = await prisma.compta_comptes_soldes.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Compta_comptes_soldes. + * @param {compta_comptes_soldesCreateArgs} args - Arguments to create a Compta_comptes_soldes. + * @example + * // Create one Compta_comptes_soldes + * const Compta_comptes_soldes = await prisma.compta_comptes_soldes.create({ + * data: { + * // ... data to create a Compta_comptes_soldes + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__compta_comptes_soldesClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Compta_comptes_soldes. + * @param {compta_comptes_soldesCreateManyArgs} args - Arguments to create many Compta_comptes_soldes. + * @example + * // Create many Compta_comptes_soldes + * const compta_comptes_soldes = await prisma.compta_comptes_soldes.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Compta_comptes_soldes. + * @param {compta_comptes_soldesDeleteArgs} args - Arguments to delete one Compta_comptes_soldes. + * @example + * // Delete one Compta_comptes_soldes + * const Compta_comptes_soldes = await prisma.compta_comptes_soldes.delete({ + * where: { + * // ... filter to delete one Compta_comptes_soldes + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__compta_comptes_soldesClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Compta_comptes_soldes. + * @param {compta_comptes_soldesUpdateArgs} args - Arguments to update one Compta_comptes_soldes. + * @example + * // Update one Compta_comptes_soldes + * const compta_comptes_soldes = await prisma.compta_comptes_soldes.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__compta_comptes_soldesClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Compta_comptes_soldes. + * @param {compta_comptes_soldesDeleteManyArgs} args - Arguments to filter Compta_comptes_soldes to delete. + * @example + * // Delete a few Compta_comptes_soldes + * const { count } = await prisma.compta_comptes_soldes.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Compta_comptes_soldes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_comptes_soldesUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Compta_comptes_soldes + * const compta_comptes_soldes = await prisma.compta_comptes_soldes.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Compta_comptes_soldes. + * @param {compta_comptes_soldesUpsertArgs} args - Arguments to update or create a Compta_comptes_soldes. + * @example + * // Update or create a Compta_comptes_soldes + * const compta_comptes_soldes = await prisma.compta_comptes_soldes.upsert({ + * create: { + * // ... data to create a Compta_comptes_soldes + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Compta_comptes_soldes we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__compta_comptes_soldesClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Compta_comptes_soldes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_comptes_soldesCountArgs} args - Arguments to filter Compta_comptes_soldes to count. + * @example + * // Count the number of Compta_comptes_soldes + * const count = await prisma.compta_comptes_soldes.count({ + * where: { + * // ... the filter for the Compta_comptes_soldes 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 Compta_comptes_soldes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Compta_comptes_soldesAggregateArgs} 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 Compta_comptes_soldes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_comptes_soldesGroupByArgs} 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 compta_comptes_soldesGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: compta_comptes_soldesGroupByArgs['orderBy'] } + : { orderBy?: compta_comptes_soldesGroupByArgs['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 ? GetCompta_comptes_soldesGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the compta_comptes_soldes model + */ +readonly fields: compta_comptes_soldesFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for compta_comptes_soldes. + * 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__compta_comptes_soldesClient 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 compta_comptes_soldes model + */ +export interface compta_comptes_soldesFieldRefs { + readonly id: Prisma.FieldRef<"compta_comptes_soldes", 'BigInt'> + readonly num_compte: Prisma.FieldRef<"compta_comptes_soldes", 'Int'> + readonly year: Prisma.FieldRef<"compta_comptes_soldes", 'Int'> + readonly amount: Prisma.FieldRef<"compta_comptes_soldes", 'Float'> + readonly comment: Prisma.FieldRef<"compta_comptes_soldes", 'String'> + readonly type: Prisma.FieldRef<"compta_comptes_soldes", 'String'> +} + + +// Custom InputTypes +/** + * compta_comptes_soldes findUnique + */ +export type compta_comptes_soldesFindUniqueArgs = { + /** + * Select specific fields to fetch from the compta_comptes_soldes + */ + select?: Prisma.compta_comptes_soldesSelect | null + /** + * Omit specific fields from the compta_comptes_soldes + */ + omit?: Prisma.compta_comptes_soldesOmit | null + /** + * Filter, which compta_comptes_soldes to fetch. + */ + where: Prisma.compta_comptes_soldesWhereUniqueInput +} + +/** + * compta_comptes_soldes findUniqueOrThrow + */ +export type compta_comptes_soldesFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_comptes_soldes + */ + select?: Prisma.compta_comptes_soldesSelect | null + /** + * Omit specific fields from the compta_comptes_soldes + */ + omit?: Prisma.compta_comptes_soldesOmit | null + /** + * Filter, which compta_comptes_soldes to fetch. + */ + where: Prisma.compta_comptes_soldesWhereUniqueInput +} + +/** + * compta_comptes_soldes findFirst + */ +export type compta_comptes_soldesFindFirstArgs = { + /** + * Select specific fields to fetch from the compta_comptes_soldes + */ + select?: Prisma.compta_comptes_soldesSelect | null + /** + * Omit specific fields from the compta_comptes_soldes + */ + omit?: Prisma.compta_comptes_soldesOmit | null + /** + * Filter, which compta_comptes_soldes to fetch. + */ + where?: Prisma.compta_comptes_soldesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_comptes_soldes to fetch. + */ + orderBy?: Prisma.compta_comptes_soldesOrderByWithRelationInput | Prisma.compta_comptes_soldesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_comptes_soldes. + */ + cursor?: Prisma.compta_comptes_soldesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_comptes_soldes 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` compta_comptes_soldes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_comptes_soldes. + */ + distinct?: Prisma.Compta_comptes_soldesScalarFieldEnum | Prisma.Compta_comptes_soldesScalarFieldEnum[] +} + +/** + * compta_comptes_soldes findFirstOrThrow + */ +export type compta_comptes_soldesFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_comptes_soldes + */ + select?: Prisma.compta_comptes_soldesSelect | null + /** + * Omit specific fields from the compta_comptes_soldes + */ + omit?: Prisma.compta_comptes_soldesOmit | null + /** + * Filter, which compta_comptes_soldes to fetch. + */ + where?: Prisma.compta_comptes_soldesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_comptes_soldes to fetch. + */ + orderBy?: Prisma.compta_comptes_soldesOrderByWithRelationInput | Prisma.compta_comptes_soldesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_comptes_soldes. + */ + cursor?: Prisma.compta_comptes_soldesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_comptes_soldes 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` compta_comptes_soldes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_comptes_soldes. + */ + distinct?: Prisma.Compta_comptes_soldesScalarFieldEnum | Prisma.Compta_comptes_soldesScalarFieldEnum[] +} + +/** + * compta_comptes_soldes findMany + */ +export type compta_comptes_soldesFindManyArgs = { + /** + * Select specific fields to fetch from the compta_comptes_soldes + */ + select?: Prisma.compta_comptes_soldesSelect | null + /** + * Omit specific fields from the compta_comptes_soldes + */ + omit?: Prisma.compta_comptes_soldesOmit | null + /** + * Filter, which compta_comptes_soldes to fetch. + */ + where?: Prisma.compta_comptes_soldesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_comptes_soldes to fetch. + */ + orderBy?: Prisma.compta_comptes_soldesOrderByWithRelationInput | Prisma.compta_comptes_soldesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing compta_comptes_soldes. + */ + cursor?: Prisma.compta_comptes_soldesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_comptes_soldes 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` compta_comptes_soldes. + */ + skip?: number + distinct?: Prisma.Compta_comptes_soldesScalarFieldEnum | Prisma.Compta_comptes_soldesScalarFieldEnum[] +} + +/** + * compta_comptes_soldes create + */ +export type compta_comptes_soldesCreateArgs = { + /** + * Select specific fields to fetch from the compta_comptes_soldes + */ + select?: Prisma.compta_comptes_soldesSelect | null + /** + * Omit specific fields from the compta_comptes_soldes + */ + omit?: Prisma.compta_comptes_soldesOmit | null + /** + * The data needed to create a compta_comptes_soldes. + */ + data: Prisma.XOR +} + +/** + * compta_comptes_soldes createMany + */ +export type compta_comptes_soldesCreateManyArgs = { + /** + * The data used to create many compta_comptes_soldes. + */ + data: Prisma.compta_comptes_soldesCreateManyInput | Prisma.compta_comptes_soldesCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * compta_comptes_soldes update + */ +export type compta_comptes_soldesUpdateArgs = { + /** + * Select specific fields to fetch from the compta_comptes_soldes + */ + select?: Prisma.compta_comptes_soldesSelect | null + /** + * Omit specific fields from the compta_comptes_soldes + */ + omit?: Prisma.compta_comptes_soldesOmit | null + /** + * The data needed to update a compta_comptes_soldes. + */ + data: Prisma.XOR + /** + * Choose, which compta_comptes_soldes to update. + */ + where: Prisma.compta_comptes_soldesWhereUniqueInput +} + +/** + * compta_comptes_soldes updateMany + */ +export type compta_comptes_soldesUpdateManyArgs = { + /** + * The data used to update compta_comptes_soldes. + */ + data: Prisma.XOR + /** + * Filter which compta_comptes_soldes to update + */ + where?: Prisma.compta_comptes_soldesWhereInput + /** + * Limit how many compta_comptes_soldes to update. + */ + limit?: number +} + +/** + * compta_comptes_soldes upsert + */ +export type compta_comptes_soldesUpsertArgs = { + /** + * Select specific fields to fetch from the compta_comptes_soldes + */ + select?: Prisma.compta_comptes_soldesSelect | null + /** + * Omit specific fields from the compta_comptes_soldes + */ + omit?: Prisma.compta_comptes_soldesOmit | null + /** + * The filter to search for the compta_comptes_soldes to update in case it exists. + */ + where: Prisma.compta_comptes_soldesWhereUniqueInput + /** + * In case the compta_comptes_soldes found by the `where` argument doesn't exist, create a new compta_comptes_soldes with this data. + */ + create: Prisma.XOR + /** + * In case the compta_comptes_soldes was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * compta_comptes_soldes delete + */ +export type compta_comptes_soldesDeleteArgs = { + /** + * Select specific fields to fetch from the compta_comptes_soldes + */ + select?: Prisma.compta_comptes_soldesSelect | null + /** + * Omit specific fields from the compta_comptes_soldes + */ + omit?: Prisma.compta_comptes_soldesOmit | null + /** + * Filter which compta_comptes_soldes to delete. + */ + where: Prisma.compta_comptes_soldesWhereUniqueInput +} + +/** + * compta_comptes_soldes deleteMany + */ +export type compta_comptes_soldesDeleteManyArgs = { + /** + * Filter which compta_comptes_soldes to delete + */ + where?: Prisma.compta_comptes_soldesWhereInput + /** + * Limit how many compta_comptes_soldes to delete. + */ + limit?: number +} + +/** + * compta_comptes_soldes without action + */ +export type compta_comptes_soldesDefaultArgs = { + /** + * Select specific fields to fetch from the compta_comptes_soldes + */ + select?: Prisma.compta_comptes_soldesSelect | null + /** + * Omit specific fields from the compta_comptes_soldes + */ + omit?: Prisma.compta_comptes_soldesOmit | null +} diff --git a/prisma/generated/mariadb/models/compta_journal_ecriture.ts b/prisma/generated/mariadb/models/compta_journal_ecriture.ts new file mode 100644 index 0000000..8e21a78 --- /dev/null +++ b/prisma/generated/mariadb/models/compta_journal_ecriture.ts @@ -0,0 +1,1204 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `compta_journal_ecriture` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model compta_journal_ecriture + * + */ +export type compta_journal_ecritureModel = runtime.Types.Result.DefaultSelection + +export type AggregateCompta_journal_ecriture = { + _count: Compta_journal_ecritureCountAggregateOutputType | null + _avg: Compta_journal_ecritureAvgAggregateOutputType | null + _sum: Compta_journal_ecritureSumAggregateOutputType | null + _min: Compta_journal_ecritureMinAggregateOutputType | null + _max: Compta_journal_ecritureMaxAggregateOutputType | null +} + +export type Compta_journal_ecritureAvgAggregateOutputType = { + id: number | null + date_orig: number | null + num: number | null + em: number | null +} + +export type Compta_journal_ecritureSumAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + num: bigint | null + em: number | null +} + +export type Compta_journal_ecritureMinAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + type: string | null + num: bigint | null + customer_id: string | null + full_name: string | null + desc: string | null + mo: string | null + em: number | null +} + +export type Compta_journal_ecritureMaxAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + type: string | null + num: bigint | null + customer_id: string | null + full_name: string | null + desc: string | null + mo: string | null + em: number | null +} + +export type Compta_journal_ecritureCountAggregateOutputType = { + id: number + date_orig: number + type: number + num: number + customer_id: number + full_name: number + desc: number + mo: number + em: number + _all: number +} + + +export type Compta_journal_ecritureAvgAggregateInputType = { + id?: true + date_orig?: true + num?: true + em?: true +} + +export type Compta_journal_ecritureSumAggregateInputType = { + id?: true + date_orig?: true + num?: true + em?: true +} + +export type Compta_journal_ecritureMinAggregateInputType = { + id?: true + date_orig?: true + type?: true + num?: true + customer_id?: true + full_name?: true + desc?: true + mo?: true + em?: true +} + +export type Compta_journal_ecritureMaxAggregateInputType = { + id?: true + date_orig?: true + type?: true + num?: true + customer_id?: true + full_name?: true + desc?: true + mo?: true + em?: true +} + +export type Compta_journal_ecritureCountAggregateInputType = { + id?: true + date_orig?: true + type?: true + num?: true + customer_id?: true + full_name?: true + desc?: true + mo?: true + em?: true + _all?: true +} + +export type Compta_journal_ecritureAggregateArgs = { + /** + * Filter which compta_journal_ecriture to aggregate. + */ + where?: Prisma.compta_journal_ecritureWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecritures to fetch. + */ + orderBy?: Prisma.compta_journal_ecritureOrderByWithRelationInput | Prisma.compta_journal_ecritureOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.compta_journal_ecritureWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecritures 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` compta_journal_ecritures. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned compta_journal_ecritures + **/ + _count?: true | Compta_journal_ecritureCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Compta_journal_ecritureAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Compta_journal_ecritureSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Compta_journal_ecritureMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Compta_journal_ecritureMaxAggregateInputType +} + +export type GetCompta_journal_ecritureAggregateType = { + [P in keyof T & keyof AggregateCompta_journal_ecriture]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type compta_journal_ecritureGroupByArgs = { + where?: Prisma.compta_journal_ecritureWhereInput + orderBy?: Prisma.compta_journal_ecritureOrderByWithAggregationInput | Prisma.compta_journal_ecritureOrderByWithAggregationInput[] + by: Prisma.Compta_journal_ecritureScalarFieldEnum[] | Prisma.Compta_journal_ecritureScalarFieldEnum + having?: Prisma.compta_journal_ecritureScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Compta_journal_ecritureCountAggregateInputType | true + _avg?: Compta_journal_ecritureAvgAggregateInputType + _sum?: Compta_journal_ecritureSumAggregateInputType + _min?: Compta_journal_ecritureMinAggregateInputType + _max?: Compta_journal_ecritureMaxAggregateInputType +} + +export type Compta_journal_ecritureGroupByOutputType = { + id: bigint + date_orig: bigint | null + type: string | null + num: bigint | null + customer_id: string | null + full_name: string | null + desc: string | null + mo: string | null + em: number + _count: Compta_journal_ecritureCountAggregateOutputType | null + _avg: Compta_journal_ecritureAvgAggregateOutputType | null + _sum: Compta_journal_ecritureSumAggregateOutputType | null + _min: Compta_journal_ecritureMinAggregateOutputType | null + _max: Compta_journal_ecritureMaxAggregateOutputType | null +} + +type GetCompta_journal_ecritureGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Compta_journal_ecritureGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type compta_journal_ecritureWhereInput = { + AND?: Prisma.compta_journal_ecritureWhereInput | Prisma.compta_journal_ecritureWhereInput[] + OR?: Prisma.compta_journal_ecritureWhereInput[] + NOT?: Prisma.compta_journal_ecritureWhereInput | Prisma.compta_journal_ecritureWhereInput[] + id?: Prisma.BigIntFilter<"compta_journal_ecriture"> | bigint | number + date_orig?: Prisma.BigIntNullableFilter<"compta_journal_ecriture"> | bigint | number | null + type?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null + num?: Prisma.BigIntNullableFilter<"compta_journal_ecriture"> | bigint | number | null + customer_id?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null + full_name?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null + desc?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null + mo?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null + em?: Prisma.IntFilter<"compta_journal_ecriture"> | number +} + +export type compta_journal_ecritureOrderByWithRelationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + num?: Prisma.SortOrderInput | Prisma.SortOrder + customer_id?: Prisma.SortOrderInput | Prisma.SortOrder + full_name?: Prisma.SortOrderInput | Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + mo?: Prisma.SortOrderInput | Prisma.SortOrder + em?: Prisma.SortOrder + _relevance?: Prisma.compta_journal_ecritureOrderByRelevanceInput +} + +export type compta_journal_ecritureWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.compta_journal_ecritureWhereInput | Prisma.compta_journal_ecritureWhereInput[] + OR?: Prisma.compta_journal_ecritureWhereInput[] + NOT?: Prisma.compta_journal_ecritureWhereInput | Prisma.compta_journal_ecritureWhereInput[] + date_orig?: Prisma.BigIntNullableFilter<"compta_journal_ecriture"> | bigint | number | null + type?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null + num?: Prisma.BigIntNullableFilter<"compta_journal_ecriture"> | bigint | number | null + customer_id?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null + full_name?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null + desc?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null + mo?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null + em?: Prisma.IntFilter<"compta_journal_ecriture"> | number +}, "id"> + +export type compta_journal_ecritureOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + num?: Prisma.SortOrderInput | Prisma.SortOrder + customer_id?: Prisma.SortOrderInput | Prisma.SortOrder + full_name?: Prisma.SortOrderInput | Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + mo?: Prisma.SortOrderInput | Prisma.SortOrder + em?: Prisma.SortOrder + _count?: Prisma.compta_journal_ecritureCountOrderByAggregateInput + _avg?: Prisma.compta_journal_ecritureAvgOrderByAggregateInput + _max?: Prisma.compta_journal_ecritureMaxOrderByAggregateInput + _min?: Prisma.compta_journal_ecritureMinOrderByAggregateInput + _sum?: Prisma.compta_journal_ecritureSumOrderByAggregateInput +} + +export type compta_journal_ecritureScalarWhereWithAggregatesInput = { + AND?: Prisma.compta_journal_ecritureScalarWhereWithAggregatesInput | Prisma.compta_journal_ecritureScalarWhereWithAggregatesInput[] + OR?: Prisma.compta_journal_ecritureScalarWhereWithAggregatesInput[] + NOT?: Prisma.compta_journal_ecritureScalarWhereWithAggregatesInput | Prisma.compta_journal_ecritureScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"compta_journal_ecriture"> | bigint | number + date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"compta_journal_ecriture"> | bigint | number | null + type?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture"> | string | null + num?: Prisma.BigIntNullableWithAggregatesFilter<"compta_journal_ecriture"> | bigint | number | null + customer_id?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture"> | string | null + full_name?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture"> | string | null + desc?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture"> | string | null + mo?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture"> | string | null + em?: Prisma.IntWithAggregatesFilter<"compta_journal_ecriture"> | number +} + +export type compta_journal_ecritureCreateInput = { + id?: bigint | number + date_orig?: bigint | number | null + type?: string | null + num?: bigint | number | null + customer_id?: string | null + full_name?: string | null + desc?: string | null + mo?: string | null + em?: number +} + +export type compta_journal_ecritureUncheckedCreateInput = { + id?: bigint | number + date_orig?: bigint | number | null + type?: string | null + num?: bigint | number | null + customer_id?: string | null + full_name?: string | null + desc?: string | null + mo?: string | null + em?: number +} + +export type compta_journal_ecritureUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + num?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + full_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + em?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_journal_ecritureUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + num?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + full_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + em?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_journal_ecritureCreateManyInput = { + id?: bigint | number + date_orig?: bigint | number | null + type?: string | null + num?: bigint | number | null + customer_id?: string | null + full_name?: string | null + desc?: string | null + mo?: string | null + em?: number +} + +export type compta_journal_ecritureUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + num?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + full_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + em?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_journal_ecritureUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + num?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + full_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + em?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_journal_ecritureOrderByRelevanceInput = { + fields: Prisma.compta_journal_ecritureOrderByRelevanceFieldEnum | Prisma.compta_journal_ecritureOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type compta_journal_ecritureCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + type?: Prisma.SortOrder + num?: Prisma.SortOrder + customer_id?: Prisma.SortOrder + full_name?: Prisma.SortOrder + desc?: Prisma.SortOrder + mo?: Prisma.SortOrder + em?: Prisma.SortOrder +} + +export type compta_journal_ecritureAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + num?: Prisma.SortOrder + em?: Prisma.SortOrder +} + +export type compta_journal_ecritureMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + type?: Prisma.SortOrder + num?: Prisma.SortOrder + customer_id?: Prisma.SortOrder + full_name?: Prisma.SortOrder + desc?: Prisma.SortOrder + mo?: Prisma.SortOrder + em?: Prisma.SortOrder +} + +export type compta_journal_ecritureMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + type?: Prisma.SortOrder + num?: Prisma.SortOrder + customer_id?: Prisma.SortOrder + full_name?: Prisma.SortOrder + desc?: Prisma.SortOrder + mo?: Prisma.SortOrder + em?: Prisma.SortOrder +} + +export type compta_journal_ecritureSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + num?: Prisma.SortOrder + em?: Prisma.SortOrder +} + + + +export type compta_journal_ecritureSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date_orig?: boolean + type?: boolean + num?: boolean + customer_id?: boolean + full_name?: boolean + desc?: boolean + mo?: boolean + em?: boolean +}, ExtArgs["result"]["compta_journal_ecriture"]> + + + +export type compta_journal_ecritureSelectScalar = { + id?: boolean + date_orig?: boolean + type?: boolean + num?: boolean + customer_id?: boolean + full_name?: boolean + desc?: boolean + mo?: boolean + em?: boolean +} + +export type compta_journal_ecritureOmit = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "type" | "num" | "customer_id" | "full_name" | "desc" | "mo" | "em", ExtArgs["result"]["compta_journal_ecriture"]> + +export type $compta_journal_ecriturePayload = { + name: "compta_journal_ecriture" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + date_orig: bigint | null + type: string | null + num: bigint | null + customer_id: string | null + full_name: string | null + desc: string | null + mo: string | null + em: number + }, ExtArgs["result"]["compta_journal_ecriture"]> + composites: {} +} + +export type compta_journal_ecritureGetPayload = runtime.Types.Result.GetResult + +export type compta_journal_ecritureCountArgs = + Omit & { + select?: Compta_journal_ecritureCountAggregateInputType | true + } + +export interface compta_journal_ecritureDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['compta_journal_ecriture'], meta: { name: 'compta_journal_ecriture' } } + /** + * Find zero or one Compta_journal_ecriture that matches the filter. + * @param {compta_journal_ecritureFindUniqueArgs} args - Arguments to find a Compta_journal_ecriture + * @example + * // Get one Compta_journal_ecriture + * const compta_journal_ecriture = await prisma.compta_journal_ecriture.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Compta_journal_ecriture that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {compta_journal_ecritureFindUniqueOrThrowArgs} args - Arguments to find a Compta_journal_ecriture + * @example + * // Get one Compta_journal_ecriture + * const compta_journal_ecriture = await prisma.compta_journal_ecriture.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_journal_ecriture 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 {compta_journal_ecritureFindFirstArgs} args - Arguments to find a Compta_journal_ecriture + * @example + * // Get one Compta_journal_ecriture + * const compta_journal_ecriture = await prisma.compta_journal_ecriture.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_journal_ecriture 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 {compta_journal_ecritureFindFirstOrThrowArgs} args - Arguments to find a Compta_journal_ecriture + * @example + * // Get one Compta_journal_ecriture + * const compta_journal_ecriture = await prisma.compta_journal_ecriture.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Compta_journal_ecritures 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 {compta_journal_ecritureFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Compta_journal_ecritures + * const compta_journal_ecritures = await prisma.compta_journal_ecriture.findMany() + * + * // Get first 10 Compta_journal_ecritures + * const compta_journal_ecritures = await prisma.compta_journal_ecriture.findMany({ take: 10 }) + * + * // Only select the `id` + * const compta_journal_ecritureWithIdOnly = await prisma.compta_journal_ecriture.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Compta_journal_ecriture. + * @param {compta_journal_ecritureCreateArgs} args - Arguments to create a Compta_journal_ecriture. + * @example + * // Create one Compta_journal_ecriture + * const Compta_journal_ecriture = await prisma.compta_journal_ecriture.create({ + * data: { + * // ... data to create a Compta_journal_ecriture + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Compta_journal_ecritures. + * @param {compta_journal_ecritureCreateManyArgs} args - Arguments to create many Compta_journal_ecritures. + * @example + * // Create many Compta_journal_ecritures + * const compta_journal_ecriture = await prisma.compta_journal_ecriture.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Compta_journal_ecriture. + * @param {compta_journal_ecritureDeleteArgs} args - Arguments to delete one Compta_journal_ecriture. + * @example + * // Delete one Compta_journal_ecriture + * const Compta_journal_ecriture = await prisma.compta_journal_ecriture.delete({ + * where: { + * // ... filter to delete one Compta_journal_ecriture + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Compta_journal_ecriture. + * @param {compta_journal_ecritureUpdateArgs} args - Arguments to update one Compta_journal_ecriture. + * @example + * // Update one Compta_journal_ecriture + * const compta_journal_ecriture = await prisma.compta_journal_ecriture.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Compta_journal_ecritures. + * @param {compta_journal_ecritureDeleteManyArgs} args - Arguments to filter Compta_journal_ecritures to delete. + * @example + * // Delete a few Compta_journal_ecritures + * const { count } = await prisma.compta_journal_ecriture.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Compta_journal_ecritures. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_journal_ecritureUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Compta_journal_ecritures + * const compta_journal_ecriture = await prisma.compta_journal_ecriture.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Compta_journal_ecriture. + * @param {compta_journal_ecritureUpsertArgs} args - Arguments to update or create a Compta_journal_ecriture. + * @example + * // Update or create a Compta_journal_ecriture + * const compta_journal_ecriture = await prisma.compta_journal_ecriture.upsert({ + * create: { + * // ... data to create a Compta_journal_ecriture + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Compta_journal_ecriture we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Compta_journal_ecritures. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_journal_ecritureCountArgs} args - Arguments to filter Compta_journal_ecritures to count. + * @example + * // Count the number of Compta_journal_ecritures + * const count = await prisma.compta_journal_ecriture.count({ + * where: { + * // ... the filter for the Compta_journal_ecritures 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 Compta_journal_ecriture. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Compta_journal_ecritureAggregateArgs} 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 Compta_journal_ecriture. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_journal_ecritureGroupByArgs} 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 compta_journal_ecritureGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: compta_journal_ecritureGroupByArgs['orderBy'] } + : { orderBy?: compta_journal_ecritureGroupByArgs['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 ? GetCompta_journal_ecritureGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the compta_journal_ecriture model + */ +readonly fields: compta_journal_ecritureFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for compta_journal_ecriture. + * 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__compta_journal_ecritureClient 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 compta_journal_ecriture model + */ +export interface compta_journal_ecritureFieldRefs { + readonly id: Prisma.FieldRef<"compta_journal_ecriture", 'BigInt'> + readonly date_orig: Prisma.FieldRef<"compta_journal_ecriture", 'BigInt'> + readonly type: Prisma.FieldRef<"compta_journal_ecriture", 'String'> + readonly num: Prisma.FieldRef<"compta_journal_ecriture", 'BigInt'> + readonly customer_id: Prisma.FieldRef<"compta_journal_ecriture", 'String'> + readonly full_name: Prisma.FieldRef<"compta_journal_ecriture", 'String'> + readonly desc: Prisma.FieldRef<"compta_journal_ecriture", 'String'> + readonly mo: Prisma.FieldRef<"compta_journal_ecriture", 'String'> + readonly em: Prisma.FieldRef<"compta_journal_ecriture", 'Int'> +} + + +// Custom InputTypes +/** + * compta_journal_ecriture findUnique + */ +export type compta_journal_ecritureFindUniqueArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture + */ + select?: Prisma.compta_journal_ecritureSelect | null + /** + * Omit specific fields from the compta_journal_ecriture + */ + omit?: Prisma.compta_journal_ecritureOmit | null + /** + * Filter, which compta_journal_ecriture to fetch. + */ + where: Prisma.compta_journal_ecritureWhereUniqueInput +} + +/** + * compta_journal_ecriture findUniqueOrThrow + */ +export type compta_journal_ecritureFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture + */ + select?: Prisma.compta_journal_ecritureSelect | null + /** + * Omit specific fields from the compta_journal_ecriture + */ + omit?: Prisma.compta_journal_ecritureOmit | null + /** + * Filter, which compta_journal_ecriture to fetch. + */ + where: Prisma.compta_journal_ecritureWhereUniqueInput +} + +/** + * compta_journal_ecriture findFirst + */ +export type compta_journal_ecritureFindFirstArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture + */ + select?: Prisma.compta_journal_ecritureSelect | null + /** + * Omit specific fields from the compta_journal_ecriture + */ + omit?: Prisma.compta_journal_ecritureOmit | null + /** + * Filter, which compta_journal_ecriture to fetch. + */ + where?: Prisma.compta_journal_ecritureWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecritures to fetch. + */ + orderBy?: Prisma.compta_journal_ecritureOrderByWithRelationInput | Prisma.compta_journal_ecritureOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_journal_ecritures. + */ + cursor?: Prisma.compta_journal_ecritureWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecritures 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` compta_journal_ecritures. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_journal_ecritures. + */ + distinct?: Prisma.Compta_journal_ecritureScalarFieldEnum | Prisma.Compta_journal_ecritureScalarFieldEnum[] +} + +/** + * compta_journal_ecriture findFirstOrThrow + */ +export type compta_journal_ecritureFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture + */ + select?: Prisma.compta_journal_ecritureSelect | null + /** + * Omit specific fields from the compta_journal_ecriture + */ + omit?: Prisma.compta_journal_ecritureOmit | null + /** + * Filter, which compta_journal_ecriture to fetch. + */ + where?: Prisma.compta_journal_ecritureWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecritures to fetch. + */ + orderBy?: Prisma.compta_journal_ecritureOrderByWithRelationInput | Prisma.compta_journal_ecritureOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_journal_ecritures. + */ + cursor?: Prisma.compta_journal_ecritureWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecritures 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` compta_journal_ecritures. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_journal_ecritures. + */ + distinct?: Prisma.Compta_journal_ecritureScalarFieldEnum | Prisma.Compta_journal_ecritureScalarFieldEnum[] +} + +/** + * compta_journal_ecriture findMany + */ +export type compta_journal_ecritureFindManyArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture + */ + select?: Prisma.compta_journal_ecritureSelect | null + /** + * Omit specific fields from the compta_journal_ecriture + */ + omit?: Prisma.compta_journal_ecritureOmit | null + /** + * Filter, which compta_journal_ecritures to fetch. + */ + where?: Prisma.compta_journal_ecritureWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecritures to fetch. + */ + orderBy?: Prisma.compta_journal_ecritureOrderByWithRelationInput | Prisma.compta_journal_ecritureOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing compta_journal_ecritures. + */ + cursor?: Prisma.compta_journal_ecritureWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecritures 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` compta_journal_ecritures. + */ + skip?: number + distinct?: Prisma.Compta_journal_ecritureScalarFieldEnum | Prisma.Compta_journal_ecritureScalarFieldEnum[] +} + +/** + * compta_journal_ecriture create + */ +export type compta_journal_ecritureCreateArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture + */ + select?: Prisma.compta_journal_ecritureSelect | null + /** + * Omit specific fields from the compta_journal_ecriture + */ + omit?: Prisma.compta_journal_ecritureOmit | null + /** + * The data needed to create a compta_journal_ecriture. + */ + data?: Prisma.XOR +} + +/** + * compta_journal_ecriture createMany + */ +export type compta_journal_ecritureCreateManyArgs = { + /** + * The data used to create many compta_journal_ecritures. + */ + data: Prisma.compta_journal_ecritureCreateManyInput | Prisma.compta_journal_ecritureCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * compta_journal_ecriture update + */ +export type compta_journal_ecritureUpdateArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture + */ + select?: Prisma.compta_journal_ecritureSelect | null + /** + * Omit specific fields from the compta_journal_ecriture + */ + omit?: Prisma.compta_journal_ecritureOmit | null + /** + * The data needed to update a compta_journal_ecriture. + */ + data: Prisma.XOR + /** + * Choose, which compta_journal_ecriture to update. + */ + where: Prisma.compta_journal_ecritureWhereUniqueInput +} + +/** + * compta_journal_ecriture updateMany + */ +export type compta_journal_ecritureUpdateManyArgs = { + /** + * The data used to update compta_journal_ecritures. + */ + data: Prisma.XOR + /** + * Filter which compta_journal_ecritures to update + */ + where?: Prisma.compta_journal_ecritureWhereInput + /** + * Limit how many compta_journal_ecritures to update. + */ + limit?: number +} + +/** + * compta_journal_ecriture upsert + */ +export type compta_journal_ecritureUpsertArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture + */ + select?: Prisma.compta_journal_ecritureSelect | null + /** + * Omit specific fields from the compta_journal_ecriture + */ + omit?: Prisma.compta_journal_ecritureOmit | null + /** + * The filter to search for the compta_journal_ecriture to update in case it exists. + */ + where: Prisma.compta_journal_ecritureWhereUniqueInput + /** + * In case the compta_journal_ecriture found by the `where` argument doesn't exist, create a new compta_journal_ecriture with this data. + */ + create: Prisma.XOR + /** + * In case the compta_journal_ecriture was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * compta_journal_ecriture delete + */ +export type compta_journal_ecritureDeleteArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture + */ + select?: Prisma.compta_journal_ecritureSelect | null + /** + * Omit specific fields from the compta_journal_ecriture + */ + omit?: Prisma.compta_journal_ecritureOmit | null + /** + * Filter which compta_journal_ecriture to delete. + */ + where: Prisma.compta_journal_ecritureWhereUniqueInput +} + +/** + * compta_journal_ecriture deleteMany + */ +export type compta_journal_ecritureDeleteManyArgs = { + /** + * Filter which compta_journal_ecritures to delete + */ + where?: Prisma.compta_journal_ecritureWhereInput + /** + * Limit how many compta_journal_ecritures to delete. + */ + limit?: number +} + +/** + * compta_journal_ecriture without action + */ +export type compta_journal_ecritureDefaultArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture + */ + select?: Prisma.compta_journal_ecritureSelect | null + /** + * Omit specific fields from the compta_journal_ecriture + */ + omit?: Prisma.compta_journal_ecritureOmit | null +} diff --git a/prisma/generated/mariadb/models/compta_journal_ecriture_bk.ts b/prisma/generated/mariadb/models/compta_journal_ecriture_bk.ts new file mode 100644 index 0000000..cb1c80b --- /dev/null +++ b/prisma/generated/mariadb/models/compta_journal_ecriture_bk.ts @@ -0,0 +1,1204 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `compta_journal_ecriture_bk` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model compta_journal_ecriture_bk + * + */ +export type compta_journal_ecriture_bkModel = runtime.Types.Result.DefaultSelection + +export type AggregateCompta_journal_ecriture_bk = { + _count: Compta_journal_ecriture_bkCountAggregateOutputType | null + _avg: Compta_journal_ecriture_bkAvgAggregateOutputType | null + _sum: Compta_journal_ecriture_bkSumAggregateOutputType | null + _min: Compta_journal_ecriture_bkMinAggregateOutputType | null + _max: Compta_journal_ecriture_bkMaxAggregateOutputType | null +} + +export type Compta_journal_ecriture_bkAvgAggregateOutputType = { + id: number | null + date_orig: number | null + num: number | null + em: number | null +} + +export type Compta_journal_ecriture_bkSumAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + num: bigint | null + em: number | null +} + +export type Compta_journal_ecriture_bkMinAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + type: string | null + num: bigint | null + customer_id: string | null + full_name: string | null + desc: string | null + mo: string | null + em: number | null +} + +export type Compta_journal_ecriture_bkMaxAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + type: string | null + num: bigint | null + customer_id: string | null + full_name: string | null + desc: string | null + mo: string | null + em: number | null +} + +export type Compta_journal_ecriture_bkCountAggregateOutputType = { + id: number + date_orig: number + type: number + num: number + customer_id: number + full_name: number + desc: number + mo: number + em: number + _all: number +} + + +export type Compta_journal_ecriture_bkAvgAggregateInputType = { + id?: true + date_orig?: true + num?: true + em?: true +} + +export type Compta_journal_ecriture_bkSumAggregateInputType = { + id?: true + date_orig?: true + num?: true + em?: true +} + +export type Compta_journal_ecriture_bkMinAggregateInputType = { + id?: true + date_orig?: true + type?: true + num?: true + customer_id?: true + full_name?: true + desc?: true + mo?: true + em?: true +} + +export type Compta_journal_ecriture_bkMaxAggregateInputType = { + id?: true + date_orig?: true + type?: true + num?: true + customer_id?: true + full_name?: true + desc?: true + mo?: true + em?: true +} + +export type Compta_journal_ecriture_bkCountAggregateInputType = { + id?: true + date_orig?: true + type?: true + num?: true + customer_id?: true + full_name?: true + desc?: true + mo?: true + em?: true + _all?: true +} + +export type Compta_journal_ecriture_bkAggregateArgs = { + /** + * Filter which compta_journal_ecriture_bk to aggregate. + */ + where?: Prisma.compta_journal_ecriture_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecriture_bks to fetch. + */ + orderBy?: Prisma.compta_journal_ecriture_bkOrderByWithRelationInput | Prisma.compta_journal_ecriture_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.compta_journal_ecriture_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecriture_bks 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` compta_journal_ecriture_bks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned compta_journal_ecriture_bks + **/ + _count?: true | Compta_journal_ecriture_bkCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Compta_journal_ecriture_bkAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Compta_journal_ecriture_bkSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Compta_journal_ecriture_bkMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Compta_journal_ecriture_bkMaxAggregateInputType +} + +export type GetCompta_journal_ecriture_bkAggregateType = { + [P in keyof T & keyof AggregateCompta_journal_ecriture_bk]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type compta_journal_ecriture_bkGroupByArgs = { + where?: Prisma.compta_journal_ecriture_bkWhereInput + orderBy?: Prisma.compta_journal_ecriture_bkOrderByWithAggregationInput | Prisma.compta_journal_ecriture_bkOrderByWithAggregationInput[] + by: Prisma.Compta_journal_ecriture_bkScalarFieldEnum[] | Prisma.Compta_journal_ecriture_bkScalarFieldEnum + having?: Prisma.compta_journal_ecriture_bkScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Compta_journal_ecriture_bkCountAggregateInputType | true + _avg?: Compta_journal_ecriture_bkAvgAggregateInputType + _sum?: Compta_journal_ecriture_bkSumAggregateInputType + _min?: Compta_journal_ecriture_bkMinAggregateInputType + _max?: Compta_journal_ecriture_bkMaxAggregateInputType +} + +export type Compta_journal_ecriture_bkGroupByOutputType = { + id: bigint + date_orig: bigint | null + type: string | null + num: bigint | null + customer_id: string | null + full_name: string | null + desc: string | null + mo: string | null + em: number + _count: Compta_journal_ecriture_bkCountAggregateOutputType | null + _avg: Compta_journal_ecriture_bkAvgAggregateOutputType | null + _sum: Compta_journal_ecriture_bkSumAggregateOutputType | null + _min: Compta_journal_ecriture_bkMinAggregateOutputType | null + _max: Compta_journal_ecriture_bkMaxAggregateOutputType | null +} + +type GetCompta_journal_ecriture_bkGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Compta_journal_ecriture_bkGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type compta_journal_ecriture_bkWhereInput = { + AND?: Prisma.compta_journal_ecriture_bkWhereInput | Prisma.compta_journal_ecriture_bkWhereInput[] + OR?: Prisma.compta_journal_ecriture_bkWhereInput[] + NOT?: Prisma.compta_journal_ecriture_bkWhereInput | Prisma.compta_journal_ecriture_bkWhereInput[] + id?: Prisma.BigIntFilter<"compta_journal_ecriture_bk"> | bigint | number + date_orig?: Prisma.BigIntNullableFilter<"compta_journal_ecriture_bk"> | bigint | number | null + type?: Prisma.StringNullableFilter<"compta_journal_ecriture_bk"> | string | null + num?: Prisma.BigIntNullableFilter<"compta_journal_ecriture_bk"> | bigint | number | null + customer_id?: Prisma.StringNullableFilter<"compta_journal_ecriture_bk"> | string | null + full_name?: Prisma.StringNullableFilter<"compta_journal_ecriture_bk"> | string | null + desc?: Prisma.StringNullableFilter<"compta_journal_ecriture_bk"> | string | null + mo?: Prisma.StringNullableFilter<"compta_journal_ecriture_bk"> | string | null + em?: Prisma.IntFilter<"compta_journal_ecriture_bk"> | number +} + +export type compta_journal_ecriture_bkOrderByWithRelationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + num?: Prisma.SortOrderInput | Prisma.SortOrder + customer_id?: Prisma.SortOrderInput | Prisma.SortOrder + full_name?: Prisma.SortOrderInput | Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + mo?: Prisma.SortOrderInput | Prisma.SortOrder + em?: Prisma.SortOrder + _relevance?: Prisma.compta_journal_ecriture_bkOrderByRelevanceInput +} + +export type compta_journal_ecriture_bkWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.compta_journal_ecriture_bkWhereInput | Prisma.compta_journal_ecriture_bkWhereInput[] + OR?: Prisma.compta_journal_ecriture_bkWhereInput[] + NOT?: Prisma.compta_journal_ecriture_bkWhereInput | Prisma.compta_journal_ecriture_bkWhereInput[] + date_orig?: Prisma.BigIntNullableFilter<"compta_journal_ecriture_bk"> | bigint | number | null + type?: Prisma.StringNullableFilter<"compta_journal_ecriture_bk"> | string | null + num?: Prisma.BigIntNullableFilter<"compta_journal_ecriture_bk"> | bigint | number | null + customer_id?: Prisma.StringNullableFilter<"compta_journal_ecriture_bk"> | string | null + full_name?: Prisma.StringNullableFilter<"compta_journal_ecriture_bk"> | string | null + desc?: Prisma.StringNullableFilter<"compta_journal_ecriture_bk"> | string | null + mo?: Prisma.StringNullableFilter<"compta_journal_ecriture_bk"> | string | null + em?: Prisma.IntFilter<"compta_journal_ecriture_bk"> | number +}, "id"> + +export type compta_journal_ecriture_bkOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + num?: Prisma.SortOrderInput | Prisma.SortOrder + customer_id?: Prisma.SortOrderInput | Prisma.SortOrder + full_name?: Prisma.SortOrderInput | Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + mo?: Prisma.SortOrderInput | Prisma.SortOrder + em?: Prisma.SortOrder + _count?: Prisma.compta_journal_ecriture_bkCountOrderByAggregateInput + _avg?: Prisma.compta_journal_ecriture_bkAvgOrderByAggregateInput + _max?: Prisma.compta_journal_ecriture_bkMaxOrderByAggregateInput + _min?: Prisma.compta_journal_ecriture_bkMinOrderByAggregateInput + _sum?: Prisma.compta_journal_ecriture_bkSumOrderByAggregateInput +} + +export type compta_journal_ecriture_bkScalarWhereWithAggregatesInput = { + AND?: Prisma.compta_journal_ecriture_bkScalarWhereWithAggregatesInput | Prisma.compta_journal_ecriture_bkScalarWhereWithAggregatesInput[] + OR?: Prisma.compta_journal_ecriture_bkScalarWhereWithAggregatesInput[] + NOT?: Prisma.compta_journal_ecriture_bkScalarWhereWithAggregatesInput | Prisma.compta_journal_ecriture_bkScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"compta_journal_ecriture_bk"> | bigint | number + date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"compta_journal_ecriture_bk"> | bigint | number | null + type?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture_bk"> | string | null + num?: Prisma.BigIntNullableWithAggregatesFilter<"compta_journal_ecriture_bk"> | bigint | number | null + customer_id?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture_bk"> | string | null + full_name?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture_bk"> | string | null + desc?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture_bk"> | string | null + mo?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture_bk"> | string | null + em?: Prisma.IntWithAggregatesFilter<"compta_journal_ecriture_bk"> | number +} + +export type compta_journal_ecriture_bkCreateInput = { + id?: bigint | number + date_orig?: bigint | number | null + type?: string | null + num?: bigint | number | null + customer_id?: string | null + full_name?: string | null + desc?: string | null + mo?: string | null + em?: number +} + +export type compta_journal_ecriture_bkUncheckedCreateInput = { + id?: bigint | number + date_orig?: bigint | number | null + type?: string | null + num?: bigint | number | null + customer_id?: string | null + full_name?: string | null + desc?: string | null + mo?: string | null + em?: number +} + +export type compta_journal_ecriture_bkUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + num?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + full_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + em?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_journal_ecriture_bkUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + num?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + full_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + em?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_journal_ecriture_bkCreateManyInput = { + id?: bigint | number + date_orig?: bigint | number | null + type?: string | null + num?: bigint | number | null + customer_id?: string | null + full_name?: string | null + desc?: string | null + mo?: string | null + em?: number +} + +export type compta_journal_ecriture_bkUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + num?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + full_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + em?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_journal_ecriture_bkUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + num?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + full_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + em?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_journal_ecriture_bkOrderByRelevanceInput = { + fields: Prisma.compta_journal_ecriture_bkOrderByRelevanceFieldEnum | Prisma.compta_journal_ecriture_bkOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type compta_journal_ecriture_bkCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + type?: Prisma.SortOrder + num?: Prisma.SortOrder + customer_id?: Prisma.SortOrder + full_name?: Prisma.SortOrder + desc?: Prisma.SortOrder + mo?: Prisma.SortOrder + em?: Prisma.SortOrder +} + +export type compta_journal_ecriture_bkAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + num?: Prisma.SortOrder + em?: Prisma.SortOrder +} + +export type compta_journal_ecriture_bkMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + type?: Prisma.SortOrder + num?: Prisma.SortOrder + customer_id?: Prisma.SortOrder + full_name?: Prisma.SortOrder + desc?: Prisma.SortOrder + mo?: Prisma.SortOrder + em?: Prisma.SortOrder +} + +export type compta_journal_ecriture_bkMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + type?: Prisma.SortOrder + num?: Prisma.SortOrder + customer_id?: Prisma.SortOrder + full_name?: Prisma.SortOrder + desc?: Prisma.SortOrder + mo?: Prisma.SortOrder + em?: Prisma.SortOrder +} + +export type compta_journal_ecriture_bkSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + num?: Prisma.SortOrder + em?: Prisma.SortOrder +} + + + +export type compta_journal_ecriture_bkSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date_orig?: boolean + type?: boolean + num?: boolean + customer_id?: boolean + full_name?: boolean + desc?: boolean + mo?: boolean + em?: boolean +}, ExtArgs["result"]["compta_journal_ecriture_bk"]> + + + +export type compta_journal_ecriture_bkSelectScalar = { + id?: boolean + date_orig?: boolean + type?: boolean + num?: boolean + customer_id?: boolean + full_name?: boolean + desc?: boolean + mo?: boolean + em?: boolean +} + +export type compta_journal_ecriture_bkOmit = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "type" | "num" | "customer_id" | "full_name" | "desc" | "mo" | "em", ExtArgs["result"]["compta_journal_ecriture_bk"]> + +export type $compta_journal_ecriture_bkPayload = { + name: "compta_journal_ecriture_bk" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + date_orig: bigint | null + type: string | null + num: bigint | null + customer_id: string | null + full_name: string | null + desc: string | null + mo: string | null + em: number + }, ExtArgs["result"]["compta_journal_ecriture_bk"]> + composites: {} +} + +export type compta_journal_ecriture_bkGetPayload = runtime.Types.Result.GetResult + +export type compta_journal_ecriture_bkCountArgs = + Omit & { + select?: Compta_journal_ecriture_bkCountAggregateInputType | true + } + +export interface compta_journal_ecriture_bkDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['compta_journal_ecriture_bk'], meta: { name: 'compta_journal_ecriture_bk' } } + /** + * Find zero or one Compta_journal_ecriture_bk that matches the filter. + * @param {compta_journal_ecriture_bkFindUniqueArgs} args - Arguments to find a Compta_journal_ecriture_bk + * @example + * // Get one Compta_journal_ecriture_bk + * const compta_journal_ecriture_bk = await prisma.compta_journal_ecriture_bk.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_bkClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Compta_journal_ecriture_bk that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {compta_journal_ecriture_bkFindUniqueOrThrowArgs} args - Arguments to find a Compta_journal_ecriture_bk + * @example + * // Get one Compta_journal_ecriture_bk + * const compta_journal_ecriture_bk = await prisma.compta_journal_ecriture_bk.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_bkClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_journal_ecriture_bk 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 {compta_journal_ecriture_bkFindFirstArgs} args - Arguments to find a Compta_journal_ecriture_bk + * @example + * // Get one Compta_journal_ecriture_bk + * const compta_journal_ecriture_bk = await prisma.compta_journal_ecriture_bk.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_bkClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_journal_ecriture_bk 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 {compta_journal_ecriture_bkFindFirstOrThrowArgs} args - Arguments to find a Compta_journal_ecriture_bk + * @example + * // Get one Compta_journal_ecriture_bk + * const compta_journal_ecriture_bk = await prisma.compta_journal_ecriture_bk.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_bkClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Compta_journal_ecriture_bks 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 {compta_journal_ecriture_bkFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Compta_journal_ecriture_bks + * const compta_journal_ecriture_bks = await prisma.compta_journal_ecriture_bk.findMany() + * + * // Get first 10 Compta_journal_ecriture_bks + * const compta_journal_ecriture_bks = await prisma.compta_journal_ecriture_bk.findMany({ take: 10 }) + * + * // Only select the `id` + * const compta_journal_ecriture_bkWithIdOnly = await prisma.compta_journal_ecriture_bk.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Compta_journal_ecriture_bk. + * @param {compta_journal_ecriture_bkCreateArgs} args - Arguments to create a Compta_journal_ecriture_bk. + * @example + * // Create one Compta_journal_ecriture_bk + * const Compta_journal_ecriture_bk = await prisma.compta_journal_ecriture_bk.create({ + * data: { + * // ... data to create a Compta_journal_ecriture_bk + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_bkClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Compta_journal_ecriture_bks. + * @param {compta_journal_ecriture_bkCreateManyArgs} args - Arguments to create many Compta_journal_ecriture_bks. + * @example + * // Create many Compta_journal_ecriture_bks + * const compta_journal_ecriture_bk = await prisma.compta_journal_ecriture_bk.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Compta_journal_ecriture_bk. + * @param {compta_journal_ecriture_bkDeleteArgs} args - Arguments to delete one Compta_journal_ecriture_bk. + * @example + * // Delete one Compta_journal_ecriture_bk + * const Compta_journal_ecriture_bk = await prisma.compta_journal_ecriture_bk.delete({ + * where: { + * // ... filter to delete one Compta_journal_ecriture_bk + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_bkClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Compta_journal_ecriture_bk. + * @param {compta_journal_ecriture_bkUpdateArgs} args - Arguments to update one Compta_journal_ecriture_bk. + * @example + * // Update one Compta_journal_ecriture_bk + * const compta_journal_ecriture_bk = await prisma.compta_journal_ecriture_bk.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_bkClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Compta_journal_ecriture_bks. + * @param {compta_journal_ecriture_bkDeleteManyArgs} args - Arguments to filter Compta_journal_ecriture_bks to delete. + * @example + * // Delete a few Compta_journal_ecriture_bks + * const { count } = await prisma.compta_journal_ecriture_bk.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Compta_journal_ecriture_bks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_journal_ecriture_bkUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Compta_journal_ecriture_bks + * const compta_journal_ecriture_bk = await prisma.compta_journal_ecriture_bk.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Compta_journal_ecriture_bk. + * @param {compta_journal_ecriture_bkUpsertArgs} args - Arguments to update or create a Compta_journal_ecriture_bk. + * @example + * // Update or create a Compta_journal_ecriture_bk + * const compta_journal_ecriture_bk = await prisma.compta_journal_ecriture_bk.upsert({ + * create: { + * // ... data to create a Compta_journal_ecriture_bk + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Compta_journal_ecriture_bk we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_bkClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Compta_journal_ecriture_bks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_journal_ecriture_bkCountArgs} args - Arguments to filter Compta_journal_ecriture_bks to count. + * @example + * // Count the number of Compta_journal_ecriture_bks + * const count = await prisma.compta_journal_ecriture_bk.count({ + * where: { + * // ... the filter for the Compta_journal_ecriture_bks 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 Compta_journal_ecriture_bk. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Compta_journal_ecriture_bkAggregateArgs} 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 Compta_journal_ecriture_bk. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_journal_ecriture_bkGroupByArgs} 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 compta_journal_ecriture_bkGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: compta_journal_ecriture_bkGroupByArgs['orderBy'] } + : { orderBy?: compta_journal_ecriture_bkGroupByArgs['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 ? GetCompta_journal_ecriture_bkGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the compta_journal_ecriture_bk model + */ +readonly fields: compta_journal_ecriture_bkFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for compta_journal_ecriture_bk. + * 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__compta_journal_ecriture_bkClient 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 compta_journal_ecriture_bk model + */ +export interface compta_journal_ecriture_bkFieldRefs { + readonly id: Prisma.FieldRef<"compta_journal_ecriture_bk", 'BigInt'> + readonly date_orig: Prisma.FieldRef<"compta_journal_ecriture_bk", 'BigInt'> + readonly type: Prisma.FieldRef<"compta_journal_ecriture_bk", 'String'> + readonly num: Prisma.FieldRef<"compta_journal_ecriture_bk", 'BigInt'> + readonly customer_id: Prisma.FieldRef<"compta_journal_ecriture_bk", 'String'> + readonly full_name: Prisma.FieldRef<"compta_journal_ecriture_bk", 'String'> + readonly desc: Prisma.FieldRef<"compta_journal_ecriture_bk", 'String'> + readonly mo: Prisma.FieldRef<"compta_journal_ecriture_bk", 'String'> + readonly em: Prisma.FieldRef<"compta_journal_ecriture_bk", 'Int'> +} + + +// Custom InputTypes +/** + * compta_journal_ecriture_bk findUnique + */ +export type compta_journal_ecriture_bkFindUniqueArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_bk + */ + select?: Prisma.compta_journal_ecriture_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_bk + */ + omit?: Prisma.compta_journal_ecriture_bkOmit | null + /** + * Filter, which compta_journal_ecriture_bk to fetch. + */ + where: Prisma.compta_journal_ecriture_bkWhereUniqueInput +} + +/** + * compta_journal_ecriture_bk findUniqueOrThrow + */ +export type compta_journal_ecriture_bkFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_bk + */ + select?: Prisma.compta_journal_ecriture_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_bk + */ + omit?: Prisma.compta_journal_ecriture_bkOmit | null + /** + * Filter, which compta_journal_ecriture_bk to fetch. + */ + where: Prisma.compta_journal_ecriture_bkWhereUniqueInput +} + +/** + * compta_journal_ecriture_bk findFirst + */ +export type compta_journal_ecriture_bkFindFirstArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_bk + */ + select?: Prisma.compta_journal_ecriture_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_bk + */ + omit?: Prisma.compta_journal_ecriture_bkOmit | null + /** + * Filter, which compta_journal_ecriture_bk to fetch. + */ + where?: Prisma.compta_journal_ecriture_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecriture_bks to fetch. + */ + orderBy?: Prisma.compta_journal_ecriture_bkOrderByWithRelationInput | Prisma.compta_journal_ecriture_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_journal_ecriture_bks. + */ + cursor?: Prisma.compta_journal_ecriture_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecriture_bks 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` compta_journal_ecriture_bks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_journal_ecriture_bks. + */ + distinct?: Prisma.Compta_journal_ecriture_bkScalarFieldEnum | Prisma.Compta_journal_ecriture_bkScalarFieldEnum[] +} + +/** + * compta_journal_ecriture_bk findFirstOrThrow + */ +export type compta_journal_ecriture_bkFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_bk + */ + select?: Prisma.compta_journal_ecriture_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_bk + */ + omit?: Prisma.compta_journal_ecriture_bkOmit | null + /** + * Filter, which compta_journal_ecriture_bk to fetch. + */ + where?: Prisma.compta_journal_ecriture_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecriture_bks to fetch. + */ + orderBy?: Prisma.compta_journal_ecriture_bkOrderByWithRelationInput | Prisma.compta_journal_ecriture_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_journal_ecriture_bks. + */ + cursor?: Prisma.compta_journal_ecriture_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecriture_bks 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` compta_journal_ecriture_bks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_journal_ecriture_bks. + */ + distinct?: Prisma.Compta_journal_ecriture_bkScalarFieldEnum | Prisma.Compta_journal_ecriture_bkScalarFieldEnum[] +} + +/** + * compta_journal_ecriture_bk findMany + */ +export type compta_journal_ecriture_bkFindManyArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_bk + */ + select?: Prisma.compta_journal_ecriture_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_bk + */ + omit?: Prisma.compta_journal_ecriture_bkOmit | null + /** + * Filter, which compta_journal_ecriture_bks to fetch. + */ + where?: Prisma.compta_journal_ecriture_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecriture_bks to fetch. + */ + orderBy?: Prisma.compta_journal_ecriture_bkOrderByWithRelationInput | Prisma.compta_journal_ecriture_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing compta_journal_ecriture_bks. + */ + cursor?: Prisma.compta_journal_ecriture_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecriture_bks 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` compta_journal_ecriture_bks. + */ + skip?: number + distinct?: Prisma.Compta_journal_ecriture_bkScalarFieldEnum | Prisma.Compta_journal_ecriture_bkScalarFieldEnum[] +} + +/** + * compta_journal_ecriture_bk create + */ +export type compta_journal_ecriture_bkCreateArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_bk + */ + select?: Prisma.compta_journal_ecriture_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_bk + */ + omit?: Prisma.compta_journal_ecriture_bkOmit | null + /** + * The data needed to create a compta_journal_ecriture_bk. + */ + data?: Prisma.XOR +} + +/** + * compta_journal_ecriture_bk createMany + */ +export type compta_journal_ecriture_bkCreateManyArgs = { + /** + * The data used to create many compta_journal_ecriture_bks. + */ + data: Prisma.compta_journal_ecriture_bkCreateManyInput | Prisma.compta_journal_ecriture_bkCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * compta_journal_ecriture_bk update + */ +export type compta_journal_ecriture_bkUpdateArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_bk + */ + select?: Prisma.compta_journal_ecriture_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_bk + */ + omit?: Prisma.compta_journal_ecriture_bkOmit | null + /** + * The data needed to update a compta_journal_ecriture_bk. + */ + data: Prisma.XOR + /** + * Choose, which compta_journal_ecriture_bk to update. + */ + where: Prisma.compta_journal_ecriture_bkWhereUniqueInput +} + +/** + * compta_journal_ecriture_bk updateMany + */ +export type compta_journal_ecriture_bkUpdateManyArgs = { + /** + * The data used to update compta_journal_ecriture_bks. + */ + data: Prisma.XOR + /** + * Filter which compta_journal_ecriture_bks to update + */ + where?: Prisma.compta_journal_ecriture_bkWhereInput + /** + * Limit how many compta_journal_ecriture_bks to update. + */ + limit?: number +} + +/** + * compta_journal_ecriture_bk upsert + */ +export type compta_journal_ecriture_bkUpsertArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_bk + */ + select?: Prisma.compta_journal_ecriture_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_bk + */ + omit?: Prisma.compta_journal_ecriture_bkOmit | null + /** + * The filter to search for the compta_journal_ecriture_bk to update in case it exists. + */ + where: Prisma.compta_journal_ecriture_bkWhereUniqueInput + /** + * In case the compta_journal_ecriture_bk found by the `where` argument doesn't exist, create a new compta_journal_ecriture_bk with this data. + */ + create: Prisma.XOR + /** + * In case the compta_journal_ecriture_bk was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * compta_journal_ecriture_bk delete + */ +export type compta_journal_ecriture_bkDeleteArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_bk + */ + select?: Prisma.compta_journal_ecriture_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_bk + */ + omit?: Prisma.compta_journal_ecriture_bkOmit | null + /** + * Filter which compta_journal_ecriture_bk to delete. + */ + where: Prisma.compta_journal_ecriture_bkWhereUniqueInput +} + +/** + * compta_journal_ecriture_bk deleteMany + */ +export type compta_journal_ecriture_bkDeleteManyArgs = { + /** + * Filter which compta_journal_ecriture_bks to delete + */ + where?: Prisma.compta_journal_ecriture_bkWhereInput + /** + * Limit how many compta_journal_ecriture_bks to delete. + */ + limit?: number +} + +/** + * compta_journal_ecriture_bk without action + */ +export type compta_journal_ecriture_bkDefaultArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_bk + */ + select?: Prisma.compta_journal_ecriture_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_bk + */ + omit?: Prisma.compta_journal_ecriture_bkOmit | null +} diff --git a/prisma/generated/mariadb/models/compta_journal_ecriture_detail.ts b/prisma/generated/mariadb/models/compta_journal_ecriture_detail.ts new file mode 100644 index 0000000..4266011 --- /dev/null +++ b/prisma/generated/mariadb/models/compta_journal_ecriture_detail.ts @@ -0,0 +1,1108 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `compta_journal_ecriture_detail` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model compta_journal_ecriture_detail + * + */ +export type compta_journal_ecriture_detailModel = runtime.Types.Result.DefaultSelection + +export type AggregateCompta_journal_ecriture_detail = { + _count: Compta_journal_ecriture_detailCountAggregateOutputType | null + _avg: Compta_journal_ecriture_detailAvgAggregateOutputType | null + _sum: Compta_journal_ecriture_detailSumAggregateOutputType | null + _min: Compta_journal_ecriture_detailMinAggregateOutputType | null + _max: Compta_journal_ecriture_detailMaxAggregateOutputType | null +} + +export type Compta_journal_ecriture_detailAvgAggregateOutputType = { + id: number | null + journal_id: number | null + num_compte: number | null + amount: number | null +} + +export type Compta_journal_ecriture_detailSumAggregateOutputType = { + id: bigint | null + journal_id: bigint | null + num_compte: bigint | null + amount: number | null +} + +export type Compta_journal_ecriture_detailMinAggregateOutputType = { + id: bigint | null + journal_id: bigint | null + num_compte: bigint | null + amount: number | null + action: string | null +} + +export type Compta_journal_ecriture_detailMaxAggregateOutputType = { + id: bigint | null + journal_id: bigint | null + num_compte: bigint | null + amount: number | null + action: string | null +} + +export type Compta_journal_ecriture_detailCountAggregateOutputType = { + id: number + journal_id: number + num_compte: number + amount: number + action: number + _all: number +} + + +export type Compta_journal_ecriture_detailAvgAggregateInputType = { + id?: true + journal_id?: true + num_compte?: true + amount?: true +} + +export type Compta_journal_ecriture_detailSumAggregateInputType = { + id?: true + journal_id?: true + num_compte?: true + amount?: true +} + +export type Compta_journal_ecriture_detailMinAggregateInputType = { + id?: true + journal_id?: true + num_compte?: true + amount?: true + action?: true +} + +export type Compta_journal_ecriture_detailMaxAggregateInputType = { + id?: true + journal_id?: true + num_compte?: true + amount?: true + action?: true +} + +export type Compta_journal_ecriture_detailCountAggregateInputType = { + id?: true + journal_id?: true + num_compte?: true + amount?: true + action?: true + _all?: true +} + +export type Compta_journal_ecriture_detailAggregateArgs = { + /** + * Filter which compta_journal_ecriture_detail to aggregate. + */ + where?: Prisma.compta_journal_ecriture_detailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecriture_details to fetch. + */ + orderBy?: Prisma.compta_journal_ecriture_detailOrderByWithRelationInput | Prisma.compta_journal_ecriture_detailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.compta_journal_ecriture_detailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecriture_details 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` compta_journal_ecriture_details. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned compta_journal_ecriture_details + **/ + _count?: true | Compta_journal_ecriture_detailCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Compta_journal_ecriture_detailAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Compta_journal_ecriture_detailSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Compta_journal_ecriture_detailMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Compta_journal_ecriture_detailMaxAggregateInputType +} + +export type GetCompta_journal_ecriture_detailAggregateType = { + [P in keyof T & keyof AggregateCompta_journal_ecriture_detail]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type compta_journal_ecriture_detailGroupByArgs = { + where?: Prisma.compta_journal_ecriture_detailWhereInput + orderBy?: Prisma.compta_journal_ecriture_detailOrderByWithAggregationInput | Prisma.compta_journal_ecriture_detailOrderByWithAggregationInput[] + by: Prisma.Compta_journal_ecriture_detailScalarFieldEnum[] | Prisma.Compta_journal_ecriture_detailScalarFieldEnum + having?: Prisma.compta_journal_ecriture_detailScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Compta_journal_ecriture_detailCountAggregateInputType | true + _avg?: Compta_journal_ecriture_detailAvgAggregateInputType + _sum?: Compta_journal_ecriture_detailSumAggregateInputType + _min?: Compta_journal_ecriture_detailMinAggregateInputType + _max?: Compta_journal_ecriture_detailMaxAggregateInputType +} + +export type Compta_journal_ecriture_detailGroupByOutputType = { + id: bigint + journal_id: bigint | null + num_compte: bigint | null + amount: number | null + action: string | null + _count: Compta_journal_ecriture_detailCountAggregateOutputType | null + _avg: Compta_journal_ecriture_detailAvgAggregateOutputType | null + _sum: Compta_journal_ecriture_detailSumAggregateOutputType | null + _min: Compta_journal_ecriture_detailMinAggregateOutputType | null + _max: Compta_journal_ecriture_detailMaxAggregateOutputType | null +} + +type GetCompta_journal_ecriture_detailGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Compta_journal_ecriture_detailGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type compta_journal_ecriture_detailWhereInput = { + AND?: Prisma.compta_journal_ecriture_detailWhereInput | Prisma.compta_journal_ecriture_detailWhereInput[] + OR?: Prisma.compta_journal_ecriture_detailWhereInput[] + NOT?: Prisma.compta_journal_ecriture_detailWhereInput | Prisma.compta_journal_ecriture_detailWhereInput[] + id?: Prisma.BigIntFilter<"compta_journal_ecriture_detail"> | bigint | number + journal_id?: Prisma.BigIntNullableFilter<"compta_journal_ecriture_detail"> | bigint | number | null + num_compte?: Prisma.BigIntNullableFilter<"compta_journal_ecriture_detail"> | bigint | number | null + amount?: Prisma.FloatNullableFilter<"compta_journal_ecriture_detail"> | number | null + action?: Prisma.StringNullableFilter<"compta_journal_ecriture_detail"> | string | null +} + +export type compta_journal_ecriture_detailOrderByWithRelationInput = { + id?: Prisma.SortOrder + journal_id?: Prisma.SortOrderInput | Prisma.SortOrder + num_compte?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + action?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.compta_journal_ecriture_detailOrderByRelevanceInput +} + +export type compta_journal_ecriture_detailWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.compta_journal_ecriture_detailWhereInput | Prisma.compta_journal_ecriture_detailWhereInput[] + OR?: Prisma.compta_journal_ecriture_detailWhereInput[] + NOT?: Prisma.compta_journal_ecriture_detailWhereInput | Prisma.compta_journal_ecriture_detailWhereInput[] + journal_id?: Prisma.BigIntNullableFilter<"compta_journal_ecriture_detail"> | bigint | number | null + num_compte?: Prisma.BigIntNullableFilter<"compta_journal_ecriture_detail"> | bigint | number | null + amount?: Prisma.FloatNullableFilter<"compta_journal_ecriture_detail"> | number | null + action?: Prisma.StringNullableFilter<"compta_journal_ecriture_detail"> | string | null +}, "id"> + +export type compta_journal_ecriture_detailOrderByWithAggregationInput = { + id?: Prisma.SortOrder + journal_id?: Prisma.SortOrderInput | Prisma.SortOrder + num_compte?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + action?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.compta_journal_ecriture_detailCountOrderByAggregateInput + _avg?: Prisma.compta_journal_ecriture_detailAvgOrderByAggregateInput + _max?: Prisma.compta_journal_ecriture_detailMaxOrderByAggregateInput + _min?: Prisma.compta_journal_ecriture_detailMinOrderByAggregateInput + _sum?: Prisma.compta_journal_ecriture_detailSumOrderByAggregateInput +} + +export type compta_journal_ecriture_detailScalarWhereWithAggregatesInput = { + AND?: Prisma.compta_journal_ecriture_detailScalarWhereWithAggregatesInput | Prisma.compta_journal_ecriture_detailScalarWhereWithAggregatesInput[] + OR?: Prisma.compta_journal_ecriture_detailScalarWhereWithAggregatesInput[] + NOT?: Prisma.compta_journal_ecriture_detailScalarWhereWithAggregatesInput | Prisma.compta_journal_ecriture_detailScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"compta_journal_ecriture_detail"> | bigint | number + journal_id?: Prisma.BigIntNullableWithAggregatesFilter<"compta_journal_ecriture_detail"> | bigint | number | null + num_compte?: Prisma.BigIntNullableWithAggregatesFilter<"compta_journal_ecriture_detail"> | bigint | number | null + amount?: Prisma.FloatNullableWithAggregatesFilter<"compta_journal_ecriture_detail"> | number | null + action?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture_detail"> | string | null +} + +export type compta_journal_ecriture_detailCreateInput = { + id?: bigint | number + journal_id?: bigint | number | null + num_compte?: bigint | number | null + amount?: number | null + action?: string | null +} + +export type compta_journal_ecriture_detailUncheckedCreateInput = { + id?: bigint | number + journal_id?: bigint | number | null + num_compte?: bigint | number | null + amount?: number | null + action?: string | null +} + +export type compta_journal_ecriture_detailUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + journal_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_journal_ecriture_detailUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + journal_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_journal_ecriture_detailCreateManyInput = { + id?: bigint | number + journal_id?: bigint | number | null + num_compte?: bigint | number | null + amount?: number | null + action?: string | null +} + +export type compta_journal_ecriture_detailUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + journal_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_journal_ecriture_detailUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + journal_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_journal_ecriture_detailOrderByRelevanceInput = { + fields: Prisma.compta_journal_ecriture_detailOrderByRelevanceFieldEnum | Prisma.compta_journal_ecriture_detailOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type compta_journal_ecriture_detailCountOrderByAggregateInput = { + id?: Prisma.SortOrder + journal_id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + amount?: Prisma.SortOrder + action?: Prisma.SortOrder +} + +export type compta_journal_ecriture_detailAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + journal_id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type compta_journal_ecriture_detailMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + journal_id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + amount?: Prisma.SortOrder + action?: Prisma.SortOrder +} + +export type compta_journal_ecriture_detailMinOrderByAggregateInput = { + id?: Prisma.SortOrder + journal_id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + amount?: Prisma.SortOrder + action?: Prisma.SortOrder +} + +export type compta_journal_ecriture_detailSumOrderByAggregateInput = { + id?: Prisma.SortOrder + journal_id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type NullableFloatFieldUpdateOperationsInput = { + set?: number | null + increment?: number + decrement?: number + multiply?: number + divide?: number +} + + + +export type compta_journal_ecriture_detailSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + journal_id?: boolean + num_compte?: boolean + amount?: boolean + action?: boolean +}, ExtArgs["result"]["compta_journal_ecriture_detail"]> + + + +export type compta_journal_ecriture_detailSelectScalar = { + id?: boolean + journal_id?: boolean + num_compte?: boolean + amount?: boolean + action?: boolean +} + +export type compta_journal_ecriture_detailOmit = runtime.Types.Extensions.GetOmit<"id" | "journal_id" | "num_compte" | "amount" | "action", ExtArgs["result"]["compta_journal_ecriture_detail"]> + +export type $compta_journal_ecriture_detailPayload = { + name: "compta_journal_ecriture_detail" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + journal_id: bigint | null + num_compte: bigint | null + amount: number | null + action: string | null + }, ExtArgs["result"]["compta_journal_ecriture_detail"]> + composites: {} +} + +export type compta_journal_ecriture_detailGetPayload = runtime.Types.Result.GetResult + +export type compta_journal_ecriture_detailCountArgs = + Omit & { + select?: Compta_journal_ecriture_detailCountAggregateInputType | true + } + +export interface compta_journal_ecriture_detailDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['compta_journal_ecriture_detail'], meta: { name: 'compta_journal_ecriture_detail' } } + /** + * Find zero or one Compta_journal_ecriture_detail that matches the filter. + * @param {compta_journal_ecriture_detailFindUniqueArgs} args - Arguments to find a Compta_journal_ecriture_detail + * @example + * // Get one Compta_journal_ecriture_detail + * const compta_journal_ecriture_detail = await prisma.compta_journal_ecriture_detail.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detailClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Compta_journal_ecriture_detail that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {compta_journal_ecriture_detailFindUniqueOrThrowArgs} args - Arguments to find a Compta_journal_ecriture_detail + * @example + * // Get one Compta_journal_ecriture_detail + * const compta_journal_ecriture_detail = await prisma.compta_journal_ecriture_detail.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detailClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_journal_ecriture_detail 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 {compta_journal_ecriture_detailFindFirstArgs} args - Arguments to find a Compta_journal_ecriture_detail + * @example + * // Get one Compta_journal_ecriture_detail + * const compta_journal_ecriture_detail = await prisma.compta_journal_ecriture_detail.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detailClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_journal_ecriture_detail 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 {compta_journal_ecriture_detailFindFirstOrThrowArgs} args - Arguments to find a Compta_journal_ecriture_detail + * @example + * // Get one Compta_journal_ecriture_detail + * const compta_journal_ecriture_detail = await prisma.compta_journal_ecriture_detail.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detailClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Compta_journal_ecriture_details 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 {compta_journal_ecriture_detailFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Compta_journal_ecriture_details + * const compta_journal_ecriture_details = await prisma.compta_journal_ecriture_detail.findMany() + * + * // Get first 10 Compta_journal_ecriture_details + * const compta_journal_ecriture_details = await prisma.compta_journal_ecriture_detail.findMany({ take: 10 }) + * + * // Only select the `id` + * const compta_journal_ecriture_detailWithIdOnly = await prisma.compta_journal_ecriture_detail.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Compta_journal_ecriture_detail. + * @param {compta_journal_ecriture_detailCreateArgs} args - Arguments to create a Compta_journal_ecriture_detail. + * @example + * // Create one Compta_journal_ecriture_detail + * const Compta_journal_ecriture_detail = await prisma.compta_journal_ecriture_detail.create({ + * data: { + * // ... data to create a Compta_journal_ecriture_detail + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detailClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Compta_journal_ecriture_details. + * @param {compta_journal_ecriture_detailCreateManyArgs} args - Arguments to create many Compta_journal_ecriture_details. + * @example + * // Create many Compta_journal_ecriture_details + * const compta_journal_ecriture_detail = await prisma.compta_journal_ecriture_detail.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Compta_journal_ecriture_detail. + * @param {compta_journal_ecriture_detailDeleteArgs} args - Arguments to delete one Compta_journal_ecriture_detail. + * @example + * // Delete one Compta_journal_ecriture_detail + * const Compta_journal_ecriture_detail = await prisma.compta_journal_ecriture_detail.delete({ + * where: { + * // ... filter to delete one Compta_journal_ecriture_detail + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detailClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Compta_journal_ecriture_detail. + * @param {compta_journal_ecriture_detailUpdateArgs} args - Arguments to update one Compta_journal_ecriture_detail. + * @example + * // Update one Compta_journal_ecriture_detail + * const compta_journal_ecriture_detail = await prisma.compta_journal_ecriture_detail.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detailClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Compta_journal_ecriture_details. + * @param {compta_journal_ecriture_detailDeleteManyArgs} args - Arguments to filter Compta_journal_ecriture_details to delete. + * @example + * // Delete a few Compta_journal_ecriture_details + * const { count } = await prisma.compta_journal_ecriture_detail.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Compta_journal_ecriture_details. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_journal_ecriture_detailUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Compta_journal_ecriture_details + * const compta_journal_ecriture_detail = await prisma.compta_journal_ecriture_detail.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Compta_journal_ecriture_detail. + * @param {compta_journal_ecriture_detailUpsertArgs} args - Arguments to update or create a Compta_journal_ecriture_detail. + * @example + * // Update or create a Compta_journal_ecriture_detail + * const compta_journal_ecriture_detail = await prisma.compta_journal_ecriture_detail.upsert({ + * create: { + * // ... data to create a Compta_journal_ecriture_detail + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Compta_journal_ecriture_detail we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detailClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Compta_journal_ecriture_details. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_journal_ecriture_detailCountArgs} args - Arguments to filter Compta_journal_ecriture_details to count. + * @example + * // Count the number of Compta_journal_ecriture_details + * const count = await prisma.compta_journal_ecriture_detail.count({ + * where: { + * // ... the filter for the Compta_journal_ecriture_details 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 Compta_journal_ecriture_detail. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Compta_journal_ecriture_detailAggregateArgs} 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 Compta_journal_ecriture_detail. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_journal_ecriture_detailGroupByArgs} 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 compta_journal_ecriture_detailGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: compta_journal_ecriture_detailGroupByArgs['orderBy'] } + : { orderBy?: compta_journal_ecriture_detailGroupByArgs['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 ? GetCompta_journal_ecriture_detailGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the compta_journal_ecriture_detail model + */ +readonly fields: compta_journal_ecriture_detailFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for compta_journal_ecriture_detail. + * 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__compta_journal_ecriture_detailClient 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 compta_journal_ecriture_detail model + */ +export interface compta_journal_ecriture_detailFieldRefs { + readonly id: Prisma.FieldRef<"compta_journal_ecriture_detail", 'BigInt'> + readonly journal_id: Prisma.FieldRef<"compta_journal_ecriture_detail", 'BigInt'> + readonly num_compte: Prisma.FieldRef<"compta_journal_ecriture_detail", 'BigInt'> + readonly amount: Prisma.FieldRef<"compta_journal_ecriture_detail", 'Float'> + readonly action: Prisma.FieldRef<"compta_journal_ecriture_detail", 'String'> +} + + +// Custom InputTypes +/** + * compta_journal_ecriture_detail findUnique + */ +export type compta_journal_ecriture_detailFindUniqueArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail + */ + select?: Prisma.compta_journal_ecriture_detailSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail + */ + omit?: Prisma.compta_journal_ecriture_detailOmit | null + /** + * Filter, which compta_journal_ecriture_detail to fetch. + */ + where: Prisma.compta_journal_ecriture_detailWhereUniqueInput +} + +/** + * compta_journal_ecriture_detail findUniqueOrThrow + */ +export type compta_journal_ecriture_detailFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail + */ + select?: Prisma.compta_journal_ecriture_detailSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail + */ + omit?: Prisma.compta_journal_ecriture_detailOmit | null + /** + * Filter, which compta_journal_ecriture_detail to fetch. + */ + where: Prisma.compta_journal_ecriture_detailWhereUniqueInput +} + +/** + * compta_journal_ecriture_detail findFirst + */ +export type compta_journal_ecriture_detailFindFirstArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail + */ + select?: Prisma.compta_journal_ecriture_detailSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail + */ + omit?: Prisma.compta_journal_ecriture_detailOmit | null + /** + * Filter, which compta_journal_ecriture_detail to fetch. + */ + where?: Prisma.compta_journal_ecriture_detailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecriture_details to fetch. + */ + orderBy?: Prisma.compta_journal_ecriture_detailOrderByWithRelationInput | Prisma.compta_journal_ecriture_detailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_journal_ecriture_details. + */ + cursor?: Prisma.compta_journal_ecriture_detailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecriture_details 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` compta_journal_ecriture_details. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_journal_ecriture_details. + */ + distinct?: Prisma.Compta_journal_ecriture_detailScalarFieldEnum | Prisma.Compta_journal_ecriture_detailScalarFieldEnum[] +} + +/** + * compta_journal_ecriture_detail findFirstOrThrow + */ +export type compta_journal_ecriture_detailFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail + */ + select?: Prisma.compta_journal_ecriture_detailSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail + */ + omit?: Prisma.compta_journal_ecriture_detailOmit | null + /** + * Filter, which compta_journal_ecriture_detail to fetch. + */ + where?: Prisma.compta_journal_ecriture_detailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecriture_details to fetch. + */ + orderBy?: Prisma.compta_journal_ecriture_detailOrderByWithRelationInput | Prisma.compta_journal_ecriture_detailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_journal_ecriture_details. + */ + cursor?: Prisma.compta_journal_ecriture_detailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecriture_details 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` compta_journal_ecriture_details. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_journal_ecriture_details. + */ + distinct?: Prisma.Compta_journal_ecriture_detailScalarFieldEnum | Prisma.Compta_journal_ecriture_detailScalarFieldEnum[] +} + +/** + * compta_journal_ecriture_detail findMany + */ +export type compta_journal_ecriture_detailFindManyArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail + */ + select?: Prisma.compta_journal_ecriture_detailSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail + */ + omit?: Prisma.compta_journal_ecriture_detailOmit | null + /** + * Filter, which compta_journal_ecriture_details to fetch. + */ + where?: Prisma.compta_journal_ecriture_detailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecriture_details to fetch. + */ + orderBy?: Prisma.compta_journal_ecriture_detailOrderByWithRelationInput | Prisma.compta_journal_ecriture_detailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing compta_journal_ecriture_details. + */ + cursor?: Prisma.compta_journal_ecriture_detailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecriture_details 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` compta_journal_ecriture_details. + */ + skip?: number + distinct?: Prisma.Compta_journal_ecriture_detailScalarFieldEnum | Prisma.Compta_journal_ecriture_detailScalarFieldEnum[] +} + +/** + * compta_journal_ecriture_detail create + */ +export type compta_journal_ecriture_detailCreateArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail + */ + select?: Prisma.compta_journal_ecriture_detailSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail + */ + omit?: Prisma.compta_journal_ecriture_detailOmit | null + /** + * The data needed to create a compta_journal_ecriture_detail. + */ + data?: Prisma.XOR +} + +/** + * compta_journal_ecriture_detail createMany + */ +export type compta_journal_ecriture_detailCreateManyArgs = { + /** + * The data used to create many compta_journal_ecriture_details. + */ + data: Prisma.compta_journal_ecriture_detailCreateManyInput | Prisma.compta_journal_ecriture_detailCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * compta_journal_ecriture_detail update + */ +export type compta_journal_ecriture_detailUpdateArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail + */ + select?: Prisma.compta_journal_ecriture_detailSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail + */ + omit?: Prisma.compta_journal_ecriture_detailOmit | null + /** + * The data needed to update a compta_journal_ecriture_detail. + */ + data: Prisma.XOR + /** + * Choose, which compta_journal_ecriture_detail to update. + */ + where: Prisma.compta_journal_ecriture_detailWhereUniqueInput +} + +/** + * compta_journal_ecriture_detail updateMany + */ +export type compta_journal_ecriture_detailUpdateManyArgs = { + /** + * The data used to update compta_journal_ecriture_details. + */ + data: Prisma.XOR + /** + * Filter which compta_journal_ecriture_details to update + */ + where?: Prisma.compta_journal_ecriture_detailWhereInput + /** + * Limit how many compta_journal_ecriture_details to update. + */ + limit?: number +} + +/** + * compta_journal_ecriture_detail upsert + */ +export type compta_journal_ecriture_detailUpsertArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail + */ + select?: Prisma.compta_journal_ecriture_detailSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail + */ + omit?: Prisma.compta_journal_ecriture_detailOmit | null + /** + * The filter to search for the compta_journal_ecriture_detail to update in case it exists. + */ + where: Prisma.compta_journal_ecriture_detailWhereUniqueInput + /** + * In case the compta_journal_ecriture_detail found by the `where` argument doesn't exist, create a new compta_journal_ecriture_detail with this data. + */ + create: Prisma.XOR + /** + * In case the compta_journal_ecriture_detail was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * compta_journal_ecriture_detail delete + */ +export type compta_journal_ecriture_detailDeleteArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail + */ + select?: Prisma.compta_journal_ecriture_detailSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail + */ + omit?: Prisma.compta_journal_ecriture_detailOmit | null + /** + * Filter which compta_journal_ecriture_detail to delete. + */ + where: Prisma.compta_journal_ecriture_detailWhereUniqueInput +} + +/** + * compta_journal_ecriture_detail deleteMany + */ +export type compta_journal_ecriture_detailDeleteManyArgs = { + /** + * Filter which compta_journal_ecriture_details to delete + */ + where?: Prisma.compta_journal_ecriture_detailWhereInput + /** + * Limit how many compta_journal_ecriture_details to delete. + */ + limit?: number +} + +/** + * compta_journal_ecriture_detail without action + */ +export type compta_journal_ecriture_detailDefaultArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail + */ + select?: Prisma.compta_journal_ecriture_detailSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail + */ + omit?: Prisma.compta_journal_ecriture_detailOmit | null +} diff --git a/prisma/generated/mariadb/models/compta_journal_ecriture_detail_bk.ts b/prisma/generated/mariadb/models/compta_journal_ecriture_detail_bk.ts new file mode 100644 index 0000000..7200d75 --- /dev/null +++ b/prisma/generated/mariadb/models/compta_journal_ecriture_detail_bk.ts @@ -0,0 +1,1100 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `compta_journal_ecriture_detail_bk` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model compta_journal_ecriture_detail_bk + * + */ +export type compta_journal_ecriture_detail_bkModel = runtime.Types.Result.DefaultSelection + +export type AggregateCompta_journal_ecriture_detail_bk = { + _count: Compta_journal_ecriture_detail_bkCountAggregateOutputType | null + _avg: Compta_journal_ecriture_detail_bkAvgAggregateOutputType | null + _sum: Compta_journal_ecriture_detail_bkSumAggregateOutputType | null + _min: Compta_journal_ecriture_detail_bkMinAggregateOutputType | null + _max: Compta_journal_ecriture_detail_bkMaxAggregateOutputType | null +} + +export type Compta_journal_ecriture_detail_bkAvgAggregateOutputType = { + id: number | null + journal_id: number | null + num_compte: number | null + amount: number | null +} + +export type Compta_journal_ecriture_detail_bkSumAggregateOutputType = { + id: bigint | null + journal_id: bigint | null + num_compte: bigint | null + amount: number | null +} + +export type Compta_journal_ecriture_detail_bkMinAggregateOutputType = { + id: bigint | null + journal_id: bigint | null + num_compte: bigint | null + amount: number | null + action: string | null +} + +export type Compta_journal_ecriture_detail_bkMaxAggregateOutputType = { + id: bigint | null + journal_id: bigint | null + num_compte: bigint | null + amount: number | null + action: string | null +} + +export type Compta_journal_ecriture_detail_bkCountAggregateOutputType = { + id: number + journal_id: number + num_compte: number + amount: number + action: number + _all: number +} + + +export type Compta_journal_ecriture_detail_bkAvgAggregateInputType = { + id?: true + journal_id?: true + num_compte?: true + amount?: true +} + +export type Compta_journal_ecriture_detail_bkSumAggregateInputType = { + id?: true + journal_id?: true + num_compte?: true + amount?: true +} + +export type Compta_journal_ecriture_detail_bkMinAggregateInputType = { + id?: true + journal_id?: true + num_compte?: true + amount?: true + action?: true +} + +export type Compta_journal_ecriture_detail_bkMaxAggregateInputType = { + id?: true + journal_id?: true + num_compte?: true + amount?: true + action?: true +} + +export type Compta_journal_ecriture_detail_bkCountAggregateInputType = { + id?: true + journal_id?: true + num_compte?: true + amount?: true + action?: true + _all?: true +} + +export type Compta_journal_ecriture_detail_bkAggregateArgs = { + /** + * Filter which compta_journal_ecriture_detail_bk to aggregate. + */ + where?: Prisma.compta_journal_ecriture_detail_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecriture_detail_bks to fetch. + */ + orderBy?: Prisma.compta_journal_ecriture_detail_bkOrderByWithRelationInput | Prisma.compta_journal_ecriture_detail_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.compta_journal_ecriture_detail_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecriture_detail_bks 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` compta_journal_ecriture_detail_bks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned compta_journal_ecriture_detail_bks + **/ + _count?: true | Compta_journal_ecriture_detail_bkCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Compta_journal_ecriture_detail_bkAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Compta_journal_ecriture_detail_bkSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Compta_journal_ecriture_detail_bkMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Compta_journal_ecriture_detail_bkMaxAggregateInputType +} + +export type GetCompta_journal_ecriture_detail_bkAggregateType = { + [P in keyof T & keyof AggregateCompta_journal_ecriture_detail_bk]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type compta_journal_ecriture_detail_bkGroupByArgs = { + where?: Prisma.compta_journal_ecriture_detail_bkWhereInput + orderBy?: Prisma.compta_journal_ecriture_detail_bkOrderByWithAggregationInput | Prisma.compta_journal_ecriture_detail_bkOrderByWithAggregationInput[] + by: Prisma.Compta_journal_ecriture_detail_bkScalarFieldEnum[] | Prisma.Compta_journal_ecriture_detail_bkScalarFieldEnum + having?: Prisma.compta_journal_ecriture_detail_bkScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Compta_journal_ecriture_detail_bkCountAggregateInputType | true + _avg?: Compta_journal_ecriture_detail_bkAvgAggregateInputType + _sum?: Compta_journal_ecriture_detail_bkSumAggregateInputType + _min?: Compta_journal_ecriture_detail_bkMinAggregateInputType + _max?: Compta_journal_ecriture_detail_bkMaxAggregateInputType +} + +export type Compta_journal_ecriture_detail_bkGroupByOutputType = { + id: bigint + journal_id: bigint | null + num_compte: bigint | null + amount: number | null + action: string | null + _count: Compta_journal_ecriture_detail_bkCountAggregateOutputType | null + _avg: Compta_journal_ecriture_detail_bkAvgAggregateOutputType | null + _sum: Compta_journal_ecriture_detail_bkSumAggregateOutputType | null + _min: Compta_journal_ecriture_detail_bkMinAggregateOutputType | null + _max: Compta_journal_ecriture_detail_bkMaxAggregateOutputType | null +} + +type GetCompta_journal_ecriture_detail_bkGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Compta_journal_ecriture_detail_bkGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type compta_journal_ecriture_detail_bkWhereInput = { + AND?: Prisma.compta_journal_ecriture_detail_bkWhereInput | Prisma.compta_journal_ecriture_detail_bkWhereInput[] + OR?: Prisma.compta_journal_ecriture_detail_bkWhereInput[] + NOT?: Prisma.compta_journal_ecriture_detail_bkWhereInput | Prisma.compta_journal_ecriture_detail_bkWhereInput[] + id?: Prisma.BigIntFilter<"compta_journal_ecriture_detail_bk"> | bigint | number + journal_id?: Prisma.BigIntNullableFilter<"compta_journal_ecriture_detail_bk"> | bigint | number | null + num_compte?: Prisma.BigIntNullableFilter<"compta_journal_ecriture_detail_bk"> | bigint | number | null + amount?: Prisma.FloatNullableFilter<"compta_journal_ecriture_detail_bk"> | number | null + action?: Prisma.StringNullableFilter<"compta_journal_ecriture_detail_bk"> | string | null +} + +export type compta_journal_ecriture_detail_bkOrderByWithRelationInput = { + id?: Prisma.SortOrder + journal_id?: Prisma.SortOrderInput | Prisma.SortOrder + num_compte?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + action?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.compta_journal_ecriture_detail_bkOrderByRelevanceInput +} + +export type compta_journal_ecriture_detail_bkWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.compta_journal_ecriture_detail_bkWhereInput | Prisma.compta_journal_ecriture_detail_bkWhereInput[] + OR?: Prisma.compta_journal_ecriture_detail_bkWhereInput[] + NOT?: Prisma.compta_journal_ecriture_detail_bkWhereInput | Prisma.compta_journal_ecriture_detail_bkWhereInput[] + journal_id?: Prisma.BigIntNullableFilter<"compta_journal_ecriture_detail_bk"> | bigint | number | null + num_compte?: Prisma.BigIntNullableFilter<"compta_journal_ecriture_detail_bk"> | bigint | number | null + amount?: Prisma.FloatNullableFilter<"compta_journal_ecriture_detail_bk"> | number | null + action?: Prisma.StringNullableFilter<"compta_journal_ecriture_detail_bk"> | string | null +}, "id"> + +export type compta_journal_ecriture_detail_bkOrderByWithAggregationInput = { + id?: Prisma.SortOrder + journal_id?: Prisma.SortOrderInput | Prisma.SortOrder + num_compte?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + action?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.compta_journal_ecriture_detail_bkCountOrderByAggregateInput + _avg?: Prisma.compta_journal_ecriture_detail_bkAvgOrderByAggregateInput + _max?: Prisma.compta_journal_ecriture_detail_bkMaxOrderByAggregateInput + _min?: Prisma.compta_journal_ecriture_detail_bkMinOrderByAggregateInput + _sum?: Prisma.compta_journal_ecriture_detail_bkSumOrderByAggregateInput +} + +export type compta_journal_ecriture_detail_bkScalarWhereWithAggregatesInput = { + AND?: Prisma.compta_journal_ecriture_detail_bkScalarWhereWithAggregatesInput | Prisma.compta_journal_ecriture_detail_bkScalarWhereWithAggregatesInput[] + OR?: Prisma.compta_journal_ecriture_detail_bkScalarWhereWithAggregatesInput[] + NOT?: Prisma.compta_journal_ecriture_detail_bkScalarWhereWithAggregatesInput | Prisma.compta_journal_ecriture_detail_bkScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"compta_journal_ecriture_detail_bk"> | bigint | number + journal_id?: Prisma.BigIntNullableWithAggregatesFilter<"compta_journal_ecriture_detail_bk"> | bigint | number | null + num_compte?: Prisma.BigIntNullableWithAggregatesFilter<"compta_journal_ecriture_detail_bk"> | bigint | number | null + amount?: Prisma.FloatNullableWithAggregatesFilter<"compta_journal_ecriture_detail_bk"> | number | null + action?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture_detail_bk"> | string | null +} + +export type compta_journal_ecriture_detail_bkCreateInput = { + id?: bigint | number + journal_id?: bigint | number | null + num_compte?: bigint | number | null + amount?: number | null + action?: string | null +} + +export type compta_journal_ecriture_detail_bkUncheckedCreateInput = { + id?: bigint | number + journal_id?: bigint | number | null + num_compte?: bigint | number | null + amount?: number | null + action?: string | null +} + +export type compta_journal_ecriture_detail_bkUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + journal_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_journal_ecriture_detail_bkUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + journal_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_journal_ecriture_detail_bkCreateManyInput = { + id?: bigint | number + journal_id?: bigint | number | null + num_compte?: bigint | number | null + amount?: number | null + action?: string | null +} + +export type compta_journal_ecriture_detail_bkUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + journal_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_journal_ecriture_detail_bkUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + journal_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_journal_ecriture_detail_bkOrderByRelevanceInput = { + fields: Prisma.compta_journal_ecriture_detail_bkOrderByRelevanceFieldEnum | Prisma.compta_journal_ecriture_detail_bkOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type compta_journal_ecriture_detail_bkCountOrderByAggregateInput = { + id?: Prisma.SortOrder + journal_id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + amount?: Prisma.SortOrder + action?: Prisma.SortOrder +} + +export type compta_journal_ecriture_detail_bkAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + journal_id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type compta_journal_ecriture_detail_bkMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + journal_id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + amount?: Prisma.SortOrder + action?: Prisma.SortOrder +} + +export type compta_journal_ecriture_detail_bkMinOrderByAggregateInput = { + id?: Prisma.SortOrder + journal_id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + amount?: Prisma.SortOrder + action?: Prisma.SortOrder +} + +export type compta_journal_ecriture_detail_bkSumOrderByAggregateInput = { + id?: Prisma.SortOrder + journal_id?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + + + +export type compta_journal_ecriture_detail_bkSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + journal_id?: boolean + num_compte?: boolean + amount?: boolean + action?: boolean +}, ExtArgs["result"]["compta_journal_ecriture_detail_bk"]> + + + +export type compta_journal_ecriture_detail_bkSelectScalar = { + id?: boolean + journal_id?: boolean + num_compte?: boolean + amount?: boolean + action?: boolean +} + +export type compta_journal_ecriture_detail_bkOmit = runtime.Types.Extensions.GetOmit<"id" | "journal_id" | "num_compte" | "amount" | "action", ExtArgs["result"]["compta_journal_ecriture_detail_bk"]> + +export type $compta_journal_ecriture_detail_bkPayload = { + name: "compta_journal_ecriture_detail_bk" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + journal_id: bigint | null + num_compte: bigint | null + amount: number | null + action: string | null + }, ExtArgs["result"]["compta_journal_ecriture_detail_bk"]> + composites: {} +} + +export type compta_journal_ecriture_detail_bkGetPayload = runtime.Types.Result.GetResult + +export type compta_journal_ecriture_detail_bkCountArgs = + Omit & { + select?: Compta_journal_ecriture_detail_bkCountAggregateInputType | true + } + +export interface compta_journal_ecriture_detail_bkDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['compta_journal_ecriture_detail_bk'], meta: { name: 'compta_journal_ecriture_detail_bk' } } + /** + * Find zero or one Compta_journal_ecriture_detail_bk that matches the filter. + * @param {compta_journal_ecriture_detail_bkFindUniqueArgs} args - Arguments to find a Compta_journal_ecriture_detail_bk + * @example + * // Get one Compta_journal_ecriture_detail_bk + * const compta_journal_ecriture_detail_bk = await prisma.compta_journal_ecriture_detail_bk.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detail_bkClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Compta_journal_ecriture_detail_bk that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {compta_journal_ecriture_detail_bkFindUniqueOrThrowArgs} args - Arguments to find a Compta_journal_ecriture_detail_bk + * @example + * // Get one Compta_journal_ecriture_detail_bk + * const compta_journal_ecriture_detail_bk = await prisma.compta_journal_ecriture_detail_bk.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detail_bkClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_journal_ecriture_detail_bk 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 {compta_journal_ecriture_detail_bkFindFirstArgs} args - Arguments to find a Compta_journal_ecriture_detail_bk + * @example + * // Get one Compta_journal_ecriture_detail_bk + * const compta_journal_ecriture_detail_bk = await prisma.compta_journal_ecriture_detail_bk.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detail_bkClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_journal_ecriture_detail_bk 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 {compta_journal_ecriture_detail_bkFindFirstOrThrowArgs} args - Arguments to find a Compta_journal_ecriture_detail_bk + * @example + * // Get one Compta_journal_ecriture_detail_bk + * const compta_journal_ecriture_detail_bk = await prisma.compta_journal_ecriture_detail_bk.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detail_bkClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Compta_journal_ecriture_detail_bks 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 {compta_journal_ecriture_detail_bkFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Compta_journal_ecriture_detail_bks + * const compta_journal_ecriture_detail_bks = await prisma.compta_journal_ecriture_detail_bk.findMany() + * + * // Get first 10 Compta_journal_ecriture_detail_bks + * const compta_journal_ecriture_detail_bks = await prisma.compta_journal_ecriture_detail_bk.findMany({ take: 10 }) + * + * // Only select the `id` + * const compta_journal_ecriture_detail_bkWithIdOnly = await prisma.compta_journal_ecriture_detail_bk.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Compta_journal_ecriture_detail_bk. + * @param {compta_journal_ecriture_detail_bkCreateArgs} args - Arguments to create a Compta_journal_ecriture_detail_bk. + * @example + * // Create one Compta_journal_ecriture_detail_bk + * const Compta_journal_ecriture_detail_bk = await prisma.compta_journal_ecriture_detail_bk.create({ + * data: { + * // ... data to create a Compta_journal_ecriture_detail_bk + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detail_bkClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Compta_journal_ecriture_detail_bks. + * @param {compta_journal_ecriture_detail_bkCreateManyArgs} args - Arguments to create many Compta_journal_ecriture_detail_bks. + * @example + * // Create many Compta_journal_ecriture_detail_bks + * const compta_journal_ecriture_detail_bk = await prisma.compta_journal_ecriture_detail_bk.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Compta_journal_ecriture_detail_bk. + * @param {compta_journal_ecriture_detail_bkDeleteArgs} args - Arguments to delete one Compta_journal_ecriture_detail_bk. + * @example + * // Delete one Compta_journal_ecriture_detail_bk + * const Compta_journal_ecriture_detail_bk = await prisma.compta_journal_ecriture_detail_bk.delete({ + * where: { + * // ... filter to delete one Compta_journal_ecriture_detail_bk + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detail_bkClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Compta_journal_ecriture_detail_bk. + * @param {compta_journal_ecriture_detail_bkUpdateArgs} args - Arguments to update one Compta_journal_ecriture_detail_bk. + * @example + * // Update one Compta_journal_ecriture_detail_bk + * const compta_journal_ecriture_detail_bk = await prisma.compta_journal_ecriture_detail_bk.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detail_bkClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Compta_journal_ecriture_detail_bks. + * @param {compta_journal_ecriture_detail_bkDeleteManyArgs} args - Arguments to filter Compta_journal_ecriture_detail_bks to delete. + * @example + * // Delete a few Compta_journal_ecriture_detail_bks + * const { count } = await prisma.compta_journal_ecriture_detail_bk.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Compta_journal_ecriture_detail_bks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_journal_ecriture_detail_bkUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Compta_journal_ecriture_detail_bks + * const compta_journal_ecriture_detail_bk = await prisma.compta_journal_ecriture_detail_bk.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Compta_journal_ecriture_detail_bk. + * @param {compta_journal_ecriture_detail_bkUpsertArgs} args - Arguments to update or create a Compta_journal_ecriture_detail_bk. + * @example + * // Update or create a Compta_journal_ecriture_detail_bk + * const compta_journal_ecriture_detail_bk = await prisma.compta_journal_ecriture_detail_bk.upsert({ + * create: { + * // ... data to create a Compta_journal_ecriture_detail_bk + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Compta_journal_ecriture_detail_bk we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecriture_detail_bkClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Compta_journal_ecriture_detail_bks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_journal_ecriture_detail_bkCountArgs} args - Arguments to filter Compta_journal_ecriture_detail_bks to count. + * @example + * // Count the number of Compta_journal_ecriture_detail_bks + * const count = await prisma.compta_journal_ecriture_detail_bk.count({ + * where: { + * // ... the filter for the Compta_journal_ecriture_detail_bks 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 Compta_journal_ecriture_detail_bk. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Compta_journal_ecriture_detail_bkAggregateArgs} 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 Compta_journal_ecriture_detail_bk. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_journal_ecriture_detail_bkGroupByArgs} 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 compta_journal_ecriture_detail_bkGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: compta_journal_ecriture_detail_bkGroupByArgs['orderBy'] } + : { orderBy?: compta_journal_ecriture_detail_bkGroupByArgs['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 ? GetCompta_journal_ecriture_detail_bkGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the compta_journal_ecriture_detail_bk model + */ +readonly fields: compta_journal_ecriture_detail_bkFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for compta_journal_ecriture_detail_bk. + * 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__compta_journal_ecriture_detail_bkClient 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 compta_journal_ecriture_detail_bk model + */ +export interface compta_journal_ecriture_detail_bkFieldRefs { + readonly id: Prisma.FieldRef<"compta_journal_ecriture_detail_bk", 'BigInt'> + readonly journal_id: Prisma.FieldRef<"compta_journal_ecriture_detail_bk", 'BigInt'> + readonly num_compte: Prisma.FieldRef<"compta_journal_ecriture_detail_bk", 'BigInt'> + readonly amount: Prisma.FieldRef<"compta_journal_ecriture_detail_bk", 'Float'> + readonly action: Prisma.FieldRef<"compta_journal_ecriture_detail_bk", 'String'> +} + + +// Custom InputTypes +/** + * compta_journal_ecriture_detail_bk findUnique + */ +export type compta_journal_ecriture_detail_bkFindUniqueArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail_bk + */ + select?: Prisma.compta_journal_ecriture_detail_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail_bk + */ + omit?: Prisma.compta_journal_ecriture_detail_bkOmit | null + /** + * Filter, which compta_journal_ecriture_detail_bk to fetch. + */ + where: Prisma.compta_journal_ecriture_detail_bkWhereUniqueInput +} + +/** + * compta_journal_ecriture_detail_bk findUniqueOrThrow + */ +export type compta_journal_ecriture_detail_bkFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail_bk + */ + select?: Prisma.compta_journal_ecriture_detail_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail_bk + */ + omit?: Prisma.compta_journal_ecriture_detail_bkOmit | null + /** + * Filter, which compta_journal_ecriture_detail_bk to fetch. + */ + where: Prisma.compta_journal_ecriture_detail_bkWhereUniqueInput +} + +/** + * compta_journal_ecriture_detail_bk findFirst + */ +export type compta_journal_ecriture_detail_bkFindFirstArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail_bk + */ + select?: Prisma.compta_journal_ecriture_detail_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail_bk + */ + omit?: Prisma.compta_journal_ecriture_detail_bkOmit | null + /** + * Filter, which compta_journal_ecriture_detail_bk to fetch. + */ + where?: Prisma.compta_journal_ecriture_detail_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecriture_detail_bks to fetch. + */ + orderBy?: Prisma.compta_journal_ecriture_detail_bkOrderByWithRelationInput | Prisma.compta_journal_ecriture_detail_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_journal_ecriture_detail_bks. + */ + cursor?: Prisma.compta_journal_ecriture_detail_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecriture_detail_bks 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` compta_journal_ecriture_detail_bks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_journal_ecriture_detail_bks. + */ + distinct?: Prisma.Compta_journal_ecriture_detail_bkScalarFieldEnum | Prisma.Compta_journal_ecriture_detail_bkScalarFieldEnum[] +} + +/** + * compta_journal_ecriture_detail_bk findFirstOrThrow + */ +export type compta_journal_ecriture_detail_bkFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail_bk + */ + select?: Prisma.compta_journal_ecriture_detail_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail_bk + */ + omit?: Prisma.compta_journal_ecriture_detail_bkOmit | null + /** + * Filter, which compta_journal_ecriture_detail_bk to fetch. + */ + where?: Prisma.compta_journal_ecriture_detail_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecriture_detail_bks to fetch. + */ + orderBy?: Prisma.compta_journal_ecriture_detail_bkOrderByWithRelationInput | Prisma.compta_journal_ecriture_detail_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_journal_ecriture_detail_bks. + */ + cursor?: Prisma.compta_journal_ecriture_detail_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecriture_detail_bks 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` compta_journal_ecriture_detail_bks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_journal_ecriture_detail_bks. + */ + distinct?: Prisma.Compta_journal_ecriture_detail_bkScalarFieldEnum | Prisma.Compta_journal_ecriture_detail_bkScalarFieldEnum[] +} + +/** + * compta_journal_ecriture_detail_bk findMany + */ +export type compta_journal_ecriture_detail_bkFindManyArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail_bk + */ + select?: Prisma.compta_journal_ecriture_detail_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail_bk + */ + omit?: Prisma.compta_journal_ecriture_detail_bkOmit | null + /** + * Filter, which compta_journal_ecriture_detail_bks to fetch. + */ + where?: Prisma.compta_journal_ecriture_detail_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_journal_ecriture_detail_bks to fetch. + */ + orderBy?: Prisma.compta_journal_ecriture_detail_bkOrderByWithRelationInput | Prisma.compta_journal_ecriture_detail_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing compta_journal_ecriture_detail_bks. + */ + cursor?: Prisma.compta_journal_ecriture_detail_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_journal_ecriture_detail_bks 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` compta_journal_ecriture_detail_bks. + */ + skip?: number + distinct?: Prisma.Compta_journal_ecriture_detail_bkScalarFieldEnum | Prisma.Compta_journal_ecriture_detail_bkScalarFieldEnum[] +} + +/** + * compta_journal_ecriture_detail_bk create + */ +export type compta_journal_ecriture_detail_bkCreateArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail_bk + */ + select?: Prisma.compta_journal_ecriture_detail_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail_bk + */ + omit?: Prisma.compta_journal_ecriture_detail_bkOmit | null + /** + * The data needed to create a compta_journal_ecriture_detail_bk. + */ + data?: Prisma.XOR +} + +/** + * compta_journal_ecriture_detail_bk createMany + */ +export type compta_journal_ecriture_detail_bkCreateManyArgs = { + /** + * The data used to create many compta_journal_ecriture_detail_bks. + */ + data: Prisma.compta_journal_ecriture_detail_bkCreateManyInput | Prisma.compta_journal_ecriture_detail_bkCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * compta_journal_ecriture_detail_bk update + */ +export type compta_journal_ecriture_detail_bkUpdateArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail_bk + */ + select?: Prisma.compta_journal_ecriture_detail_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail_bk + */ + omit?: Prisma.compta_journal_ecriture_detail_bkOmit | null + /** + * The data needed to update a compta_journal_ecriture_detail_bk. + */ + data: Prisma.XOR + /** + * Choose, which compta_journal_ecriture_detail_bk to update. + */ + where: Prisma.compta_journal_ecriture_detail_bkWhereUniqueInput +} + +/** + * compta_journal_ecriture_detail_bk updateMany + */ +export type compta_journal_ecriture_detail_bkUpdateManyArgs = { + /** + * The data used to update compta_journal_ecriture_detail_bks. + */ + data: Prisma.XOR + /** + * Filter which compta_journal_ecriture_detail_bks to update + */ + where?: Prisma.compta_journal_ecriture_detail_bkWhereInput + /** + * Limit how many compta_journal_ecriture_detail_bks to update. + */ + limit?: number +} + +/** + * compta_journal_ecriture_detail_bk upsert + */ +export type compta_journal_ecriture_detail_bkUpsertArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail_bk + */ + select?: Prisma.compta_journal_ecriture_detail_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail_bk + */ + omit?: Prisma.compta_journal_ecriture_detail_bkOmit | null + /** + * The filter to search for the compta_journal_ecriture_detail_bk to update in case it exists. + */ + where: Prisma.compta_journal_ecriture_detail_bkWhereUniqueInput + /** + * In case the compta_journal_ecriture_detail_bk found by the `where` argument doesn't exist, create a new compta_journal_ecriture_detail_bk with this data. + */ + create: Prisma.XOR + /** + * In case the compta_journal_ecriture_detail_bk was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * compta_journal_ecriture_detail_bk delete + */ +export type compta_journal_ecriture_detail_bkDeleteArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail_bk + */ + select?: Prisma.compta_journal_ecriture_detail_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail_bk + */ + omit?: Prisma.compta_journal_ecriture_detail_bkOmit | null + /** + * Filter which compta_journal_ecriture_detail_bk to delete. + */ + where: Prisma.compta_journal_ecriture_detail_bkWhereUniqueInput +} + +/** + * compta_journal_ecriture_detail_bk deleteMany + */ +export type compta_journal_ecriture_detail_bkDeleteManyArgs = { + /** + * Filter which compta_journal_ecriture_detail_bks to delete + */ + where?: Prisma.compta_journal_ecriture_detail_bkWhereInput + /** + * Limit how many compta_journal_ecriture_detail_bks to delete. + */ + limit?: number +} + +/** + * compta_journal_ecriture_detail_bk without action + */ +export type compta_journal_ecriture_detail_bkDefaultArgs = { + /** + * Select specific fields to fetch from the compta_journal_ecriture_detail_bk + */ + select?: Prisma.compta_journal_ecriture_detail_bkSelect | null + /** + * Omit specific fields from the compta_journal_ecriture_detail_bk + */ + omit?: Prisma.compta_journal_ecriture_detail_bkOmit | null +} diff --git a/prisma/generated/mariadb/models/compta_periode.ts b/prisma/generated/mariadb/models/compta_periode.ts new file mode 100644 index 0000000..9f230cd --- /dev/null +++ b/prisma/generated/mariadb/models/compta_periode.ts @@ -0,0 +1,971 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `compta_periode` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model compta_periode + * + */ +export type compta_periodeModel = runtime.Types.Result.DefaultSelection + +export type AggregateCompta_periode = { + _count: Compta_periodeCountAggregateOutputType | null + _avg: Compta_periodeAvgAggregateOutputType | null + _sum: Compta_periodeSumAggregateOutputType | null + _min: Compta_periodeMinAggregateOutputType | null + _max: Compta_periodeMaxAggregateOutputType | null +} + +export type Compta_periodeAvgAggregateOutputType = { + month: number | null +} + +export type Compta_periodeSumAggregateOutputType = { + month: number | null +} + +export type Compta_periodeMinAggregateOutputType = { + month: number | null +} + +export type Compta_periodeMaxAggregateOutputType = { + month: number | null +} + +export type Compta_periodeCountAggregateOutputType = { + month: number + _all: number +} + + +export type Compta_periodeAvgAggregateInputType = { + month?: true +} + +export type Compta_periodeSumAggregateInputType = { + month?: true +} + +export type Compta_periodeMinAggregateInputType = { + month?: true +} + +export type Compta_periodeMaxAggregateInputType = { + month?: true +} + +export type Compta_periodeCountAggregateInputType = { + month?: true + _all?: true +} + +export type Compta_periodeAggregateArgs = { + /** + * Filter which compta_periode to aggregate. + */ + where?: Prisma.compta_periodeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_periodes to fetch. + */ + orderBy?: Prisma.compta_periodeOrderByWithRelationInput | Prisma.compta_periodeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.compta_periodeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_periodes 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` compta_periodes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned compta_periodes + **/ + _count?: true | Compta_periodeCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Compta_periodeAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Compta_periodeSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Compta_periodeMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Compta_periodeMaxAggregateInputType +} + +export type GetCompta_periodeAggregateType = { + [P in keyof T & keyof AggregateCompta_periode]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type compta_periodeGroupByArgs = { + where?: Prisma.compta_periodeWhereInput + orderBy?: Prisma.compta_periodeOrderByWithAggregationInput | Prisma.compta_periodeOrderByWithAggregationInput[] + by: Prisma.Compta_periodeScalarFieldEnum[] | Prisma.Compta_periodeScalarFieldEnum + having?: Prisma.compta_periodeScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Compta_periodeCountAggregateInputType | true + _avg?: Compta_periodeAvgAggregateInputType + _sum?: Compta_periodeSumAggregateInputType + _min?: Compta_periodeMinAggregateInputType + _max?: Compta_periodeMaxAggregateInputType +} + +export type Compta_periodeGroupByOutputType = { + month: number + _count: Compta_periodeCountAggregateOutputType | null + _avg: Compta_periodeAvgAggregateOutputType | null + _sum: Compta_periodeSumAggregateOutputType | null + _min: Compta_periodeMinAggregateOutputType | null + _max: Compta_periodeMaxAggregateOutputType | null +} + +type GetCompta_periodeGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Compta_periodeGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type compta_periodeWhereInput = { + AND?: Prisma.compta_periodeWhereInput | Prisma.compta_periodeWhereInput[] + OR?: Prisma.compta_periodeWhereInput[] + NOT?: Prisma.compta_periodeWhereInput | Prisma.compta_periodeWhereInput[] + month?: Prisma.IntFilter<"compta_periode"> | number +} + +export type compta_periodeOrderByWithRelationInput = { + month?: Prisma.SortOrder +} + +export type compta_periodeWhereUniqueInput = Prisma.AtLeast<{ + month?: number + AND?: Prisma.compta_periodeWhereInput | Prisma.compta_periodeWhereInput[] + OR?: Prisma.compta_periodeWhereInput[] + NOT?: Prisma.compta_periodeWhereInput | Prisma.compta_periodeWhereInput[] +}, "month"> + +export type compta_periodeOrderByWithAggregationInput = { + month?: Prisma.SortOrder + _count?: Prisma.compta_periodeCountOrderByAggregateInput + _avg?: Prisma.compta_periodeAvgOrderByAggregateInput + _max?: Prisma.compta_periodeMaxOrderByAggregateInput + _min?: Prisma.compta_periodeMinOrderByAggregateInput + _sum?: Prisma.compta_periodeSumOrderByAggregateInput +} + +export type compta_periodeScalarWhereWithAggregatesInput = { + AND?: Prisma.compta_periodeScalarWhereWithAggregatesInput | Prisma.compta_periodeScalarWhereWithAggregatesInput[] + OR?: Prisma.compta_periodeScalarWhereWithAggregatesInput[] + NOT?: Prisma.compta_periodeScalarWhereWithAggregatesInput | Prisma.compta_periodeScalarWhereWithAggregatesInput[] + month?: Prisma.IntWithAggregatesFilter<"compta_periode"> | number +} + +export type compta_periodeCreateInput = { + month?: number +} + +export type compta_periodeUncheckedCreateInput = { + month?: number +} + +export type compta_periodeUpdateInput = { + month?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_periodeUncheckedUpdateInput = { + month?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_periodeCreateManyInput = { + month?: number +} + +export type compta_periodeUpdateManyMutationInput = { + month?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_periodeUncheckedUpdateManyInput = { + month?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_periodeCountOrderByAggregateInput = { + month?: Prisma.SortOrder +} + +export type compta_periodeAvgOrderByAggregateInput = { + month?: Prisma.SortOrder +} + +export type compta_periodeMaxOrderByAggregateInput = { + month?: Prisma.SortOrder +} + +export type compta_periodeMinOrderByAggregateInput = { + month?: Prisma.SortOrder +} + +export type compta_periodeSumOrderByAggregateInput = { + month?: Prisma.SortOrder +} + + + +export type compta_periodeSelect = runtime.Types.Extensions.GetSelect<{ + month?: boolean +}, ExtArgs["result"]["compta_periode"]> + + + +export type compta_periodeSelectScalar = { + month?: boolean +} + +export type compta_periodeOmit = runtime.Types.Extensions.GetOmit<"month", ExtArgs["result"]["compta_periode"]> + +export type $compta_periodePayload = { + name: "compta_periode" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + month: number + }, ExtArgs["result"]["compta_periode"]> + composites: {} +} + +export type compta_periodeGetPayload = runtime.Types.Result.GetResult + +export type compta_periodeCountArgs = + Omit & { + select?: Compta_periodeCountAggregateInputType | true + } + +export interface compta_periodeDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['compta_periode'], meta: { name: 'compta_periode' } } + /** + * Find zero or one Compta_periode that matches the filter. + * @param {compta_periodeFindUniqueArgs} args - Arguments to find a Compta_periode + * @example + * // Get one Compta_periode + * const compta_periode = await prisma.compta_periode.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__compta_periodeClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Compta_periode that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {compta_periodeFindUniqueOrThrowArgs} args - Arguments to find a Compta_periode + * @example + * // Get one Compta_periode + * const compta_periode = await prisma.compta_periode.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__compta_periodeClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_periode 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 {compta_periodeFindFirstArgs} args - Arguments to find a Compta_periode + * @example + * // Get one Compta_periode + * const compta_periode = await prisma.compta_periode.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_periodeClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_periode 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 {compta_periodeFindFirstOrThrowArgs} args - Arguments to find a Compta_periode + * @example + * // Get one Compta_periode + * const compta_periode = await prisma.compta_periode.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_periodeClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Compta_periodes 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 {compta_periodeFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Compta_periodes + * const compta_periodes = await prisma.compta_periode.findMany() + * + * // Get first 10 Compta_periodes + * const compta_periodes = await prisma.compta_periode.findMany({ take: 10 }) + * + * // Only select the `month` + * const compta_periodeWithMonthOnly = await prisma.compta_periode.findMany({ select: { month: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Compta_periode. + * @param {compta_periodeCreateArgs} args - Arguments to create a Compta_periode. + * @example + * // Create one Compta_periode + * const Compta_periode = await prisma.compta_periode.create({ + * data: { + * // ... data to create a Compta_periode + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__compta_periodeClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Compta_periodes. + * @param {compta_periodeCreateManyArgs} args - Arguments to create many Compta_periodes. + * @example + * // Create many Compta_periodes + * const compta_periode = await prisma.compta_periode.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Compta_periode. + * @param {compta_periodeDeleteArgs} args - Arguments to delete one Compta_periode. + * @example + * // Delete one Compta_periode + * const Compta_periode = await prisma.compta_periode.delete({ + * where: { + * // ... filter to delete one Compta_periode + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__compta_periodeClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Compta_periode. + * @param {compta_periodeUpdateArgs} args - Arguments to update one Compta_periode. + * @example + * // Update one Compta_periode + * const compta_periode = await prisma.compta_periode.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__compta_periodeClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Compta_periodes. + * @param {compta_periodeDeleteManyArgs} args - Arguments to filter Compta_periodes to delete. + * @example + * // Delete a few Compta_periodes + * const { count } = await prisma.compta_periode.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Compta_periodes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_periodeUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Compta_periodes + * const compta_periode = await prisma.compta_periode.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Compta_periode. + * @param {compta_periodeUpsertArgs} args - Arguments to update or create a Compta_periode. + * @example + * // Update or create a Compta_periode + * const compta_periode = await prisma.compta_periode.upsert({ + * create: { + * // ... data to create a Compta_periode + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Compta_periode we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__compta_periodeClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Compta_periodes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_periodeCountArgs} args - Arguments to filter Compta_periodes to count. + * @example + * // Count the number of Compta_periodes + * const count = await prisma.compta_periode.count({ + * where: { + * // ... the filter for the Compta_periodes 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 Compta_periode. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Compta_periodeAggregateArgs} 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 Compta_periode. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_periodeGroupByArgs} 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 compta_periodeGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: compta_periodeGroupByArgs['orderBy'] } + : { orderBy?: compta_periodeGroupByArgs['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 ? GetCompta_periodeGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the compta_periode model + */ +readonly fields: compta_periodeFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for compta_periode. + * 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__compta_periodeClient 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 compta_periode model + */ +export interface compta_periodeFieldRefs { + readonly month: Prisma.FieldRef<"compta_periode", 'Int'> +} + + +// Custom InputTypes +/** + * compta_periode findUnique + */ +export type compta_periodeFindUniqueArgs = { + /** + * Select specific fields to fetch from the compta_periode + */ + select?: Prisma.compta_periodeSelect | null + /** + * Omit specific fields from the compta_periode + */ + omit?: Prisma.compta_periodeOmit | null + /** + * Filter, which compta_periode to fetch. + */ + where: Prisma.compta_periodeWhereUniqueInput +} + +/** + * compta_periode findUniqueOrThrow + */ +export type compta_periodeFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_periode + */ + select?: Prisma.compta_periodeSelect | null + /** + * Omit specific fields from the compta_periode + */ + omit?: Prisma.compta_periodeOmit | null + /** + * Filter, which compta_periode to fetch. + */ + where: Prisma.compta_periodeWhereUniqueInput +} + +/** + * compta_periode findFirst + */ +export type compta_periodeFindFirstArgs = { + /** + * Select specific fields to fetch from the compta_periode + */ + select?: Prisma.compta_periodeSelect | null + /** + * Omit specific fields from the compta_periode + */ + omit?: Prisma.compta_periodeOmit | null + /** + * Filter, which compta_periode to fetch. + */ + where?: Prisma.compta_periodeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_periodes to fetch. + */ + orderBy?: Prisma.compta_periodeOrderByWithRelationInput | Prisma.compta_periodeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_periodes. + */ + cursor?: Prisma.compta_periodeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_periodes 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` compta_periodes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_periodes. + */ + distinct?: Prisma.Compta_periodeScalarFieldEnum | Prisma.Compta_periodeScalarFieldEnum[] +} + +/** + * compta_periode findFirstOrThrow + */ +export type compta_periodeFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_periode + */ + select?: Prisma.compta_periodeSelect | null + /** + * Omit specific fields from the compta_periode + */ + omit?: Prisma.compta_periodeOmit | null + /** + * Filter, which compta_periode to fetch. + */ + where?: Prisma.compta_periodeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_periodes to fetch. + */ + orderBy?: Prisma.compta_periodeOrderByWithRelationInput | Prisma.compta_periodeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_periodes. + */ + cursor?: Prisma.compta_periodeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_periodes 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` compta_periodes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_periodes. + */ + distinct?: Prisma.Compta_periodeScalarFieldEnum | Prisma.Compta_periodeScalarFieldEnum[] +} + +/** + * compta_periode findMany + */ +export type compta_periodeFindManyArgs = { + /** + * Select specific fields to fetch from the compta_periode + */ + select?: Prisma.compta_periodeSelect | null + /** + * Omit specific fields from the compta_periode + */ + omit?: Prisma.compta_periodeOmit | null + /** + * Filter, which compta_periodes to fetch. + */ + where?: Prisma.compta_periodeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_periodes to fetch. + */ + orderBy?: Prisma.compta_periodeOrderByWithRelationInput | Prisma.compta_periodeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing compta_periodes. + */ + cursor?: Prisma.compta_periodeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_periodes 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` compta_periodes. + */ + skip?: number + distinct?: Prisma.Compta_periodeScalarFieldEnum | Prisma.Compta_periodeScalarFieldEnum[] +} + +/** + * compta_periode create + */ +export type compta_periodeCreateArgs = { + /** + * Select specific fields to fetch from the compta_periode + */ + select?: Prisma.compta_periodeSelect | null + /** + * Omit specific fields from the compta_periode + */ + omit?: Prisma.compta_periodeOmit | null + /** + * The data needed to create a compta_periode. + */ + data?: Prisma.XOR +} + +/** + * compta_periode createMany + */ +export type compta_periodeCreateManyArgs = { + /** + * The data used to create many compta_periodes. + */ + data: Prisma.compta_periodeCreateManyInput | Prisma.compta_periodeCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * compta_periode update + */ +export type compta_periodeUpdateArgs = { + /** + * Select specific fields to fetch from the compta_periode + */ + select?: Prisma.compta_periodeSelect | null + /** + * Omit specific fields from the compta_periode + */ + omit?: Prisma.compta_periodeOmit | null + /** + * The data needed to update a compta_periode. + */ + data: Prisma.XOR + /** + * Choose, which compta_periode to update. + */ + where: Prisma.compta_periodeWhereUniqueInput +} + +/** + * compta_periode updateMany + */ +export type compta_periodeUpdateManyArgs = { + /** + * The data used to update compta_periodes. + */ + data: Prisma.XOR + /** + * Filter which compta_periodes to update + */ + where?: Prisma.compta_periodeWhereInput + /** + * Limit how many compta_periodes to update. + */ + limit?: number +} + +/** + * compta_periode upsert + */ +export type compta_periodeUpsertArgs = { + /** + * Select specific fields to fetch from the compta_periode + */ + select?: Prisma.compta_periodeSelect | null + /** + * Omit specific fields from the compta_periode + */ + omit?: Prisma.compta_periodeOmit | null + /** + * The filter to search for the compta_periode to update in case it exists. + */ + where: Prisma.compta_periodeWhereUniqueInput + /** + * In case the compta_periode found by the `where` argument doesn't exist, create a new compta_periode with this data. + */ + create: Prisma.XOR + /** + * In case the compta_periode was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * compta_periode delete + */ +export type compta_periodeDeleteArgs = { + /** + * Select specific fields to fetch from the compta_periode + */ + select?: Prisma.compta_periodeSelect | null + /** + * Omit specific fields from the compta_periode + */ + omit?: Prisma.compta_periodeOmit | null + /** + * Filter which compta_periode to delete. + */ + where: Prisma.compta_periodeWhereUniqueInput +} + +/** + * compta_periode deleteMany + */ +export type compta_periodeDeleteManyArgs = { + /** + * Filter which compta_periodes to delete + */ + where?: Prisma.compta_periodeWhereInput + /** + * Limit how many compta_periodes to delete. + */ + limit?: number +} + +/** + * compta_periode without action + */ +export type compta_periodeDefaultArgs = { + /** + * Select specific fields to fetch from the compta_periode + */ + select?: Prisma.compta_periodeSelect | null + /** + * Omit specific fields from the compta_periode + */ + omit?: Prisma.compta_periodeOmit | null +} diff --git a/prisma/generated/mariadb/models/compta_ppa_file_id.ts b/prisma/generated/mariadb/models/compta_ppa_file_id.ts new file mode 100644 index 0000000..3d09db2 --- /dev/null +++ b/prisma/generated/mariadb/models/compta_ppa_file_id.ts @@ -0,0 +1,971 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `compta_ppa_file_id` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model compta_ppa_file_id + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type compta_ppa_file_idModel = runtime.Types.Result.DefaultSelection + +export type AggregateCompta_ppa_file_id = { + _count: Compta_ppa_file_idCountAggregateOutputType | null + _avg: Compta_ppa_file_idAvgAggregateOutputType | null + _sum: Compta_ppa_file_idSumAggregateOutputType | null + _min: Compta_ppa_file_idMinAggregateOutputType | null + _max: Compta_ppa_file_idMaxAggregateOutputType | null +} + +export type Compta_ppa_file_idAvgAggregateOutputType = { + last_id: number | null +} + +export type Compta_ppa_file_idSumAggregateOutputType = { + last_id: number | null +} + +export type Compta_ppa_file_idMinAggregateOutputType = { + last_id: number | null +} + +export type Compta_ppa_file_idMaxAggregateOutputType = { + last_id: number | null +} + +export type Compta_ppa_file_idCountAggregateOutputType = { + last_id: number + _all: number +} + + +export type Compta_ppa_file_idAvgAggregateInputType = { + last_id?: true +} + +export type Compta_ppa_file_idSumAggregateInputType = { + last_id?: true +} + +export type Compta_ppa_file_idMinAggregateInputType = { + last_id?: true +} + +export type Compta_ppa_file_idMaxAggregateInputType = { + last_id?: true +} + +export type Compta_ppa_file_idCountAggregateInputType = { + last_id?: true + _all?: true +} + +export type Compta_ppa_file_idAggregateArgs = { + /** + * Filter which compta_ppa_file_id to aggregate. + */ + where?: Prisma.compta_ppa_file_idWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_ppa_file_ids to fetch. + */ + orderBy?: Prisma.compta_ppa_file_idOrderByWithRelationInput | Prisma.compta_ppa_file_idOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.compta_ppa_file_idWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_ppa_file_ids 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` compta_ppa_file_ids. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned compta_ppa_file_ids + **/ + _count?: true | Compta_ppa_file_idCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Compta_ppa_file_idAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Compta_ppa_file_idSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Compta_ppa_file_idMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Compta_ppa_file_idMaxAggregateInputType +} + +export type GetCompta_ppa_file_idAggregateType = { + [P in keyof T & keyof AggregateCompta_ppa_file_id]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type compta_ppa_file_idGroupByArgs = { + where?: Prisma.compta_ppa_file_idWhereInput + orderBy?: Prisma.compta_ppa_file_idOrderByWithAggregationInput | Prisma.compta_ppa_file_idOrderByWithAggregationInput[] + by: Prisma.Compta_ppa_file_idScalarFieldEnum[] | Prisma.Compta_ppa_file_idScalarFieldEnum + having?: Prisma.compta_ppa_file_idScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Compta_ppa_file_idCountAggregateInputType | true + _avg?: Compta_ppa_file_idAvgAggregateInputType + _sum?: Compta_ppa_file_idSumAggregateInputType + _min?: Compta_ppa_file_idMinAggregateInputType + _max?: Compta_ppa_file_idMaxAggregateInputType +} + +export type Compta_ppa_file_idGroupByOutputType = { + last_id: number + _count: Compta_ppa_file_idCountAggregateOutputType | null + _avg: Compta_ppa_file_idAvgAggregateOutputType | null + _sum: Compta_ppa_file_idSumAggregateOutputType | null + _min: Compta_ppa_file_idMinAggregateOutputType | null + _max: Compta_ppa_file_idMaxAggregateOutputType | null +} + +type GetCompta_ppa_file_idGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Compta_ppa_file_idGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type compta_ppa_file_idWhereInput = { + AND?: Prisma.compta_ppa_file_idWhereInput | Prisma.compta_ppa_file_idWhereInput[] + OR?: Prisma.compta_ppa_file_idWhereInput[] + NOT?: Prisma.compta_ppa_file_idWhereInput | Prisma.compta_ppa_file_idWhereInput[] + last_id?: Prisma.IntFilter<"compta_ppa_file_id"> | number +} + +export type compta_ppa_file_idOrderByWithRelationInput = { + last_id?: Prisma.SortOrder +} + +export type compta_ppa_file_idWhereUniqueInput = Prisma.AtLeast<{ + last_id?: number + AND?: Prisma.compta_ppa_file_idWhereInput | Prisma.compta_ppa_file_idWhereInput[] + OR?: Prisma.compta_ppa_file_idWhereInput[] + NOT?: Prisma.compta_ppa_file_idWhereInput | Prisma.compta_ppa_file_idWhereInput[] +}, "last_id"> + +export type compta_ppa_file_idOrderByWithAggregationInput = { + last_id?: Prisma.SortOrder + _count?: Prisma.compta_ppa_file_idCountOrderByAggregateInput + _avg?: Prisma.compta_ppa_file_idAvgOrderByAggregateInput + _max?: Prisma.compta_ppa_file_idMaxOrderByAggregateInput + _min?: Prisma.compta_ppa_file_idMinOrderByAggregateInput + _sum?: Prisma.compta_ppa_file_idSumOrderByAggregateInput +} + +export type compta_ppa_file_idScalarWhereWithAggregatesInput = { + AND?: Prisma.compta_ppa_file_idScalarWhereWithAggregatesInput | Prisma.compta_ppa_file_idScalarWhereWithAggregatesInput[] + OR?: Prisma.compta_ppa_file_idScalarWhereWithAggregatesInput[] + NOT?: Prisma.compta_ppa_file_idScalarWhereWithAggregatesInput | Prisma.compta_ppa_file_idScalarWhereWithAggregatesInput[] + last_id?: Prisma.IntWithAggregatesFilter<"compta_ppa_file_id"> | number +} + +export type compta_ppa_file_idCreateInput = { + last_id?: number +} + +export type compta_ppa_file_idUncheckedCreateInput = { + last_id?: number +} + +export type compta_ppa_file_idUpdateInput = { + last_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_ppa_file_idUncheckedUpdateInput = { + last_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_ppa_file_idCreateManyInput = { + last_id?: number +} + +export type compta_ppa_file_idUpdateManyMutationInput = { + last_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_ppa_file_idUncheckedUpdateManyInput = { + last_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type compta_ppa_file_idCountOrderByAggregateInput = { + last_id?: Prisma.SortOrder +} + +export type compta_ppa_file_idAvgOrderByAggregateInput = { + last_id?: Prisma.SortOrder +} + +export type compta_ppa_file_idMaxOrderByAggregateInput = { + last_id?: Prisma.SortOrder +} + +export type compta_ppa_file_idMinOrderByAggregateInput = { + last_id?: Prisma.SortOrder +} + +export type compta_ppa_file_idSumOrderByAggregateInput = { + last_id?: Prisma.SortOrder +} + + + +export type compta_ppa_file_idSelect = runtime.Types.Extensions.GetSelect<{ + last_id?: boolean +}, ExtArgs["result"]["compta_ppa_file_id"]> + + + +export type compta_ppa_file_idSelectScalar = { + last_id?: boolean +} + +export type compta_ppa_file_idOmit = runtime.Types.Extensions.GetOmit<"last_id", ExtArgs["result"]["compta_ppa_file_id"]> + +export type $compta_ppa_file_idPayload = { + name: "compta_ppa_file_id" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + last_id: number + }, ExtArgs["result"]["compta_ppa_file_id"]> + composites: {} +} + +export type compta_ppa_file_idGetPayload = runtime.Types.Result.GetResult + +export type compta_ppa_file_idCountArgs = + Omit & { + select?: Compta_ppa_file_idCountAggregateInputType | true + } + +export interface compta_ppa_file_idDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['compta_ppa_file_id'], meta: { name: 'compta_ppa_file_id' } } + /** + * Find zero or one Compta_ppa_file_id that matches the filter. + * @param {compta_ppa_file_idFindUniqueArgs} args - Arguments to find a Compta_ppa_file_id + * @example + * // Get one Compta_ppa_file_id + * const compta_ppa_file_id = await prisma.compta_ppa_file_id.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__compta_ppa_file_idClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Compta_ppa_file_id that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {compta_ppa_file_idFindUniqueOrThrowArgs} args - Arguments to find a Compta_ppa_file_id + * @example + * // Get one Compta_ppa_file_id + * const compta_ppa_file_id = await prisma.compta_ppa_file_id.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__compta_ppa_file_idClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_ppa_file_id 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 {compta_ppa_file_idFindFirstArgs} args - Arguments to find a Compta_ppa_file_id + * @example + * // Get one Compta_ppa_file_id + * const compta_ppa_file_id = await prisma.compta_ppa_file_id.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_ppa_file_idClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_ppa_file_id 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 {compta_ppa_file_idFindFirstOrThrowArgs} args - Arguments to find a Compta_ppa_file_id + * @example + * // Get one Compta_ppa_file_id + * const compta_ppa_file_id = await prisma.compta_ppa_file_id.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_ppa_file_idClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Compta_ppa_file_ids 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 {compta_ppa_file_idFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Compta_ppa_file_ids + * const compta_ppa_file_ids = await prisma.compta_ppa_file_id.findMany() + * + * // Get first 10 Compta_ppa_file_ids + * const compta_ppa_file_ids = await prisma.compta_ppa_file_id.findMany({ take: 10 }) + * + * // Only select the `last_id` + * const compta_ppa_file_idWithLast_idOnly = await prisma.compta_ppa_file_id.findMany({ select: { last_id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Compta_ppa_file_id. + * @param {compta_ppa_file_idCreateArgs} args - Arguments to create a Compta_ppa_file_id. + * @example + * // Create one Compta_ppa_file_id + * const Compta_ppa_file_id = await prisma.compta_ppa_file_id.create({ + * data: { + * // ... data to create a Compta_ppa_file_id + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__compta_ppa_file_idClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Compta_ppa_file_ids. + * @param {compta_ppa_file_idCreateManyArgs} args - Arguments to create many Compta_ppa_file_ids. + * @example + * // Create many Compta_ppa_file_ids + * const compta_ppa_file_id = await prisma.compta_ppa_file_id.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Compta_ppa_file_id. + * @param {compta_ppa_file_idDeleteArgs} args - Arguments to delete one Compta_ppa_file_id. + * @example + * // Delete one Compta_ppa_file_id + * const Compta_ppa_file_id = await prisma.compta_ppa_file_id.delete({ + * where: { + * // ... filter to delete one Compta_ppa_file_id + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__compta_ppa_file_idClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Compta_ppa_file_id. + * @param {compta_ppa_file_idUpdateArgs} args - Arguments to update one Compta_ppa_file_id. + * @example + * // Update one Compta_ppa_file_id + * const compta_ppa_file_id = await prisma.compta_ppa_file_id.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__compta_ppa_file_idClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Compta_ppa_file_ids. + * @param {compta_ppa_file_idDeleteManyArgs} args - Arguments to filter Compta_ppa_file_ids to delete. + * @example + * // Delete a few Compta_ppa_file_ids + * const { count } = await prisma.compta_ppa_file_id.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Compta_ppa_file_ids. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_ppa_file_idUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Compta_ppa_file_ids + * const compta_ppa_file_id = await prisma.compta_ppa_file_id.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Compta_ppa_file_id. + * @param {compta_ppa_file_idUpsertArgs} args - Arguments to update or create a Compta_ppa_file_id. + * @example + * // Update or create a Compta_ppa_file_id + * const compta_ppa_file_id = await prisma.compta_ppa_file_id.upsert({ + * create: { + * // ... data to create a Compta_ppa_file_id + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Compta_ppa_file_id we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__compta_ppa_file_idClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Compta_ppa_file_ids. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_ppa_file_idCountArgs} args - Arguments to filter Compta_ppa_file_ids to count. + * @example + * // Count the number of Compta_ppa_file_ids + * const count = await prisma.compta_ppa_file_id.count({ + * where: { + * // ... the filter for the Compta_ppa_file_ids 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 Compta_ppa_file_id. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Compta_ppa_file_idAggregateArgs} 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 Compta_ppa_file_id. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_ppa_file_idGroupByArgs} 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 compta_ppa_file_idGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: compta_ppa_file_idGroupByArgs['orderBy'] } + : { orderBy?: compta_ppa_file_idGroupByArgs['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 ? GetCompta_ppa_file_idGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the compta_ppa_file_id model + */ +readonly fields: compta_ppa_file_idFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for compta_ppa_file_id. + * 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__compta_ppa_file_idClient 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 compta_ppa_file_id model + */ +export interface compta_ppa_file_idFieldRefs { + readonly last_id: Prisma.FieldRef<"compta_ppa_file_id", 'Int'> +} + + +// Custom InputTypes +/** + * compta_ppa_file_id findUnique + */ +export type compta_ppa_file_idFindUniqueArgs = { + /** + * Select specific fields to fetch from the compta_ppa_file_id + */ + select?: Prisma.compta_ppa_file_idSelect | null + /** + * Omit specific fields from the compta_ppa_file_id + */ + omit?: Prisma.compta_ppa_file_idOmit | null + /** + * Filter, which compta_ppa_file_id to fetch. + */ + where: Prisma.compta_ppa_file_idWhereUniqueInput +} + +/** + * compta_ppa_file_id findUniqueOrThrow + */ +export type compta_ppa_file_idFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_ppa_file_id + */ + select?: Prisma.compta_ppa_file_idSelect | null + /** + * Omit specific fields from the compta_ppa_file_id + */ + omit?: Prisma.compta_ppa_file_idOmit | null + /** + * Filter, which compta_ppa_file_id to fetch. + */ + where: Prisma.compta_ppa_file_idWhereUniqueInput +} + +/** + * compta_ppa_file_id findFirst + */ +export type compta_ppa_file_idFindFirstArgs = { + /** + * Select specific fields to fetch from the compta_ppa_file_id + */ + select?: Prisma.compta_ppa_file_idSelect | null + /** + * Omit specific fields from the compta_ppa_file_id + */ + omit?: Prisma.compta_ppa_file_idOmit | null + /** + * Filter, which compta_ppa_file_id to fetch. + */ + where?: Prisma.compta_ppa_file_idWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_ppa_file_ids to fetch. + */ + orderBy?: Prisma.compta_ppa_file_idOrderByWithRelationInput | Prisma.compta_ppa_file_idOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_ppa_file_ids. + */ + cursor?: Prisma.compta_ppa_file_idWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_ppa_file_ids 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` compta_ppa_file_ids. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_ppa_file_ids. + */ + distinct?: Prisma.Compta_ppa_file_idScalarFieldEnum | Prisma.Compta_ppa_file_idScalarFieldEnum[] +} + +/** + * compta_ppa_file_id findFirstOrThrow + */ +export type compta_ppa_file_idFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_ppa_file_id + */ + select?: Prisma.compta_ppa_file_idSelect | null + /** + * Omit specific fields from the compta_ppa_file_id + */ + omit?: Prisma.compta_ppa_file_idOmit | null + /** + * Filter, which compta_ppa_file_id to fetch. + */ + where?: Prisma.compta_ppa_file_idWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_ppa_file_ids to fetch. + */ + orderBy?: Prisma.compta_ppa_file_idOrderByWithRelationInput | Prisma.compta_ppa_file_idOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_ppa_file_ids. + */ + cursor?: Prisma.compta_ppa_file_idWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_ppa_file_ids 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` compta_ppa_file_ids. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_ppa_file_ids. + */ + distinct?: Prisma.Compta_ppa_file_idScalarFieldEnum | Prisma.Compta_ppa_file_idScalarFieldEnum[] +} + +/** + * compta_ppa_file_id findMany + */ +export type compta_ppa_file_idFindManyArgs = { + /** + * Select specific fields to fetch from the compta_ppa_file_id + */ + select?: Prisma.compta_ppa_file_idSelect | null + /** + * Omit specific fields from the compta_ppa_file_id + */ + omit?: Prisma.compta_ppa_file_idOmit | null + /** + * Filter, which compta_ppa_file_ids to fetch. + */ + where?: Prisma.compta_ppa_file_idWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_ppa_file_ids to fetch. + */ + orderBy?: Prisma.compta_ppa_file_idOrderByWithRelationInput | Prisma.compta_ppa_file_idOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing compta_ppa_file_ids. + */ + cursor?: Prisma.compta_ppa_file_idWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_ppa_file_ids 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` compta_ppa_file_ids. + */ + skip?: number + distinct?: Prisma.Compta_ppa_file_idScalarFieldEnum | Prisma.Compta_ppa_file_idScalarFieldEnum[] +} + +/** + * compta_ppa_file_id create + */ +export type compta_ppa_file_idCreateArgs = { + /** + * Select specific fields to fetch from the compta_ppa_file_id + */ + select?: Prisma.compta_ppa_file_idSelect | null + /** + * Omit specific fields from the compta_ppa_file_id + */ + omit?: Prisma.compta_ppa_file_idOmit | null + /** + * The data needed to create a compta_ppa_file_id. + */ + data?: Prisma.XOR +} + +/** + * compta_ppa_file_id createMany + */ +export type compta_ppa_file_idCreateManyArgs = { + /** + * The data used to create many compta_ppa_file_ids. + */ + data: Prisma.compta_ppa_file_idCreateManyInput | Prisma.compta_ppa_file_idCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * compta_ppa_file_id update + */ +export type compta_ppa_file_idUpdateArgs = { + /** + * Select specific fields to fetch from the compta_ppa_file_id + */ + select?: Prisma.compta_ppa_file_idSelect | null + /** + * Omit specific fields from the compta_ppa_file_id + */ + omit?: Prisma.compta_ppa_file_idOmit | null + /** + * The data needed to update a compta_ppa_file_id. + */ + data: Prisma.XOR + /** + * Choose, which compta_ppa_file_id to update. + */ + where: Prisma.compta_ppa_file_idWhereUniqueInput +} + +/** + * compta_ppa_file_id updateMany + */ +export type compta_ppa_file_idUpdateManyArgs = { + /** + * The data used to update compta_ppa_file_ids. + */ + data: Prisma.XOR + /** + * Filter which compta_ppa_file_ids to update + */ + where?: Prisma.compta_ppa_file_idWhereInput + /** + * Limit how many compta_ppa_file_ids to update. + */ + limit?: number +} + +/** + * compta_ppa_file_id upsert + */ +export type compta_ppa_file_idUpsertArgs = { + /** + * Select specific fields to fetch from the compta_ppa_file_id + */ + select?: Prisma.compta_ppa_file_idSelect | null + /** + * Omit specific fields from the compta_ppa_file_id + */ + omit?: Prisma.compta_ppa_file_idOmit | null + /** + * The filter to search for the compta_ppa_file_id to update in case it exists. + */ + where: Prisma.compta_ppa_file_idWhereUniqueInput + /** + * In case the compta_ppa_file_id found by the `where` argument doesn't exist, create a new compta_ppa_file_id with this data. + */ + create: Prisma.XOR + /** + * In case the compta_ppa_file_id was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * compta_ppa_file_id delete + */ +export type compta_ppa_file_idDeleteArgs = { + /** + * Select specific fields to fetch from the compta_ppa_file_id + */ + select?: Prisma.compta_ppa_file_idSelect | null + /** + * Omit specific fields from the compta_ppa_file_id + */ + omit?: Prisma.compta_ppa_file_idOmit | null + /** + * Filter which compta_ppa_file_id to delete. + */ + where: Prisma.compta_ppa_file_idWhereUniqueInput +} + +/** + * compta_ppa_file_id deleteMany + */ +export type compta_ppa_file_idDeleteManyArgs = { + /** + * Filter which compta_ppa_file_ids to delete + */ + where?: Prisma.compta_ppa_file_idWhereInput + /** + * Limit how many compta_ppa_file_ids to delete. + */ + limit?: number +} + +/** + * compta_ppa_file_id without action + */ +export type compta_ppa_file_idDefaultArgs = { + /** + * Select specific fields to fetch from the compta_ppa_file_id + */ + select?: Prisma.compta_ppa_file_idSelect | null + /** + * Omit specific fields from the compta_ppa_file_id + */ + omit?: Prisma.compta_ppa_file_idOmit | null +} diff --git a/prisma/generated/mariadb/models/compta_setup.ts b/prisma/generated/mariadb/models/compta_setup.ts new file mode 100644 index 0000000..8c21db1 --- /dev/null +++ b/prisma/generated/mariadb/models/compta_setup.ts @@ -0,0 +1,1222 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `compta_setup` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model compta_setup + * + */ +export type compta_setupModel = runtime.Types.Result.DefaultSelection + +export type AggregateCompta_setup = { + _count: Compta_setupCountAggregateOutputType | null + _avg: Compta_setupAvgAggregateOutputType | null + _sum: Compta_setupSumAggregateOutputType | null + _min: Compta_setupMinAggregateOutputType | null + _max: Compta_setupMaxAggregateOutputType | null +} + +export type Compta_setupAvgAggregateOutputType = { + setup_id: number | null + period_month: number | null + ppa_id: number | null + excedent_max: number | null + month_closed: number | null + pay_week_closed: number | null + netadmin_dispo: number | null +} + +export type Compta_setupSumAggregateOutputType = { + setup_id: number | null + period_month: number | null + ppa_id: number | null + excedent_max: number | null + month_closed: bigint | null + pay_week_closed: number | null + netadmin_dispo: number | null +} + +export type Compta_setupMinAggregateOutputType = { + setup_id: number | null + period_month: number | null + ppa_id: number | null + excedent_max: number | null + month_closed: bigint | null + pay_week_closed: number | null + attachment_ext: string | null + netadmin_dispo: number | null + imap_token: string | null +} + +export type Compta_setupMaxAggregateOutputType = { + setup_id: number | null + period_month: number | null + ppa_id: number | null + excedent_max: number | null + month_closed: bigint | null + pay_week_closed: number | null + attachment_ext: string | null + netadmin_dispo: number | null + imap_token: string | null +} + +export type Compta_setupCountAggregateOutputType = { + setup_id: number + period_month: number + ppa_id: number + excedent_max: number + month_closed: number + pay_week_closed: number + attachment_ext: number + netadmin_dispo: number + imap_token: number + _all: number +} + + +export type Compta_setupAvgAggregateInputType = { + setup_id?: true + period_month?: true + ppa_id?: true + excedent_max?: true + month_closed?: true + pay_week_closed?: true + netadmin_dispo?: true +} + +export type Compta_setupSumAggregateInputType = { + setup_id?: true + period_month?: true + ppa_id?: true + excedent_max?: true + month_closed?: true + pay_week_closed?: true + netadmin_dispo?: true +} + +export type Compta_setupMinAggregateInputType = { + setup_id?: true + period_month?: true + ppa_id?: true + excedent_max?: true + month_closed?: true + pay_week_closed?: true + attachment_ext?: true + netadmin_dispo?: true + imap_token?: true +} + +export type Compta_setupMaxAggregateInputType = { + setup_id?: true + period_month?: true + ppa_id?: true + excedent_max?: true + month_closed?: true + pay_week_closed?: true + attachment_ext?: true + netadmin_dispo?: true + imap_token?: true +} + +export type Compta_setupCountAggregateInputType = { + setup_id?: true + period_month?: true + ppa_id?: true + excedent_max?: true + month_closed?: true + pay_week_closed?: true + attachment_ext?: true + netadmin_dispo?: true + imap_token?: true + _all?: true +} + +export type Compta_setupAggregateArgs = { + /** + * Filter which compta_setup to aggregate. + */ + where?: Prisma.compta_setupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_setups to fetch. + */ + orderBy?: Prisma.compta_setupOrderByWithRelationInput | Prisma.compta_setupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.compta_setupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_setups 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` compta_setups. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned compta_setups + **/ + _count?: true | Compta_setupCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Compta_setupAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Compta_setupSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Compta_setupMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Compta_setupMaxAggregateInputType +} + +export type GetCompta_setupAggregateType = { + [P in keyof T & keyof AggregateCompta_setup]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type compta_setupGroupByArgs = { + where?: Prisma.compta_setupWhereInput + orderBy?: Prisma.compta_setupOrderByWithAggregationInput | Prisma.compta_setupOrderByWithAggregationInput[] + by: Prisma.Compta_setupScalarFieldEnum[] | Prisma.Compta_setupScalarFieldEnum + having?: Prisma.compta_setupScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Compta_setupCountAggregateInputType | true + _avg?: Compta_setupAvgAggregateInputType + _sum?: Compta_setupSumAggregateInputType + _min?: Compta_setupMinAggregateInputType + _max?: Compta_setupMaxAggregateInputType +} + +export type Compta_setupGroupByOutputType = { + setup_id: number + period_month: number + ppa_id: number + excedent_max: number + month_closed: bigint | null + pay_week_closed: number + attachment_ext: string + netadmin_dispo: number + imap_token: string | null + _count: Compta_setupCountAggregateOutputType | null + _avg: Compta_setupAvgAggregateOutputType | null + _sum: Compta_setupSumAggregateOutputType | null + _min: Compta_setupMinAggregateOutputType | null + _max: Compta_setupMaxAggregateOutputType | null +} + +type GetCompta_setupGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Compta_setupGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type compta_setupWhereInput = { + AND?: Prisma.compta_setupWhereInput | Prisma.compta_setupWhereInput[] + OR?: Prisma.compta_setupWhereInput[] + NOT?: Prisma.compta_setupWhereInput | Prisma.compta_setupWhereInput[] + setup_id?: Prisma.IntFilter<"compta_setup"> | number + period_month?: Prisma.IntFilter<"compta_setup"> | number + ppa_id?: Prisma.IntFilter<"compta_setup"> | number + excedent_max?: Prisma.FloatFilter<"compta_setup"> | number + month_closed?: Prisma.BigIntNullableFilter<"compta_setup"> | bigint | number | null + pay_week_closed?: Prisma.IntFilter<"compta_setup"> | number + attachment_ext?: Prisma.StringFilter<"compta_setup"> | string + netadmin_dispo?: Prisma.IntFilter<"compta_setup"> | number + imap_token?: Prisma.StringNullableFilter<"compta_setup"> | string | null +} + +export type compta_setupOrderByWithRelationInput = { + setup_id?: Prisma.SortOrder + period_month?: Prisma.SortOrder + ppa_id?: Prisma.SortOrder + excedent_max?: Prisma.SortOrder + month_closed?: Prisma.SortOrderInput | Prisma.SortOrder + pay_week_closed?: Prisma.SortOrder + attachment_ext?: Prisma.SortOrder + netadmin_dispo?: Prisma.SortOrder + imap_token?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.compta_setupOrderByRelevanceInput +} + +export type compta_setupWhereUniqueInput = Prisma.AtLeast<{ + setup_id?: number + AND?: Prisma.compta_setupWhereInput | Prisma.compta_setupWhereInput[] + OR?: Prisma.compta_setupWhereInput[] + NOT?: Prisma.compta_setupWhereInput | Prisma.compta_setupWhereInput[] + period_month?: Prisma.IntFilter<"compta_setup"> | number + ppa_id?: Prisma.IntFilter<"compta_setup"> | number + excedent_max?: Prisma.FloatFilter<"compta_setup"> | number + month_closed?: Prisma.BigIntNullableFilter<"compta_setup"> | bigint | number | null + pay_week_closed?: Prisma.IntFilter<"compta_setup"> | number + attachment_ext?: Prisma.StringFilter<"compta_setup"> | string + netadmin_dispo?: Prisma.IntFilter<"compta_setup"> | number + imap_token?: Prisma.StringNullableFilter<"compta_setup"> | string | null +}, "setup_id"> + +export type compta_setupOrderByWithAggregationInput = { + setup_id?: Prisma.SortOrder + period_month?: Prisma.SortOrder + ppa_id?: Prisma.SortOrder + excedent_max?: Prisma.SortOrder + month_closed?: Prisma.SortOrderInput | Prisma.SortOrder + pay_week_closed?: Prisma.SortOrder + attachment_ext?: Prisma.SortOrder + netadmin_dispo?: Prisma.SortOrder + imap_token?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.compta_setupCountOrderByAggregateInput + _avg?: Prisma.compta_setupAvgOrderByAggregateInput + _max?: Prisma.compta_setupMaxOrderByAggregateInput + _min?: Prisma.compta_setupMinOrderByAggregateInput + _sum?: Prisma.compta_setupSumOrderByAggregateInput +} + +export type compta_setupScalarWhereWithAggregatesInput = { + AND?: Prisma.compta_setupScalarWhereWithAggregatesInput | Prisma.compta_setupScalarWhereWithAggregatesInput[] + OR?: Prisma.compta_setupScalarWhereWithAggregatesInput[] + NOT?: Prisma.compta_setupScalarWhereWithAggregatesInput | Prisma.compta_setupScalarWhereWithAggregatesInput[] + setup_id?: Prisma.IntWithAggregatesFilter<"compta_setup"> | number + period_month?: Prisma.IntWithAggregatesFilter<"compta_setup"> | number + ppa_id?: Prisma.IntWithAggregatesFilter<"compta_setup"> | number + excedent_max?: Prisma.FloatWithAggregatesFilter<"compta_setup"> | number + month_closed?: Prisma.BigIntNullableWithAggregatesFilter<"compta_setup"> | bigint | number | null + pay_week_closed?: Prisma.IntWithAggregatesFilter<"compta_setup"> | number + attachment_ext?: Prisma.StringWithAggregatesFilter<"compta_setup"> | string + netadmin_dispo?: Prisma.IntWithAggregatesFilter<"compta_setup"> | number + imap_token?: Prisma.StringNullableWithAggregatesFilter<"compta_setup"> | string | null +} + +export type compta_setupCreateInput = { + setup_id?: number + period_month?: number + ppa_id?: number + excedent_max?: number + month_closed?: bigint | number | null + pay_week_closed: number + attachment_ext: string + netadmin_dispo?: number + imap_token?: string | null +} + +export type compta_setupUncheckedCreateInput = { + setup_id?: number + period_month?: number + ppa_id?: number + excedent_max?: number + month_closed?: bigint | number | null + pay_week_closed: number + attachment_ext: string + netadmin_dispo?: number + imap_token?: string | null +} + +export type compta_setupUpdateInput = { + setup_id?: Prisma.IntFieldUpdateOperationsInput | number + period_month?: Prisma.IntFieldUpdateOperationsInput | number + ppa_id?: Prisma.IntFieldUpdateOperationsInput | number + excedent_max?: Prisma.FloatFieldUpdateOperationsInput | number + month_closed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + pay_week_closed?: Prisma.IntFieldUpdateOperationsInput | number + attachment_ext?: Prisma.StringFieldUpdateOperationsInput | string + netadmin_dispo?: Prisma.IntFieldUpdateOperationsInput | number + imap_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_setupUncheckedUpdateInput = { + setup_id?: Prisma.IntFieldUpdateOperationsInput | number + period_month?: Prisma.IntFieldUpdateOperationsInput | number + ppa_id?: Prisma.IntFieldUpdateOperationsInput | number + excedent_max?: Prisma.FloatFieldUpdateOperationsInput | number + month_closed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + pay_week_closed?: Prisma.IntFieldUpdateOperationsInput | number + attachment_ext?: Prisma.StringFieldUpdateOperationsInput | string + netadmin_dispo?: Prisma.IntFieldUpdateOperationsInput | number + imap_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_setupCreateManyInput = { + setup_id?: number + period_month?: number + ppa_id?: number + excedent_max?: number + month_closed?: bigint | number | null + pay_week_closed: number + attachment_ext: string + netadmin_dispo?: number + imap_token?: string | null +} + +export type compta_setupUpdateManyMutationInput = { + setup_id?: Prisma.IntFieldUpdateOperationsInput | number + period_month?: Prisma.IntFieldUpdateOperationsInput | number + ppa_id?: Prisma.IntFieldUpdateOperationsInput | number + excedent_max?: Prisma.FloatFieldUpdateOperationsInput | number + month_closed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + pay_week_closed?: Prisma.IntFieldUpdateOperationsInput | number + attachment_ext?: Prisma.StringFieldUpdateOperationsInput | string + netadmin_dispo?: Prisma.IntFieldUpdateOperationsInput | number + imap_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_setupUncheckedUpdateManyInput = { + setup_id?: Prisma.IntFieldUpdateOperationsInput | number + period_month?: Prisma.IntFieldUpdateOperationsInput | number + ppa_id?: Prisma.IntFieldUpdateOperationsInput | number + excedent_max?: Prisma.FloatFieldUpdateOperationsInput | number + month_closed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + pay_week_closed?: Prisma.IntFieldUpdateOperationsInput | number + attachment_ext?: Prisma.StringFieldUpdateOperationsInput | string + netadmin_dispo?: Prisma.IntFieldUpdateOperationsInput | number + imap_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type compta_setupOrderByRelevanceInput = { + fields: Prisma.compta_setupOrderByRelevanceFieldEnum | Prisma.compta_setupOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type compta_setupCountOrderByAggregateInput = { + setup_id?: Prisma.SortOrder + period_month?: Prisma.SortOrder + ppa_id?: Prisma.SortOrder + excedent_max?: Prisma.SortOrder + month_closed?: Prisma.SortOrder + pay_week_closed?: Prisma.SortOrder + attachment_ext?: Prisma.SortOrder + netadmin_dispo?: Prisma.SortOrder + imap_token?: Prisma.SortOrder +} + +export type compta_setupAvgOrderByAggregateInput = { + setup_id?: Prisma.SortOrder + period_month?: Prisma.SortOrder + ppa_id?: Prisma.SortOrder + excedent_max?: Prisma.SortOrder + month_closed?: Prisma.SortOrder + pay_week_closed?: Prisma.SortOrder + netadmin_dispo?: Prisma.SortOrder +} + +export type compta_setupMaxOrderByAggregateInput = { + setup_id?: Prisma.SortOrder + period_month?: Prisma.SortOrder + ppa_id?: Prisma.SortOrder + excedent_max?: Prisma.SortOrder + month_closed?: Prisma.SortOrder + pay_week_closed?: Prisma.SortOrder + attachment_ext?: Prisma.SortOrder + netadmin_dispo?: Prisma.SortOrder + imap_token?: Prisma.SortOrder +} + +export type compta_setupMinOrderByAggregateInput = { + setup_id?: Prisma.SortOrder + period_month?: Prisma.SortOrder + ppa_id?: Prisma.SortOrder + excedent_max?: Prisma.SortOrder + month_closed?: Prisma.SortOrder + pay_week_closed?: Prisma.SortOrder + attachment_ext?: Prisma.SortOrder + netadmin_dispo?: Prisma.SortOrder + imap_token?: Prisma.SortOrder +} + +export type compta_setupSumOrderByAggregateInput = { + setup_id?: Prisma.SortOrder + period_month?: Prisma.SortOrder + ppa_id?: Prisma.SortOrder + excedent_max?: Prisma.SortOrder + month_closed?: Prisma.SortOrder + pay_week_closed?: Prisma.SortOrder + netadmin_dispo?: Prisma.SortOrder +} + + + +export type compta_setupSelect = runtime.Types.Extensions.GetSelect<{ + setup_id?: boolean + period_month?: boolean + ppa_id?: boolean + excedent_max?: boolean + month_closed?: boolean + pay_week_closed?: boolean + attachment_ext?: boolean + netadmin_dispo?: boolean + imap_token?: boolean +}, ExtArgs["result"]["compta_setup"]> + + + +export type compta_setupSelectScalar = { + setup_id?: boolean + period_month?: boolean + ppa_id?: boolean + excedent_max?: boolean + month_closed?: boolean + pay_week_closed?: boolean + attachment_ext?: boolean + netadmin_dispo?: boolean + imap_token?: boolean +} + +export type compta_setupOmit = runtime.Types.Extensions.GetOmit<"setup_id" | "period_month" | "ppa_id" | "excedent_max" | "month_closed" | "pay_week_closed" | "attachment_ext" | "netadmin_dispo" | "imap_token", ExtArgs["result"]["compta_setup"]> + +export type $compta_setupPayload = { + name: "compta_setup" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + setup_id: number + period_month: number + ppa_id: number + excedent_max: number + month_closed: bigint | null + pay_week_closed: number + attachment_ext: string + netadmin_dispo: number + imap_token: string | null + }, ExtArgs["result"]["compta_setup"]> + composites: {} +} + +export type compta_setupGetPayload = runtime.Types.Result.GetResult + +export type compta_setupCountArgs = + Omit & { + select?: Compta_setupCountAggregateInputType | true + } + +export interface compta_setupDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['compta_setup'], meta: { name: 'compta_setup' } } + /** + * Find zero or one Compta_setup that matches the filter. + * @param {compta_setupFindUniqueArgs} args - Arguments to find a Compta_setup + * @example + * // Get one Compta_setup + * const compta_setup = await prisma.compta_setup.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Compta_setup that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {compta_setupFindUniqueOrThrowArgs} args - Arguments to find a Compta_setup + * @example + * // Get one Compta_setup + * const compta_setup = await prisma.compta_setup.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_setup 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 {compta_setupFindFirstArgs} args - Arguments to find a Compta_setup + * @example + * // Get one Compta_setup + * const compta_setup = await prisma.compta_setup.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Compta_setup 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 {compta_setupFindFirstOrThrowArgs} args - Arguments to find a Compta_setup + * @example + * // Get one Compta_setup + * const compta_setup = await prisma.compta_setup.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Compta_setups 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 {compta_setupFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Compta_setups + * const compta_setups = await prisma.compta_setup.findMany() + * + * // Get first 10 Compta_setups + * const compta_setups = await prisma.compta_setup.findMany({ take: 10 }) + * + * // Only select the `setup_id` + * const compta_setupWithSetup_idOnly = await prisma.compta_setup.findMany({ select: { setup_id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Compta_setup. + * @param {compta_setupCreateArgs} args - Arguments to create a Compta_setup. + * @example + * // Create one Compta_setup + * const Compta_setup = await prisma.compta_setup.create({ + * data: { + * // ... data to create a Compta_setup + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Compta_setups. + * @param {compta_setupCreateManyArgs} args - Arguments to create many Compta_setups. + * @example + * // Create many Compta_setups + * const compta_setup = await prisma.compta_setup.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Compta_setup. + * @param {compta_setupDeleteArgs} args - Arguments to delete one Compta_setup. + * @example + * // Delete one Compta_setup + * const Compta_setup = await prisma.compta_setup.delete({ + * where: { + * // ... filter to delete one Compta_setup + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Compta_setup. + * @param {compta_setupUpdateArgs} args - Arguments to update one Compta_setup. + * @example + * // Update one Compta_setup + * const compta_setup = await prisma.compta_setup.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Compta_setups. + * @param {compta_setupDeleteManyArgs} args - Arguments to filter Compta_setups to delete. + * @example + * // Delete a few Compta_setups + * const { count } = await prisma.compta_setup.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Compta_setups. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_setupUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Compta_setups + * const compta_setup = await prisma.compta_setup.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Compta_setup. + * @param {compta_setupUpsertArgs} args - Arguments to update or create a Compta_setup. + * @example + * // Update or create a Compta_setup + * const compta_setup = await prisma.compta_setup.upsert({ + * create: { + * // ... data to create a Compta_setup + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Compta_setup we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Compta_setups. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_setupCountArgs} args - Arguments to filter Compta_setups to count. + * @example + * // Count the number of Compta_setups + * const count = await prisma.compta_setup.count({ + * where: { + * // ... the filter for the Compta_setups 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 Compta_setup. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Compta_setupAggregateArgs} 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 Compta_setup. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {compta_setupGroupByArgs} 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 compta_setupGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: compta_setupGroupByArgs['orderBy'] } + : { orderBy?: compta_setupGroupByArgs['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 ? GetCompta_setupGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the compta_setup model + */ +readonly fields: compta_setupFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for compta_setup. + * 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__compta_setupClient 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 compta_setup model + */ +export interface compta_setupFieldRefs { + readonly setup_id: Prisma.FieldRef<"compta_setup", 'Int'> + readonly period_month: Prisma.FieldRef<"compta_setup", 'Int'> + readonly ppa_id: Prisma.FieldRef<"compta_setup", 'Int'> + readonly excedent_max: Prisma.FieldRef<"compta_setup", 'Float'> + readonly month_closed: Prisma.FieldRef<"compta_setup", 'BigInt'> + readonly pay_week_closed: Prisma.FieldRef<"compta_setup", 'Int'> + readonly attachment_ext: Prisma.FieldRef<"compta_setup", 'String'> + readonly netadmin_dispo: Prisma.FieldRef<"compta_setup", 'Int'> + readonly imap_token: Prisma.FieldRef<"compta_setup", 'String'> +} + + +// Custom InputTypes +/** + * compta_setup findUnique + */ +export type compta_setupFindUniqueArgs = { + /** + * Select specific fields to fetch from the compta_setup + */ + select?: Prisma.compta_setupSelect | null + /** + * Omit specific fields from the compta_setup + */ + omit?: Prisma.compta_setupOmit | null + /** + * Filter, which compta_setup to fetch. + */ + where: Prisma.compta_setupWhereUniqueInput +} + +/** + * compta_setup findUniqueOrThrow + */ +export type compta_setupFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_setup + */ + select?: Prisma.compta_setupSelect | null + /** + * Omit specific fields from the compta_setup + */ + omit?: Prisma.compta_setupOmit | null + /** + * Filter, which compta_setup to fetch. + */ + where: Prisma.compta_setupWhereUniqueInput +} + +/** + * compta_setup findFirst + */ +export type compta_setupFindFirstArgs = { + /** + * Select specific fields to fetch from the compta_setup + */ + select?: Prisma.compta_setupSelect | null + /** + * Omit specific fields from the compta_setup + */ + omit?: Prisma.compta_setupOmit | null + /** + * Filter, which compta_setup to fetch. + */ + where?: Prisma.compta_setupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_setups to fetch. + */ + orderBy?: Prisma.compta_setupOrderByWithRelationInput | Prisma.compta_setupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_setups. + */ + cursor?: Prisma.compta_setupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_setups 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` compta_setups. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_setups. + */ + distinct?: Prisma.Compta_setupScalarFieldEnum | Prisma.Compta_setupScalarFieldEnum[] +} + +/** + * compta_setup findFirstOrThrow + */ +export type compta_setupFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the compta_setup + */ + select?: Prisma.compta_setupSelect | null + /** + * Omit specific fields from the compta_setup + */ + omit?: Prisma.compta_setupOmit | null + /** + * Filter, which compta_setup to fetch. + */ + where?: Prisma.compta_setupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_setups to fetch. + */ + orderBy?: Prisma.compta_setupOrderByWithRelationInput | Prisma.compta_setupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for compta_setups. + */ + cursor?: Prisma.compta_setupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_setups 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` compta_setups. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of compta_setups. + */ + distinct?: Prisma.Compta_setupScalarFieldEnum | Prisma.Compta_setupScalarFieldEnum[] +} + +/** + * compta_setup findMany + */ +export type compta_setupFindManyArgs = { + /** + * Select specific fields to fetch from the compta_setup + */ + select?: Prisma.compta_setupSelect | null + /** + * Omit specific fields from the compta_setup + */ + omit?: Prisma.compta_setupOmit | null + /** + * Filter, which compta_setups to fetch. + */ + where?: Prisma.compta_setupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of compta_setups to fetch. + */ + orderBy?: Prisma.compta_setupOrderByWithRelationInput | Prisma.compta_setupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing compta_setups. + */ + cursor?: Prisma.compta_setupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` compta_setups 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` compta_setups. + */ + skip?: number + distinct?: Prisma.Compta_setupScalarFieldEnum | Prisma.Compta_setupScalarFieldEnum[] +} + +/** + * compta_setup create + */ +export type compta_setupCreateArgs = { + /** + * Select specific fields to fetch from the compta_setup + */ + select?: Prisma.compta_setupSelect | null + /** + * Omit specific fields from the compta_setup + */ + omit?: Prisma.compta_setupOmit | null + /** + * The data needed to create a compta_setup. + */ + data: Prisma.XOR +} + +/** + * compta_setup createMany + */ +export type compta_setupCreateManyArgs = { + /** + * The data used to create many compta_setups. + */ + data: Prisma.compta_setupCreateManyInput | Prisma.compta_setupCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * compta_setup update + */ +export type compta_setupUpdateArgs = { + /** + * Select specific fields to fetch from the compta_setup + */ + select?: Prisma.compta_setupSelect | null + /** + * Omit specific fields from the compta_setup + */ + omit?: Prisma.compta_setupOmit | null + /** + * The data needed to update a compta_setup. + */ + data: Prisma.XOR + /** + * Choose, which compta_setup to update. + */ + where: Prisma.compta_setupWhereUniqueInput +} + +/** + * compta_setup updateMany + */ +export type compta_setupUpdateManyArgs = { + /** + * The data used to update compta_setups. + */ + data: Prisma.XOR + /** + * Filter which compta_setups to update + */ + where?: Prisma.compta_setupWhereInput + /** + * Limit how many compta_setups to update. + */ + limit?: number +} + +/** + * compta_setup upsert + */ +export type compta_setupUpsertArgs = { + /** + * Select specific fields to fetch from the compta_setup + */ + select?: Prisma.compta_setupSelect | null + /** + * Omit specific fields from the compta_setup + */ + omit?: Prisma.compta_setupOmit | null + /** + * The filter to search for the compta_setup to update in case it exists. + */ + where: Prisma.compta_setupWhereUniqueInput + /** + * In case the compta_setup found by the `where` argument doesn't exist, create a new compta_setup with this data. + */ + create: Prisma.XOR + /** + * In case the compta_setup was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * compta_setup delete + */ +export type compta_setupDeleteArgs = { + /** + * Select specific fields to fetch from the compta_setup + */ + select?: Prisma.compta_setupSelect | null + /** + * Omit specific fields from the compta_setup + */ + omit?: Prisma.compta_setupOmit | null + /** + * Filter which compta_setup to delete. + */ + where: Prisma.compta_setupWhereUniqueInput +} + +/** + * compta_setup deleteMany + */ +export type compta_setupDeleteManyArgs = { + /** + * Filter which compta_setups to delete + */ + where?: Prisma.compta_setupWhereInput + /** + * Limit how many compta_setups to delete. + */ + limit?: number +} + +/** + * compta_setup without action + */ +export type compta_setupDefaultArgs = { + /** + * Select specific fields to fetch from the compta_setup + */ + select?: Prisma.compta_setupSelect | null + /** + * Omit specific fields from the compta_setup + */ + omit?: Prisma.compta_setupOmit | null +} diff --git a/prisma/generated/mariadb/models/conference.ts b/prisma/generated/mariadb/models/conference.ts new file mode 100644 index 0000000..c183e50 --- /dev/null +++ b/prisma/generated/mariadb/models/conference.ts @@ -0,0 +1,1169 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `conference` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model conference + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type conferenceModel = runtime.Types.Result.DefaultSelection + +export type AggregateConference = { + _count: ConferenceCountAggregateOutputType | null + _avg: ConferenceAvgAggregateOutputType | null + _sum: ConferenceSumAggregateOutputType | null + _min: ConferenceMinAggregateOutputType | null + _max: ConferenceMaxAggregateOutputType | null +} + +export type ConferenceAvgAggregateOutputType = { + id: number | null + room_id: number | null + host: number | null +} + +export type ConferenceSumAggregateOutputType = { + id: number | null + room_id: number | null + host: number | null +} + +export type ConferenceMinAggregateOutputType = { + id: number | null + room_id: number | null + time_start: string | null + time_end: string | null + name: string | null + description: string | null + host: number | null + participant: string | null +} + +export type ConferenceMaxAggregateOutputType = { + id: number | null + room_id: number | null + time_start: string | null + time_end: string | null + name: string | null + description: string | null + host: number | null + participant: string | null +} + +export type ConferenceCountAggregateOutputType = { + id: number + room_id: number + time_start: number + time_end: number + name: number + description: number + host: number + participant: number + _all: number +} + + +export type ConferenceAvgAggregateInputType = { + id?: true + room_id?: true + host?: true +} + +export type ConferenceSumAggregateInputType = { + id?: true + room_id?: true + host?: true +} + +export type ConferenceMinAggregateInputType = { + id?: true + room_id?: true + time_start?: true + time_end?: true + name?: true + description?: true + host?: true + participant?: true +} + +export type ConferenceMaxAggregateInputType = { + id?: true + room_id?: true + time_start?: true + time_end?: true + name?: true + description?: true + host?: true + participant?: true +} + +export type ConferenceCountAggregateInputType = { + id?: true + room_id?: true + time_start?: true + time_end?: true + name?: true + description?: true + host?: true + participant?: true + _all?: true +} + +export type ConferenceAggregateArgs = { + /** + * Filter which conference to aggregate. + */ + where?: Prisma.conferenceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conferences to fetch. + */ + orderBy?: Prisma.conferenceOrderByWithRelationInput | Prisma.conferenceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.conferenceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conferences 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` conferences. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned conferences + **/ + _count?: true | ConferenceCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ConferenceAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ConferenceSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ConferenceMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ConferenceMaxAggregateInputType +} + +export type GetConferenceAggregateType = { + [P in keyof T & keyof AggregateConference]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type conferenceGroupByArgs = { + where?: Prisma.conferenceWhereInput + orderBy?: Prisma.conferenceOrderByWithAggregationInput | Prisma.conferenceOrderByWithAggregationInput[] + by: Prisma.ConferenceScalarFieldEnum[] | Prisma.ConferenceScalarFieldEnum + having?: Prisma.conferenceScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ConferenceCountAggregateInputType | true + _avg?: ConferenceAvgAggregateInputType + _sum?: ConferenceSumAggregateInputType + _min?: ConferenceMinAggregateInputType + _max?: ConferenceMaxAggregateInputType +} + +export type ConferenceGroupByOutputType = { + id: number + room_id: number + time_start: string + time_end: string + name: string + description: string | null + host: number + participant: string + _count: ConferenceCountAggregateOutputType | null + _avg: ConferenceAvgAggregateOutputType | null + _sum: ConferenceSumAggregateOutputType | null + _min: ConferenceMinAggregateOutputType | null + _max: ConferenceMaxAggregateOutputType | null +} + +type GetConferenceGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ConferenceGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type conferenceWhereInput = { + AND?: Prisma.conferenceWhereInput | Prisma.conferenceWhereInput[] + OR?: Prisma.conferenceWhereInput[] + NOT?: Prisma.conferenceWhereInput | Prisma.conferenceWhereInput[] + id?: Prisma.IntFilter<"conference"> | number + room_id?: Prisma.IntFilter<"conference"> | number + time_start?: Prisma.StringFilter<"conference"> | string + time_end?: Prisma.StringFilter<"conference"> | string + name?: Prisma.StringFilter<"conference"> | string + description?: Prisma.StringNullableFilter<"conference"> | string | null + host?: Prisma.IntFilter<"conference"> | number + participant?: Prisma.StringFilter<"conference"> | string +} + +export type conferenceOrderByWithRelationInput = { + id?: Prisma.SortOrder + room_id?: Prisma.SortOrder + time_start?: Prisma.SortOrder + time_end?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + host?: Prisma.SortOrder + participant?: Prisma.SortOrder + _relevance?: Prisma.conferenceOrderByRelevanceInput +} + +export type conferenceWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.conferenceWhereInput | Prisma.conferenceWhereInput[] + OR?: Prisma.conferenceWhereInput[] + NOT?: Prisma.conferenceWhereInput | Prisma.conferenceWhereInput[] + room_id?: Prisma.IntFilter<"conference"> | number + time_start?: Prisma.StringFilter<"conference"> | string + time_end?: Prisma.StringFilter<"conference"> | string + name?: Prisma.StringFilter<"conference"> | string + description?: Prisma.StringNullableFilter<"conference"> | string | null + host?: Prisma.IntFilter<"conference"> | number + participant?: Prisma.StringFilter<"conference"> | string +}, "id"> + +export type conferenceOrderByWithAggregationInput = { + id?: Prisma.SortOrder + room_id?: Prisma.SortOrder + time_start?: Prisma.SortOrder + time_end?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + host?: Prisma.SortOrder + participant?: Prisma.SortOrder + _count?: Prisma.conferenceCountOrderByAggregateInput + _avg?: Prisma.conferenceAvgOrderByAggregateInput + _max?: Prisma.conferenceMaxOrderByAggregateInput + _min?: Prisma.conferenceMinOrderByAggregateInput + _sum?: Prisma.conferenceSumOrderByAggregateInput +} + +export type conferenceScalarWhereWithAggregatesInput = { + AND?: Prisma.conferenceScalarWhereWithAggregatesInput | Prisma.conferenceScalarWhereWithAggregatesInput[] + OR?: Prisma.conferenceScalarWhereWithAggregatesInput[] + NOT?: Prisma.conferenceScalarWhereWithAggregatesInput | Prisma.conferenceScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"conference"> | number + room_id?: Prisma.IntWithAggregatesFilter<"conference"> | number + time_start?: Prisma.StringWithAggregatesFilter<"conference"> | string + time_end?: Prisma.StringWithAggregatesFilter<"conference"> | string + name?: Prisma.StringWithAggregatesFilter<"conference"> | string + description?: Prisma.StringNullableWithAggregatesFilter<"conference"> | string | null + host?: Prisma.IntWithAggregatesFilter<"conference"> | number + participant?: Prisma.StringWithAggregatesFilter<"conference"> | string +} + +export type conferenceCreateInput = { + room_id: number + time_start: string + time_end: string + name: string + description?: string | null + host: number + participant: string +} + +export type conferenceUncheckedCreateInput = { + id?: number + room_id: number + time_start: string + time_end: string + name: string + description?: string | null + host: number + participant: string +} + +export type conferenceUpdateInput = { + room_id?: Prisma.IntFieldUpdateOperationsInput | number + time_start?: Prisma.StringFieldUpdateOperationsInput | string + time_end?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + host?: Prisma.IntFieldUpdateOperationsInput | number + participant?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conferenceUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + room_id?: Prisma.IntFieldUpdateOperationsInput | number + time_start?: Prisma.StringFieldUpdateOperationsInput | string + time_end?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + host?: Prisma.IntFieldUpdateOperationsInput | number + participant?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conferenceCreateManyInput = { + id?: number + room_id: number + time_start: string + time_end: string + name: string + description?: string | null + host: number + participant: string +} + +export type conferenceUpdateManyMutationInput = { + room_id?: Prisma.IntFieldUpdateOperationsInput | number + time_start?: Prisma.StringFieldUpdateOperationsInput | string + time_end?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + host?: Prisma.IntFieldUpdateOperationsInput | number + participant?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conferenceUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + room_id?: Prisma.IntFieldUpdateOperationsInput | number + time_start?: Prisma.StringFieldUpdateOperationsInput | string + time_end?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + host?: Prisma.IntFieldUpdateOperationsInput | number + participant?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conferenceOrderByRelevanceInput = { + fields: Prisma.conferenceOrderByRelevanceFieldEnum | Prisma.conferenceOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type conferenceCountOrderByAggregateInput = { + id?: Prisma.SortOrder + room_id?: Prisma.SortOrder + time_start?: Prisma.SortOrder + time_end?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + host?: Prisma.SortOrder + participant?: Prisma.SortOrder +} + +export type conferenceAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + room_id?: Prisma.SortOrder + host?: Prisma.SortOrder +} + +export type conferenceMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + room_id?: Prisma.SortOrder + time_start?: Prisma.SortOrder + time_end?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + host?: Prisma.SortOrder + participant?: Prisma.SortOrder +} + +export type conferenceMinOrderByAggregateInput = { + id?: Prisma.SortOrder + room_id?: Prisma.SortOrder + time_start?: Prisma.SortOrder + time_end?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + host?: Prisma.SortOrder + participant?: Prisma.SortOrder +} + +export type conferenceSumOrderByAggregateInput = { + id?: Prisma.SortOrder + room_id?: Prisma.SortOrder + host?: Prisma.SortOrder +} + + + +export type conferenceSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + room_id?: boolean + time_start?: boolean + time_end?: boolean + name?: boolean + description?: boolean + host?: boolean + participant?: boolean +}, ExtArgs["result"]["conference"]> + + + +export type conferenceSelectScalar = { + id?: boolean + room_id?: boolean + time_start?: boolean + time_end?: boolean + name?: boolean + description?: boolean + host?: boolean + participant?: boolean +} + +export type conferenceOmit = runtime.Types.Extensions.GetOmit<"id" | "room_id" | "time_start" | "time_end" | "name" | "description" | "host" | "participant", ExtArgs["result"]["conference"]> + +export type $conferencePayload = { + name: "conference" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + room_id: number + time_start: string + time_end: string + name: string + description: string | null + host: number + participant: string + }, ExtArgs["result"]["conference"]> + composites: {} +} + +export type conferenceGetPayload = runtime.Types.Result.GetResult + +export type conferenceCountArgs = + Omit & { + select?: ConferenceCountAggregateInputType | true + } + +export interface conferenceDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['conference'], meta: { name: 'conference' } } + /** + * Find zero or one Conference that matches the filter. + * @param {conferenceFindUniqueArgs} args - Arguments to find a Conference + * @example + * // Get one Conference + * const conference = await prisma.conference.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__conferenceClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Conference that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {conferenceFindUniqueOrThrowArgs} args - Arguments to find a Conference + * @example + * // Get one Conference + * const conference = await prisma.conference.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__conferenceClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conference 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 {conferenceFindFirstArgs} args - Arguments to find a Conference + * @example + * // Get one Conference + * const conference = await prisma.conference.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__conferenceClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conference 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 {conferenceFindFirstOrThrowArgs} args - Arguments to find a Conference + * @example + * // Get one Conference + * const conference = await prisma.conference.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__conferenceClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Conferences 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 {conferenceFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Conferences + * const conferences = await prisma.conference.findMany() + * + * // Get first 10 Conferences + * const conferences = await prisma.conference.findMany({ take: 10 }) + * + * // Only select the `id` + * const conferenceWithIdOnly = await prisma.conference.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Conference. + * @param {conferenceCreateArgs} args - Arguments to create a Conference. + * @example + * // Create one Conference + * const Conference = await prisma.conference.create({ + * data: { + * // ... data to create a Conference + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__conferenceClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Conferences. + * @param {conferenceCreateManyArgs} args - Arguments to create many Conferences. + * @example + * // Create many Conferences + * const conference = await prisma.conference.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Conference. + * @param {conferenceDeleteArgs} args - Arguments to delete one Conference. + * @example + * // Delete one Conference + * const Conference = await prisma.conference.delete({ + * where: { + * // ... filter to delete one Conference + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__conferenceClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Conference. + * @param {conferenceUpdateArgs} args - Arguments to update one Conference. + * @example + * // Update one Conference + * const conference = await prisma.conference.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__conferenceClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Conferences. + * @param {conferenceDeleteManyArgs} args - Arguments to filter Conferences to delete. + * @example + * // Delete a few Conferences + * const { count } = await prisma.conference.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Conferences. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conferenceUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Conferences + * const conference = await prisma.conference.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Conference. + * @param {conferenceUpsertArgs} args - Arguments to update or create a Conference. + * @example + * // Update or create a Conference + * const conference = await prisma.conference.upsert({ + * create: { + * // ... data to create a Conference + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Conference we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__conferenceClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Conferences. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conferenceCountArgs} args - Arguments to filter Conferences to count. + * @example + * // Count the number of Conferences + * const count = await prisma.conference.count({ + * where: { + * // ... the filter for the Conferences 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 Conference. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ConferenceAggregateArgs} 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 Conference. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conferenceGroupByArgs} 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 conferenceGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: conferenceGroupByArgs['orderBy'] } + : { orderBy?: conferenceGroupByArgs['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 ? GetConferenceGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the conference model + */ +readonly fields: conferenceFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for conference. + * 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__conferenceClient 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 conference model + */ +export interface conferenceFieldRefs { + readonly id: Prisma.FieldRef<"conference", 'Int'> + readonly room_id: Prisma.FieldRef<"conference", 'Int'> + readonly time_start: Prisma.FieldRef<"conference", 'String'> + readonly time_end: Prisma.FieldRef<"conference", 'String'> + readonly name: Prisma.FieldRef<"conference", 'String'> + readonly description: Prisma.FieldRef<"conference", 'String'> + readonly host: Prisma.FieldRef<"conference", 'Int'> + readonly participant: Prisma.FieldRef<"conference", 'String'> +} + + +// Custom InputTypes +/** + * conference findUnique + */ +export type conferenceFindUniqueArgs = { + /** + * Select specific fields to fetch from the conference + */ + select?: Prisma.conferenceSelect | null + /** + * Omit specific fields from the conference + */ + omit?: Prisma.conferenceOmit | null + /** + * Filter, which conference to fetch. + */ + where: Prisma.conferenceWhereUniqueInput +} + +/** + * conference findUniqueOrThrow + */ +export type conferenceFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the conference + */ + select?: Prisma.conferenceSelect | null + /** + * Omit specific fields from the conference + */ + omit?: Prisma.conferenceOmit | null + /** + * Filter, which conference to fetch. + */ + where: Prisma.conferenceWhereUniqueInput +} + +/** + * conference findFirst + */ +export type conferenceFindFirstArgs = { + /** + * Select specific fields to fetch from the conference + */ + select?: Prisma.conferenceSelect | null + /** + * Omit specific fields from the conference + */ + omit?: Prisma.conferenceOmit | null + /** + * Filter, which conference to fetch. + */ + where?: Prisma.conferenceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conferences to fetch. + */ + orderBy?: Prisma.conferenceOrderByWithRelationInput | Prisma.conferenceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conferences. + */ + cursor?: Prisma.conferenceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conferences 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` conferences. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conferences. + */ + distinct?: Prisma.ConferenceScalarFieldEnum | Prisma.ConferenceScalarFieldEnum[] +} + +/** + * conference findFirstOrThrow + */ +export type conferenceFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the conference + */ + select?: Prisma.conferenceSelect | null + /** + * Omit specific fields from the conference + */ + omit?: Prisma.conferenceOmit | null + /** + * Filter, which conference to fetch. + */ + where?: Prisma.conferenceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conferences to fetch. + */ + orderBy?: Prisma.conferenceOrderByWithRelationInput | Prisma.conferenceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conferences. + */ + cursor?: Prisma.conferenceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conferences 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` conferences. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conferences. + */ + distinct?: Prisma.ConferenceScalarFieldEnum | Prisma.ConferenceScalarFieldEnum[] +} + +/** + * conference findMany + */ +export type conferenceFindManyArgs = { + /** + * Select specific fields to fetch from the conference + */ + select?: Prisma.conferenceSelect | null + /** + * Omit specific fields from the conference + */ + omit?: Prisma.conferenceOmit | null + /** + * Filter, which conferences to fetch. + */ + where?: Prisma.conferenceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conferences to fetch. + */ + orderBy?: Prisma.conferenceOrderByWithRelationInput | Prisma.conferenceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing conferences. + */ + cursor?: Prisma.conferenceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conferences 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` conferences. + */ + skip?: number + distinct?: Prisma.ConferenceScalarFieldEnum | Prisma.ConferenceScalarFieldEnum[] +} + +/** + * conference create + */ +export type conferenceCreateArgs = { + /** + * Select specific fields to fetch from the conference + */ + select?: Prisma.conferenceSelect | null + /** + * Omit specific fields from the conference + */ + omit?: Prisma.conferenceOmit | null + /** + * The data needed to create a conference. + */ + data: Prisma.XOR +} + +/** + * conference createMany + */ +export type conferenceCreateManyArgs = { + /** + * The data used to create many conferences. + */ + data: Prisma.conferenceCreateManyInput | Prisma.conferenceCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * conference update + */ +export type conferenceUpdateArgs = { + /** + * Select specific fields to fetch from the conference + */ + select?: Prisma.conferenceSelect | null + /** + * Omit specific fields from the conference + */ + omit?: Prisma.conferenceOmit | null + /** + * The data needed to update a conference. + */ + data: Prisma.XOR + /** + * Choose, which conference to update. + */ + where: Prisma.conferenceWhereUniqueInput +} + +/** + * conference updateMany + */ +export type conferenceUpdateManyArgs = { + /** + * The data used to update conferences. + */ + data: Prisma.XOR + /** + * Filter which conferences to update + */ + where?: Prisma.conferenceWhereInput + /** + * Limit how many conferences to update. + */ + limit?: number +} + +/** + * conference upsert + */ +export type conferenceUpsertArgs = { + /** + * Select specific fields to fetch from the conference + */ + select?: Prisma.conferenceSelect | null + /** + * Omit specific fields from the conference + */ + omit?: Prisma.conferenceOmit | null + /** + * The filter to search for the conference to update in case it exists. + */ + where: Prisma.conferenceWhereUniqueInput + /** + * In case the conference found by the `where` argument doesn't exist, create a new conference with this data. + */ + create: Prisma.XOR + /** + * In case the conference was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * conference delete + */ +export type conferenceDeleteArgs = { + /** + * Select specific fields to fetch from the conference + */ + select?: Prisma.conferenceSelect | null + /** + * Omit specific fields from the conference + */ + omit?: Prisma.conferenceOmit | null + /** + * Filter which conference to delete. + */ + where: Prisma.conferenceWhereUniqueInput +} + +/** + * conference deleteMany + */ +export type conferenceDeleteManyArgs = { + /** + * Filter which conferences to delete + */ + where?: Prisma.conferenceWhereInput + /** + * Limit how many conferences to delete. + */ + limit?: number +} + +/** + * conference without action + */ +export type conferenceDefaultArgs = { + /** + * Select specific fields to fetch from the conference + */ + select?: Prisma.conferenceSelect | null + /** + * Omit specific fields from the conference + */ + omit?: Prisma.conferenceOmit | null +} diff --git a/prisma/generated/mariadb/models/conference_room.ts b/prisma/generated/mariadb/models/conference_room.ts new file mode 100644 index 0000000..aeb3dfc --- /dev/null +++ b/prisma/generated/mariadb/models/conference_room.ts @@ -0,0 +1,1085 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `conference_room` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model conference_room + * + */ +export type conference_roomModel = runtime.Types.Result.DefaultSelection + +export type AggregateConference_room = { + _count: Conference_roomCountAggregateOutputType | null + _avg: Conference_roomAvgAggregateOutputType | null + _sum: Conference_roomSumAggregateOutputType | null + _min: Conference_roomMinAggregateOutputType | null + _max: Conference_roomMaxAggregateOutputType | null +} + +export type Conference_roomAvgAggregateOutputType = { + id: number | null + status: number | null +} + +export type Conference_roomSumAggregateOutputType = { + id: number | null + status: number | null +} + +export type Conference_roomMinAggregateOutputType = { + id: number | null + name: string | null + status: number | null + location: string | null + description: string | null +} + +export type Conference_roomMaxAggregateOutputType = { + id: number | null + name: string | null + status: number | null + location: string | null + description: string | null +} + +export type Conference_roomCountAggregateOutputType = { + id: number + name: number + status: number + location: number + description: number + _all: number +} + + +export type Conference_roomAvgAggregateInputType = { + id?: true + status?: true +} + +export type Conference_roomSumAggregateInputType = { + id?: true + status?: true +} + +export type Conference_roomMinAggregateInputType = { + id?: true + name?: true + status?: true + location?: true + description?: true +} + +export type Conference_roomMaxAggregateInputType = { + id?: true + name?: true + status?: true + location?: true + description?: true +} + +export type Conference_roomCountAggregateInputType = { + id?: true + name?: true + status?: true + location?: true + description?: true + _all?: true +} + +export type Conference_roomAggregateArgs = { + /** + * Filter which conference_room to aggregate. + */ + where?: Prisma.conference_roomWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conference_rooms to fetch. + */ + orderBy?: Prisma.conference_roomOrderByWithRelationInput | Prisma.conference_roomOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.conference_roomWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conference_rooms 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` conference_rooms. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned conference_rooms + **/ + _count?: true | Conference_roomCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Conference_roomAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Conference_roomSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Conference_roomMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Conference_roomMaxAggregateInputType +} + +export type GetConference_roomAggregateType = { + [P in keyof T & keyof AggregateConference_room]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type conference_roomGroupByArgs = { + where?: Prisma.conference_roomWhereInput + orderBy?: Prisma.conference_roomOrderByWithAggregationInput | Prisma.conference_roomOrderByWithAggregationInput[] + by: Prisma.Conference_roomScalarFieldEnum[] | Prisma.Conference_roomScalarFieldEnum + having?: Prisma.conference_roomScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Conference_roomCountAggregateInputType | true + _avg?: Conference_roomAvgAggregateInputType + _sum?: Conference_roomSumAggregateInputType + _min?: Conference_roomMinAggregateInputType + _max?: Conference_roomMaxAggregateInputType +} + +export type Conference_roomGroupByOutputType = { + id: number + name: string + status: number + location: string | null + description: string | null + _count: Conference_roomCountAggregateOutputType | null + _avg: Conference_roomAvgAggregateOutputType | null + _sum: Conference_roomSumAggregateOutputType | null + _min: Conference_roomMinAggregateOutputType | null + _max: Conference_roomMaxAggregateOutputType | null +} + +type GetConference_roomGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Conference_roomGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type conference_roomWhereInput = { + AND?: Prisma.conference_roomWhereInput | Prisma.conference_roomWhereInput[] + OR?: Prisma.conference_roomWhereInput[] + NOT?: Prisma.conference_roomWhereInput | Prisma.conference_roomWhereInput[] + id?: Prisma.IntFilter<"conference_room"> | number + name?: Prisma.StringFilter<"conference_room"> | string + status?: Prisma.IntFilter<"conference_room"> | number + location?: Prisma.StringNullableFilter<"conference_room"> | string | null + description?: Prisma.StringNullableFilter<"conference_room"> | string | null +} + +export type conference_roomOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + status?: Prisma.SortOrder + location?: Prisma.SortOrderInput | Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.conference_roomOrderByRelevanceInput +} + +export type conference_roomWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.conference_roomWhereInput | Prisma.conference_roomWhereInput[] + OR?: Prisma.conference_roomWhereInput[] + NOT?: Prisma.conference_roomWhereInput | Prisma.conference_roomWhereInput[] + name?: Prisma.StringFilter<"conference_room"> | string + status?: Prisma.IntFilter<"conference_room"> | number + location?: Prisma.StringNullableFilter<"conference_room"> | string | null + description?: Prisma.StringNullableFilter<"conference_room"> | string | null +}, "id"> + +export type conference_roomOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + status?: Prisma.SortOrder + location?: Prisma.SortOrderInput | Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.conference_roomCountOrderByAggregateInput + _avg?: Prisma.conference_roomAvgOrderByAggregateInput + _max?: Prisma.conference_roomMaxOrderByAggregateInput + _min?: Prisma.conference_roomMinOrderByAggregateInput + _sum?: Prisma.conference_roomSumOrderByAggregateInput +} + +export type conference_roomScalarWhereWithAggregatesInput = { + AND?: Prisma.conference_roomScalarWhereWithAggregatesInput | Prisma.conference_roomScalarWhereWithAggregatesInput[] + OR?: Prisma.conference_roomScalarWhereWithAggregatesInput[] + NOT?: Prisma.conference_roomScalarWhereWithAggregatesInput | Prisma.conference_roomScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"conference_room"> | number + name?: Prisma.StringWithAggregatesFilter<"conference_room"> | string + status?: Prisma.IntWithAggregatesFilter<"conference_room"> | number + location?: Prisma.StringNullableWithAggregatesFilter<"conference_room"> | string | null + description?: Prisma.StringNullableWithAggregatesFilter<"conference_room"> | string | null +} + +export type conference_roomCreateInput = { + name: string + status?: number + location?: string | null + description?: string | null +} + +export type conference_roomUncheckedCreateInput = { + id?: number + name: string + status?: number + location?: string | null + description?: string | null +} + +export type conference_roomUpdateInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.IntFieldUpdateOperationsInput | number + location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type conference_roomUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.IntFieldUpdateOperationsInput | number + location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type conference_roomCreateManyInput = { + id?: number + name: string + status?: number + location?: string | null + description?: string | null +} + +export type conference_roomUpdateManyMutationInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.IntFieldUpdateOperationsInput | number + location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type conference_roomUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.IntFieldUpdateOperationsInput | number + location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type conference_roomOrderByRelevanceInput = { + fields: Prisma.conference_roomOrderByRelevanceFieldEnum | Prisma.conference_roomOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type conference_roomCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + status?: Prisma.SortOrder + location?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type conference_roomAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder +} + +export type conference_roomMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + status?: Prisma.SortOrder + location?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type conference_roomMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + status?: Prisma.SortOrder + location?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type conference_roomSumOrderByAggregateInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder +} + + + +export type conference_roomSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + status?: boolean + location?: boolean + description?: boolean +}, ExtArgs["result"]["conference_room"]> + + + +export type conference_roomSelectScalar = { + id?: boolean + name?: boolean + status?: boolean + location?: boolean + description?: boolean +} + +export type conference_roomOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "status" | "location" | "description", ExtArgs["result"]["conference_room"]> + +export type $conference_roomPayload = { + name: "conference_room" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name: string + status: number + location: string | null + description: string | null + }, ExtArgs["result"]["conference_room"]> + composites: {} +} + +export type conference_roomGetPayload = runtime.Types.Result.GetResult + +export type conference_roomCountArgs = + Omit & { + select?: Conference_roomCountAggregateInputType | true + } + +export interface conference_roomDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['conference_room'], meta: { name: 'conference_room' } } + /** + * Find zero or one Conference_room that matches the filter. + * @param {conference_roomFindUniqueArgs} args - Arguments to find a Conference_room + * @example + * // Get one Conference_room + * const conference_room = await prisma.conference_room.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__conference_roomClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Conference_room that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {conference_roomFindUniqueOrThrowArgs} args - Arguments to find a Conference_room + * @example + * // Get one Conference_room + * const conference_room = await prisma.conference_room.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__conference_roomClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conference_room 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 {conference_roomFindFirstArgs} args - Arguments to find a Conference_room + * @example + * // Get one Conference_room + * const conference_room = await prisma.conference_room.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__conference_roomClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conference_room 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 {conference_roomFindFirstOrThrowArgs} args - Arguments to find a Conference_room + * @example + * // Get one Conference_room + * const conference_room = await prisma.conference_room.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__conference_roomClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Conference_rooms 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 {conference_roomFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Conference_rooms + * const conference_rooms = await prisma.conference_room.findMany() + * + * // Get first 10 Conference_rooms + * const conference_rooms = await prisma.conference_room.findMany({ take: 10 }) + * + * // Only select the `id` + * const conference_roomWithIdOnly = await prisma.conference_room.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Conference_room. + * @param {conference_roomCreateArgs} args - Arguments to create a Conference_room. + * @example + * // Create one Conference_room + * const Conference_room = await prisma.conference_room.create({ + * data: { + * // ... data to create a Conference_room + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__conference_roomClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Conference_rooms. + * @param {conference_roomCreateManyArgs} args - Arguments to create many Conference_rooms. + * @example + * // Create many Conference_rooms + * const conference_room = await prisma.conference_room.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Conference_room. + * @param {conference_roomDeleteArgs} args - Arguments to delete one Conference_room. + * @example + * // Delete one Conference_room + * const Conference_room = await prisma.conference_room.delete({ + * where: { + * // ... filter to delete one Conference_room + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__conference_roomClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Conference_room. + * @param {conference_roomUpdateArgs} args - Arguments to update one Conference_room. + * @example + * // Update one Conference_room + * const conference_room = await prisma.conference_room.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__conference_roomClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Conference_rooms. + * @param {conference_roomDeleteManyArgs} args - Arguments to filter Conference_rooms to delete. + * @example + * // Delete a few Conference_rooms + * const { count } = await prisma.conference_room.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Conference_rooms. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conference_roomUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Conference_rooms + * const conference_room = await prisma.conference_room.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Conference_room. + * @param {conference_roomUpsertArgs} args - Arguments to update or create a Conference_room. + * @example + * // Update or create a Conference_room + * const conference_room = await prisma.conference_room.upsert({ + * create: { + * // ... data to create a Conference_room + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Conference_room we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__conference_roomClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Conference_rooms. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conference_roomCountArgs} args - Arguments to filter Conference_rooms to count. + * @example + * // Count the number of Conference_rooms + * const count = await prisma.conference_room.count({ + * where: { + * // ... the filter for the Conference_rooms 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 Conference_room. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Conference_roomAggregateArgs} 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 Conference_room. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conference_roomGroupByArgs} 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 conference_roomGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: conference_roomGroupByArgs['orderBy'] } + : { orderBy?: conference_roomGroupByArgs['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 ? GetConference_roomGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the conference_room model + */ +readonly fields: conference_roomFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for conference_room. + * 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__conference_roomClient 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 conference_room model + */ +export interface conference_roomFieldRefs { + readonly id: Prisma.FieldRef<"conference_room", 'Int'> + readonly name: Prisma.FieldRef<"conference_room", 'String'> + readonly status: Prisma.FieldRef<"conference_room", 'Int'> + readonly location: Prisma.FieldRef<"conference_room", 'String'> + readonly description: Prisma.FieldRef<"conference_room", 'String'> +} + + +// Custom InputTypes +/** + * conference_room findUnique + */ +export type conference_roomFindUniqueArgs = { + /** + * Select specific fields to fetch from the conference_room + */ + select?: Prisma.conference_roomSelect | null + /** + * Omit specific fields from the conference_room + */ + omit?: Prisma.conference_roomOmit | null + /** + * Filter, which conference_room to fetch. + */ + where: Prisma.conference_roomWhereUniqueInput +} + +/** + * conference_room findUniqueOrThrow + */ +export type conference_roomFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the conference_room + */ + select?: Prisma.conference_roomSelect | null + /** + * Omit specific fields from the conference_room + */ + omit?: Prisma.conference_roomOmit | null + /** + * Filter, which conference_room to fetch. + */ + where: Prisma.conference_roomWhereUniqueInput +} + +/** + * conference_room findFirst + */ +export type conference_roomFindFirstArgs = { + /** + * Select specific fields to fetch from the conference_room + */ + select?: Prisma.conference_roomSelect | null + /** + * Omit specific fields from the conference_room + */ + omit?: Prisma.conference_roomOmit | null + /** + * Filter, which conference_room to fetch. + */ + where?: Prisma.conference_roomWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conference_rooms to fetch. + */ + orderBy?: Prisma.conference_roomOrderByWithRelationInput | Prisma.conference_roomOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conference_rooms. + */ + cursor?: Prisma.conference_roomWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conference_rooms 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` conference_rooms. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conference_rooms. + */ + distinct?: Prisma.Conference_roomScalarFieldEnum | Prisma.Conference_roomScalarFieldEnum[] +} + +/** + * conference_room findFirstOrThrow + */ +export type conference_roomFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the conference_room + */ + select?: Prisma.conference_roomSelect | null + /** + * Omit specific fields from the conference_room + */ + omit?: Prisma.conference_roomOmit | null + /** + * Filter, which conference_room to fetch. + */ + where?: Prisma.conference_roomWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conference_rooms to fetch. + */ + orderBy?: Prisma.conference_roomOrderByWithRelationInput | Prisma.conference_roomOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conference_rooms. + */ + cursor?: Prisma.conference_roomWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conference_rooms 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` conference_rooms. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conference_rooms. + */ + distinct?: Prisma.Conference_roomScalarFieldEnum | Prisma.Conference_roomScalarFieldEnum[] +} + +/** + * conference_room findMany + */ +export type conference_roomFindManyArgs = { + /** + * Select specific fields to fetch from the conference_room + */ + select?: Prisma.conference_roomSelect | null + /** + * Omit specific fields from the conference_room + */ + omit?: Prisma.conference_roomOmit | null + /** + * Filter, which conference_rooms to fetch. + */ + where?: Prisma.conference_roomWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conference_rooms to fetch. + */ + orderBy?: Prisma.conference_roomOrderByWithRelationInput | Prisma.conference_roomOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing conference_rooms. + */ + cursor?: Prisma.conference_roomWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conference_rooms 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` conference_rooms. + */ + skip?: number + distinct?: Prisma.Conference_roomScalarFieldEnum | Prisma.Conference_roomScalarFieldEnum[] +} + +/** + * conference_room create + */ +export type conference_roomCreateArgs = { + /** + * Select specific fields to fetch from the conference_room + */ + select?: Prisma.conference_roomSelect | null + /** + * Omit specific fields from the conference_room + */ + omit?: Prisma.conference_roomOmit | null + /** + * The data needed to create a conference_room. + */ + data: Prisma.XOR +} + +/** + * conference_room createMany + */ +export type conference_roomCreateManyArgs = { + /** + * The data used to create many conference_rooms. + */ + data: Prisma.conference_roomCreateManyInput | Prisma.conference_roomCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * conference_room update + */ +export type conference_roomUpdateArgs = { + /** + * Select specific fields to fetch from the conference_room + */ + select?: Prisma.conference_roomSelect | null + /** + * Omit specific fields from the conference_room + */ + omit?: Prisma.conference_roomOmit | null + /** + * The data needed to update a conference_room. + */ + data: Prisma.XOR + /** + * Choose, which conference_room to update. + */ + where: Prisma.conference_roomWhereUniqueInput +} + +/** + * conference_room updateMany + */ +export type conference_roomUpdateManyArgs = { + /** + * The data used to update conference_rooms. + */ + data: Prisma.XOR + /** + * Filter which conference_rooms to update + */ + where?: Prisma.conference_roomWhereInput + /** + * Limit how many conference_rooms to update. + */ + limit?: number +} + +/** + * conference_room upsert + */ +export type conference_roomUpsertArgs = { + /** + * Select specific fields to fetch from the conference_room + */ + select?: Prisma.conference_roomSelect | null + /** + * Omit specific fields from the conference_room + */ + omit?: Prisma.conference_roomOmit | null + /** + * The filter to search for the conference_room to update in case it exists. + */ + where: Prisma.conference_roomWhereUniqueInput + /** + * In case the conference_room found by the `where` argument doesn't exist, create a new conference_room with this data. + */ + create: Prisma.XOR + /** + * In case the conference_room was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * conference_room delete + */ +export type conference_roomDeleteArgs = { + /** + * Select specific fields to fetch from the conference_room + */ + select?: Prisma.conference_roomSelect | null + /** + * Omit specific fields from the conference_room + */ + omit?: Prisma.conference_roomOmit | null + /** + * Filter which conference_room to delete. + */ + where: Prisma.conference_roomWhereUniqueInput +} + +/** + * conference_room deleteMany + */ +export type conference_roomDeleteManyArgs = { + /** + * Filter which conference_rooms to delete + */ + where?: Prisma.conference_roomWhereInput + /** + * Limit how many conference_rooms to delete. + */ + limit?: number +} + +/** + * conference_room without action + */ +export type conference_roomDefaultArgs = { + /** + * Select specific fields to fetch from the conference_room + */ + select?: Prisma.conference_roomSelect | null + /** + * Omit specific fields from the conference_room + */ + omit?: Prisma.conference_roomOmit | null +} diff --git a/prisma/generated/mariadb/models/conso.ts b/prisma/generated/mariadb/models/conso.ts new file mode 100644 index 0000000..61e0131 --- /dev/null +++ b/prisma/generated/mariadb/models/conso.ts @@ -0,0 +1,1132 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `conso` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model conso + * + */ +export type consoModel = runtime.Types.Result.DefaultSelection + +export type AggregateConso = { + _count: ConsoCountAggregateOutputType | null + _avg: ConsoAvgAggregateOutputType | null + _sum: ConsoSumAggregateOutputType | null + _min: ConsoMinAggregateOutputType | null + _max: ConsoMaxAggregateOutputType | null +} + +export type ConsoAvgAggregateOutputType = { + id: number | null + date: number | null + total: number | null + total_day: number | null + total_night: number | null +} + +export type ConsoSumAggregateOutputType = { + id: bigint | null + date: bigint | null + total: bigint | null + total_day: bigint | null + total_night: bigint | null +} + +export type ConsoMinAggregateOutputType = { + id: bigint | null + ip_id: string | null + date: bigint | null + total: bigint | null + total_day: bigint | null + total_night: bigint | null +} + +export type ConsoMaxAggregateOutputType = { + id: bigint | null + ip_id: string | null + date: bigint | null + total: bigint | null + total_day: bigint | null + total_night: bigint | null +} + +export type ConsoCountAggregateOutputType = { + id: number + ip_id: number + date: number + total: number + total_day: number + total_night: number + _all: number +} + + +export type ConsoAvgAggregateInputType = { + id?: true + date?: true + total?: true + total_day?: true + total_night?: true +} + +export type ConsoSumAggregateInputType = { + id?: true + date?: true + total?: true + total_day?: true + total_night?: true +} + +export type ConsoMinAggregateInputType = { + id?: true + ip_id?: true + date?: true + total?: true + total_day?: true + total_night?: true +} + +export type ConsoMaxAggregateInputType = { + id?: true + ip_id?: true + date?: true + total?: true + total_day?: true + total_night?: true +} + +export type ConsoCountAggregateInputType = { + id?: true + ip_id?: true + date?: true + total?: true + total_day?: true + total_night?: true + _all?: true +} + +export type ConsoAggregateArgs = { + /** + * Filter which conso to aggregate. + */ + where?: Prisma.consoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of consos to fetch. + */ + orderBy?: Prisma.consoOrderByWithRelationInput | Prisma.consoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.consoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` consos 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` consos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned consos + **/ + _count?: true | ConsoCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ConsoAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ConsoSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ConsoMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ConsoMaxAggregateInputType +} + +export type GetConsoAggregateType = { + [P in keyof T & keyof AggregateConso]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type consoGroupByArgs = { + where?: Prisma.consoWhereInput + orderBy?: Prisma.consoOrderByWithAggregationInput | Prisma.consoOrderByWithAggregationInput[] + by: Prisma.ConsoScalarFieldEnum[] | Prisma.ConsoScalarFieldEnum + having?: Prisma.consoScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ConsoCountAggregateInputType | true + _avg?: ConsoAvgAggregateInputType + _sum?: ConsoSumAggregateInputType + _min?: ConsoMinAggregateInputType + _max?: ConsoMaxAggregateInputType +} + +export type ConsoGroupByOutputType = { + id: bigint + ip_id: string | null + date: bigint | null + total: bigint | null + total_day: bigint | null + total_night: bigint | null + _count: ConsoCountAggregateOutputType | null + _avg: ConsoAvgAggregateOutputType | null + _sum: ConsoSumAggregateOutputType | null + _min: ConsoMinAggregateOutputType | null + _max: ConsoMaxAggregateOutputType | null +} + +type GetConsoGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ConsoGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type consoWhereInput = { + AND?: Prisma.consoWhereInput | Prisma.consoWhereInput[] + OR?: Prisma.consoWhereInput[] + NOT?: Prisma.consoWhereInput | Prisma.consoWhereInput[] + id?: Prisma.BigIntFilter<"conso"> | bigint | number + ip_id?: Prisma.StringNullableFilter<"conso"> | string | null + date?: Prisma.BigIntNullableFilter<"conso"> | bigint | number | null + total?: Prisma.BigIntNullableFilter<"conso"> | bigint | number | null + total_day?: Prisma.BigIntNullableFilter<"conso"> | bigint | number | null + total_night?: Prisma.BigIntNullableFilter<"conso"> | bigint | number | null +} + +export type consoOrderByWithRelationInput = { + id?: Prisma.SortOrder + ip_id?: Prisma.SortOrderInput | Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + total?: Prisma.SortOrderInput | Prisma.SortOrder + total_day?: Prisma.SortOrderInput | Prisma.SortOrder + total_night?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.consoOrderByRelevanceInput +} + +export type consoWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.consoWhereInput | Prisma.consoWhereInput[] + OR?: Prisma.consoWhereInput[] + NOT?: Prisma.consoWhereInput | Prisma.consoWhereInput[] + ip_id?: Prisma.StringNullableFilter<"conso"> | string | null + date?: Prisma.BigIntNullableFilter<"conso"> | bigint | number | null + total?: Prisma.BigIntNullableFilter<"conso"> | bigint | number | null + total_day?: Prisma.BigIntNullableFilter<"conso"> | bigint | number | null + total_night?: Prisma.BigIntNullableFilter<"conso"> | bigint | number | null +}, "id"> + +export type consoOrderByWithAggregationInput = { + id?: Prisma.SortOrder + ip_id?: Prisma.SortOrderInput | Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + total?: Prisma.SortOrderInput | Prisma.SortOrder + total_day?: Prisma.SortOrderInput | Prisma.SortOrder + total_night?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.consoCountOrderByAggregateInput + _avg?: Prisma.consoAvgOrderByAggregateInput + _max?: Prisma.consoMaxOrderByAggregateInput + _min?: Prisma.consoMinOrderByAggregateInput + _sum?: Prisma.consoSumOrderByAggregateInput +} + +export type consoScalarWhereWithAggregatesInput = { + AND?: Prisma.consoScalarWhereWithAggregatesInput | Prisma.consoScalarWhereWithAggregatesInput[] + OR?: Prisma.consoScalarWhereWithAggregatesInput[] + NOT?: Prisma.consoScalarWhereWithAggregatesInput | Prisma.consoScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"conso"> | bigint | number + ip_id?: Prisma.StringNullableWithAggregatesFilter<"conso"> | string | null + date?: Prisma.BigIntNullableWithAggregatesFilter<"conso"> | bigint | number | null + total?: Prisma.BigIntNullableWithAggregatesFilter<"conso"> | bigint | number | null + total_day?: Prisma.BigIntNullableWithAggregatesFilter<"conso"> | bigint | number | null + total_night?: Prisma.BigIntNullableWithAggregatesFilter<"conso"> | bigint | number | null +} + +export type consoCreateInput = { + id?: bigint | number + ip_id?: string | null + date?: bigint | number | null + total?: bigint | number | null + total_day?: bigint | number | null + total_night?: bigint | number | null +} + +export type consoUncheckedCreateInput = { + id?: bigint | number + ip_id?: string | null + date?: bigint | number | null + total?: bigint | number | null + total_day?: bigint | number | null + total_night?: bigint | number | null +} + +export type consoUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ip_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type consoUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ip_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type consoCreateManyInput = { + id?: bigint | number + ip_id?: string | null + date?: bigint | number | null + total?: bigint | number | null + total_day?: bigint | number | null + total_night?: bigint | number | null +} + +export type consoUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ip_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type consoUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ip_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type consoOrderByRelevanceInput = { + fields: Prisma.consoOrderByRelevanceFieldEnum | Prisma.consoOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type consoCountOrderByAggregateInput = { + id?: Prisma.SortOrder + ip_id?: Prisma.SortOrder + date?: Prisma.SortOrder + total?: Prisma.SortOrder + total_day?: Prisma.SortOrder + total_night?: Prisma.SortOrder +} + +export type consoAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + total?: Prisma.SortOrder + total_day?: Prisma.SortOrder + total_night?: Prisma.SortOrder +} + +export type consoMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + ip_id?: Prisma.SortOrder + date?: Prisma.SortOrder + total?: Prisma.SortOrder + total_day?: Prisma.SortOrder + total_night?: Prisma.SortOrder +} + +export type consoMinOrderByAggregateInput = { + id?: Prisma.SortOrder + ip_id?: Prisma.SortOrder + date?: Prisma.SortOrder + total?: Prisma.SortOrder + total_day?: Prisma.SortOrder + total_night?: Prisma.SortOrder +} + +export type consoSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + total?: Prisma.SortOrder + total_day?: Prisma.SortOrder + total_night?: Prisma.SortOrder +} + + + +export type consoSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + ip_id?: boolean + date?: boolean + total?: boolean + total_day?: boolean + total_night?: boolean +}, ExtArgs["result"]["conso"]> + + + +export type consoSelectScalar = { + id?: boolean + ip_id?: boolean + date?: boolean + total?: boolean + total_day?: boolean + total_night?: boolean +} + +export type consoOmit = runtime.Types.Extensions.GetOmit<"id" | "ip_id" | "date" | "total" | "total_day" | "total_night", ExtArgs["result"]["conso"]> + +export type $consoPayload = { + name: "conso" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + ip_id: string | null + date: bigint | null + total: bigint | null + total_day: bigint | null + total_night: bigint | null + }, ExtArgs["result"]["conso"]> + composites: {} +} + +export type consoGetPayload = runtime.Types.Result.GetResult + +export type consoCountArgs = + Omit & { + select?: ConsoCountAggregateInputType | true + } + +export interface consoDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['conso'], meta: { name: 'conso' } } + /** + * Find zero or one Conso that matches the filter. + * @param {consoFindUniqueArgs} args - Arguments to find a Conso + * @example + * // Get one Conso + * const conso = await prisma.conso.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__consoClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Conso that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {consoFindUniqueOrThrowArgs} args - Arguments to find a Conso + * @example + * // Get one Conso + * const conso = await prisma.conso.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__consoClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso 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 {consoFindFirstArgs} args - Arguments to find a Conso + * @example + * // Get one Conso + * const conso = await prisma.conso.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__consoClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso 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 {consoFindFirstOrThrowArgs} args - Arguments to find a Conso + * @example + * // Get one Conso + * const conso = await prisma.conso.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__consoClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Consos 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 {consoFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Consos + * const consos = await prisma.conso.findMany() + * + * // Get first 10 Consos + * const consos = await prisma.conso.findMany({ take: 10 }) + * + * // Only select the `id` + * const consoWithIdOnly = await prisma.conso.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Conso. + * @param {consoCreateArgs} args - Arguments to create a Conso. + * @example + * // Create one Conso + * const Conso = await prisma.conso.create({ + * data: { + * // ... data to create a Conso + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__consoClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Consos. + * @param {consoCreateManyArgs} args - Arguments to create many Consos. + * @example + * // Create many Consos + * const conso = await prisma.conso.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Conso. + * @param {consoDeleteArgs} args - Arguments to delete one Conso. + * @example + * // Delete one Conso + * const Conso = await prisma.conso.delete({ + * where: { + * // ... filter to delete one Conso + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__consoClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Conso. + * @param {consoUpdateArgs} args - Arguments to update one Conso. + * @example + * // Update one Conso + * const conso = await prisma.conso.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__consoClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Consos. + * @param {consoDeleteManyArgs} args - Arguments to filter Consos to delete. + * @example + * // Delete a few Consos + * const { count } = await prisma.conso.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Consos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {consoUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Consos + * const conso = await prisma.conso.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Conso. + * @param {consoUpsertArgs} args - Arguments to update or create a Conso. + * @example + * // Update or create a Conso + * const conso = await prisma.conso.upsert({ + * create: { + * // ... data to create a Conso + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Conso we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__consoClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Consos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {consoCountArgs} args - Arguments to filter Consos to count. + * @example + * // Count the number of Consos + * const count = await prisma.conso.count({ + * where: { + * // ... the filter for the Consos 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 Conso. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ConsoAggregateArgs} 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 Conso. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {consoGroupByArgs} 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 consoGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: consoGroupByArgs['orderBy'] } + : { orderBy?: consoGroupByArgs['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 ? GetConsoGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the conso model + */ +readonly fields: consoFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for conso. + * 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__consoClient 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 conso model + */ +export interface consoFieldRefs { + readonly id: Prisma.FieldRef<"conso", 'BigInt'> + readonly ip_id: Prisma.FieldRef<"conso", 'String'> + readonly date: Prisma.FieldRef<"conso", 'BigInt'> + readonly total: Prisma.FieldRef<"conso", 'BigInt'> + readonly total_day: Prisma.FieldRef<"conso", 'BigInt'> + readonly total_night: Prisma.FieldRef<"conso", 'BigInt'> +} + + +// Custom InputTypes +/** + * conso findUnique + */ +export type consoFindUniqueArgs = { + /** + * Select specific fields to fetch from the conso + */ + select?: Prisma.consoSelect | null + /** + * Omit specific fields from the conso + */ + omit?: Prisma.consoOmit | null + /** + * Filter, which conso to fetch. + */ + where: Prisma.consoWhereUniqueInput +} + +/** + * conso findUniqueOrThrow + */ +export type consoFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the conso + */ + select?: Prisma.consoSelect | null + /** + * Omit specific fields from the conso + */ + omit?: Prisma.consoOmit | null + /** + * Filter, which conso to fetch. + */ + where: Prisma.consoWhereUniqueInput +} + +/** + * conso findFirst + */ +export type consoFindFirstArgs = { + /** + * Select specific fields to fetch from the conso + */ + select?: Prisma.consoSelect | null + /** + * Omit specific fields from the conso + */ + omit?: Prisma.consoOmit | null + /** + * Filter, which conso to fetch. + */ + where?: Prisma.consoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of consos to fetch. + */ + orderBy?: Prisma.consoOrderByWithRelationInput | Prisma.consoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for consos. + */ + cursor?: Prisma.consoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` consos 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` consos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of consos. + */ + distinct?: Prisma.ConsoScalarFieldEnum | Prisma.ConsoScalarFieldEnum[] +} + +/** + * conso findFirstOrThrow + */ +export type consoFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the conso + */ + select?: Prisma.consoSelect | null + /** + * Omit specific fields from the conso + */ + omit?: Prisma.consoOmit | null + /** + * Filter, which conso to fetch. + */ + where?: Prisma.consoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of consos to fetch. + */ + orderBy?: Prisma.consoOrderByWithRelationInput | Prisma.consoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for consos. + */ + cursor?: Prisma.consoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` consos 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` consos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of consos. + */ + distinct?: Prisma.ConsoScalarFieldEnum | Prisma.ConsoScalarFieldEnum[] +} + +/** + * conso findMany + */ +export type consoFindManyArgs = { + /** + * Select specific fields to fetch from the conso + */ + select?: Prisma.consoSelect | null + /** + * Omit specific fields from the conso + */ + omit?: Prisma.consoOmit | null + /** + * Filter, which consos to fetch. + */ + where?: Prisma.consoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of consos to fetch. + */ + orderBy?: Prisma.consoOrderByWithRelationInput | Prisma.consoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing consos. + */ + cursor?: Prisma.consoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` consos 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` consos. + */ + skip?: number + distinct?: Prisma.ConsoScalarFieldEnum | Prisma.ConsoScalarFieldEnum[] +} + +/** + * conso create + */ +export type consoCreateArgs = { + /** + * Select specific fields to fetch from the conso + */ + select?: Prisma.consoSelect | null + /** + * Omit specific fields from the conso + */ + omit?: Prisma.consoOmit | null + /** + * The data needed to create a conso. + */ + data?: Prisma.XOR +} + +/** + * conso createMany + */ +export type consoCreateManyArgs = { + /** + * The data used to create many consos. + */ + data: Prisma.consoCreateManyInput | Prisma.consoCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * conso update + */ +export type consoUpdateArgs = { + /** + * Select specific fields to fetch from the conso + */ + select?: Prisma.consoSelect | null + /** + * Omit specific fields from the conso + */ + omit?: Prisma.consoOmit | null + /** + * The data needed to update a conso. + */ + data: Prisma.XOR + /** + * Choose, which conso to update. + */ + where: Prisma.consoWhereUniqueInput +} + +/** + * conso updateMany + */ +export type consoUpdateManyArgs = { + /** + * The data used to update consos. + */ + data: Prisma.XOR + /** + * Filter which consos to update + */ + where?: Prisma.consoWhereInput + /** + * Limit how many consos to update. + */ + limit?: number +} + +/** + * conso upsert + */ +export type consoUpsertArgs = { + /** + * Select specific fields to fetch from the conso + */ + select?: Prisma.consoSelect | null + /** + * Omit specific fields from the conso + */ + omit?: Prisma.consoOmit | null + /** + * The filter to search for the conso to update in case it exists. + */ + where: Prisma.consoWhereUniqueInput + /** + * In case the conso found by the `where` argument doesn't exist, create a new conso with this data. + */ + create: Prisma.XOR + /** + * In case the conso was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * conso delete + */ +export type consoDeleteArgs = { + /** + * Select specific fields to fetch from the conso + */ + select?: Prisma.consoSelect | null + /** + * Omit specific fields from the conso + */ + omit?: Prisma.consoOmit | null + /** + * Filter which conso to delete. + */ + where: Prisma.consoWhereUniqueInput +} + +/** + * conso deleteMany + */ +export type consoDeleteManyArgs = { + /** + * Filter which consos to delete + */ + where?: Prisma.consoWhereInput + /** + * Limit how many consos to delete. + */ + limit?: number +} + +/** + * conso without action + */ +export type consoDefaultArgs = { + /** + * Select specific fields to fetch from the conso + */ + select?: Prisma.consoSelect | null + /** + * Omit specific fields from the conso + */ + omit?: Prisma.consoOmit | null +} diff --git a/prisma/generated/mariadb/models/conso_archive.ts b/prisma/generated/mariadb/models/conso_archive.ts new file mode 100644 index 0000000..13daad5 --- /dev/null +++ b/prisma/generated/mariadb/models/conso_archive.ts @@ -0,0 +1,1132 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `conso_archive` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model conso_archive + * + */ +export type conso_archiveModel = runtime.Types.Result.DefaultSelection + +export type AggregateConso_archive = { + _count: Conso_archiveCountAggregateOutputType | null + _avg: Conso_archiveAvgAggregateOutputType | null + _sum: Conso_archiveSumAggregateOutputType | null + _min: Conso_archiveMinAggregateOutputType | null + _max: Conso_archiveMaxAggregateOutputType | null +} + +export type Conso_archiveAvgAggregateOutputType = { + id: number | null + date: number | null + total: number | null + total_day: number | null + total_night: number | null +} + +export type Conso_archiveSumAggregateOutputType = { + id: bigint | null + date: bigint | null + total: bigint | null + total_day: bigint | null + total_night: bigint | null +} + +export type Conso_archiveMinAggregateOutputType = { + id: bigint | null + ip_id: string | null + date: bigint | null + total: bigint | null + total_day: bigint | null + total_night: bigint | null +} + +export type Conso_archiveMaxAggregateOutputType = { + id: bigint | null + ip_id: string | null + date: bigint | null + total: bigint | null + total_day: bigint | null + total_night: bigint | null +} + +export type Conso_archiveCountAggregateOutputType = { + id: number + ip_id: number + date: number + total: number + total_day: number + total_night: number + _all: number +} + + +export type Conso_archiveAvgAggregateInputType = { + id?: true + date?: true + total?: true + total_day?: true + total_night?: true +} + +export type Conso_archiveSumAggregateInputType = { + id?: true + date?: true + total?: true + total_day?: true + total_night?: true +} + +export type Conso_archiveMinAggregateInputType = { + id?: true + ip_id?: true + date?: true + total?: true + total_day?: true + total_night?: true +} + +export type Conso_archiveMaxAggregateInputType = { + id?: true + ip_id?: true + date?: true + total?: true + total_day?: true + total_night?: true +} + +export type Conso_archiveCountAggregateInputType = { + id?: true + ip_id?: true + date?: true + total?: true + total_day?: true + total_night?: true + _all?: true +} + +export type Conso_archiveAggregateArgs = { + /** + * Filter which conso_archive to aggregate. + */ + where?: Prisma.conso_archiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_archives to fetch. + */ + orderBy?: Prisma.conso_archiveOrderByWithRelationInput | Prisma.conso_archiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.conso_archiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_archives 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` conso_archives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned conso_archives + **/ + _count?: true | Conso_archiveCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Conso_archiveAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Conso_archiveSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Conso_archiveMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Conso_archiveMaxAggregateInputType +} + +export type GetConso_archiveAggregateType = { + [P in keyof T & keyof AggregateConso_archive]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type conso_archiveGroupByArgs = { + where?: Prisma.conso_archiveWhereInput + orderBy?: Prisma.conso_archiveOrderByWithAggregationInput | Prisma.conso_archiveOrderByWithAggregationInput[] + by: Prisma.Conso_archiveScalarFieldEnum[] | Prisma.Conso_archiveScalarFieldEnum + having?: Prisma.conso_archiveScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Conso_archiveCountAggregateInputType | true + _avg?: Conso_archiveAvgAggregateInputType + _sum?: Conso_archiveSumAggregateInputType + _min?: Conso_archiveMinAggregateInputType + _max?: Conso_archiveMaxAggregateInputType +} + +export type Conso_archiveGroupByOutputType = { + id: bigint + ip_id: string | null + date: bigint | null + total: bigint | null + total_day: bigint | null + total_night: bigint | null + _count: Conso_archiveCountAggregateOutputType | null + _avg: Conso_archiveAvgAggregateOutputType | null + _sum: Conso_archiveSumAggregateOutputType | null + _min: Conso_archiveMinAggregateOutputType | null + _max: Conso_archiveMaxAggregateOutputType | null +} + +type GetConso_archiveGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Conso_archiveGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type conso_archiveWhereInput = { + AND?: Prisma.conso_archiveWhereInput | Prisma.conso_archiveWhereInput[] + OR?: Prisma.conso_archiveWhereInput[] + NOT?: Prisma.conso_archiveWhereInput | Prisma.conso_archiveWhereInput[] + id?: Prisma.BigIntFilter<"conso_archive"> | bigint | number + ip_id?: Prisma.StringNullableFilter<"conso_archive"> | string | null + date?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null + total?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null + total_day?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null + total_night?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null +} + +export type conso_archiveOrderByWithRelationInput = { + id?: Prisma.SortOrder + ip_id?: Prisma.SortOrderInput | Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + total?: Prisma.SortOrderInput | Prisma.SortOrder + total_day?: Prisma.SortOrderInput | Prisma.SortOrder + total_night?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.conso_archiveOrderByRelevanceInput +} + +export type conso_archiveWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.conso_archiveWhereInput | Prisma.conso_archiveWhereInput[] + OR?: Prisma.conso_archiveWhereInput[] + NOT?: Prisma.conso_archiveWhereInput | Prisma.conso_archiveWhereInput[] + ip_id?: Prisma.StringNullableFilter<"conso_archive"> | string | null + date?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null + total?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null + total_day?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null + total_night?: Prisma.BigIntNullableFilter<"conso_archive"> | bigint | number | null +}, "id"> + +export type conso_archiveOrderByWithAggregationInput = { + id?: Prisma.SortOrder + ip_id?: Prisma.SortOrderInput | Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + total?: Prisma.SortOrderInput | Prisma.SortOrder + total_day?: Prisma.SortOrderInput | Prisma.SortOrder + total_night?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.conso_archiveCountOrderByAggregateInput + _avg?: Prisma.conso_archiveAvgOrderByAggregateInput + _max?: Prisma.conso_archiveMaxOrderByAggregateInput + _min?: Prisma.conso_archiveMinOrderByAggregateInput + _sum?: Prisma.conso_archiveSumOrderByAggregateInput +} + +export type conso_archiveScalarWhereWithAggregatesInput = { + AND?: Prisma.conso_archiveScalarWhereWithAggregatesInput | Prisma.conso_archiveScalarWhereWithAggregatesInput[] + OR?: Prisma.conso_archiveScalarWhereWithAggregatesInput[] + NOT?: Prisma.conso_archiveScalarWhereWithAggregatesInput | Prisma.conso_archiveScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"conso_archive"> | bigint | number + ip_id?: Prisma.StringNullableWithAggregatesFilter<"conso_archive"> | string | null + date?: Prisma.BigIntNullableWithAggregatesFilter<"conso_archive"> | bigint | number | null + total?: Prisma.BigIntNullableWithAggregatesFilter<"conso_archive"> | bigint | number | null + total_day?: Prisma.BigIntNullableWithAggregatesFilter<"conso_archive"> | bigint | number | null + total_night?: Prisma.BigIntNullableWithAggregatesFilter<"conso_archive"> | bigint | number | null +} + +export type conso_archiveCreateInput = { + id?: bigint | number + ip_id?: string | null + date?: bigint | number | null + total?: bigint | number | null + total_day?: bigint | number | null + total_night?: bigint | number | null +} + +export type conso_archiveUncheckedCreateInput = { + id?: bigint | number + ip_id?: string | null + date?: bigint | number | null + total?: bigint | number | null + total_day?: bigint | number | null + total_night?: bigint | number | null +} + +export type conso_archiveUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ip_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type conso_archiveUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ip_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type conso_archiveCreateManyInput = { + id?: bigint | number + ip_id?: string | null + date?: bigint | number | null + total?: bigint | number | null + total_day?: bigint | number | null + total_night?: bigint | number | null +} + +export type conso_archiveUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ip_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type conso_archiveUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ip_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type conso_archiveOrderByRelevanceInput = { + fields: Prisma.conso_archiveOrderByRelevanceFieldEnum | Prisma.conso_archiveOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type conso_archiveCountOrderByAggregateInput = { + id?: Prisma.SortOrder + ip_id?: Prisma.SortOrder + date?: Prisma.SortOrder + total?: Prisma.SortOrder + total_day?: Prisma.SortOrder + total_night?: Prisma.SortOrder +} + +export type conso_archiveAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + total?: Prisma.SortOrder + total_day?: Prisma.SortOrder + total_night?: Prisma.SortOrder +} + +export type conso_archiveMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + ip_id?: Prisma.SortOrder + date?: Prisma.SortOrder + total?: Prisma.SortOrder + total_day?: Prisma.SortOrder + total_night?: Prisma.SortOrder +} + +export type conso_archiveMinOrderByAggregateInput = { + id?: Prisma.SortOrder + ip_id?: Prisma.SortOrder + date?: Prisma.SortOrder + total?: Prisma.SortOrder + total_day?: Prisma.SortOrder + total_night?: Prisma.SortOrder +} + +export type conso_archiveSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + total?: Prisma.SortOrder + total_day?: Prisma.SortOrder + total_night?: Prisma.SortOrder +} + + + +export type conso_archiveSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + ip_id?: boolean + date?: boolean + total?: boolean + total_day?: boolean + total_night?: boolean +}, ExtArgs["result"]["conso_archive"]> + + + +export type conso_archiveSelectScalar = { + id?: boolean + ip_id?: boolean + date?: boolean + total?: boolean + total_day?: boolean + total_night?: boolean +} + +export type conso_archiveOmit = runtime.Types.Extensions.GetOmit<"id" | "ip_id" | "date" | "total" | "total_day" | "total_night", ExtArgs["result"]["conso_archive"]> + +export type $conso_archivePayload = { + name: "conso_archive" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + ip_id: string | null + date: bigint | null + total: bigint | null + total_day: bigint | null + total_night: bigint | null + }, ExtArgs["result"]["conso_archive"]> + composites: {} +} + +export type conso_archiveGetPayload = runtime.Types.Result.GetResult + +export type conso_archiveCountArgs = + Omit & { + select?: Conso_archiveCountAggregateInputType | true + } + +export interface conso_archiveDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['conso_archive'], meta: { name: 'conso_archive' } } + /** + * Find zero or one Conso_archive that matches the filter. + * @param {conso_archiveFindUniqueArgs} args - Arguments to find a Conso_archive + * @example + * // Get one Conso_archive + * const conso_archive = await prisma.conso_archive.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Conso_archive that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {conso_archiveFindUniqueOrThrowArgs} args - Arguments to find a Conso_archive + * @example + * // Get one Conso_archive + * const conso_archive = await prisma.conso_archive.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_archive 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 {conso_archiveFindFirstArgs} args - Arguments to find a Conso_archive + * @example + * // Get one Conso_archive + * const conso_archive = await prisma.conso_archive.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_archive 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 {conso_archiveFindFirstOrThrowArgs} args - Arguments to find a Conso_archive + * @example + * // Get one Conso_archive + * const conso_archive = await prisma.conso_archive.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Conso_archives 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 {conso_archiveFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Conso_archives + * const conso_archives = await prisma.conso_archive.findMany() + * + * // Get first 10 Conso_archives + * const conso_archives = await prisma.conso_archive.findMany({ take: 10 }) + * + * // Only select the `id` + * const conso_archiveWithIdOnly = await prisma.conso_archive.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Conso_archive. + * @param {conso_archiveCreateArgs} args - Arguments to create a Conso_archive. + * @example + * // Create one Conso_archive + * const Conso_archive = await prisma.conso_archive.create({ + * data: { + * // ... data to create a Conso_archive + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Conso_archives. + * @param {conso_archiveCreateManyArgs} args - Arguments to create many Conso_archives. + * @example + * // Create many Conso_archives + * const conso_archive = await prisma.conso_archive.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Conso_archive. + * @param {conso_archiveDeleteArgs} args - Arguments to delete one Conso_archive. + * @example + * // Delete one Conso_archive + * const Conso_archive = await prisma.conso_archive.delete({ + * where: { + * // ... filter to delete one Conso_archive + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Conso_archive. + * @param {conso_archiveUpdateArgs} args - Arguments to update one Conso_archive. + * @example + * // Update one Conso_archive + * const conso_archive = await prisma.conso_archive.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Conso_archives. + * @param {conso_archiveDeleteManyArgs} args - Arguments to filter Conso_archives to delete. + * @example + * // Delete a few Conso_archives + * const { count } = await prisma.conso_archive.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Conso_archives. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_archiveUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Conso_archives + * const conso_archive = await prisma.conso_archive.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Conso_archive. + * @param {conso_archiveUpsertArgs} args - Arguments to update or create a Conso_archive. + * @example + * // Update or create a Conso_archive + * const conso_archive = await prisma.conso_archive.upsert({ + * create: { + * // ... data to create a Conso_archive + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Conso_archive we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__conso_archiveClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Conso_archives. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_archiveCountArgs} args - Arguments to filter Conso_archives to count. + * @example + * // Count the number of Conso_archives + * const count = await prisma.conso_archive.count({ + * where: { + * // ... the filter for the Conso_archives 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 Conso_archive. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Conso_archiveAggregateArgs} 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 Conso_archive. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_archiveGroupByArgs} 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 conso_archiveGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: conso_archiveGroupByArgs['orderBy'] } + : { orderBy?: conso_archiveGroupByArgs['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 ? GetConso_archiveGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the conso_archive model + */ +readonly fields: conso_archiveFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for conso_archive. + * 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__conso_archiveClient 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 conso_archive model + */ +export interface conso_archiveFieldRefs { + readonly id: Prisma.FieldRef<"conso_archive", 'BigInt'> + readonly ip_id: Prisma.FieldRef<"conso_archive", 'String'> + readonly date: Prisma.FieldRef<"conso_archive", 'BigInt'> + readonly total: Prisma.FieldRef<"conso_archive", 'BigInt'> + readonly total_day: Prisma.FieldRef<"conso_archive", 'BigInt'> + readonly total_night: Prisma.FieldRef<"conso_archive", 'BigInt'> +} + + +// Custom InputTypes +/** + * conso_archive findUnique + */ +export type conso_archiveFindUniqueArgs = { + /** + * Select specific fields to fetch from the conso_archive + */ + select?: Prisma.conso_archiveSelect | null + /** + * Omit specific fields from the conso_archive + */ + omit?: Prisma.conso_archiveOmit | null + /** + * Filter, which conso_archive to fetch. + */ + where: Prisma.conso_archiveWhereUniqueInput +} + +/** + * conso_archive findUniqueOrThrow + */ +export type conso_archiveFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_archive + */ + select?: Prisma.conso_archiveSelect | null + /** + * Omit specific fields from the conso_archive + */ + omit?: Prisma.conso_archiveOmit | null + /** + * Filter, which conso_archive to fetch. + */ + where: Prisma.conso_archiveWhereUniqueInput +} + +/** + * conso_archive findFirst + */ +export type conso_archiveFindFirstArgs = { + /** + * Select specific fields to fetch from the conso_archive + */ + select?: Prisma.conso_archiveSelect | null + /** + * Omit specific fields from the conso_archive + */ + omit?: Prisma.conso_archiveOmit | null + /** + * Filter, which conso_archive to fetch. + */ + where?: Prisma.conso_archiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_archives to fetch. + */ + orderBy?: Prisma.conso_archiveOrderByWithRelationInput | Prisma.conso_archiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_archives. + */ + cursor?: Prisma.conso_archiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_archives 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` conso_archives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_archives. + */ + distinct?: Prisma.Conso_archiveScalarFieldEnum | Prisma.Conso_archiveScalarFieldEnum[] +} + +/** + * conso_archive findFirstOrThrow + */ +export type conso_archiveFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_archive + */ + select?: Prisma.conso_archiveSelect | null + /** + * Omit specific fields from the conso_archive + */ + omit?: Prisma.conso_archiveOmit | null + /** + * Filter, which conso_archive to fetch. + */ + where?: Prisma.conso_archiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_archives to fetch. + */ + orderBy?: Prisma.conso_archiveOrderByWithRelationInput | Prisma.conso_archiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_archives. + */ + cursor?: Prisma.conso_archiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_archives 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` conso_archives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_archives. + */ + distinct?: Prisma.Conso_archiveScalarFieldEnum | Prisma.Conso_archiveScalarFieldEnum[] +} + +/** + * conso_archive findMany + */ +export type conso_archiveFindManyArgs = { + /** + * Select specific fields to fetch from the conso_archive + */ + select?: Prisma.conso_archiveSelect | null + /** + * Omit specific fields from the conso_archive + */ + omit?: Prisma.conso_archiveOmit | null + /** + * Filter, which conso_archives to fetch. + */ + where?: Prisma.conso_archiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_archives to fetch. + */ + orderBy?: Prisma.conso_archiveOrderByWithRelationInput | Prisma.conso_archiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing conso_archives. + */ + cursor?: Prisma.conso_archiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_archives 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` conso_archives. + */ + skip?: number + distinct?: Prisma.Conso_archiveScalarFieldEnum | Prisma.Conso_archiveScalarFieldEnum[] +} + +/** + * conso_archive create + */ +export type conso_archiveCreateArgs = { + /** + * Select specific fields to fetch from the conso_archive + */ + select?: Prisma.conso_archiveSelect | null + /** + * Omit specific fields from the conso_archive + */ + omit?: Prisma.conso_archiveOmit | null + /** + * The data needed to create a conso_archive. + */ + data?: Prisma.XOR +} + +/** + * conso_archive createMany + */ +export type conso_archiveCreateManyArgs = { + /** + * The data used to create many conso_archives. + */ + data: Prisma.conso_archiveCreateManyInput | Prisma.conso_archiveCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * conso_archive update + */ +export type conso_archiveUpdateArgs = { + /** + * Select specific fields to fetch from the conso_archive + */ + select?: Prisma.conso_archiveSelect | null + /** + * Omit specific fields from the conso_archive + */ + omit?: Prisma.conso_archiveOmit | null + /** + * The data needed to update a conso_archive. + */ + data: Prisma.XOR + /** + * Choose, which conso_archive to update. + */ + where: Prisma.conso_archiveWhereUniqueInput +} + +/** + * conso_archive updateMany + */ +export type conso_archiveUpdateManyArgs = { + /** + * The data used to update conso_archives. + */ + data: Prisma.XOR + /** + * Filter which conso_archives to update + */ + where?: Prisma.conso_archiveWhereInput + /** + * Limit how many conso_archives to update. + */ + limit?: number +} + +/** + * conso_archive upsert + */ +export type conso_archiveUpsertArgs = { + /** + * Select specific fields to fetch from the conso_archive + */ + select?: Prisma.conso_archiveSelect | null + /** + * Omit specific fields from the conso_archive + */ + omit?: Prisma.conso_archiveOmit | null + /** + * The filter to search for the conso_archive to update in case it exists. + */ + where: Prisma.conso_archiveWhereUniqueInput + /** + * In case the conso_archive found by the `where` argument doesn't exist, create a new conso_archive with this data. + */ + create: Prisma.XOR + /** + * In case the conso_archive was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * conso_archive delete + */ +export type conso_archiveDeleteArgs = { + /** + * Select specific fields to fetch from the conso_archive + */ + select?: Prisma.conso_archiveSelect | null + /** + * Omit specific fields from the conso_archive + */ + omit?: Prisma.conso_archiveOmit | null + /** + * Filter which conso_archive to delete. + */ + where: Prisma.conso_archiveWhereUniqueInput +} + +/** + * conso_archive deleteMany + */ +export type conso_archiveDeleteManyArgs = { + /** + * Filter which conso_archives to delete + */ + where?: Prisma.conso_archiveWhereInput + /** + * Limit how many conso_archives to delete. + */ + limit?: number +} + +/** + * conso_archive without action + */ +export type conso_archiveDefaultArgs = { + /** + * Select specific fields to fetch from the conso_archive + */ + select?: Prisma.conso_archiveSelect | null + /** + * Omit specific fields from the conso_archive + */ + omit?: Prisma.conso_archiveOmit | null +} diff --git a/prisma/generated/mariadb/models/conso_avis.ts b/prisma/generated/mariadb/models/conso_avis.ts new file mode 100644 index 0000000..02b23b2 --- /dev/null +++ b/prisma/generated/mariadb/models/conso_avis.ts @@ -0,0 +1,1161 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `conso_avis` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model conso_avis + * + */ +export type conso_avisModel = runtime.Types.Result.DefaultSelection + +export type AggregateConso_avis = { + _count: Conso_avisCountAggregateOutputType | null + _avg: Conso_avisAvgAggregateOutputType | null + _sum: Conso_avisSumAggregateOutputType | null + _min: Conso_avisMinAggregateOutputType | null + _max: Conso_avisMaxAggregateOutputType | null +} + +export type Conso_avisAvgAggregateOutputType = { + id: number | null + date: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + ip_id: number | null +} + +export type Conso_avisSumAggregateOutputType = { + id: number | null + date: bigint | null + account_id: number | null + delivery_id: number | null + service_id: number | null + ip_id: number | null +} + +export type Conso_avisMinAggregateOutputType = { + id: number | null + date: bigint | null + account_id: number | null + delivery_id: number | null + service_id: number | null + ip_id: number | null + avis: string | null +} + +export type Conso_avisMaxAggregateOutputType = { + id: number | null + date: bigint | null + account_id: number | null + delivery_id: number | null + service_id: number | null + ip_id: number | null + avis: string | null +} + +export type Conso_avisCountAggregateOutputType = { + id: number + date: number + account_id: number + delivery_id: number + service_id: number + ip_id: number + avis: number + _all: number +} + + +export type Conso_avisAvgAggregateInputType = { + id?: true + date?: true + account_id?: true + delivery_id?: true + service_id?: true + ip_id?: true +} + +export type Conso_avisSumAggregateInputType = { + id?: true + date?: true + account_id?: true + delivery_id?: true + service_id?: true + ip_id?: true +} + +export type Conso_avisMinAggregateInputType = { + id?: true + date?: true + account_id?: true + delivery_id?: true + service_id?: true + ip_id?: true + avis?: true +} + +export type Conso_avisMaxAggregateInputType = { + id?: true + date?: true + account_id?: true + delivery_id?: true + service_id?: true + ip_id?: true + avis?: true +} + +export type Conso_avisCountAggregateInputType = { + id?: true + date?: true + account_id?: true + delivery_id?: true + service_id?: true + ip_id?: true + avis?: true + _all?: true +} + +export type Conso_avisAggregateArgs = { + /** + * Filter which conso_avis to aggregate. + */ + where?: Prisma.conso_avisWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_avis to fetch. + */ + orderBy?: Prisma.conso_avisOrderByWithRelationInput | Prisma.conso_avisOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.conso_avisWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_avis 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` conso_avis. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned conso_avis + **/ + _count?: true | Conso_avisCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Conso_avisAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Conso_avisSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Conso_avisMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Conso_avisMaxAggregateInputType +} + +export type GetConso_avisAggregateType = { + [P in keyof T & keyof AggregateConso_avis]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type conso_avisGroupByArgs = { + where?: Prisma.conso_avisWhereInput + orderBy?: Prisma.conso_avisOrderByWithAggregationInput | Prisma.conso_avisOrderByWithAggregationInput[] + by: Prisma.Conso_avisScalarFieldEnum[] | Prisma.Conso_avisScalarFieldEnum + having?: Prisma.conso_avisScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Conso_avisCountAggregateInputType | true + _avg?: Conso_avisAvgAggregateInputType + _sum?: Conso_avisSumAggregateInputType + _min?: Conso_avisMinAggregateInputType + _max?: Conso_avisMaxAggregateInputType +} + +export type Conso_avisGroupByOutputType = { + id: number + date: bigint + account_id: number + delivery_id: number + service_id: number + ip_id: number + avis: string + _count: Conso_avisCountAggregateOutputType | null + _avg: Conso_avisAvgAggregateOutputType | null + _sum: Conso_avisSumAggregateOutputType | null + _min: Conso_avisMinAggregateOutputType | null + _max: Conso_avisMaxAggregateOutputType | null +} + +type GetConso_avisGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Conso_avisGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type conso_avisWhereInput = { + AND?: Prisma.conso_avisWhereInput | Prisma.conso_avisWhereInput[] + OR?: Prisma.conso_avisWhereInput[] + NOT?: Prisma.conso_avisWhereInput | Prisma.conso_avisWhereInput[] + id?: Prisma.IntFilter<"conso_avis"> | number + date?: Prisma.BigIntFilter<"conso_avis"> | bigint | number + account_id?: Prisma.IntFilter<"conso_avis"> | number + delivery_id?: Prisma.IntFilter<"conso_avis"> | number + service_id?: Prisma.IntFilter<"conso_avis"> | number + ip_id?: Prisma.IntFilter<"conso_avis"> | number + avis?: Prisma.StringFilter<"conso_avis"> | string +} + +export type conso_avisOrderByWithRelationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip_id?: Prisma.SortOrder + avis?: Prisma.SortOrder + _relevance?: Prisma.conso_avisOrderByRelevanceInput +} + +export type conso_avisWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.conso_avisWhereInput | Prisma.conso_avisWhereInput[] + OR?: Prisma.conso_avisWhereInput[] + NOT?: Prisma.conso_avisWhereInput | Prisma.conso_avisWhereInput[] + date?: Prisma.BigIntFilter<"conso_avis"> | bigint | number + account_id?: Prisma.IntFilter<"conso_avis"> | number + delivery_id?: Prisma.IntFilter<"conso_avis"> | number + service_id?: Prisma.IntFilter<"conso_avis"> | number + ip_id?: Prisma.IntFilter<"conso_avis"> | number + avis?: Prisma.StringFilter<"conso_avis"> | string +}, "id"> + +export type conso_avisOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip_id?: Prisma.SortOrder + avis?: Prisma.SortOrder + _count?: Prisma.conso_avisCountOrderByAggregateInput + _avg?: Prisma.conso_avisAvgOrderByAggregateInput + _max?: Prisma.conso_avisMaxOrderByAggregateInput + _min?: Prisma.conso_avisMinOrderByAggregateInput + _sum?: Prisma.conso_avisSumOrderByAggregateInput +} + +export type conso_avisScalarWhereWithAggregatesInput = { + AND?: Prisma.conso_avisScalarWhereWithAggregatesInput | Prisma.conso_avisScalarWhereWithAggregatesInput[] + OR?: Prisma.conso_avisScalarWhereWithAggregatesInput[] + NOT?: Prisma.conso_avisScalarWhereWithAggregatesInput | Prisma.conso_avisScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"conso_avis"> | number + date?: Prisma.BigIntWithAggregatesFilter<"conso_avis"> | bigint | number + account_id?: Prisma.IntWithAggregatesFilter<"conso_avis"> | number + delivery_id?: Prisma.IntWithAggregatesFilter<"conso_avis"> | number + service_id?: Prisma.IntWithAggregatesFilter<"conso_avis"> | number + ip_id?: Prisma.IntWithAggregatesFilter<"conso_avis"> | number + avis?: Prisma.StringWithAggregatesFilter<"conso_avis"> | string +} + +export type conso_avisCreateInput = { + date: bigint | number + account_id: number + delivery_id?: number + service_id?: number + ip_id: number + avis: string +} + +export type conso_avisUncheckedCreateInput = { + id?: number + date: bigint | number + account_id: number + delivery_id?: number + service_id?: number + ip_id: number + avis: string +} + +export type conso_avisUpdateInput = { + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + ip_id?: Prisma.IntFieldUpdateOperationsInput | number + avis?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_avisUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + ip_id?: Prisma.IntFieldUpdateOperationsInput | number + avis?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_avisCreateManyInput = { + id?: number + date: bigint | number + account_id: number + delivery_id?: number + service_id?: number + ip_id: number + avis: string +} + +export type conso_avisUpdateManyMutationInput = { + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + ip_id?: Prisma.IntFieldUpdateOperationsInput | number + avis?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_avisUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + ip_id?: Prisma.IntFieldUpdateOperationsInput | number + avis?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_avisOrderByRelevanceInput = { + fields: Prisma.conso_avisOrderByRelevanceFieldEnum | Prisma.conso_avisOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type conso_avisCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip_id?: Prisma.SortOrder + avis?: Prisma.SortOrder +} + +export type conso_avisAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip_id?: Prisma.SortOrder +} + +export type conso_avisMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip_id?: Prisma.SortOrder + avis?: Prisma.SortOrder +} + +export type conso_avisMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip_id?: Prisma.SortOrder + avis?: Prisma.SortOrder +} + +export type conso_avisSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip_id?: Prisma.SortOrder +} + + + +export type conso_avisSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date?: boolean + account_id?: boolean + delivery_id?: boolean + service_id?: boolean + ip_id?: boolean + avis?: boolean +}, ExtArgs["result"]["conso_avis"]> + + + +export type conso_avisSelectScalar = { + id?: boolean + date?: boolean + account_id?: boolean + delivery_id?: boolean + service_id?: boolean + ip_id?: boolean + avis?: boolean +} + +export type conso_avisOmit = runtime.Types.Extensions.GetOmit<"id" | "date" | "account_id" | "delivery_id" | "service_id" | "ip_id" | "avis", ExtArgs["result"]["conso_avis"]> + +export type $conso_avisPayload = { + name: "conso_avis" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + date: bigint + account_id: number + delivery_id: number + service_id: number + ip_id: number + avis: string + }, ExtArgs["result"]["conso_avis"]> + composites: {} +} + +export type conso_avisGetPayload = runtime.Types.Result.GetResult + +export type conso_avisCountArgs = + Omit & { + select?: Conso_avisCountAggregateInputType | true + } + +export interface conso_avisDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['conso_avis'], meta: { name: 'conso_avis' } } + /** + * Find zero or one Conso_avis that matches the filter. + * @param {conso_avisFindUniqueArgs} args - Arguments to find a Conso_avis + * @example + * // Get one Conso_avis + * const conso_avis = await prisma.conso_avis.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__conso_avisClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Conso_avis that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {conso_avisFindUniqueOrThrowArgs} args - Arguments to find a Conso_avis + * @example + * // Get one Conso_avis + * const conso_avis = await prisma.conso_avis.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__conso_avisClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_avis 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 {conso_avisFindFirstArgs} args - Arguments to find a Conso_avis + * @example + * // Get one Conso_avis + * const conso_avis = await prisma.conso_avis.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_avisClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_avis 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 {conso_avisFindFirstOrThrowArgs} args - Arguments to find a Conso_avis + * @example + * // Get one Conso_avis + * const conso_avis = await prisma.conso_avis.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_avisClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Conso_avis 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 {conso_avisFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Conso_avis + * const conso_avis = await prisma.conso_avis.findMany() + * + * // Get first 10 Conso_avis + * const conso_avis = await prisma.conso_avis.findMany({ take: 10 }) + * + * // Only select the `id` + * const conso_avisWithIdOnly = await prisma.conso_avis.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Conso_avis. + * @param {conso_avisCreateArgs} args - Arguments to create a Conso_avis. + * @example + * // Create one Conso_avis + * const Conso_avis = await prisma.conso_avis.create({ + * data: { + * // ... data to create a Conso_avis + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__conso_avisClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Conso_avis. + * @param {conso_avisCreateManyArgs} args - Arguments to create many Conso_avis. + * @example + * // Create many Conso_avis + * const conso_avis = await prisma.conso_avis.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Conso_avis. + * @param {conso_avisDeleteArgs} args - Arguments to delete one Conso_avis. + * @example + * // Delete one Conso_avis + * const Conso_avis = await prisma.conso_avis.delete({ + * where: { + * // ... filter to delete one Conso_avis + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__conso_avisClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Conso_avis. + * @param {conso_avisUpdateArgs} args - Arguments to update one Conso_avis. + * @example + * // Update one Conso_avis + * const conso_avis = await prisma.conso_avis.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__conso_avisClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Conso_avis. + * @param {conso_avisDeleteManyArgs} args - Arguments to filter Conso_avis to delete. + * @example + * // Delete a few Conso_avis + * const { count } = await prisma.conso_avis.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Conso_avis. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_avisUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Conso_avis + * const conso_avis = await prisma.conso_avis.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Conso_avis. + * @param {conso_avisUpsertArgs} args - Arguments to update or create a Conso_avis. + * @example + * // Update or create a Conso_avis + * const conso_avis = await prisma.conso_avis.upsert({ + * create: { + * // ... data to create a Conso_avis + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Conso_avis we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__conso_avisClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Conso_avis. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_avisCountArgs} args - Arguments to filter Conso_avis to count. + * @example + * // Count the number of Conso_avis + * const count = await prisma.conso_avis.count({ + * where: { + * // ... the filter for the Conso_avis 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 Conso_avis. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Conso_avisAggregateArgs} 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 Conso_avis. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_avisGroupByArgs} 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 conso_avisGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: conso_avisGroupByArgs['orderBy'] } + : { orderBy?: conso_avisGroupByArgs['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 ? GetConso_avisGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the conso_avis model + */ +readonly fields: conso_avisFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for conso_avis. + * 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__conso_avisClient 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 conso_avis model + */ +export interface conso_avisFieldRefs { + readonly id: Prisma.FieldRef<"conso_avis", 'Int'> + readonly date: Prisma.FieldRef<"conso_avis", 'BigInt'> + readonly account_id: Prisma.FieldRef<"conso_avis", 'Int'> + readonly delivery_id: Prisma.FieldRef<"conso_avis", 'Int'> + readonly service_id: Prisma.FieldRef<"conso_avis", 'Int'> + readonly ip_id: Prisma.FieldRef<"conso_avis", 'Int'> + readonly avis: Prisma.FieldRef<"conso_avis", 'String'> +} + + +// Custom InputTypes +/** + * conso_avis findUnique + */ +export type conso_avisFindUniqueArgs = { + /** + * Select specific fields to fetch from the conso_avis + */ + select?: Prisma.conso_avisSelect | null + /** + * Omit specific fields from the conso_avis + */ + omit?: Prisma.conso_avisOmit | null + /** + * Filter, which conso_avis to fetch. + */ + where: Prisma.conso_avisWhereUniqueInput +} + +/** + * conso_avis findUniqueOrThrow + */ +export type conso_avisFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_avis + */ + select?: Prisma.conso_avisSelect | null + /** + * Omit specific fields from the conso_avis + */ + omit?: Prisma.conso_avisOmit | null + /** + * Filter, which conso_avis to fetch. + */ + where: Prisma.conso_avisWhereUniqueInput +} + +/** + * conso_avis findFirst + */ +export type conso_avisFindFirstArgs = { + /** + * Select specific fields to fetch from the conso_avis + */ + select?: Prisma.conso_avisSelect | null + /** + * Omit specific fields from the conso_avis + */ + omit?: Prisma.conso_avisOmit | null + /** + * Filter, which conso_avis to fetch. + */ + where?: Prisma.conso_avisWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_avis to fetch. + */ + orderBy?: Prisma.conso_avisOrderByWithRelationInput | Prisma.conso_avisOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_avis. + */ + cursor?: Prisma.conso_avisWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_avis 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` conso_avis. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_avis. + */ + distinct?: Prisma.Conso_avisScalarFieldEnum | Prisma.Conso_avisScalarFieldEnum[] +} + +/** + * conso_avis findFirstOrThrow + */ +export type conso_avisFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_avis + */ + select?: Prisma.conso_avisSelect | null + /** + * Omit specific fields from the conso_avis + */ + omit?: Prisma.conso_avisOmit | null + /** + * Filter, which conso_avis to fetch. + */ + where?: Prisma.conso_avisWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_avis to fetch. + */ + orderBy?: Prisma.conso_avisOrderByWithRelationInput | Prisma.conso_avisOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_avis. + */ + cursor?: Prisma.conso_avisWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_avis 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` conso_avis. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_avis. + */ + distinct?: Prisma.Conso_avisScalarFieldEnum | Prisma.Conso_avisScalarFieldEnum[] +} + +/** + * conso_avis findMany + */ +export type conso_avisFindManyArgs = { + /** + * Select specific fields to fetch from the conso_avis + */ + select?: Prisma.conso_avisSelect | null + /** + * Omit specific fields from the conso_avis + */ + omit?: Prisma.conso_avisOmit | null + /** + * Filter, which conso_avis to fetch. + */ + where?: Prisma.conso_avisWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_avis to fetch. + */ + orderBy?: Prisma.conso_avisOrderByWithRelationInput | Prisma.conso_avisOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing conso_avis. + */ + cursor?: Prisma.conso_avisWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_avis 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` conso_avis. + */ + skip?: number + distinct?: Prisma.Conso_avisScalarFieldEnum | Prisma.Conso_avisScalarFieldEnum[] +} + +/** + * conso_avis create + */ +export type conso_avisCreateArgs = { + /** + * Select specific fields to fetch from the conso_avis + */ + select?: Prisma.conso_avisSelect | null + /** + * Omit specific fields from the conso_avis + */ + omit?: Prisma.conso_avisOmit | null + /** + * The data needed to create a conso_avis. + */ + data: Prisma.XOR +} + +/** + * conso_avis createMany + */ +export type conso_avisCreateManyArgs = { + /** + * The data used to create many conso_avis. + */ + data: Prisma.conso_avisCreateManyInput | Prisma.conso_avisCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * conso_avis update + */ +export type conso_avisUpdateArgs = { + /** + * Select specific fields to fetch from the conso_avis + */ + select?: Prisma.conso_avisSelect | null + /** + * Omit specific fields from the conso_avis + */ + omit?: Prisma.conso_avisOmit | null + /** + * The data needed to update a conso_avis. + */ + data: Prisma.XOR + /** + * Choose, which conso_avis to update. + */ + where: Prisma.conso_avisWhereUniqueInput +} + +/** + * conso_avis updateMany + */ +export type conso_avisUpdateManyArgs = { + /** + * The data used to update conso_avis. + */ + data: Prisma.XOR + /** + * Filter which conso_avis to update + */ + where?: Prisma.conso_avisWhereInput + /** + * Limit how many conso_avis to update. + */ + limit?: number +} + +/** + * conso_avis upsert + */ +export type conso_avisUpsertArgs = { + /** + * Select specific fields to fetch from the conso_avis + */ + select?: Prisma.conso_avisSelect | null + /** + * Omit specific fields from the conso_avis + */ + omit?: Prisma.conso_avisOmit | null + /** + * The filter to search for the conso_avis to update in case it exists. + */ + where: Prisma.conso_avisWhereUniqueInput + /** + * In case the conso_avis found by the `where` argument doesn't exist, create a new conso_avis with this data. + */ + create: Prisma.XOR + /** + * In case the conso_avis was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * conso_avis delete + */ +export type conso_avisDeleteArgs = { + /** + * Select specific fields to fetch from the conso_avis + */ + select?: Prisma.conso_avisSelect | null + /** + * Omit specific fields from the conso_avis + */ + omit?: Prisma.conso_avisOmit | null + /** + * Filter which conso_avis to delete. + */ + where: Prisma.conso_avisWhereUniqueInput +} + +/** + * conso_avis deleteMany + */ +export type conso_avisDeleteManyArgs = { + /** + * Filter which conso_avis to delete + */ + where?: Prisma.conso_avisWhereInput + /** + * Limit how many conso_avis to delete. + */ + limit?: number +} + +/** + * conso_avis without action + */ +export type conso_avisDefaultArgs = { + /** + * Select specific fields to fetch from the conso_avis + */ + select?: Prisma.conso_avisSelect | null + /** + * Omit specific fields from the conso_avis + */ + omit?: Prisma.conso_avisOmit | null +} diff --git a/prisma/generated/mariadb/models/conso_radius.ts b/prisma/generated/mariadb/models/conso_radius.ts new file mode 100644 index 0000000..aedbcb7 --- /dev/null +++ b/prisma/generated/mariadb/models/conso_radius.ts @@ -0,0 +1,1114 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `conso_radius` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model conso_radius + * + */ +export type conso_radiusModel = runtime.Types.Result.DefaultSelection + +export type AggregateConso_radius = { + _count: Conso_radiusCountAggregateOutputType | null + _avg: Conso_radiusAvgAggregateOutputType | null + _sum: Conso_radiusSumAggregateOutputType | null + _min: Conso_radiusMinAggregateOutputType | null + _max: Conso_radiusMaxAggregateOutputType | null +} + +export type Conso_radiusAvgAggregateOutputType = { + id: number | null + nb_sess: number | null +} + +export type Conso_radiusSumAggregateOutputType = { + id: bigint | null + nb_sess: number | null +} + +export type Conso_radiusMinAggregateOutputType = { + id: bigint | null + username: string | null + date: string | null + download: string | null + upload: string | null + nb_sess: number | null +} + +export type Conso_radiusMaxAggregateOutputType = { + id: bigint | null + username: string | null + date: string | null + download: string | null + upload: string | null + nb_sess: number | null +} + +export type Conso_radiusCountAggregateOutputType = { + id: number + username: number + date: number + download: number + upload: number + nb_sess: number + _all: number +} + + +export type Conso_radiusAvgAggregateInputType = { + id?: true + nb_sess?: true +} + +export type Conso_radiusSumAggregateInputType = { + id?: true + nb_sess?: true +} + +export type Conso_radiusMinAggregateInputType = { + id?: true + username?: true + date?: true + download?: true + upload?: true + nb_sess?: true +} + +export type Conso_radiusMaxAggregateInputType = { + id?: true + username?: true + date?: true + download?: true + upload?: true + nb_sess?: true +} + +export type Conso_radiusCountAggregateInputType = { + id?: true + username?: true + date?: true + download?: true + upload?: true + nb_sess?: true + _all?: true +} + +export type Conso_radiusAggregateArgs = { + /** + * Filter which conso_radius to aggregate. + */ + where?: Prisma.conso_radiusWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radii to fetch. + */ + orderBy?: Prisma.conso_radiusOrderByWithRelationInput | Prisma.conso_radiusOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.conso_radiusWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radii 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` conso_radii. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned conso_radii + **/ + _count?: true | Conso_radiusCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Conso_radiusAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Conso_radiusSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Conso_radiusMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Conso_radiusMaxAggregateInputType +} + +export type GetConso_radiusAggregateType = { + [P in keyof T & keyof AggregateConso_radius]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type conso_radiusGroupByArgs = { + where?: Prisma.conso_radiusWhereInput + orderBy?: Prisma.conso_radiusOrderByWithAggregationInput | Prisma.conso_radiusOrderByWithAggregationInput[] + by: Prisma.Conso_radiusScalarFieldEnum[] | Prisma.Conso_radiusScalarFieldEnum + having?: Prisma.conso_radiusScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Conso_radiusCountAggregateInputType | true + _avg?: Conso_radiusAvgAggregateInputType + _sum?: Conso_radiusSumAggregateInputType + _min?: Conso_radiusMinAggregateInputType + _max?: Conso_radiusMaxAggregateInputType +} + +export type Conso_radiusGroupByOutputType = { + id: bigint + username: string + date: string + download: string + upload: string + nb_sess: number + _count: Conso_radiusCountAggregateOutputType | null + _avg: Conso_radiusAvgAggregateOutputType | null + _sum: Conso_radiusSumAggregateOutputType | null + _min: Conso_radiusMinAggregateOutputType | null + _max: Conso_radiusMaxAggregateOutputType | null +} + +type GetConso_radiusGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Conso_radiusGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type conso_radiusWhereInput = { + AND?: Prisma.conso_radiusWhereInput | Prisma.conso_radiusWhereInput[] + OR?: Prisma.conso_radiusWhereInput[] + NOT?: Prisma.conso_radiusWhereInput | Prisma.conso_radiusWhereInput[] + id?: Prisma.BigIntFilter<"conso_radius"> | bigint | number + username?: Prisma.StringFilter<"conso_radius"> | string + date?: Prisma.StringFilter<"conso_radius"> | string + download?: Prisma.StringFilter<"conso_radius"> | string + upload?: Prisma.StringFilter<"conso_radius"> | string + nb_sess?: Prisma.IntFilter<"conso_radius"> | number +} + +export type conso_radiusOrderByWithRelationInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download?: Prisma.SortOrder + upload?: Prisma.SortOrder + nb_sess?: Prisma.SortOrder + _relevance?: Prisma.conso_radiusOrderByRelevanceInput +} + +export type conso_radiusWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.conso_radiusWhereInput | Prisma.conso_radiusWhereInput[] + OR?: Prisma.conso_radiusWhereInput[] + NOT?: Prisma.conso_radiusWhereInput | Prisma.conso_radiusWhereInput[] + username?: Prisma.StringFilter<"conso_radius"> | string + date?: Prisma.StringFilter<"conso_radius"> | string + download?: Prisma.StringFilter<"conso_radius"> | string + upload?: Prisma.StringFilter<"conso_radius"> | string + nb_sess?: Prisma.IntFilter<"conso_radius"> | number +}, "id"> + +export type conso_radiusOrderByWithAggregationInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download?: Prisma.SortOrder + upload?: Prisma.SortOrder + nb_sess?: Prisma.SortOrder + _count?: Prisma.conso_radiusCountOrderByAggregateInput + _avg?: Prisma.conso_radiusAvgOrderByAggregateInput + _max?: Prisma.conso_radiusMaxOrderByAggregateInput + _min?: Prisma.conso_radiusMinOrderByAggregateInput + _sum?: Prisma.conso_radiusSumOrderByAggregateInput +} + +export type conso_radiusScalarWhereWithAggregatesInput = { + AND?: Prisma.conso_radiusScalarWhereWithAggregatesInput | Prisma.conso_radiusScalarWhereWithAggregatesInput[] + OR?: Prisma.conso_radiusScalarWhereWithAggregatesInput[] + NOT?: Prisma.conso_radiusScalarWhereWithAggregatesInput | Prisma.conso_radiusScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"conso_radius"> | bigint | number + username?: Prisma.StringWithAggregatesFilter<"conso_radius"> | string + date?: Prisma.StringWithAggregatesFilter<"conso_radius"> | string + download?: Prisma.StringWithAggregatesFilter<"conso_radius"> | string + upload?: Prisma.StringWithAggregatesFilter<"conso_radius"> | string + nb_sess?: Prisma.IntWithAggregatesFilter<"conso_radius"> | number +} + +export type conso_radiusCreateInput = { + id?: bigint | number + username: string + date: string + download: string + upload: string + nb_sess?: number +} + +export type conso_radiusUncheckedCreateInput = { + id?: bigint | number + username: string + date: string + download: string + upload: string + nb_sess?: number +} + +export type conso_radiusUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download?: Prisma.StringFieldUpdateOperationsInput | string + upload?: Prisma.StringFieldUpdateOperationsInput | string + nb_sess?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type conso_radiusUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download?: Prisma.StringFieldUpdateOperationsInput | string + upload?: Prisma.StringFieldUpdateOperationsInput | string + nb_sess?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type conso_radiusCreateManyInput = { + id?: bigint | number + username: string + date: string + download: string + upload: string + nb_sess?: number +} + +export type conso_radiusUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download?: Prisma.StringFieldUpdateOperationsInput | string + upload?: Prisma.StringFieldUpdateOperationsInput | string + nb_sess?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type conso_radiusUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download?: Prisma.StringFieldUpdateOperationsInput | string + upload?: Prisma.StringFieldUpdateOperationsInput | string + nb_sess?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type conso_radiusOrderByRelevanceInput = { + fields: Prisma.conso_radiusOrderByRelevanceFieldEnum | Prisma.conso_radiusOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type conso_radiusCountOrderByAggregateInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download?: Prisma.SortOrder + upload?: Prisma.SortOrder + nb_sess?: Prisma.SortOrder +} + +export type conso_radiusAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + nb_sess?: Prisma.SortOrder +} + +export type conso_radiusMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download?: Prisma.SortOrder + upload?: Prisma.SortOrder + nb_sess?: Prisma.SortOrder +} + +export type conso_radiusMinOrderByAggregateInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download?: Prisma.SortOrder + upload?: Prisma.SortOrder + nb_sess?: Prisma.SortOrder +} + +export type conso_radiusSumOrderByAggregateInput = { + id?: Prisma.SortOrder + nb_sess?: Prisma.SortOrder +} + + + +export type conso_radiusSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + username?: boolean + date?: boolean + download?: boolean + upload?: boolean + nb_sess?: boolean +}, ExtArgs["result"]["conso_radius"]> + + + +export type conso_radiusSelectScalar = { + id?: boolean + username?: boolean + date?: boolean + download?: boolean + upload?: boolean + nb_sess?: boolean +} + +export type conso_radiusOmit = runtime.Types.Extensions.GetOmit<"id" | "username" | "date" | "download" | "upload" | "nb_sess", ExtArgs["result"]["conso_radius"]> + +export type $conso_radiusPayload = { + name: "conso_radius" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + username: string + date: string + download: string + upload: string + nb_sess: number + }, ExtArgs["result"]["conso_radius"]> + composites: {} +} + +export type conso_radiusGetPayload = runtime.Types.Result.GetResult + +export type conso_radiusCountArgs = + Omit & { + select?: Conso_radiusCountAggregateInputType | true + } + +export interface conso_radiusDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['conso_radius'], meta: { name: 'conso_radius' } } + /** + * Find zero or one Conso_radius that matches the filter. + * @param {conso_radiusFindUniqueArgs} args - Arguments to find a Conso_radius + * @example + * // Get one Conso_radius + * const conso_radius = await prisma.conso_radius.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radiusClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Conso_radius that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {conso_radiusFindUniqueOrThrowArgs} args - Arguments to find a Conso_radius + * @example + * // Get one Conso_radius + * const conso_radius = await prisma.conso_radius.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radiusClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_radius 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 {conso_radiusFindFirstArgs} args - Arguments to find a Conso_radius + * @example + * // Get one Conso_radius + * const conso_radius = await prisma.conso_radius.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_radiusClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_radius 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 {conso_radiusFindFirstOrThrowArgs} args - Arguments to find a Conso_radius + * @example + * // Get one Conso_radius + * const conso_radius = await prisma.conso_radius.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_radiusClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Conso_radii 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 {conso_radiusFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Conso_radii + * const conso_radii = await prisma.conso_radius.findMany() + * + * // Get first 10 Conso_radii + * const conso_radii = await prisma.conso_radius.findMany({ take: 10 }) + * + * // Only select the `id` + * const conso_radiusWithIdOnly = await prisma.conso_radius.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Conso_radius. + * @param {conso_radiusCreateArgs} args - Arguments to create a Conso_radius. + * @example + * // Create one Conso_radius + * const Conso_radius = await prisma.conso_radius.create({ + * data: { + * // ... data to create a Conso_radius + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radiusClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Conso_radii. + * @param {conso_radiusCreateManyArgs} args - Arguments to create many Conso_radii. + * @example + * // Create many Conso_radii + * const conso_radius = await prisma.conso_radius.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Conso_radius. + * @param {conso_radiusDeleteArgs} args - Arguments to delete one Conso_radius. + * @example + * // Delete one Conso_radius + * const Conso_radius = await prisma.conso_radius.delete({ + * where: { + * // ... filter to delete one Conso_radius + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radiusClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Conso_radius. + * @param {conso_radiusUpdateArgs} args - Arguments to update one Conso_radius. + * @example + * // Update one Conso_radius + * const conso_radius = await prisma.conso_radius.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radiusClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Conso_radii. + * @param {conso_radiusDeleteManyArgs} args - Arguments to filter Conso_radii to delete. + * @example + * // Delete a few Conso_radii + * const { count } = await prisma.conso_radius.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Conso_radii. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radiusUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Conso_radii + * const conso_radius = await prisma.conso_radius.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Conso_radius. + * @param {conso_radiusUpsertArgs} args - Arguments to update or create a Conso_radius. + * @example + * // Update or create a Conso_radius + * const conso_radius = await prisma.conso_radius.upsert({ + * create: { + * // ... data to create a Conso_radius + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Conso_radius we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radiusClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Conso_radii. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radiusCountArgs} args - Arguments to filter Conso_radii to count. + * @example + * // Count the number of Conso_radii + * const count = await prisma.conso_radius.count({ + * where: { + * // ... the filter for the Conso_radii 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 Conso_radius. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Conso_radiusAggregateArgs} 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 Conso_radius. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radiusGroupByArgs} 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 conso_radiusGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: conso_radiusGroupByArgs['orderBy'] } + : { orderBy?: conso_radiusGroupByArgs['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 ? GetConso_radiusGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the conso_radius model + */ +readonly fields: conso_radiusFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for conso_radius. + * 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__conso_radiusClient 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 conso_radius model + */ +export interface conso_radiusFieldRefs { + readonly id: Prisma.FieldRef<"conso_radius", 'BigInt'> + readonly username: Prisma.FieldRef<"conso_radius", 'String'> + readonly date: Prisma.FieldRef<"conso_radius", 'String'> + readonly download: Prisma.FieldRef<"conso_radius", 'String'> + readonly upload: Prisma.FieldRef<"conso_radius", 'String'> + readonly nb_sess: Prisma.FieldRef<"conso_radius", 'Int'> +} + + +// Custom InputTypes +/** + * conso_radius findUnique + */ +export type conso_radiusFindUniqueArgs = { + /** + * Select specific fields to fetch from the conso_radius + */ + select?: Prisma.conso_radiusSelect | null + /** + * Omit specific fields from the conso_radius + */ + omit?: Prisma.conso_radiusOmit | null + /** + * Filter, which conso_radius to fetch. + */ + where: Prisma.conso_radiusWhereUniqueInput +} + +/** + * conso_radius findUniqueOrThrow + */ +export type conso_radiusFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_radius + */ + select?: Prisma.conso_radiusSelect | null + /** + * Omit specific fields from the conso_radius + */ + omit?: Prisma.conso_radiusOmit | null + /** + * Filter, which conso_radius to fetch. + */ + where: Prisma.conso_radiusWhereUniqueInput +} + +/** + * conso_radius findFirst + */ +export type conso_radiusFindFirstArgs = { + /** + * Select specific fields to fetch from the conso_radius + */ + select?: Prisma.conso_radiusSelect | null + /** + * Omit specific fields from the conso_radius + */ + omit?: Prisma.conso_radiusOmit | null + /** + * Filter, which conso_radius to fetch. + */ + where?: Prisma.conso_radiusWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radii to fetch. + */ + orderBy?: Prisma.conso_radiusOrderByWithRelationInput | Prisma.conso_radiusOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_radii. + */ + cursor?: Prisma.conso_radiusWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radii 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` conso_radii. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_radii. + */ + distinct?: Prisma.Conso_radiusScalarFieldEnum | Prisma.Conso_radiusScalarFieldEnum[] +} + +/** + * conso_radius findFirstOrThrow + */ +export type conso_radiusFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_radius + */ + select?: Prisma.conso_radiusSelect | null + /** + * Omit specific fields from the conso_radius + */ + omit?: Prisma.conso_radiusOmit | null + /** + * Filter, which conso_radius to fetch. + */ + where?: Prisma.conso_radiusWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radii to fetch. + */ + orderBy?: Prisma.conso_radiusOrderByWithRelationInput | Prisma.conso_radiusOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_radii. + */ + cursor?: Prisma.conso_radiusWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radii 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` conso_radii. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_radii. + */ + distinct?: Prisma.Conso_radiusScalarFieldEnum | Prisma.Conso_radiusScalarFieldEnum[] +} + +/** + * conso_radius findMany + */ +export type conso_radiusFindManyArgs = { + /** + * Select specific fields to fetch from the conso_radius + */ + select?: Prisma.conso_radiusSelect | null + /** + * Omit specific fields from the conso_radius + */ + omit?: Prisma.conso_radiusOmit | null + /** + * Filter, which conso_radii to fetch. + */ + where?: Prisma.conso_radiusWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radii to fetch. + */ + orderBy?: Prisma.conso_radiusOrderByWithRelationInput | Prisma.conso_radiusOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing conso_radii. + */ + cursor?: Prisma.conso_radiusWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radii 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` conso_radii. + */ + skip?: number + distinct?: Prisma.Conso_radiusScalarFieldEnum | Prisma.Conso_radiusScalarFieldEnum[] +} + +/** + * conso_radius create + */ +export type conso_radiusCreateArgs = { + /** + * Select specific fields to fetch from the conso_radius + */ + select?: Prisma.conso_radiusSelect | null + /** + * Omit specific fields from the conso_radius + */ + omit?: Prisma.conso_radiusOmit | null + /** + * The data needed to create a conso_radius. + */ + data: Prisma.XOR +} + +/** + * conso_radius createMany + */ +export type conso_radiusCreateManyArgs = { + /** + * The data used to create many conso_radii. + */ + data: Prisma.conso_radiusCreateManyInput | Prisma.conso_radiusCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * conso_radius update + */ +export type conso_radiusUpdateArgs = { + /** + * Select specific fields to fetch from the conso_radius + */ + select?: Prisma.conso_radiusSelect | null + /** + * Omit specific fields from the conso_radius + */ + omit?: Prisma.conso_radiusOmit | null + /** + * The data needed to update a conso_radius. + */ + data: Prisma.XOR + /** + * Choose, which conso_radius to update. + */ + where: Prisma.conso_radiusWhereUniqueInput +} + +/** + * conso_radius updateMany + */ +export type conso_radiusUpdateManyArgs = { + /** + * The data used to update conso_radii. + */ + data: Prisma.XOR + /** + * Filter which conso_radii to update + */ + where?: Prisma.conso_radiusWhereInput + /** + * Limit how many conso_radii to update. + */ + limit?: number +} + +/** + * conso_radius upsert + */ +export type conso_radiusUpsertArgs = { + /** + * Select specific fields to fetch from the conso_radius + */ + select?: Prisma.conso_radiusSelect | null + /** + * Omit specific fields from the conso_radius + */ + omit?: Prisma.conso_radiusOmit | null + /** + * The filter to search for the conso_radius to update in case it exists. + */ + where: Prisma.conso_radiusWhereUniqueInput + /** + * In case the conso_radius found by the `where` argument doesn't exist, create a new conso_radius with this data. + */ + create: Prisma.XOR + /** + * In case the conso_radius was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * conso_radius delete + */ +export type conso_radiusDeleteArgs = { + /** + * Select specific fields to fetch from the conso_radius + */ + select?: Prisma.conso_radiusSelect | null + /** + * Omit specific fields from the conso_radius + */ + omit?: Prisma.conso_radiusOmit | null + /** + * Filter which conso_radius to delete. + */ + where: Prisma.conso_radiusWhereUniqueInput +} + +/** + * conso_radius deleteMany + */ +export type conso_radiusDeleteManyArgs = { + /** + * Filter which conso_radii to delete + */ + where?: Prisma.conso_radiusWhereInput + /** + * Limit how many conso_radii to delete. + */ + limit?: number +} + +/** + * conso_radius without action + */ +export type conso_radiusDefaultArgs = { + /** + * Select specific fields to fetch from the conso_radius + */ + select?: Prisma.conso_radiusSelect | null + /** + * Omit specific fields from the conso_radius + */ + omit?: Prisma.conso_radiusOmit | null +} diff --git a/prisma/generated/mariadb/models/conso_radius_daily.ts b/prisma/generated/mariadb/models/conso_radius_daily.ts new file mode 100644 index 0000000..24b2bda --- /dev/null +++ b/prisma/generated/mariadb/models/conso_radius_daily.ts @@ -0,0 +1,1131 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `conso_radius_daily` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model conso_radius_daily + * + */ +export type conso_radius_dailyModel = runtime.Types.Result.DefaultSelection + +export type AggregateConso_radius_daily = { + _count: Conso_radius_dailyCountAggregateOutputType | null + _avg: Conso_radius_dailyAvgAggregateOutputType | null + _sum: Conso_radius_dailySumAggregateOutputType | null + _min: Conso_radius_dailyMinAggregateOutputType | null + _max: Conso_radius_dailyMaxAggregateOutputType | null +} + +export type Conso_radius_dailyAvgAggregateOutputType = { + id: number | null +} + +export type Conso_radius_dailySumAggregateOutputType = { + id: number | null +} + +export type Conso_radius_dailyMinAggregateOutputType = { + id: number | null + username: string | null + date: string | null + download_nuit: string | null + upload_nuit: string | null + download_jour: string | null + upload_jour: string | null +} + +export type Conso_radius_dailyMaxAggregateOutputType = { + id: number | null + username: string | null + date: string | null + download_nuit: string | null + upload_nuit: string | null + download_jour: string | null + upload_jour: string | null +} + +export type Conso_radius_dailyCountAggregateOutputType = { + id: number + username: number + date: number + download_nuit: number + upload_nuit: number + download_jour: number + upload_jour: number + _all: number +} + + +export type Conso_radius_dailyAvgAggregateInputType = { + id?: true +} + +export type Conso_radius_dailySumAggregateInputType = { + id?: true +} + +export type Conso_radius_dailyMinAggregateInputType = { + id?: true + username?: true + date?: true + download_nuit?: true + upload_nuit?: true + download_jour?: true + upload_jour?: true +} + +export type Conso_radius_dailyMaxAggregateInputType = { + id?: true + username?: true + date?: true + download_nuit?: true + upload_nuit?: true + download_jour?: true + upload_jour?: true +} + +export type Conso_radius_dailyCountAggregateInputType = { + id?: true + username?: true + date?: true + download_nuit?: true + upload_nuit?: true + download_jour?: true + upload_jour?: true + _all?: true +} + +export type Conso_radius_dailyAggregateArgs = { + /** + * Filter which conso_radius_daily to aggregate. + */ + where?: Prisma.conso_radius_dailyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_dailies to fetch. + */ + orderBy?: Prisma.conso_radius_dailyOrderByWithRelationInput | Prisma.conso_radius_dailyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.conso_radius_dailyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_dailies 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` conso_radius_dailies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned conso_radius_dailies + **/ + _count?: true | Conso_radius_dailyCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Conso_radius_dailyAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Conso_radius_dailySumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Conso_radius_dailyMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Conso_radius_dailyMaxAggregateInputType +} + +export type GetConso_radius_dailyAggregateType = { + [P in keyof T & keyof AggregateConso_radius_daily]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type conso_radius_dailyGroupByArgs = { + where?: Prisma.conso_radius_dailyWhereInput + orderBy?: Prisma.conso_radius_dailyOrderByWithAggregationInput | Prisma.conso_radius_dailyOrderByWithAggregationInput[] + by: Prisma.Conso_radius_dailyScalarFieldEnum[] | Prisma.Conso_radius_dailyScalarFieldEnum + having?: Prisma.conso_radius_dailyScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Conso_radius_dailyCountAggregateInputType | true + _avg?: Conso_radius_dailyAvgAggregateInputType + _sum?: Conso_radius_dailySumAggregateInputType + _min?: Conso_radius_dailyMinAggregateInputType + _max?: Conso_radius_dailyMaxAggregateInputType +} + +export type Conso_radius_dailyGroupByOutputType = { + id: number + username: string + date: string + download_nuit: string + upload_nuit: string + download_jour: string + upload_jour: string + _count: Conso_radius_dailyCountAggregateOutputType | null + _avg: Conso_radius_dailyAvgAggregateOutputType | null + _sum: Conso_radius_dailySumAggregateOutputType | null + _min: Conso_radius_dailyMinAggregateOutputType | null + _max: Conso_radius_dailyMaxAggregateOutputType | null +} + +type GetConso_radius_dailyGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Conso_radius_dailyGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type conso_radius_dailyWhereInput = { + AND?: Prisma.conso_radius_dailyWhereInput | Prisma.conso_radius_dailyWhereInput[] + OR?: Prisma.conso_radius_dailyWhereInput[] + NOT?: Prisma.conso_radius_dailyWhereInput | Prisma.conso_radius_dailyWhereInput[] + id?: Prisma.IntFilter<"conso_radius_daily"> | number + username?: Prisma.StringFilter<"conso_radius_daily"> | string + date?: Prisma.StringFilter<"conso_radius_daily"> | string + download_nuit?: Prisma.StringFilter<"conso_radius_daily"> | string + upload_nuit?: Prisma.StringFilter<"conso_radius_daily"> | string + download_jour?: Prisma.StringFilter<"conso_radius_daily"> | string + upload_jour?: Prisma.StringFilter<"conso_radius_daily"> | string +} + +export type conso_radius_dailyOrderByWithRelationInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download_nuit?: Prisma.SortOrder + upload_nuit?: Prisma.SortOrder + download_jour?: Prisma.SortOrder + upload_jour?: Prisma.SortOrder + _relevance?: Prisma.conso_radius_dailyOrderByRelevanceInput +} + +export type conso_radius_dailyWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.conso_radius_dailyWhereInput | Prisma.conso_radius_dailyWhereInput[] + OR?: Prisma.conso_radius_dailyWhereInput[] + NOT?: Prisma.conso_radius_dailyWhereInput | Prisma.conso_radius_dailyWhereInput[] + username?: Prisma.StringFilter<"conso_radius_daily"> | string + date?: Prisma.StringFilter<"conso_radius_daily"> | string + download_nuit?: Prisma.StringFilter<"conso_radius_daily"> | string + upload_nuit?: Prisma.StringFilter<"conso_radius_daily"> | string + download_jour?: Prisma.StringFilter<"conso_radius_daily"> | string + upload_jour?: Prisma.StringFilter<"conso_radius_daily"> | string +}, "id"> + +export type conso_radius_dailyOrderByWithAggregationInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download_nuit?: Prisma.SortOrder + upload_nuit?: Prisma.SortOrder + download_jour?: Prisma.SortOrder + upload_jour?: Prisma.SortOrder + _count?: Prisma.conso_radius_dailyCountOrderByAggregateInput + _avg?: Prisma.conso_radius_dailyAvgOrderByAggregateInput + _max?: Prisma.conso_radius_dailyMaxOrderByAggregateInput + _min?: Prisma.conso_radius_dailyMinOrderByAggregateInput + _sum?: Prisma.conso_radius_dailySumOrderByAggregateInput +} + +export type conso_radius_dailyScalarWhereWithAggregatesInput = { + AND?: Prisma.conso_radius_dailyScalarWhereWithAggregatesInput | Prisma.conso_radius_dailyScalarWhereWithAggregatesInput[] + OR?: Prisma.conso_radius_dailyScalarWhereWithAggregatesInput[] + NOT?: Prisma.conso_radius_dailyScalarWhereWithAggregatesInput | Prisma.conso_radius_dailyScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"conso_radius_daily"> | number + username?: Prisma.StringWithAggregatesFilter<"conso_radius_daily"> | string + date?: Prisma.StringWithAggregatesFilter<"conso_radius_daily"> | string + download_nuit?: Prisma.StringWithAggregatesFilter<"conso_radius_daily"> | string + upload_nuit?: Prisma.StringWithAggregatesFilter<"conso_radius_daily"> | string + download_jour?: Prisma.StringWithAggregatesFilter<"conso_radius_daily"> | string + upload_jour?: Prisma.StringWithAggregatesFilter<"conso_radius_daily"> | string +} + +export type conso_radius_dailyCreateInput = { + username: string + date: string + download_nuit: string + upload_nuit: string + download_jour: string + upload_jour: string +} + +export type conso_radius_dailyUncheckedCreateInput = { + id?: number + username: string + date: string + download_nuit: string + upload_nuit: string + download_jour: string + upload_jour: string +} + +export type conso_radius_dailyUpdateInput = { + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download_nuit?: Prisma.StringFieldUpdateOperationsInput | string + upload_nuit?: Prisma.StringFieldUpdateOperationsInput | string + download_jour?: Prisma.StringFieldUpdateOperationsInput | string + upload_jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_dailyUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download_nuit?: Prisma.StringFieldUpdateOperationsInput | string + upload_nuit?: Prisma.StringFieldUpdateOperationsInput | string + download_jour?: Prisma.StringFieldUpdateOperationsInput | string + upload_jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_dailyCreateManyInput = { + id?: number + username: string + date: string + download_nuit: string + upload_nuit: string + download_jour: string + upload_jour: string +} + +export type conso_radius_dailyUpdateManyMutationInput = { + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download_nuit?: Prisma.StringFieldUpdateOperationsInput | string + upload_nuit?: Prisma.StringFieldUpdateOperationsInput | string + download_jour?: Prisma.StringFieldUpdateOperationsInput | string + upload_jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_dailyUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download_nuit?: Prisma.StringFieldUpdateOperationsInput | string + upload_nuit?: Prisma.StringFieldUpdateOperationsInput | string + download_jour?: Prisma.StringFieldUpdateOperationsInput | string + upload_jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_dailyOrderByRelevanceInput = { + fields: Prisma.conso_radius_dailyOrderByRelevanceFieldEnum | Prisma.conso_radius_dailyOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type conso_radius_dailyCountOrderByAggregateInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download_nuit?: Prisma.SortOrder + upload_nuit?: Prisma.SortOrder + download_jour?: Prisma.SortOrder + upload_jour?: Prisma.SortOrder +} + +export type conso_radius_dailyAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type conso_radius_dailyMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download_nuit?: Prisma.SortOrder + upload_nuit?: Prisma.SortOrder + download_jour?: Prisma.SortOrder + upload_jour?: Prisma.SortOrder +} + +export type conso_radius_dailyMinOrderByAggregateInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download_nuit?: Prisma.SortOrder + upload_nuit?: Prisma.SortOrder + download_jour?: Prisma.SortOrder + upload_jour?: Prisma.SortOrder +} + +export type conso_radius_dailySumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type conso_radius_dailySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + username?: boolean + date?: boolean + download_nuit?: boolean + upload_nuit?: boolean + download_jour?: boolean + upload_jour?: boolean +}, ExtArgs["result"]["conso_radius_daily"]> + + + +export type conso_radius_dailySelectScalar = { + id?: boolean + username?: boolean + date?: boolean + download_nuit?: boolean + upload_nuit?: boolean + download_jour?: boolean + upload_jour?: boolean +} + +export type conso_radius_dailyOmit = runtime.Types.Extensions.GetOmit<"id" | "username" | "date" | "download_nuit" | "upload_nuit" | "download_jour" | "upload_jour", ExtArgs["result"]["conso_radius_daily"]> + +export type $conso_radius_dailyPayload = { + name: "conso_radius_daily" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + username: string + date: string + download_nuit: string + upload_nuit: string + download_jour: string + upload_jour: string + }, ExtArgs["result"]["conso_radius_daily"]> + composites: {} +} + +export type conso_radius_dailyGetPayload = runtime.Types.Result.GetResult + +export type conso_radius_dailyCountArgs = + Omit & { + select?: Conso_radius_dailyCountAggregateInputType | true + } + +export interface conso_radius_dailyDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['conso_radius_daily'], meta: { name: 'conso_radius_daily' } } + /** + * Find zero or one Conso_radius_daily that matches the filter. + * @param {conso_radius_dailyFindUniqueArgs} args - Arguments to find a Conso_radius_daily + * @example + * // Get one Conso_radius_daily + * const conso_radius_daily = await prisma.conso_radius_daily.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_dailyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Conso_radius_daily that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {conso_radius_dailyFindUniqueOrThrowArgs} args - Arguments to find a Conso_radius_daily + * @example + * // Get one Conso_radius_daily + * const conso_radius_daily = await prisma.conso_radius_daily.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_dailyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_radius_daily 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 {conso_radius_dailyFindFirstArgs} args - Arguments to find a Conso_radius_daily + * @example + * // Get one Conso_radius_daily + * const conso_radius_daily = await prisma.conso_radius_daily.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_dailyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_radius_daily 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 {conso_radius_dailyFindFirstOrThrowArgs} args - Arguments to find a Conso_radius_daily + * @example + * // Get one Conso_radius_daily + * const conso_radius_daily = await prisma.conso_radius_daily.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_dailyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Conso_radius_dailies 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 {conso_radius_dailyFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Conso_radius_dailies + * const conso_radius_dailies = await prisma.conso_radius_daily.findMany() + * + * // Get first 10 Conso_radius_dailies + * const conso_radius_dailies = await prisma.conso_radius_daily.findMany({ take: 10 }) + * + * // Only select the `id` + * const conso_radius_dailyWithIdOnly = await prisma.conso_radius_daily.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Conso_radius_daily. + * @param {conso_radius_dailyCreateArgs} args - Arguments to create a Conso_radius_daily. + * @example + * // Create one Conso_radius_daily + * const Conso_radius_daily = await prisma.conso_radius_daily.create({ + * data: { + * // ... data to create a Conso_radius_daily + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_dailyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Conso_radius_dailies. + * @param {conso_radius_dailyCreateManyArgs} args - Arguments to create many Conso_radius_dailies. + * @example + * // Create many Conso_radius_dailies + * const conso_radius_daily = await prisma.conso_radius_daily.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Conso_radius_daily. + * @param {conso_radius_dailyDeleteArgs} args - Arguments to delete one Conso_radius_daily. + * @example + * // Delete one Conso_radius_daily + * const Conso_radius_daily = await prisma.conso_radius_daily.delete({ + * where: { + * // ... filter to delete one Conso_radius_daily + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_dailyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Conso_radius_daily. + * @param {conso_radius_dailyUpdateArgs} args - Arguments to update one Conso_radius_daily. + * @example + * // Update one Conso_radius_daily + * const conso_radius_daily = await prisma.conso_radius_daily.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_dailyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Conso_radius_dailies. + * @param {conso_radius_dailyDeleteManyArgs} args - Arguments to filter Conso_radius_dailies to delete. + * @example + * // Delete a few Conso_radius_dailies + * const { count } = await prisma.conso_radius_daily.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Conso_radius_dailies. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radius_dailyUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Conso_radius_dailies + * const conso_radius_daily = await prisma.conso_radius_daily.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Conso_radius_daily. + * @param {conso_radius_dailyUpsertArgs} args - Arguments to update or create a Conso_radius_daily. + * @example + * // Update or create a Conso_radius_daily + * const conso_radius_daily = await prisma.conso_radius_daily.upsert({ + * create: { + * // ... data to create a Conso_radius_daily + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Conso_radius_daily we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_dailyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Conso_radius_dailies. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radius_dailyCountArgs} args - Arguments to filter Conso_radius_dailies to count. + * @example + * // Count the number of Conso_radius_dailies + * const count = await prisma.conso_radius_daily.count({ + * where: { + * // ... the filter for the Conso_radius_dailies 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 Conso_radius_daily. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Conso_radius_dailyAggregateArgs} 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 Conso_radius_daily. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radius_dailyGroupByArgs} 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 conso_radius_dailyGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: conso_radius_dailyGroupByArgs['orderBy'] } + : { orderBy?: conso_radius_dailyGroupByArgs['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 ? GetConso_radius_dailyGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the conso_radius_daily model + */ +readonly fields: conso_radius_dailyFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for conso_radius_daily. + * 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__conso_radius_dailyClient 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 conso_radius_daily model + */ +export interface conso_radius_dailyFieldRefs { + readonly id: Prisma.FieldRef<"conso_radius_daily", 'Int'> + readonly username: Prisma.FieldRef<"conso_radius_daily", 'String'> + readonly date: Prisma.FieldRef<"conso_radius_daily", 'String'> + readonly download_nuit: Prisma.FieldRef<"conso_radius_daily", 'String'> + readonly upload_nuit: Prisma.FieldRef<"conso_radius_daily", 'String'> + readonly download_jour: Prisma.FieldRef<"conso_radius_daily", 'String'> + readonly upload_jour: Prisma.FieldRef<"conso_radius_daily", 'String'> +} + + +// Custom InputTypes +/** + * conso_radius_daily findUnique + */ +export type conso_radius_dailyFindUniqueArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily + */ + select?: Prisma.conso_radius_dailySelect | null + /** + * Omit specific fields from the conso_radius_daily + */ + omit?: Prisma.conso_radius_dailyOmit | null + /** + * Filter, which conso_radius_daily to fetch. + */ + where: Prisma.conso_radius_dailyWhereUniqueInput +} + +/** + * conso_radius_daily findUniqueOrThrow + */ +export type conso_radius_dailyFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily + */ + select?: Prisma.conso_radius_dailySelect | null + /** + * Omit specific fields from the conso_radius_daily + */ + omit?: Prisma.conso_radius_dailyOmit | null + /** + * Filter, which conso_radius_daily to fetch. + */ + where: Prisma.conso_radius_dailyWhereUniqueInput +} + +/** + * conso_radius_daily findFirst + */ +export type conso_radius_dailyFindFirstArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily + */ + select?: Prisma.conso_radius_dailySelect | null + /** + * Omit specific fields from the conso_radius_daily + */ + omit?: Prisma.conso_radius_dailyOmit | null + /** + * Filter, which conso_radius_daily to fetch. + */ + where?: Prisma.conso_radius_dailyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_dailies to fetch. + */ + orderBy?: Prisma.conso_radius_dailyOrderByWithRelationInput | Prisma.conso_radius_dailyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_radius_dailies. + */ + cursor?: Prisma.conso_radius_dailyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_dailies 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` conso_radius_dailies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_radius_dailies. + */ + distinct?: Prisma.Conso_radius_dailyScalarFieldEnum | Prisma.Conso_radius_dailyScalarFieldEnum[] +} + +/** + * conso_radius_daily findFirstOrThrow + */ +export type conso_radius_dailyFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily + */ + select?: Prisma.conso_radius_dailySelect | null + /** + * Omit specific fields from the conso_radius_daily + */ + omit?: Prisma.conso_radius_dailyOmit | null + /** + * Filter, which conso_radius_daily to fetch. + */ + where?: Prisma.conso_radius_dailyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_dailies to fetch. + */ + orderBy?: Prisma.conso_radius_dailyOrderByWithRelationInput | Prisma.conso_radius_dailyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_radius_dailies. + */ + cursor?: Prisma.conso_radius_dailyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_dailies 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` conso_radius_dailies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_radius_dailies. + */ + distinct?: Prisma.Conso_radius_dailyScalarFieldEnum | Prisma.Conso_radius_dailyScalarFieldEnum[] +} + +/** + * conso_radius_daily findMany + */ +export type conso_radius_dailyFindManyArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily + */ + select?: Prisma.conso_radius_dailySelect | null + /** + * Omit specific fields from the conso_radius_daily + */ + omit?: Prisma.conso_radius_dailyOmit | null + /** + * Filter, which conso_radius_dailies to fetch. + */ + where?: Prisma.conso_radius_dailyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_dailies to fetch. + */ + orderBy?: Prisma.conso_radius_dailyOrderByWithRelationInput | Prisma.conso_radius_dailyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing conso_radius_dailies. + */ + cursor?: Prisma.conso_radius_dailyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_dailies 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` conso_radius_dailies. + */ + skip?: number + distinct?: Prisma.Conso_radius_dailyScalarFieldEnum | Prisma.Conso_radius_dailyScalarFieldEnum[] +} + +/** + * conso_radius_daily create + */ +export type conso_radius_dailyCreateArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily + */ + select?: Prisma.conso_radius_dailySelect | null + /** + * Omit specific fields from the conso_radius_daily + */ + omit?: Prisma.conso_radius_dailyOmit | null + /** + * The data needed to create a conso_radius_daily. + */ + data: Prisma.XOR +} + +/** + * conso_radius_daily createMany + */ +export type conso_radius_dailyCreateManyArgs = { + /** + * The data used to create many conso_radius_dailies. + */ + data: Prisma.conso_radius_dailyCreateManyInput | Prisma.conso_radius_dailyCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * conso_radius_daily update + */ +export type conso_radius_dailyUpdateArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily + */ + select?: Prisma.conso_radius_dailySelect | null + /** + * Omit specific fields from the conso_radius_daily + */ + omit?: Prisma.conso_radius_dailyOmit | null + /** + * The data needed to update a conso_radius_daily. + */ + data: Prisma.XOR + /** + * Choose, which conso_radius_daily to update. + */ + where: Prisma.conso_radius_dailyWhereUniqueInput +} + +/** + * conso_radius_daily updateMany + */ +export type conso_radius_dailyUpdateManyArgs = { + /** + * The data used to update conso_radius_dailies. + */ + data: Prisma.XOR + /** + * Filter which conso_radius_dailies to update + */ + where?: Prisma.conso_radius_dailyWhereInput + /** + * Limit how many conso_radius_dailies to update. + */ + limit?: number +} + +/** + * conso_radius_daily upsert + */ +export type conso_radius_dailyUpsertArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily + */ + select?: Prisma.conso_radius_dailySelect | null + /** + * Omit specific fields from the conso_radius_daily + */ + omit?: Prisma.conso_radius_dailyOmit | null + /** + * The filter to search for the conso_radius_daily to update in case it exists. + */ + where: Prisma.conso_radius_dailyWhereUniqueInput + /** + * In case the conso_radius_daily found by the `where` argument doesn't exist, create a new conso_radius_daily with this data. + */ + create: Prisma.XOR + /** + * In case the conso_radius_daily was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * conso_radius_daily delete + */ +export type conso_radius_dailyDeleteArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily + */ + select?: Prisma.conso_radius_dailySelect | null + /** + * Omit specific fields from the conso_radius_daily + */ + omit?: Prisma.conso_radius_dailyOmit | null + /** + * Filter which conso_radius_daily to delete. + */ + where: Prisma.conso_radius_dailyWhereUniqueInput +} + +/** + * conso_radius_daily deleteMany + */ +export type conso_radius_dailyDeleteManyArgs = { + /** + * Filter which conso_radius_dailies to delete + */ + where?: Prisma.conso_radius_dailyWhereInput + /** + * Limit how many conso_radius_dailies to delete. + */ + limit?: number +} + +/** + * conso_radius_daily without action + */ +export type conso_radius_dailyDefaultArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily + */ + select?: Prisma.conso_radius_dailySelect | null + /** + * Omit specific fields from the conso_radius_daily + */ + omit?: Prisma.conso_radius_dailyOmit | null +} diff --git a/prisma/generated/mariadb/models/conso_radius_daily2.ts b/prisma/generated/mariadb/models/conso_radius_daily2.ts new file mode 100644 index 0000000..0fcd1cf --- /dev/null +++ b/prisma/generated/mariadb/models/conso_radius_daily2.ts @@ -0,0 +1,1134 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `conso_radius_daily2` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model conso_radius_daily2 + * + */ +export type conso_radius_daily2Model = runtime.Types.Result.DefaultSelection + +export type AggregateConso_radius_daily2 = { + _count: Conso_radius_daily2CountAggregateOutputType | null + _avg: Conso_radius_daily2AvgAggregateOutputType | null + _sum: Conso_radius_daily2SumAggregateOutputType | null + _min: Conso_radius_daily2MinAggregateOutputType | null + _max: Conso_radius_daily2MaxAggregateOutputType | null +} + +export type Conso_radius_daily2AvgAggregateOutputType = { + id: number | null +} + +export type Conso_radius_daily2SumAggregateOutputType = { + id: bigint | null +} + +export type Conso_radius_daily2MinAggregateOutputType = { + id: bigint | null + username: string | null + date: string | null + download_nuit: string | null + upload_nuit: string | null + download_jour: string | null + upload_jour: string | null +} + +export type Conso_radius_daily2MaxAggregateOutputType = { + id: bigint | null + username: string | null + date: string | null + download_nuit: string | null + upload_nuit: string | null + download_jour: string | null + upload_jour: string | null +} + +export type Conso_radius_daily2CountAggregateOutputType = { + id: number + username: number + date: number + download_nuit: number + upload_nuit: number + download_jour: number + upload_jour: number + _all: number +} + + +export type Conso_radius_daily2AvgAggregateInputType = { + id?: true +} + +export type Conso_radius_daily2SumAggregateInputType = { + id?: true +} + +export type Conso_radius_daily2MinAggregateInputType = { + id?: true + username?: true + date?: true + download_nuit?: true + upload_nuit?: true + download_jour?: true + upload_jour?: true +} + +export type Conso_radius_daily2MaxAggregateInputType = { + id?: true + username?: true + date?: true + download_nuit?: true + upload_nuit?: true + download_jour?: true + upload_jour?: true +} + +export type Conso_radius_daily2CountAggregateInputType = { + id?: true + username?: true + date?: true + download_nuit?: true + upload_nuit?: true + download_jour?: true + upload_jour?: true + _all?: true +} + +export type Conso_radius_daily2AggregateArgs = { + /** + * Filter which conso_radius_daily2 to aggregate. + */ + where?: Prisma.conso_radius_daily2WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_daily2s to fetch. + */ + orderBy?: Prisma.conso_radius_daily2OrderByWithRelationInput | Prisma.conso_radius_daily2OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.conso_radius_daily2WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_daily2s 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` conso_radius_daily2s. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned conso_radius_daily2s + **/ + _count?: true | Conso_radius_daily2CountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Conso_radius_daily2AvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Conso_radius_daily2SumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Conso_radius_daily2MinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Conso_radius_daily2MaxAggregateInputType +} + +export type GetConso_radius_daily2AggregateType = { + [P in keyof T & keyof AggregateConso_radius_daily2]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type conso_radius_daily2GroupByArgs = { + where?: Prisma.conso_radius_daily2WhereInput + orderBy?: Prisma.conso_radius_daily2OrderByWithAggregationInput | Prisma.conso_radius_daily2OrderByWithAggregationInput[] + by: Prisma.Conso_radius_daily2ScalarFieldEnum[] | Prisma.Conso_radius_daily2ScalarFieldEnum + having?: Prisma.conso_radius_daily2ScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Conso_radius_daily2CountAggregateInputType | true + _avg?: Conso_radius_daily2AvgAggregateInputType + _sum?: Conso_radius_daily2SumAggregateInputType + _min?: Conso_radius_daily2MinAggregateInputType + _max?: Conso_radius_daily2MaxAggregateInputType +} + +export type Conso_radius_daily2GroupByOutputType = { + id: bigint + username: string + date: string + download_nuit: string + upload_nuit: string + download_jour: string + upload_jour: string + _count: Conso_radius_daily2CountAggregateOutputType | null + _avg: Conso_radius_daily2AvgAggregateOutputType | null + _sum: Conso_radius_daily2SumAggregateOutputType | null + _min: Conso_radius_daily2MinAggregateOutputType | null + _max: Conso_radius_daily2MaxAggregateOutputType | null +} + +type GetConso_radius_daily2GroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Conso_radius_daily2GroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type conso_radius_daily2WhereInput = { + AND?: Prisma.conso_radius_daily2WhereInput | Prisma.conso_radius_daily2WhereInput[] + OR?: Prisma.conso_radius_daily2WhereInput[] + NOT?: Prisma.conso_radius_daily2WhereInput | Prisma.conso_radius_daily2WhereInput[] + id?: Prisma.BigIntFilter<"conso_radius_daily2"> | bigint | number + username?: Prisma.StringFilter<"conso_radius_daily2"> | string + date?: Prisma.StringFilter<"conso_radius_daily2"> | string + download_nuit?: Prisma.StringFilter<"conso_radius_daily2"> | string + upload_nuit?: Prisma.StringFilter<"conso_radius_daily2"> | string + download_jour?: Prisma.StringFilter<"conso_radius_daily2"> | string + upload_jour?: Prisma.StringFilter<"conso_radius_daily2"> | string +} + +export type conso_radius_daily2OrderByWithRelationInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download_nuit?: Prisma.SortOrder + upload_nuit?: Prisma.SortOrder + download_jour?: Prisma.SortOrder + upload_jour?: Prisma.SortOrder + _relevance?: Prisma.conso_radius_daily2OrderByRelevanceInput +} + +export type conso_radius_daily2WhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.conso_radius_daily2WhereInput | Prisma.conso_radius_daily2WhereInput[] + OR?: Prisma.conso_radius_daily2WhereInput[] + NOT?: Prisma.conso_radius_daily2WhereInput | Prisma.conso_radius_daily2WhereInput[] + username?: Prisma.StringFilter<"conso_radius_daily2"> | string + date?: Prisma.StringFilter<"conso_radius_daily2"> | string + download_nuit?: Prisma.StringFilter<"conso_radius_daily2"> | string + upload_nuit?: Prisma.StringFilter<"conso_radius_daily2"> | string + download_jour?: Prisma.StringFilter<"conso_radius_daily2"> | string + upload_jour?: Prisma.StringFilter<"conso_radius_daily2"> | string +}, "id"> + +export type conso_radius_daily2OrderByWithAggregationInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download_nuit?: Prisma.SortOrder + upload_nuit?: Prisma.SortOrder + download_jour?: Prisma.SortOrder + upload_jour?: Prisma.SortOrder + _count?: Prisma.conso_radius_daily2CountOrderByAggregateInput + _avg?: Prisma.conso_radius_daily2AvgOrderByAggregateInput + _max?: Prisma.conso_radius_daily2MaxOrderByAggregateInput + _min?: Prisma.conso_radius_daily2MinOrderByAggregateInput + _sum?: Prisma.conso_radius_daily2SumOrderByAggregateInput +} + +export type conso_radius_daily2ScalarWhereWithAggregatesInput = { + AND?: Prisma.conso_radius_daily2ScalarWhereWithAggregatesInput | Prisma.conso_radius_daily2ScalarWhereWithAggregatesInput[] + OR?: Prisma.conso_radius_daily2ScalarWhereWithAggregatesInput[] + NOT?: Prisma.conso_radius_daily2ScalarWhereWithAggregatesInput | Prisma.conso_radius_daily2ScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"conso_radius_daily2"> | bigint | number + username?: Prisma.StringWithAggregatesFilter<"conso_radius_daily2"> | string + date?: Prisma.StringWithAggregatesFilter<"conso_radius_daily2"> | string + download_nuit?: Prisma.StringWithAggregatesFilter<"conso_radius_daily2"> | string + upload_nuit?: Prisma.StringWithAggregatesFilter<"conso_radius_daily2"> | string + download_jour?: Prisma.StringWithAggregatesFilter<"conso_radius_daily2"> | string + upload_jour?: Prisma.StringWithAggregatesFilter<"conso_radius_daily2"> | string +} + +export type conso_radius_daily2CreateInput = { + id?: bigint | number + username: string + date: string + download_nuit?: string + upload_nuit?: string + download_jour?: string + upload_jour?: string +} + +export type conso_radius_daily2UncheckedCreateInput = { + id?: bigint | number + username: string + date: string + download_nuit?: string + upload_nuit?: string + download_jour?: string + upload_jour?: string +} + +export type conso_radius_daily2UpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download_nuit?: Prisma.StringFieldUpdateOperationsInput | string + upload_nuit?: Prisma.StringFieldUpdateOperationsInput | string + download_jour?: Prisma.StringFieldUpdateOperationsInput | string + upload_jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_daily2UncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download_nuit?: Prisma.StringFieldUpdateOperationsInput | string + upload_nuit?: Prisma.StringFieldUpdateOperationsInput | string + download_jour?: Prisma.StringFieldUpdateOperationsInput | string + upload_jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_daily2CreateManyInput = { + id?: bigint | number + username: string + date: string + download_nuit?: string + upload_nuit?: string + download_jour?: string + upload_jour?: string +} + +export type conso_radius_daily2UpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download_nuit?: Prisma.StringFieldUpdateOperationsInput | string + upload_nuit?: Prisma.StringFieldUpdateOperationsInput | string + download_jour?: Prisma.StringFieldUpdateOperationsInput | string + upload_jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_daily2UncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download_nuit?: Prisma.StringFieldUpdateOperationsInput | string + upload_nuit?: Prisma.StringFieldUpdateOperationsInput | string + download_jour?: Prisma.StringFieldUpdateOperationsInput | string + upload_jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_daily2OrderByRelevanceInput = { + fields: Prisma.conso_radius_daily2OrderByRelevanceFieldEnum | Prisma.conso_radius_daily2OrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type conso_radius_daily2CountOrderByAggregateInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download_nuit?: Prisma.SortOrder + upload_nuit?: Prisma.SortOrder + download_jour?: Prisma.SortOrder + upload_jour?: Prisma.SortOrder +} + +export type conso_radius_daily2AvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type conso_radius_daily2MaxOrderByAggregateInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download_nuit?: Prisma.SortOrder + upload_nuit?: Prisma.SortOrder + download_jour?: Prisma.SortOrder + upload_jour?: Prisma.SortOrder +} + +export type conso_radius_daily2MinOrderByAggregateInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download_nuit?: Prisma.SortOrder + upload_nuit?: Prisma.SortOrder + download_jour?: Prisma.SortOrder + upload_jour?: Prisma.SortOrder +} + +export type conso_radius_daily2SumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type conso_radius_daily2Select = runtime.Types.Extensions.GetSelect<{ + id?: boolean + username?: boolean + date?: boolean + download_nuit?: boolean + upload_nuit?: boolean + download_jour?: boolean + upload_jour?: boolean +}, ExtArgs["result"]["conso_radius_daily2"]> + + + +export type conso_radius_daily2SelectScalar = { + id?: boolean + username?: boolean + date?: boolean + download_nuit?: boolean + upload_nuit?: boolean + download_jour?: boolean + upload_jour?: boolean +} + +export type conso_radius_daily2Omit = runtime.Types.Extensions.GetOmit<"id" | "username" | "date" | "download_nuit" | "upload_nuit" | "download_jour" | "upload_jour", ExtArgs["result"]["conso_radius_daily2"]> + +export type $conso_radius_daily2Payload = { + name: "conso_radius_daily2" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + username: string + date: string + download_nuit: string + upload_nuit: string + download_jour: string + upload_jour: string + }, ExtArgs["result"]["conso_radius_daily2"]> + composites: {} +} + +export type conso_radius_daily2GetPayload = runtime.Types.Result.GetResult + +export type conso_radius_daily2CountArgs = + Omit & { + select?: Conso_radius_daily2CountAggregateInputType | true + } + +export interface conso_radius_daily2Delegate { + [K: symbol]: { types: Prisma.TypeMap['model']['conso_radius_daily2'], meta: { name: 'conso_radius_daily2' } } + /** + * Find zero or one Conso_radius_daily2 that matches the filter. + * @param {conso_radius_daily2FindUniqueArgs} args - Arguments to find a Conso_radius_daily2 + * @example + * // Get one Conso_radius_daily2 + * const conso_radius_daily2 = await prisma.conso_radius_daily2.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_daily2Client, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Conso_radius_daily2 that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {conso_radius_daily2FindUniqueOrThrowArgs} args - Arguments to find a Conso_radius_daily2 + * @example + * // Get one Conso_radius_daily2 + * const conso_radius_daily2 = await prisma.conso_radius_daily2.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_daily2Client, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_radius_daily2 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 {conso_radius_daily2FindFirstArgs} args - Arguments to find a Conso_radius_daily2 + * @example + * // Get one Conso_radius_daily2 + * const conso_radius_daily2 = await prisma.conso_radius_daily2.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_daily2Client, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_radius_daily2 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 {conso_radius_daily2FindFirstOrThrowArgs} args - Arguments to find a Conso_radius_daily2 + * @example + * // Get one Conso_radius_daily2 + * const conso_radius_daily2 = await prisma.conso_radius_daily2.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_daily2Client, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Conso_radius_daily2s 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 {conso_radius_daily2FindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Conso_radius_daily2s + * const conso_radius_daily2s = await prisma.conso_radius_daily2.findMany() + * + * // Get first 10 Conso_radius_daily2s + * const conso_radius_daily2s = await prisma.conso_radius_daily2.findMany({ take: 10 }) + * + * // Only select the `id` + * const conso_radius_daily2WithIdOnly = await prisma.conso_radius_daily2.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Conso_radius_daily2. + * @param {conso_radius_daily2CreateArgs} args - Arguments to create a Conso_radius_daily2. + * @example + * // Create one Conso_radius_daily2 + * const Conso_radius_daily2 = await prisma.conso_radius_daily2.create({ + * data: { + * // ... data to create a Conso_radius_daily2 + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_daily2Client, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Conso_radius_daily2s. + * @param {conso_radius_daily2CreateManyArgs} args - Arguments to create many Conso_radius_daily2s. + * @example + * // Create many Conso_radius_daily2s + * const conso_radius_daily2 = await prisma.conso_radius_daily2.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Conso_radius_daily2. + * @param {conso_radius_daily2DeleteArgs} args - Arguments to delete one Conso_radius_daily2. + * @example + * // Delete one Conso_radius_daily2 + * const Conso_radius_daily2 = await prisma.conso_radius_daily2.delete({ + * where: { + * // ... filter to delete one Conso_radius_daily2 + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_daily2Client, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Conso_radius_daily2. + * @param {conso_radius_daily2UpdateArgs} args - Arguments to update one Conso_radius_daily2. + * @example + * // Update one Conso_radius_daily2 + * const conso_radius_daily2 = await prisma.conso_radius_daily2.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_daily2Client, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Conso_radius_daily2s. + * @param {conso_radius_daily2DeleteManyArgs} args - Arguments to filter Conso_radius_daily2s to delete. + * @example + * // Delete a few Conso_radius_daily2s + * const { count } = await prisma.conso_radius_daily2.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Conso_radius_daily2s. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radius_daily2UpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Conso_radius_daily2s + * const conso_radius_daily2 = await prisma.conso_radius_daily2.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Conso_radius_daily2. + * @param {conso_radius_daily2UpsertArgs} args - Arguments to update or create a Conso_radius_daily2. + * @example + * // Update or create a Conso_radius_daily2 + * const conso_radius_daily2 = await prisma.conso_radius_daily2.upsert({ + * create: { + * // ... data to create a Conso_radius_daily2 + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Conso_radius_daily2 we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_daily2Client, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Conso_radius_daily2s. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radius_daily2CountArgs} args - Arguments to filter Conso_radius_daily2s to count. + * @example + * // Count the number of Conso_radius_daily2s + * const count = await prisma.conso_radius_daily2.count({ + * where: { + * // ... the filter for the Conso_radius_daily2s 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 Conso_radius_daily2. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Conso_radius_daily2AggregateArgs} 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 Conso_radius_daily2. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radius_daily2GroupByArgs} 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 conso_radius_daily2GroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: conso_radius_daily2GroupByArgs['orderBy'] } + : { orderBy?: conso_radius_daily2GroupByArgs['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 ? GetConso_radius_daily2GroupByPayload : Prisma.PrismaPromise +/** + * Fields of the conso_radius_daily2 model + */ +readonly fields: conso_radius_daily2FieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for conso_radius_daily2. + * 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__conso_radius_daily2Client 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 conso_radius_daily2 model + */ +export interface conso_radius_daily2FieldRefs { + readonly id: Prisma.FieldRef<"conso_radius_daily2", 'BigInt'> + readonly username: Prisma.FieldRef<"conso_radius_daily2", 'String'> + readonly date: Prisma.FieldRef<"conso_radius_daily2", 'String'> + readonly download_nuit: Prisma.FieldRef<"conso_radius_daily2", 'String'> + readonly upload_nuit: Prisma.FieldRef<"conso_radius_daily2", 'String'> + readonly download_jour: Prisma.FieldRef<"conso_radius_daily2", 'String'> + readonly upload_jour: Prisma.FieldRef<"conso_radius_daily2", 'String'> +} + + +// Custom InputTypes +/** + * conso_radius_daily2 findUnique + */ +export type conso_radius_daily2FindUniqueArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily2 + */ + select?: Prisma.conso_radius_daily2Select | null + /** + * Omit specific fields from the conso_radius_daily2 + */ + omit?: Prisma.conso_radius_daily2Omit | null + /** + * Filter, which conso_radius_daily2 to fetch. + */ + where: Prisma.conso_radius_daily2WhereUniqueInput +} + +/** + * conso_radius_daily2 findUniqueOrThrow + */ +export type conso_radius_daily2FindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily2 + */ + select?: Prisma.conso_radius_daily2Select | null + /** + * Omit specific fields from the conso_radius_daily2 + */ + omit?: Prisma.conso_radius_daily2Omit | null + /** + * Filter, which conso_radius_daily2 to fetch. + */ + where: Prisma.conso_radius_daily2WhereUniqueInput +} + +/** + * conso_radius_daily2 findFirst + */ +export type conso_radius_daily2FindFirstArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily2 + */ + select?: Prisma.conso_radius_daily2Select | null + /** + * Omit specific fields from the conso_radius_daily2 + */ + omit?: Prisma.conso_radius_daily2Omit | null + /** + * Filter, which conso_radius_daily2 to fetch. + */ + where?: Prisma.conso_radius_daily2WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_daily2s to fetch. + */ + orderBy?: Prisma.conso_radius_daily2OrderByWithRelationInput | Prisma.conso_radius_daily2OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_radius_daily2s. + */ + cursor?: Prisma.conso_radius_daily2WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_daily2s 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` conso_radius_daily2s. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_radius_daily2s. + */ + distinct?: Prisma.Conso_radius_daily2ScalarFieldEnum | Prisma.Conso_radius_daily2ScalarFieldEnum[] +} + +/** + * conso_radius_daily2 findFirstOrThrow + */ +export type conso_radius_daily2FindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily2 + */ + select?: Prisma.conso_radius_daily2Select | null + /** + * Omit specific fields from the conso_radius_daily2 + */ + omit?: Prisma.conso_radius_daily2Omit | null + /** + * Filter, which conso_radius_daily2 to fetch. + */ + where?: Prisma.conso_radius_daily2WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_daily2s to fetch. + */ + orderBy?: Prisma.conso_radius_daily2OrderByWithRelationInput | Prisma.conso_radius_daily2OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_radius_daily2s. + */ + cursor?: Prisma.conso_radius_daily2WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_daily2s 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` conso_radius_daily2s. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_radius_daily2s. + */ + distinct?: Prisma.Conso_radius_daily2ScalarFieldEnum | Prisma.Conso_radius_daily2ScalarFieldEnum[] +} + +/** + * conso_radius_daily2 findMany + */ +export type conso_radius_daily2FindManyArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily2 + */ + select?: Prisma.conso_radius_daily2Select | null + /** + * Omit specific fields from the conso_radius_daily2 + */ + omit?: Prisma.conso_radius_daily2Omit | null + /** + * Filter, which conso_radius_daily2s to fetch. + */ + where?: Prisma.conso_radius_daily2WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_daily2s to fetch. + */ + orderBy?: Prisma.conso_radius_daily2OrderByWithRelationInput | Prisma.conso_radius_daily2OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing conso_radius_daily2s. + */ + cursor?: Prisma.conso_radius_daily2WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_daily2s 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` conso_radius_daily2s. + */ + skip?: number + distinct?: Prisma.Conso_radius_daily2ScalarFieldEnum | Prisma.Conso_radius_daily2ScalarFieldEnum[] +} + +/** + * conso_radius_daily2 create + */ +export type conso_radius_daily2CreateArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily2 + */ + select?: Prisma.conso_radius_daily2Select | null + /** + * Omit specific fields from the conso_radius_daily2 + */ + omit?: Prisma.conso_radius_daily2Omit | null + /** + * The data needed to create a conso_radius_daily2. + */ + data: Prisma.XOR +} + +/** + * conso_radius_daily2 createMany + */ +export type conso_radius_daily2CreateManyArgs = { + /** + * The data used to create many conso_radius_daily2s. + */ + data: Prisma.conso_radius_daily2CreateManyInput | Prisma.conso_radius_daily2CreateManyInput[] + skipDuplicates?: boolean +} + +/** + * conso_radius_daily2 update + */ +export type conso_radius_daily2UpdateArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily2 + */ + select?: Prisma.conso_radius_daily2Select | null + /** + * Omit specific fields from the conso_radius_daily2 + */ + omit?: Prisma.conso_radius_daily2Omit | null + /** + * The data needed to update a conso_radius_daily2. + */ + data: Prisma.XOR + /** + * Choose, which conso_radius_daily2 to update. + */ + where: Prisma.conso_radius_daily2WhereUniqueInput +} + +/** + * conso_radius_daily2 updateMany + */ +export type conso_radius_daily2UpdateManyArgs = { + /** + * The data used to update conso_radius_daily2s. + */ + data: Prisma.XOR + /** + * Filter which conso_radius_daily2s to update + */ + where?: Prisma.conso_radius_daily2WhereInput + /** + * Limit how many conso_radius_daily2s to update. + */ + limit?: number +} + +/** + * conso_radius_daily2 upsert + */ +export type conso_radius_daily2UpsertArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily2 + */ + select?: Prisma.conso_radius_daily2Select | null + /** + * Omit specific fields from the conso_radius_daily2 + */ + omit?: Prisma.conso_radius_daily2Omit | null + /** + * The filter to search for the conso_radius_daily2 to update in case it exists. + */ + where: Prisma.conso_radius_daily2WhereUniqueInput + /** + * In case the conso_radius_daily2 found by the `where` argument doesn't exist, create a new conso_radius_daily2 with this data. + */ + create: Prisma.XOR + /** + * In case the conso_radius_daily2 was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * conso_radius_daily2 delete + */ +export type conso_radius_daily2DeleteArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily2 + */ + select?: Prisma.conso_radius_daily2Select | null + /** + * Omit specific fields from the conso_radius_daily2 + */ + omit?: Prisma.conso_radius_daily2Omit | null + /** + * Filter which conso_radius_daily2 to delete. + */ + where: Prisma.conso_radius_daily2WhereUniqueInput +} + +/** + * conso_radius_daily2 deleteMany + */ +export type conso_radius_daily2DeleteManyArgs = { + /** + * Filter which conso_radius_daily2s to delete + */ + where?: Prisma.conso_radius_daily2WhereInput + /** + * Limit how many conso_radius_daily2s to delete. + */ + limit?: number +} + +/** + * conso_radius_daily2 without action + */ +export type conso_radius_daily2DefaultArgs = { + /** + * Select specific fields to fetch from the conso_radius_daily2 + */ + select?: Prisma.conso_radius_daily2Select | null + /** + * Omit specific fields from the conso_radius_daily2 + */ + omit?: Prisma.conso_radius_daily2Omit | null +} diff --git a/prisma/generated/mariadb/models/conso_radius_hourly.ts b/prisma/generated/mariadb/models/conso_radius_hourly.ts new file mode 100644 index 0000000..876aaaf --- /dev/null +++ b/prisma/generated/mariadb/models/conso_radius_hourly.ts @@ -0,0 +1,1079 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `conso_radius_hourly` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model conso_radius_hourly + * + */ +export type conso_radius_hourlyModel = runtime.Types.Result.DefaultSelection + +export type AggregateConso_radius_hourly = { + _count: Conso_radius_hourlyCountAggregateOutputType | null + _avg: Conso_radius_hourlyAvgAggregateOutputType | null + _sum: Conso_radius_hourlySumAggregateOutputType | null + _min: Conso_radius_hourlyMinAggregateOutputType | null + _max: Conso_radius_hourlyMaxAggregateOutputType | null +} + +export type Conso_radius_hourlyAvgAggregateOutputType = { + id: number | null +} + +export type Conso_radius_hourlySumAggregateOutputType = { + id: number | null +} + +export type Conso_radius_hourlyMinAggregateOutputType = { + id: number | null + username: string | null + date: string | null + download: string | null + upload: string | null +} + +export type Conso_radius_hourlyMaxAggregateOutputType = { + id: number | null + username: string | null + date: string | null + download: string | null + upload: string | null +} + +export type Conso_radius_hourlyCountAggregateOutputType = { + id: number + username: number + date: number + download: number + upload: number + _all: number +} + + +export type Conso_radius_hourlyAvgAggregateInputType = { + id?: true +} + +export type Conso_radius_hourlySumAggregateInputType = { + id?: true +} + +export type Conso_radius_hourlyMinAggregateInputType = { + id?: true + username?: true + date?: true + download?: true + upload?: true +} + +export type Conso_radius_hourlyMaxAggregateInputType = { + id?: true + username?: true + date?: true + download?: true + upload?: true +} + +export type Conso_radius_hourlyCountAggregateInputType = { + id?: true + username?: true + date?: true + download?: true + upload?: true + _all?: true +} + +export type Conso_radius_hourlyAggregateArgs = { + /** + * Filter which conso_radius_hourly to aggregate. + */ + where?: Prisma.conso_radius_hourlyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_hourlies to fetch. + */ + orderBy?: Prisma.conso_radius_hourlyOrderByWithRelationInput | Prisma.conso_radius_hourlyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.conso_radius_hourlyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_hourlies 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` conso_radius_hourlies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned conso_radius_hourlies + **/ + _count?: true | Conso_radius_hourlyCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Conso_radius_hourlyAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Conso_radius_hourlySumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Conso_radius_hourlyMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Conso_radius_hourlyMaxAggregateInputType +} + +export type GetConso_radius_hourlyAggregateType = { + [P in keyof T & keyof AggregateConso_radius_hourly]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type conso_radius_hourlyGroupByArgs = { + where?: Prisma.conso_radius_hourlyWhereInput + orderBy?: Prisma.conso_radius_hourlyOrderByWithAggregationInput | Prisma.conso_radius_hourlyOrderByWithAggregationInput[] + by: Prisma.Conso_radius_hourlyScalarFieldEnum[] | Prisma.Conso_radius_hourlyScalarFieldEnum + having?: Prisma.conso_radius_hourlyScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Conso_radius_hourlyCountAggregateInputType | true + _avg?: Conso_radius_hourlyAvgAggregateInputType + _sum?: Conso_radius_hourlySumAggregateInputType + _min?: Conso_radius_hourlyMinAggregateInputType + _max?: Conso_radius_hourlyMaxAggregateInputType +} + +export type Conso_radius_hourlyGroupByOutputType = { + id: number + username: string + date: string + download: string + upload: string + _count: Conso_radius_hourlyCountAggregateOutputType | null + _avg: Conso_radius_hourlyAvgAggregateOutputType | null + _sum: Conso_radius_hourlySumAggregateOutputType | null + _min: Conso_radius_hourlyMinAggregateOutputType | null + _max: Conso_radius_hourlyMaxAggregateOutputType | null +} + +type GetConso_radius_hourlyGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Conso_radius_hourlyGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type conso_radius_hourlyWhereInput = { + AND?: Prisma.conso_radius_hourlyWhereInput | Prisma.conso_radius_hourlyWhereInput[] + OR?: Prisma.conso_radius_hourlyWhereInput[] + NOT?: Prisma.conso_radius_hourlyWhereInput | Prisma.conso_radius_hourlyWhereInput[] + id?: Prisma.IntFilter<"conso_radius_hourly"> | number + username?: Prisma.StringFilter<"conso_radius_hourly"> | string + date?: Prisma.StringFilter<"conso_radius_hourly"> | string + download?: Prisma.StringFilter<"conso_radius_hourly"> | string + upload?: Prisma.StringFilter<"conso_radius_hourly"> | string +} + +export type conso_radius_hourlyOrderByWithRelationInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download?: Prisma.SortOrder + upload?: Prisma.SortOrder + _relevance?: Prisma.conso_radius_hourlyOrderByRelevanceInput +} + +export type conso_radius_hourlyWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.conso_radius_hourlyWhereInput | Prisma.conso_radius_hourlyWhereInput[] + OR?: Prisma.conso_radius_hourlyWhereInput[] + NOT?: Prisma.conso_radius_hourlyWhereInput | Prisma.conso_radius_hourlyWhereInput[] + username?: Prisma.StringFilter<"conso_radius_hourly"> | string + date?: Prisma.StringFilter<"conso_radius_hourly"> | string + download?: Prisma.StringFilter<"conso_radius_hourly"> | string + upload?: Prisma.StringFilter<"conso_radius_hourly"> | string +}, "id"> + +export type conso_radius_hourlyOrderByWithAggregationInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download?: Prisma.SortOrder + upload?: Prisma.SortOrder + _count?: Prisma.conso_radius_hourlyCountOrderByAggregateInput + _avg?: Prisma.conso_radius_hourlyAvgOrderByAggregateInput + _max?: Prisma.conso_radius_hourlyMaxOrderByAggregateInput + _min?: Prisma.conso_radius_hourlyMinOrderByAggregateInput + _sum?: Prisma.conso_radius_hourlySumOrderByAggregateInput +} + +export type conso_radius_hourlyScalarWhereWithAggregatesInput = { + AND?: Prisma.conso_radius_hourlyScalarWhereWithAggregatesInput | Prisma.conso_radius_hourlyScalarWhereWithAggregatesInput[] + OR?: Prisma.conso_radius_hourlyScalarWhereWithAggregatesInput[] + NOT?: Prisma.conso_radius_hourlyScalarWhereWithAggregatesInput | Prisma.conso_radius_hourlyScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"conso_radius_hourly"> | number + username?: Prisma.StringWithAggregatesFilter<"conso_radius_hourly"> | string + date?: Prisma.StringWithAggregatesFilter<"conso_radius_hourly"> | string + download?: Prisma.StringWithAggregatesFilter<"conso_radius_hourly"> | string + upload?: Prisma.StringWithAggregatesFilter<"conso_radius_hourly"> | string +} + +export type conso_radius_hourlyCreateInput = { + username: string + date: string + download: string + upload: string +} + +export type conso_radius_hourlyUncheckedCreateInput = { + id?: number + username: string + date: string + download: string + upload: string +} + +export type conso_radius_hourlyUpdateInput = { + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download?: Prisma.StringFieldUpdateOperationsInput | string + upload?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_hourlyUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download?: Prisma.StringFieldUpdateOperationsInput | string + upload?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_hourlyCreateManyInput = { + id?: number + username: string + date: string + download: string + upload: string +} + +export type conso_radius_hourlyUpdateManyMutationInput = { + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download?: Prisma.StringFieldUpdateOperationsInput | string + upload?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_hourlyUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + download?: Prisma.StringFieldUpdateOperationsInput | string + upload?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_hourlyOrderByRelevanceInput = { + fields: Prisma.conso_radius_hourlyOrderByRelevanceFieldEnum | Prisma.conso_radius_hourlyOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type conso_radius_hourlyCountOrderByAggregateInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download?: Prisma.SortOrder + upload?: Prisma.SortOrder +} + +export type conso_radius_hourlyAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type conso_radius_hourlyMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download?: Prisma.SortOrder + upload?: Prisma.SortOrder +} + +export type conso_radius_hourlyMinOrderByAggregateInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + date?: Prisma.SortOrder + download?: Prisma.SortOrder + upload?: Prisma.SortOrder +} + +export type conso_radius_hourlySumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type conso_radius_hourlySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + username?: boolean + date?: boolean + download?: boolean + upload?: boolean +}, ExtArgs["result"]["conso_radius_hourly"]> + + + +export type conso_radius_hourlySelectScalar = { + id?: boolean + username?: boolean + date?: boolean + download?: boolean + upload?: boolean +} + +export type conso_radius_hourlyOmit = runtime.Types.Extensions.GetOmit<"id" | "username" | "date" | "download" | "upload", ExtArgs["result"]["conso_radius_hourly"]> + +export type $conso_radius_hourlyPayload = { + name: "conso_radius_hourly" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + username: string + date: string + download: string + upload: string + }, ExtArgs["result"]["conso_radius_hourly"]> + composites: {} +} + +export type conso_radius_hourlyGetPayload = runtime.Types.Result.GetResult + +export type conso_radius_hourlyCountArgs = + Omit & { + select?: Conso_radius_hourlyCountAggregateInputType | true + } + +export interface conso_radius_hourlyDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['conso_radius_hourly'], meta: { name: 'conso_radius_hourly' } } + /** + * Find zero or one Conso_radius_hourly that matches the filter. + * @param {conso_radius_hourlyFindUniqueArgs} args - Arguments to find a Conso_radius_hourly + * @example + * // Get one Conso_radius_hourly + * const conso_radius_hourly = await prisma.conso_radius_hourly.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_hourlyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Conso_radius_hourly that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {conso_radius_hourlyFindUniqueOrThrowArgs} args - Arguments to find a Conso_radius_hourly + * @example + * // Get one Conso_radius_hourly + * const conso_radius_hourly = await prisma.conso_radius_hourly.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_hourlyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_radius_hourly 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 {conso_radius_hourlyFindFirstArgs} args - Arguments to find a Conso_radius_hourly + * @example + * // Get one Conso_radius_hourly + * const conso_radius_hourly = await prisma.conso_radius_hourly.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_hourlyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_radius_hourly 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 {conso_radius_hourlyFindFirstOrThrowArgs} args - Arguments to find a Conso_radius_hourly + * @example + * // Get one Conso_radius_hourly + * const conso_radius_hourly = await prisma.conso_radius_hourly.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_hourlyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Conso_radius_hourlies 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 {conso_radius_hourlyFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Conso_radius_hourlies + * const conso_radius_hourlies = await prisma.conso_radius_hourly.findMany() + * + * // Get first 10 Conso_radius_hourlies + * const conso_radius_hourlies = await prisma.conso_radius_hourly.findMany({ take: 10 }) + * + * // Only select the `id` + * const conso_radius_hourlyWithIdOnly = await prisma.conso_radius_hourly.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Conso_radius_hourly. + * @param {conso_radius_hourlyCreateArgs} args - Arguments to create a Conso_radius_hourly. + * @example + * // Create one Conso_radius_hourly + * const Conso_radius_hourly = await prisma.conso_radius_hourly.create({ + * data: { + * // ... data to create a Conso_radius_hourly + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_hourlyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Conso_radius_hourlies. + * @param {conso_radius_hourlyCreateManyArgs} args - Arguments to create many Conso_radius_hourlies. + * @example + * // Create many Conso_radius_hourlies + * const conso_radius_hourly = await prisma.conso_radius_hourly.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Conso_radius_hourly. + * @param {conso_radius_hourlyDeleteArgs} args - Arguments to delete one Conso_radius_hourly. + * @example + * // Delete one Conso_radius_hourly + * const Conso_radius_hourly = await prisma.conso_radius_hourly.delete({ + * where: { + * // ... filter to delete one Conso_radius_hourly + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_hourlyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Conso_radius_hourly. + * @param {conso_radius_hourlyUpdateArgs} args - Arguments to update one Conso_radius_hourly. + * @example + * // Update one Conso_radius_hourly + * const conso_radius_hourly = await prisma.conso_radius_hourly.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_hourlyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Conso_radius_hourlies. + * @param {conso_radius_hourlyDeleteManyArgs} args - Arguments to filter Conso_radius_hourlies to delete. + * @example + * // Delete a few Conso_radius_hourlies + * const { count } = await prisma.conso_radius_hourly.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Conso_radius_hourlies. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radius_hourlyUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Conso_radius_hourlies + * const conso_radius_hourly = await prisma.conso_radius_hourly.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Conso_radius_hourly. + * @param {conso_radius_hourlyUpsertArgs} args - Arguments to update or create a Conso_radius_hourly. + * @example + * // Update or create a Conso_radius_hourly + * const conso_radius_hourly = await prisma.conso_radius_hourly.upsert({ + * create: { + * // ... data to create a Conso_radius_hourly + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Conso_radius_hourly we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_hourlyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Conso_radius_hourlies. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radius_hourlyCountArgs} args - Arguments to filter Conso_radius_hourlies to count. + * @example + * // Count the number of Conso_radius_hourlies + * const count = await prisma.conso_radius_hourly.count({ + * where: { + * // ... the filter for the Conso_radius_hourlies 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 Conso_radius_hourly. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Conso_radius_hourlyAggregateArgs} 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 Conso_radius_hourly. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radius_hourlyGroupByArgs} 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 conso_radius_hourlyGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: conso_radius_hourlyGroupByArgs['orderBy'] } + : { orderBy?: conso_radius_hourlyGroupByArgs['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 ? GetConso_radius_hourlyGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the conso_radius_hourly model + */ +readonly fields: conso_radius_hourlyFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for conso_radius_hourly. + * 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__conso_radius_hourlyClient 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 conso_radius_hourly model + */ +export interface conso_radius_hourlyFieldRefs { + readonly id: Prisma.FieldRef<"conso_radius_hourly", 'Int'> + readonly username: Prisma.FieldRef<"conso_radius_hourly", 'String'> + readonly date: Prisma.FieldRef<"conso_radius_hourly", 'String'> + readonly download: Prisma.FieldRef<"conso_radius_hourly", 'String'> + readonly upload: Prisma.FieldRef<"conso_radius_hourly", 'String'> +} + + +// Custom InputTypes +/** + * conso_radius_hourly findUnique + */ +export type conso_radius_hourlyFindUniqueArgs = { + /** + * Select specific fields to fetch from the conso_radius_hourly + */ + select?: Prisma.conso_radius_hourlySelect | null + /** + * Omit specific fields from the conso_radius_hourly + */ + omit?: Prisma.conso_radius_hourlyOmit | null + /** + * Filter, which conso_radius_hourly to fetch. + */ + where: Prisma.conso_radius_hourlyWhereUniqueInput +} + +/** + * conso_radius_hourly findUniqueOrThrow + */ +export type conso_radius_hourlyFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_radius_hourly + */ + select?: Prisma.conso_radius_hourlySelect | null + /** + * Omit specific fields from the conso_radius_hourly + */ + omit?: Prisma.conso_radius_hourlyOmit | null + /** + * Filter, which conso_radius_hourly to fetch. + */ + where: Prisma.conso_radius_hourlyWhereUniqueInput +} + +/** + * conso_radius_hourly findFirst + */ +export type conso_radius_hourlyFindFirstArgs = { + /** + * Select specific fields to fetch from the conso_radius_hourly + */ + select?: Prisma.conso_radius_hourlySelect | null + /** + * Omit specific fields from the conso_radius_hourly + */ + omit?: Prisma.conso_radius_hourlyOmit | null + /** + * Filter, which conso_radius_hourly to fetch. + */ + where?: Prisma.conso_radius_hourlyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_hourlies to fetch. + */ + orderBy?: Prisma.conso_radius_hourlyOrderByWithRelationInput | Prisma.conso_radius_hourlyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_radius_hourlies. + */ + cursor?: Prisma.conso_radius_hourlyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_hourlies 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` conso_radius_hourlies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_radius_hourlies. + */ + distinct?: Prisma.Conso_radius_hourlyScalarFieldEnum | Prisma.Conso_radius_hourlyScalarFieldEnum[] +} + +/** + * conso_radius_hourly findFirstOrThrow + */ +export type conso_radius_hourlyFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_radius_hourly + */ + select?: Prisma.conso_radius_hourlySelect | null + /** + * Omit specific fields from the conso_radius_hourly + */ + omit?: Prisma.conso_radius_hourlyOmit | null + /** + * Filter, which conso_radius_hourly to fetch. + */ + where?: Prisma.conso_radius_hourlyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_hourlies to fetch. + */ + orderBy?: Prisma.conso_radius_hourlyOrderByWithRelationInput | Prisma.conso_radius_hourlyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_radius_hourlies. + */ + cursor?: Prisma.conso_radius_hourlyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_hourlies 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` conso_radius_hourlies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_radius_hourlies. + */ + distinct?: Prisma.Conso_radius_hourlyScalarFieldEnum | Prisma.Conso_radius_hourlyScalarFieldEnum[] +} + +/** + * conso_radius_hourly findMany + */ +export type conso_radius_hourlyFindManyArgs = { + /** + * Select specific fields to fetch from the conso_radius_hourly + */ + select?: Prisma.conso_radius_hourlySelect | null + /** + * Omit specific fields from the conso_radius_hourly + */ + omit?: Prisma.conso_radius_hourlyOmit | null + /** + * Filter, which conso_radius_hourlies to fetch. + */ + where?: Prisma.conso_radius_hourlyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_hourlies to fetch. + */ + orderBy?: Prisma.conso_radius_hourlyOrderByWithRelationInput | Prisma.conso_radius_hourlyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing conso_radius_hourlies. + */ + cursor?: Prisma.conso_radius_hourlyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_hourlies 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` conso_radius_hourlies. + */ + skip?: number + distinct?: Prisma.Conso_radius_hourlyScalarFieldEnum | Prisma.Conso_radius_hourlyScalarFieldEnum[] +} + +/** + * conso_radius_hourly create + */ +export type conso_radius_hourlyCreateArgs = { + /** + * Select specific fields to fetch from the conso_radius_hourly + */ + select?: Prisma.conso_radius_hourlySelect | null + /** + * Omit specific fields from the conso_radius_hourly + */ + omit?: Prisma.conso_radius_hourlyOmit | null + /** + * The data needed to create a conso_radius_hourly. + */ + data: Prisma.XOR +} + +/** + * conso_radius_hourly createMany + */ +export type conso_radius_hourlyCreateManyArgs = { + /** + * The data used to create many conso_radius_hourlies. + */ + data: Prisma.conso_radius_hourlyCreateManyInput | Prisma.conso_radius_hourlyCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * conso_radius_hourly update + */ +export type conso_radius_hourlyUpdateArgs = { + /** + * Select specific fields to fetch from the conso_radius_hourly + */ + select?: Prisma.conso_radius_hourlySelect | null + /** + * Omit specific fields from the conso_radius_hourly + */ + omit?: Prisma.conso_radius_hourlyOmit | null + /** + * The data needed to update a conso_radius_hourly. + */ + data: Prisma.XOR + /** + * Choose, which conso_radius_hourly to update. + */ + where: Prisma.conso_radius_hourlyWhereUniqueInput +} + +/** + * conso_radius_hourly updateMany + */ +export type conso_radius_hourlyUpdateManyArgs = { + /** + * The data used to update conso_radius_hourlies. + */ + data: Prisma.XOR + /** + * Filter which conso_radius_hourlies to update + */ + where?: Prisma.conso_radius_hourlyWhereInput + /** + * Limit how many conso_radius_hourlies to update. + */ + limit?: number +} + +/** + * conso_radius_hourly upsert + */ +export type conso_radius_hourlyUpsertArgs = { + /** + * Select specific fields to fetch from the conso_radius_hourly + */ + select?: Prisma.conso_radius_hourlySelect | null + /** + * Omit specific fields from the conso_radius_hourly + */ + omit?: Prisma.conso_radius_hourlyOmit | null + /** + * The filter to search for the conso_radius_hourly to update in case it exists. + */ + where: Prisma.conso_radius_hourlyWhereUniqueInput + /** + * In case the conso_radius_hourly found by the `where` argument doesn't exist, create a new conso_radius_hourly with this data. + */ + create: Prisma.XOR + /** + * In case the conso_radius_hourly was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * conso_radius_hourly delete + */ +export type conso_radius_hourlyDeleteArgs = { + /** + * Select specific fields to fetch from the conso_radius_hourly + */ + select?: Prisma.conso_radius_hourlySelect | null + /** + * Omit specific fields from the conso_radius_hourly + */ + omit?: Prisma.conso_radius_hourlyOmit | null + /** + * Filter which conso_radius_hourly to delete. + */ + where: Prisma.conso_radius_hourlyWhereUniqueInput +} + +/** + * conso_radius_hourly deleteMany + */ +export type conso_radius_hourlyDeleteManyArgs = { + /** + * Filter which conso_radius_hourlies to delete + */ + where?: Prisma.conso_radius_hourlyWhereInput + /** + * Limit how many conso_radius_hourlies to delete. + */ + limit?: number +} + +/** + * conso_radius_hourly without action + */ +export type conso_radius_hourlyDefaultArgs = { + /** + * Select specific fields to fetch from the conso_radius_hourly + */ + select?: Prisma.conso_radius_hourlySelect | null + /** + * Omit specific fields from the conso_radius_hourly + */ + omit?: Prisma.conso_radius_hourlyOmit | null +} diff --git a/prisma/generated/mariadb/models/conso_radius_monthly.ts b/prisma/generated/mariadb/models/conso_radius_monthly.ts new file mode 100644 index 0000000..bb97136 --- /dev/null +++ b/prisma/generated/mariadb/models/conso_radius_monthly.ts @@ -0,0 +1,1079 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `conso_radius_monthly` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model conso_radius_monthly + * + */ +export type conso_radius_monthlyModel = runtime.Types.Result.DefaultSelection + +export type AggregateConso_radius_monthly = { + _count: Conso_radius_monthlyCountAggregateOutputType | null + _avg: Conso_radius_monthlyAvgAggregateOutputType | null + _sum: Conso_radius_monthlySumAggregateOutputType | null + _min: Conso_radius_monthlyMinAggregateOutputType | null + _max: Conso_radius_monthlyMaxAggregateOutputType | null +} + +export type Conso_radius_monthlyAvgAggregateOutputType = { + id: number | null +} + +export type Conso_radius_monthlySumAggregateOutputType = { + id: number | null +} + +export type Conso_radius_monthlyMinAggregateOutputType = { + id: number | null + date: string | null + username: string | null + nuit: string | null + jour: string | null +} + +export type Conso_radius_monthlyMaxAggregateOutputType = { + id: number | null + date: string | null + username: string | null + nuit: string | null + jour: string | null +} + +export type Conso_radius_monthlyCountAggregateOutputType = { + id: number + date: number + username: number + nuit: number + jour: number + _all: number +} + + +export type Conso_radius_monthlyAvgAggregateInputType = { + id?: true +} + +export type Conso_radius_monthlySumAggregateInputType = { + id?: true +} + +export type Conso_radius_monthlyMinAggregateInputType = { + id?: true + date?: true + username?: true + nuit?: true + jour?: true +} + +export type Conso_radius_monthlyMaxAggregateInputType = { + id?: true + date?: true + username?: true + nuit?: true + jour?: true +} + +export type Conso_radius_monthlyCountAggregateInputType = { + id?: true + date?: true + username?: true + nuit?: true + jour?: true + _all?: true +} + +export type Conso_radius_monthlyAggregateArgs = { + /** + * Filter which conso_radius_monthly to aggregate. + */ + where?: Prisma.conso_radius_monthlyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_monthlies to fetch. + */ + orderBy?: Prisma.conso_radius_monthlyOrderByWithRelationInput | Prisma.conso_radius_monthlyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.conso_radius_monthlyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_monthlies 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` conso_radius_monthlies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned conso_radius_monthlies + **/ + _count?: true | Conso_radius_monthlyCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Conso_radius_monthlyAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Conso_radius_monthlySumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Conso_radius_monthlyMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Conso_radius_monthlyMaxAggregateInputType +} + +export type GetConso_radius_monthlyAggregateType = { + [P in keyof T & keyof AggregateConso_radius_monthly]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type conso_radius_monthlyGroupByArgs = { + where?: Prisma.conso_radius_monthlyWhereInput + orderBy?: Prisma.conso_radius_monthlyOrderByWithAggregationInput | Prisma.conso_radius_monthlyOrderByWithAggregationInput[] + by: Prisma.Conso_radius_monthlyScalarFieldEnum[] | Prisma.Conso_radius_monthlyScalarFieldEnum + having?: Prisma.conso_radius_monthlyScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Conso_radius_monthlyCountAggregateInputType | true + _avg?: Conso_radius_monthlyAvgAggregateInputType + _sum?: Conso_radius_monthlySumAggregateInputType + _min?: Conso_radius_monthlyMinAggregateInputType + _max?: Conso_radius_monthlyMaxAggregateInputType +} + +export type Conso_radius_monthlyGroupByOutputType = { + id: number + date: string + username: string + nuit: string + jour: string + _count: Conso_radius_monthlyCountAggregateOutputType | null + _avg: Conso_radius_monthlyAvgAggregateOutputType | null + _sum: Conso_radius_monthlySumAggregateOutputType | null + _min: Conso_radius_monthlyMinAggregateOutputType | null + _max: Conso_radius_monthlyMaxAggregateOutputType | null +} + +type GetConso_radius_monthlyGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Conso_radius_monthlyGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type conso_radius_monthlyWhereInput = { + AND?: Prisma.conso_radius_monthlyWhereInput | Prisma.conso_radius_monthlyWhereInput[] + OR?: Prisma.conso_radius_monthlyWhereInput[] + NOT?: Prisma.conso_radius_monthlyWhereInput | Prisma.conso_radius_monthlyWhereInput[] + id?: Prisma.IntFilter<"conso_radius_monthly"> | number + date?: Prisma.StringFilter<"conso_radius_monthly"> | string + username?: Prisma.StringFilter<"conso_radius_monthly"> | string + nuit?: Prisma.StringFilter<"conso_radius_monthly"> | string + jour?: Prisma.StringFilter<"conso_radius_monthly"> | string +} + +export type conso_radius_monthlyOrderByWithRelationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + username?: Prisma.SortOrder + nuit?: Prisma.SortOrder + jour?: Prisma.SortOrder + _relevance?: Prisma.conso_radius_monthlyOrderByRelevanceInput +} + +export type conso_radius_monthlyWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.conso_radius_monthlyWhereInput | Prisma.conso_radius_monthlyWhereInput[] + OR?: Prisma.conso_radius_monthlyWhereInput[] + NOT?: Prisma.conso_radius_monthlyWhereInput | Prisma.conso_radius_monthlyWhereInput[] + date?: Prisma.StringFilter<"conso_radius_monthly"> | string + username?: Prisma.StringFilter<"conso_radius_monthly"> | string + nuit?: Prisma.StringFilter<"conso_radius_monthly"> | string + jour?: Prisma.StringFilter<"conso_radius_monthly"> | string +}, "id"> + +export type conso_radius_monthlyOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + username?: Prisma.SortOrder + nuit?: Prisma.SortOrder + jour?: Prisma.SortOrder + _count?: Prisma.conso_radius_monthlyCountOrderByAggregateInput + _avg?: Prisma.conso_radius_monthlyAvgOrderByAggregateInput + _max?: Prisma.conso_radius_monthlyMaxOrderByAggregateInput + _min?: Prisma.conso_radius_monthlyMinOrderByAggregateInput + _sum?: Prisma.conso_radius_monthlySumOrderByAggregateInput +} + +export type conso_radius_monthlyScalarWhereWithAggregatesInput = { + AND?: Prisma.conso_radius_monthlyScalarWhereWithAggregatesInput | Prisma.conso_radius_monthlyScalarWhereWithAggregatesInput[] + OR?: Prisma.conso_radius_monthlyScalarWhereWithAggregatesInput[] + NOT?: Prisma.conso_radius_monthlyScalarWhereWithAggregatesInput | Prisma.conso_radius_monthlyScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"conso_radius_monthly"> | number + date?: Prisma.StringWithAggregatesFilter<"conso_radius_monthly"> | string + username?: Prisma.StringWithAggregatesFilter<"conso_radius_monthly"> | string + nuit?: Prisma.StringWithAggregatesFilter<"conso_radius_monthly"> | string + jour?: Prisma.StringWithAggregatesFilter<"conso_radius_monthly"> | string +} + +export type conso_radius_monthlyCreateInput = { + date: string + username: string + nuit: string + jour: string +} + +export type conso_radius_monthlyUncheckedCreateInput = { + id?: number + date: string + username: string + nuit: string + jour: string +} + +export type conso_radius_monthlyUpdateInput = { + date?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + nuit?: Prisma.StringFieldUpdateOperationsInput | string + jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_monthlyUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + nuit?: Prisma.StringFieldUpdateOperationsInput | string + jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_monthlyCreateManyInput = { + id?: number + date: string + username: string + nuit: string + jour: string +} + +export type conso_radius_monthlyUpdateManyMutationInput = { + date?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + nuit?: Prisma.StringFieldUpdateOperationsInput | string + jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_monthlyUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + nuit?: Prisma.StringFieldUpdateOperationsInput | string + jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_monthlyOrderByRelevanceInput = { + fields: Prisma.conso_radius_monthlyOrderByRelevanceFieldEnum | Prisma.conso_radius_monthlyOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type conso_radius_monthlyCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + username?: Prisma.SortOrder + nuit?: Prisma.SortOrder + jour?: Prisma.SortOrder +} + +export type conso_radius_monthlyAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type conso_radius_monthlyMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + username?: Prisma.SortOrder + nuit?: Prisma.SortOrder + jour?: Prisma.SortOrder +} + +export type conso_radius_monthlyMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + username?: Prisma.SortOrder + nuit?: Prisma.SortOrder + jour?: Prisma.SortOrder +} + +export type conso_radius_monthlySumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type conso_radius_monthlySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date?: boolean + username?: boolean + nuit?: boolean + jour?: boolean +}, ExtArgs["result"]["conso_radius_monthly"]> + + + +export type conso_radius_monthlySelectScalar = { + id?: boolean + date?: boolean + username?: boolean + nuit?: boolean + jour?: boolean +} + +export type conso_radius_monthlyOmit = runtime.Types.Extensions.GetOmit<"id" | "date" | "username" | "nuit" | "jour", ExtArgs["result"]["conso_radius_monthly"]> + +export type $conso_radius_monthlyPayload = { + name: "conso_radius_monthly" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + date: string + username: string + nuit: string + jour: string + }, ExtArgs["result"]["conso_radius_monthly"]> + composites: {} +} + +export type conso_radius_monthlyGetPayload = runtime.Types.Result.GetResult + +export type conso_radius_monthlyCountArgs = + Omit & { + select?: Conso_radius_monthlyCountAggregateInputType | true + } + +export interface conso_radius_monthlyDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['conso_radius_monthly'], meta: { name: 'conso_radius_monthly' } } + /** + * Find zero or one Conso_radius_monthly that matches the filter. + * @param {conso_radius_monthlyFindUniqueArgs} args - Arguments to find a Conso_radius_monthly + * @example + * // Get one Conso_radius_monthly + * const conso_radius_monthly = await prisma.conso_radius_monthly.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthlyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Conso_radius_monthly that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {conso_radius_monthlyFindUniqueOrThrowArgs} args - Arguments to find a Conso_radius_monthly + * @example + * // Get one Conso_radius_monthly + * const conso_radius_monthly = await prisma.conso_radius_monthly.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthlyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_radius_monthly 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 {conso_radius_monthlyFindFirstArgs} args - Arguments to find a Conso_radius_monthly + * @example + * // Get one Conso_radius_monthly + * const conso_radius_monthly = await prisma.conso_radius_monthly.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthlyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_radius_monthly 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 {conso_radius_monthlyFindFirstOrThrowArgs} args - Arguments to find a Conso_radius_monthly + * @example + * // Get one Conso_radius_monthly + * const conso_radius_monthly = await prisma.conso_radius_monthly.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthlyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Conso_radius_monthlies 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 {conso_radius_monthlyFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Conso_radius_monthlies + * const conso_radius_monthlies = await prisma.conso_radius_monthly.findMany() + * + * // Get first 10 Conso_radius_monthlies + * const conso_radius_monthlies = await prisma.conso_radius_monthly.findMany({ take: 10 }) + * + * // Only select the `id` + * const conso_radius_monthlyWithIdOnly = await prisma.conso_radius_monthly.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Conso_radius_monthly. + * @param {conso_radius_monthlyCreateArgs} args - Arguments to create a Conso_radius_monthly. + * @example + * // Create one Conso_radius_monthly + * const Conso_radius_monthly = await prisma.conso_radius_monthly.create({ + * data: { + * // ... data to create a Conso_radius_monthly + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthlyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Conso_radius_monthlies. + * @param {conso_radius_monthlyCreateManyArgs} args - Arguments to create many Conso_radius_monthlies. + * @example + * // Create many Conso_radius_monthlies + * const conso_radius_monthly = await prisma.conso_radius_monthly.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Conso_radius_monthly. + * @param {conso_radius_monthlyDeleteArgs} args - Arguments to delete one Conso_radius_monthly. + * @example + * // Delete one Conso_radius_monthly + * const Conso_radius_monthly = await prisma.conso_radius_monthly.delete({ + * where: { + * // ... filter to delete one Conso_radius_monthly + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthlyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Conso_radius_monthly. + * @param {conso_radius_monthlyUpdateArgs} args - Arguments to update one Conso_radius_monthly. + * @example + * // Update one Conso_radius_monthly + * const conso_radius_monthly = await prisma.conso_radius_monthly.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthlyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Conso_radius_monthlies. + * @param {conso_radius_monthlyDeleteManyArgs} args - Arguments to filter Conso_radius_monthlies to delete. + * @example + * // Delete a few Conso_radius_monthlies + * const { count } = await prisma.conso_radius_monthly.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Conso_radius_monthlies. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radius_monthlyUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Conso_radius_monthlies + * const conso_radius_monthly = await prisma.conso_radius_monthly.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Conso_radius_monthly. + * @param {conso_radius_monthlyUpsertArgs} args - Arguments to update or create a Conso_radius_monthly. + * @example + * // Update or create a Conso_radius_monthly + * const conso_radius_monthly = await prisma.conso_radius_monthly.upsert({ + * create: { + * // ... data to create a Conso_radius_monthly + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Conso_radius_monthly we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthlyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Conso_radius_monthlies. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radius_monthlyCountArgs} args - Arguments to filter Conso_radius_monthlies to count. + * @example + * // Count the number of Conso_radius_monthlies + * const count = await prisma.conso_radius_monthly.count({ + * where: { + * // ... the filter for the Conso_radius_monthlies 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 Conso_radius_monthly. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Conso_radius_monthlyAggregateArgs} 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 Conso_radius_monthly. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radius_monthlyGroupByArgs} 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 conso_radius_monthlyGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: conso_radius_monthlyGroupByArgs['orderBy'] } + : { orderBy?: conso_radius_monthlyGroupByArgs['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 ? GetConso_radius_monthlyGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the conso_radius_monthly model + */ +readonly fields: conso_radius_monthlyFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for conso_radius_monthly. + * 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__conso_radius_monthlyClient 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 conso_radius_monthly model + */ +export interface conso_radius_monthlyFieldRefs { + readonly id: Prisma.FieldRef<"conso_radius_monthly", 'Int'> + readonly date: Prisma.FieldRef<"conso_radius_monthly", 'String'> + readonly username: Prisma.FieldRef<"conso_radius_monthly", 'String'> + readonly nuit: Prisma.FieldRef<"conso_radius_monthly", 'String'> + readonly jour: Prisma.FieldRef<"conso_radius_monthly", 'String'> +} + + +// Custom InputTypes +/** + * conso_radius_monthly findUnique + */ +export type conso_radius_monthlyFindUniqueArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly + */ + select?: Prisma.conso_radius_monthlySelect | null + /** + * Omit specific fields from the conso_radius_monthly + */ + omit?: Prisma.conso_radius_monthlyOmit | null + /** + * Filter, which conso_radius_monthly to fetch. + */ + where: Prisma.conso_radius_monthlyWhereUniqueInput +} + +/** + * conso_radius_monthly findUniqueOrThrow + */ +export type conso_radius_monthlyFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly + */ + select?: Prisma.conso_radius_monthlySelect | null + /** + * Omit specific fields from the conso_radius_monthly + */ + omit?: Prisma.conso_radius_monthlyOmit | null + /** + * Filter, which conso_radius_monthly to fetch. + */ + where: Prisma.conso_radius_monthlyWhereUniqueInput +} + +/** + * conso_radius_monthly findFirst + */ +export type conso_radius_monthlyFindFirstArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly + */ + select?: Prisma.conso_radius_monthlySelect | null + /** + * Omit specific fields from the conso_radius_monthly + */ + omit?: Prisma.conso_radius_monthlyOmit | null + /** + * Filter, which conso_radius_monthly to fetch. + */ + where?: Prisma.conso_radius_monthlyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_monthlies to fetch. + */ + orderBy?: Prisma.conso_radius_monthlyOrderByWithRelationInput | Prisma.conso_radius_monthlyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_radius_monthlies. + */ + cursor?: Prisma.conso_radius_monthlyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_monthlies 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` conso_radius_monthlies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_radius_monthlies. + */ + distinct?: Prisma.Conso_radius_monthlyScalarFieldEnum | Prisma.Conso_radius_monthlyScalarFieldEnum[] +} + +/** + * conso_radius_monthly findFirstOrThrow + */ +export type conso_radius_monthlyFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly + */ + select?: Prisma.conso_radius_monthlySelect | null + /** + * Omit specific fields from the conso_radius_monthly + */ + omit?: Prisma.conso_radius_monthlyOmit | null + /** + * Filter, which conso_radius_monthly to fetch. + */ + where?: Prisma.conso_radius_monthlyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_monthlies to fetch. + */ + orderBy?: Prisma.conso_radius_monthlyOrderByWithRelationInput | Prisma.conso_radius_monthlyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_radius_monthlies. + */ + cursor?: Prisma.conso_radius_monthlyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_monthlies 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` conso_radius_monthlies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_radius_monthlies. + */ + distinct?: Prisma.Conso_radius_monthlyScalarFieldEnum | Prisma.Conso_radius_monthlyScalarFieldEnum[] +} + +/** + * conso_radius_monthly findMany + */ +export type conso_radius_monthlyFindManyArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly + */ + select?: Prisma.conso_radius_monthlySelect | null + /** + * Omit specific fields from the conso_radius_monthly + */ + omit?: Prisma.conso_radius_monthlyOmit | null + /** + * Filter, which conso_radius_monthlies to fetch. + */ + where?: Prisma.conso_radius_monthlyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_monthlies to fetch. + */ + orderBy?: Prisma.conso_radius_monthlyOrderByWithRelationInput | Prisma.conso_radius_monthlyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing conso_radius_monthlies. + */ + cursor?: Prisma.conso_radius_monthlyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_monthlies 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` conso_radius_monthlies. + */ + skip?: number + distinct?: Prisma.Conso_radius_monthlyScalarFieldEnum | Prisma.Conso_radius_monthlyScalarFieldEnum[] +} + +/** + * conso_radius_monthly create + */ +export type conso_radius_monthlyCreateArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly + */ + select?: Prisma.conso_radius_monthlySelect | null + /** + * Omit specific fields from the conso_radius_monthly + */ + omit?: Prisma.conso_radius_monthlyOmit | null + /** + * The data needed to create a conso_radius_monthly. + */ + data: Prisma.XOR +} + +/** + * conso_radius_monthly createMany + */ +export type conso_radius_monthlyCreateManyArgs = { + /** + * The data used to create many conso_radius_monthlies. + */ + data: Prisma.conso_radius_monthlyCreateManyInput | Prisma.conso_radius_monthlyCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * conso_radius_monthly update + */ +export type conso_radius_monthlyUpdateArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly + */ + select?: Prisma.conso_radius_monthlySelect | null + /** + * Omit specific fields from the conso_radius_monthly + */ + omit?: Prisma.conso_radius_monthlyOmit | null + /** + * The data needed to update a conso_radius_monthly. + */ + data: Prisma.XOR + /** + * Choose, which conso_radius_monthly to update. + */ + where: Prisma.conso_radius_monthlyWhereUniqueInput +} + +/** + * conso_radius_monthly updateMany + */ +export type conso_radius_monthlyUpdateManyArgs = { + /** + * The data used to update conso_radius_monthlies. + */ + data: Prisma.XOR + /** + * Filter which conso_radius_monthlies to update + */ + where?: Prisma.conso_radius_monthlyWhereInput + /** + * Limit how many conso_radius_monthlies to update. + */ + limit?: number +} + +/** + * conso_radius_monthly upsert + */ +export type conso_radius_monthlyUpsertArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly + */ + select?: Prisma.conso_radius_monthlySelect | null + /** + * Omit specific fields from the conso_radius_monthly + */ + omit?: Prisma.conso_radius_monthlyOmit | null + /** + * The filter to search for the conso_radius_monthly to update in case it exists. + */ + where: Prisma.conso_radius_monthlyWhereUniqueInput + /** + * In case the conso_radius_monthly found by the `where` argument doesn't exist, create a new conso_radius_monthly with this data. + */ + create: Prisma.XOR + /** + * In case the conso_radius_monthly was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * conso_radius_monthly delete + */ +export type conso_radius_monthlyDeleteArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly + */ + select?: Prisma.conso_radius_monthlySelect | null + /** + * Omit specific fields from the conso_radius_monthly + */ + omit?: Prisma.conso_radius_monthlyOmit | null + /** + * Filter which conso_radius_monthly to delete. + */ + where: Prisma.conso_radius_monthlyWhereUniqueInput +} + +/** + * conso_radius_monthly deleteMany + */ +export type conso_radius_monthlyDeleteManyArgs = { + /** + * Filter which conso_radius_monthlies to delete + */ + where?: Prisma.conso_radius_monthlyWhereInput + /** + * Limit how many conso_radius_monthlies to delete. + */ + limit?: number +} + +/** + * conso_radius_monthly without action + */ +export type conso_radius_monthlyDefaultArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly + */ + select?: Prisma.conso_radius_monthlySelect | null + /** + * Omit specific fields from the conso_radius_monthly + */ + omit?: Prisma.conso_radius_monthlyOmit | null +} diff --git a/prisma/generated/mariadb/models/conso_radius_monthly2.ts b/prisma/generated/mariadb/models/conso_radius_monthly2.ts new file mode 100644 index 0000000..1da8644 --- /dev/null +++ b/prisma/generated/mariadb/models/conso_radius_monthly2.ts @@ -0,0 +1,1079 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `conso_radius_monthly2` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model conso_radius_monthly2 + * + */ +export type conso_radius_monthly2Model = runtime.Types.Result.DefaultSelection + +export type AggregateConso_radius_monthly2 = { + _count: Conso_radius_monthly2CountAggregateOutputType | null + _avg: Conso_radius_monthly2AvgAggregateOutputType | null + _sum: Conso_radius_monthly2SumAggregateOutputType | null + _min: Conso_radius_monthly2MinAggregateOutputType | null + _max: Conso_radius_monthly2MaxAggregateOutputType | null +} + +export type Conso_radius_monthly2AvgAggregateOutputType = { + id: number | null +} + +export type Conso_radius_monthly2SumAggregateOutputType = { + id: number | null +} + +export type Conso_radius_monthly2MinAggregateOutputType = { + id: number | null + date: string | null + username: string | null + nuit: string | null + jour: string | null +} + +export type Conso_radius_monthly2MaxAggregateOutputType = { + id: number | null + date: string | null + username: string | null + nuit: string | null + jour: string | null +} + +export type Conso_radius_monthly2CountAggregateOutputType = { + id: number + date: number + username: number + nuit: number + jour: number + _all: number +} + + +export type Conso_radius_monthly2AvgAggregateInputType = { + id?: true +} + +export type Conso_radius_monthly2SumAggregateInputType = { + id?: true +} + +export type Conso_radius_monthly2MinAggregateInputType = { + id?: true + date?: true + username?: true + nuit?: true + jour?: true +} + +export type Conso_radius_monthly2MaxAggregateInputType = { + id?: true + date?: true + username?: true + nuit?: true + jour?: true +} + +export type Conso_radius_monthly2CountAggregateInputType = { + id?: true + date?: true + username?: true + nuit?: true + jour?: true + _all?: true +} + +export type Conso_radius_monthly2AggregateArgs = { + /** + * Filter which conso_radius_monthly2 to aggregate. + */ + where?: Prisma.conso_radius_monthly2WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_monthly2s to fetch. + */ + orderBy?: Prisma.conso_radius_monthly2OrderByWithRelationInput | Prisma.conso_radius_monthly2OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.conso_radius_monthly2WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_monthly2s 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` conso_radius_monthly2s. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned conso_radius_monthly2s + **/ + _count?: true | Conso_radius_monthly2CountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Conso_radius_monthly2AvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Conso_radius_monthly2SumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Conso_radius_monthly2MinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Conso_radius_monthly2MaxAggregateInputType +} + +export type GetConso_radius_monthly2AggregateType = { + [P in keyof T & keyof AggregateConso_radius_monthly2]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type conso_radius_monthly2GroupByArgs = { + where?: Prisma.conso_radius_monthly2WhereInput + orderBy?: Prisma.conso_radius_monthly2OrderByWithAggregationInput | Prisma.conso_radius_monthly2OrderByWithAggregationInput[] + by: Prisma.Conso_radius_monthly2ScalarFieldEnum[] | Prisma.Conso_radius_monthly2ScalarFieldEnum + having?: Prisma.conso_radius_monthly2ScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Conso_radius_monthly2CountAggregateInputType | true + _avg?: Conso_radius_monthly2AvgAggregateInputType + _sum?: Conso_radius_monthly2SumAggregateInputType + _min?: Conso_radius_monthly2MinAggregateInputType + _max?: Conso_radius_monthly2MaxAggregateInputType +} + +export type Conso_radius_monthly2GroupByOutputType = { + id: number + date: string + username: string + nuit: string + jour: string + _count: Conso_radius_monthly2CountAggregateOutputType | null + _avg: Conso_radius_monthly2AvgAggregateOutputType | null + _sum: Conso_radius_monthly2SumAggregateOutputType | null + _min: Conso_radius_monthly2MinAggregateOutputType | null + _max: Conso_radius_monthly2MaxAggregateOutputType | null +} + +type GetConso_radius_monthly2GroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Conso_radius_monthly2GroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type conso_radius_monthly2WhereInput = { + AND?: Prisma.conso_radius_monthly2WhereInput | Prisma.conso_radius_monthly2WhereInput[] + OR?: Prisma.conso_radius_monthly2WhereInput[] + NOT?: Prisma.conso_radius_monthly2WhereInput | Prisma.conso_radius_monthly2WhereInput[] + id?: Prisma.IntFilter<"conso_radius_monthly2"> | number + date?: Prisma.StringFilter<"conso_radius_monthly2"> | string + username?: Prisma.StringFilter<"conso_radius_monthly2"> | string + nuit?: Prisma.StringFilter<"conso_radius_monthly2"> | string + jour?: Prisma.StringFilter<"conso_radius_monthly2"> | string +} + +export type conso_radius_monthly2OrderByWithRelationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + username?: Prisma.SortOrder + nuit?: Prisma.SortOrder + jour?: Prisma.SortOrder + _relevance?: Prisma.conso_radius_monthly2OrderByRelevanceInput +} + +export type conso_radius_monthly2WhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.conso_radius_monthly2WhereInput | Prisma.conso_radius_monthly2WhereInput[] + OR?: Prisma.conso_radius_monthly2WhereInput[] + NOT?: Prisma.conso_radius_monthly2WhereInput | Prisma.conso_radius_monthly2WhereInput[] + date?: Prisma.StringFilter<"conso_radius_monthly2"> | string + username?: Prisma.StringFilter<"conso_radius_monthly2"> | string + nuit?: Prisma.StringFilter<"conso_radius_monthly2"> | string + jour?: Prisma.StringFilter<"conso_radius_monthly2"> | string +}, "id"> + +export type conso_radius_monthly2OrderByWithAggregationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + username?: Prisma.SortOrder + nuit?: Prisma.SortOrder + jour?: Prisma.SortOrder + _count?: Prisma.conso_radius_monthly2CountOrderByAggregateInput + _avg?: Prisma.conso_radius_monthly2AvgOrderByAggregateInput + _max?: Prisma.conso_radius_monthly2MaxOrderByAggregateInput + _min?: Prisma.conso_radius_monthly2MinOrderByAggregateInput + _sum?: Prisma.conso_radius_monthly2SumOrderByAggregateInput +} + +export type conso_radius_monthly2ScalarWhereWithAggregatesInput = { + AND?: Prisma.conso_radius_monthly2ScalarWhereWithAggregatesInput | Prisma.conso_radius_monthly2ScalarWhereWithAggregatesInput[] + OR?: Prisma.conso_radius_monthly2ScalarWhereWithAggregatesInput[] + NOT?: Prisma.conso_radius_monthly2ScalarWhereWithAggregatesInput | Prisma.conso_radius_monthly2ScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"conso_radius_monthly2"> | number + date?: Prisma.StringWithAggregatesFilter<"conso_radius_monthly2"> | string + username?: Prisma.StringWithAggregatesFilter<"conso_radius_monthly2"> | string + nuit?: Prisma.StringWithAggregatesFilter<"conso_radius_monthly2"> | string + jour?: Prisma.StringWithAggregatesFilter<"conso_radius_monthly2"> | string +} + +export type conso_radius_monthly2CreateInput = { + date: string + username: string + nuit?: string + jour?: string +} + +export type conso_radius_monthly2UncheckedCreateInput = { + id?: number + date: string + username: string + nuit?: string + jour?: string +} + +export type conso_radius_monthly2UpdateInput = { + date?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + nuit?: Prisma.StringFieldUpdateOperationsInput | string + jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_monthly2UncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + nuit?: Prisma.StringFieldUpdateOperationsInput | string + jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_monthly2CreateManyInput = { + id?: number + date: string + username: string + nuit?: string + jour?: string +} + +export type conso_radius_monthly2UpdateManyMutationInput = { + date?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + nuit?: Prisma.StringFieldUpdateOperationsInput | string + jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_monthly2UncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.StringFieldUpdateOperationsInput | string + username?: Prisma.StringFieldUpdateOperationsInput | string + nuit?: Prisma.StringFieldUpdateOperationsInput | string + jour?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type conso_radius_monthly2OrderByRelevanceInput = { + fields: Prisma.conso_radius_monthly2OrderByRelevanceFieldEnum | Prisma.conso_radius_monthly2OrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type conso_radius_monthly2CountOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + username?: Prisma.SortOrder + nuit?: Prisma.SortOrder + jour?: Prisma.SortOrder +} + +export type conso_radius_monthly2AvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type conso_radius_monthly2MaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + username?: Prisma.SortOrder + nuit?: Prisma.SortOrder + jour?: Prisma.SortOrder +} + +export type conso_radius_monthly2MinOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + username?: Prisma.SortOrder + nuit?: Prisma.SortOrder + jour?: Prisma.SortOrder +} + +export type conso_radius_monthly2SumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type conso_radius_monthly2Select = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date?: boolean + username?: boolean + nuit?: boolean + jour?: boolean +}, ExtArgs["result"]["conso_radius_monthly2"]> + + + +export type conso_radius_monthly2SelectScalar = { + id?: boolean + date?: boolean + username?: boolean + nuit?: boolean + jour?: boolean +} + +export type conso_radius_monthly2Omit = runtime.Types.Extensions.GetOmit<"id" | "date" | "username" | "nuit" | "jour", ExtArgs["result"]["conso_radius_monthly2"]> + +export type $conso_radius_monthly2Payload = { + name: "conso_radius_monthly2" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + date: string + username: string + nuit: string + jour: string + }, ExtArgs["result"]["conso_radius_monthly2"]> + composites: {} +} + +export type conso_radius_monthly2GetPayload = runtime.Types.Result.GetResult + +export type conso_radius_monthly2CountArgs = + Omit & { + select?: Conso_radius_monthly2CountAggregateInputType | true + } + +export interface conso_radius_monthly2Delegate { + [K: symbol]: { types: Prisma.TypeMap['model']['conso_radius_monthly2'], meta: { name: 'conso_radius_monthly2' } } + /** + * Find zero or one Conso_radius_monthly2 that matches the filter. + * @param {conso_radius_monthly2FindUniqueArgs} args - Arguments to find a Conso_radius_monthly2 + * @example + * // Get one Conso_radius_monthly2 + * const conso_radius_monthly2 = await prisma.conso_radius_monthly2.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthly2Client, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Conso_radius_monthly2 that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {conso_radius_monthly2FindUniqueOrThrowArgs} args - Arguments to find a Conso_radius_monthly2 + * @example + * // Get one Conso_radius_monthly2 + * const conso_radius_monthly2 = await prisma.conso_radius_monthly2.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthly2Client, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_radius_monthly2 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 {conso_radius_monthly2FindFirstArgs} args - Arguments to find a Conso_radius_monthly2 + * @example + * // Get one Conso_radius_monthly2 + * const conso_radius_monthly2 = await prisma.conso_radius_monthly2.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthly2Client, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Conso_radius_monthly2 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 {conso_radius_monthly2FindFirstOrThrowArgs} args - Arguments to find a Conso_radius_monthly2 + * @example + * // Get one Conso_radius_monthly2 + * const conso_radius_monthly2 = await prisma.conso_radius_monthly2.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthly2Client, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Conso_radius_monthly2s 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 {conso_radius_monthly2FindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Conso_radius_monthly2s + * const conso_radius_monthly2s = await prisma.conso_radius_monthly2.findMany() + * + * // Get first 10 Conso_radius_monthly2s + * const conso_radius_monthly2s = await prisma.conso_radius_monthly2.findMany({ take: 10 }) + * + * // Only select the `id` + * const conso_radius_monthly2WithIdOnly = await prisma.conso_radius_monthly2.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Conso_radius_monthly2. + * @param {conso_radius_monthly2CreateArgs} args - Arguments to create a Conso_radius_monthly2. + * @example + * // Create one Conso_radius_monthly2 + * const Conso_radius_monthly2 = await prisma.conso_radius_monthly2.create({ + * data: { + * // ... data to create a Conso_radius_monthly2 + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthly2Client, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Conso_radius_monthly2s. + * @param {conso_radius_monthly2CreateManyArgs} args - Arguments to create many Conso_radius_monthly2s. + * @example + * // Create many Conso_radius_monthly2s + * const conso_radius_monthly2 = await prisma.conso_radius_monthly2.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Conso_radius_monthly2. + * @param {conso_radius_monthly2DeleteArgs} args - Arguments to delete one Conso_radius_monthly2. + * @example + * // Delete one Conso_radius_monthly2 + * const Conso_radius_monthly2 = await prisma.conso_radius_monthly2.delete({ + * where: { + * // ... filter to delete one Conso_radius_monthly2 + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthly2Client, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Conso_radius_monthly2. + * @param {conso_radius_monthly2UpdateArgs} args - Arguments to update one Conso_radius_monthly2. + * @example + * // Update one Conso_radius_monthly2 + * const conso_radius_monthly2 = await prisma.conso_radius_monthly2.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthly2Client, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Conso_radius_monthly2s. + * @param {conso_radius_monthly2DeleteManyArgs} args - Arguments to filter Conso_radius_monthly2s to delete. + * @example + * // Delete a few Conso_radius_monthly2s + * const { count } = await prisma.conso_radius_monthly2.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Conso_radius_monthly2s. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radius_monthly2UpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Conso_radius_monthly2s + * const conso_radius_monthly2 = await prisma.conso_radius_monthly2.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Conso_radius_monthly2. + * @param {conso_radius_monthly2UpsertArgs} args - Arguments to update or create a Conso_radius_monthly2. + * @example + * // Update or create a Conso_radius_monthly2 + * const conso_radius_monthly2 = await prisma.conso_radius_monthly2.upsert({ + * create: { + * // ... data to create a Conso_radius_monthly2 + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Conso_radius_monthly2 we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__conso_radius_monthly2Client, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Conso_radius_monthly2s. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radius_monthly2CountArgs} args - Arguments to filter Conso_radius_monthly2s to count. + * @example + * // Count the number of Conso_radius_monthly2s + * const count = await prisma.conso_radius_monthly2.count({ + * where: { + * // ... the filter for the Conso_radius_monthly2s 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 Conso_radius_monthly2. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Conso_radius_monthly2AggregateArgs} 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 Conso_radius_monthly2. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {conso_radius_monthly2GroupByArgs} 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 conso_radius_monthly2GroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: conso_radius_monthly2GroupByArgs['orderBy'] } + : { orderBy?: conso_radius_monthly2GroupByArgs['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 ? GetConso_radius_monthly2GroupByPayload : Prisma.PrismaPromise +/** + * Fields of the conso_radius_monthly2 model + */ +readonly fields: conso_radius_monthly2FieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for conso_radius_monthly2. + * 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__conso_radius_monthly2Client 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 conso_radius_monthly2 model + */ +export interface conso_radius_monthly2FieldRefs { + readonly id: Prisma.FieldRef<"conso_radius_monthly2", 'Int'> + readonly date: Prisma.FieldRef<"conso_radius_monthly2", 'String'> + readonly username: Prisma.FieldRef<"conso_radius_monthly2", 'String'> + readonly nuit: Prisma.FieldRef<"conso_radius_monthly2", 'String'> + readonly jour: Prisma.FieldRef<"conso_radius_monthly2", 'String'> +} + + +// Custom InputTypes +/** + * conso_radius_monthly2 findUnique + */ +export type conso_radius_monthly2FindUniqueArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly2 + */ + select?: Prisma.conso_radius_monthly2Select | null + /** + * Omit specific fields from the conso_radius_monthly2 + */ + omit?: Prisma.conso_radius_monthly2Omit | null + /** + * Filter, which conso_radius_monthly2 to fetch. + */ + where: Prisma.conso_radius_monthly2WhereUniqueInput +} + +/** + * conso_radius_monthly2 findUniqueOrThrow + */ +export type conso_radius_monthly2FindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly2 + */ + select?: Prisma.conso_radius_monthly2Select | null + /** + * Omit specific fields from the conso_radius_monthly2 + */ + omit?: Prisma.conso_radius_monthly2Omit | null + /** + * Filter, which conso_radius_monthly2 to fetch. + */ + where: Prisma.conso_radius_monthly2WhereUniqueInput +} + +/** + * conso_radius_monthly2 findFirst + */ +export type conso_radius_monthly2FindFirstArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly2 + */ + select?: Prisma.conso_radius_monthly2Select | null + /** + * Omit specific fields from the conso_radius_monthly2 + */ + omit?: Prisma.conso_radius_monthly2Omit | null + /** + * Filter, which conso_radius_monthly2 to fetch. + */ + where?: Prisma.conso_radius_monthly2WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_monthly2s to fetch. + */ + orderBy?: Prisma.conso_radius_monthly2OrderByWithRelationInput | Prisma.conso_radius_monthly2OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_radius_monthly2s. + */ + cursor?: Prisma.conso_radius_monthly2WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_monthly2s 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` conso_radius_monthly2s. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_radius_monthly2s. + */ + distinct?: Prisma.Conso_radius_monthly2ScalarFieldEnum | Prisma.Conso_radius_monthly2ScalarFieldEnum[] +} + +/** + * conso_radius_monthly2 findFirstOrThrow + */ +export type conso_radius_monthly2FindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly2 + */ + select?: Prisma.conso_radius_monthly2Select | null + /** + * Omit specific fields from the conso_radius_monthly2 + */ + omit?: Prisma.conso_radius_monthly2Omit | null + /** + * Filter, which conso_radius_monthly2 to fetch. + */ + where?: Prisma.conso_radius_monthly2WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_monthly2s to fetch. + */ + orderBy?: Prisma.conso_radius_monthly2OrderByWithRelationInput | Prisma.conso_radius_monthly2OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for conso_radius_monthly2s. + */ + cursor?: Prisma.conso_radius_monthly2WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_monthly2s 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` conso_radius_monthly2s. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of conso_radius_monthly2s. + */ + distinct?: Prisma.Conso_radius_monthly2ScalarFieldEnum | Prisma.Conso_radius_monthly2ScalarFieldEnum[] +} + +/** + * conso_radius_monthly2 findMany + */ +export type conso_radius_monthly2FindManyArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly2 + */ + select?: Prisma.conso_radius_monthly2Select | null + /** + * Omit specific fields from the conso_radius_monthly2 + */ + omit?: Prisma.conso_radius_monthly2Omit | null + /** + * Filter, which conso_radius_monthly2s to fetch. + */ + where?: Prisma.conso_radius_monthly2WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of conso_radius_monthly2s to fetch. + */ + orderBy?: Prisma.conso_radius_monthly2OrderByWithRelationInput | Prisma.conso_radius_monthly2OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing conso_radius_monthly2s. + */ + cursor?: Prisma.conso_radius_monthly2WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` conso_radius_monthly2s 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` conso_radius_monthly2s. + */ + skip?: number + distinct?: Prisma.Conso_radius_monthly2ScalarFieldEnum | Prisma.Conso_radius_monthly2ScalarFieldEnum[] +} + +/** + * conso_radius_monthly2 create + */ +export type conso_radius_monthly2CreateArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly2 + */ + select?: Prisma.conso_radius_monthly2Select | null + /** + * Omit specific fields from the conso_radius_monthly2 + */ + omit?: Prisma.conso_radius_monthly2Omit | null + /** + * The data needed to create a conso_radius_monthly2. + */ + data: Prisma.XOR +} + +/** + * conso_radius_monthly2 createMany + */ +export type conso_radius_monthly2CreateManyArgs = { + /** + * The data used to create many conso_radius_monthly2s. + */ + data: Prisma.conso_radius_monthly2CreateManyInput | Prisma.conso_radius_monthly2CreateManyInput[] + skipDuplicates?: boolean +} + +/** + * conso_radius_monthly2 update + */ +export type conso_radius_monthly2UpdateArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly2 + */ + select?: Prisma.conso_radius_monthly2Select | null + /** + * Omit specific fields from the conso_radius_monthly2 + */ + omit?: Prisma.conso_radius_monthly2Omit | null + /** + * The data needed to update a conso_radius_monthly2. + */ + data: Prisma.XOR + /** + * Choose, which conso_radius_monthly2 to update. + */ + where: Prisma.conso_radius_monthly2WhereUniqueInput +} + +/** + * conso_radius_monthly2 updateMany + */ +export type conso_radius_monthly2UpdateManyArgs = { + /** + * The data used to update conso_radius_monthly2s. + */ + data: Prisma.XOR + /** + * Filter which conso_radius_monthly2s to update + */ + where?: Prisma.conso_radius_monthly2WhereInput + /** + * Limit how many conso_radius_monthly2s to update. + */ + limit?: number +} + +/** + * conso_radius_monthly2 upsert + */ +export type conso_radius_monthly2UpsertArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly2 + */ + select?: Prisma.conso_radius_monthly2Select | null + /** + * Omit specific fields from the conso_radius_monthly2 + */ + omit?: Prisma.conso_radius_monthly2Omit | null + /** + * The filter to search for the conso_radius_monthly2 to update in case it exists. + */ + where: Prisma.conso_radius_monthly2WhereUniqueInput + /** + * In case the conso_radius_monthly2 found by the `where` argument doesn't exist, create a new conso_radius_monthly2 with this data. + */ + create: Prisma.XOR + /** + * In case the conso_radius_monthly2 was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * conso_radius_monthly2 delete + */ +export type conso_radius_monthly2DeleteArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly2 + */ + select?: Prisma.conso_radius_monthly2Select | null + /** + * Omit specific fields from the conso_radius_monthly2 + */ + omit?: Prisma.conso_radius_monthly2Omit | null + /** + * Filter which conso_radius_monthly2 to delete. + */ + where: Prisma.conso_radius_monthly2WhereUniqueInput +} + +/** + * conso_radius_monthly2 deleteMany + */ +export type conso_radius_monthly2DeleteManyArgs = { + /** + * Filter which conso_radius_monthly2s to delete + */ + where?: Prisma.conso_radius_monthly2WhereInput + /** + * Limit how many conso_radius_monthly2s to delete. + */ + limit?: number +} + +/** + * conso_radius_monthly2 without action + */ +export type conso_radius_monthly2DefaultArgs = { + /** + * Select specific fields to fetch from the conso_radius_monthly2 + */ + select?: Prisma.conso_radius_monthly2Select | null + /** + * Omit specific fields from the conso_radius_monthly2 + */ + omit?: Prisma.conso_radius_monthly2Omit | null +} diff --git a/prisma/generated/mariadb/models/credit_code.ts b/prisma/generated/mariadb/models/credit_code.ts new file mode 100644 index 0000000..dd83cb6 --- /dev/null +++ b/prisma/generated/mariadb/models/credit_code.ts @@ -0,0 +1,1027 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `credit_code` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model credit_code + * + */ +export type credit_codeModel = runtime.Types.Result.DefaultSelection + +export type AggregateCredit_code = { + _count: Credit_codeCountAggregateOutputType | null + _avg: Credit_codeAvgAggregateOutputType | null + _sum: Credit_codeSumAggregateOutputType | null + _min: Credit_codeMinAggregateOutputType | null + _max: Credit_codeMaxAggregateOutputType | null +} + +export type Credit_codeAvgAggregateOutputType = { + id: number | null +} + +export type Credit_codeSumAggregateOutputType = { + id: number | null +} + +export type Credit_codeMinAggregateOutputType = { + id: number | null + code: string | null + desc: string | null +} + +export type Credit_codeMaxAggregateOutputType = { + id: number | null + code: string | null + desc: string | null +} + +export type Credit_codeCountAggregateOutputType = { + id: number + code: number + desc: number + _all: number +} + + +export type Credit_codeAvgAggregateInputType = { + id?: true +} + +export type Credit_codeSumAggregateInputType = { + id?: true +} + +export type Credit_codeMinAggregateInputType = { + id?: true + code?: true + desc?: true +} + +export type Credit_codeMaxAggregateInputType = { + id?: true + code?: true + desc?: true +} + +export type Credit_codeCountAggregateInputType = { + id?: true + code?: true + desc?: true + _all?: true +} + +export type Credit_codeAggregateArgs = { + /** + * Filter which credit_code to aggregate. + */ + where?: Prisma.credit_codeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of credit_codes to fetch. + */ + orderBy?: Prisma.credit_codeOrderByWithRelationInput | Prisma.credit_codeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.credit_codeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` credit_codes 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` credit_codes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned credit_codes + **/ + _count?: true | Credit_codeCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Credit_codeAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Credit_codeSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Credit_codeMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Credit_codeMaxAggregateInputType +} + +export type GetCredit_codeAggregateType = { + [P in keyof T & keyof AggregateCredit_code]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type credit_codeGroupByArgs = { + where?: Prisma.credit_codeWhereInput + orderBy?: Prisma.credit_codeOrderByWithAggregationInput | Prisma.credit_codeOrderByWithAggregationInput[] + by: Prisma.Credit_codeScalarFieldEnum[] | Prisma.Credit_codeScalarFieldEnum + having?: Prisma.credit_codeScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Credit_codeCountAggregateInputType | true + _avg?: Credit_codeAvgAggregateInputType + _sum?: Credit_codeSumAggregateInputType + _min?: Credit_codeMinAggregateInputType + _max?: Credit_codeMaxAggregateInputType +} + +export type Credit_codeGroupByOutputType = { + id: number + code: string + desc: string + _count: Credit_codeCountAggregateOutputType | null + _avg: Credit_codeAvgAggregateOutputType | null + _sum: Credit_codeSumAggregateOutputType | null + _min: Credit_codeMinAggregateOutputType | null + _max: Credit_codeMaxAggregateOutputType | null +} + +type GetCredit_codeGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Credit_codeGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type credit_codeWhereInput = { + AND?: Prisma.credit_codeWhereInput | Prisma.credit_codeWhereInput[] + OR?: Prisma.credit_codeWhereInput[] + NOT?: Prisma.credit_codeWhereInput | Prisma.credit_codeWhereInput[] + id?: Prisma.IntFilter<"credit_code"> | number + code?: Prisma.StringFilter<"credit_code"> | string + desc?: Prisma.StringFilter<"credit_code"> | string +} + +export type credit_codeOrderByWithRelationInput = { + id?: Prisma.SortOrder + code?: Prisma.SortOrder + desc?: Prisma.SortOrder + _relevance?: Prisma.credit_codeOrderByRelevanceInput +} + +export type credit_codeWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.credit_codeWhereInput | Prisma.credit_codeWhereInput[] + OR?: Prisma.credit_codeWhereInput[] + NOT?: Prisma.credit_codeWhereInput | Prisma.credit_codeWhereInput[] + code?: Prisma.StringFilter<"credit_code"> | string + desc?: Prisma.StringFilter<"credit_code"> | string +}, "id"> + +export type credit_codeOrderByWithAggregationInput = { + id?: Prisma.SortOrder + code?: Prisma.SortOrder + desc?: Prisma.SortOrder + _count?: Prisma.credit_codeCountOrderByAggregateInput + _avg?: Prisma.credit_codeAvgOrderByAggregateInput + _max?: Prisma.credit_codeMaxOrderByAggregateInput + _min?: Prisma.credit_codeMinOrderByAggregateInput + _sum?: Prisma.credit_codeSumOrderByAggregateInput +} + +export type credit_codeScalarWhereWithAggregatesInput = { + AND?: Prisma.credit_codeScalarWhereWithAggregatesInput | Prisma.credit_codeScalarWhereWithAggregatesInput[] + OR?: Prisma.credit_codeScalarWhereWithAggregatesInput[] + NOT?: Prisma.credit_codeScalarWhereWithAggregatesInput | Prisma.credit_codeScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"credit_code"> | number + code?: Prisma.StringWithAggregatesFilter<"credit_code"> | string + desc?: Prisma.StringWithAggregatesFilter<"credit_code"> | string +} + +export type credit_codeCreateInput = { + code: string + desc: string +} + +export type credit_codeUncheckedCreateInput = { + id?: number + code: string + desc: string +} + +export type credit_codeUpdateInput = { + code?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type credit_codeUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + code?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type credit_codeCreateManyInput = { + id?: number + code: string + desc: string +} + +export type credit_codeUpdateManyMutationInput = { + code?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type credit_codeUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + code?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type credit_codeOrderByRelevanceInput = { + fields: Prisma.credit_codeOrderByRelevanceFieldEnum | Prisma.credit_codeOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type credit_codeCountOrderByAggregateInput = { + id?: Prisma.SortOrder + code?: Prisma.SortOrder + desc?: Prisma.SortOrder +} + +export type credit_codeAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type credit_codeMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + code?: Prisma.SortOrder + desc?: Prisma.SortOrder +} + +export type credit_codeMinOrderByAggregateInput = { + id?: Prisma.SortOrder + code?: Prisma.SortOrder + desc?: Prisma.SortOrder +} + +export type credit_codeSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type credit_codeSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + code?: boolean + desc?: boolean +}, ExtArgs["result"]["credit_code"]> + + + +export type credit_codeSelectScalar = { + id?: boolean + code?: boolean + desc?: boolean +} + +export type credit_codeOmit = runtime.Types.Extensions.GetOmit<"id" | "code" | "desc", ExtArgs["result"]["credit_code"]> + +export type $credit_codePayload = { + name: "credit_code" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + code: string + desc: string + }, ExtArgs["result"]["credit_code"]> + composites: {} +} + +export type credit_codeGetPayload = runtime.Types.Result.GetResult + +export type credit_codeCountArgs = + Omit & { + select?: Credit_codeCountAggregateInputType | true + } + +export interface credit_codeDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['credit_code'], meta: { name: 'credit_code' } } + /** + * Find zero or one Credit_code that matches the filter. + * @param {credit_codeFindUniqueArgs} args - Arguments to find a Credit_code + * @example + * // Get one Credit_code + * const credit_code = await prisma.credit_code.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__credit_codeClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Credit_code that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {credit_codeFindUniqueOrThrowArgs} args - Arguments to find a Credit_code + * @example + * // Get one Credit_code + * const credit_code = await prisma.credit_code.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__credit_codeClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Credit_code 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 {credit_codeFindFirstArgs} args - Arguments to find a Credit_code + * @example + * // Get one Credit_code + * const credit_code = await prisma.credit_code.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__credit_codeClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Credit_code 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 {credit_codeFindFirstOrThrowArgs} args - Arguments to find a Credit_code + * @example + * // Get one Credit_code + * const credit_code = await prisma.credit_code.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__credit_codeClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Credit_codes 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 {credit_codeFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Credit_codes + * const credit_codes = await prisma.credit_code.findMany() + * + * // Get first 10 Credit_codes + * const credit_codes = await prisma.credit_code.findMany({ take: 10 }) + * + * // Only select the `id` + * const credit_codeWithIdOnly = await prisma.credit_code.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Credit_code. + * @param {credit_codeCreateArgs} args - Arguments to create a Credit_code. + * @example + * // Create one Credit_code + * const Credit_code = await prisma.credit_code.create({ + * data: { + * // ... data to create a Credit_code + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__credit_codeClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Credit_codes. + * @param {credit_codeCreateManyArgs} args - Arguments to create many Credit_codes. + * @example + * // Create many Credit_codes + * const credit_code = await prisma.credit_code.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Credit_code. + * @param {credit_codeDeleteArgs} args - Arguments to delete one Credit_code. + * @example + * // Delete one Credit_code + * const Credit_code = await prisma.credit_code.delete({ + * where: { + * // ... filter to delete one Credit_code + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__credit_codeClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Credit_code. + * @param {credit_codeUpdateArgs} args - Arguments to update one Credit_code. + * @example + * // Update one Credit_code + * const credit_code = await prisma.credit_code.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__credit_codeClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Credit_codes. + * @param {credit_codeDeleteManyArgs} args - Arguments to filter Credit_codes to delete. + * @example + * // Delete a few Credit_codes + * const { count } = await prisma.credit_code.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Credit_codes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {credit_codeUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Credit_codes + * const credit_code = await prisma.credit_code.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Credit_code. + * @param {credit_codeUpsertArgs} args - Arguments to update or create a Credit_code. + * @example + * // Update or create a Credit_code + * const credit_code = await prisma.credit_code.upsert({ + * create: { + * // ... data to create a Credit_code + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Credit_code we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__credit_codeClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Credit_codes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {credit_codeCountArgs} args - Arguments to filter Credit_codes to count. + * @example + * // Count the number of Credit_codes + * const count = await prisma.credit_code.count({ + * where: { + * // ... the filter for the Credit_codes 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 Credit_code. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Credit_codeAggregateArgs} 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 Credit_code. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {credit_codeGroupByArgs} 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 credit_codeGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: credit_codeGroupByArgs['orderBy'] } + : { orderBy?: credit_codeGroupByArgs['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 ? GetCredit_codeGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the credit_code model + */ +readonly fields: credit_codeFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for credit_code. + * 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__credit_codeClient 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 credit_code model + */ +export interface credit_codeFieldRefs { + readonly id: Prisma.FieldRef<"credit_code", 'Int'> + readonly code: Prisma.FieldRef<"credit_code", 'String'> + readonly desc: Prisma.FieldRef<"credit_code", 'String'> +} + + +// Custom InputTypes +/** + * credit_code findUnique + */ +export type credit_codeFindUniqueArgs = { + /** + * Select specific fields to fetch from the credit_code + */ + select?: Prisma.credit_codeSelect | null + /** + * Omit specific fields from the credit_code + */ + omit?: Prisma.credit_codeOmit | null + /** + * Filter, which credit_code to fetch. + */ + where: Prisma.credit_codeWhereUniqueInput +} + +/** + * credit_code findUniqueOrThrow + */ +export type credit_codeFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the credit_code + */ + select?: Prisma.credit_codeSelect | null + /** + * Omit specific fields from the credit_code + */ + omit?: Prisma.credit_codeOmit | null + /** + * Filter, which credit_code to fetch. + */ + where: Prisma.credit_codeWhereUniqueInput +} + +/** + * credit_code findFirst + */ +export type credit_codeFindFirstArgs = { + /** + * Select specific fields to fetch from the credit_code + */ + select?: Prisma.credit_codeSelect | null + /** + * Omit specific fields from the credit_code + */ + omit?: Prisma.credit_codeOmit | null + /** + * Filter, which credit_code to fetch. + */ + where?: Prisma.credit_codeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of credit_codes to fetch. + */ + orderBy?: Prisma.credit_codeOrderByWithRelationInput | Prisma.credit_codeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for credit_codes. + */ + cursor?: Prisma.credit_codeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` credit_codes 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` credit_codes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of credit_codes. + */ + distinct?: Prisma.Credit_codeScalarFieldEnum | Prisma.Credit_codeScalarFieldEnum[] +} + +/** + * credit_code findFirstOrThrow + */ +export type credit_codeFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the credit_code + */ + select?: Prisma.credit_codeSelect | null + /** + * Omit specific fields from the credit_code + */ + omit?: Prisma.credit_codeOmit | null + /** + * Filter, which credit_code to fetch. + */ + where?: Prisma.credit_codeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of credit_codes to fetch. + */ + orderBy?: Prisma.credit_codeOrderByWithRelationInput | Prisma.credit_codeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for credit_codes. + */ + cursor?: Prisma.credit_codeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` credit_codes 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` credit_codes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of credit_codes. + */ + distinct?: Prisma.Credit_codeScalarFieldEnum | Prisma.Credit_codeScalarFieldEnum[] +} + +/** + * credit_code findMany + */ +export type credit_codeFindManyArgs = { + /** + * Select specific fields to fetch from the credit_code + */ + select?: Prisma.credit_codeSelect | null + /** + * Omit specific fields from the credit_code + */ + omit?: Prisma.credit_codeOmit | null + /** + * Filter, which credit_codes to fetch. + */ + where?: Prisma.credit_codeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of credit_codes to fetch. + */ + orderBy?: Prisma.credit_codeOrderByWithRelationInput | Prisma.credit_codeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing credit_codes. + */ + cursor?: Prisma.credit_codeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` credit_codes 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` credit_codes. + */ + skip?: number + distinct?: Prisma.Credit_codeScalarFieldEnum | Prisma.Credit_codeScalarFieldEnum[] +} + +/** + * credit_code create + */ +export type credit_codeCreateArgs = { + /** + * Select specific fields to fetch from the credit_code + */ + select?: Prisma.credit_codeSelect | null + /** + * Omit specific fields from the credit_code + */ + omit?: Prisma.credit_codeOmit | null + /** + * The data needed to create a credit_code. + */ + data: Prisma.XOR +} + +/** + * credit_code createMany + */ +export type credit_codeCreateManyArgs = { + /** + * The data used to create many credit_codes. + */ + data: Prisma.credit_codeCreateManyInput | Prisma.credit_codeCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * credit_code update + */ +export type credit_codeUpdateArgs = { + /** + * Select specific fields to fetch from the credit_code + */ + select?: Prisma.credit_codeSelect | null + /** + * Omit specific fields from the credit_code + */ + omit?: Prisma.credit_codeOmit | null + /** + * The data needed to update a credit_code. + */ + data: Prisma.XOR + /** + * Choose, which credit_code to update. + */ + where: Prisma.credit_codeWhereUniqueInput +} + +/** + * credit_code updateMany + */ +export type credit_codeUpdateManyArgs = { + /** + * The data used to update credit_codes. + */ + data: Prisma.XOR + /** + * Filter which credit_codes to update + */ + where?: Prisma.credit_codeWhereInput + /** + * Limit how many credit_codes to update. + */ + limit?: number +} + +/** + * credit_code upsert + */ +export type credit_codeUpsertArgs = { + /** + * Select specific fields to fetch from the credit_code + */ + select?: Prisma.credit_codeSelect | null + /** + * Omit specific fields from the credit_code + */ + omit?: Prisma.credit_codeOmit | null + /** + * The filter to search for the credit_code to update in case it exists. + */ + where: Prisma.credit_codeWhereUniqueInput + /** + * In case the credit_code found by the `where` argument doesn't exist, create a new credit_code with this data. + */ + create: Prisma.XOR + /** + * In case the credit_code was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * credit_code delete + */ +export type credit_codeDeleteArgs = { + /** + * Select specific fields to fetch from the credit_code + */ + select?: Prisma.credit_codeSelect | null + /** + * Omit specific fields from the credit_code + */ + omit?: Prisma.credit_codeOmit | null + /** + * Filter which credit_code to delete. + */ + where: Prisma.credit_codeWhereUniqueInput +} + +/** + * credit_code deleteMany + */ +export type credit_codeDeleteManyArgs = { + /** + * Filter which credit_codes to delete + */ + where?: Prisma.credit_codeWhereInput + /** + * Limit how many credit_codes to delete. + */ + limit?: number +} + +/** + * credit_code without action + */ +export type credit_codeDefaultArgs = { + /** + * Select specific fields to fetch from the credit_code + */ + select?: Prisma.credit_codeSelect | null + /** + * Omit specific fields from the credit_code + */ + omit?: Prisma.credit_codeOmit | null +} diff --git a/prisma/generated/mariadb/models/debug.ts b/prisma/generated/mariadb/models/debug.ts new file mode 100644 index 0000000..056ad80 --- /dev/null +++ b/prisma/generated/mariadb/models/debug.ts @@ -0,0 +1,1166 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `debug` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model debug + * ************** DEPRECATED ******************************************** + */ +export type debugModel = runtime.Types.Result.DefaultSelection + +export type AggregateDebug = { + _count: DebugCountAggregateOutputType | null + _avg: DebugAvgAggregateOutputType | null + _sum: DebugSumAggregateOutputType | null + _min: DebugMinAggregateOutputType | null + _max: DebugMaxAggregateOutputType | null +} + +export type DebugAvgAggregateOutputType = { + id: number | null + date_last: number | null +} + +export type DebugSumAggregateOutputType = { + id: bigint | null + date_last: bigint | null +} + +export type DebugMinAggregateOutputType = { + id: bigint | null + autor: string | null + url: string | null + date_last: bigint | null + desc: string | null + note4autor: string | null + note4dev: string | null + status: string | null +} + +export type DebugMaxAggregateOutputType = { + id: bigint | null + autor: string | null + url: string | null + date_last: bigint | null + desc: string | null + note4autor: string | null + note4dev: string | null + status: string | null +} + +export type DebugCountAggregateOutputType = { + id: number + autor: number + url: number + date_last: number + desc: number + note4autor: number + note4dev: number + status: number + _all: number +} + + +export type DebugAvgAggregateInputType = { + id?: true + date_last?: true +} + +export type DebugSumAggregateInputType = { + id?: true + date_last?: true +} + +export type DebugMinAggregateInputType = { + id?: true + autor?: true + url?: true + date_last?: true + desc?: true + note4autor?: true + note4dev?: true + status?: true +} + +export type DebugMaxAggregateInputType = { + id?: true + autor?: true + url?: true + date_last?: true + desc?: true + note4autor?: true + note4dev?: true + status?: true +} + +export type DebugCountAggregateInputType = { + id?: true + autor?: true + url?: true + date_last?: true + desc?: true + note4autor?: true + note4dev?: true + status?: true + _all?: true +} + +export type DebugAggregateArgs = { + /** + * Filter which debug to aggregate. + */ + where?: Prisma.debugWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of debugs to fetch. + */ + orderBy?: Prisma.debugOrderByWithRelationInput | Prisma.debugOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.debugWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` debugs 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` debugs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned debugs + **/ + _count?: true | DebugCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: DebugAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: DebugSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: DebugMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: DebugMaxAggregateInputType +} + +export type GetDebugAggregateType = { + [P in keyof T & keyof AggregateDebug]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type debugGroupByArgs = { + where?: Prisma.debugWhereInput + orderBy?: Prisma.debugOrderByWithAggregationInput | Prisma.debugOrderByWithAggregationInput[] + by: Prisma.DebugScalarFieldEnum[] | Prisma.DebugScalarFieldEnum + having?: Prisma.debugScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: DebugCountAggregateInputType | true + _avg?: DebugAvgAggregateInputType + _sum?: DebugSumAggregateInputType + _min?: DebugMinAggregateInputType + _max?: DebugMaxAggregateInputType +} + +export type DebugGroupByOutputType = { + id: bigint + autor: string | null + url: string | null + date_last: bigint | null + desc: string | null + note4autor: string | null + note4dev: string | null + status: string | null + _count: DebugCountAggregateOutputType | null + _avg: DebugAvgAggregateOutputType | null + _sum: DebugSumAggregateOutputType | null + _min: DebugMinAggregateOutputType | null + _max: DebugMaxAggregateOutputType | null +} + +type GetDebugGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof DebugGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type debugWhereInput = { + AND?: Prisma.debugWhereInput | Prisma.debugWhereInput[] + OR?: Prisma.debugWhereInput[] + NOT?: Prisma.debugWhereInput | Prisma.debugWhereInput[] + id?: Prisma.BigIntFilter<"debug"> | bigint | number + autor?: Prisma.StringNullableFilter<"debug"> | string | null + url?: Prisma.StringNullableFilter<"debug"> | string | null + date_last?: Prisma.BigIntNullableFilter<"debug"> | bigint | number | null + desc?: Prisma.StringNullableFilter<"debug"> | string | null + note4autor?: Prisma.StringNullableFilter<"debug"> | string | null + note4dev?: Prisma.StringNullableFilter<"debug"> | string | null + status?: Prisma.StringNullableFilter<"debug"> | string | null +} + +export type debugOrderByWithRelationInput = { + id?: Prisma.SortOrder + autor?: Prisma.SortOrderInput | Prisma.SortOrder + url?: Prisma.SortOrderInput | Prisma.SortOrder + date_last?: Prisma.SortOrderInput | Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + note4autor?: Prisma.SortOrderInput | Prisma.SortOrder + note4dev?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.debugOrderByRelevanceInput +} + +export type debugWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.debugWhereInput | Prisma.debugWhereInput[] + OR?: Prisma.debugWhereInput[] + NOT?: Prisma.debugWhereInput | Prisma.debugWhereInput[] + autor?: Prisma.StringNullableFilter<"debug"> | string | null + url?: Prisma.StringNullableFilter<"debug"> | string | null + date_last?: Prisma.BigIntNullableFilter<"debug"> | bigint | number | null + desc?: Prisma.StringNullableFilter<"debug"> | string | null + note4autor?: Prisma.StringNullableFilter<"debug"> | string | null + note4dev?: Prisma.StringNullableFilter<"debug"> | string | null + status?: Prisma.StringNullableFilter<"debug"> | string | null +}, "id"> + +export type debugOrderByWithAggregationInput = { + id?: Prisma.SortOrder + autor?: Prisma.SortOrderInput | Prisma.SortOrder + url?: Prisma.SortOrderInput | Prisma.SortOrder + date_last?: Prisma.SortOrderInput | Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + note4autor?: Prisma.SortOrderInput | Prisma.SortOrder + note4dev?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.debugCountOrderByAggregateInput + _avg?: Prisma.debugAvgOrderByAggregateInput + _max?: Prisma.debugMaxOrderByAggregateInput + _min?: Prisma.debugMinOrderByAggregateInput + _sum?: Prisma.debugSumOrderByAggregateInput +} + +export type debugScalarWhereWithAggregatesInput = { + AND?: Prisma.debugScalarWhereWithAggregatesInput | Prisma.debugScalarWhereWithAggregatesInput[] + OR?: Prisma.debugScalarWhereWithAggregatesInput[] + NOT?: Prisma.debugScalarWhereWithAggregatesInput | Prisma.debugScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"debug"> | bigint | number + autor?: Prisma.StringNullableWithAggregatesFilter<"debug"> | string | null + url?: Prisma.StringNullableWithAggregatesFilter<"debug"> | string | null + date_last?: Prisma.BigIntNullableWithAggregatesFilter<"debug"> | bigint | number | null + desc?: Prisma.StringNullableWithAggregatesFilter<"debug"> | string | null + note4autor?: Prisma.StringNullableWithAggregatesFilter<"debug"> | string | null + note4dev?: Prisma.StringNullableWithAggregatesFilter<"debug"> | string | null + status?: Prisma.StringNullableWithAggregatesFilter<"debug"> | string | null +} + +export type debugCreateInput = { + id?: bigint | number + autor?: string | null + url?: string | null + date_last?: bigint | number | null + desc?: string | null + note4autor?: string | null + note4dev?: string | null + status?: string | null +} + +export type debugUncheckedCreateInput = { + id?: bigint | number + autor?: string | null + url?: string | null + date_last?: bigint | number | null + desc?: string | null + note4autor?: string | null + note4dev?: string | null + status?: string | null +} + +export type debugUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + autor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note4autor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note4dev?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type debugUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + autor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note4autor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note4dev?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type debugCreateManyInput = { + id?: bigint | number + autor?: string | null + url?: string | null + date_last?: bigint | number | null + desc?: string | null + note4autor?: string | null + note4dev?: string | null + status?: string | null +} + +export type debugUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + autor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note4autor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note4dev?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type debugUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + autor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_last?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note4autor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + note4dev?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type debugOrderByRelevanceInput = { + fields: Prisma.debugOrderByRelevanceFieldEnum | Prisma.debugOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type debugCountOrderByAggregateInput = { + id?: Prisma.SortOrder + autor?: Prisma.SortOrder + url?: Prisma.SortOrder + date_last?: Prisma.SortOrder + desc?: Prisma.SortOrder + note4autor?: Prisma.SortOrder + note4dev?: Prisma.SortOrder + status?: Prisma.SortOrder +} + +export type debugAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date_last?: Prisma.SortOrder +} + +export type debugMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + autor?: Prisma.SortOrder + url?: Prisma.SortOrder + date_last?: Prisma.SortOrder + desc?: Prisma.SortOrder + note4autor?: Prisma.SortOrder + note4dev?: Prisma.SortOrder + status?: Prisma.SortOrder +} + +export type debugMinOrderByAggregateInput = { + id?: Prisma.SortOrder + autor?: Prisma.SortOrder + url?: Prisma.SortOrder + date_last?: Prisma.SortOrder + desc?: Prisma.SortOrder + note4autor?: Prisma.SortOrder + note4dev?: Prisma.SortOrder + status?: Prisma.SortOrder +} + +export type debugSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date_last?: Prisma.SortOrder +} + + + +export type debugSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + autor?: boolean + url?: boolean + date_last?: boolean + desc?: boolean + note4autor?: boolean + note4dev?: boolean + status?: boolean +}, ExtArgs["result"]["debug"]> + + + +export type debugSelectScalar = { + id?: boolean + autor?: boolean + url?: boolean + date_last?: boolean + desc?: boolean + note4autor?: boolean + note4dev?: boolean + status?: boolean +} + +export type debugOmit = runtime.Types.Extensions.GetOmit<"id" | "autor" | "url" | "date_last" | "desc" | "note4autor" | "note4dev" | "status", ExtArgs["result"]["debug"]> + +export type $debugPayload = { + name: "debug" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + autor: string | null + url: string | null + date_last: bigint | null + desc: string | null + note4autor: string | null + note4dev: string | null + status: string | null + }, ExtArgs["result"]["debug"]> + composites: {} +} + +export type debugGetPayload = runtime.Types.Result.GetResult + +export type debugCountArgs = + Omit & { + select?: DebugCountAggregateInputType | true + } + +export interface debugDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['debug'], meta: { name: 'debug' } } + /** + * Find zero or one Debug that matches the filter. + * @param {debugFindUniqueArgs} args - Arguments to find a Debug + * @example + * // Get one Debug + * const debug = await prisma.debug.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__debugClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Debug that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {debugFindUniqueOrThrowArgs} args - Arguments to find a Debug + * @example + * // Get one Debug + * const debug = await prisma.debug.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__debugClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Debug 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 {debugFindFirstArgs} args - Arguments to find a Debug + * @example + * // Get one Debug + * const debug = await prisma.debug.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__debugClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Debug 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 {debugFindFirstOrThrowArgs} args - Arguments to find a Debug + * @example + * // Get one Debug + * const debug = await prisma.debug.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__debugClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Debugs 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 {debugFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Debugs + * const debugs = await prisma.debug.findMany() + * + * // Get first 10 Debugs + * const debugs = await prisma.debug.findMany({ take: 10 }) + * + * // Only select the `id` + * const debugWithIdOnly = await prisma.debug.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Debug. + * @param {debugCreateArgs} args - Arguments to create a Debug. + * @example + * // Create one Debug + * const Debug = await prisma.debug.create({ + * data: { + * // ... data to create a Debug + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__debugClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Debugs. + * @param {debugCreateManyArgs} args - Arguments to create many Debugs. + * @example + * // Create many Debugs + * const debug = await prisma.debug.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Debug. + * @param {debugDeleteArgs} args - Arguments to delete one Debug. + * @example + * // Delete one Debug + * const Debug = await prisma.debug.delete({ + * where: { + * // ... filter to delete one Debug + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__debugClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Debug. + * @param {debugUpdateArgs} args - Arguments to update one Debug. + * @example + * // Update one Debug + * const debug = await prisma.debug.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__debugClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Debugs. + * @param {debugDeleteManyArgs} args - Arguments to filter Debugs to delete. + * @example + * // Delete a few Debugs + * const { count } = await prisma.debug.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Debugs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {debugUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Debugs + * const debug = await prisma.debug.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Debug. + * @param {debugUpsertArgs} args - Arguments to update or create a Debug. + * @example + * // Update or create a Debug + * const debug = await prisma.debug.upsert({ + * create: { + * // ... data to create a Debug + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Debug we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__debugClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Debugs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {debugCountArgs} args - Arguments to filter Debugs to count. + * @example + * // Count the number of Debugs + * const count = await prisma.debug.count({ + * where: { + * // ... the filter for the Debugs 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 Debug. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {DebugAggregateArgs} 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 Debug. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {debugGroupByArgs} 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 debugGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: debugGroupByArgs['orderBy'] } + : { orderBy?: debugGroupByArgs['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 ? GetDebugGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the debug model + */ +readonly fields: debugFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for debug. + * 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__debugClient 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 debug model + */ +export interface debugFieldRefs { + readonly id: Prisma.FieldRef<"debug", 'BigInt'> + readonly autor: Prisma.FieldRef<"debug", 'String'> + readonly url: Prisma.FieldRef<"debug", 'String'> + readonly date_last: Prisma.FieldRef<"debug", 'BigInt'> + readonly desc: Prisma.FieldRef<"debug", 'String'> + readonly note4autor: Prisma.FieldRef<"debug", 'String'> + readonly note4dev: Prisma.FieldRef<"debug", 'String'> + readonly status: Prisma.FieldRef<"debug", 'String'> +} + + +// Custom InputTypes +/** + * debug findUnique + */ +export type debugFindUniqueArgs = { + /** + * Select specific fields to fetch from the debug + */ + select?: Prisma.debugSelect | null + /** + * Omit specific fields from the debug + */ + omit?: Prisma.debugOmit | null + /** + * Filter, which debug to fetch. + */ + where: Prisma.debugWhereUniqueInput +} + +/** + * debug findUniqueOrThrow + */ +export type debugFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the debug + */ + select?: Prisma.debugSelect | null + /** + * Omit specific fields from the debug + */ + omit?: Prisma.debugOmit | null + /** + * Filter, which debug to fetch. + */ + where: Prisma.debugWhereUniqueInput +} + +/** + * debug findFirst + */ +export type debugFindFirstArgs = { + /** + * Select specific fields to fetch from the debug + */ + select?: Prisma.debugSelect | null + /** + * Omit specific fields from the debug + */ + omit?: Prisma.debugOmit | null + /** + * Filter, which debug to fetch. + */ + where?: Prisma.debugWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of debugs to fetch. + */ + orderBy?: Prisma.debugOrderByWithRelationInput | Prisma.debugOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for debugs. + */ + cursor?: Prisma.debugWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` debugs 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` debugs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of debugs. + */ + distinct?: Prisma.DebugScalarFieldEnum | Prisma.DebugScalarFieldEnum[] +} + +/** + * debug findFirstOrThrow + */ +export type debugFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the debug + */ + select?: Prisma.debugSelect | null + /** + * Omit specific fields from the debug + */ + omit?: Prisma.debugOmit | null + /** + * Filter, which debug to fetch. + */ + where?: Prisma.debugWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of debugs to fetch. + */ + orderBy?: Prisma.debugOrderByWithRelationInput | Prisma.debugOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for debugs. + */ + cursor?: Prisma.debugWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` debugs 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` debugs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of debugs. + */ + distinct?: Prisma.DebugScalarFieldEnum | Prisma.DebugScalarFieldEnum[] +} + +/** + * debug findMany + */ +export type debugFindManyArgs = { + /** + * Select specific fields to fetch from the debug + */ + select?: Prisma.debugSelect | null + /** + * Omit specific fields from the debug + */ + omit?: Prisma.debugOmit | null + /** + * Filter, which debugs to fetch. + */ + where?: Prisma.debugWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of debugs to fetch. + */ + orderBy?: Prisma.debugOrderByWithRelationInput | Prisma.debugOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing debugs. + */ + cursor?: Prisma.debugWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` debugs 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` debugs. + */ + skip?: number + distinct?: Prisma.DebugScalarFieldEnum | Prisma.DebugScalarFieldEnum[] +} + +/** + * debug create + */ +export type debugCreateArgs = { + /** + * Select specific fields to fetch from the debug + */ + select?: Prisma.debugSelect | null + /** + * Omit specific fields from the debug + */ + omit?: Prisma.debugOmit | null + /** + * The data needed to create a debug. + */ + data?: Prisma.XOR +} + +/** + * debug createMany + */ +export type debugCreateManyArgs = { + /** + * The data used to create many debugs. + */ + data: Prisma.debugCreateManyInput | Prisma.debugCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * debug update + */ +export type debugUpdateArgs = { + /** + * Select specific fields to fetch from the debug + */ + select?: Prisma.debugSelect | null + /** + * Omit specific fields from the debug + */ + omit?: Prisma.debugOmit | null + /** + * The data needed to update a debug. + */ + data: Prisma.XOR + /** + * Choose, which debug to update. + */ + where: Prisma.debugWhereUniqueInput +} + +/** + * debug updateMany + */ +export type debugUpdateManyArgs = { + /** + * The data used to update debugs. + */ + data: Prisma.XOR + /** + * Filter which debugs to update + */ + where?: Prisma.debugWhereInput + /** + * Limit how many debugs to update. + */ + limit?: number +} + +/** + * debug upsert + */ +export type debugUpsertArgs = { + /** + * Select specific fields to fetch from the debug + */ + select?: Prisma.debugSelect | null + /** + * Omit specific fields from the debug + */ + omit?: Prisma.debugOmit | null + /** + * The filter to search for the debug to update in case it exists. + */ + where: Prisma.debugWhereUniqueInput + /** + * In case the debug found by the `where` argument doesn't exist, create a new debug with this data. + */ + create: Prisma.XOR + /** + * In case the debug was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * debug delete + */ +export type debugDeleteArgs = { + /** + * Select specific fields to fetch from the debug + */ + select?: Prisma.debugSelect | null + /** + * Omit specific fields from the debug + */ + omit?: Prisma.debugOmit | null + /** + * Filter which debug to delete. + */ + where: Prisma.debugWhereUniqueInput +} + +/** + * debug deleteMany + */ +export type debugDeleteManyArgs = { + /** + * Filter which debugs to delete + */ + where?: Prisma.debugWhereInput + /** + * Limit how many debugs to delete. + */ + limit?: number +} + +/** + * debug without action + */ +export type debugDefaultArgs = { + /** + * Select specific fields to fetch from the debug + */ + select?: Prisma.debugSelect | null + /** + * Omit specific fields from the debug + */ + omit?: Prisma.debugOmit | null +} diff --git a/prisma/generated/mariadb/models/delivery.ts b/prisma/generated/mariadb/models/delivery.ts new file mode 100644 index 0000000..26342ce --- /dev/null +++ b/prisma/generated/mariadb/models/delivery.ts @@ -0,0 +1,1630 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `delivery` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model delivery + * + */ +export type deliveryModel = runtime.Types.Result.DefaultSelection + +export type AggregateDelivery = { + _count: DeliveryCountAggregateOutputType | null + _avg: DeliveryAvgAggregateOutputType | null + _sum: DeliverySumAggregateOutputType | null + _min: DeliveryMinAggregateOutputType | null + _max: DeliveryMaxAggregateOutputType | null +} + +export type DeliveryAvgAggregateOutputType = { + id: number | null + account_id: number | null + date_orig: number | null + longitude: runtime.Decimal | null + latitude: runtime.Decimal | null + quota_max_day: number | null + quota_max_night: number | null + expanded: number | null + placemarks_id: number | null + epg_subid: number | null +} + +export type DeliverySumAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date_orig: bigint | null + longitude: runtime.Decimal | null + latitude: runtime.Decimal | null + quota_max_day: bigint | null + quota_max_night: bigint | null + expanded: number | null + placemarks_id: bigint | null + epg_subid: number | null +} + +export type DeliveryMinAggregateOutputType = { + id: bigint | null + account_id: bigint | null + name: string | null + comment: string | null + date_orig: bigint | null + address1: string | null + address2: string | null + city: string | null + state: string | null + zip: string | null + longitude: runtime.Decimal | null + latitude: runtime.Decimal | null + tel_home: string | null + tel_office: string | null + tel_office_ext: string | null + cell: string | null + fax: string | null + email: string | null + quota_max_day: bigint | null + quota_max_night: bigint | null + contact: string | null + expanded: number | null + placemarks_id: bigint | null + epg_subid: number | null +} + +export type DeliveryMaxAggregateOutputType = { + id: bigint | null + account_id: bigint | null + name: string | null + comment: string | null + date_orig: bigint | null + address1: string | null + address2: string | null + city: string | null + state: string | null + zip: string | null + longitude: runtime.Decimal | null + latitude: runtime.Decimal | null + tel_home: string | null + tel_office: string | null + tel_office_ext: string | null + cell: string | null + fax: string | null + email: string | null + quota_max_day: bigint | null + quota_max_night: bigint | null + contact: string | null + expanded: number | null + placemarks_id: bigint | null + epg_subid: number | null +} + +export type DeliveryCountAggregateOutputType = { + id: number + account_id: number + name: number + comment: number + date_orig: number + address1: number + address2: number + city: number + state: number + zip: number + longitude: number + latitude: number + tel_home: number + tel_office: number + tel_office_ext: number + cell: number + fax: number + email: number + quota_max_day: number + quota_max_night: number + contact: number + expanded: number + placemarks_id: number + epg_subid: number + _all: number +} + + +export type DeliveryAvgAggregateInputType = { + id?: true + account_id?: true + date_orig?: true + longitude?: true + latitude?: true + quota_max_day?: true + quota_max_night?: true + expanded?: true + placemarks_id?: true + epg_subid?: true +} + +export type DeliverySumAggregateInputType = { + id?: true + account_id?: true + date_orig?: true + longitude?: true + latitude?: true + quota_max_day?: true + quota_max_night?: true + expanded?: true + placemarks_id?: true + epg_subid?: true +} + +export type DeliveryMinAggregateInputType = { + id?: true + account_id?: true + name?: true + comment?: true + date_orig?: true + address1?: true + address2?: true + city?: true + state?: true + zip?: true + longitude?: true + latitude?: true + tel_home?: true + tel_office?: true + tel_office_ext?: true + cell?: true + fax?: true + email?: true + quota_max_day?: true + quota_max_night?: true + contact?: true + expanded?: true + placemarks_id?: true + epg_subid?: true +} + +export type DeliveryMaxAggregateInputType = { + id?: true + account_id?: true + name?: true + comment?: true + date_orig?: true + address1?: true + address2?: true + city?: true + state?: true + zip?: true + longitude?: true + latitude?: true + tel_home?: true + tel_office?: true + tel_office_ext?: true + cell?: true + fax?: true + email?: true + quota_max_day?: true + quota_max_night?: true + contact?: true + expanded?: true + placemarks_id?: true + epg_subid?: true +} + +export type DeliveryCountAggregateInputType = { + id?: true + account_id?: true + name?: true + comment?: true + date_orig?: true + address1?: true + address2?: true + city?: true + state?: true + zip?: true + longitude?: true + latitude?: true + tel_home?: true + tel_office?: true + tel_office_ext?: true + cell?: true + fax?: true + email?: true + quota_max_day?: true + quota_max_night?: true + contact?: true + expanded?: true + placemarks_id?: true + epg_subid?: true + _all?: true +} + +export type DeliveryAggregateArgs = { + /** + * Filter which delivery to aggregate. + */ + where?: Prisma.deliveryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of deliveries to fetch. + */ + orderBy?: Prisma.deliveryOrderByWithRelationInput | Prisma.deliveryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.deliveryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` deliveries 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` deliveries. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned deliveries + **/ + _count?: true | DeliveryCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: DeliveryAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: DeliverySumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: DeliveryMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: DeliveryMaxAggregateInputType +} + +export type GetDeliveryAggregateType = { + [P in keyof T & keyof AggregateDelivery]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type deliveryGroupByArgs = { + where?: Prisma.deliveryWhereInput + orderBy?: Prisma.deliveryOrderByWithAggregationInput | Prisma.deliveryOrderByWithAggregationInput[] + by: Prisma.DeliveryScalarFieldEnum[] | Prisma.DeliveryScalarFieldEnum + having?: Prisma.deliveryScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: DeliveryCountAggregateInputType | true + _avg?: DeliveryAvgAggregateInputType + _sum?: DeliverySumAggregateInputType + _min?: DeliveryMinAggregateInputType + _max?: DeliveryMaxAggregateInputType +} + +export type DeliveryGroupByOutputType = { + id: bigint + account_id: bigint | null + name: string + comment: string + date_orig: bigint | null + address1: string | null + address2: string | null + city: string | null + state: string | null + zip: string | null + longitude: runtime.Decimal + latitude: runtime.Decimal + tel_home: string | null + tel_office: string | null + tel_office_ext: string | null + cell: string | null + fax: string | null + email: string | null + quota_max_day: bigint + quota_max_night: bigint + contact: string | null + expanded: number | null + placemarks_id: bigint | null + epg_subid: number + _count: DeliveryCountAggregateOutputType | null + _avg: DeliveryAvgAggregateOutputType | null + _sum: DeliverySumAggregateOutputType | null + _min: DeliveryMinAggregateOutputType | null + _max: DeliveryMaxAggregateOutputType | null +} + +type GetDeliveryGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof DeliveryGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type deliveryWhereInput = { + AND?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[] + OR?: Prisma.deliveryWhereInput[] + NOT?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[] + id?: Prisma.BigIntFilter<"delivery"> | bigint | number + account_id?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null + name?: Prisma.StringFilter<"delivery"> | string + comment?: Prisma.StringFilter<"delivery"> | string + date_orig?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null + address1?: Prisma.StringNullableFilter<"delivery"> | string | null + address2?: Prisma.StringNullableFilter<"delivery"> | string | null + city?: Prisma.StringNullableFilter<"delivery"> | string | null + state?: Prisma.StringNullableFilter<"delivery"> | string | null + zip?: Prisma.StringNullableFilter<"delivery"> | string | null + longitude?: Prisma.DecimalFilter<"delivery"> | runtime.Decimal | runtime.DecimalJsLike | number | string + latitude?: Prisma.DecimalFilter<"delivery"> | runtime.Decimal | runtime.DecimalJsLike | number | string + tel_home?: Prisma.StringNullableFilter<"delivery"> | string | null + tel_office?: Prisma.StringNullableFilter<"delivery"> | string | null + tel_office_ext?: Prisma.StringNullableFilter<"delivery"> | string | null + cell?: Prisma.StringNullableFilter<"delivery"> | string | null + fax?: Prisma.StringNullableFilter<"delivery"> | string | null + email?: Prisma.StringNullableFilter<"delivery"> | string | null + quota_max_day?: Prisma.BigIntFilter<"delivery"> | bigint | number + quota_max_night?: Prisma.BigIntFilter<"delivery"> | bigint | number + contact?: Prisma.StringNullableFilter<"delivery"> | string | null + expanded?: Prisma.IntNullableFilter<"delivery"> | number | null + placemarks_id?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null + epg_subid?: Prisma.IntFilter<"delivery"> | number +} + +export type deliveryOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + name?: Prisma.SortOrder + comment?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + address1?: Prisma.SortOrderInput | Prisma.SortOrder + address2?: Prisma.SortOrderInput | Prisma.SortOrder + city?: Prisma.SortOrderInput | Prisma.SortOrder + state?: Prisma.SortOrderInput | Prisma.SortOrder + zip?: Prisma.SortOrderInput | Prisma.SortOrder + longitude?: Prisma.SortOrder + latitude?: Prisma.SortOrder + tel_home?: Prisma.SortOrderInput | Prisma.SortOrder + tel_office?: Prisma.SortOrderInput | Prisma.SortOrder + tel_office_ext?: Prisma.SortOrderInput | Prisma.SortOrder + cell?: Prisma.SortOrderInput | Prisma.SortOrder + fax?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + quota_max_day?: Prisma.SortOrder + quota_max_night?: Prisma.SortOrder + contact?: Prisma.SortOrderInput | Prisma.SortOrder + expanded?: Prisma.SortOrderInput | Prisma.SortOrder + placemarks_id?: Prisma.SortOrderInput | Prisma.SortOrder + epg_subid?: Prisma.SortOrder + _relevance?: Prisma.deliveryOrderByRelevanceInput +} + +export type deliveryWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[] + OR?: Prisma.deliveryWhereInput[] + NOT?: Prisma.deliveryWhereInput | Prisma.deliveryWhereInput[] + account_id?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null + name?: Prisma.StringFilter<"delivery"> | string + comment?: Prisma.StringFilter<"delivery"> | string + date_orig?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null + address1?: Prisma.StringNullableFilter<"delivery"> | string | null + address2?: Prisma.StringNullableFilter<"delivery"> | string | null + city?: Prisma.StringNullableFilter<"delivery"> | string | null + state?: Prisma.StringNullableFilter<"delivery"> | string | null + zip?: Prisma.StringNullableFilter<"delivery"> | string | null + longitude?: Prisma.DecimalFilter<"delivery"> | runtime.Decimal | runtime.DecimalJsLike | number | string + latitude?: Prisma.DecimalFilter<"delivery"> | runtime.Decimal | runtime.DecimalJsLike | number | string + tel_home?: Prisma.StringNullableFilter<"delivery"> | string | null + tel_office?: Prisma.StringNullableFilter<"delivery"> | string | null + tel_office_ext?: Prisma.StringNullableFilter<"delivery"> | string | null + cell?: Prisma.StringNullableFilter<"delivery"> | string | null + fax?: Prisma.StringNullableFilter<"delivery"> | string | null + email?: Prisma.StringNullableFilter<"delivery"> | string | null + quota_max_day?: Prisma.BigIntFilter<"delivery"> | bigint | number + quota_max_night?: Prisma.BigIntFilter<"delivery"> | bigint | number + contact?: Prisma.StringNullableFilter<"delivery"> | string | null + expanded?: Prisma.IntNullableFilter<"delivery"> | number | null + placemarks_id?: Prisma.BigIntNullableFilter<"delivery"> | bigint | number | null + epg_subid?: Prisma.IntFilter<"delivery"> | number +}, "id"> + +export type deliveryOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + name?: Prisma.SortOrder + comment?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + address1?: Prisma.SortOrderInput | Prisma.SortOrder + address2?: Prisma.SortOrderInput | Prisma.SortOrder + city?: Prisma.SortOrderInput | Prisma.SortOrder + state?: Prisma.SortOrderInput | Prisma.SortOrder + zip?: Prisma.SortOrderInput | Prisma.SortOrder + longitude?: Prisma.SortOrder + latitude?: Prisma.SortOrder + tel_home?: Prisma.SortOrderInput | Prisma.SortOrder + tel_office?: Prisma.SortOrderInput | Prisma.SortOrder + tel_office_ext?: Prisma.SortOrderInput | Prisma.SortOrder + cell?: Prisma.SortOrderInput | Prisma.SortOrder + fax?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + quota_max_day?: Prisma.SortOrder + quota_max_night?: Prisma.SortOrder + contact?: Prisma.SortOrderInput | Prisma.SortOrder + expanded?: Prisma.SortOrderInput | Prisma.SortOrder + placemarks_id?: Prisma.SortOrderInput | Prisma.SortOrder + epg_subid?: Prisma.SortOrder + _count?: Prisma.deliveryCountOrderByAggregateInput + _avg?: Prisma.deliveryAvgOrderByAggregateInput + _max?: Prisma.deliveryMaxOrderByAggregateInput + _min?: Prisma.deliveryMinOrderByAggregateInput + _sum?: Prisma.deliverySumOrderByAggregateInput +} + +export type deliveryScalarWhereWithAggregatesInput = { + AND?: Prisma.deliveryScalarWhereWithAggregatesInput | Prisma.deliveryScalarWhereWithAggregatesInput[] + OR?: Prisma.deliveryScalarWhereWithAggregatesInput[] + NOT?: Prisma.deliveryScalarWhereWithAggregatesInput | Prisma.deliveryScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"delivery"> | bigint | number + account_id?: Prisma.BigIntNullableWithAggregatesFilter<"delivery"> | bigint | number | null + name?: Prisma.StringWithAggregatesFilter<"delivery"> | string + comment?: Prisma.StringWithAggregatesFilter<"delivery"> | string + date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"delivery"> | bigint | number | null + address1?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null + address2?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null + city?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null + state?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null + zip?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null + longitude?: Prisma.DecimalWithAggregatesFilter<"delivery"> | runtime.Decimal | runtime.DecimalJsLike | number | string + latitude?: Prisma.DecimalWithAggregatesFilter<"delivery"> | runtime.Decimal | runtime.DecimalJsLike | number | string + tel_home?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null + tel_office?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null + tel_office_ext?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null + cell?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null + fax?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null + email?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null + quota_max_day?: Prisma.BigIntWithAggregatesFilter<"delivery"> | bigint | number + quota_max_night?: Prisma.BigIntWithAggregatesFilter<"delivery"> | bigint | number + contact?: Prisma.StringNullableWithAggregatesFilter<"delivery"> | string | null + expanded?: Prisma.IntNullableWithAggregatesFilter<"delivery"> | number | null + placemarks_id?: Prisma.BigIntNullableWithAggregatesFilter<"delivery"> | bigint | number | null + epg_subid?: Prisma.IntWithAggregatesFilter<"delivery"> | number +} + +export type deliveryCreateInput = { + id?: bigint | number + account_id?: bigint | number | null + name: string + comment: string + date_orig?: bigint | number | null + address1?: string | null + address2?: string | null + city?: string | null + state?: string | null + zip?: string | null + longitude: runtime.Decimal | runtime.DecimalJsLike | number | string + latitude: runtime.Decimal | runtime.DecimalJsLike | number | string + tel_home?: string | null + tel_office?: string | null + tel_office_ext?: string | null + cell?: string | null + fax?: string | null + email?: string | null + quota_max_day?: bigint | number + quota_max_night?: bigint | number + contact?: string | null + expanded?: number | null + placemarks_id?: bigint | number | null + epg_subid?: number +} + +export type deliveryUncheckedCreateInput = { + id?: bigint | number + account_id?: bigint | number | null + name: string + comment: string + date_orig?: bigint | number | null + address1?: string | null + address2?: string | null + city?: string | null + state?: string | null + zip?: string | null + longitude: runtime.Decimal | runtime.DecimalJsLike | number | string + latitude: runtime.Decimal | runtime.DecimalJsLike | number | string + tel_home?: string | null + tel_office?: string | null + tel_office_ext?: string | null + cell?: string | null + fax?: string | null + email?: string | null + quota_max_day?: bigint | number + quota_max_night?: bigint | number + contact?: string | null + expanded?: number | null + placemarks_id?: bigint | number | null + epg_subid?: number +} + +export type deliveryUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + name?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.StringFieldUpdateOperationsInput | string + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + address1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + address2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + zip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + longitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + latitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + tel_home?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office_ext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cell?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + quota_max_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + quota_max_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + contact?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + expanded?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + placemarks_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + epg_subid?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type deliveryUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + name?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.StringFieldUpdateOperationsInput | string + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + address1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + address2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + zip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + longitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + latitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + tel_home?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office_ext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cell?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + quota_max_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + quota_max_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + contact?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + expanded?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + placemarks_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + epg_subid?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type deliveryCreateManyInput = { + id?: bigint | number + account_id?: bigint | number | null + name: string + comment: string + date_orig?: bigint | number | null + address1?: string | null + address2?: string | null + city?: string | null + state?: string | null + zip?: string | null + longitude: runtime.Decimal | runtime.DecimalJsLike | number | string + latitude: runtime.Decimal | runtime.DecimalJsLike | number | string + tel_home?: string | null + tel_office?: string | null + tel_office_ext?: string | null + cell?: string | null + fax?: string | null + email?: string | null + quota_max_day?: bigint | number + quota_max_night?: bigint | number + contact?: string | null + expanded?: number | null + placemarks_id?: bigint | number | null + epg_subid?: number +} + +export type deliveryUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + name?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.StringFieldUpdateOperationsInput | string + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + address1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + address2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + zip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + longitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + latitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + tel_home?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office_ext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cell?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + quota_max_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + quota_max_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + contact?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + expanded?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + placemarks_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + epg_subid?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type deliveryUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + name?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.StringFieldUpdateOperationsInput | string + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + address1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + address2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + zip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + longitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + latitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + tel_home?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tel_office_ext?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cell?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + quota_max_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + quota_max_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + contact?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + expanded?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + placemarks_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + epg_subid?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type deliveryOrderByRelevanceInput = { + fields: Prisma.deliveryOrderByRelevanceFieldEnum | Prisma.deliveryOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type deliveryCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + comment?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + address1?: Prisma.SortOrder + address2?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder + longitude?: Prisma.SortOrder + latitude?: Prisma.SortOrder + tel_home?: Prisma.SortOrder + tel_office?: Prisma.SortOrder + tel_office_ext?: Prisma.SortOrder + cell?: Prisma.SortOrder + fax?: Prisma.SortOrder + email?: Prisma.SortOrder + quota_max_day?: Prisma.SortOrder + quota_max_night?: Prisma.SortOrder + contact?: Prisma.SortOrder + expanded?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder + epg_subid?: Prisma.SortOrder +} + +export type deliveryAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + longitude?: Prisma.SortOrder + latitude?: Prisma.SortOrder + quota_max_day?: Prisma.SortOrder + quota_max_night?: Prisma.SortOrder + expanded?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder + epg_subid?: Prisma.SortOrder +} + +export type deliveryMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + comment?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + address1?: Prisma.SortOrder + address2?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder + longitude?: Prisma.SortOrder + latitude?: Prisma.SortOrder + tel_home?: Prisma.SortOrder + tel_office?: Prisma.SortOrder + tel_office_ext?: Prisma.SortOrder + cell?: Prisma.SortOrder + fax?: Prisma.SortOrder + email?: Prisma.SortOrder + quota_max_day?: Prisma.SortOrder + quota_max_night?: Prisma.SortOrder + contact?: Prisma.SortOrder + expanded?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder + epg_subid?: Prisma.SortOrder +} + +export type deliveryMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + comment?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + address1?: Prisma.SortOrder + address2?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder + longitude?: Prisma.SortOrder + latitude?: Prisma.SortOrder + tel_home?: Prisma.SortOrder + tel_office?: Prisma.SortOrder + tel_office_ext?: Prisma.SortOrder + cell?: Prisma.SortOrder + fax?: Prisma.SortOrder + email?: Prisma.SortOrder + quota_max_day?: Prisma.SortOrder + quota_max_night?: Prisma.SortOrder + contact?: Prisma.SortOrder + expanded?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder + epg_subid?: Prisma.SortOrder +} + +export type deliverySumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + longitude?: Prisma.SortOrder + latitude?: Prisma.SortOrder + quota_max_day?: Prisma.SortOrder + quota_max_night?: Prisma.SortOrder + expanded?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder + epg_subid?: Prisma.SortOrder +} + + + +export type deliverySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + name?: boolean + comment?: boolean + date_orig?: boolean + address1?: boolean + address2?: boolean + city?: boolean + state?: boolean + zip?: boolean + longitude?: boolean + latitude?: boolean + tel_home?: boolean + tel_office?: boolean + tel_office_ext?: boolean + cell?: boolean + fax?: boolean + email?: boolean + quota_max_day?: boolean + quota_max_night?: boolean + contact?: boolean + expanded?: boolean + placemarks_id?: boolean + epg_subid?: boolean +}, ExtArgs["result"]["delivery"]> + + + +export type deliverySelectScalar = { + id?: boolean + account_id?: boolean + name?: boolean + comment?: boolean + date_orig?: boolean + address1?: boolean + address2?: boolean + city?: boolean + state?: boolean + zip?: boolean + longitude?: boolean + latitude?: boolean + tel_home?: boolean + tel_office?: boolean + tel_office_ext?: boolean + cell?: boolean + fax?: boolean + email?: boolean + quota_max_day?: boolean + quota_max_night?: boolean + contact?: boolean + expanded?: boolean + placemarks_id?: boolean + epg_subid?: boolean +} + +export type deliveryOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "name" | "comment" | "date_orig" | "address1" | "address2" | "city" | "state" | "zip" | "longitude" | "latitude" | "tel_home" | "tel_office" | "tel_office_ext" | "cell" | "fax" | "email" | "quota_max_day" | "quota_max_night" | "contact" | "expanded" | "placemarks_id" | "epg_subid", ExtArgs["result"]["delivery"]> + +export type $deliveryPayload = { + name: "delivery" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + account_id: bigint | null + name: string + comment: string + date_orig: bigint | null + address1: string | null + address2: string | null + city: string | null + state: string | null + zip: string | null + longitude: runtime.Decimal + latitude: runtime.Decimal + tel_home: string | null + tel_office: string | null + tel_office_ext: string | null + cell: string | null + fax: string | null + email: string | null + quota_max_day: bigint + quota_max_night: bigint + contact: string | null + expanded: number | null + placemarks_id: bigint | null + epg_subid: number + }, ExtArgs["result"]["delivery"]> + composites: {} +} + +export type deliveryGetPayload = runtime.Types.Result.GetResult + +export type deliveryCountArgs = + Omit & { + select?: DeliveryCountAggregateInputType | true + } + +export interface deliveryDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['delivery'], meta: { name: 'delivery' } } + /** + * Find zero or one Delivery that matches the filter. + * @param {deliveryFindUniqueArgs} args - Arguments to find a Delivery + * @example + * // Get one Delivery + * const delivery = await prisma.delivery.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__deliveryClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Delivery that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {deliveryFindUniqueOrThrowArgs} args - Arguments to find a Delivery + * @example + * // Get one Delivery + * const delivery = await prisma.delivery.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__deliveryClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Delivery 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 {deliveryFindFirstArgs} args - Arguments to find a Delivery + * @example + * // Get one Delivery + * const delivery = await prisma.delivery.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__deliveryClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Delivery 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 {deliveryFindFirstOrThrowArgs} args - Arguments to find a Delivery + * @example + * // Get one Delivery + * const delivery = await prisma.delivery.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__deliveryClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Deliveries 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 {deliveryFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Deliveries + * const deliveries = await prisma.delivery.findMany() + * + * // Get first 10 Deliveries + * const deliveries = await prisma.delivery.findMany({ take: 10 }) + * + * // Only select the `id` + * const deliveryWithIdOnly = await prisma.delivery.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Delivery. + * @param {deliveryCreateArgs} args - Arguments to create a Delivery. + * @example + * // Create one Delivery + * const Delivery = await prisma.delivery.create({ + * data: { + * // ... data to create a Delivery + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__deliveryClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Deliveries. + * @param {deliveryCreateManyArgs} args - Arguments to create many Deliveries. + * @example + * // Create many Deliveries + * const delivery = await prisma.delivery.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Delivery. + * @param {deliveryDeleteArgs} args - Arguments to delete one Delivery. + * @example + * // Delete one Delivery + * const Delivery = await prisma.delivery.delete({ + * where: { + * // ... filter to delete one Delivery + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__deliveryClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Delivery. + * @param {deliveryUpdateArgs} args - Arguments to update one Delivery. + * @example + * // Update one Delivery + * const delivery = await prisma.delivery.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__deliveryClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Deliveries. + * @param {deliveryDeleteManyArgs} args - Arguments to filter Deliveries to delete. + * @example + * // Delete a few Deliveries + * const { count } = await prisma.delivery.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Deliveries. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {deliveryUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Deliveries + * const delivery = await prisma.delivery.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Delivery. + * @param {deliveryUpsertArgs} args - Arguments to update or create a Delivery. + * @example + * // Update or create a Delivery + * const delivery = await prisma.delivery.upsert({ + * create: { + * // ... data to create a Delivery + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Delivery we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__deliveryClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Deliveries. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {deliveryCountArgs} args - Arguments to filter Deliveries to count. + * @example + * // Count the number of Deliveries + * const count = await prisma.delivery.count({ + * where: { + * // ... the filter for the Deliveries 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 Delivery. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {DeliveryAggregateArgs} 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 Delivery. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {deliveryGroupByArgs} 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 deliveryGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: deliveryGroupByArgs['orderBy'] } + : { orderBy?: deliveryGroupByArgs['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 ? GetDeliveryGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the delivery model + */ +readonly fields: deliveryFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for delivery. + * 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__deliveryClient 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 delivery model + */ +export interface deliveryFieldRefs { + readonly id: Prisma.FieldRef<"delivery", 'BigInt'> + readonly account_id: Prisma.FieldRef<"delivery", 'BigInt'> + readonly name: Prisma.FieldRef<"delivery", 'String'> + readonly comment: Prisma.FieldRef<"delivery", 'String'> + readonly date_orig: Prisma.FieldRef<"delivery", 'BigInt'> + readonly address1: Prisma.FieldRef<"delivery", 'String'> + readonly address2: Prisma.FieldRef<"delivery", 'String'> + readonly city: Prisma.FieldRef<"delivery", 'String'> + readonly state: Prisma.FieldRef<"delivery", 'String'> + readonly zip: Prisma.FieldRef<"delivery", 'String'> + readonly longitude: Prisma.FieldRef<"delivery", 'Decimal'> + readonly latitude: Prisma.FieldRef<"delivery", 'Decimal'> + readonly tel_home: Prisma.FieldRef<"delivery", 'String'> + readonly tel_office: Prisma.FieldRef<"delivery", 'String'> + readonly tel_office_ext: Prisma.FieldRef<"delivery", 'String'> + readonly cell: Prisma.FieldRef<"delivery", 'String'> + readonly fax: Prisma.FieldRef<"delivery", 'String'> + readonly email: Prisma.FieldRef<"delivery", 'String'> + readonly quota_max_day: Prisma.FieldRef<"delivery", 'BigInt'> + readonly quota_max_night: Prisma.FieldRef<"delivery", 'BigInt'> + readonly contact: Prisma.FieldRef<"delivery", 'String'> + readonly expanded: Prisma.FieldRef<"delivery", 'Int'> + readonly placemarks_id: Prisma.FieldRef<"delivery", 'BigInt'> + readonly epg_subid: Prisma.FieldRef<"delivery", 'Int'> +} + + +// Custom InputTypes +/** + * delivery findUnique + */ +export type deliveryFindUniqueArgs = { + /** + * Select specific fields to fetch from the delivery + */ + select?: Prisma.deliverySelect | null + /** + * Omit specific fields from the delivery + */ + omit?: Prisma.deliveryOmit | null + /** + * Filter, which delivery to fetch. + */ + where: Prisma.deliveryWhereUniqueInput +} + +/** + * delivery findUniqueOrThrow + */ +export type deliveryFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the delivery + */ + select?: Prisma.deliverySelect | null + /** + * Omit specific fields from the delivery + */ + omit?: Prisma.deliveryOmit | null + /** + * Filter, which delivery to fetch. + */ + where: Prisma.deliveryWhereUniqueInput +} + +/** + * delivery findFirst + */ +export type deliveryFindFirstArgs = { + /** + * Select specific fields to fetch from the delivery + */ + select?: Prisma.deliverySelect | null + /** + * Omit specific fields from the delivery + */ + omit?: Prisma.deliveryOmit | null + /** + * Filter, which delivery to fetch. + */ + where?: Prisma.deliveryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of deliveries to fetch. + */ + orderBy?: Prisma.deliveryOrderByWithRelationInput | Prisma.deliveryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for deliveries. + */ + cursor?: Prisma.deliveryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` deliveries 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` deliveries. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of deliveries. + */ + distinct?: Prisma.DeliveryScalarFieldEnum | Prisma.DeliveryScalarFieldEnum[] +} + +/** + * delivery findFirstOrThrow + */ +export type deliveryFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the delivery + */ + select?: Prisma.deliverySelect | null + /** + * Omit specific fields from the delivery + */ + omit?: Prisma.deliveryOmit | null + /** + * Filter, which delivery to fetch. + */ + where?: Prisma.deliveryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of deliveries to fetch. + */ + orderBy?: Prisma.deliveryOrderByWithRelationInput | Prisma.deliveryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for deliveries. + */ + cursor?: Prisma.deliveryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` deliveries 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` deliveries. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of deliveries. + */ + distinct?: Prisma.DeliveryScalarFieldEnum | Prisma.DeliveryScalarFieldEnum[] +} + +/** + * delivery findMany + */ +export type deliveryFindManyArgs = { + /** + * Select specific fields to fetch from the delivery + */ + select?: Prisma.deliverySelect | null + /** + * Omit specific fields from the delivery + */ + omit?: Prisma.deliveryOmit | null + /** + * Filter, which deliveries to fetch. + */ + where?: Prisma.deliveryWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of deliveries to fetch. + */ + orderBy?: Prisma.deliveryOrderByWithRelationInput | Prisma.deliveryOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing deliveries. + */ + cursor?: Prisma.deliveryWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` deliveries 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` deliveries. + */ + skip?: number + distinct?: Prisma.DeliveryScalarFieldEnum | Prisma.DeliveryScalarFieldEnum[] +} + +/** + * delivery create + */ +export type deliveryCreateArgs = { + /** + * Select specific fields to fetch from the delivery + */ + select?: Prisma.deliverySelect | null + /** + * Omit specific fields from the delivery + */ + omit?: Prisma.deliveryOmit | null + /** + * The data needed to create a delivery. + */ + data: Prisma.XOR +} + +/** + * delivery createMany + */ +export type deliveryCreateManyArgs = { + /** + * The data used to create many deliveries. + */ + data: Prisma.deliveryCreateManyInput | Prisma.deliveryCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * delivery update + */ +export type deliveryUpdateArgs = { + /** + * Select specific fields to fetch from the delivery + */ + select?: Prisma.deliverySelect | null + /** + * Omit specific fields from the delivery + */ + omit?: Prisma.deliveryOmit | null + /** + * The data needed to update a delivery. + */ + data: Prisma.XOR + /** + * Choose, which delivery to update. + */ + where: Prisma.deliveryWhereUniqueInput +} + +/** + * delivery updateMany + */ +export type deliveryUpdateManyArgs = { + /** + * The data used to update deliveries. + */ + data: Prisma.XOR + /** + * Filter which deliveries to update + */ + where?: Prisma.deliveryWhereInput + /** + * Limit how many deliveries to update. + */ + limit?: number +} + +/** + * delivery upsert + */ +export type deliveryUpsertArgs = { + /** + * Select specific fields to fetch from the delivery + */ + select?: Prisma.deliverySelect | null + /** + * Omit specific fields from the delivery + */ + omit?: Prisma.deliveryOmit | null + /** + * The filter to search for the delivery to update in case it exists. + */ + where: Prisma.deliveryWhereUniqueInput + /** + * In case the delivery found by the `where` argument doesn't exist, create a new delivery with this data. + */ + create: Prisma.XOR + /** + * In case the delivery was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * delivery delete + */ +export type deliveryDeleteArgs = { + /** + * Select specific fields to fetch from the delivery + */ + select?: Prisma.deliverySelect | null + /** + * Omit specific fields from the delivery + */ + omit?: Prisma.deliveryOmit | null + /** + * Filter which delivery to delete. + */ + where: Prisma.deliveryWhereUniqueInput +} + +/** + * delivery deleteMany + */ +export type deliveryDeleteManyArgs = { + /** + * Filter which deliveries to delete + */ + where?: Prisma.deliveryWhereInput + /** + * Limit how many deliveries to delete. + */ + limit?: number +} + +/** + * delivery without action + */ +export type deliveryDefaultArgs = { + /** + * Select specific fields to fetch from the delivery + */ + select?: Prisma.deliverySelect | null + /** + * Omit specific fields from the delivery + */ + omit?: Prisma.deliveryOmit | null +} diff --git a/prisma/generated/mariadb/models/delivery_history.ts b/prisma/generated/mariadb/models/delivery_history.ts new file mode 100644 index 0000000..602ac61 --- /dev/null +++ b/prisma/generated/mariadb/models/delivery_history.ts @@ -0,0 +1,1169 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `delivery_history` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model delivery_history + * + */ +export type delivery_historyModel = runtime.Types.Result.DefaultSelection + +export type AggregateDelivery_history = { + _count: Delivery_historyCountAggregateOutputType | null + _avg: Delivery_historyAvgAggregateOutputType | null + _sum: Delivery_historySumAggregateOutputType | null + _min: Delivery_historyMinAggregateOutputType | null + _max: Delivery_historyMaxAggregateOutputType | null +} + +export type Delivery_historyAvgAggregateOutputType = { + id: number | null + account_id: number | null + date_orig: number | null +} + +export type Delivery_historySumAggregateOutputType = { + id: number | null + account_id: number | null + date_orig: bigint | null +} + +export type Delivery_historyMinAggregateOutputType = { + id: number | null + account_id: number | null + date_orig: bigint | null + address1: string | null + address2: string | null + city: string | null + state: string | null + zip: string | null +} + +export type Delivery_historyMaxAggregateOutputType = { + id: number | null + account_id: number | null + date_orig: bigint | null + address1: string | null + address2: string | null + city: string | null + state: string | null + zip: string | null +} + +export type Delivery_historyCountAggregateOutputType = { + id: number + account_id: number + date_orig: number + address1: number + address2: number + city: number + state: number + zip: number + _all: number +} + + +export type Delivery_historyAvgAggregateInputType = { + id?: true + account_id?: true + date_orig?: true +} + +export type Delivery_historySumAggregateInputType = { + id?: true + account_id?: true + date_orig?: true +} + +export type Delivery_historyMinAggregateInputType = { + id?: true + account_id?: true + date_orig?: true + address1?: true + address2?: true + city?: true + state?: true + zip?: true +} + +export type Delivery_historyMaxAggregateInputType = { + id?: true + account_id?: true + date_orig?: true + address1?: true + address2?: true + city?: true + state?: true + zip?: true +} + +export type Delivery_historyCountAggregateInputType = { + id?: true + account_id?: true + date_orig?: true + address1?: true + address2?: true + city?: true + state?: true + zip?: true + _all?: true +} + +export type Delivery_historyAggregateArgs = { + /** + * Filter which delivery_history to aggregate. + */ + where?: Prisma.delivery_historyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of delivery_histories to fetch. + */ + orderBy?: Prisma.delivery_historyOrderByWithRelationInput | Prisma.delivery_historyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.delivery_historyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` delivery_histories 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` delivery_histories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned delivery_histories + **/ + _count?: true | Delivery_historyCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Delivery_historyAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Delivery_historySumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Delivery_historyMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Delivery_historyMaxAggregateInputType +} + +export type GetDelivery_historyAggregateType = { + [P in keyof T & keyof AggregateDelivery_history]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type delivery_historyGroupByArgs = { + where?: Prisma.delivery_historyWhereInput + orderBy?: Prisma.delivery_historyOrderByWithAggregationInput | Prisma.delivery_historyOrderByWithAggregationInput[] + by: Prisma.Delivery_historyScalarFieldEnum[] | Prisma.Delivery_historyScalarFieldEnum + having?: Prisma.delivery_historyScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Delivery_historyCountAggregateInputType | true + _avg?: Delivery_historyAvgAggregateInputType + _sum?: Delivery_historySumAggregateInputType + _min?: Delivery_historyMinAggregateInputType + _max?: Delivery_historyMaxAggregateInputType +} + +export type Delivery_historyGroupByOutputType = { + id: number + account_id: number + date_orig: bigint + address1: string + address2: string + city: string + state: string + zip: string + _count: Delivery_historyCountAggregateOutputType | null + _avg: Delivery_historyAvgAggregateOutputType | null + _sum: Delivery_historySumAggregateOutputType | null + _min: Delivery_historyMinAggregateOutputType | null + _max: Delivery_historyMaxAggregateOutputType | null +} + +type GetDelivery_historyGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Delivery_historyGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type delivery_historyWhereInput = { + AND?: Prisma.delivery_historyWhereInput | Prisma.delivery_historyWhereInput[] + OR?: Prisma.delivery_historyWhereInput[] + NOT?: Prisma.delivery_historyWhereInput | Prisma.delivery_historyWhereInput[] + id?: Prisma.IntFilter<"delivery_history"> | number + account_id?: Prisma.IntFilter<"delivery_history"> | number + date_orig?: Prisma.BigIntFilter<"delivery_history"> | bigint | number + address1?: Prisma.StringFilter<"delivery_history"> | string + address2?: Prisma.StringFilter<"delivery_history"> | string + city?: Prisma.StringFilter<"delivery_history"> | string + state?: Prisma.StringFilter<"delivery_history"> | string + zip?: Prisma.StringFilter<"delivery_history"> | string +} + +export type delivery_historyOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + address1?: Prisma.SortOrder + address2?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder + _relevance?: Prisma.delivery_historyOrderByRelevanceInput +} + +export type delivery_historyWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.delivery_historyWhereInput | Prisma.delivery_historyWhereInput[] + OR?: Prisma.delivery_historyWhereInput[] + NOT?: Prisma.delivery_historyWhereInput | Prisma.delivery_historyWhereInput[] + account_id?: Prisma.IntFilter<"delivery_history"> | number + date_orig?: Prisma.BigIntFilter<"delivery_history"> | bigint | number + address1?: Prisma.StringFilter<"delivery_history"> | string + address2?: Prisma.StringFilter<"delivery_history"> | string + city?: Prisma.StringFilter<"delivery_history"> | string + state?: Prisma.StringFilter<"delivery_history"> | string + zip?: Prisma.StringFilter<"delivery_history"> | string +}, "id"> + +export type delivery_historyOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + address1?: Prisma.SortOrder + address2?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder + _count?: Prisma.delivery_historyCountOrderByAggregateInput + _avg?: Prisma.delivery_historyAvgOrderByAggregateInput + _max?: Prisma.delivery_historyMaxOrderByAggregateInput + _min?: Prisma.delivery_historyMinOrderByAggregateInput + _sum?: Prisma.delivery_historySumOrderByAggregateInput +} + +export type delivery_historyScalarWhereWithAggregatesInput = { + AND?: Prisma.delivery_historyScalarWhereWithAggregatesInput | Prisma.delivery_historyScalarWhereWithAggregatesInput[] + OR?: Prisma.delivery_historyScalarWhereWithAggregatesInput[] + NOT?: Prisma.delivery_historyScalarWhereWithAggregatesInput | Prisma.delivery_historyScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"delivery_history"> | number + account_id?: Prisma.IntWithAggregatesFilter<"delivery_history"> | number + date_orig?: Prisma.BigIntWithAggregatesFilter<"delivery_history"> | bigint | number + address1?: Prisma.StringWithAggregatesFilter<"delivery_history"> | string + address2?: Prisma.StringWithAggregatesFilter<"delivery_history"> | string + city?: Prisma.StringWithAggregatesFilter<"delivery_history"> | string + state?: Prisma.StringWithAggregatesFilter<"delivery_history"> | string + zip?: Prisma.StringWithAggregatesFilter<"delivery_history"> | string +} + +export type delivery_historyCreateInput = { + account_id: number + date_orig: bigint | number + address1: string + address2: string + city: string + state: string + zip: string +} + +export type delivery_historyUncheckedCreateInput = { + id?: number + account_id: number + date_orig: bigint | number + address1: string + address2: string + city: string + state: string + zip: string +} + +export type delivery_historyUpdateInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + address1?: Prisma.StringFieldUpdateOperationsInput | string + address2?: Prisma.StringFieldUpdateOperationsInput | string + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type delivery_historyUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + address1?: Prisma.StringFieldUpdateOperationsInput | string + address2?: Prisma.StringFieldUpdateOperationsInput | string + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type delivery_historyCreateManyInput = { + id?: number + account_id: number + date_orig: bigint | number + address1: string + address2: string + city: string + state: string + zip: string +} + +export type delivery_historyUpdateManyMutationInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + address1?: Prisma.StringFieldUpdateOperationsInput | string + address2?: Prisma.StringFieldUpdateOperationsInput | string + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type delivery_historyUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + address1?: Prisma.StringFieldUpdateOperationsInput | string + address2?: Prisma.StringFieldUpdateOperationsInput | string + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type delivery_historyOrderByRelevanceInput = { + fields: Prisma.delivery_historyOrderByRelevanceFieldEnum | Prisma.delivery_historyOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type delivery_historyCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + address1?: Prisma.SortOrder + address2?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder +} + +export type delivery_historyAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder +} + +export type delivery_historyMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + address1?: Prisma.SortOrder + address2?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder +} + +export type delivery_historyMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + address1?: Prisma.SortOrder + address2?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder +} + +export type delivery_historySumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder +} + + + +export type delivery_historySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + date_orig?: boolean + address1?: boolean + address2?: boolean + city?: boolean + state?: boolean + zip?: boolean +}, ExtArgs["result"]["delivery_history"]> + + + +export type delivery_historySelectScalar = { + id?: boolean + account_id?: boolean + date_orig?: boolean + address1?: boolean + address2?: boolean + city?: boolean + state?: boolean + zip?: boolean +} + +export type delivery_historyOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date_orig" | "address1" | "address2" | "city" | "state" | "zip", ExtArgs["result"]["delivery_history"]> + +export type $delivery_historyPayload = { + name: "delivery_history" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: number + date_orig: bigint + address1: string + address2: string + city: string + state: string + zip: string + }, ExtArgs["result"]["delivery_history"]> + composites: {} +} + +export type delivery_historyGetPayload = runtime.Types.Result.GetResult + +export type delivery_historyCountArgs = + Omit & { + select?: Delivery_historyCountAggregateInputType | true + } + +export interface delivery_historyDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['delivery_history'], meta: { name: 'delivery_history' } } + /** + * Find zero or one Delivery_history that matches the filter. + * @param {delivery_historyFindUniqueArgs} args - Arguments to find a Delivery_history + * @example + * // Get one Delivery_history + * const delivery_history = await prisma.delivery_history.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Delivery_history that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {delivery_historyFindUniqueOrThrowArgs} args - Arguments to find a Delivery_history + * @example + * // Get one Delivery_history + * const delivery_history = await prisma.delivery_history.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Delivery_history 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 {delivery_historyFindFirstArgs} args - Arguments to find a Delivery_history + * @example + * // Get one Delivery_history + * const delivery_history = await prisma.delivery_history.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Delivery_history 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 {delivery_historyFindFirstOrThrowArgs} args - Arguments to find a Delivery_history + * @example + * // Get one Delivery_history + * const delivery_history = await prisma.delivery_history.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Delivery_histories 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 {delivery_historyFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Delivery_histories + * const delivery_histories = await prisma.delivery_history.findMany() + * + * // Get first 10 Delivery_histories + * const delivery_histories = await prisma.delivery_history.findMany({ take: 10 }) + * + * // Only select the `id` + * const delivery_historyWithIdOnly = await prisma.delivery_history.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Delivery_history. + * @param {delivery_historyCreateArgs} args - Arguments to create a Delivery_history. + * @example + * // Create one Delivery_history + * const Delivery_history = await prisma.delivery_history.create({ + * data: { + * // ... data to create a Delivery_history + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Delivery_histories. + * @param {delivery_historyCreateManyArgs} args - Arguments to create many Delivery_histories. + * @example + * // Create many Delivery_histories + * const delivery_history = await prisma.delivery_history.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Delivery_history. + * @param {delivery_historyDeleteArgs} args - Arguments to delete one Delivery_history. + * @example + * // Delete one Delivery_history + * const Delivery_history = await prisma.delivery_history.delete({ + * where: { + * // ... filter to delete one Delivery_history + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Delivery_history. + * @param {delivery_historyUpdateArgs} args - Arguments to update one Delivery_history. + * @example + * // Update one Delivery_history + * const delivery_history = await prisma.delivery_history.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Delivery_histories. + * @param {delivery_historyDeleteManyArgs} args - Arguments to filter Delivery_histories to delete. + * @example + * // Delete a few Delivery_histories + * const { count } = await prisma.delivery_history.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Delivery_histories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {delivery_historyUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Delivery_histories + * const delivery_history = await prisma.delivery_history.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Delivery_history. + * @param {delivery_historyUpsertArgs} args - Arguments to update or create a Delivery_history. + * @example + * // Update or create a Delivery_history + * const delivery_history = await prisma.delivery_history.upsert({ + * create: { + * // ... data to create a Delivery_history + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Delivery_history we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Delivery_histories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {delivery_historyCountArgs} args - Arguments to filter Delivery_histories to count. + * @example + * // Count the number of Delivery_histories + * const count = await prisma.delivery_history.count({ + * where: { + * // ... the filter for the Delivery_histories 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 Delivery_history. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Delivery_historyAggregateArgs} 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 Delivery_history. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {delivery_historyGroupByArgs} 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 delivery_historyGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: delivery_historyGroupByArgs['orderBy'] } + : { orderBy?: delivery_historyGroupByArgs['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 ? GetDelivery_historyGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the delivery_history model + */ +readonly fields: delivery_historyFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for delivery_history. + * 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__delivery_historyClient 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 delivery_history model + */ +export interface delivery_historyFieldRefs { + readonly id: Prisma.FieldRef<"delivery_history", 'Int'> + readonly account_id: Prisma.FieldRef<"delivery_history", 'Int'> + readonly date_orig: Prisma.FieldRef<"delivery_history", 'BigInt'> + readonly address1: Prisma.FieldRef<"delivery_history", 'String'> + readonly address2: Prisma.FieldRef<"delivery_history", 'String'> + readonly city: Prisma.FieldRef<"delivery_history", 'String'> + readonly state: Prisma.FieldRef<"delivery_history", 'String'> + readonly zip: Prisma.FieldRef<"delivery_history", 'String'> +} + + +// Custom InputTypes +/** + * delivery_history findUnique + */ +export type delivery_historyFindUniqueArgs = { + /** + * Select specific fields to fetch from the delivery_history + */ + select?: Prisma.delivery_historySelect | null + /** + * Omit specific fields from the delivery_history + */ + omit?: Prisma.delivery_historyOmit | null + /** + * Filter, which delivery_history to fetch. + */ + where: Prisma.delivery_historyWhereUniqueInput +} + +/** + * delivery_history findUniqueOrThrow + */ +export type delivery_historyFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the delivery_history + */ + select?: Prisma.delivery_historySelect | null + /** + * Omit specific fields from the delivery_history + */ + omit?: Prisma.delivery_historyOmit | null + /** + * Filter, which delivery_history to fetch. + */ + where: Prisma.delivery_historyWhereUniqueInput +} + +/** + * delivery_history findFirst + */ +export type delivery_historyFindFirstArgs = { + /** + * Select specific fields to fetch from the delivery_history + */ + select?: Prisma.delivery_historySelect | null + /** + * Omit specific fields from the delivery_history + */ + omit?: Prisma.delivery_historyOmit | null + /** + * Filter, which delivery_history to fetch. + */ + where?: Prisma.delivery_historyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of delivery_histories to fetch. + */ + orderBy?: Prisma.delivery_historyOrderByWithRelationInput | Prisma.delivery_historyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for delivery_histories. + */ + cursor?: Prisma.delivery_historyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` delivery_histories 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` delivery_histories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of delivery_histories. + */ + distinct?: Prisma.Delivery_historyScalarFieldEnum | Prisma.Delivery_historyScalarFieldEnum[] +} + +/** + * delivery_history findFirstOrThrow + */ +export type delivery_historyFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the delivery_history + */ + select?: Prisma.delivery_historySelect | null + /** + * Omit specific fields from the delivery_history + */ + omit?: Prisma.delivery_historyOmit | null + /** + * Filter, which delivery_history to fetch. + */ + where?: Prisma.delivery_historyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of delivery_histories to fetch. + */ + orderBy?: Prisma.delivery_historyOrderByWithRelationInput | Prisma.delivery_historyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for delivery_histories. + */ + cursor?: Prisma.delivery_historyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` delivery_histories 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` delivery_histories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of delivery_histories. + */ + distinct?: Prisma.Delivery_historyScalarFieldEnum | Prisma.Delivery_historyScalarFieldEnum[] +} + +/** + * delivery_history findMany + */ +export type delivery_historyFindManyArgs = { + /** + * Select specific fields to fetch from the delivery_history + */ + select?: Prisma.delivery_historySelect | null + /** + * Omit specific fields from the delivery_history + */ + omit?: Prisma.delivery_historyOmit | null + /** + * Filter, which delivery_histories to fetch. + */ + where?: Prisma.delivery_historyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of delivery_histories to fetch. + */ + orderBy?: Prisma.delivery_historyOrderByWithRelationInput | Prisma.delivery_historyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing delivery_histories. + */ + cursor?: Prisma.delivery_historyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` delivery_histories 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` delivery_histories. + */ + skip?: number + distinct?: Prisma.Delivery_historyScalarFieldEnum | Prisma.Delivery_historyScalarFieldEnum[] +} + +/** + * delivery_history create + */ +export type delivery_historyCreateArgs = { + /** + * Select specific fields to fetch from the delivery_history + */ + select?: Prisma.delivery_historySelect | null + /** + * Omit specific fields from the delivery_history + */ + omit?: Prisma.delivery_historyOmit | null + /** + * The data needed to create a delivery_history. + */ + data: Prisma.XOR +} + +/** + * delivery_history createMany + */ +export type delivery_historyCreateManyArgs = { + /** + * The data used to create many delivery_histories. + */ + data: Prisma.delivery_historyCreateManyInput | Prisma.delivery_historyCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * delivery_history update + */ +export type delivery_historyUpdateArgs = { + /** + * Select specific fields to fetch from the delivery_history + */ + select?: Prisma.delivery_historySelect | null + /** + * Omit specific fields from the delivery_history + */ + omit?: Prisma.delivery_historyOmit | null + /** + * The data needed to update a delivery_history. + */ + data: Prisma.XOR + /** + * Choose, which delivery_history to update. + */ + where: Prisma.delivery_historyWhereUniqueInput +} + +/** + * delivery_history updateMany + */ +export type delivery_historyUpdateManyArgs = { + /** + * The data used to update delivery_histories. + */ + data: Prisma.XOR + /** + * Filter which delivery_histories to update + */ + where?: Prisma.delivery_historyWhereInput + /** + * Limit how many delivery_histories to update. + */ + limit?: number +} + +/** + * delivery_history upsert + */ +export type delivery_historyUpsertArgs = { + /** + * Select specific fields to fetch from the delivery_history + */ + select?: Prisma.delivery_historySelect | null + /** + * Omit specific fields from the delivery_history + */ + omit?: Prisma.delivery_historyOmit | null + /** + * The filter to search for the delivery_history to update in case it exists. + */ + where: Prisma.delivery_historyWhereUniqueInput + /** + * In case the delivery_history found by the `where` argument doesn't exist, create a new delivery_history with this data. + */ + create: Prisma.XOR + /** + * In case the delivery_history was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * delivery_history delete + */ +export type delivery_historyDeleteArgs = { + /** + * Select specific fields to fetch from the delivery_history + */ + select?: Prisma.delivery_historySelect | null + /** + * Omit specific fields from the delivery_history + */ + omit?: Prisma.delivery_historyOmit | null + /** + * Filter which delivery_history to delete. + */ + where: Prisma.delivery_historyWhereUniqueInput +} + +/** + * delivery_history deleteMany + */ +export type delivery_historyDeleteManyArgs = { + /** + * Filter which delivery_histories to delete + */ + where?: Prisma.delivery_historyWhereInput + /** + * Limit how many delivery_histories to delete. + */ + limit?: number +} + +/** + * delivery_history without action + */ +export type delivery_historyDefaultArgs = { + /** + * Select specific fields to fetch from the delivery_history + */ + select?: Prisma.delivery_historySelect | null + /** + * Omit specific fields from the delivery_history + */ + omit?: Prisma.delivery_historyOmit | null +} diff --git a/prisma/generated/mariadb/models/deposit_slip.ts b/prisma/generated/mariadb/models/deposit_slip.ts new file mode 100644 index 0000000..0b85b57 --- /dev/null +++ b/prisma/generated/mariadb/models/deposit_slip.ts @@ -0,0 +1,1143 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `deposit_slip` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model deposit_slip + * + */ +export type deposit_slipModel = runtime.Types.Result.DefaultSelection + +export type AggregateDeposit_slip = { + _count: Deposit_slipCountAggregateOutputType | null + _avg: Deposit_slipAvgAggregateOutputType | null + _sum: Deposit_slipSumAggregateOutputType | null + _min: Deposit_slipMinAggregateOutputType | null + _max: Deposit_slipMaxAggregateOutputType | null +} + +export type Deposit_slipAvgAggregateOutputType = { + id: number | null + amount: number | null + date: number | null +} + +export type Deposit_slipSumAggregateOutputType = { + id: number | null + amount: number | null + date: bigint | null +} + +export type Deposit_slipMinAggregateOutputType = { + id: number | null + customer_id: string | null + name: string | null + amount: number | null + type: string | null + desc: string | null + date: bigint | null +} + +export type Deposit_slipMaxAggregateOutputType = { + id: number | null + customer_id: string | null + name: string | null + amount: number | null + type: string | null + desc: string | null + date: bigint | null +} + +export type Deposit_slipCountAggregateOutputType = { + id: number + customer_id: number + name: number + amount: number + type: number + desc: number + date: number + _all: number +} + + +export type Deposit_slipAvgAggregateInputType = { + id?: true + amount?: true + date?: true +} + +export type Deposit_slipSumAggregateInputType = { + id?: true + amount?: true + date?: true +} + +export type Deposit_slipMinAggregateInputType = { + id?: true + customer_id?: true + name?: true + amount?: true + type?: true + desc?: true + date?: true +} + +export type Deposit_slipMaxAggregateInputType = { + id?: true + customer_id?: true + name?: true + amount?: true + type?: true + desc?: true + date?: true +} + +export type Deposit_slipCountAggregateInputType = { + id?: true + customer_id?: true + name?: true + amount?: true + type?: true + desc?: true + date?: true + _all?: true +} + +export type Deposit_slipAggregateArgs = { + /** + * Filter which deposit_slip to aggregate. + */ + where?: Prisma.deposit_slipWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of deposit_slips to fetch. + */ + orderBy?: Prisma.deposit_slipOrderByWithRelationInput | Prisma.deposit_slipOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.deposit_slipWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` deposit_slips 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` deposit_slips. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned deposit_slips + **/ + _count?: true | Deposit_slipCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Deposit_slipAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Deposit_slipSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Deposit_slipMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Deposit_slipMaxAggregateInputType +} + +export type GetDeposit_slipAggregateType = { + [P in keyof T & keyof AggregateDeposit_slip]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type deposit_slipGroupByArgs = { + where?: Prisma.deposit_slipWhereInput + orderBy?: Prisma.deposit_slipOrderByWithAggregationInput | Prisma.deposit_slipOrderByWithAggregationInput[] + by: Prisma.Deposit_slipScalarFieldEnum[] | Prisma.Deposit_slipScalarFieldEnum + having?: Prisma.deposit_slipScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Deposit_slipCountAggregateInputType | true + _avg?: Deposit_slipAvgAggregateInputType + _sum?: Deposit_slipSumAggregateInputType + _min?: Deposit_slipMinAggregateInputType + _max?: Deposit_slipMaxAggregateInputType +} + +export type Deposit_slipGroupByOutputType = { + id: number + customer_id: string | null + name: string | null + amount: number + type: string + desc: string | null + date: bigint | null + _count: Deposit_slipCountAggregateOutputType | null + _avg: Deposit_slipAvgAggregateOutputType | null + _sum: Deposit_slipSumAggregateOutputType | null + _min: Deposit_slipMinAggregateOutputType | null + _max: Deposit_slipMaxAggregateOutputType | null +} + +type GetDeposit_slipGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Deposit_slipGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type deposit_slipWhereInput = { + AND?: Prisma.deposit_slipWhereInput | Prisma.deposit_slipWhereInput[] + OR?: Prisma.deposit_slipWhereInput[] + NOT?: Prisma.deposit_slipWhereInput | Prisma.deposit_slipWhereInput[] + id?: Prisma.IntFilter<"deposit_slip"> | number + customer_id?: Prisma.StringNullableFilter<"deposit_slip"> | string | null + name?: Prisma.StringNullableFilter<"deposit_slip"> | string | null + amount?: Prisma.FloatFilter<"deposit_slip"> | number + type?: Prisma.StringFilter<"deposit_slip"> | string + desc?: Prisma.StringNullableFilter<"deposit_slip"> | string | null + date?: Prisma.BigIntNullableFilter<"deposit_slip"> | bigint | number | null +} + +export type deposit_slipOrderByWithRelationInput = { + id?: Prisma.SortOrder + customer_id?: Prisma.SortOrderInput | Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrder + type?: Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.deposit_slipOrderByRelevanceInput +} + +export type deposit_slipWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.deposit_slipWhereInput | Prisma.deposit_slipWhereInput[] + OR?: Prisma.deposit_slipWhereInput[] + NOT?: Prisma.deposit_slipWhereInput | Prisma.deposit_slipWhereInput[] + customer_id?: Prisma.StringNullableFilter<"deposit_slip"> | string | null + name?: Prisma.StringNullableFilter<"deposit_slip"> | string | null + amount?: Prisma.FloatFilter<"deposit_slip"> | number + type?: Prisma.StringFilter<"deposit_slip"> | string + desc?: Prisma.StringNullableFilter<"deposit_slip"> | string | null + date?: Prisma.BigIntNullableFilter<"deposit_slip"> | bigint | number | null +}, "id"> + +export type deposit_slipOrderByWithAggregationInput = { + id?: Prisma.SortOrder + customer_id?: Prisma.SortOrderInput | Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrder + type?: Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.deposit_slipCountOrderByAggregateInput + _avg?: Prisma.deposit_slipAvgOrderByAggregateInput + _max?: Prisma.deposit_slipMaxOrderByAggregateInput + _min?: Prisma.deposit_slipMinOrderByAggregateInput + _sum?: Prisma.deposit_slipSumOrderByAggregateInput +} + +export type deposit_slipScalarWhereWithAggregatesInput = { + AND?: Prisma.deposit_slipScalarWhereWithAggregatesInput | Prisma.deposit_slipScalarWhereWithAggregatesInput[] + OR?: Prisma.deposit_slipScalarWhereWithAggregatesInput[] + NOT?: Prisma.deposit_slipScalarWhereWithAggregatesInput | Prisma.deposit_slipScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"deposit_slip"> | number + customer_id?: Prisma.StringNullableWithAggregatesFilter<"deposit_slip"> | string | null + name?: Prisma.StringNullableWithAggregatesFilter<"deposit_slip"> | string | null + amount?: Prisma.FloatWithAggregatesFilter<"deposit_slip"> | number + type?: Prisma.StringWithAggregatesFilter<"deposit_slip"> | string + desc?: Prisma.StringNullableWithAggregatesFilter<"deposit_slip"> | string | null + date?: Prisma.BigIntNullableWithAggregatesFilter<"deposit_slip"> | bigint | number | null +} + +export type deposit_slipCreateInput = { + customer_id?: string | null + name?: string | null + amount?: number + type: string + desc?: string | null + date?: bigint | number | null +} + +export type deposit_slipUncheckedCreateInput = { + id?: number + customer_id?: string | null + name?: string | null + amount?: number + type: string + desc?: string | null + date?: bigint | number | null +} + +export type deposit_slipUpdateInput = { + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + amount?: Prisma.FloatFieldUpdateOperationsInput | number + type?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type deposit_slipUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + amount?: Prisma.FloatFieldUpdateOperationsInput | number + type?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type deposit_slipCreateManyInput = { + id?: number + customer_id?: string | null + name?: string | null + amount?: number + type: string + desc?: string | null + date?: bigint | number | null +} + +export type deposit_slipUpdateManyMutationInput = { + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + amount?: Prisma.FloatFieldUpdateOperationsInput | number + type?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type deposit_slipUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + amount?: Prisma.FloatFieldUpdateOperationsInput | number + type?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type deposit_slipOrderByRelevanceInput = { + fields: Prisma.deposit_slipOrderByRelevanceFieldEnum | Prisma.deposit_slipOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type deposit_slipCountOrderByAggregateInput = { + id?: Prisma.SortOrder + customer_id?: Prisma.SortOrder + name?: Prisma.SortOrder + amount?: Prisma.SortOrder + type?: Prisma.SortOrder + desc?: Prisma.SortOrder + date?: Prisma.SortOrder +} + +export type deposit_slipAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + amount?: Prisma.SortOrder + date?: Prisma.SortOrder +} + +export type deposit_slipMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + customer_id?: Prisma.SortOrder + name?: Prisma.SortOrder + amount?: Prisma.SortOrder + type?: Prisma.SortOrder + desc?: Prisma.SortOrder + date?: Prisma.SortOrder +} + +export type deposit_slipMinOrderByAggregateInput = { + id?: Prisma.SortOrder + customer_id?: Prisma.SortOrder + name?: Prisma.SortOrder + amount?: Prisma.SortOrder + type?: Prisma.SortOrder + desc?: Prisma.SortOrder + date?: Prisma.SortOrder +} + +export type deposit_slipSumOrderByAggregateInput = { + id?: Prisma.SortOrder + amount?: Prisma.SortOrder + date?: Prisma.SortOrder +} + + + +export type deposit_slipSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + customer_id?: boolean + name?: boolean + amount?: boolean + type?: boolean + desc?: boolean + date?: boolean +}, ExtArgs["result"]["deposit_slip"]> + + + +export type deposit_slipSelectScalar = { + id?: boolean + customer_id?: boolean + name?: boolean + amount?: boolean + type?: boolean + desc?: boolean + date?: boolean +} + +export type deposit_slipOmit = runtime.Types.Extensions.GetOmit<"id" | "customer_id" | "name" | "amount" | "type" | "desc" | "date", ExtArgs["result"]["deposit_slip"]> + +export type $deposit_slipPayload = { + name: "deposit_slip" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + customer_id: string | null + name: string | null + amount: number + type: string + desc: string | null + date: bigint | null + }, ExtArgs["result"]["deposit_slip"]> + composites: {} +} + +export type deposit_slipGetPayload = runtime.Types.Result.GetResult + +export type deposit_slipCountArgs = + Omit & { + select?: Deposit_slipCountAggregateInputType | true + } + +export interface deposit_slipDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['deposit_slip'], meta: { name: 'deposit_slip' } } + /** + * Find zero or one Deposit_slip that matches the filter. + * @param {deposit_slipFindUniqueArgs} args - Arguments to find a Deposit_slip + * @example + * // Get one Deposit_slip + * const deposit_slip = await prisma.deposit_slip.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__deposit_slipClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Deposit_slip that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {deposit_slipFindUniqueOrThrowArgs} args - Arguments to find a Deposit_slip + * @example + * // Get one Deposit_slip + * const deposit_slip = await prisma.deposit_slip.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__deposit_slipClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Deposit_slip 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 {deposit_slipFindFirstArgs} args - Arguments to find a Deposit_slip + * @example + * // Get one Deposit_slip + * const deposit_slip = await prisma.deposit_slip.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__deposit_slipClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Deposit_slip 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 {deposit_slipFindFirstOrThrowArgs} args - Arguments to find a Deposit_slip + * @example + * // Get one Deposit_slip + * const deposit_slip = await prisma.deposit_slip.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__deposit_slipClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Deposit_slips 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 {deposit_slipFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Deposit_slips + * const deposit_slips = await prisma.deposit_slip.findMany() + * + * // Get first 10 Deposit_slips + * const deposit_slips = await prisma.deposit_slip.findMany({ take: 10 }) + * + * // Only select the `id` + * const deposit_slipWithIdOnly = await prisma.deposit_slip.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Deposit_slip. + * @param {deposit_slipCreateArgs} args - Arguments to create a Deposit_slip. + * @example + * // Create one Deposit_slip + * const Deposit_slip = await prisma.deposit_slip.create({ + * data: { + * // ... data to create a Deposit_slip + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__deposit_slipClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Deposit_slips. + * @param {deposit_slipCreateManyArgs} args - Arguments to create many Deposit_slips. + * @example + * // Create many Deposit_slips + * const deposit_slip = await prisma.deposit_slip.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Deposit_slip. + * @param {deposit_slipDeleteArgs} args - Arguments to delete one Deposit_slip. + * @example + * // Delete one Deposit_slip + * const Deposit_slip = await prisma.deposit_slip.delete({ + * where: { + * // ... filter to delete one Deposit_slip + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__deposit_slipClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Deposit_slip. + * @param {deposit_slipUpdateArgs} args - Arguments to update one Deposit_slip. + * @example + * // Update one Deposit_slip + * const deposit_slip = await prisma.deposit_slip.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__deposit_slipClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Deposit_slips. + * @param {deposit_slipDeleteManyArgs} args - Arguments to filter Deposit_slips to delete. + * @example + * // Delete a few Deposit_slips + * const { count } = await prisma.deposit_slip.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Deposit_slips. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {deposit_slipUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Deposit_slips + * const deposit_slip = await prisma.deposit_slip.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Deposit_slip. + * @param {deposit_slipUpsertArgs} args - Arguments to update or create a Deposit_slip. + * @example + * // Update or create a Deposit_slip + * const deposit_slip = await prisma.deposit_slip.upsert({ + * create: { + * // ... data to create a Deposit_slip + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Deposit_slip we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__deposit_slipClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Deposit_slips. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {deposit_slipCountArgs} args - Arguments to filter Deposit_slips to count. + * @example + * // Count the number of Deposit_slips + * const count = await prisma.deposit_slip.count({ + * where: { + * // ... the filter for the Deposit_slips 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 Deposit_slip. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Deposit_slipAggregateArgs} 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 Deposit_slip. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {deposit_slipGroupByArgs} 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 deposit_slipGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: deposit_slipGroupByArgs['orderBy'] } + : { orderBy?: deposit_slipGroupByArgs['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 ? GetDeposit_slipGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the deposit_slip model + */ +readonly fields: deposit_slipFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for deposit_slip. + * 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__deposit_slipClient 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 deposit_slip model + */ +export interface deposit_slipFieldRefs { + readonly id: Prisma.FieldRef<"deposit_slip", 'Int'> + readonly customer_id: Prisma.FieldRef<"deposit_slip", 'String'> + readonly name: Prisma.FieldRef<"deposit_slip", 'String'> + readonly amount: Prisma.FieldRef<"deposit_slip", 'Float'> + readonly type: Prisma.FieldRef<"deposit_slip", 'String'> + readonly desc: Prisma.FieldRef<"deposit_slip", 'String'> + readonly date: Prisma.FieldRef<"deposit_slip", 'BigInt'> +} + + +// Custom InputTypes +/** + * deposit_slip findUnique + */ +export type deposit_slipFindUniqueArgs = { + /** + * Select specific fields to fetch from the deposit_slip + */ + select?: Prisma.deposit_slipSelect | null + /** + * Omit specific fields from the deposit_slip + */ + omit?: Prisma.deposit_slipOmit | null + /** + * Filter, which deposit_slip to fetch. + */ + where: Prisma.deposit_slipWhereUniqueInput +} + +/** + * deposit_slip findUniqueOrThrow + */ +export type deposit_slipFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the deposit_slip + */ + select?: Prisma.deposit_slipSelect | null + /** + * Omit specific fields from the deposit_slip + */ + omit?: Prisma.deposit_slipOmit | null + /** + * Filter, which deposit_slip to fetch. + */ + where: Prisma.deposit_slipWhereUniqueInput +} + +/** + * deposit_slip findFirst + */ +export type deposit_slipFindFirstArgs = { + /** + * Select specific fields to fetch from the deposit_slip + */ + select?: Prisma.deposit_slipSelect | null + /** + * Omit specific fields from the deposit_slip + */ + omit?: Prisma.deposit_slipOmit | null + /** + * Filter, which deposit_slip to fetch. + */ + where?: Prisma.deposit_slipWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of deposit_slips to fetch. + */ + orderBy?: Prisma.deposit_slipOrderByWithRelationInput | Prisma.deposit_slipOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for deposit_slips. + */ + cursor?: Prisma.deposit_slipWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` deposit_slips 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` deposit_slips. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of deposit_slips. + */ + distinct?: Prisma.Deposit_slipScalarFieldEnum | Prisma.Deposit_slipScalarFieldEnum[] +} + +/** + * deposit_slip findFirstOrThrow + */ +export type deposit_slipFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the deposit_slip + */ + select?: Prisma.deposit_slipSelect | null + /** + * Omit specific fields from the deposit_slip + */ + omit?: Prisma.deposit_slipOmit | null + /** + * Filter, which deposit_slip to fetch. + */ + where?: Prisma.deposit_slipWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of deposit_slips to fetch. + */ + orderBy?: Prisma.deposit_slipOrderByWithRelationInput | Prisma.deposit_slipOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for deposit_slips. + */ + cursor?: Prisma.deposit_slipWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` deposit_slips 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` deposit_slips. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of deposit_slips. + */ + distinct?: Prisma.Deposit_slipScalarFieldEnum | Prisma.Deposit_slipScalarFieldEnum[] +} + +/** + * deposit_slip findMany + */ +export type deposit_slipFindManyArgs = { + /** + * Select specific fields to fetch from the deposit_slip + */ + select?: Prisma.deposit_slipSelect | null + /** + * Omit specific fields from the deposit_slip + */ + omit?: Prisma.deposit_slipOmit | null + /** + * Filter, which deposit_slips to fetch. + */ + where?: Prisma.deposit_slipWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of deposit_slips to fetch. + */ + orderBy?: Prisma.deposit_slipOrderByWithRelationInput | Prisma.deposit_slipOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing deposit_slips. + */ + cursor?: Prisma.deposit_slipWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` deposit_slips 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` deposit_slips. + */ + skip?: number + distinct?: Prisma.Deposit_slipScalarFieldEnum | Prisma.Deposit_slipScalarFieldEnum[] +} + +/** + * deposit_slip create + */ +export type deposit_slipCreateArgs = { + /** + * Select specific fields to fetch from the deposit_slip + */ + select?: Prisma.deposit_slipSelect | null + /** + * Omit specific fields from the deposit_slip + */ + omit?: Prisma.deposit_slipOmit | null + /** + * The data needed to create a deposit_slip. + */ + data: Prisma.XOR +} + +/** + * deposit_slip createMany + */ +export type deposit_slipCreateManyArgs = { + /** + * The data used to create many deposit_slips. + */ + data: Prisma.deposit_slipCreateManyInput | Prisma.deposit_slipCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * deposit_slip update + */ +export type deposit_slipUpdateArgs = { + /** + * Select specific fields to fetch from the deposit_slip + */ + select?: Prisma.deposit_slipSelect | null + /** + * Omit specific fields from the deposit_slip + */ + omit?: Prisma.deposit_slipOmit | null + /** + * The data needed to update a deposit_slip. + */ + data: Prisma.XOR + /** + * Choose, which deposit_slip to update. + */ + where: Prisma.deposit_slipWhereUniqueInput +} + +/** + * deposit_slip updateMany + */ +export type deposit_slipUpdateManyArgs = { + /** + * The data used to update deposit_slips. + */ + data: Prisma.XOR + /** + * Filter which deposit_slips to update + */ + where?: Prisma.deposit_slipWhereInput + /** + * Limit how many deposit_slips to update. + */ + limit?: number +} + +/** + * deposit_slip upsert + */ +export type deposit_slipUpsertArgs = { + /** + * Select specific fields to fetch from the deposit_slip + */ + select?: Prisma.deposit_slipSelect | null + /** + * Omit specific fields from the deposit_slip + */ + omit?: Prisma.deposit_slipOmit | null + /** + * The filter to search for the deposit_slip to update in case it exists. + */ + where: Prisma.deposit_slipWhereUniqueInput + /** + * In case the deposit_slip found by the `where` argument doesn't exist, create a new deposit_slip with this data. + */ + create: Prisma.XOR + /** + * In case the deposit_slip was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * deposit_slip delete + */ +export type deposit_slipDeleteArgs = { + /** + * Select specific fields to fetch from the deposit_slip + */ + select?: Prisma.deposit_slipSelect | null + /** + * Omit specific fields from the deposit_slip + */ + omit?: Prisma.deposit_slipOmit | null + /** + * Filter which deposit_slip to delete. + */ + where: Prisma.deposit_slipWhereUniqueInput +} + +/** + * deposit_slip deleteMany + */ +export type deposit_slipDeleteManyArgs = { + /** + * Filter which deposit_slips to delete + */ + where?: Prisma.deposit_slipWhereInput + /** + * Limit how many deposit_slips to delete. + */ + limit?: number +} + +/** + * deposit_slip without action + */ +export type deposit_slipDefaultArgs = { + /** + * Select specific fields to fetch from the deposit_slip + */ + select?: Prisma.deposit_slipSelect | null + /** + * Omit specific fields from the deposit_slip + */ + omit?: Prisma.deposit_slipOmit | null +} diff --git a/prisma/generated/mariadb/models/device.ts b/prisma/generated/mariadb/models/device.ts new file mode 100644 index 0000000..c49f5ab --- /dev/null +++ b/prisma/generated/mariadb/models/device.ts @@ -0,0 +1,1403 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `device` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model device + * + */ +export type deviceModel = runtime.Types.Result.DefaultSelection + +export type AggregateDevice = { + _count: DeviceCountAggregateOutputType | null + _avg: DeviceAvgAggregateOutputType | null + _sum: DeviceSumAggregateOutputType | null + _min: DeviceMinAggregateOutputType | null + _max: DeviceMaxAggregateOutputType | null +} + +export type DeviceAvgAggregateOutputType = { + id: number | null + delivery_id: number | null + parent: number | null +} + +export type DeviceSumAggregateOutputType = { + id: number | null + delivery_id: number | null + parent: number | null +} + +export type DeviceMinAggregateOutputType = { + id: number | null + delivery_id: number | null + category: string | null + name: string | null + manufacturier: string | null + model: string | null + sn: string | null + mac: string | null + manage: string | null + port: string | null + protocol: string | null + manage_cli: string | null + port_cli: string | null + protocol_cli: string | null + user: string | null + pass: string | null + parent: number | null +} + +export type DeviceMaxAggregateOutputType = { + id: number | null + delivery_id: number | null + category: string | null + name: string | null + manufacturier: string | null + model: string | null + sn: string | null + mac: string | null + manage: string | null + port: string | null + protocol: string | null + manage_cli: string | null + port_cli: string | null + protocol_cli: string | null + user: string | null + pass: string | null + parent: number | null +} + +export type DeviceCountAggregateOutputType = { + id: number + delivery_id: number + category: number + name: number + manufacturier: number + model: number + sn: number + mac: number + manage: number + port: number + protocol: number + manage_cli: number + port_cli: number + protocol_cli: number + user: number + pass: number + parent: number + _all: number +} + + +export type DeviceAvgAggregateInputType = { + id?: true + delivery_id?: true + parent?: true +} + +export type DeviceSumAggregateInputType = { + id?: true + delivery_id?: true + parent?: true +} + +export type DeviceMinAggregateInputType = { + id?: true + delivery_id?: true + category?: true + name?: true + manufacturier?: true + model?: true + sn?: true + mac?: true + manage?: true + port?: true + protocol?: true + manage_cli?: true + port_cli?: true + protocol_cli?: true + user?: true + pass?: true + parent?: true +} + +export type DeviceMaxAggregateInputType = { + id?: true + delivery_id?: true + category?: true + name?: true + manufacturier?: true + model?: true + sn?: true + mac?: true + manage?: true + port?: true + protocol?: true + manage_cli?: true + port_cli?: true + protocol_cli?: true + user?: true + pass?: true + parent?: true +} + +export type DeviceCountAggregateInputType = { + id?: true + delivery_id?: true + category?: true + name?: true + manufacturier?: true + model?: true + sn?: true + mac?: true + manage?: true + port?: true + protocol?: true + manage_cli?: true + port_cli?: true + protocol_cli?: true + user?: true + pass?: true + parent?: true + _all?: true +} + +export type DeviceAggregateArgs = { + /** + * Filter which device to aggregate. + */ + where?: Prisma.deviceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of devices to fetch. + */ + orderBy?: Prisma.deviceOrderByWithRelationInput | Prisma.deviceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.deviceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` devices 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` devices. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned devices + **/ + _count?: true | DeviceCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: DeviceAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: DeviceSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: DeviceMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: DeviceMaxAggregateInputType +} + +export type GetDeviceAggregateType = { + [P in keyof T & keyof AggregateDevice]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type deviceGroupByArgs = { + where?: Prisma.deviceWhereInput + orderBy?: Prisma.deviceOrderByWithAggregationInput | Prisma.deviceOrderByWithAggregationInput[] + by: Prisma.DeviceScalarFieldEnum[] | Prisma.DeviceScalarFieldEnum + having?: Prisma.deviceScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: DeviceCountAggregateInputType | true + _avg?: DeviceAvgAggregateInputType + _sum?: DeviceSumAggregateInputType + _min?: DeviceMinAggregateInputType + _max?: DeviceMaxAggregateInputType +} + +export type DeviceGroupByOutputType = { + id: number + delivery_id: number + category: string + name: string + manufacturier: string | null + model: string | null + sn: string | null + mac: string | null + manage: string + port: string + protocol: string + manage_cli: string + port_cli: string + protocol_cli: string + user: string + pass: string + parent: number + _count: DeviceCountAggregateOutputType | null + _avg: DeviceAvgAggregateOutputType | null + _sum: DeviceSumAggregateOutputType | null + _min: DeviceMinAggregateOutputType | null + _max: DeviceMaxAggregateOutputType | null +} + +type GetDeviceGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof DeviceGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type deviceWhereInput = { + AND?: Prisma.deviceWhereInput | Prisma.deviceWhereInput[] + OR?: Prisma.deviceWhereInput[] + NOT?: Prisma.deviceWhereInput | Prisma.deviceWhereInput[] + id?: Prisma.IntFilter<"device"> | number + delivery_id?: Prisma.IntFilter<"device"> | number + category?: Prisma.StringFilter<"device"> | string + name?: Prisma.StringFilter<"device"> | string + manufacturier?: Prisma.StringNullableFilter<"device"> | string | null + model?: Prisma.StringNullableFilter<"device"> | string | null + sn?: Prisma.StringNullableFilter<"device"> | string | null + mac?: Prisma.StringNullableFilter<"device"> | string | null + manage?: Prisma.StringFilter<"device"> | string + port?: Prisma.StringFilter<"device"> | string + protocol?: Prisma.StringFilter<"device"> | string + manage_cli?: Prisma.StringFilter<"device"> | string + port_cli?: Prisma.StringFilter<"device"> | string + protocol_cli?: Prisma.StringFilter<"device"> | string + user?: Prisma.StringFilter<"device"> | string + pass?: Prisma.StringFilter<"device"> | string + parent?: Prisma.IntFilter<"device"> | number +} + +export type deviceOrderByWithRelationInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + category?: Prisma.SortOrder + name?: Prisma.SortOrder + manufacturier?: Prisma.SortOrderInput | Prisma.SortOrder + model?: Prisma.SortOrderInput | Prisma.SortOrder + sn?: Prisma.SortOrderInput | Prisma.SortOrder + mac?: Prisma.SortOrderInput | Prisma.SortOrder + manage?: Prisma.SortOrder + port?: Prisma.SortOrder + protocol?: Prisma.SortOrder + manage_cli?: Prisma.SortOrder + port_cli?: Prisma.SortOrder + protocol_cli?: Prisma.SortOrder + user?: Prisma.SortOrder + pass?: Prisma.SortOrder + parent?: Prisma.SortOrder + _relevance?: Prisma.deviceOrderByRelevanceInput +} + +export type deviceWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.deviceWhereInput | Prisma.deviceWhereInput[] + OR?: Prisma.deviceWhereInput[] + NOT?: Prisma.deviceWhereInput | Prisma.deviceWhereInput[] + delivery_id?: Prisma.IntFilter<"device"> | number + category?: Prisma.StringFilter<"device"> | string + name?: Prisma.StringFilter<"device"> | string + manufacturier?: Prisma.StringNullableFilter<"device"> | string | null + model?: Prisma.StringNullableFilter<"device"> | string | null + sn?: Prisma.StringNullableFilter<"device"> | string | null + mac?: Prisma.StringNullableFilter<"device"> | string | null + manage?: Prisma.StringFilter<"device"> | string + port?: Prisma.StringFilter<"device"> | string + protocol?: Prisma.StringFilter<"device"> | string + manage_cli?: Prisma.StringFilter<"device"> | string + port_cli?: Prisma.StringFilter<"device"> | string + protocol_cli?: Prisma.StringFilter<"device"> | string + user?: Prisma.StringFilter<"device"> | string + pass?: Prisma.StringFilter<"device"> | string + parent?: Prisma.IntFilter<"device"> | number +}, "id"> + +export type deviceOrderByWithAggregationInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + category?: Prisma.SortOrder + name?: Prisma.SortOrder + manufacturier?: Prisma.SortOrderInput | Prisma.SortOrder + model?: Prisma.SortOrderInput | Prisma.SortOrder + sn?: Prisma.SortOrderInput | Prisma.SortOrder + mac?: Prisma.SortOrderInput | Prisma.SortOrder + manage?: Prisma.SortOrder + port?: Prisma.SortOrder + protocol?: Prisma.SortOrder + manage_cli?: Prisma.SortOrder + port_cli?: Prisma.SortOrder + protocol_cli?: Prisma.SortOrder + user?: Prisma.SortOrder + pass?: Prisma.SortOrder + parent?: Prisma.SortOrder + _count?: Prisma.deviceCountOrderByAggregateInput + _avg?: Prisma.deviceAvgOrderByAggregateInput + _max?: Prisma.deviceMaxOrderByAggregateInput + _min?: Prisma.deviceMinOrderByAggregateInput + _sum?: Prisma.deviceSumOrderByAggregateInput +} + +export type deviceScalarWhereWithAggregatesInput = { + AND?: Prisma.deviceScalarWhereWithAggregatesInput | Prisma.deviceScalarWhereWithAggregatesInput[] + OR?: Prisma.deviceScalarWhereWithAggregatesInput[] + NOT?: Prisma.deviceScalarWhereWithAggregatesInput | Prisma.deviceScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"device"> | number + delivery_id?: Prisma.IntWithAggregatesFilter<"device"> | number + category?: Prisma.StringWithAggregatesFilter<"device"> | string + name?: Prisma.StringWithAggregatesFilter<"device"> | string + manufacturier?: Prisma.StringNullableWithAggregatesFilter<"device"> | string | null + model?: Prisma.StringNullableWithAggregatesFilter<"device"> | string | null + sn?: Prisma.StringNullableWithAggregatesFilter<"device"> | string | null + mac?: Prisma.StringNullableWithAggregatesFilter<"device"> | string | null + manage?: Prisma.StringWithAggregatesFilter<"device"> | string + port?: Prisma.StringWithAggregatesFilter<"device"> | string + protocol?: Prisma.StringWithAggregatesFilter<"device"> | string + manage_cli?: Prisma.StringWithAggregatesFilter<"device"> | string + port_cli?: Prisma.StringWithAggregatesFilter<"device"> | string + protocol_cli?: Prisma.StringWithAggregatesFilter<"device"> | string + user?: Prisma.StringWithAggregatesFilter<"device"> | string + pass?: Prisma.StringWithAggregatesFilter<"device"> | string + parent?: Prisma.IntWithAggregatesFilter<"device"> | number +} + +export type deviceCreateInput = { + delivery_id: number + category: string + name: string + manufacturier?: string | null + model?: string | null + sn?: string | null + mac?: string | null + manage: string + port?: string + protocol?: string + manage_cli: string + port_cli?: string + protocol_cli: string + user: string + pass: string + parent?: number +} + +export type deviceUncheckedCreateInput = { + id?: number + delivery_id: number + category: string + name: string + manufacturier?: string | null + model?: string | null + sn?: string | null + mac?: string | null + manage: string + port?: string + protocol?: string + manage_cli: string + port_cli?: string + protocol_cli: string + user: string + pass: string + parent?: number +} + +export type deviceUpdateInput = { + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + category?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + manage?: Prisma.StringFieldUpdateOperationsInput | string + port?: Prisma.StringFieldUpdateOperationsInput | string + protocol?: Prisma.StringFieldUpdateOperationsInput | string + manage_cli?: Prisma.StringFieldUpdateOperationsInput | string + port_cli?: Prisma.StringFieldUpdateOperationsInput | string + protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string + user?: Prisma.StringFieldUpdateOperationsInput | string + pass?: Prisma.StringFieldUpdateOperationsInput | string + parent?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type deviceUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + category?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + manage?: Prisma.StringFieldUpdateOperationsInput | string + port?: Prisma.StringFieldUpdateOperationsInput | string + protocol?: Prisma.StringFieldUpdateOperationsInput | string + manage_cli?: Prisma.StringFieldUpdateOperationsInput | string + port_cli?: Prisma.StringFieldUpdateOperationsInput | string + protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string + user?: Prisma.StringFieldUpdateOperationsInput | string + pass?: Prisma.StringFieldUpdateOperationsInput | string + parent?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type deviceCreateManyInput = { + id?: number + delivery_id: number + category: string + name: string + manufacturier?: string | null + model?: string | null + sn?: string | null + mac?: string | null + manage: string + port?: string + protocol?: string + manage_cli: string + port_cli?: string + protocol_cli: string + user: string + pass: string + parent?: number +} + +export type deviceUpdateManyMutationInput = { + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + category?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + manage?: Prisma.StringFieldUpdateOperationsInput | string + port?: Prisma.StringFieldUpdateOperationsInput | string + protocol?: Prisma.StringFieldUpdateOperationsInput | string + manage_cli?: Prisma.StringFieldUpdateOperationsInput | string + port_cli?: Prisma.StringFieldUpdateOperationsInput | string + protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string + user?: Prisma.StringFieldUpdateOperationsInput | string + pass?: Prisma.StringFieldUpdateOperationsInput | string + parent?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type deviceUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + category?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + manage?: Prisma.StringFieldUpdateOperationsInput | string + port?: Prisma.StringFieldUpdateOperationsInput | string + protocol?: Prisma.StringFieldUpdateOperationsInput | string + manage_cli?: Prisma.StringFieldUpdateOperationsInput | string + port_cli?: Prisma.StringFieldUpdateOperationsInput | string + protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string + user?: Prisma.StringFieldUpdateOperationsInput | string + pass?: Prisma.StringFieldUpdateOperationsInput | string + parent?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type deviceOrderByRelevanceInput = { + fields: Prisma.deviceOrderByRelevanceFieldEnum | Prisma.deviceOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type deviceCountOrderByAggregateInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + category?: Prisma.SortOrder + name?: Prisma.SortOrder + manufacturier?: Prisma.SortOrder + model?: Prisma.SortOrder + sn?: Prisma.SortOrder + mac?: Prisma.SortOrder + manage?: Prisma.SortOrder + port?: Prisma.SortOrder + protocol?: Prisma.SortOrder + manage_cli?: Prisma.SortOrder + port_cli?: Prisma.SortOrder + protocol_cli?: Prisma.SortOrder + user?: Prisma.SortOrder + pass?: Prisma.SortOrder + parent?: Prisma.SortOrder +} + +export type deviceAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + parent?: Prisma.SortOrder +} + +export type deviceMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + category?: Prisma.SortOrder + name?: Prisma.SortOrder + manufacturier?: Prisma.SortOrder + model?: Prisma.SortOrder + sn?: Prisma.SortOrder + mac?: Prisma.SortOrder + manage?: Prisma.SortOrder + port?: Prisma.SortOrder + protocol?: Prisma.SortOrder + manage_cli?: Prisma.SortOrder + port_cli?: Prisma.SortOrder + protocol_cli?: Prisma.SortOrder + user?: Prisma.SortOrder + pass?: Prisma.SortOrder + parent?: Prisma.SortOrder +} + +export type deviceMinOrderByAggregateInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + category?: Prisma.SortOrder + name?: Prisma.SortOrder + manufacturier?: Prisma.SortOrder + model?: Prisma.SortOrder + sn?: Prisma.SortOrder + mac?: Prisma.SortOrder + manage?: Prisma.SortOrder + port?: Prisma.SortOrder + protocol?: Prisma.SortOrder + manage_cli?: Prisma.SortOrder + port_cli?: Prisma.SortOrder + protocol_cli?: Prisma.SortOrder + user?: Prisma.SortOrder + pass?: Prisma.SortOrder + parent?: Prisma.SortOrder +} + +export type deviceSumOrderByAggregateInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + parent?: Prisma.SortOrder +} + + + +export type deviceSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + delivery_id?: boolean + category?: boolean + name?: boolean + manufacturier?: boolean + model?: boolean + sn?: boolean + mac?: boolean + manage?: boolean + port?: boolean + protocol?: boolean + manage_cli?: boolean + port_cli?: boolean + protocol_cli?: boolean + user?: boolean + pass?: boolean + parent?: boolean +}, ExtArgs["result"]["device"]> + + + +export type deviceSelectScalar = { + id?: boolean + delivery_id?: boolean + category?: boolean + name?: boolean + manufacturier?: boolean + model?: boolean + sn?: boolean + mac?: boolean + manage?: boolean + port?: boolean + protocol?: boolean + manage_cli?: boolean + port_cli?: boolean + protocol_cli?: boolean + user?: boolean + pass?: boolean + parent?: boolean +} + +export type deviceOmit = runtime.Types.Extensions.GetOmit<"id" | "delivery_id" | "category" | "name" | "manufacturier" | "model" | "sn" | "mac" | "manage" | "port" | "protocol" | "manage_cli" | "port_cli" | "protocol_cli" | "user" | "pass" | "parent", ExtArgs["result"]["device"]> + +export type $devicePayload = { + name: "device" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + delivery_id: number + category: string + name: string + manufacturier: string | null + model: string | null + sn: string | null + mac: string | null + manage: string + port: string + protocol: string + manage_cli: string + port_cli: string + protocol_cli: string + user: string + pass: string + parent: number + }, ExtArgs["result"]["device"]> + composites: {} +} + +export type deviceGetPayload = runtime.Types.Result.GetResult + +export type deviceCountArgs = + Omit & { + select?: DeviceCountAggregateInputType | true + } + +export interface deviceDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['device'], meta: { name: 'device' } } + /** + * Find zero or one Device that matches the filter. + * @param {deviceFindUniqueArgs} args - Arguments to find a Device + * @example + * // Get one Device + * const device = await prisma.device.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Device that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {deviceFindUniqueOrThrowArgs} args - Arguments to find a Device + * @example + * // Get one Device + * const device = await prisma.device.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Device 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 {deviceFindFirstArgs} args - Arguments to find a Device + * @example + * // Get one Device + * const device = await prisma.device.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Device 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 {deviceFindFirstOrThrowArgs} args - Arguments to find a Device + * @example + * // Get one Device + * const device = await prisma.device.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Devices 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 {deviceFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Devices + * const devices = await prisma.device.findMany() + * + * // Get first 10 Devices + * const devices = await prisma.device.findMany({ take: 10 }) + * + * // Only select the `id` + * const deviceWithIdOnly = await prisma.device.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Device. + * @param {deviceCreateArgs} args - Arguments to create a Device. + * @example + * // Create one Device + * const Device = await prisma.device.create({ + * data: { + * // ... data to create a Device + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Devices. + * @param {deviceCreateManyArgs} args - Arguments to create many Devices. + * @example + * // Create many Devices + * const device = await prisma.device.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Device. + * @param {deviceDeleteArgs} args - Arguments to delete one Device. + * @example + * // Delete one Device + * const Device = await prisma.device.delete({ + * where: { + * // ... filter to delete one Device + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Device. + * @param {deviceUpdateArgs} args - Arguments to update one Device. + * @example + * // Update one Device + * const device = await prisma.device.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Devices. + * @param {deviceDeleteManyArgs} args - Arguments to filter Devices to delete. + * @example + * // Delete a few Devices + * const { count } = await prisma.device.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Devices. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {deviceUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Devices + * const device = await prisma.device.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Device. + * @param {deviceUpsertArgs} args - Arguments to update or create a Device. + * @example + * // Update or create a Device + * const device = await prisma.device.upsert({ + * create: { + * // ... data to create a Device + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Device we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__deviceClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Devices. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {deviceCountArgs} args - Arguments to filter Devices to count. + * @example + * // Count the number of Devices + * const count = await prisma.device.count({ + * where: { + * // ... the filter for the Devices 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 Device. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {DeviceAggregateArgs} 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 Device. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {deviceGroupByArgs} 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 deviceGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: deviceGroupByArgs['orderBy'] } + : { orderBy?: deviceGroupByArgs['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 ? GetDeviceGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the device model + */ +readonly fields: deviceFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for device. + * 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__deviceClient 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 device model + */ +export interface deviceFieldRefs { + readonly id: Prisma.FieldRef<"device", 'Int'> + readonly delivery_id: Prisma.FieldRef<"device", 'Int'> + readonly category: Prisma.FieldRef<"device", 'String'> + readonly name: Prisma.FieldRef<"device", 'String'> + readonly manufacturier: Prisma.FieldRef<"device", 'String'> + readonly model: Prisma.FieldRef<"device", 'String'> + readonly sn: Prisma.FieldRef<"device", 'String'> + readonly mac: Prisma.FieldRef<"device", 'String'> + readonly manage: Prisma.FieldRef<"device", 'String'> + readonly port: Prisma.FieldRef<"device", 'String'> + readonly protocol: Prisma.FieldRef<"device", 'String'> + readonly manage_cli: Prisma.FieldRef<"device", 'String'> + readonly port_cli: Prisma.FieldRef<"device", 'String'> + readonly protocol_cli: Prisma.FieldRef<"device", 'String'> + readonly user: Prisma.FieldRef<"device", 'String'> + readonly pass: Prisma.FieldRef<"device", 'String'> + readonly parent: Prisma.FieldRef<"device", 'Int'> +} + + +// Custom InputTypes +/** + * device findUnique + */ +export type deviceFindUniqueArgs = { + /** + * Select specific fields to fetch from the device + */ + select?: Prisma.deviceSelect | null + /** + * Omit specific fields from the device + */ + omit?: Prisma.deviceOmit | null + /** + * Filter, which device to fetch. + */ + where: Prisma.deviceWhereUniqueInput +} + +/** + * device findUniqueOrThrow + */ +export type deviceFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the device + */ + select?: Prisma.deviceSelect | null + /** + * Omit specific fields from the device + */ + omit?: Prisma.deviceOmit | null + /** + * Filter, which device to fetch. + */ + where: Prisma.deviceWhereUniqueInput +} + +/** + * device findFirst + */ +export type deviceFindFirstArgs = { + /** + * Select specific fields to fetch from the device + */ + select?: Prisma.deviceSelect | null + /** + * Omit specific fields from the device + */ + omit?: Prisma.deviceOmit | null + /** + * Filter, which device to fetch. + */ + where?: Prisma.deviceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of devices to fetch. + */ + orderBy?: Prisma.deviceOrderByWithRelationInput | Prisma.deviceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for devices. + */ + cursor?: Prisma.deviceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` devices 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` devices. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of devices. + */ + distinct?: Prisma.DeviceScalarFieldEnum | Prisma.DeviceScalarFieldEnum[] +} + +/** + * device findFirstOrThrow + */ +export type deviceFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the device + */ + select?: Prisma.deviceSelect | null + /** + * Omit specific fields from the device + */ + omit?: Prisma.deviceOmit | null + /** + * Filter, which device to fetch. + */ + where?: Prisma.deviceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of devices to fetch. + */ + orderBy?: Prisma.deviceOrderByWithRelationInput | Prisma.deviceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for devices. + */ + cursor?: Prisma.deviceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` devices 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` devices. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of devices. + */ + distinct?: Prisma.DeviceScalarFieldEnum | Prisma.DeviceScalarFieldEnum[] +} + +/** + * device findMany + */ +export type deviceFindManyArgs = { + /** + * Select specific fields to fetch from the device + */ + select?: Prisma.deviceSelect | null + /** + * Omit specific fields from the device + */ + omit?: Prisma.deviceOmit | null + /** + * Filter, which devices to fetch. + */ + where?: Prisma.deviceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of devices to fetch. + */ + orderBy?: Prisma.deviceOrderByWithRelationInput | Prisma.deviceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing devices. + */ + cursor?: Prisma.deviceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` devices 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` devices. + */ + skip?: number + distinct?: Prisma.DeviceScalarFieldEnum | Prisma.DeviceScalarFieldEnum[] +} + +/** + * device create + */ +export type deviceCreateArgs = { + /** + * Select specific fields to fetch from the device + */ + select?: Prisma.deviceSelect | null + /** + * Omit specific fields from the device + */ + omit?: Prisma.deviceOmit | null + /** + * The data needed to create a device. + */ + data: Prisma.XOR +} + +/** + * device createMany + */ +export type deviceCreateManyArgs = { + /** + * The data used to create many devices. + */ + data: Prisma.deviceCreateManyInput | Prisma.deviceCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * device update + */ +export type deviceUpdateArgs = { + /** + * Select specific fields to fetch from the device + */ + select?: Prisma.deviceSelect | null + /** + * Omit specific fields from the device + */ + omit?: Prisma.deviceOmit | null + /** + * The data needed to update a device. + */ + data: Prisma.XOR + /** + * Choose, which device to update. + */ + where: Prisma.deviceWhereUniqueInput +} + +/** + * device updateMany + */ +export type deviceUpdateManyArgs = { + /** + * The data used to update devices. + */ + data: Prisma.XOR + /** + * Filter which devices to update + */ + where?: Prisma.deviceWhereInput + /** + * Limit how many devices to update. + */ + limit?: number +} + +/** + * device upsert + */ +export type deviceUpsertArgs = { + /** + * Select specific fields to fetch from the device + */ + select?: Prisma.deviceSelect | null + /** + * Omit specific fields from the device + */ + omit?: Prisma.deviceOmit | null + /** + * The filter to search for the device to update in case it exists. + */ + where: Prisma.deviceWhereUniqueInput + /** + * In case the device found by the `where` argument doesn't exist, create a new device with this data. + */ + create: Prisma.XOR + /** + * In case the device was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * device delete + */ +export type deviceDeleteArgs = { + /** + * Select specific fields to fetch from the device + */ + select?: Prisma.deviceSelect | null + /** + * Omit specific fields from the device + */ + omit?: Prisma.deviceOmit | null + /** + * Filter which device to delete. + */ + where: Prisma.deviceWhereUniqueInput +} + +/** + * device deleteMany + */ +export type deviceDeleteManyArgs = { + /** + * Filter which devices to delete + */ + where?: Prisma.deviceWhereInput + /** + * Limit how many devices to delete. + */ + limit?: number +} + +/** + * device without action + */ +export type deviceDefaultArgs = { + /** + * Select specific fields to fetch from the device + */ + select?: Prisma.deviceSelect | null + /** + * Omit specific fields from the device + */ + omit?: Prisma.deviceOmit | null +} diff --git a/prisma/generated/mariadb/models/device_archive.ts b/prisma/generated/mariadb/models/device_archive.ts new file mode 100644 index 0000000..cdfa462 --- /dev/null +++ b/prisma/generated/mariadb/models/device_archive.ts @@ -0,0 +1,1403 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `device_archive` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model device_archive + * + */ +export type device_archiveModel = runtime.Types.Result.DefaultSelection + +export type AggregateDevice_archive = { + _count: Device_archiveCountAggregateOutputType | null + _avg: Device_archiveAvgAggregateOutputType | null + _sum: Device_archiveSumAggregateOutputType | null + _min: Device_archiveMinAggregateOutputType | null + _max: Device_archiveMaxAggregateOutputType | null +} + +export type Device_archiveAvgAggregateOutputType = { + id: number | null + delivery_id: number | null + parent: number | null +} + +export type Device_archiveSumAggregateOutputType = { + id: number | null + delivery_id: number | null + parent: number | null +} + +export type Device_archiveMinAggregateOutputType = { + id: number | null + delivery_id: number | null + category: string | null + name: string | null + manufacturier: string | null + model: string | null + sn: string | null + mac: string | null + manage: string | null + port: string | null + protocol: string | null + manage_cli: string | null + port_cli: string | null + protocol_cli: string | null + user: string | null + pass: string | null + parent: number | null +} + +export type Device_archiveMaxAggregateOutputType = { + id: number | null + delivery_id: number | null + category: string | null + name: string | null + manufacturier: string | null + model: string | null + sn: string | null + mac: string | null + manage: string | null + port: string | null + protocol: string | null + manage_cli: string | null + port_cli: string | null + protocol_cli: string | null + user: string | null + pass: string | null + parent: number | null +} + +export type Device_archiveCountAggregateOutputType = { + id: number + delivery_id: number + category: number + name: number + manufacturier: number + model: number + sn: number + mac: number + manage: number + port: number + protocol: number + manage_cli: number + port_cli: number + protocol_cli: number + user: number + pass: number + parent: number + _all: number +} + + +export type Device_archiveAvgAggregateInputType = { + id?: true + delivery_id?: true + parent?: true +} + +export type Device_archiveSumAggregateInputType = { + id?: true + delivery_id?: true + parent?: true +} + +export type Device_archiveMinAggregateInputType = { + id?: true + delivery_id?: true + category?: true + name?: true + manufacturier?: true + model?: true + sn?: true + mac?: true + manage?: true + port?: true + protocol?: true + manage_cli?: true + port_cli?: true + protocol_cli?: true + user?: true + pass?: true + parent?: true +} + +export type Device_archiveMaxAggregateInputType = { + id?: true + delivery_id?: true + category?: true + name?: true + manufacturier?: true + model?: true + sn?: true + mac?: true + manage?: true + port?: true + protocol?: true + manage_cli?: true + port_cli?: true + protocol_cli?: true + user?: true + pass?: true + parent?: true +} + +export type Device_archiveCountAggregateInputType = { + id?: true + delivery_id?: true + category?: true + name?: true + manufacturier?: true + model?: true + sn?: true + mac?: true + manage?: true + port?: true + protocol?: true + manage_cli?: true + port_cli?: true + protocol_cli?: true + user?: true + pass?: true + parent?: true + _all?: true +} + +export type Device_archiveAggregateArgs = { + /** + * Filter which device_archive to aggregate. + */ + where?: Prisma.device_archiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_archives to fetch. + */ + orderBy?: Prisma.device_archiveOrderByWithRelationInput | Prisma.device_archiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.device_archiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_archives 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` device_archives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned device_archives + **/ + _count?: true | Device_archiveCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Device_archiveAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Device_archiveSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Device_archiveMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Device_archiveMaxAggregateInputType +} + +export type GetDevice_archiveAggregateType = { + [P in keyof T & keyof AggregateDevice_archive]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type device_archiveGroupByArgs = { + where?: Prisma.device_archiveWhereInput + orderBy?: Prisma.device_archiveOrderByWithAggregationInput | Prisma.device_archiveOrderByWithAggregationInput[] + by: Prisma.Device_archiveScalarFieldEnum[] | Prisma.Device_archiveScalarFieldEnum + having?: Prisma.device_archiveScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Device_archiveCountAggregateInputType | true + _avg?: Device_archiveAvgAggregateInputType + _sum?: Device_archiveSumAggregateInputType + _min?: Device_archiveMinAggregateInputType + _max?: Device_archiveMaxAggregateInputType +} + +export type Device_archiveGroupByOutputType = { + id: number + delivery_id: number + category: string + name: string + manufacturier: string | null + model: string | null + sn: string | null + mac: string | null + manage: string + port: string + protocol: string + manage_cli: string + port_cli: string + protocol_cli: string + user: string + pass: string + parent: number + _count: Device_archiveCountAggregateOutputType | null + _avg: Device_archiveAvgAggregateOutputType | null + _sum: Device_archiveSumAggregateOutputType | null + _min: Device_archiveMinAggregateOutputType | null + _max: Device_archiveMaxAggregateOutputType | null +} + +type GetDevice_archiveGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Device_archiveGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type device_archiveWhereInput = { + AND?: Prisma.device_archiveWhereInput | Prisma.device_archiveWhereInput[] + OR?: Prisma.device_archiveWhereInput[] + NOT?: Prisma.device_archiveWhereInput | Prisma.device_archiveWhereInput[] + id?: Prisma.IntFilter<"device_archive"> | number + delivery_id?: Prisma.IntFilter<"device_archive"> | number + category?: Prisma.StringFilter<"device_archive"> | string + name?: Prisma.StringFilter<"device_archive"> | string + manufacturier?: Prisma.StringNullableFilter<"device_archive"> | string | null + model?: Prisma.StringNullableFilter<"device_archive"> | string | null + sn?: Prisma.StringNullableFilter<"device_archive"> | string | null + mac?: Prisma.StringNullableFilter<"device_archive"> | string | null + manage?: Prisma.StringFilter<"device_archive"> | string + port?: Prisma.StringFilter<"device_archive"> | string + protocol?: Prisma.StringFilter<"device_archive"> | string + manage_cli?: Prisma.StringFilter<"device_archive"> | string + port_cli?: Prisma.StringFilter<"device_archive"> | string + protocol_cli?: Prisma.StringFilter<"device_archive"> | string + user?: Prisma.StringFilter<"device_archive"> | string + pass?: Prisma.StringFilter<"device_archive"> | string + parent?: Prisma.IntFilter<"device_archive"> | number +} + +export type device_archiveOrderByWithRelationInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + category?: Prisma.SortOrder + name?: Prisma.SortOrder + manufacturier?: Prisma.SortOrderInput | Prisma.SortOrder + model?: Prisma.SortOrderInput | Prisma.SortOrder + sn?: Prisma.SortOrderInput | Prisma.SortOrder + mac?: Prisma.SortOrderInput | Prisma.SortOrder + manage?: Prisma.SortOrder + port?: Prisma.SortOrder + protocol?: Prisma.SortOrder + manage_cli?: Prisma.SortOrder + port_cli?: Prisma.SortOrder + protocol_cli?: Prisma.SortOrder + user?: Prisma.SortOrder + pass?: Prisma.SortOrder + parent?: Prisma.SortOrder + _relevance?: Prisma.device_archiveOrderByRelevanceInput +} + +export type device_archiveWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.device_archiveWhereInput | Prisma.device_archiveWhereInput[] + OR?: Prisma.device_archiveWhereInput[] + NOT?: Prisma.device_archiveWhereInput | Prisma.device_archiveWhereInput[] + delivery_id?: Prisma.IntFilter<"device_archive"> | number + category?: Prisma.StringFilter<"device_archive"> | string + name?: Prisma.StringFilter<"device_archive"> | string + manufacturier?: Prisma.StringNullableFilter<"device_archive"> | string | null + model?: Prisma.StringNullableFilter<"device_archive"> | string | null + sn?: Prisma.StringNullableFilter<"device_archive"> | string | null + mac?: Prisma.StringNullableFilter<"device_archive"> | string | null + manage?: Prisma.StringFilter<"device_archive"> | string + port?: Prisma.StringFilter<"device_archive"> | string + protocol?: Prisma.StringFilter<"device_archive"> | string + manage_cli?: Prisma.StringFilter<"device_archive"> | string + port_cli?: Prisma.StringFilter<"device_archive"> | string + protocol_cli?: Prisma.StringFilter<"device_archive"> | string + user?: Prisma.StringFilter<"device_archive"> | string + pass?: Prisma.StringFilter<"device_archive"> | string + parent?: Prisma.IntFilter<"device_archive"> | number +}, "id"> + +export type device_archiveOrderByWithAggregationInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + category?: Prisma.SortOrder + name?: Prisma.SortOrder + manufacturier?: Prisma.SortOrderInput | Prisma.SortOrder + model?: Prisma.SortOrderInput | Prisma.SortOrder + sn?: Prisma.SortOrderInput | Prisma.SortOrder + mac?: Prisma.SortOrderInput | Prisma.SortOrder + manage?: Prisma.SortOrder + port?: Prisma.SortOrder + protocol?: Prisma.SortOrder + manage_cli?: Prisma.SortOrder + port_cli?: Prisma.SortOrder + protocol_cli?: Prisma.SortOrder + user?: Prisma.SortOrder + pass?: Prisma.SortOrder + parent?: Prisma.SortOrder + _count?: Prisma.device_archiveCountOrderByAggregateInput + _avg?: Prisma.device_archiveAvgOrderByAggregateInput + _max?: Prisma.device_archiveMaxOrderByAggregateInput + _min?: Prisma.device_archiveMinOrderByAggregateInput + _sum?: Prisma.device_archiveSumOrderByAggregateInput +} + +export type device_archiveScalarWhereWithAggregatesInput = { + AND?: Prisma.device_archiveScalarWhereWithAggregatesInput | Prisma.device_archiveScalarWhereWithAggregatesInput[] + OR?: Prisma.device_archiveScalarWhereWithAggregatesInput[] + NOT?: Prisma.device_archiveScalarWhereWithAggregatesInput | Prisma.device_archiveScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"device_archive"> | number + delivery_id?: Prisma.IntWithAggregatesFilter<"device_archive"> | number + category?: Prisma.StringWithAggregatesFilter<"device_archive"> | string + name?: Prisma.StringWithAggregatesFilter<"device_archive"> | string + manufacturier?: Prisma.StringNullableWithAggregatesFilter<"device_archive"> | string | null + model?: Prisma.StringNullableWithAggregatesFilter<"device_archive"> | string | null + sn?: Prisma.StringNullableWithAggregatesFilter<"device_archive"> | string | null + mac?: Prisma.StringNullableWithAggregatesFilter<"device_archive"> | string | null + manage?: Prisma.StringWithAggregatesFilter<"device_archive"> | string + port?: Prisma.StringWithAggregatesFilter<"device_archive"> | string + protocol?: Prisma.StringWithAggregatesFilter<"device_archive"> | string + manage_cli?: Prisma.StringWithAggregatesFilter<"device_archive"> | string + port_cli?: Prisma.StringWithAggregatesFilter<"device_archive"> | string + protocol_cli?: Prisma.StringWithAggregatesFilter<"device_archive"> | string + user?: Prisma.StringWithAggregatesFilter<"device_archive"> | string + pass?: Prisma.StringWithAggregatesFilter<"device_archive"> | string + parent?: Prisma.IntWithAggregatesFilter<"device_archive"> | number +} + +export type device_archiveCreateInput = { + delivery_id: number + category: string + name: string + manufacturier?: string | null + model?: string | null + sn?: string | null + mac?: string | null + manage: string + port?: string + protocol?: string + manage_cli: string + port_cli?: string + protocol_cli: string + user: string + pass: string + parent?: number +} + +export type device_archiveUncheckedCreateInput = { + id?: number + delivery_id: number + category: string + name: string + manufacturier?: string | null + model?: string | null + sn?: string | null + mac?: string | null + manage: string + port?: string + protocol?: string + manage_cli: string + port_cli?: string + protocol_cli: string + user: string + pass: string + parent?: number +} + +export type device_archiveUpdateInput = { + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + category?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + manage?: Prisma.StringFieldUpdateOperationsInput | string + port?: Prisma.StringFieldUpdateOperationsInput | string + protocol?: Prisma.StringFieldUpdateOperationsInput | string + manage_cli?: Prisma.StringFieldUpdateOperationsInput | string + port_cli?: Prisma.StringFieldUpdateOperationsInput | string + protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string + user?: Prisma.StringFieldUpdateOperationsInput | string + pass?: Prisma.StringFieldUpdateOperationsInput | string + parent?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type device_archiveUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + category?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + manage?: Prisma.StringFieldUpdateOperationsInput | string + port?: Prisma.StringFieldUpdateOperationsInput | string + protocol?: Prisma.StringFieldUpdateOperationsInput | string + manage_cli?: Prisma.StringFieldUpdateOperationsInput | string + port_cli?: Prisma.StringFieldUpdateOperationsInput | string + protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string + user?: Prisma.StringFieldUpdateOperationsInput | string + pass?: Prisma.StringFieldUpdateOperationsInput | string + parent?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type device_archiveCreateManyInput = { + id?: number + delivery_id: number + category: string + name: string + manufacturier?: string | null + model?: string | null + sn?: string | null + mac?: string | null + manage: string + port?: string + protocol?: string + manage_cli: string + port_cli?: string + protocol_cli: string + user: string + pass: string + parent?: number +} + +export type device_archiveUpdateManyMutationInput = { + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + category?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + manage?: Prisma.StringFieldUpdateOperationsInput | string + port?: Prisma.StringFieldUpdateOperationsInput | string + protocol?: Prisma.StringFieldUpdateOperationsInput | string + manage_cli?: Prisma.StringFieldUpdateOperationsInput | string + port_cli?: Prisma.StringFieldUpdateOperationsInput | string + protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string + user?: Prisma.StringFieldUpdateOperationsInput | string + pass?: Prisma.StringFieldUpdateOperationsInput | string + parent?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type device_archiveUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + category?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + manufacturier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + manage?: Prisma.StringFieldUpdateOperationsInput | string + port?: Prisma.StringFieldUpdateOperationsInput | string + protocol?: Prisma.StringFieldUpdateOperationsInput | string + manage_cli?: Prisma.StringFieldUpdateOperationsInput | string + port_cli?: Prisma.StringFieldUpdateOperationsInput | string + protocol_cli?: Prisma.StringFieldUpdateOperationsInput | string + user?: Prisma.StringFieldUpdateOperationsInput | string + pass?: Prisma.StringFieldUpdateOperationsInput | string + parent?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type device_archiveOrderByRelevanceInput = { + fields: Prisma.device_archiveOrderByRelevanceFieldEnum | Prisma.device_archiveOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type device_archiveCountOrderByAggregateInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + category?: Prisma.SortOrder + name?: Prisma.SortOrder + manufacturier?: Prisma.SortOrder + model?: Prisma.SortOrder + sn?: Prisma.SortOrder + mac?: Prisma.SortOrder + manage?: Prisma.SortOrder + port?: Prisma.SortOrder + protocol?: Prisma.SortOrder + manage_cli?: Prisma.SortOrder + port_cli?: Prisma.SortOrder + protocol_cli?: Prisma.SortOrder + user?: Prisma.SortOrder + pass?: Prisma.SortOrder + parent?: Prisma.SortOrder +} + +export type device_archiveAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + parent?: Prisma.SortOrder +} + +export type device_archiveMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + category?: Prisma.SortOrder + name?: Prisma.SortOrder + manufacturier?: Prisma.SortOrder + model?: Prisma.SortOrder + sn?: Prisma.SortOrder + mac?: Prisma.SortOrder + manage?: Prisma.SortOrder + port?: Prisma.SortOrder + protocol?: Prisma.SortOrder + manage_cli?: Prisma.SortOrder + port_cli?: Prisma.SortOrder + protocol_cli?: Prisma.SortOrder + user?: Prisma.SortOrder + pass?: Prisma.SortOrder + parent?: Prisma.SortOrder +} + +export type device_archiveMinOrderByAggregateInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + category?: Prisma.SortOrder + name?: Prisma.SortOrder + manufacturier?: Prisma.SortOrder + model?: Prisma.SortOrder + sn?: Prisma.SortOrder + mac?: Prisma.SortOrder + manage?: Prisma.SortOrder + port?: Prisma.SortOrder + protocol?: Prisma.SortOrder + manage_cli?: Prisma.SortOrder + port_cli?: Prisma.SortOrder + protocol_cli?: Prisma.SortOrder + user?: Prisma.SortOrder + pass?: Prisma.SortOrder + parent?: Prisma.SortOrder +} + +export type device_archiveSumOrderByAggregateInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + parent?: Prisma.SortOrder +} + + + +export type device_archiveSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + delivery_id?: boolean + category?: boolean + name?: boolean + manufacturier?: boolean + model?: boolean + sn?: boolean + mac?: boolean + manage?: boolean + port?: boolean + protocol?: boolean + manage_cli?: boolean + port_cli?: boolean + protocol_cli?: boolean + user?: boolean + pass?: boolean + parent?: boolean +}, ExtArgs["result"]["device_archive"]> + + + +export type device_archiveSelectScalar = { + id?: boolean + delivery_id?: boolean + category?: boolean + name?: boolean + manufacturier?: boolean + model?: boolean + sn?: boolean + mac?: boolean + manage?: boolean + port?: boolean + protocol?: boolean + manage_cli?: boolean + port_cli?: boolean + protocol_cli?: boolean + user?: boolean + pass?: boolean + parent?: boolean +} + +export type device_archiveOmit = runtime.Types.Extensions.GetOmit<"id" | "delivery_id" | "category" | "name" | "manufacturier" | "model" | "sn" | "mac" | "manage" | "port" | "protocol" | "manage_cli" | "port_cli" | "protocol_cli" | "user" | "pass" | "parent", ExtArgs["result"]["device_archive"]> + +export type $device_archivePayload = { + name: "device_archive" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + delivery_id: number + category: string + name: string + manufacturier: string | null + model: string | null + sn: string | null + mac: string | null + manage: string + port: string + protocol: string + manage_cli: string + port_cli: string + protocol_cli: string + user: string + pass: string + parent: number + }, ExtArgs["result"]["device_archive"]> + composites: {} +} + +export type device_archiveGetPayload = runtime.Types.Result.GetResult + +export type device_archiveCountArgs = + Omit & { + select?: Device_archiveCountAggregateInputType | true + } + +export interface device_archiveDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['device_archive'], meta: { name: 'device_archive' } } + /** + * Find zero or one Device_archive that matches the filter. + * @param {device_archiveFindUniqueArgs} args - Arguments to find a Device_archive + * @example + * // Get one Device_archive + * const device_archive = await prisma.device_archive.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Device_archive that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {device_archiveFindUniqueOrThrowArgs} args - Arguments to find a Device_archive + * @example + * // Get one Device_archive + * const device_archive = await prisma.device_archive.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Device_archive 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 {device_archiveFindFirstArgs} args - Arguments to find a Device_archive + * @example + * // Get one Device_archive + * const device_archive = await prisma.device_archive.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Device_archive 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 {device_archiveFindFirstOrThrowArgs} args - Arguments to find a Device_archive + * @example + * // Get one Device_archive + * const device_archive = await prisma.device_archive.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Device_archives 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 {device_archiveFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Device_archives + * const device_archives = await prisma.device_archive.findMany() + * + * // Get first 10 Device_archives + * const device_archives = await prisma.device_archive.findMany({ take: 10 }) + * + * // Only select the `id` + * const device_archiveWithIdOnly = await prisma.device_archive.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Device_archive. + * @param {device_archiveCreateArgs} args - Arguments to create a Device_archive. + * @example + * // Create one Device_archive + * const Device_archive = await prisma.device_archive.create({ + * data: { + * // ... data to create a Device_archive + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Device_archives. + * @param {device_archiveCreateManyArgs} args - Arguments to create many Device_archives. + * @example + * // Create many Device_archives + * const device_archive = await prisma.device_archive.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Device_archive. + * @param {device_archiveDeleteArgs} args - Arguments to delete one Device_archive. + * @example + * // Delete one Device_archive + * const Device_archive = await prisma.device_archive.delete({ + * where: { + * // ... filter to delete one Device_archive + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Device_archive. + * @param {device_archiveUpdateArgs} args - Arguments to update one Device_archive. + * @example + * // Update one Device_archive + * const device_archive = await prisma.device_archive.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Device_archives. + * @param {device_archiveDeleteManyArgs} args - Arguments to filter Device_archives to delete. + * @example + * // Delete a few Device_archives + * const { count } = await prisma.device_archive.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Device_archives. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {device_archiveUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Device_archives + * const device_archive = await prisma.device_archive.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Device_archive. + * @param {device_archiveUpsertArgs} args - Arguments to update or create a Device_archive. + * @example + * // Update or create a Device_archive + * const device_archive = await prisma.device_archive.upsert({ + * create: { + * // ... data to create a Device_archive + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Device_archive we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__device_archiveClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Device_archives. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {device_archiveCountArgs} args - Arguments to filter Device_archives to count. + * @example + * // Count the number of Device_archives + * const count = await prisma.device_archive.count({ + * where: { + * // ... the filter for the Device_archives 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 Device_archive. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Device_archiveAggregateArgs} 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 Device_archive. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {device_archiveGroupByArgs} 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 device_archiveGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: device_archiveGroupByArgs['orderBy'] } + : { orderBy?: device_archiveGroupByArgs['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 ? GetDevice_archiveGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the device_archive model + */ +readonly fields: device_archiveFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for device_archive. + * 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__device_archiveClient 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 device_archive model + */ +export interface device_archiveFieldRefs { + readonly id: Prisma.FieldRef<"device_archive", 'Int'> + readonly delivery_id: Prisma.FieldRef<"device_archive", 'Int'> + readonly category: Prisma.FieldRef<"device_archive", 'String'> + readonly name: Prisma.FieldRef<"device_archive", 'String'> + readonly manufacturier: Prisma.FieldRef<"device_archive", 'String'> + readonly model: Prisma.FieldRef<"device_archive", 'String'> + readonly sn: Prisma.FieldRef<"device_archive", 'String'> + readonly mac: Prisma.FieldRef<"device_archive", 'String'> + readonly manage: Prisma.FieldRef<"device_archive", 'String'> + readonly port: Prisma.FieldRef<"device_archive", 'String'> + readonly protocol: Prisma.FieldRef<"device_archive", 'String'> + readonly manage_cli: Prisma.FieldRef<"device_archive", 'String'> + readonly port_cli: Prisma.FieldRef<"device_archive", 'String'> + readonly protocol_cli: Prisma.FieldRef<"device_archive", 'String'> + readonly user: Prisma.FieldRef<"device_archive", 'String'> + readonly pass: Prisma.FieldRef<"device_archive", 'String'> + readonly parent: Prisma.FieldRef<"device_archive", 'Int'> +} + + +// Custom InputTypes +/** + * device_archive findUnique + */ +export type device_archiveFindUniqueArgs = { + /** + * Select specific fields to fetch from the device_archive + */ + select?: Prisma.device_archiveSelect | null + /** + * Omit specific fields from the device_archive + */ + omit?: Prisma.device_archiveOmit | null + /** + * Filter, which device_archive to fetch. + */ + where: Prisma.device_archiveWhereUniqueInput +} + +/** + * device_archive findUniqueOrThrow + */ +export type device_archiveFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the device_archive + */ + select?: Prisma.device_archiveSelect | null + /** + * Omit specific fields from the device_archive + */ + omit?: Prisma.device_archiveOmit | null + /** + * Filter, which device_archive to fetch. + */ + where: Prisma.device_archiveWhereUniqueInput +} + +/** + * device_archive findFirst + */ +export type device_archiveFindFirstArgs = { + /** + * Select specific fields to fetch from the device_archive + */ + select?: Prisma.device_archiveSelect | null + /** + * Omit specific fields from the device_archive + */ + omit?: Prisma.device_archiveOmit | null + /** + * Filter, which device_archive to fetch. + */ + where?: Prisma.device_archiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_archives to fetch. + */ + orderBy?: Prisma.device_archiveOrderByWithRelationInput | Prisma.device_archiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for device_archives. + */ + cursor?: Prisma.device_archiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_archives 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` device_archives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of device_archives. + */ + distinct?: Prisma.Device_archiveScalarFieldEnum | Prisma.Device_archiveScalarFieldEnum[] +} + +/** + * device_archive findFirstOrThrow + */ +export type device_archiveFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the device_archive + */ + select?: Prisma.device_archiveSelect | null + /** + * Omit specific fields from the device_archive + */ + omit?: Prisma.device_archiveOmit | null + /** + * Filter, which device_archive to fetch. + */ + where?: Prisma.device_archiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_archives to fetch. + */ + orderBy?: Prisma.device_archiveOrderByWithRelationInput | Prisma.device_archiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for device_archives. + */ + cursor?: Prisma.device_archiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_archives 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` device_archives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of device_archives. + */ + distinct?: Prisma.Device_archiveScalarFieldEnum | Prisma.Device_archiveScalarFieldEnum[] +} + +/** + * device_archive findMany + */ +export type device_archiveFindManyArgs = { + /** + * Select specific fields to fetch from the device_archive + */ + select?: Prisma.device_archiveSelect | null + /** + * Omit specific fields from the device_archive + */ + omit?: Prisma.device_archiveOmit | null + /** + * Filter, which device_archives to fetch. + */ + where?: Prisma.device_archiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_archives to fetch. + */ + orderBy?: Prisma.device_archiveOrderByWithRelationInput | Prisma.device_archiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing device_archives. + */ + cursor?: Prisma.device_archiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_archives 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` device_archives. + */ + skip?: number + distinct?: Prisma.Device_archiveScalarFieldEnum | Prisma.Device_archiveScalarFieldEnum[] +} + +/** + * device_archive create + */ +export type device_archiveCreateArgs = { + /** + * Select specific fields to fetch from the device_archive + */ + select?: Prisma.device_archiveSelect | null + /** + * Omit specific fields from the device_archive + */ + omit?: Prisma.device_archiveOmit | null + /** + * The data needed to create a device_archive. + */ + data: Prisma.XOR +} + +/** + * device_archive createMany + */ +export type device_archiveCreateManyArgs = { + /** + * The data used to create many device_archives. + */ + data: Prisma.device_archiveCreateManyInput | Prisma.device_archiveCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * device_archive update + */ +export type device_archiveUpdateArgs = { + /** + * Select specific fields to fetch from the device_archive + */ + select?: Prisma.device_archiveSelect | null + /** + * Omit specific fields from the device_archive + */ + omit?: Prisma.device_archiveOmit | null + /** + * The data needed to update a device_archive. + */ + data: Prisma.XOR + /** + * Choose, which device_archive to update. + */ + where: Prisma.device_archiveWhereUniqueInput +} + +/** + * device_archive updateMany + */ +export type device_archiveUpdateManyArgs = { + /** + * The data used to update device_archives. + */ + data: Prisma.XOR + /** + * Filter which device_archives to update + */ + where?: Prisma.device_archiveWhereInput + /** + * Limit how many device_archives to update. + */ + limit?: number +} + +/** + * device_archive upsert + */ +export type device_archiveUpsertArgs = { + /** + * Select specific fields to fetch from the device_archive + */ + select?: Prisma.device_archiveSelect | null + /** + * Omit specific fields from the device_archive + */ + omit?: Prisma.device_archiveOmit | null + /** + * The filter to search for the device_archive to update in case it exists. + */ + where: Prisma.device_archiveWhereUniqueInput + /** + * In case the device_archive found by the `where` argument doesn't exist, create a new device_archive with this data. + */ + create: Prisma.XOR + /** + * In case the device_archive was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * device_archive delete + */ +export type device_archiveDeleteArgs = { + /** + * Select specific fields to fetch from the device_archive + */ + select?: Prisma.device_archiveSelect | null + /** + * Omit specific fields from the device_archive + */ + omit?: Prisma.device_archiveOmit | null + /** + * Filter which device_archive to delete. + */ + where: Prisma.device_archiveWhereUniqueInput +} + +/** + * device_archive deleteMany + */ +export type device_archiveDeleteManyArgs = { + /** + * Filter which device_archives to delete + */ + where?: Prisma.device_archiveWhereInput + /** + * Limit how many device_archives to delete. + */ + limit?: number +} + +/** + * device_archive without action + */ +export type device_archiveDefaultArgs = { + /** + * Select specific fields to fetch from the device_archive + */ + select?: Prisma.device_archiveSelect | null + /** + * Omit specific fields from the device_archive + */ + omit?: Prisma.device_archiveOmit | null +} diff --git a/prisma/generated/mariadb/models/device_attr.ts b/prisma/generated/mariadb/models/device_attr.ts new file mode 100644 index 0000000..eced945 --- /dev/null +++ b/prisma/generated/mariadb/models/device_attr.ts @@ -0,0 +1,1059 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `device_attr` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model device_attr + * + */ +export type device_attrModel = runtime.Types.Result.DefaultSelection + +export type AggregateDevice_attr = { + _count: Device_attrCountAggregateOutputType | null + _avg: Device_attrAvgAggregateOutputType | null + _sum: Device_attrSumAggregateOutputType | null + _min: Device_attrMinAggregateOutputType | null + _max: Device_attrMaxAggregateOutputType | null +} + +export type Device_attrAvgAggregateOutputType = { + id: number | null + device_id: number | null +} + +export type Device_attrSumAggregateOutputType = { + id: number | null + device_id: number | null +} + +export type Device_attrMinAggregateOutputType = { + id: number | null + device_id: number | null + attr: string | null + value: string | null +} + +export type Device_attrMaxAggregateOutputType = { + id: number | null + device_id: number | null + attr: string | null + value: string | null +} + +export type Device_attrCountAggregateOutputType = { + id: number + device_id: number + attr: number + value: number + _all: number +} + + +export type Device_attrAvgAggregateInputType = { + id?: true + device_id?: true +} + +export type Device_attrSumAggregateInputType = { + id?: true + device_id?: true +} + +export type Device_attrMinAggregateInputType = { + id?: true + device_id?: true + attr?: true + value?: true +} + +export type Device_attrMaxAggregateInputType = { + id?: true + device_id?: true + attr?: true + value?: true +} + +export type Device_attrCountAggregateInputType = { + id?: true + device_id?: true + attr?: true + value?: true + _all?: true +} + +export type Device_attrAggregateArgs = { + /** + * Filter which device_attr to aggregate. + */ + where?: Prisma.device_attrWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_attrs to fetch. + */ + orderBy?: Prisma.device_attrOrderByWithRelationInput | Prisma.device_attrOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.device_attrWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_attrs 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` device_attrs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned device_attrs + **/ + _count?: true | Device_attrCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Device_attrAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Device_attrSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Device_attrMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Device_attrMaxAggregateInputType +} + +export type GetDevice_attrAggregateType = { + [P in keyof T & keyof AggregateDevice_attr]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type device_attrGroupByArgs = { + where?: Prisma.device_attrWhereInput + orderBy?: Prisma.device_attrOrderByWithAggregationInput | Prisma.device_attrOrderByWithAggregationInput[] + by: Prisma.Device_attrScalarFieldEnum[] | Prisma.Device_attrScalarFieldEnum + having?: Prisma.device_attrScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Device_attrCountAggregateInputType | true + _avg?: Device_attrAvgAggregateInputType + _sum?: Device_attrSumAggregateInputType + _min?: Device_attrMinAggregateInputType + _max?: Device_attrMaxAggregateInputType +} + +export type Device_attrGroupByOutputType = { + id: number + device_id: number + attr: string + value: string + _count: Device_attrCountAggregateOutputType | null + _avg: Device_attrAvgAggregateOutputType | null + _sum: Device_attrSumAggregateOutputType | null + _min: Device_attrMinAggregateOutputType | null + _max: Device_attrMaxAggregateOutputType | null +} + +type GetDevice_attrGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Device_attrGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type device_attrWhereInput = { + AND?: Prisma.device_attrWhereInput | Prisma.device_attrWhereInput[] + OR?: Prisma.device_attrWhereInput[] + NOT?: Prisma.device_attrWhereInput | Prisma.device_attrWhereInput[] + id?: Prisma.IntFilter<"device_attr"> | number + device_id?: Prisma.IntFilter<"device_attr"> | number + attr?: Prisma.StringFilter<"device_attr"> | string + value?: Prisma.StringFilter<"device_attr"> | string +} + +export type device_attrOrderByWithRelationInput = { + id?: Prisma.SortOrder + device_id?: Prisma.SortOrder + attr?: Prisma.SortOrder + value?: Prisma.SortOrder + _relevance?: Prisma.device_attrOrderByRelevanceInput +} + +export type device_attrWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.device_attrWhereInput | Prisma.device_attrWhereInput[] + OR?: Prisma.device_attrWhereInput[] + NOT?: Prisma.device_attrWhereInput | Prisma.device_attrWhereInput[] + device_id?: Prisma.IntFilter<"device_attr"> | number + attr?: Prisma.StringFilter<"device_attr"> | string + value?: Prisma.StringFilter<"device_attr"> | string +}, "id"> + +export type device_attrOrderByWithAggregationInput = { + id?: Prisma.SortOrder + device_id?: Prisma.SortOrder + attr?: Prisma.SortOrder + value?: Prisma.SortOrder + _count?: Prisma.device_attrCountOrderByAggregateInput + _avg?: Prisma.device_attrAvgOrderByAggregateInput + _max?: Prisma.device_attrMaxOrderByAggregateInput + _min?: Prisma.device_attrMinOrderByAggregateInput + _sum?: Prisma.device_attrSumOrderByAggregateInput +} + +export type device_attrScalarWhereWithAggregatesInput = { + AND?: Prisma.device_attrScalarWhereWithAggregatesInput | Prisma.device_attrScalarWhereWithAggregatesInput[] + OR?: Prisma.device_attrScalarWhereWithAggregatesInput[] + NOT?: Prisma.device_attrScalarWhereWithAggregatesInput | Prisma.device_attrScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"device_attr"> | number + device_id?: Prisma.IntWithAggregatesFilter<"device_attr"> | number + attr?: Prisma.StringWithAggregatesFilter<"device_attr"> | string + value?: Prisma.StringWithAggregatesFilter<"device_attr"> | string +} + +export type device_attrCreateInput = { + device_id: number + attr: string + value: string +} + +export type device_attrUncheckedCreateInput = { + id?: number + device_id: number + attr: string + value: string +} + +export type device_attrUpdateInput = { + device_id?: Prisma.IntFieldUpdateOperationsInput | number + attr?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type device_attrUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + device_id?: Prisma.IntFieldUpdateOperationsInput | number + attr?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type device_attrCreateManyInput = { + id?: number + device_id: number + attr: string + value: string +} + +export type device_attrUpdateManyMutationInput = { + device_id?: Prisma.IntFieldUpdateOperationsInput | number + attr?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type device_attrUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + device_id?: Prisma.IntFieldUpdateOperationsInput | number + attr?: Prisma.StringFieldUpdateOperationsInput | string + value?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type device_attrOrderByRelevanceInput = { + fields: Prisma.device_attrOrderByRelevanceFieldEnum | Prisma.device_attrOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type device_attrCountOrderByAggregateInput = { + id?: Prisma.SortOrder + device_id?: Prisma.SortOrder + attr?: Prisma.SortOrder + value?: Prisma.SortOrder +} + +export type device_attrAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + device_id?: Prisma.SortOrder +} + +export type device_attrMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + device_id?: Prisma.SortOrder + attr?: Prisma.SortOrder + value?: Prisma.SortOrder +} + +export type device_attrMinOrderByAggregateInput = { + id?: Prisma.SortOrder + device_id?: Prisma.SortOrder + attr?: Prisma.SortOrder + value?: Prisma.SortOrder +} + +export type device_attrSumOrderByAggregateInput = { + id?: Prisma.SortOrder + device_id?: Prisma.SortOrder +} + + + +export type device_attrSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + device_id?: boolean + attr?: boolean + value?: boolean +}, ExtArgs["result"]["device_attr"]> + + + +export type device_attrSelectScalar = { + id?: boolean + device_id?: boolean + attr?: boolean + value?: boolean +} + +export type device_attrOmit = runtime.Types.Extensions.GetOmit<"id" | "device_id" | "attr" | "value", ExtArgs["result"]["device_attr"]> + +export type $device_attrPayload = { + name: "device_attr" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + device_id: number + attr: string + value: string + }, ExtArgs["result"]["device_attr"]> + composites: {} +} + +export type device_attrGetPayload = runtime.Types.Result.GetResult + +export type device_attrCountArgs = + Omit & { + select?: Device_attrCountAggregateInputType | true + } + +export interface device_attrDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['device_attr'], meta: { name: 'device_attr' } } + /** + * Find zero or one Device_attr that matches the filter. + * @param {device_attrFindUniqueArgs} args - Arguments to find a Device_attr + * @example + * // Get one Device_attr + * const device_attr = await prisma.device_attr.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__device_attrClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Device_attr that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {device_attrFindUniqueOrThrowArgs} args - Arguments to find a Device_attr + * @example + * // Get one Device_attr + * const device_attr = await prisma.device_attr.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__device_attrClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Device_attr 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 {device_attrFindFirstArgs} args - Arguments to find a Device_attr + * @example + * // Get one Device_attr + * const device_attr = await prisma.device_attr.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__device_attrClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Device_attr 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 {device_attrFindFirstOrThrowArgs} args - Arguments to find a Device_attr + * @example + * // Get one Device_attr + * const device_attr = await prisma.device_attr.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__device_attrClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Device_attrs 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 {device_attrFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Device_attrs + * const device_attrs = await prisma.device_attr.findMany() + * + * // Get first 10 Device_attrs + * const device_attrs = await prisma.device_attr.findMany({ take: 10 }) + * + * // Only select the `id` + * const device_attrWithIdOnly = await prisma.device_attr.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Device_attr. + * @param {device_attrCreateArgs} args - Arguments to create a Device_attr. + * @example + * // Create one Device_attr + * const Device_attr = await prisma.device_attr.create({ + * data: { + * // ... data to create a Device_attr + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__device_attrClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Device_attrs. + * @param {device_attrCreateManyArgs} args - Arguments to create many Device_attrs. + * @example + * // Create many Device_attrs + * const device_attr = await prisma.device_attr.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Device_attr. + * @param {device_attrDeleteArgs} args - Arguments to delete one Device_attr. + * @example + * // Delete one Device_attr + * const Device_attr = await prisma.device_attr.delete({ + * where: { + * // ... filter to delete one Device_attr + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__device_attrClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Device_attr. + * @param {device_attrUpdateArgs} args - Arguments to update one Device_attr. + * @example + * // Update one Device_attr + * const device_attr = await prisma.device_attr.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__device_attrClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Device_attrs. + * @param {device_attrDeleteManyArgs} args - Arguments to filter Device_attrs to delete. + * @example + * // Delete a few Device_attrs + * const { count } = await prisma.device_attr.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Device_attrs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {device_attrUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Device_attrs + * const device_attr = await prisma.device_attr.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Device_attr. + * @param {device_attrUpsertArgs} args - Arguments to update or create a Device_attr. + * @example + * // Update or create a Device_attr + * const device_attr = await prisma.device_attr.upsert({ + * create: { + * // ... data to create a Device_attr + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Device_attr we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__device_attrClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Device_attrs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {device_attrCountArgs} args - Arguments to filter Device_attrs to count. + * @example + * // Count the number of Device_attrs + * const count = await prisma.device_attr.count({ + * where: { + * // ... the filter for the Device_attrs 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 Device_attr. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Device_attrAggregateArgs} 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 Device_attr. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {device_attrGroupByArgs} 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 device_attrGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: device_attrGroupByArgs['orderBy'] } + : { orderBy?: device_attrGroupByArgs['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 ? GetDevice_attrGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the device_attr model + */ +readonly fields: device_attrFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for device_attr. + * 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__device_attrClient 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 device_attr model + */ +export interface device_attrFieldRefs { + readonly id: Prisma.FieldRef<"device_attr", 'Int'> + readonly device_id: Prisma.FieldRef<"device_attr", 'Int'> + readonly attr: Prisma.FieldRef<"device_attr", 'String'> + readonly value: Prisma.FieldRef<"device_attr", 'String'> +} + + +// Custom InputTypes +/** + * device_attr findUnique + */ +export type device_attrFindUniqueArgs = { + /** + * Select specific fields to fetch from the device_attr + */ + select?: Prisma.device_attrSelect | null + /** + * Omit specific fields from the device_attr + */ + omit?: Prisma.device_attrOmit | null + /** + * Filter, which device_attr to fetch. + */ + where: Prisma.device_attrWhereUniqueInput +} + +/** + * device_attr findUniqueOrThrow + */ +export type device_attrFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the device_attr + */ + select?: Prisma.device_attrSelect | null + /** + * Omit specific fields from the device_attr + */ + omit?: Prisma.device_attrOmit | null + /** + * Filter, which device_attr to fetch. + */ + where: Prisma.device_attrWhereUniqueInput +} + +/** + * device_attr findFirst + */ +export type device_attrFindFirstArgs = { + /** + * Select specific fields to fetch from the device_attr + */ + select?: Prisma.device_attrSelect | null + /** + * Omit specific fields from the device_attr + */ + omit?: Prisma.device_attrOmit | null + /** + * Filter, which device_attr to fetch. + */ + where?: Prisma.device_attrWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_attrs to fetch. + */ + orderBy?: Prisma.device_attrOrderByWithRelationInput | Prisma.device_attrOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for device_attrs. + */ + cursor?: Prisma.device_attrWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_attrs 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` device_attrs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of device_attrs. + */ + distinct?: Prisma.Device_attrScalarFieldEnum | Prisma.Device_attrScalarFieldEnum[] +} + +/** + * device_attr findFirstOrThrow + */ +export type device_attrFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the device_attr + */ + select?: Prisma.device_attrSelect | null + /** + * Omit specific fields from the device_attr + */ + omit?: Prisma.device_attrOmit | null + /** + * Filter, which device_attr to fetch. + */ + where?: Prisma.device_attrWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_attrs to fetch. + */ + orderBy?: Prisma.device_attrOrderByWithRelationInput | Prisma.device_attrOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for device_attrs. + */ + cursor?: Prisma.device_attrWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_attrs 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` device_attrs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of device_attrs. + */ + distinct?: Prisma.Device_attrScalarFieldEnum | Prisma.Device_attrScalarFieldEnum[] +} + +/** + * device_attr findMany + */ +export type device_attrFindManyArgs = { + /** + * Select specific fields to fetch from the device_attr + */ + select?: Prisma.device_attrSelect | null + /** + * Omit specific fields from the device_attr + */ + omit?: Prisma.device_attrOmit | null + /** + * Filter, which device_attrs to fetch. + */ + where?: Prisma.device_attrWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_attrs to fetch. + */ + orderBy?: Prisma.device_attrOrderByWithRelationInput | Prisma.device_attrOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing device_attrs. + */ + cursor?: Prisma.device_attrWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_attrs 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` device_attrs. + */ + skip?: number + distinct?: Prisma.Device_attrScalarFieldEnum | Prisma.Device_attrScalarFieldEnum[] +} + +/** + * device_attr create + */ +export type device_attrCreateArgs = { + /** + * Select specific fields to fetch from the device_attr + */ + select?: Prisma.device_attrSelect | null + /** + * Omit specific fields from the device_attr + */ + omit?: Prisma.device_attrOmit | null + /** + * The data needed to create a device_attr. + */ + data: Prisma.XOR +} + +/** + * device_attr createMany + */ +export type device_attrCreateManyArgs = { + /** + * The data used to create many device_attrs. + */ + data: Prisma.device_attrCreateManyInput | Prisma.device_attrCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * device_attr update + */ +export type device_attrUpdateArgs = { + /** + * Select specific fields to fetch from the device_attr + */ + select?: Prisma.device_attrSelect | null + /** + * Omit specific fields from the device_attr + */ + omit?: Prisma.device_attrOmit | null + /** + * The data needed to update a device_attr. + */ + data: Prisma.XOR + /** + * Choose, which device_attr to update. + */ + where: Prisma.device_attrWhereUniqueInput +} + +/** + * device_attr updateMany + */ +export type device_attrUpdateManyArgs = { + /** + * The data used to update device_attrs. + */ + data: Prisma.XOR + /** + * Filter which device_attrs to update + */ + where?: Prisma.device_attrWhereInput + /** + * Limit how many device_attrs to update. + */ + limit?: number +} + +/** + * device_attr upsert + */ +export type device_attrUpsertArgs = { + /** + * Select specific fields to fetch from the device_attr + */ + select?: Prisma.device_attrSelect | null + /** + * Omit specific fields from the device_attr + */ + omit?: Prisma.device_attrOmit | null + /** + * The filter to search for the device_attr to update in case it exists. + */ + where: Prisma.device_attrWhereUniqueInput + /** + * In case the device_attr found by the `where` argument doesn't exist, create a new device_attr with this data. + */ + create: Prisma.XOR + /** + * In case the device_attr was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * device_attr delete + */ +export type device_attrDeleteArgs = { + /** + * Select specific fields to fetch from the device_attr + */ + select?: Prisma.device_attrSelect | null + /** + * Omit specific fields from the device_attr + */ + omit?: Prisma.device_attrOmit | null + /** + * Filter which device_attr to delete. + */ + where: Prisma.device_attrWhereUniqueInput +} + +/** + * device_attr deleteMany + */ +export type device_attrDeleteManyArgs = { + /** + * Filter which device_attrs to delete + */ + where?: Prisma.device_attrWhereInput + /** + * Limit how many device_attrs to delete. + */ + limit?: number +} + +/** + * device_attr without action + */ +export type device_attrDefaultArgs = { + /** + * Select specific fields to fetch from the device_attr + */ + select?: Prisma.device_attrSelect | null + /** + * Omit specific fields from the device_attr + */ + omit?: Prisma.device_attrOmit | null +} diff --git a/prisma/generated/mariadb/models/device_link.ts b/prisma/generated/mariadb/models/device_link.ts new file mode 100644 index 0000000..3c15e94 --- /dev/null +++ b/prisma/generated/mariadb/models/device_link.ts @@ -0,0 +1,1032 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `device_link` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model device_link + * + */ +export type device_linkModel = runtime.Types.Result.DefaultSelection + +export type AggregateDevice_link = { + _count: Device_linkCountAggregateOutputType | null + _avg: Device_linkAvgAggregateOutputType | null + _sum: Device_linkSumAggregateOutputType | null + _min: Device_linkMinAggregateOutputType | null + _max: Device_linkMaxAggregateOutputType | null +} + +export type Device_linkAvgAggregateOutputType = { + id: number | null + parent: number | null + child: number | null +} + +export type Device_linkSumAggregateOutputType = { + id: number | null + parent: number | null + child: number | null +} + +export type Device_linkMinAggregateOutputType = { + id: number | null + parent: number | null + child: number | null +} + +export type Device_linkMaxAggregateOutputType = { + id: number | null + parent: number | null + child: number | null +} + +export type Device_linkCountAggregateOutputType = { + id: number + parent: number + child: number + _all: number +} + + +export type Device_linkAvgAggregateInputType = { + id?: true + parent?: true + child?: true +} + +export type Device_linkSumAggregateInputType = { + id?: true + parent?: true + child?: true +} + +export type Device_linkMinAggregateInputType = { + id?: true + parent?: true + child?: true +} + +export type Device_linkMaxAggregateInputType = { + id?: true + parent?: true + child?: true +} + +export type Device_linkCountAggregateInputType = { + id?: true + parent?: true + child?: true + _all?: true +} + +export type Device_linkAggregateArgs = { + /** + * Filter which device_link to aggregate. + */ + where?: Prisma.device_linkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_links to fetch. + */ + orderBy?: Prisma.device_linkOrderByWithRelationInput | Prisma.device_linkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.device_linkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_links 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` device_links. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned device_links + **/ + _count?: true | Device_linkCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Device_linkAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Device_linkSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Device_linkMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Device_linkMaxAggregateInputType +} + +export type GetDevice_linkAggregateType = { + [P in keyof T & keyof AggregateDevice_link]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type device_linkGroupByArgs = { + where?: Prisma.device_linkWhereInput + orderBy?: Prisma.device_linkOrderByWithAggregationInput | Prisma.device_linkOrderByWithAggregationInput[] + by: Prisma.Device_linkScalarFieldEnum[] | Prisma.Device_linkScalarFieldEnum + having?: Prisma.device_linkScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Device_linkCountAggregateInputType | true + _avg?: Device_linkAvgAggregateInputType + _sum?: Device_linkSumAggregateInputType + _min?: Device_linkMinAggregateInputType + _max?: Device_linkMaxAggregateInputType +} + +export type Device_linkGroupByOutputType = { + id: number + parent: number + child: number + _count: Device_linkCountAggregateOutputType | null + _avg: Device_linkAvgAggregateOutputType | null + _sum: Device_linkSumAggregateOutputType | null + _min: Device_linkMinAggregateOutputType | null + _max: Device_linkMaxAggregateOutputType | null +} + +type GetDevice_linkGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Device_linkGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type device_linkWhereInput = { + AND?: Prisma.device_linkWhereInput | Prisma.device_linkWhereInput[] + OR?: Prisma.device_linkWhereInput[] + NOT?: Prisma.device_linkWhereInput | Prisma.device_linkWhereInput[] + id?: Prisma.IntFilter<"device_link"> | number + parent?: Prisma.IntFilter<"device_link"> | number + child?: Prisma.IntFilter<"device_link"> | number +} + +export type device_linkOrderByWithRelationInput = { + id?: Prisma.SortOrder + parent?: Prisma.SortOrder + child?: Prisma.SortOrder +} + +export type device_linkWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.device_linkWhereInput | Prisma.device_linkWhereInput[] + OR?: Prisma.device_linkWhereInput[] + NOT?: Prisma.device_linkWhereInput | Prisma.device_linkWhereInput[] + parent?: Prisma.IntFilter<"device_link"> | number + child?: Prisma.IntFilter<"device_link"> | number +}, "id"> + +export type device_linkOrderByWithAggregationInput = { + id?: Prisma.SortOrder + parent?: Prisma.SortOrder + child?: Prisma.SortOrder + _count?: Prisma.device_linkCountOrderByAggregateInput + _avg?: Prisma.device_linkAvgOrderByAggregateInput + _max?: Prisma.device_linkMaxOrderByAggregateInput + _min?: Prisma.device_linkMinOrderByAggregateInput + _sum?: Prisma.device_linkSumOrderByAggregateInput +} + +export type device_linkScalarWhereWithAggregatesInput = { + AND?: Prisma.device_linkScalarWhereWithAggregatesInput | Prisma.device_linkScalarWhereWithAggregatesInput[] + OR?: Prisma.device_linkScalarWhereWithAggregatesInput[] + NOT?: Prisma.device_linkScalarWhereWithAggregatesInput | Prisma.device_linkScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"device_link"> | number + parent?: Prisma.IntWithAggregatesFilter<"device_link"> | number + child?: Prisma.IntWithAggregatesFilter<"device_link"> | number +} + +export type device_linkCreateInput = { + parent: number + child: number +} + +export type device_linkUncheckedCreateInput = { + id?: number + parent: number + child: number +} + +export type device_linkUpdateInput = { + parent?: Prisma.IntFieldUpdateOperationsInput | number + child?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type device_linkUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + parent?: Prisma.IntFieldUpdateOperationsInput | number + child?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type device_linkCreateManyInput = { + id?: number + parent: number + child: number +} + +export type device_linkUpdateManyMutationInput = { + parent?: Prisma.IntFieldUpdateOperationsInput | number + child?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type device_linkUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + parent?: Prisma.IntFieldUpdateOperationsInput | number + child?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type device_linkCountOrderByAggregateInput = { + id?: Prisma.SortOrder + parent?: Prisma.SortOrder + child?: Prisma.SortOrder +} + +export type device_linkAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + parent?: Prisma.SortOrder + child?: Prisma.SortOrder +} + +export type device_linkMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + parent?: Prisma.SortOrder + child?: Prisma.SortOrder +} + +export type device_linkMinOrderByAggregateInput = { + id?: Prisma.SortOrder + parent?: Prisma.SortOrder + child?: Prisma.SortOrder +} + +export type device_linkSumOrderByAggregateInput = { + id?: Prisma.SortOrder + parent?: Prisma.SortOrder + child?: Prisma.SortOrder +} + + + +export type device_linkSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + parent?: boolean + child?: boolean +}, ExtArgs["result"]["device_link"]> + + + +export type device_linkSelectScalar = { + id?: boolean + parent?: boolean + child?: boolean +} + +export type device_linkOmit = runtime.Types.Extensions.GetOmit<"id" | "parent" | "child", ExtArgs["result"]["device_link"]> + +export type $device_linkPayload = { + name: "device_link" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + parent: number + child: number + }, ExtArgs["result"]["device_link"]> + composites: {} +} + +export type device_linkGetPayload = runtime.Types.Result.GetResult + +export type device_linkCountArgs = + Omit & { + select?: Device_linkCountAggregateInputType | true + } + +export interface device_linkDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['device_link'], meta: { name: 'device_link' } } + /** + * Find zero or one Device_link that matches the filter. + * @param {device_linkFindUniqueArgs} args - Arguments to find a Device_link + * @example + * // Get one Device_link + * const device_link = await prisma.device_link.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__device_linkClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Device_link that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {device_linkFindUniqueOrThrowArgs} args - Arguments to find a Device_link + * @example + * // Get one Device_link + * const device_link = await prisma.device_link.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__device_linkClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Device_link 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 {device_linkFindFirstArgs} args - Arguments to find a Device_link + * @example + * // Get one Device_link + * const device_link = await prisma.device_link.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__device_linkClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Device_link 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 {device_linkFindFirstOrThrowArgs} args - Arguments to find a Device_link + * @example + * // Get one Device_link + * const device_link = await prisma.device_link.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__device_linkClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Device_links 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 {device_linkFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Device_links + * const device_links = await prisma.device_link.findMany() + * + * // Get first 10 Device_links + * const device_links = await prisma.device_link.findMany({ take: 10 }) + * + * // Only select the `id` + * const device_linkWithIdOnly = await prisma.device_link.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Device_link. + * @param {device_linkCreateArgs} args - Arguments to create a Device_link. + * @example + * // Create one Device_link + * const Device_link = await prisma.device_link.create({ + * data: { + * // ... data to create a Device_link + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__device_linkClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Device_links. + * @param {device_linkCreateManyArgs} args - Arguments to create many Device_links. + * @example + * // Create many Device_links + * const device_link = await prisma.device_link.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Device_link. + * @param {device_linkDeleteArgs} args - Arguments to delete one Device_link. + * @example + * // Delete one Device_link + * const Device_link = await prisma.device_link.delete({ + * where: { + * // ... filter to delete one Device_link + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__device_linkClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Device_link. + * @param {device_linkUpdateArgs} args - Arguments to update one Device_link. + * @example + * // Update one Device_link + * const device_link = await prisma.device_link.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__device_linkClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Device_links. + * @param {device_linkDeleteManyArgs} args - Arguments to filter Device_links to delete. + * @example + * // Delete a few Device_links + * const { count } = await prisma.device_link.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Device_links. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {device_linkUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Device_links + * const device_link = await prisma.device_link.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Device_link. + * @param {device_linkUpsertArgs} args - Arguments to update or create a Device_link. + * @example + * // Update or create a Device_link + * const device_link = await prisma.device_link.upsert({ + * create: { + * // ... data to create a Device_link + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Device_link we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__device_linkClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Device_links. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {device_linkCountArgs} args - Arguments to filter Device_links to count. + * @example + * // Count the number of Device_links + * const count = await prisma.device_link.count({ + * where: { + * // ... the filter for the Device_links 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 Device_link. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Device_linkAggregateArgs} 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 Device_link. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {device_linkGroupByArgs} 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 device_linkGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: device_linkGroupByArgs['orderBy'] } + : { orderBy?: device_linkGroupByArgs['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 ? GetDevice_linkGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the device_link model + */ +readonly fields: device_linkFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for device_link. + * 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__device_linkClient 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 device_link model + */ +export interface device_linkFieldRefs { + readonly id: Prisma.FieldRef<"device_link", 'Int'> + readonly parent: Prisma.FieldRef<"device_link", 'Int'> + readonly child: Prisma.FieldRef<"device_link", 'Int'> +} + + +// Custom InputTypes +/** + * device_link findUnique + */ +export type device_linkFindUniqueArgs = { + /** + * Select specific fields to fetch from the device_link + */ + select?: Prisma.device_linkSelect | null + /** + * Omit specific fields from the device_link + */ + omit?: Prisma.device_linkOmit | null + /** + * Filter, which device_link to fetch. + */ + where: Prisma.device_linkWhereUniqueInput +} + +/** + * device_link findUniqueOrThrow + */ +export type device_linkFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the device_link + */ + select?: Prisma.device_linkSelect | null + /** + * Omit specific fields from the device_link + */ + omit?: Prisma.device_linkOmit | null + /** + * Filter, which device_link to fetch. + */ + where: Prisma.device_linkWhereUniqueInput +} + +/** + * device_link findFirst + */ +export type device_linkFindFirstArgs = { + /** + * Select specific fields to fetch from the device_link + */ + select?: Prisma.device_linkSelect | null + /** + * Omit specific fields from the device_link + */ + omit?: Prisma.device_linkOmit | null + /** + * Filter, which device_link to fetch. + */ + where?: Prisma.device_linkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_links to fetch. + */ + orderBy?: Prisma.device_linkOrderByWithRelationInput | Prisma.device_linkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for device_links. + */ + cursor?: Prisma.device_linkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_links 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` device_links. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of device_links. + */ + distinct?: Prisma.Device_linkScalarFieldEnum | Prisma.Device_linkScalarFieldEnum[] +} + +/** + * device_link findFirstOrThrow + */ +export type device_linkFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the device_link + */ + select?: Prisma.device_linkSelect | null + /** + * Omit specific fields from the device_link + */ + omit?: Prisma.device_linkOmit | null + /** + * Filter, which device_link to fetch. + */ + where?: Prisma.device_linkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_links to fetch. + */ + orderBy?: Prisma.device_linkOrderByWithRelationInput | Prisma.device_linkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for device_links. + */ + cursor?: Prisma.device_linkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_links 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` device_links. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of device_links. + */ + distinct?: Prisma.Device_linkScalarFieldEnum | Prisma.Device_linkScalarFieldEnum[] +} + +/** + * device_link findMany + */ +export type device_linkFindManyArgs = { + /** + * Select specific fields to fetch from the device_link + */ + select?: Prisma.device_linkSelect | null + /** + * Omit specific fields from the device_link + */ + omit?: Prisma.device_linkOmit | null + /** + * Filter, which device_links to fetch. + */ + where?: Prisma.device_linkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_links to fetch. + */ + orderBy?: Prisma.device_linkOrderByWithRelationInput | Prisma.device_linkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing device_links. + */ + cursor?: Prisma.device_linkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_links 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` device_links. + */ + skip?: number + distinct?: Prisma.Device_linkScalarFieldEnum | Prisma.Device_linkScalarFieldEnum[] +} + +/** + * device_link create + */ +export type device_linkCreateArgs = { + /** + * Select specific fields to fetch from the device_link + */ + select?: Prisma.device_linkSelect | null + /** + * Omit specific fields from the device_link + */ + omit?: Prisma.device_linkOmit | null + /** + * The data needed to create a device_link. + */ + data: Prisma.XOR +} + +/** + * device_link createMany + */ +export type device_linkCreateManyArgs = { + /** + * The data used to create many device_links. + */ + data: Prisma.device_linkCreateManyInput | Prisma.device_linkCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * device_link update + */ +export type device_linkUpdateArgs = { + /** + * Select specific fields to fetch from the device_link + */ + select?: Prisma.device_linkSelect | null + /** + * Omit specific fields from the device_link + */ + omit?: Prisma.device_linkOmit | null + /** + * The data needed to update a device_link. + */ + data: Prisma.XOR + /** + * Choose, which device_link to update. + */ + where: Prisma.device_linkWhereUniqueInput +} + +/** + * device_link updateMany + */ +export type device_linkUpdateManyArgs = { + /** + * The data used to update device_links. + */ + data: Prisma.XOR + /** + * Filter which device_links to update + */ + where?: Prisma.device_linkWhereInput + /** + * Limit how many device_links to update. + */ + limit?: number +} + +/** + * device_link upsert + */ +export type device_linkUpsertArgs = { + /** + * Select specific fields to fetch from the device_link + */ + select?: Prisma.device_linkSelect | null + /** + * Omit specific fields from the device_link + */ + omit?: Prisma.device_linkOmit | null + /** + * The filter to search for the device_link to update in case it exists. + */ + where: Prisma.device_linkWhereUniqueInput + /** + * In case the device_link found by the `where` argument doesn't exist, create a new device_link with this data. + */ + create: Prisma.XOR + /** + * In case the device_link was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * device_link delete + */ +export type device_linkDeleteArgs = { + /** + * Select specific fields to fetch from the device_link + */ + select?: Prisma.device_linkSelect | null + /** + * Omit specific fields from the device_link + */ + omit?: Prisma.device_linkOmit | null + /** + * Filter which device_link to delete. + */ + where: Prisma.device_linkWhereUniqueInput +} + +/** + * device_link deleteMany + */ +export type device_linkDeleteManyArgs = { + /** + * Filter which device_links to delete + */ + where?: Prisma.device_linkWhereInput + /** + * Limit how many device_links to delete. + */ + limit?: number +} + +/** + * device_link without action + */ +export type device_linkDefaultArgs = { + /** + * Select specific fields to fetch from the device_link + */ + select?: Prisma.device_linkSelect | null + /** + * Omit specific fields from the device_link + */ + omit?: Prisma.device_linkOmit | null +} diff --git a/prisma/generated/mariadb/models/device_template.ts b/prisma/generated/mariadb/models/device_template.ts new file mode 100644 index 0000000..5a898e5 --- /dev/null +++ b/prisma/generated/mariadb/models/device_template.ts @@ -0,0 +1,1001 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `device_template` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model device_template + * + */ +export type device_templateModel = runtime.Types.Result.DefaultSelection + +export type AggregateDevice_template = { + _count: Device_templateCountAggregateOutputType | null + _avg: Device_templateAvgAggregateOutputType | null + _sum: Device_templateSumAggregateOutputType | null + _min: Device_templateMinAggregateOutputType | null + _max: Device_templateMaxAggregateOutputType | null +} + +export type Device_templateAvgAggregateOutputType = { + id: number | null +} + +export type Device_templateSumAggregateOutputType = { + id: number | null +} + +export type Device_templateMinAggregateOutputType = { + id: number | null + nom: string | null +} + +export type Device_templateMaxAggregateOutputType = { + id: number | null + nom: string | null +} + +export type Device_templateCountAggregateOutputType = { + id: number + nom: number + _all: number +} + + +export type Device_templateAvgAggregateInputType = { + id?: true +} + +export type Device_templateSumAggregateInputType = { + id?: true +} + +export type Device_templateMinAggregateInputType = { + id?: true + nom?: true +} + +export type Device_templateMaxAggregateInputType = { + id?: true + nom?: true +} + +export type Device_templateCountAggregateInputType = { + id?: true + nom?: true + _all?: true +} + +export type Device_templateAggregateArgs = { + /** + * Filter which device_template to aggregate. + */ + where?: Prisma.device_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_templates to fetch. + */ + orderBy?: Prisma.device_templateOrderByWithRelationInput | Prisma.device_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.device_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_templates 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` device_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned device_templates + **/ + _count?: true | Device_templateCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Device_templateAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Device_templateSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Device_templateMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Device_templateMaxAggregateInputType +} + +export type GetDevice_templateAggregateType = { + [P in keyof T & keyof AggregateDevice_template]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type device_templateGroupByArgs = { + where?: Prisma.device_templateWhereInput + orderBy?: Prisma.device_templateOrderByWithAggregationInput | Prisma.device_templateOrderByWithAggregationInput[] + by: Prisma.Device_templateScalarFieldEnum[] | Prisma.Device_templateScalarFieldEnum + having?: Prisma.device_templateScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Device_templateCountAggregateInputType | true + _avg?: Device_templateAvgAggregateInputType + _sum?: Device_templateSumAggregateInputType + _min?: Device_templateMinAggregateInputType + _max?: Device_templateMaxAggregateInputType +} + +export type Device_templateGroupByOutputType = { + id: number + nom: string + _count: Device_templateCountAggregateOutputType | null + _avg: Device_templateAvgAggregateOutputType | null + _sum: Device_templateSumAggregateOutputType | null + _min: Device_templateMinAggregateOutputType | null + _max: Device_templateMaxAggregateOutputType | null +} + +type GetDevice_templateGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Device_templateGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type device_templateWhereInput = { + AND?: Prisma.device_templateWhereInput | Prisma.device_templateWhereInput[] + OR?: Prisma.device_templateWhereInput[] + NOT?: Prisma.device_templateWhereInput | Prisma.device_templateWhereInput[] + id?: Prisma.IntFilter<"device_template"> | number + nom?: Prisma.StringFilter<"device_template"> | string +} + +export type device_templateOrderByWithRelationInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + _relevance?: Prisma.device_templateOrderByRelevanceInput +} + +export type device_templateWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.device_templateWhereInput | Prisma.device_templateWhereInput[] + OR?: Prisma.device_templateWhereInput[] + NOT?: Prisma.device_templateWhereInput | Prisma.device_templateWhereInput[] + nom?: Prisma.StringFilter<"device_template"> | string +}, "id"> + +export type device_templateOrderByWithAggregationInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + _count?: Prisma.device_templateCountOrderByAggregateInput + _avg?: Prisma.device_templateAvgOrderByAggregateInput + _max?: Prisma.device_templateMaxOrderByAggregateInput + _min?: Prisma.device_templateMinOrderByAggregateInput + _sum?: Prisma.device_templateSumOrderByAggregateInput +} + +export type device_templateScalarWhereWithAggregatesInput = { + AND?: Prisma.device_templateScalarWhereWithAggregatesInput | Prisma.device_templateScalarWhereWithAggregatesInput[] + OR?: Prisma.device_templateScalarWhereWithAggregatesInput[] + NOT?: Prisma.device_templateScalarWhereWithAggregatesInput | Prisma.device_templateScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"device_template"> | number + nom?: Prisma.StringWithAggregatesFilter<"device_template"> | string +} + +export type device_templateCreateInput = { + nom: string +} + +export type device_templateUncheckedCreateInput = { + id?: number + nom: string +} + +export type device_templateUpdateInput = { + nom?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type device_templateUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + nom?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type device_templateCreateManyInput = { + id?: number + nom: string +} + +export type device_templateUpdateManyMutationInput = { + nom?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type device_templateUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + nom?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type device_templateOrderByRelevanceInput = { + fields: Prisma.device_templateOrderByRelevanceFieldEnum | Prisma.device_templateOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type device_templateCountOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder +} + +export type device_templateAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type device_templateMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder +} + +export type device_templateMinOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder +} + +export type device_templateSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type device_templateSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + nom?: boolean +}, ExtArgs["result"]["device_template"]> + + + +export type device_templateSelectScalar = { + id?: boolean + nom?: boolean +} + +export type device_templateOmit = runtime.Types.Extensions.GetOmit<"id" | "nom", ExtArgs["result"]["device_template"]> + +export type $device_templatePayload = { + name: "device_template" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + nom: string + }, ExtArgs["result"]["device_template"]> + composites: {} +} + +export type device_templateGetPayload = runtime.Types.Result.GetResult + +export type device_templateCountArgs = + Omit & { + select?: Device_templateCountAggregateInputType | true + } + +export interface device_templateDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['device_template'], meta: { name: 'device_template' } } + /** + * Find zero or one Device_template that matches the filter. + * @param {device_templateFindUniqueArgs} args - Arguments to find a Device_template + * @example + * // Get one Device_template + * const device_template = await prisma.device_template.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__device_templateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Device_template that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {device_templateFindUniqueOrThrowArgs} args - Arguments to find a Device_template + * @example + * // Get one Device_template + * const device_template = await prisma.device_template.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__device_templateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Device_template 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 {device_templateFindFirstArgs} args - Arguments to find a Device_template + * @example + * // Get one Device_template + * const device_template = await prisma.device_template.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__device_templateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Device_template 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 {device_templateFindFirstOrThrowArgs} args - Arguments to find a Device_template + * @example + * // Get one Device_template + * const device_template = await prisma.device_template.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__device_templateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Device_templates 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 {device_templateFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Device_templates + * const device_templates = await prisma.device_template.findMany() + * + * // Get first 10 Device_templates + * const device_templates = await prisma.device_template.findMany({ take: 10 }) + * + * // Only select the `id` + * const device_templateWithIdOnly = await prisma.device_template.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Device_template. + * @param {device_templateCreateArgs} args - Arguments to create a Device_template. + * @example + * // Create one Device_template + * const Device_template = await prisma.device_template.create({ + * data: { + * // ... data to create a Device_template + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__device_templateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Device_templates. + * @param {device_templateCreateManyArgs} args - Arguments to create many Device_templates. + * @example + * // Create many Device_templates + * const device_template = await prisma.device_template.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Device_template. + * @param {device_templateDeleteArgs} args - Arguments to delete one Device_template. + * @example + * // Delete one Device_template + * const Device_template = await prisma.device_template.delete({ + * where: { + * // ... filter to delete one Device_template + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__device_templateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Device_template. + * @param {device_templateUpdateArgs} args - Arguments to update one Device_template. + * @example + * // Update one Device_template + * const device_template = await prisma.device_template.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__device_templateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Device_templates. + * @param {device_templateDeleteManyArgs} args - Arguments to filter Device_templates to delete. + * @example + * // Delete a few Device_templates + * const { count } = await prisma.device_template.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Device_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {device_templateUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Device_templates + * const device_template = await prisma.device_template.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Device_template. + * @param {device_templateUpsertArgs} args - Arguments to update or create a Device_template. + * @example + * // Update or create a Device_template + * const device_template = await prisma.device_template.upsert({ + * create: { + * // ... data to create a Device_template + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Device_template we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__device_templateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Device_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {device_templateCountArgs} args - Arguments to filter Device_templates to count. + * @example + * // Count the number of Device_templates + * const count = await prisma.device_template.count({ + * where: { + * // ... the filter for the Device_templates 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 Device_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Device_templateAggregateArgs} 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 Device_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {device_templateGroupByArgs} 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 device_templateGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: device_templateGroupByArgs['orderBy'] } + : { orderBy?: device_templateGroupByArgs['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 ? GetDevice_templateGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the device_template model + */ +readonly fields: device_templateFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for device_template. + * 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__device_templateClient 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 device_template model + */ +export interface device_templateFieldRefs { + readonly id: Prisma.FieldRef<"device_template", 'Int'> + readonly nom: Prisma.FieldRef<"device_template", 'String'> +} + + +// Custom InputTypes +/** + * device_template findUnique + */ +export type device_templateFindUniqueArgs = { + /** + * Select specific fields to fetch from the device_template + */ + select?: Prisma.device_templateSelect | null + /** + * Omit specific fields from the device_template + */ + omit?: Prisma.device_templateOmit | null + /** + * Filter, which device_template to fetch. + */ + where: Prisma.device_templateWhereUniqueInput +} + +/** + * device_template findUniqueOrThrow + */ +export type device_templateFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the device_template + */ + select?: Prisma.device_templateSelect | null + /** + * Omit specific fields from the device_template + */ + omit?: Prisma.device_templateOmit | null + /** + * Filter, which device_template to fetch. + */ + where: Prisma.device_templateWhereUniqueInput +} + +/** + * device_template findFirst + */ +export type device_templateFindFirstArgs = { + /** + * Select specific fields to fetch from the device_template + */ + select?: Prisma.device_templateSelect | null + /** + * Omit specific fields from the device_template + */ + omit?: Prisma.device_templateOmit | null + /** + * Filter, which device_template to fetch. + */ + where?: Prisma.device_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_templates to fetch. + */ + orderBy?: Prisma.device_templateOrderByWithRelationInput | Prisma.device_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for device_templates. + */ + cursor?: Prisma.device_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_templates 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` device_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of device_templates. + */ + distinct?: Prisma.Device_templateScalarFieldEnum | Prisma.Device_templateScalarFieldEnum[] +} + +/** + * device_template findFirstOrThrow + */ +export type device_templateFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the device_template + */ + select?: Prisma.device_templateSelect | null + /** + * Omit specific fields from the device_template + */ + omit?: Prisma.device_templateOmit | null + /** + * Filter, which device_template to fetch. + */ + where?: Prisma.device_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_templates to fetch. + */ + orderBy?: Prisma.device_templateOrderByWithRelationInput | Prisma.device_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for device_templates. + */ + cursor?: Prisma.device_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_templates 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` device_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of device_templates. + */ + distinct?: Prisma.Device_templateScalarFieldEnum | Prisma.Device_templateScalarFieldEnum[] +} + +/** + * device_template findMany + */ +export type device_templateFindManyArgs = { + /** + * Select specific fields to fetch from the device_template + */ + select?: Prisma.device_templateSelect | null + /** + * Omit specific fields from the device_template + */ + omit?: Prisma.device_templateOmit | null + /** + * Filter, which device_templates to fetch. + */ + where?: Prisma.device_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_templates to fetch. + */ + orderBy?: Prisma.device_templateOrderByWithRelationInput | Prisma.device_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing device_templates. + */ + cursor?: Prisma.device_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_templates 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` device_templates. + */ + skip?: number + distinct?: Prisma.Device_templateScalarFieldEnum | Prisma.Device_templateScalarFieldEnum[] +} + +/** + * device_template create + */ +export type device_templateCreateArgs = { + /** + * Select specific fields to fetch from the device_template + */ + select?: Prisma.device_templateSelect | null + /** + * Omit specific fields from the device_template + */ + omit?: Prisma.device_templateOmit | null + /** + * The data needed to create a device_template. + */ + data: Prisma.XOR +} + +/** + * device_template createMany + */ +export type device_templateCreateManyArgs = { + /** + * The data used to create many device_templates. + */ + data: Prisma.device_templateCreateManyInput | Prisma.device_templateCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * device_template update + */ +export type device_templateUpdateArgs = { + /** + * Select specific fields to fetch from the device_template + */ + select?: Prisma.device_templateSelect | null + /** + * Omit specific fields from the device_template + */ + omit?: Prisma.device_templateOmit | null + /** + * The data needed to update a device_template. + */ + data: Prisma.XOR + /** + * Choose, which device_template to update. + */ + where: Prisma.device_templateWhereUniqueInput +} + +/** + * device_template updateMany + */ +export type device_templateUpdateManyArgs = { + /** + * The data used to update device_templates. + */ + data: Prisma.XOR + /** + * Filter which device_templates to update + */ + where?: Prisma.device_templateWhereInput + /** + * Limit how many device_templates to update. + */ + limit?: number +} + +/** + * device_template upsert + */ +export type device_templateUpsertArgs = { + /** + * Select specific fields to fetch from the device_template + */ + select?: Prisma.device_templateSelect | null + /** + * Omit specific fields from the device_template + */ + omit?: Prisma.device_templateOmit | null + /** + * The filter to search for the device_template to update in case it exists. + */ + where: Prisma.device_templateWhereUniqueInput + /** + * In case the device_template found by the `where` argument doesn't exist, create a new device_template with this data. + */ + create: Prisma.XOR + /** + * In case the device_template was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * device_template delete + */ +export type device_templateDeleteArgs = { + /** + * Select specific fields to fetch from the device_template + */ + select?: Prisma.device_templateSelect | null + /** + * Omit specific fields from the device_template + */ + omit?: Prisma.device_templateOmit | null + /** + * Filter which device_template to delete. + */ + where: Prisma.device_templateWhereUniqueInput +} + +/** + * device_template deleteMany + */ +export type device_templateDeleteManyArgs = { + /** + * Filter which device_templates to delete + */ + where?: Prisma.device_templateWhereInput + /** + * Limit how many device_templates to delete. + */ + limit?: number +} + +/** + * device_template without action + */ +export type device_templateDefaultArgs = { + /** + * Select specific fields to fetch from the device_template + */ + select?: Prisma.device_templateSelect | null + /** + * Omit specific fields from the device_template + */ + omit?: Prisma.device_templateOmit | null +} diff --git a/prisma/generated/mariadb/models/device_template_attr.ts b/prisma/generated/mariadb/models/device_template_attr.ts new file mode 100644 index 0000000..13a3564 --- /dev/null +++ b/prisma/generated/mariadb/models/device_template_attr.ts @@ -0,0 +1,1059 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `device_template_attr` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model device_template_attr + * + */ +export type device_template_attrModel = runtime.Types.Result.DefaultSelection + +export type AggregateDevice_template_attr = { + _count: Device_template_attrCountAggregateOutputType | null + _avg: Device_template_attrAvgAggregateOutputType | null + _sum: Device_template_attrSumAggregateOutputType | null + _min: Device_template_attrMinAggregateOutputType | null + _max: Device_template_attrMaxAggregateOutputType | null +} + +export type Device_template_attrAvgAggregateOutputType = { + id: number | null + template_id: number | null +} + +export type Device_template_attrSumAggregateOutputType = { + id: number | null + template_id: number | null +} + +export type Device_template_attrMinAggregateOutputType = { + id: number | null + template_id: number | null + attr: string | null + default_val: string | null +} + +export type Device_template_attrMaxAggregateOutputType = { + id: number | null + template_id: number | null + attr: string | null + default_val: string | null +} + +export type Device_template_attrCountAggregateOutputType = { + id: number + template_id: number + attr: number + default_val: number + _all: number +} + + +export type Device_template_attrAvgAggregateInputType = { + id?: true + template_id?: true +} + +export type Device_template_attrSumAggregateInputType = { + id?: true + template_id?: true +} + +export type Device_template_attrMinAggregateInputType = { + id?: true + template_id?: true + attr?: true + default_val?: true +} + +export type Device_template_attrMaxAggregateInputType = { + id?: true + template_id?: true + attr?: true + default_val?: true +} + +export type Device_template_attrCountAggregateInputType = { + id?: true + template_id?: true + attr?: true + default_val?: true + _all?: true +} + +export type Device_template_attrAggregateArgs = { + /** + * Filter which device_template_attr to aggregate. + */ + where?: Prisma.device_template_attrWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_template_attrs to fetch. + */ + orderBy?: Prisma.device_template_attrOrderByWithRelationInput | Prisma.device_template_attrOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.device_template_attrWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_template_attrs 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` device_template_attrs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned device_template_attrs + **/ + _count?: true | Device_template_attrCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Device_template_attrAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Device_template_attrSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Device_template_attrMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Device_template_attrMaxAggregateInputType +} + +export type GetDevice_template_attrAggregateType = { + [P in keyof T & keyof AggregateDevice_template_attr]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type device_template_attrGroupByArgs = { + where?: Prisma.device_template_attrWhereInput + orderBy?: Prisma.device_template_attrOrderByWithAggregationInput | Prisma.device_template_attrOrderByWithAggregationInput[] + by: Prisma.Device_template_attrScalarFieldEnum[] | Prisma.Device_template_attrScalarFieldEnum + having?: Prisma.device_template_attrScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Device_template_attrCountAggregateInputType | true + _avg?: Device_template_attrAvgAggregateInputType + _sum?: Device_template_attrSumAggregateInputType + _min?: Device_template_attrMinAggregateInputType + _max?: Device_template_attrMaxAggregateInputType +} + +export type Device_template_attrGroupByOutputType = { + id: number + template_id: number + attr: string + default_val: string + _count: Device_template_attrCountAggregateOutputType | null + _avg: Device_template_attrAvgAggregateOutputType | null + _sum: Device_template_attrSumAggregateOutputType | null + _min: Device_template_attrMinAggregateOutputType | null + _max: Device_template_attrMaxAggregateOutputType | null +} + +type GetDevice_template_attrGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Device_template_attrGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type device_template_attrWhereInput = { + AND?: Prisma.device_template_attrWhereInput | Prisma.device_template_attrWhereInput[] + OR?: Prisma.device_template_attrWhereInput[] + NOT?: Prisma.device_template_attrWhereInput | Prisma.device_template_attrWhereInput[] + id?: Prisma.IntFilter<"device_template_attr"> | number + template_id?: Prisma.IntFilter<"device_template_attr"> | number + attr?: Prisma.StringFilter<"device_template_attr"> | string + default_val?: Prisma.StringFilter<"device_template_attr"> | string +} + +export type device_template_attrOrderByWithRelationInput = { + id?: Prisma.SortOrder + template_id?: Prisma.SortOrder + attr?: Prisma.SortOrder + default_val?: Prisma.SortOrder + _relevance?: Prisma.device_template_attrOrderByRelevanceInput +} + +export type device_template_attrWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.device_template_attrWhereInput | Prisma.device_template_attrWhereInput[] + OR?: Prisma.device_template_attrWhereInput[] + NOT?: Prisma.device_template_attrWhereInput | Prisma.device_template_attrWhereInput[] + template_id?: Prisma.IntFilter<"device_template_attr"> | number + attr?: Prisma.StringFilter<"device_template_attr"> | string + default_val?: Prisma.StringFilter<"device_template_attr"> | string +}, "id"> + +export type device_template_attrOrderByWithAggregationInput = { + id?: Prisma.SortOrder + template_id?: Prisma.SortOrder + attr?: Prisma.SortOrder + default_val?: Prisma.SortOrder + _count?: Prisma.device_template_attrCountOrderByAggregateInput + _avg?: Prisma.device_template_attrAvgOrderByAggregateInput + _max?: Prisma.device_template_attrMaxOrderByAggregateInput + _min?: Prisma.device_template_attrMinOrderByAggregateInput + _sum?: Prisma.device_template_attrSumOrderByAggregateInput +} + +export type device_template_attrScalarWhereWithAggregatesInput = { + AND?: Prisma.device_template_attrScalarWhereWithAggregatesInput | Prisma.device_template_attrScalarWhereWithAggregatesInput[] + OR?: Prisma.device_template_attrScalarWhereWithAggregatesInput[] + NOT?: Prisma.device_template_attrScalarWhereWithAggregatesInput | Prisma.device_template_attrScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"device_template_attr"> | number + template_id?: Prisma.IntWithAggregatesFilter<"device_template_attr"> | number + attr?: Prisma.StringWithAggregatesFilter<"device_template_attr"> | string + default_val?: Prisma.StringWithAggregatesFilter<"device_template_attr"> | string +} + +export type device_template_attrCreateInput = { + template_id: number + attr: string + default_val: string +} + +export type device_template_attrUncheckedCreateInput = { + id?: number + template_id: number + attr: string + default_val: string +} + +export type device_template_attrUpdateInput = { + template_id?: Prisma.IntFieldUpdateOperationsInput | number + attr?: Prisma.StringFieldUpdateOperationsInput | string + default_val?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type device_template_attrUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + template_id?: Prisma.IntFieldUpdateOperationsInput | number + attr?: Prisma.StringFieldUpdateOperationsInput | string + default_val?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type device_template_attrCreateManyInput = { + id?: number + template_id: number + attr: string + default_val: string +} + +export type device_template_attrUpdateManyMutationInput = { + template_id?: Prisma.IntFieldUpdateOperationsInput | number + attr?: Prisma.StringFieldUpdateOperationsInput | string + default_val?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type device_template_attrUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + template_id?: Prisma.IntFieldUpdateOperationsInput | number + attr?: Prisma.StringFieldUpdateOperationsInput | string + default_val?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type device_template_attrOrderByRelevanceInput = { + fields: Prisma.device_template_attrOrderByRelevanceFieldEnum | Prisma.device_template_attrOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type device_template_attrCountOrderByAggregateInput = { + id?: Prisma.SortOrder + template_id?: Prisma.SortOrder + attr?: Prisma.SortOrder + default_val?: Prisma.SortOrder +} + +export type device_template_attrAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + template_id?: Prisma.SortOrder +} + +export type device_template_attrMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + template_id?: Prisma.SortOrder + attr?: Prisma.SortOrder + default_val?: Prisma.SortOrder +} + +export type device_template_attrMinOrderByAggregateInput = { + id?: Prisma.SortOrder + template_id?: Prisma.SortOrder + attr?: Prisma.SortOrder + default_val?: Prisma.SortOrder +} + +export type device_template_attrSumOrderByAggregateInput = { + id?: Prisma.SortOrder + template_id?: Prisma.SortOrder +} + + + +export type device_template_attrSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + template_id?: boolean + attr?: boolean + default_val?: boolean +}, ExtArgs["result"]["device_template_attr"]> + + + +export type device_template_attrSelectScalar = { + id?: boolean + template_id?: boolean + attr?: boolean + default_val?: boolean +} + +export type device_template_attrOmit = runtime.Types.Extensions.GetOmit<"id" | "template_id" | "attr" | "default_val", ExtArgs["result"]["device_template_attr"]> + +export type $device_template_attrPayload = { + name: "device_template_attr" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + template_id: number + attr: string + default_val: string + }, ExtArgs["result"]["device_template_attr"]> + composites: {} +} + +export type device_template_attrGetPayload = runtime.Types.Result.GetResult + +export type device_template_attrCountArgs = + Omit & { + select?: Device_template_attrCountAggregateInputType | true + } + +export interface device_template_attrDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['device_template_attr'], meta: { name: 'device_template_attr' } } + /** + * Find zero or one Device_template_attr that matches the filter. + * @param {device_template_attrFindUniqueArgs} args - Arguments to find a Device_template_attr + * @example + * // Get one Device_template_attr + * const device_template_attr = await prisma.device_template_attr.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__device_template_attrClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Device_template_attr that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {device_template_attrFindUniqueOrThrowArgs} args - Arguments to find a Device_template_attr + * @example + * // Get one Device_template_attr + * const device_template_attr = await prisma.device_template_attr.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__device_template_attrClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Device_template_attr 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 {device_template_attrFindFirstArgs} args - Arguments to find a Device_template_attr + * @example + * // Get one Device_template_attr + * const device_template_attr = await prisma.device_template_attr.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__device_template_attrClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Device_template_attr 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 {device_template_attrFindFirstOrThrowArgs} args - Arguments to find a Device_template_attr + * @example + * // Get one Device_template_attr + * const device_template_attr = await prisma.device_template_attr.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__device_template_attrClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Device_template_attrs 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 {device_template_attrFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Device_template_attrs + * const device_template_attrs = await prisma.device_template_attr.findMany() + * + * // Get first 10 Device_template_attrs + * const device_template_attrs = await prisma.device_template_attr.findMany({ take: 10 }) + * + * // Only select the `id` + * const device_template_attrWithIdOnly = await prisma.device_template_attr.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Device_template_attr. + * @param {device_template_attrCreateArgs} args - Arguments to create a Device_template_attr. + * @example + * // Create one Device_template_attr + * const Device_template_attr = await prisma.device_template_attr.create({ + * data: { + * // ... data to create a Device_template_attr + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__device_template_attrClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Device_template_attrs. + * @param {device_template_attrCreateManyArgs} args - Arguments to create many Device_template_attrs. + * @example + * // Create many Device_template_attrs + * const device_template_attr = await prisma.device_template_attr.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Device_template_attr. + * @param {device_template_attrDeleteArgs} args - Arguments to delete one Device_template_attr. + * @example + * // Delete one Device_template_attr + * const Device_template_attr = await prisma.device_template_attr.delete({ + * where: { + * // ... filter to delete one Device_template_attr + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__device_template_attrClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Device_template_attr. + * @param {device_template_attrUpdateArgs} args - Arguments to update one Device_template_attr. + * @example + * // Update one Device_template_attr + * const device_template_attr = await prisma.device_template_attr.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__device_template_attrClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Device_template_attrs. + * @param {device_template_attrDeleteManyArgs} args - Arguments to filter Device_template_attrs to delete. + * @example + * // Delete a few Device_template_attrs + * const { count } = await prisma.device_template_attr.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Device_template_attrs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {device_template_attrUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Device_template_attrs + * const device_template_attr = await prisma.device_template_attr.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Device_template_attr. + * @param {device_template_attrUpsertArgs} args - Arguments to update or create a Device_template_attr. + * @example + * // Update or create a Device_template_attr + * const device_template_attr = await prisma.device_template_attr.upsert({ + * create: { + * // ... data to create a Device_template_attr + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Device_template_attr we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__device_template_attrClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Device_template_attrs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {device_template_attrCountArgs} args - Arguments to filter Device_template_attrs to count. + * @example + * // Count the number of Device_template_attrs + * const count = await prisma.device_template_attr.count({ + * where: { + * // ... the filter for the Device_template_attrs 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 Device_template_attr. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Device_template_attrAggregateArgs} 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 Device_template_attr. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {device_template_attrGroupByArgs} 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 device_template_attrGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: device_template_attrGroupByArgs['orderBy'] } + : { orderBy?: device_template_attrGroupByArgs['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 ? GetDevice_template_attrGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the device_template_attr model + */ +readonly fields: device_template_attrFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for device_template_attr. + * 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__device_template_attrClient 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 device_template_attr model + */ +export interface device_template_attrFieldRefs { + readonly id: Prisma.FieldRef<"device_template_attr", 'Int'> + readonly template_id: Prisma.FieldRef<"device_template_attr", 'Int'> + readonly attr: Prisma.FieldRef<"device_template_attr", 'String'> + readonly default_val: Prisma.FieldRef<"device_template_attr", 'String'> +} + + +// Custom InputTypes +/** + * device_template_attr findUnique + */ +export type device_template_attrFindUniqueArgs = { + /** + * Select specific fields to fetch from the device_template_attr + */ + select?: Prisma.device_template_attrSelect | null + /** + * Omit specific fields from the device_template_attr + */ + omit?: Prisma.device_template_attrOmit | null + /** + * Filter, which device_template_attr to fetch. + */ + where: Prisma.device_template_attrWhereUniqueInput +} + +/** + * device_template_attr findUniqueOrThrow + */ +export type device_template_attrFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the device_template_attr + */ + select?: Prisma.device_template_attrSelect | null + /** + * Omit specific fields from the device_template_attr + */ + omit?: Prisma.device_template_attrOmit | null + /** + * Filter, which device_template_attr to fetch. + */ + where: Prisma.device_template_attrWhereUniqueInput +} + +/** + * device_template_attr findFirst + */ +export type device_template_attrFindFirstArgs = { + /** + * Select specific fields to fetch from the device_template_attr + */ + select?: Prisma.device_template_attrSelect | null + /** + * Omit specific fields from the device_template_attr + */ + omit?: Prisma.device_template_attrOmit | null + /** + * Filter, which device_template_attr to fetch. + */ + where?: Prisma.device_template_attrWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_template_attrs to fetch. + */ + orderBy?: Prisma.device_template_attrOrderByWithRelationInput | Prisma.device_template_attrOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for device_template_attrs. + */ + cursor?: Prisma.device_template_attrWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_template_attrs 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` device_template_attrs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of device_template_attrs. + */ + distinct?: Prisma.Device_template_attrScalarFieldEnum | Prisma.Device_template_attrScalarFieldEnum[] +} + +/** + * device_template_attr findFirstOrThrow + */ +export type device_template_attrFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the device_template_attr + */ + select?: Prisma.device_template_attrSelect | null + /** + * Omit specific fields from the device_template_attr + */ + omit?: Prisma.device_template_attrOmit | null + /** + * Filter, which device_template_attr to fetch. + */ + where?: Prisma.device_template_attrWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_template_attrs to fetch. + */ + orderBy?: Prisma.device_template_attrOrderByWithRelationInput | Prisma.device_template_attrOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for device_template_attrs. + */ + cursor?: Prisma.device_template_attrWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_template_attrs 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` device_template_attrs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of device_template_attrs. + */ + distinct?: Prisma.Device_template_attrScalarFieldEnum | Prisma.Device_template_attrScalarFieldEnum[] +} + +/** + * device_template_attr findMany + */ +export type device_template_attrFindManyArgs = { + /** + * Select specific fields to fetch from the device_template_attr + */ + select?: Prisma.device_template_attrSelect | null + /** + * Omit specific fields from the device_template_attr + */ + omit?: Prisma.device_template_attrOmit | null + /** + * Filter, which device_template_attrs to fetch. + */ + where?: Prisma.device_template_attrWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of device_template_attrs to fetch. + */ + orderBy?: Prisma.device_template_attrOrderByWithRelationInput | Prisma.device_template_attrOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing device_template_attrs. + */ + cursor?: Prisma.device_template_attrWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` device_template_attrs 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` device_template_attrs. + */ + skip?: number + distinct?: Prisma.Device_template_attrScalarFieldEnum | Prisma.Device_template_attrScalarFieldEnum[] +} + +/** + * device_template_attr create + */ +export type device_template_attrCreateArgs = { + /** + * Select specific fields to fetch from the device_template_attr + */ + select?: Prisma.device_template_attrSelect | null + /** + * Omit specific fields from the device_template_attr + */ + omit?: Prisma.device_template_attrOmit | null + /** + * The data needed to create a device_template_attr. + */ + data: Prisma.XOR +} + +/** + * device_template_attr createMany + */ +export type device_template_attrCreateManyArgs = { + /** + * The data used to create many device_template_attrs. + */ + data: Prisma.device_template_attrCreateManyInput | Prisma.device_template_attrCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * device_template_attr update + */ +export type device_template_attrUpdateArgs = { + /** + * Select specific fields to fetch from the device_template_attr + */ + select?: Prisma.device_template_attrSelect | null + /** + * Omit specific fields from the device_template_attr + */ + omit?: Prisma.device_template_attrOmit | null + /** + * The data needed to update a device_template_attr. + */ + data: Prisma.XOR + /** + * Choose, which device_template_attr to update. + */ + where: Prisma.device_template_attrWhereUniqueInput +} + +/** + * device_template_attr updateMany + */ +export type device_template_attrUpdateManyArgs = { + /** + * The data used to update device_template_attrs. + */ + data: Prisma.XOR + /** + * Filter which device_template_attrs to update + */ + where?: Prisma.device_template_attrWhereInput + /** + * Limit how many device_template_attrs to update. + */ + limit?: number +} + +/** + * device_template_attr upsert + */ +export type device_template_attrUpsertArgs = { + /** + * Select specific fields to fetch from the device_template_attr + */ + select?: Prisma.device_template_attrSelect | null + /** + * Omit specific fields from the device_template_attr + */ + omit?: Prisma.device_template_attrOmit | null + /** + * The filter to search for the device_template_attr to update in case it exists. + */ + where: Prisma.device_template_attrWhereUniqueInput + /** + * In case the device_template_attr found by the `where` argument doesn't exist, create a new device_template_attr with this data. + */ + create: Prisma.XOR + /** + * In case the device_template_attr was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * device_template_attr delete + */ +export type device_template_attrDeleteArgs = { + /** + * Select specific fields to fetch from the device_template_attr + */ + select?: Prisma.device_template_attrSelect | null + /** + * Omit specific fields from the device_template_attr + */ + omit?: Prisma.device_template_attrOmit | null + /** + * Filter which device_template_attr to delete. + */ + where: Prisma.device_template_attrWhereUniqueInput +} + +/** + * device_template_attr deleteMany + */ +export type device_template_attrDeleteManyArgs = { + /** + * Filter which device_template_attrs to delete + */ + where?: Prisma.device_template_attrWhereInput + /** + * Limit how many device_template_attrs to delete. + */ + limit?: number +} + +/** + * device_template_attr without action + */ +export type device_template_attrDefaultArgs = { + /** + * Select specific fields to fetch from the device_template_attr + */ + select?: Prisma.device_template_attrSelect | null + /** + * Omit specific fields from the device_template_attr + */ + omit?: Prisma.device_template_attrOmit | null +} diff --git a/prisma/generated/mariadb/models/email.ts b/prisma/generated/mariadb/models/email.ts new file mode 100644 index 0000000..776c099 --- /dev/null +++ b/prisma/generated/mariadb/models/email.ts @@ -0,0 +1,1059 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `email` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model email + * + */ +export type emailModel = runtime.Types.Result.DefaultSelection + +export type AggregateEmail = { + _count: EmailCountAggregateOutputType | null + _avg: EmailAvgAggregateOutputType | null + _sum: EmailSumAggregateOutputType | null + _min: EmailMinAggregateOutputType | null + _max: EmailMaxAggregateOutputType | null +} + +export type EmailAvgAggregateOutputType = { + id: number | null + account_id: number | null +} + +export type EmailSumAggregateOutputType = { + id: number | null + account_id: bigint | null +} + +export type EmailMinAggregateOutputType = { + id: number | null + account_id: bigint | null + email: string | null + password: string | null +} + +export type EmailMaxAggregateOutputType = { + id: number | null + account_id: bigint | null + email: string | null + password: string | null +} + +export type EmailCountAggregateOutputType = { + id: number + account_id: number + email: number + password: number + _all: number +} + + +export type EmailAvgAggregateInputType = { + id?: true + account_id?: true +} + +export type EmailSumAggregateInputType = { + id?: true + account_id?: true +} + +export type EmailMinAggregateInputType = { + id?: true + account_id?: true + email?: true + password?: true +} + +export type EmailMaxAggregateInputType = { + id?: true + account_id?: true + email?: true + password?: true +} + +export type EmailCountAggregateInputType = { + id?: true + account_id?: true + email?: true + password?: true + _all?: true +} + +export type EmailAggregateArgs = { + /** + * Filter which email to aggregate. + */ + where?: Prisma.emailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of emails to fetch. + */ + orderBy?: Prisma.emailOrderByWithRelationInput | Prisma.emailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.emailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` emails 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` emails. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned emails + **/ + _count?: true | EmailCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: EmailAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: EmailSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: EmailMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: EmailMaxAggregateInputType +} + +export type GetEmailAggregateType = { + [P in keyof T & keyof AggregateEmail]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type emailGroupByArgs = { + where?: Prisma.emailWhereInput + orderBy?: Prisma.emailOrderByWithAggregationInput | Prisma.emailOrderByWithAggregationInput[] + by: Prisma.EmailScalarFieldEnum[] | Prisma.EmailScalarFieldEnum + having?: Prisma.emailScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: EmailCountAggregateInputType | true + _avg?: EmailAvgAggregateInputType + _sum?: EmailSumAggregateInputType + _min?: EmailMinAggregateInputType + _max?: EmailMaxAggregateInputType +} + +export type EmailGroupByOutputType = { + id: number + account_id: bigint | null + email: string | null + password: string | null + _count: EmailCountAggregateOutputType | null + _avg: EmailAvgAggregateOutputType | null + _sum: EmailSumAggregateOutputType | null + _min: EmailMinAggregateOutputType | null + _max: EmailMaxAggregateOutputType | null +} + +type GetEmailGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof EmailGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type emailWhereInput = { + AND?: Prisma.emailWhereInput | Prisma.emailWhereInput[] + OR?: Prisma.emailWhereInput[] + NOT?: Prisma.emailWhereInput | Prisma.emailWhereInput[] + id?: Prisma.IntFilter<"email"> | number + account_id?: Prisma.BigIntNullableFilter<"email"> | bigint | number | null + email?: Prisma.StringNullableFilter<"email"> | string | null + password?: Prisma.StringNullableFilter<"email"> | string | null +} + +export type emailOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.emailOrderByRelevanceInput +} + +export type emailWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.emailWhereInput | Prisma.emailWhereInput[] + OR?: Prisma.emailWhereInput[] + NOT?: Prisma.emailWhereInput | Prisma.emailWhereInput[] + account_id?: Prisma.BigIntNullableFilter<"email"> | bigint | number | null + email?: Prisma.StringNullableFilter<"email"> | string | null + password?: Prisma.StringNullableFilter<"email"> | string | null +}, "id"> + +export type emailOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.emailCountOrderByAggregateInput + _avg?: Prisma.emailAvgOrderByAggregateInput + _max?: Prisma.emailMaxOrderByAggregateInput + _min?: Prisma.emailMinOrderByAggregateInput + _sum?: Prisma.emailSumOrderByAggregateInput +} + +export type emailScalarWhereWithAggregatesInput = { + AND?: Prisma.emailScalarWhereWithAggregatesInput | Prisma.emailScalarWhereWithAggregatesInput[] + OR?: Prisma.emailScalarWhereWithAggregatesInput[] + NOT?: Prisma.emailScalarWhereWithAggregatesInput | Prisma.emailScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"email"> | number + account_id?: Prisma.BigIntNullableWithAggregatesFilter<"email"> | bigint | number | null + email?: Prisma.StringNullableWithAggregatesFilter<"email"> | string | null + password?: Prisma.StringNullableWithAggregatesFilter<"email"> | string | null +} + +export type emailCreateInput = { + account_id?: bigint | number | null + email?: string | null + password?: string | null +} + +export type emailUncheckedCreateInput = { + id?: number + account_id?: bigint | number | null + email?: string | null + password?: string | null +} + +export type emailUpdateInput = { + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type emailUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type emailCreateManyInput = { + id?: number + account_id?: bigint | number | null + email?: string | null + password?: string | null +} + +export type emailUpdateManyMutationInput = { + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type emailUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type emailOrderByRelevanceInput = { + fields: Prisma.emailOrderByRelevanceFieldEnum | Prisma.emailOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type emailCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + email?: Prisma.SortOrder + password?: Prisma.SortOrder +} + +export type emailAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder +} + +export type emailMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + email?: Prisma.SortOrder + password?: Prisma.SortOrder +} + +export type emailMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + email?: Prisma.SortOrder + password?: Prisma.SortOrder +} + +export type emailSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder +} + + + +export type emailSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + email?: boolean + password?: boolean +}, ExtArgs["result"]["email"]> + + + +export type emailSelectScalar = { + id?: boolean + account_id?: boolean + email?: boolean + password?: boolean +} + +export type emailOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "email" | "password", ExtArgs["result"]["email"]> + +export type $emailPayload = { + name: "email" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: bigint | null + email: string | null + password: string | null + }, ExtArgs["result"]["email"]> + composites: {} +} + +export type emailGetPayload = runtime.Types.Result.GetResult + +export type emailCountArgs = + Omit & { + select?: EmailCountAggregateInputType | true + } + +export interface emailDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['email'], meta: { name: 'email' } } + /** + * Find zero or one Email that matches the filter. + * @param {emailFindUniqueArgs} args - Arguments to find a Email + * @example + * // Get one Email + * const email = await prisma.email.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__emailClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Email that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {emailFindUniqueOrThrowArgs} args - Arguments to find a Email + * @example + * // Get one Email + * const email = await prisma.email.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__emailClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Email 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 {emailFindFirstArgs} args - Arguments to find a Email + * @example + * // Get one Email + * const email = await prisma.email.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__emailClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Email 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 {emailFindFirstOrThrowArgs} args - Arguments to find a Email + * @example + * // Get one Email + * const email = await prisma.email.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__emailClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Emails 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 {emailFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Emails + * const emails = await prisma.email.findMany() + * + * // Get first 10 Emails + * const emails = await prisma.email.findMany({ take: 10 }) + * + * // Only select the `id` + * const emailWithIdOnly = await prisma.email.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Email. + * @param {emailCreateArgs} args - Arguments to create a Email. + * @example + * // Create one Email + * const Email = await prisma.email.create({ + * data: { + * // ... data to create a Email + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__emailClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Emails. + * @param {emailCreateManyArgs} args - Arguments to create many Emails. + * @example + * // Create many Emails + * const email = await prisma.email.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Email. + * @param {emailDeleteArgs} args - Arguments to delete one Email. + * @example + * // Delete one Email + * const Email = await prisma.email.delete({ + * where: { + * // ... filter to delete one Email + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__emailClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Email. + * @param {emailUpdateArgs} args - Arguments to update one Email. + * @example + * // Update one Email + * const email = await prisma.email.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__emailClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Emails. + * @param {emailDeleteManyArgs} args - Arguments to filter Emails to delete. + * @example + * // Delete a few Emails + * const { count } = await prisma.email.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Emails. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {emailUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Emails + * const email = await prisma.email.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Email. + * @param {emailUpsertArgs} args - Arguments to update or create a Email. + * @example + * // Update or create a Email + * const email = await prisma.email.upsert({ + * create: { + * // ... data to create a Email + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Email we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__emailClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Emails. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {emailCountArgs} args - Arguments to filter Emails to count. + * @example + * // Count the number of Emails + * const count = await prisma.email.count({ + * where: { + * // ... the filter for the Emails 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 Email. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EmailAggregateArgs} 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 Email. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {emailGroupByArgs} 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 emailGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: emailGroupByArgs['orderBy'] } + : { orderBy?: emailGroupByArgs['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 ? GetEmailGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the email model + */ +readonly fields: emailFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for email. + * 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__emailClient 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 email model + */ +export interface emailFieldRefs { + readonly id: Prisma.FieldRef<"email", 'Int'> + readonly account_id: Prisma.FieldRef<"email", 'BigInt'> + readonly email: Prisma.FieldRef<"email", 'String'> + readonly password: Prisma.FieldRef<"email", 'String'> +} + + +// Custom InputTypes +/** + * email findUnique + */ +export type emailFindUniqueArgs = { + /** + * Select specific fields to fetch from the email + */ + select?: Prisma.emailSelect | null + /** + * Omit specific fields from the email + */ + omit?: Prisma.emailOmit | null + /** + * Filter, which email to fetch. + */ + where: Prisma.emailWhereUniqueInput +} + +/** + * email findUniqueOrThrow + */ +export type emailFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the email + */ + select?: Prisma.emailSelect | null + /** + * Omit specific fields from the email + */ + omit?: Prisma.emailOmit | null + /** + * Filter, which email to fetch. + */ + where: Prisma.emailWhereUniqueInput +} + +/** + * email findFirst + */ +export type emailFindFirstArgs = { + /** + * Select specific fields to fetch from the email + */ + select?: Prisma.emailSelect | null + /** + * Omit specific fields from the email + */ + omit?: Prisma.emailOmit | null + /** + * Filter, which email to fetch. + */ + where?: Prisma.emailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of emails to fetch. + */ + orderBy?: Prisma.emailOrderByWithRelationInput | Prisma.emailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for emails. + */ + cursor?: Prisma.emailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` emails 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` emails. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of emails. + */ + distinct?: Prisma.EmailScalarFieldEnum | Prisma.EmailScalarFieldEnum[] +} + +/** + * email findFirstOrThrow + */ +export type emailFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the email + */ + select?: Prisma.emailSelect | null + /** + * Omit specific fields from the email + */ + omit?: Prisma.emailOmit | null + /** + * Filter, which email to fetch. + */ + where?: Prisma.emailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of emails to fetch. + */ + orderBy?: Prisma.emailOrderByWithRelationInput | Prisma.emailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for emails. + */ + cursor?: Prisma.emailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` emails 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` emails. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of emails. + */ + distinct?: Prisma.EmailScalarFieldEnum | Prisma.EmailScalarFieldEnum[] +} + +/** + * email findMany + */ +export type emailFindManyArgs = { + /** + * Select specific fields to fetch from the email + */ + select?: Prisma.emailSelect | null + /** + * Omit specific fields from the email + */ + omit?: Prisma.emailOmit | null + /** + * Filter, which emails to fetch. + */ + where?: Prisma.emailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of emails to fetch. + */ + orderBy?: Prisma.emailOrderByWithRelationInput | Prisma.emailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing emails. + */ + cursor?: Prisma.emailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` emails 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` emails. + */ + skip?: number + distinct?: Prisma.EmailScalarFieldEnum | Prisma.EmailScalarFieldEnum[] +} + +/** + * email create + */ +export type emailCreateArgs = { + /** + * Select specific fields to fetch from the email + */ + select?: Prisma.emailSelect | null + /** + * Omit specific fields from the email + */ + omit?: Prisma.emailOmit | null + /** + * The data needed to create a email. + */ + data?: Prisma.XOR +} + +/** + * email createMany + */ +export type emailCreateManyArgs = { + /** + * The data used to create many emails. + */ + data: Prisma.emailCreateManyInput | Prisma.emailCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * email update + */ +export type emailUpdateArgs = { + /** + * Select specific fields to fetch from the email + */ + select?: Prisma.emailSelect | null + /** + * Omit specific fields from the email + */ + omit?: Prisma.emailOmit | null + /** + * The data needed to update a email. + */ + data: Prisma.XOR + /** + * Choose, which email to update. + */ + where: Prisma.emailWhereUniqueInput +} + +/** + * email updateMany + */ +export type emailUpdateManyArgs = { + /** + * The data used to update emails. + */ + data: Prisma.XOR + /** + * Filter which emails to update + */ + where?: Prisma.emailWhereInput + /** + * Limit how many emails to update. + */ + limit?: number +} + +/** + * email upsert + */ +export type emailUpsertArgs = { + /** + * Select specific fields to fetch from the email + */ + select?: Prisma.emailSelect | null + /** + * Omit specific fields from the email + */ + omit?: Prisma.emailOmit | null + /** + * The filter to search for the email to update in case it exists. + */ + where: Prisma.emailWhereUniqueInput + /** + * In case the email found by the `where` argument doesn't exist, create a new email with this data. + */ + create: Prisma.XOR + /** + * In case the email was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * email delete + */ +export type emailDeleteArgs = { + /** + * Select specific fields to fetch from the email + */ + select?: Prisma.emailSelect | null + /** + * Omit specific fields from the email + */ + omit?: Prisma.emailOmit | null + /** + * Filter which email to delete. + */ + where: Prisma.emailWhereUniqueInput +} + +/** + * email deleteMany + */ +export type emailDeleteManyArgs = { + /** + * Filter which emails to delete + */ + where?: Prisma.emailWhereInput + /** + * Limit how many emails to delete. + */ + limit?: number +} + +/** + * email without action + */ +export type emailDefaultArgs = { + /** + * Select specific fields to fetch from the email + */ + select?: Prisma.emailSelect | null + /** + * Omit specific fields from the email + */ + omit?: Prisma.emailOmit | null +} diff --git a/prisma/generated/mariadb/models/fibre.ts b/prisma/generated/mariadb/models/fibre.ts new file mode 100644 index 0000000..ef07029 --- /dev/null +++ b/prisma/generated/mariadb/models/fibre.ts @@ -0,0 +1,1893 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `fibre` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model fibre + * + */ +export type fibreModel = runtime.Types.Result.DefaultSelection + +export type AggregateFibre = { + _count: FibreCountAggregateOutputType | null + _avg: FibreAvgAggregateOutputType | null + _sum: FibreSumAggregateOutputType | null + _min: FibreMinAggregateOutputType | null + _max: FibreMaxAggregateOutputType | null +} + +export type FibreAvgAggregateOutputType = { + id: number | null + ontid: number | null + tech: number | null + frame: number | null + slot: number | null + port: number | null + vlan_manage: number | null + vlan_internet: number | null + vlan_telephone: number | null + vlan_tele: number | null + manage_service_id: number | null + internet_service_id: number | null + telephone_service_id: number | null + tele_service_id: number | null + service_id: number | null + nb_drop: number | null + placemarks_id: number | null + appartements_id: number | null + latitude: number | null + longitude: number | null + boitier_pas_install: number | null + suite: number | null + distance: number | null + nb_portees: number | null +} + +export type FibreSumAggregateOutputType = { + id: number | null + ontid: number | null + tech: number | null + frame: number | null + slot: number | null + port: number | null + vlan_manage: number | null + vlan_internet: number | null + vlan_telephone: number | null + vlan_tele: number | null + manage_service_id: number | null + internet_service_id: number | null + telephone_service_id: number | null + tele_service_id: number | null + service_id: number | null + nb_drop: number | null + placemarks_id: bigint | null + appartements_id: bigint | null + latitude: number | null + longitude: number | null + boitier_pas_install: number | null + suite: number | null + distance: number | null + nb_portees: number | null +} + +export type FibreMinAggregateOutputType = { + id: number | null + terrain: string | null + rue: string | null + ville: string | null + zip: string | null + ontid: number | null + sn: string | null + tech: number | null + info_connect: string | null + frame: number | null + slot: number | null + port: number | null + vlan_manage: number | null + vlan_internet: number | null + vlan_telephone: number | null + vlan_tele: number | null + manage_service_id: number | null + internet_service_id: number | null + telephone_service_id: number | null + tele_service_id: number | null + service_id: number | null + nb_drop: number | null + placemarks_id: bigint | null + appartements_id: bigint | null + latitude: number | null + longitude: number | null + boitier_pas_install: number | null + description: string | null + suite: number | null + distance: number | null + nb_portees: number | null +} + +export type FibreMaxAggregateOutputType = { + id: number | null + terrain: string | null + rue: string | null + ville: string | null + zip: string | null + ontid: number | null + sn: string | null + tech: number | null + info_connect: string | null + frame: number | null + slot: number | null + port: number | null + vlan_manage: number | null + vlan_internet: number | null + vlan_telephone: number | null + vlan_tele: number | null + manage_service_id: number | null + internet_service_id: number | null + telephone_service_id: number | null + tele_service_id: number | null + service_id: number | null + nb_drop: number | null + placemarks_id: bigint | null + appartements_id: bigint | null + latitude: number | null + longitude: number | null + boitier_pas_install: number | null + description: string | null + suite: number | null + distance: number | null + nb_portees: number | null +} + +export type FibreCountAggregateOutputType = { + id: number + terrain: number + rue: number + ville: number + zip: number + ontid: number + sn: number + tech: number + info_connect: number + frame: number + slot: number + port: number + vlan_manage: number + vlan_internet: number + vlan_telephone: number + vlan_tele: number + manage_service_id: number + internet_service_id: number + telephone_service_id: number + tele_service_id: number + service_id: number + nb_drop: number + placemarks_id: number + appartements_id: number + latitude: number + longitude: number + boitier_pas_install: number + description: number + suite: number + distance: number + nb_portees: number + _all: number +} + + +export type FibreAvgAggregateInputType = { + id?: true + ontid?: true + tech?: true + frame?: true + slot?: true + port?: true + vlan_manage?: true + vlan_internet?: true + vlan_telephone?: true + vlan_tele?: true + manage_service_id?: true + internet_service_id?: true + telephone_service_id?: true + tele_service_id?: true + service_id?: true + nb_drop?: true + placemarks_id?: true + appartements_id?: true + latitude?: true + longitude?: true + boitier_pas_install?: true + suite?: true + distance?: true + nb_portees?: true +} + +export type FibreSumAggregateInputType = { + id?: true + ontid?: true + tech?: true + frame?: true + slot?: true + port?: true + vlan_manage?: true + vlan_internet?: true + vlan_telephone?: true + vlan_tele?: true + manage_service_id?: true + internet_service_id?: true + telephone_service_id?: true + tele_service_id?: true + service_id?: true + nb_drop?: true + placemarks_id?: true + appartements_id?: true + latitude?: true + longitude?: true + boitier_pas_install?: true + suite?: true + distance?: true + nb_portees?: true +} + +export type FibreMinAggregateInputType = { + id?: true + terrain?: true + rue?: true + ville?: true + zip?: true + ontid?: true + sn?: true + tech?: true + info_connect?: true + frame?: true + slot?: true + port?: true + vlan_manage?: true + vlan_internet?: true + vlan_telephone?: true + vlan_tele?: true + manage_service_id?: true + internet_service_id?: true + telephone_service_id?: true + tele_service_id?: true + service_id?: true + nb_drop?: true + placemarks_id?: true + appartements_id?: true + latitude?: true + longitude?: true + boitier_pas_install?: true + description?: true + suite?: true + distance?: true + nb_portees?: true +} + +export type FibreMaxAggregateInputType = { + id?: true + terrain?: true + rue?: true + ville?: true + zip?: true + ontid?: true + sn?: true + tech?: true + info_connect?: true + frame?: true + slot?: true + port?: true + vlan_manage?: true + vlan_internet?: true + vlan_telephone?: true + vlan_tele?: true + manage_service_id?: true + internet_service_id?: true + telephone_service_id?: true + tele_service_id?: true + service_id?: true + nb_drop?: true + placemarks_id?: true + appartements_id?: true + latitude?: true + longitude?: true + boitier_pas_install?: true + description?: true + suite?: true + distance?: true + nb_portees?: true +} + +export type FibreCountAggregateInputType = { + id?: true + terrain?: true + rue?: true + ville?: true + zip?: true + ontid?: true + sn?: true + tech?: true + info_connect?: true + frame?: true + slot?: true + port?: true + vlan_manage?: true + vlan_internet?: true + vlan_telephone?: true + vlan_tele?: true + manage_service_id?: true + internet_service_id?: true + telephone_service_id?: true + tele_service_id?: true + service_id?: true + nb_drop?: true + placemarks_id?: true + appartements_id?: true + latitude?: true + longitude?: true + boitier_pas_install?: true + description?: true + suite?: true + distance?: true + nb_portees?: true + _all?: true +} + +export type FibreAggregateArgs = { + /** + * Filter which fibre to aggregate. + */ + where?: Prisma.fibreWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibres to fetch. + */ + orderBy?: Prisma.fibreOrderByWithRelationInput | Prisma.fibreOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.fibreWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibres 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` fibres. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned fibres + **/ + _count?: true | FibreCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: FibreAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: FibreSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: FibreMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: FibreMaxAggregateInputType +} + +export type GetFibreAggregateType = { + [P in keyof T & keyof AggregateFibre]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type fibreGroupByArgs = { + where?: Prisma.fibreWhereInput + orderBy?: Prisma.fibreOrderByWithAggregationInput | Prisma.fibreOrderByWithAggregationInput[] + by: Prisma.FibreScalarFieldEnum[] | Prisma.FibreScalarFieldEnum + having?: Prisma.fibreScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: FibreCountAggregateInputType | true + _avg?: FibreAvgAggregateInputType + _sum?: FibreSumAggregateInputType + _min?: FibreMinAggregateInputType + _max?: FibreMaxAggregateInputType +} + +export type FibreGroupByOutputType = { + id: number + terrain: string + rue: string + ville: string + zip: string + ontid: number | null + sn: string | null + tech: number + info_connect: string + frame: number | null + slot: number | null + port: number | null + vlan_manage: number | null + vlan_internet: number | null + vlan_telephone: number | null + vlan_tele: number | null + manage_service_id: number | null + internet_service_id: number | null + telephone_service_id: number | null + tele_service_id: number | null + service_id: number | null + nb_drop: number + placemarks_id: bigint | null + appartements_id: bigint | null + latitude: number | null + longitude: number | null + boitier_pas_install: number | null + description: string | null + suite: number + distance: number | null + nb_portees: number | null + _count: FibreCountAggregateOutputType | null + _avg: FibreAvgAggregateOutputType | null + _sum: FibreSumAggregateOutputType | null + _min: FibreMinAggregateOutputType | null + _max: FibreMaxAggregateOutputType | null +} + +type GetFibreGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof FibreGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type fibreWhereInput = { + AND?: Prisma.fibreWhereInput | Prisma.fibreWhereInput[] + OR?: Prisma.fibreWhereInput[] + NOT?: Prisma.fibreWhereInput | Prisma.fibreWhereInput[] + id?: Prisma.IntFilter<"fibre"> | number + terrain?: Prisma.StringFilter<"fibre"> | string + rue?: Prisma.StringFilter<"fibre"> | string + ville?: Prisma.StringFilter<"fibre"> | string + zip?: Prisma.StringFilter<"fibre"> | string + ontid?: Prisma.IntNullableFilter<"fibre"> | number | null + sn?: Prisma.StringNullableFilter<"fibre"> | string | null + tech?: Prisma.IntFilter<"fibre"> | number + info_connect?: Prisma.StringFilter<"fibre"> | string + frame?: Prisma.IntNullableFilter<"fibre"> | number | null + slot?: Prisma.IntNullableFilter<"fibre"> | number | null + port?: Prisma.IntNullableFilter<"fibre"> | number | null + vlan_manage?: Prisma.IntNullableFilter<"fibre"> | number | null + vlan_internet?: Prisma.IntNullableFilter<"fibre"> | number | null + vlan_telephone?: Prisma.IntNullableFilter<"fibre"> | number | null + vlan_tele?: Prisma.IntNullableFilter<"fibre"> | number | null + manage_service_id?: Prisma.IntNullableFilter<"fibre"> | number | null + internet_service_id?: Prisma.IntNullableFilter<"fibre"> | number | null + telephone_service_id?: Prisma.IntNullableFilter<"fibre"> | number | null + tele_service_id?: Prisma.IntNullableFilter<"fibre"> | number | null + service_id?: Prisma.IntNullableFilter<"fibre"> | number | null + nb_drop?: Prisma.IntFilter<"fibre"> | number + placemarks_id?: Prisma.BigIntNullableFilter<"fibre"> | bigint | number | null + appartements_id?: Prisma.BigIntNullableFilter<"fibre"> | bigint | number | null + latitude?: Prisma.FloatNullableFilter<"fibre"> | number | null + longitude?: Prisma.FloatNullableFilter<"fibre"> | number | null + boitier_pas_install?: Prisma.IntNullableFilter<"fibre"> | number | null + description?: Prisma.StringNullableFilter<"fibre"> | string | null + suite?: Prisma.IntFilter<"fibre"> | number + distance?: Prisma.IntNullableFilter<"fibre"> | number | null + nb_portees?: Prisma.IntNullableFilter<"fibre"> | number | null +} + +export type fibreOrderByWithRelationInput = { + id?: Prisma.SortOrder + terrain?: Prisma.SortOrder + rue?: Prisma.SortOrder + ville?: Prisma.SortOrder + zip?: Prisma.SortOrder + ontid?: Prisma.SortOrderInput | Prisma.SortOrder + sn?: Prisma.SortOrderInput | Prisma.SortOrder + tech?: Prisma.SortOrder + info_connect?: Prisma.SortOrder + frame?: Prisma.SortOrderInput | Prisma.SortOrder + slot?: Prisma.SortOrderInput | Prisma.SortOrder + port?: Prisma.SortOrderInput | Prisma.SortOrder + vlan_manage?: Prisma.SortOrderInput | Prisma.SortOrder + vlan_internet?: Prisma.SortOrderInput | Prisma.SortOrder + vlan_telephone?: Prisma.SortOrderInput | Prisma.SortOrder + vlan_tele?: Prisma.SortOrderInput | Prisma.SortOrder + manage_service_id?: Prisma.SortOrderInput | Prisma.SortOrder + internet_service_id?: Prisma.SortOrderInput | Prisma.SortOrder + telephone_service_id?: Prisma.SortOrderInput | Prisma.SortOrder + tele_service_id?: Prisma.SortOrderInput | Prisma.SortOrder + service_id?: Prisma.SortOrderInput | Prisma.SortOrder + nb_drop?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrderInput | Prisma.SortOrder + appartements_id?: Prisma.SortOrderInput | Prisma.SortOrder + latitude?: Prisma.SortOrderInput | Prisma.SortOrder + longitude?: Prisma.SortOrderInput | Prisma.SortOrder + boitier_pas_install?: Prisma.SortOrderInput | Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + suite?: Prisma.SortOrder + distance?: Prisma.SortOrderInput | Prisma.SortOrder + nb_portees?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.fibreOrderByRelevanceInput +} + +export type fibreWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.fibreWhereInput | Prisma.fibreWhereInput[] + OR?: Prisma.fibreWhereInput[] + NOT?: Prisma.fibreWhereInput | Prisma.fibreWhereInput[] + terrain?: Prisma.StringFilter<"fibre"> | string + rue?: Prisma.StringFilter<"fibre"> | string + ville?: Prisma.StringFilter<"fibre"> | string + zip?: Prisma.StringFilter<"fibre"> | string + ontid?: Prisma.IntNullableFilter<"fibre"> | number | null + sn?: Prisma.StringNullableFilter<"fibre"> | string | null + tech?: Prisma.IntFilter<"fibre"> | number + info_connect?: Prisma.StringFilter<"fibre"> | string + frame?: Prisma.IntNullableFilter<"fibre"> | number | null + slot?: Prisma.IntNullableFilter<"fibre"> | number | null + port?: Prisma.IntNullableFilter<"fibre"> | number | null + vlan_manage?: Prisma.IntNullableFilter<"fibre"> | number | null + vlan_internet?: Prisma.IntNullableFilter<"fibre"> | number | null + vlan_telephone?: Prisma.IntNullableFilter<"fibre"> | number | null + vlan_tele?: Prisma.IntNullableFilter<"fibre"> | number | null + manage_service_id?: Prisma.IntNullableFilter<"fibre"> | number | null + internet_service_id?: Prisma.IntNullableFilter<"fibre"> | number | null + telephone_service_id?: Prisma.IntNullableFilter<"fibre"> | number | null + tele_service_id?: Prisma.IntNullableFilter<"fibre"> | number | null + service_id?: Prisma.IntNullableFilter<"fibre"> | number | null + nb_drop?: Prisma.IntFilter<"fibre"> | number + placemarks_id?: Prisma.BigIntNullableFilter<"fibre"> | bigint | number | null + appartements_id?: Prisma.BigIntNullableFilter<"fibre"> | bigint | number | null + latitude?: Prisma.FloatNullableFilter<"fibre"> | number | null + longitude?: Prisma.FloatNullableFilter<"fibre"> | number | null + boitier_pas_install?: Prisma.IntNullableFilter<"fibre"> | number | null + description?: Prisma.StringNullableFilter<"fibre"> | string | null + suite?: Prisma.IntFilter<"fibre"> | number + distance?: Prisma.IntNullableFilter<"fibre"> | number | null + nb_portees?: Prisma.IntNullableFilter<"fibre"> | number | null +}, "id"> + +export type fibreOrderByWithAggregationInput = { + id?: Prisma.SortOrder + terrain?: Prisma.SortOrder + rue?: Prisma.SortOrder + ville?: Prisma.SortOrder + zip?: Prisma.SortOrder + ontid?: Prisma.SortOrderInput | Prisma.SortOrder + sn?: Prisma.SortOrderInput | Prisma.SortOrder + tech?: Prisma.SortOrder + info_connect?: Prisma.SortOrder + frame?: Prisma.SortOrderInput | Prisma.SortOrder + slot?: Prisma.SortOrderInput | Prisma.SortOrder + port?: Prisma.SortOrderInput | Prisma.SortOrder + vlan_manage?: Prisma.SortOrderInput | Prisma.SortOrder + vlan_internet?: Prisma.SortOrderInput | Prisma.SortOrder + vlan_telephone?: Prisma.SortOrderInput | Prisma.SortOrder + vlan_tele?: Prisma.SortOrderInput | Prisma.SortOrder + manage_service_id?: Prisma.SortOrderInput | Prisma.SortOrder + internet_service_id?: Prisma.SortOrderInput | Prisma.SortOrder + telephone_service_id?: Prisma.SortOrderInput | Prisma.SortOrder + tele_service_id?: Prisma.SortOrderInput | Prisma.SortOrder + service_id?: Prisma.SortOrderInput | Prisma.SortOrder + nb_drop?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrderInput | Prisma.SortOrder + appartements_id?: Prisma.SortOrderInput | Prisma.SortOrder + latitude?: Prisma.SortOrderInput | Prisma.SortOrder + longitude?: Prisma.SortOrderInput | Prisma.SortOrder + boitier_pas_install?: Prisma.SortOrderInput | Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + suite?: Prisma.SortOrder + distance?: Prisma.SortOrderInput | Prisma.SortOrder + nb_portees?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.fibreCountOrderByAggregateInput + _avg?: Prisma.fibreAvgOrderByAggregateInput + _max?: Prisma.fibreMaxOrderByAggregateInput + _min?: Prisma.fibreMinOrderByAggregateInput + _sum?: Prisma.fibreSumOrderByAggregateInput +} + +export type fibreScalarWhereWithAggregatesInput = { + AND?: Prisma.fibreScalarWhereWithAggregatesInput | Prisma.fibreScalarWhereWithAggregatesInput[] + OR?: Prisma.fibreScalarWhereWithAggregatesInput[] + NOT?: Prisma.fibreScalarWhereWithAggregatesInput | Prisma.fibreScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"fibre"> | number + terrain?: Prisma.StringWithAggregatesFilter<"fibre"> | string + rue?: Prisma.StringWithAggregatesFilter<"fibre"> | string + ville?: Prisma.StringWithAggregatesFilter<"fibre"> | string + zip?: Prisma.StringWithAggregatesFilter<"fibre"> | string + ontid?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null + sn?: Prisma.StringNullableWithAggregatesFilter<"fibre"> | string | null + tech?: Prisma.IntWithAggregatesFilter<"fibre"> | number + info_connect?: Prisma.StringWithAggregatesFilter<"fibre"> | string + frame?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null + slot?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null + port?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null + vlan_manage?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null + vlan_internet?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null + vlan_telephone?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null + vlan_tele?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null + manage_service_id?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null + internet_service_id?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null + telephone_service_id?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null + tele_service_id?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null + service_id?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null + nb_drop?: Prisma.IntWithAggregatesFilter<"fibre"> | number + placemarks_id?: Prisma.BigIntNullableWithAggregatesFilter<"fibre"> | bigint | number | null + appartements_id?: Prisma.BigIntNullableWithAggregatesFilter<"fibre"> | bigint | number | null + latitude?: Prisma.FloatNullableWithAggregatesFilter<"fibre"> | number | null + longitude?: Prisma.FloatNullableWithAggregatesFilter<"fibre"> | number | null + boitier_pas_install?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null + description?: Prisma.StringNullableWithAggregatesFilter<"fibre"> | string | null + suite?: Prisma.IntWithAggregatesFilter<"fibre"> | number + distance?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null + nb_portees?: Prisma.IntNullableWithAggregatesFilter<"fibre"> | number | null +} + +export type fibreCreateInput = { + terrain: string + rue: string + ville: string + zip?: string + ontid?: number | null + sn?: string | null + tech?: number + info_connect?: string + frame?: number | null + slot?: number | null + port?: number | null + vlan_manage?: number | null + vlan_internet?: number | null + vlan_telephone?: number | null + vlan_tele?: number | null + manage_service_id?: number | null + internet_service_id?: number | null + telephone_service_id?: number | null + tele_service_id?: number | null + service_id?: number | null + nb_drop?: number + placemarks_id?: bigint | number | null + appartements_id?: bigint | number | null + latitude?: number | null + longitude?: number | null + boitier_pas_install?: number | null + description?: string | null + suite?: number + distance?: number | null + nb_portees?: number | null +} + +export type fibreUncheckedCreateInput = { + id?: number + terrain: string + rue: string + ville: string + zip?: string + ontid?: number | null + sn?: string | null + tech?: number + info_connect?: string + frame?: number | null + slot?: number | null + port?: number | null + vlan_manage?: number | null + vlan_internet?: number | null + vlan_telephone?: number | null + vlan_tele?: number | null + manage_service_id?: number | null + internet_service_id?: number | null + telephone_service_id?: number | null + tele_service_id?: number | null + service_id?: number | null + nb_drop?: number + placemarks_id?: bigint | number | null + appartements_id?: bigint | number | null + latitude?: number | null + longitude?: number | null + boitier_pas_install?: number | null + description?: string | null + suite?: number + distance?: number | null + nb_portees?: number | null +} + +export type fibreUpdateInput = { + terrain?: Prisma.StringFieldUpdateOperationsInput | string + rue?: Prisma.StringFieldUpdateOperationsInput | string + ville?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string + ontid?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tech?: Prisma.IntFieldUpdateOperationsInput | number + info_connect?: Prisma.StringFieldUpdateOperationsInput | string + frame?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + slot?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + port?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_manage?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_internet?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_telephone?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_tele?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + manage_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + internet_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + telephone_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + tele_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + nb_drop?: Prisma.IntFieldUpdateOperationsInput | number + placemarks_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + appartements_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + boitier_pas_install?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + suite?: Prisma.IntFieldUpdateOperationsInput | number + distance?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + nb_portees?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type fibreUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + terrain?: Prisma.StringFieldUpdateOperationsInput | string + rue?: Prisma.StringFieldUpdateOperationsInput | string + ville?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string + ontid?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tech?: Prisma.IntFieldUpdateOperationsInput | number + info_connect?: Prisma.StringFieldUpdateOperationsInput | string + frame?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + slot?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + port?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_manage?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_internet?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_telephone?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_tele?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + manage_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + internet_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + telephone_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + tele_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + nb_drop?: Prisma.IntFieldUpdateOperationsInput | number + placemarks_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + appartements_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + boitier_pas_install?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + suite?: Prisma.IntFieldUpdateOperationsInput | number + distance?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + nb_portees?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type fibreCreateManyInput = { + id?: number + terrain: string + rue: string + ville: string + zip?: string + ontid?: number | null + sn?: string | null + tech?: number + info_connect?: string + frame?: number | null + slot?: number | null + port?: number | null + vlan_manage?: number | null + vlan_internet?: number | null + vlan_telephone?: number | null + vlan_tele?: number | null + manage_service_id?: number | null + internet_service_id?: number | null + telephone_service_id?: number | null + tele_service_id?: number | null + service_id?: number | null + nb_drop?: number + placemarks_id?: bigint | number | null + appartements_id?: bigint | number | null + latitude?: number | null + longitude?: number | null + boitier_pas_install?: number | null + description?: string | null + suite?: number + distance?: number | null + nb_portees?: number | null +} + +export type fibreUpdateManyMutationInput = { + terrain?: Prisma.StringFieldUpdateOperationsInput | string + rue?: Prisma.StringFieldUpdateOperationsInput | string + ville?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string + ontid?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tech?: Prisma.IntFieldUpdateOperationsInput | number + info_connect?: Prisma.StringFieldUpdateOperationsInput | string + frame?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + slot?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + port?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_manage?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_internet?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_telephone?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_tele?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + manage_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + internet_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + telephone_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + tele_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + nb_drop?: Prisma.IntFieldUpdateOperationsInput | number + placemarks_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + appartements_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + boitier_pas_install?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + suite?: Prisma.IntFieldUpdateOperationsInput | number + distance?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + nb_portees?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type fibreUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + terrain?: Prisma.StringFieldUpdateOperationsInput | string + rue?: Prisma.StringFieldUpdateOperationsInput | string + ville?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string + ontid?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + sn?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tech?: Prisma.IntFieldUpdateOperationsInput | number + info_connect?: Prisma.StringFieldUpdateOperationsInput | string + frame?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + slot?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + port?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_manage?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_internet?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_telephone?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + vlan_tele?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + manage_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + internet_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + telephone_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + tele_service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + service_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + nb_drop?: Prisma.IntFieldUpdateOperationsInput | number + placemarks_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + appartements_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + boitier_pas_install?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + suite?: Prisma.IntFieldUpdateOperationsInput | number + distance?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + nb_portees?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type fibreOrderByRelevanceInput = { + fields: Prisma.fibreOrderByRelevanceFieldEnum | Prisma.fibreOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type fibreCountOrderByAggregateInput = { + id?: Prisma.SortOrder + terrain?: Prisma.SortOrder + rue?: Prisma.SortOrder + ville?: Prisma.SortOrder + zip?: Prisma.SortOrder + ontid?: Prisma.SortOrder + sn?: Prisma.SortOrder + tech?: Prisma.SortOrder + info_connect?: Prisma.SortOrder + frame?: Prisma.SortOrder + slot?: Prisma.SortOrder + port?: Prisma.SortOrder + vlan_manage?: Prisma.SortOrder + vlan_internet?: Prisma.SortOrder + vlan_telephone?: Prisma.SortOrder + vlan_tele?: Prisma.SortOrder + manage_service_id?: Prisma.SortOrder + internet_service_id?: Prisma.SortOrder + telephone_service_id?: Prisma.SortOrder + tele_service_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + nb_drop?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder + appartements_id?: Prisma.SortOrder + latitude?: Prisma.SortOrder + longitude?: Prisma.SortOrder + boitier_pas_install?: Prisma.SortOrder + description?: Prisma.SortOrder + suite?: Prisma.SortOrder + distance?: Prisma.SortOrder + nb_portees?: Prisma.SortOrder +} + +export type fibreAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + ontid?: Prisma.SortOrder + tech?: Prisma.SortOrder + frame?: Prisma.SortOrder + slot?: Prisma.SortOrder + port?: Prisma.SortOrder + vlan_manage?: Prisma.SortOrder + vlan_internet?: Prisma.SortOrder + vlan_telephone?: Prisma.SortOrder + vlan_tele?: Prisma.SortOrder + manage_service_id?: Prisma.SortOrder + internet_service_id?: Prisma.SortOrder + telephone_service_id?: Prisma.SortOrder + tele_service_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + nb_drop?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder + appartements_id?: Prisma.SortOrder + latitude?: Prisma.SortOrder + longitude?: Prisma.SortOrder + boitier_pas_install?: Prisma.SortOrder + suite?: Prisma.SortOrder + distance?: Prisma.SortOrder + nb_portees?: Prisma.SortOrder +} + +export type fibreMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + terrain?: Prisma.SortOrder + rue?: Prisma.SortOrder + ville?: Prisma.SortOrder + zip?: Prisma.SortOrder + ontid?: Prisma.SortOrder + sn?: Prisma.SortOrder + tech?: Prisma.SortOrder + info_connect?: Prisma.SortOrder + frame?: Prisma.SortOrder + slot?: Prisma.SortOrder + port?: Prisma.SortOrder + vlan_manage?: Prisma.SortOrder + vlan_internet?: Prisma.SortOrder + vlan_telephone?: Prisma.SortOrder + vlan_tele?: Prisma.SortOrder + manage_service_id?: Prisma.SortOrder + internet_service_id?: Prisma.SortOrder + telephone_service_id?: Prisma.SortOrder + tele_service_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + nb_drop?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder + appartements_id?: Prisma.SortOrder + latitude?: Prisma.SortOrder + longitude?: Prisma.SortOrder + boitier_pas_install?: Prisma.SortOrder + description?: Prisma.SortOrder + suite?: Prisma.SortOrder + distance?: Prisma.SortOrder + nb_portees?: Prisma.SortOrder +} + +export type fibreMinOrderByAggregateInput = { + id?: Prisma.SortOrder + terrain?: Prisma.SortOrder + rue?: Prisma.SortOrder + ville?: Prisma.SortOrder + zip?: Prisma.SortOrder + ontid?: Prisma.SortOrder + sn?: Prisma.SortOrder + tech?: Prisma.SortOrder + info_connect?: Prisma.SortOrder + frame?: Prisma.SortOrder + slot?: Prisma.SortOrder + port?: Prisma.SortOrder + vlan_manage?: Prisma.SortOrder + vlan_internet?: Prisma.SortOrder + vlan_telephone?: Prisma.SortOrder + vlan_tele?: Prisma.SortOrder + manage_service_id?: Prisma.SortOrder + internet_service_id?: Prisma.SortOrder + telephone_service_id?: Prisma.SortOrder + tele_service_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + nb_drop?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder + appartements_id?: Prisma.SortOrder + latitude?: Prisma.SortOrder + longitude?: Prisma.SortOrder + boitier_pas_install?: Prisma.SortOrder + description?: Prisma.SortOrder + suite?: Prisma.SortOrder + distance?: Prisma.SortOrder + nb_portees?: Prisma.SortOrder +} + +export type fibreSumOrderByAggregateInput = { + id?: Prisma.SortOrder + ontid?: Prisma.SortOrder + tech?: Prisma.SortOrder + frame?: Prisma.SortOrder + slot?: Prisma.SortOrder + port?: Prisma.SortOrder + vlan_manage?: Prisma.SortOrder + vlan_internet?: Prisma.SortOrder + vlan_telephone?: Prisma.SortOrder + vlan_tele?: Prisma.SortOrder + manage_service_id?: Prisma.SortOrder + internet_service_id?: Prisma.SortOrder + telephone_service_id?: Prisma.SortOrder + tele_service_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + nb_drop?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder + appartements_id?: Prisma.SortOrder + latitude?: Prisma.SortOrder + longitude?: Prisma.SortOrder + boitier_pas_install?: Prisma.SortOrder + suite?: Prisma.SortOrder + distance?: Prisma.SortOrder + nb_portees?: Prisma.SortOrder +} + + + +export type fibreSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + terrain?: boolean + rue?: boolean + ville?: boolean + zip?: boolean + ontid?: boolean + sn?: boolean + tech?: boolean + info_connect?: boolean + frame?: boolean + slot?: boolean + port?: boolean + vlan_manage?: boolean + vlan_internet?: boolean + vlan_telephone?: boolean + vlan_tele?: boolean + manage_service_id?: boolean + internet_service_id?: boolean + telephone_service_id?: boolean + tele_service_id?: boolean + service_id?: boolean + nb_drop?: boolean + placemarks_id?: boolean + appartements_id?: boolean + latitude?: boolean + longitude?: boolean + boitier_pas_install?: boolean + description?: boolean + suite?: boolean + distance?: boolean + nb_portees?: boolean +}, ExtArgs["result"]["fibre"]> + + + +export type fibreSelectScalar = { + id?: boolean + terrain?: boolean + rue?: boolean + ville?: boolean + zip?: boolean + ontid?: boolean + sn?: boolean + tech?: boolean + info_connect?: boolean + frame?: boolean + slot?: boolean + port?: boolean + vlan_manage?: boolean + vlan_internet?: boolean + vlan_telephone?: boolean + vlan_tele?: boolean + manage_service_id?: boolean + internet_service_id?: boolean + telephone_service_id?: boolean + tele_service_id?: boolean + service_id?: boolean + nb_drop?: boolean + placemarks_id?: boolean + appartements_id?: boolean + latitude?: boolean + longitude?: boolean + boitier_pas_install?: boolean + description?: boolean + suite?: boolean + distance?: boolean + nb_portees?: boolean +} + +export type fibreOmit = runtime.Types.Extensions.GetOmit<"id" | "terrain" | "rue" | "ville" | "zip" | "ontid" | "sn" | "tech" | "info_connect" | "frame" | "slot" | "port" | "vlan_manage" | "vlan_internet" | "vlan_telephone" | "vlan_tele" | "manage_service_id" | "internet_service_id" | "telephone_service_id" | "tele_service_id" | "service_id" | "nb_drop" | "placemarks_id" | "appartements_id" | "latitude" | "longitude" | "boitier_pas_install" | "description" | "suite" | "distance" | "nb_portees", ExtArgs["result"]["fibre"]> + +export type $fibrePayload = { + name: "fibre" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + terrain: string + rue: string + ville: string + zip: string + ontid: number | null + sn: string | null + tech: number + info_connect: string + frame: number | null + slot: number | null + port: number | null + vlan_manage: number | null + vlan_internet: number | null + vlan_telephone: number | null + vlan_tele: number | null + manage_service_id: number | null + internet_service_id: number | null + telephone_service_id: number | null + tele_service_id: number | null + service_id: number | null + nb_drop: number + placemarks_id: bigint | null + appartements_id: bigint | null + latitude: number | null + longitude: number | null + boitier_pas_install: number | null + description: string | null + suite: number + distance: number | null + nb_portees: number | null + }, ExtArgs["result"]["fibre"]> + composites: {} +} + +export type fibreGetPayload = runtime.Types.Result.GetResult + +export type fibreCountArgs = + Omit & { + select?: FibreCountAggregateInputType | true + } + +export interface fibreDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['fibre'], meta: { name: 'fibre' } } + /** + * Find zero or one Fibre that matches the filter. + * @param {fibreFindUniqueArgs} args - Arguments to find a Fibre + * @example + * // Get one Fibre + * const fibre = await prisma.fibre.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__fibreClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Fibre that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {fibreFindUniqueOrThrowArgs} args - Arguments to find a Fibre + * @example + * // Get one Fibre + * const fibre = await prisma.fibre.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__fibreClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Fibre 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 {fibreFindFirstArgs} args - Arguments to find a Fibre + * @example + * // Get one Fibre + * const fibre = await prisma.fibre.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__fibreClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Fibre 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 {fibreFindFirstOrThrowArgs} args - Arguments to find a Fibre + * @example + * // Get one Fibre + * const fibre = await prisma.fibre.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__fibreClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Fibres 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 {fibreFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Fibres + * const fibres = await prisma.fibre.findMany() + * + * // Get first 10 Fibres + * const fibres = await prisma.fibre.findMany({ take: 10 }) + * + * // Only select the `id` + * const fibreWithIdOnly = await prisma.fibre.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Fibre. + * @param {fibreCreateArgs} args - Arguments to create a Fibre. + * @example + * // Create one Fibre + * const Fibre = await prisma.fibre.create({ + * data: { + * // ... data to create a Fibre + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__fibreClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Fibres. + * @param {fibreCreateManyArgs} args - Arguments to create many Fibres. + * @example + * // Create many Fibres + * const fibre = await prisma.fibre.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Fibre. + * @param {fibreDeleteArgs} args - Arguments to delete one Fibre. + * @example + * // Delete one Fibre + * const Fibre = await prisma.fibre.delete({ + * where: { + * // ... filter to delete one Fibre + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__fibreClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Fibre. + * @param {fibreUpdateArgs} args - Arguments to update one Fibre. + * @example + * // Update one Fibre + * const fibre = await prisma.fibre.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__fibreClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Fibres. + * @param {fibreDeleteManyArgs} args - Arguments to filter Fibres to delete. + * @example + * // Delete a few Fibres + * const { count } = await prisma.fibre.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Fibres. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibreUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Fibres + * const fibre = await prisma.fibre.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Fibre. + * @param {fibreUpsertArgs} args - Arguments to update or create a Fibre. + * @example + * // Update or create a Fibre + * const fibre = await prisma.fibre.upsert({ + * create: { + * // ... data to create a Fibre + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Fibre we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__fibreClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Fibres. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibreCountArgs} args - Arguments to filter Fibres to count. + * @example + * // Count the number of Fibres + * const count = await prisma.fibre.count({ + * where: { + * // ... the filter for the Fibres 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 Fibre. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FibreAggregateArgs} 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 Fibre. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibreGroupByArgs} 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 fibreGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: fibreGroupByArgs['orderBy'] } + : { orderBy?: fibreGroupByArgs['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 ? GetFibreGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the fibre model + */ +readonly fields: fibreFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for fibre. + * 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__fibreClient 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 fibre model + */ +export interface fibreFieldRefs { + readonly id: Prisma.FieldRef<"fibre", 'Int'> + readonly terrain: Prisma.FieldRef<"fibre", 'String'> + readonly rue: Prisma.FieldRef<"fibre", 'String'> + readonly ville: Prisma.FieldRef<"fibre", 'String'> + readonly zip: Prisma.FieldRef<"fibre", 'String'> + readonly ontid: Prisma.FieldRef<"fibre", 'Int'> + readonly sn: Prisma.FieldRef<"fibre", 'String'> + readonly tech: Prisma.FieldRef<"fibre", 'Int'> + readonly info_connect: Prisma.FieldRef<"fibre", 'String'> + readonly frame: Prisma.FieldRef<"fibre", 'Int'> + readonly slot: Prisma.FieldRef<"fibre", 'Int'> + readonly port: Prisma.FieldRef<"fibre", 'Int'> + readonly vlan_manage: Prisma.FieldRef<"fibre", 'Int'> + readonly vlan_internet: Prisma.FieldRef<"fibre", 'Int'> + readonly vlan_telephone: Prisma.FieldRef<"fibre", 'Int'> + readonly vlan_tele: Prisma.FieldRef<"fibre", 'Int'> + readonly manage_service_id: Prisma.FieldRef<"fibre", 'Int'> + readonly internet_service_id: Prisma.FieldRef<"fibre", 'Int'> + readonly telephone_service_id: Prisma.FieldRef<"fibre", 'Int'> + readonly tele_service_id: Prisma.FieldRef<"fibre", 'Int'> + readonly service_id: Prisma.FieldRef<"fibre", 'Int'> + readonly nb_drop: Prisma.FieldRef<"fibre", 'Int'> + readonly placemarks_id: Prisma.FieldRef<"fibre", 'BigInt'> + readonly appartements_id: Prisma.FieldRef<"fibre", 'BigInt'> + readonly latitude: Prisma.FieldRef<"fibre", 'Float'> + readonly longitude: Prisma.FieldRef<"fibre", 'Float'> + readonly boitier_pas_install: Prisma.FieldRef<"fibre", 'Int'> + readonly description: Prisma.FieldRef<"fibre", 'String'> + readonly suite: Prisma.FieldRef<"fibre", 'Int'> + readonly distance: Prisma.FieldRef<"fibre", 'Int'> + readonly nb_portees: Prisma.FieldRef<"fibre", 'Int'> +} + + +// Custom InputTypes +/** + * fibre findUnique + */ +export type fibreFindUniqueArgs = { + /** + * Select specific fields to fetch from the fibre + */ + select?: Prisma.fibreSelect | null + /** + * Omit specific fields from the fibre + */ + omit?: Prisma.fibreOmit | null + /** + * Filter, which fibre to fetch. + */ + where: Prisma.fibreWhereUniqueInput +} + +/** + * fibre findUniqueOrThrow + */ +export type fibreFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the fibre + */ + select?: Prisma.fibreSelect | null + /** + * Omit specific fields from the fibre + */ + omit?: Prisma.fibreOmit | null + /** + * Filter, which fibre to fetch. + */ + where: Prisma.fibreWhereUniqueInput +} + +/** + * fibre findFirst + */ +export type fibreFindFirstArgs = { + /** + * Select specific fields to fetch from the fibre + */ + select?: Prisma.fibreSelect | null + /** + * Omit specific fields from the fibre + */ + omit?: Prisma.fibreOmit | null + /** + * Filter, which fibre to fetch. + */ + where?: Prisma.fibreWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibres to fetch. + */ + orderBy?: Prisma.fibreOrderByWithRelationInput | Prisma.fibreOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for fibres. + */ + cursor?: Prisma.fibreWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibres 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` fibres. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of fibres. + */ + distinct?: Prisma.FibreScalarFieldEnum | Prisma.FibreScalarFieldEnum[] +} + +/** + * fibre findFirstOrThrow + */ +export type fibreFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the fibre + */ + select?: Prisma.fibreSelect | null + /** + * Omit specific fields from the fibre + */ + omit?: Prisma.fibreOmit | null + /** + * Filter, which fibre to fetch. + */ + where?: Prisma.fibreWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibres to fetch. + */ + orderBy?: Prisma.fibreOrderByWithRelationInput | Prisma.fibreOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for fibres. + */ + cursor?: Prisma.fibreWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibres 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` fibres. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of fibres. + */ + distinct?: Prisma.FibreScalarFieldEnum | Prisma.FibreScalarFieldEnum[] +} + +/** + * fibre findMany + */ +export type fibreFindManyArgs = { + /** + * Select specific fields to fetch from the fibre + */ + select?: Prisma.fibreSelect | null + /** + * Omit specific fields from the fibre + */ + omit?: Prisma.fibreOmit | null + /** + * Filter, which fibres to fetch. + */ + where?: Prisma.fibreWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibres to fetch. + */ + orderBy?: Prisma.fibreOrderByWithRelationInput | Prisma.fibreOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing fibres. + */ + cursor?: Prisma.fibreWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibres 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` fibres. + */ + skip?: number + distinct?: Prisma.FibreScalarFieldEnum | Prisma.FibreScalarFieldEnum[] +} + +/** + * fibre create + */ +export type fibreCreateArgs = { + /** + * Select specific fields to fetch from the fibre + */ + select?: Prisma.fibreSelect | null + /** + * Omit specific fields from the fibre + */ + omit?: Prisma.fibreOmit | null + /** + * The data needed to create a fibre. + */ + data: Prisma.XOR +} + +/** + * fibre createMany + */ +export type fibreCreateManyArgs = { + /** + * The data used to create many fibres. + */ + data: Prisma.fibreCreateManyInput | Prisma.fibreCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * fibre update + */ +export type fibreUpdateArgs = { + /** + * Select specific fields to fetch from the fibre + */ + select?: Prisma.fibreSelect | null + /** + * Omit specific fields from the fibre + */ + omit?: Prisma.fibreOmit | null + /** + * The data needed to update a fibre. + */ + data: Prisma.XOR + /** + * Choose, which fibre to update. + */ + where: Prisma.fibreWhereUniqueInput +} + +/** + * fibre updateMany + */ +export type fibreUpdateManyArgs = { + /** + * The data used to update fibres. + */ + data: Prisma.XOR + /** + * Filter which fibres to update + */ + where?: Prisma.fibreWhereInput + /** + * Limit how many fibres to update. + */ + limit?: number +} + +/** + * fibre upsert + */ +export type fibreUpsertArgs = { + /** + * Select specific fields to fetch from the fibre + */ + select?: Prisma.fibreSelect | null + /** + * Omit specific fields from the fibre + */ + omit?: Prisma.fibreOmit | null + /** + * The filter to search for the fibre to update in case it exists. + */ + where: Prisma.fibreWhereUniqueInput + /** + * In case the fibre found by the `where` argument doesn't exist, create a new fibre with this data. + */ + create: Prisma.XOR + /** + * In case the fibre was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * fibre delete + */ +export type fibreDeleteArgs = { + /** + * Select specific fields to fetch from the fibre + */ + select?: Prisma.fibreSelect | null + /** + * Omit specific fields from the fibre + */ + omit?: Prisma.fibreOmit | null + /** + * Filter which fibre to delete. + */ + where: Prisma.fibreWhereUniqueInput +} + +/** + * fibre deleteMany + */ +export type fibreDeleteManyArgs = { + /** + * Filter which fibres to delete + */ + where?: Prisma.fibreWhereInput + /** + * Limit how many fibres to delete. + */ + limit?: number +} + +/** + * fibre without action + */ +export type fibreDefaultArgs = { + /** + * Select specific fields to fetch from the fibre + */ + select?: Prisma.fibreSelect | null + /** + * Omit specific fields from the fibre + */ + omit?: Prisma.fibreOmit | null +} diff --git a/prisma/generated/mariadb/models/fibre_olt.ts b/prisma/generated/mariadb/models/fibre_olt.ts new file mode 100644 index 0000000..928b4b0 --- /dev/null +++ b/prisma/generated/mariadb/models/fibre_olt.ts @@ -0,0 +1,1059 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `fibre_olt` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model fibre_olt + * + */ +export type fibre_oltModel = runtime.Types.Result.DefaultSelection + +export type AggregateFibre_olt = { + _count: Fibre_oltCountAggregateOutputType | null + _avg: Fibre_oltAvgAggregateOutputType | null + _sum: Fibre_oltSumAggregateOutputType | null + _min: Fibre_oltMinAggregateOutputType | null + _max: Fibre_oltMaxAggregateOutputType | null +} + +export type Fibre_oltAvgAggregateOutputType = { + id: number | null + tech: number | null +} + +export type Fibre_oltSumAggregateOutputType = { + id: number | null + tech: number | null +} + +export type Fibre_oltMinAggregateOutputType = { + id: number | null + tech: number | null + ip: string | null + description: string | null +} + +export type Fibre_oltMaxAggregateOutputType = { + id: number | null + tech: number | null + ip: string | null + description: string | null +} + +export type Fibre_oltCountAggregateOutputType = { + id: number + tech: number + ip: number + description: number + _all: number +} + + +export type Fibre_oltAvgAggregateInputType = { + id?: true + tech?: true +} + +export type Fibre_oltSumAggregateInputType = { + id?: true + tech?: true +} + +export type Fibre_oltMinAggregateInputType = { + id?: true + tech?: true + ip?: true + description?: true +} + +export type Fibre_oltMaxAggregateInputType = { + id?: true + tech?: true + ip?: true + description?: true +} + +export type Fibre_oltCountAggregateInputType = { + id?: true + tech?: true + ip?: true + description?: true + _all?: true +} + +export type Fibre_oltAggregateArgs = { + /** + * Filter which fibre_olt to aggregate. + */ + where?: Prisma.fibre_oltWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_olts to fetch. + */ + orderBy?: Prisma.fibre_oltOrderByWithRelationInput | Prisma.fibre_oltOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.fibre_oltWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_olts 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` fibre_olts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned fibre_olts + **/ + _count?: true | Fibre_oltCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Fibre_oltAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Fibre_oltSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Fibre_oltMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Fibre_oltMaxAggregateInputType +} + +export type GetFibre_oltAggregateType = { + [P in keyof T & keyof AggregateFibre_olt]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type fibre_oltGroupByArgs = { + where?: Prisma.fibre_oltWhereInput + orderBy?: Prisma.fibre_oltOrderByWithAggregationInput | Prisma.fibre_oltOrderByWithAggregationInput[] + by: Prisma.Fibre_oltScalarFieldEnum[] | Prisma.Fibre_oltScalarFieldEnum + having?: Prisma.fibre_oltScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Fibre_oltCountAggregateInputType | true + _avg?: Fibre_oltAvgAggregateInputType + _sum?: Fibre_oltSumAggregateInputType + _min?: Fibre_oltMinAggregateInputType + _max?: Fibre_oltMaxAggregateInputType +} + +export type Fibre_oltGroupByOutputType = { + id: number + tech: number + ip: string + description: string + _count: Fibre_oltCountAggregateOutputType | null + _avg: Fibre_oltAvgAggregateOutputType | null + _sum: Fibre_oltSumAggregateOutputType | null + _min: Fibre_oltMinAggregateOutputType | null + _max: Fibre_oltMaxAggregateOutputType | null +} + +type GetFibre_oltGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Fibre_oltGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type fibre_oltWhereInput = { + AND?: Prisma.fibre_oltWhereInput | Prisma.fibre_oltWhereInput[] + OR?: Prisma.fibre_oltWhereInput[] + NOT?: Prisma.fibre_oltWhereInput | Prisma.fibre_oltWhereInput[] + id?: Prisma.IntFilter<"fibre_olt"> | number + tech?: Prisma.IntFilter<"fibre_olt"> | number + ip?: Prisma.StringFilter<"fibre_olt"> | string + description?: Prisma.StringFilter<"fibre_olt"> | string +} + +export type fibre_oltOrderByWithRelationInput = { + id?: Prisma.SortOrder + tech?: Prisma.SortOrder + ip?: Prisma.SortOrder + description?: Prisma.SortOrder + _relevance?: Prisma.fibre_oltOrderByRelevanceInput +} + +export type fibre_oltWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.fibre_oltWhereInput | Prisma.fibre_oltWhereInput[] + OR?: Prisma.fibre_oltWhereInput[] + NOT?: Prisma.fibre_oltWhereInput | Prisma.fibre_oltWhereInput[] + tech?: Prisma.IntFilter<"fibre_olt"> | number + ip?: Prisma.StringFilter<"fibre_olt"> | string + description?: Prisma.StringFilter<"fibre_olt"> | string +}, "id"> + +export type fibre_oltOrderByWithAggregationInput = { + id?: Prisma.SortOrder + tech?: Prisma.SortOrder + ip?: Prisma.SortOrder + description?: Prisma.SortOrder + _count?: Prisma.fibre_oltCountOrderByAggregateInput + _avg?: Prisma.fibre_oltAvgOrderByAggregateInput + _max?: Prisma.fibre_oltMaxOrderByAggregateInput + _min?: Prisma.fibre_oltMinOrderByAggregateInput + _sum?: Prisma.fibre_oltSumOrderByAggregateInput +} + +export type fibre_oltScalarWhereWithAggregatesInput = { + AND?: Prisma.fibre_oltScalarWhereWithAggregatesInput | Prisma.fibre_oltScalarWhereWithAggregatesInput[] + OR?: Prisma.fibre_oltScalarWhereWithAggregatesInput[] + NOT?: Prisma.fibre_oltScalarWhereWithAggregatesInput | Prisma.fibre_oltScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"fibre_olt"> | number + tech?: Prisma.IntWithAggregatesFilter<"fibre_olt"> | number + ip?: Prisma.StringWithAggregatesFilter<"fibre_olt"> | string + description?: Prisma.StringWithAggregatesFilter<"fibre_olt"> | string +} + +export type fibre_oltCreateInput = { + tech: number + ip: string + description: string +} + +export type fibre_oltUncheckedCreateInput = { + id?: number + tech: number + ip: string + description: string +} + +export type fibre_oltUpdateInput = { + tech?: Prisma.IntFieldUpdateOperationsInput | number + ip?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_oltUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + tech?: Prisma.IntFieldUpdateOperationsInput | number + ip?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_oltCreateManyInput = { + id?: number + tech: number + ip: string + description: string +} + +export type fibre_oltUpdateManyMutationInput = { + tech?: Prisma.IntFieldUpdateOperationsInput | number + ip?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_oltUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + tech?: Prisma.IntFieldUpdateOperationsInput | number + ip?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_oltOrderByRelevanceInput = { + fields: Prisma.fibre_oltOrderByRelevanceFieldEnum | Prisma.fibre_oltOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type fibre_oltCountOrderByAggregateInput = { + id?: Prisma.SortOrder + tech?: Prisma.SortOrder + ip?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type fibre_oltAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + tech?: Prisma.SortOrder +} + +export type fibre_oltMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + tech?: Prisma.SortOrder + ip?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type fibre_oltMinOrderByAggregateInput = { + id?: Prisma.SortOrder + tech?: Prisma.SortOrder + ip?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type fibre_oltSumOrderByAggregateInput = { + id?: Prisma.SortOrder + tech?: Prisma.SortOrder +} + + + +export type fibre_oltSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + tech?: boolean + ip?: boolean + description?: boolean +}, ExtArgs["result"]["fibre_olt"]> + + + +export type fibre_oltSelectScalar = { + id?: boolean + tech?: boolean + ip?: boolean + description?: boolean +} + +export type fibre_oltOmit = runtime.Types.Extensions.GetOmit<"id" | "tech" | "ip" | "description", ExtArgs["result"]["fibre_olt"]> + +export type $fibre_oltPayload = { + name: "fibre_olt" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + tech: number + ip: string + description: string + }, ExtArgs["result"]["fibre_olt"]> + composites: {} +} + +export type fibre_oltGetPayload = runtime.Types.Result.GetResult + +export type fibre_oltCountArgs = + Omit & { + select?: Fibre_oltCountAggregateInputType | true + } + +export interface fibre_oltDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['fibre_olt'], meta: { name: 'fibre_olt' } } + /** + * Find zero or one Fibre_olt that matches the filter. + * @param {fibre_oltFindUniqueArgs} args - Arguments to find a Fibre_olt + * @example + * // Get one Fibre_olt + * const fibre_olt = await prisma.fibre_olt.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_oltClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Fibre_olt that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {fibre_oltFindUniqueOrThrowArgs} args - Arguments to find a Fibre_olt + * @example + * // Get one Fibre_olt + * const fibre_olt = await prisma.fibre_olt.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_oltClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Fibre_olt 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 {fibre_oltFindFirstArgs} args - Arguments to find a Fibre_olt + * @example + * // Get one Fibre_olt + * const fibre_olt = await prisma.fibre_olt.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__fibre_oltClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Fibre_olt 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 {fibre_oltFindFirstOrThrowArgs} args - Arguments to find a Fibre_olt + * @example + * // Get one Fibre_olt + * const fibre_olt = await prisma.fibre_olt.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__fibre_oltClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Fibre_olts 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 {fibre_oltFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Fibre_olts + * const fibre_olts = await prisma.fibre_olt.findMany() + * + * // Get first 10 Fibre_olts + * const fibre_olts = await prisma.fibre_olt.findMany({ take: 10 }) + * + * // Only select the `id` + * const fibre_oltWithIdOnly = await prisma.fibre_olt.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Fibre_olt. + * @param {fibre_oltCreateArgs} args - Arguments to create a Fibre_olt. + * @example + * // Create one Fibre_olt + * const Fibre_olt = await prisma.fibre_olt.create({ + * data: { + * // ... data to create a Fibre_olt + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_oltClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Fibre_olts. + * @param {fibre_oltCreateManyArgs} args - Arguments to create many Fibre_olts. + * @example + * // Create many Fibre_olts + * const fibre_olt = await prisma.fibre_olt.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Fibre_olt. + * @param {fibre_oltDeleteArgs} args - Arguments to delete one Fibre_olt. + * @example + * // Delete one Fibre_olt + * const Fibre_olt = await prisma.fibre_olt.delete({ + * where: { + * // ... filter to delete one Fibre_olt + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_oltClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Fibre_olt. + * @param {fibre_oltUpdateArgs} args - Arguments to update one Fibre_olt. + * @example + * // Update one Fibre_olt + * const fibre_olt = await prisma.fibre_olt.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_oltClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Fibre_olts. + * @param {fibre_oltDeleteManyArgs} args - Arguments to filter Fibre_olts to delete. + * @example + * // Delete a few Fibre_olts + * const { count } = await prisma.fibre_olt.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Fibre_olts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibre_oltUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Fibre_olts + * const fibre_olt = await prisma.fibre_olt.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Fibre_olt. + * @param {fibre_oltUpsertArgs} args - Arguments to update or create a Fibre_olt. + * @example + * // Update or create a Fibre_olt + * const fibre_olt = await prisma.fibre_olt.upsert({ + * create: { + * // ... data to create a Fibre_olt + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Fibre_olt we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_oltClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Fibre_olts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibre_oltCountArgs} args - Arguments to filter Fibre_olts to count. + * @example + * // Count the number of Fibre_olts + * const count = await prisma.fibre_olt.count({ + * where: { + * // ... the filter for the Fibre_olts 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 Fibre_olt. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Fibre_oltAggregateArgs} 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 Fibre_olt. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibre_oltGroupByArgs} 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 fibre_oltGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: fibre_oltGroupByArgs['orderBy'] } + : { orderBy?: fibre_oltGroupByArgs['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 ? GetFibre_oltGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the fibre_olt model + */ +readonly fields: fibre_oltFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for fibre_olt. + * 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__fibre_oltClient 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 fibre_olt model + */ +export interface fibre_oltFieldRefs { + readonly id: Prisma.FieldRef<"fibre_olt", 'Int'> + readonly tech: Prisma.FieldRef<"fibre_olt", 'Int'> + readonly ip: Prisma.FieldRef<"fibre_olt", 'String'> + readonly description: Prisma.FieldRef<"fibre_olt", 'String'> +} + + +// Custom InputTypes +/** + * fibre_olt findUnique + */ +export type fibre_oltFindUniqueArgs = { + /** + * Select specific fields to fetch from the fibre_olt + */ + select?: Prisma.fibre_oltSelect | null + /** + * Omit specific fields from the fibre_olt + */ + omit?: Prisma.fibre_oltOmit | null + /** + * Filter, which fibre_olt to fetch. + */ + where: Prisma.fibre_oltWhereUniqueInput +} + +/** + * fibre_olt findUniqueOrThrow + */ +export type fibre_oltFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the fibre_olt + */ + select?: Prisma.fibre_oltSelect | null + /** + * Omit specific fields from the fibre_olt + */ + omit?: Prisma.fibre_oltOmit | null + /** + * Filter, which fibre_olt to fetch. + */ + where: Prisma.fibre_oltWhereUniqueInput +} + +/** + * fibre_olt findFirst + */ +export type fibre_oltFindFirstArgs = { + /** + * Select specific fields to fetch from the fibre_olt + */ + select?: Prisma.fibre_oltSelect | null + /** + * Omit specific fields from the fibre_olt + */ + omit?: Prisma.fibre_oltOmit | null + /** + * Filter, which fibre_olt to fetch. + */ + where?: Prisma.fibre_oltWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_olts to fetch. + */ + orderBy?: Prisma.fibre_oltOrderByWithRelationInput | Prisma.fibre_oltOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for fibre_olts. + */ + cursor?: Prisma.fibre_oltWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_olts 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` fibre_olts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of fibre_olts. + */ + distinct?: Prisma.Fibre_oltScalarFieldEnum | Prisma.Fibre_oltScalarFieldEnum[] +} + +/** + * fibre_olt findFirstOrThrow + */ +export type fibre_oltFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the fibre_olt + */ + select?: Prisma.fibre_oltSelect | null + /** + * Omit specific fields from the fibre_olt + */ + omit?: Prisma.fibre_oltOmit | null + /** + * Filter, which fibre_olt to fetch. + */ + where?: Prisma.fibre_oltWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_olts to fetch. + */ + orderBy?: Prisma.fibre_oltOrderByWithRelationInput | Prisma.fibre_oltOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for fibre_olts. + */ + cursor?: Prisma.fibre_oltWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_olts 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` fibre_olts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of fibre_olts. + */ + distinct?: Prisma.Fibre_oltScalarFieldEnum | Prisma.Fibre_oltScalarFieldEnum[] +} + +/** + * fibre_olt findMany + */ +export type fibre_oltFindManyArgs = { + /** + * Select specific fields to fetch from the fibre_olt + */ + select?: Prisma.fibre_oltSelect | null + /** + * Omit specific fields from the fibre_olt + */ + omit?: Prisma.fibre_oltOmit | null + /** + * Filter, which fibre_olts to fetch. + */ + where?: Prisma.fibre_oltWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_olts to fetch. + */ + orderBy?: Prisma.fibre_oltOrderByWithRelationInput | Prisma.fibre_oltOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing fibre_olts. + */ + cursor?: Prisma.fibre_oltWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_olts 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` fibre_olts. + */ + skip?: number + distinct?: Prisma.Fibre_oltScalarFieldEnum | Prisma.Fibre_oltScalarFieldEnum[] +} + +/** + * fibre_olt create + */ +export type fibre_oltCreateArgs = { + /** + * Select specific fields to fetch from the fibre_olt + */ + select?: Prisma.fibre_oltSelect | null + /** + * Omit specific fields from the fibre_olt + */ + omit?: Prisma.fibre_oltOmit | null + /** + * The data needed to create a fibre_olt. + */ + data: Prisma.XOR +} + +/** + * fibre_olt createMany + */ +export type fibre_oltCreateManyArgs = { + /** + * The data used to create many fibre_olts. + */ + data: Prisma.fibre_oltCreateManyInput | Prisma.fibre_oltCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * fibre_olt update + */ +export type fibre_oltUpdateArgs = { + /** + * Select specific fields to fetch from the fibre_olt + */ + select?: Prisma.fibre_oltSelect | null + /** + * Omit specific fields from the fibre_olt + */ + omit?: Prisma.fibre_oltOmit | null + /** + * The data needed to update a fibre_olt. + */ + data: Prisma.XOR + /** + * Choose, which fibre_olt to update. + */ + where: Prisma.fibre_oltWhereUniqueInput +} + +/** + * fibre_olt updateMany + */ +export type fibre_oltUpdateManyArgs = { + /** + * The data used to update fibre_olts. + */ + data: Prisma.XOR + /** + * Filter which fibre_olts to update + */ + where?: Prisma.fibre_oltWhereInput + /** + * Limit how many fibre_olts to update. + */ + limit?: number +} + +/** + * fibre_olt upsert + */ +export type fibre_oltUpsertArgs = { + /** + * Select specific fields to fetch from the fibre_olt + */ + select?: Prisma.fibre_oltSelect | null + /** + * Omit specific fields from the fibre_olt + */ + omit?: Prisma.fibre_oltOmit | null + /** + * The filter to search for the fibre_olt to update in case it exists. + */ + where: Prisma.fibre_oltWhereUniqueInput + /** + * In case the fibre_olt found by the `where` argument doesn't exist, create a new fibre_olt with this data. + */ + create: Prisma.XOR + /** + * In case the fibre_olt was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * fibre_olt delete + */ +export type fibre_oltDeleteArgs = { + /** + * Select specific fields to fetch from the fibre_olt + */ + select?: Prisma.fibre_oltSelect | null + /** + * Omit specific fields from the fibre_olt + */ + omit?: Prisma.fibre_oltOmit | null + /** + * Filter which fibre_olt to delete. + */ + where: Prisma.fibre_oltWhereUniqueInput +} + +/** + * fibre_olt deleteMany + */ +export type fibre_oltDeleteManyArgs = { + /** + * Filter which fibre_olts to delete + */ + where?: Prisma.fibre_oltWhereInput + /** + * Limit how many fibre_olts to delete. + */ + limit?: number +} + +/** + * fibre_olt without action + */ +export type fibre_oltDefaultArgs = { + /** + * Select specific fields to fetch from the fibre_olt + */ + select?: Prisma.fibre_oltSelect | null + /** + * Omit specific fields from the fibre_olt + */ + omit?: Prisma.fibre_oltOmit | null +} diff --git a/prisma/generated/mariadb/models/fibre_service_port.ts b/prisma/generated/mariadb/models/fibre_service_port.ts new file mode 100644 index 0000000..3958803 --- /dev/null +++ b/prisma/generated/mariadb/models/fibre_service_port.ts @@ -0,0 +1,1000 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `fibre_service_port` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model fibre_service_port + * + */ +export type fibre_service_portModel = runtime.Types.Result.DefaultSelection + +export type AggregateFibre_service_port = { + _count: Fibre_service_portCountAggregateOutputType | null + _avg: Fibre_service_portAvgAggregateOutputType | null + _sum: Fibre_service_portSumAggregateOutputType | null + _min: Fibre_service_portMinAggregateOutputType | null + _max: Fibre_service_portMaxAggregateOutputType | null +} + +export type Fibre_service_portAvgAggregateOutputType = { + id: number | null + last_service_id: number | null +} + +export type Fibre_service_portSumAggregateOutputType = { + id: number | null + last_service_id: number | null +} + +export type Fibre_service_portMinAggregateOutputType = { + id: number | null + last_service_id: number | null +} + +export type Fibre_service_portMaxAggregateOutputType = { + id: number | null + last_service_id: number | null +} + +export type Fibre_service_portCountAggregateOutputType = { + id: number + last_service_id: number + _all: number +} + + +export type Fibre_service_portAvgAggregateInputType = { + id?: true + last_service_id?: true +} + +export type Fibre_service_portSumAggregateInputType = { + id?: true + last_service_id?: true +} + +export type Fibre_service_portMinAggregateInputType = { + id?: true + last_service_id?: true +} + +export type Fibre_service_portMaxAggregateInputType = { + id?: true + last_service_id?: true +} + +export type Fibre_service_portCountAggregateInputType = { + id?: true + last_service_id?: true + _all?: true +} + +export type Fibre_service_portAggregateArgs = { + /** + * Filter which fibre_service_port to aggregate. + */ + where?: Prisma.fibre_service_portWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_service_ports to fetch. + */ + orderBy?: Prisma.fibre_service_portOrderByWithRelationInput | Prisma.fibre_service_portOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.fibre_service_portWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_service_ports 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` fibre_service_ports. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned fibre_service_ports + **/ + _count?: true | Fibre_service_portCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Fibre_service_portAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Fibre_service_portSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Fibre_service_portMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Fibre_service_portMaxAggregateInputType +} + +export type GetFibre_service_portAggregateType = { + [P in keyof T & keyof AggregateFibre_service_port]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type fibre_service_portGroupByArgs = { + where?: Prisma.fibre_service_portWhereInput + orderBy?: Prisma.fibre_service_portOrderByWithAggregationInput | Prisma.fibre_service_portOrderByWithAggregationInput[] + by: Prisma.Fibre_service_portScalarFieldEnum[] | Prisma.Fibre_service_portScalarFieldEnum + having?: Prisma.fibre_service_portScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Fibre_service_portCountAggregateInputType | true + _avg?: Fibre_service_portAvgAggregateInputType + _sum?: Fibre_service_portSumAggregateInputType + _min?: Fibre_service_portMinAggregateInputType + _max?: Fibre_service_portMaxAggregateInputType +} + +export type Fibre_service_portGroupByOutputType = { + id: number + last_service_id: number + _count: Fibre_service_portCountAggregateOutputType | null + _avg: Fibre_service_portAvgAggregateOutputType | null + _sum: Fibre_service_portSumAggregateOutputType | null + _min: Fibre_service_portMinAggregateOutputType | null + _max: Fibre_service_portMaxAggregateOutputType | null +} + +type GetFibre_service_portGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Fibre_service_portGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type fibre_service_portWhereInput = { + AND?: Prisma.fibre_service_portWhereInput | Prisma.fibre_service_portWhereInput[] + OR?: Prisma.fibre_service_portWhereInput[] + NOT?: Prisma.fibre_service_portWhereInput | Prisma.fibre_service_portWhereInput[] + id?: Prisma.IntFilter<"fibre_service_port"> | number + last_service_id?: Prisma.IntFilter<"fibre_service_port"> | number +} + +export type fibre_service_portOrderByWithRelationInput = { + id?: Prisma.SortOrder + last_service_id?: Prisma.SortOrder +} + +export type fibre_service_portWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.fibre_service_portWhereInput | Prisma.fibre_service_portWhereInput[] + OR?: Prisma.fibre_service_portWhereInput[] + NOT?: Prisma.fibre_service_portWhereInput | Prisma.fibre_service_portWhereInput[] + last_service_id?: Prisma.IntFilter<"fibre_service_port"> | number +}, "id"> + +export type fibre_service_portOrderByWithAggregationInput = { + id?: Prisma.SortOrder + last_service_id?: Prisma.SortOrder + _count?: Prisma.fibre_service_portCountOrderByAggregateInput + _avg?: Prisma.fibre_service_portAvgOrderByAggregateInput + _max?: Prisma.fibre_service_portMaxOrderByAggregateInput + _min?: Prisma.fibre_service_portMinOrderByAggregateInput + _sum?: Prisma.fibre_service_portSumOrderByAggregateInput +} + +export type fibre_service_portScalarWhereWithAggregatesInput = { + AND?: Prisma.fibre_service_portScalarWhereWithAggregatesInput | Prisma.fibre_service_portScalarWhereWithAggregatesInput[] + OR?: Prisma.fibre_service_portScalarWhereWithAggregatesInput[] + NOT?: Prisma.fibre_service_portScalarWhereWithAggregatesInput | Prisma.fibre_service_portScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"fibre_service_port"> | number + last_service_id?: Prisma.IntWithAggregatesFilter<"fibre_service_port"> | number +} + +export type fibre_service_portCreateInput = { + last_service_id: number +} + +export type fibre_service_portUncheckedCreateInput = { + id?: number + last_service_id: number +} + +export type fibre_service_portUpdateInput = { + last_service_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type fibre_service_portUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + last_service_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type fibre_service_portCreateManyInput = { + id?: number + last_service_id: number +} + +export type fibre_service_portUpdateManyMutationInput = { + last_service_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type fibre_service_portUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + last_service_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type fibre_service_portCountOrderByAggregateInput = { + id?: Prisma.SortOrder + last_service_id?: Prisma.SortOrder +} + +export type fibre_service_portAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + last_service_id?: Prisma.SortOrder +} + +export type fibre_service_portMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + last_service_id?: Prisma.SortOrder +} + +export type fibre_service_portMinOrderByAggregateInput = { + id?: Prisma.SortOrder + last_service_id?: Prisma.SortOrder +} + +export type fibre_service_portSumOrderByAggregateInput = { + id?: Prisma.SortOrder + last_service_id?: Prisma.SortOrder +} + + + +export type fibre_service_portSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + last_service_id?: boolean +}, ExtArgs["result"]["fibre_service_port"]> + + + +export type fibre_service_portSelectScalar = { + id?: boolean + last_service_id?: boolean +} + +export type fibre_service_portOmit = runtime.Types.Extensions.GetOmit<"id" | "last_service_id", ExtArgs["result"]["fibre_service_port"]> + +export type $fibre_service_portPayload = { + name: "fibre_service_port" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + last_service_id: number + }, ExtArgs["result"]["fibre_service_port"]> + composites: {} +} + +export type fibre_service_portGetPayload = runtime.Types.Result.GetResult + +export type fibre_service_portCountArgs = + Omit & { + select?: Fibre_service_portCountAggregateInputType | true + } + +export interface fibre_service_portDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['fibre_service_port'], meta: { name: 'fibre_service_port' } } + /** + * Find zero or one Fibre_service_port that matches the filter. + * @param {fibre_service_portFindUniqueArgs} args - Arguments to find a Fibre_service_port + * @example + * // Get one Fibre_service_port + * const fibre_service_port = await prisma.fibre_service_port.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_service_portClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Fibre_service_port that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {fibre_service_portFindUniqueOrThrowArgs} args - Arguments to find a Fibre_service_port + * @example + * // Get one Fibre_service_port + * const fibre_service_port = await prisma.fibre_service_port.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_service_portClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Fibre_service_port 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 {fibre_service_portFindFirstArgs} args - Arguments to find a Fibre_service_port + * @example + * // Get one Fibre_service_port + * const fibre_service_port = await prisma.fibre_service_port.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__fibre_service_portClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Fibre_service_port 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 {fibre_service_portFindFirstOrThrowArgs} args - Arguments to find a Fibre_service_port + * @example + * // Get one Fibre_service_port + * const fibre_service_port = await prisma.fibre_service_port.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__fibre_service_portClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Fibre_service_ports 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 {fibre_service_portFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Fibre_service_ports + * const fibre_service_ports = await prisma.fibre_service_port.findMany() + * + * // Get first 10 Fibre_service_ports + * const fibre_service_ports = await prisma.fibre_service_port.findMany({ take: 10 }) + * + * // Only select the `id` + * const fibre_service_portWithIdOnly = await prisma.fibre_service_port.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Fibre_service_port. + * @param {fibre_service_portCreateArgs} args - Arguments to create a Fibre_service_port. + * @example + * // Create one Fibre_service_port + * const Fibre_service_port = await prisma.fibre_service_port.create({ + * data: { + * // ... data to create a Fibre_service_port + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_service_portClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Fibre_service_ports. + * @param {fibre_service_portCreateManyArgs} args - Arguments to create many Fibre_service_ports. + * @example + * // Create many Fibre_service_ports + * const fibre_service_port = await prisma.fibre_service_port.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Fibre_service_port. + * @param {fibre_service_portDeleteArgs} args - Arguments to delete one Fibre_service_port. + * @example + * // Delete one Fibre_service_port + * const Fibre_service_port = await prisma.fibre_service_port.delete({ + * where: { + * // ... filter to delete one Fibre_service_port + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_service_portClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Fibre_service_port. + * @param {fibre_service_portUpdateArgs} args - Arguments to update one Fibre_service_port. + * @example + * // Update one Fibre_service_port + * const fibre_service_port = await prisma.fibre_service_port.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_service_portClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Fibre_service_ports. + * @param {fibre_service_portDeleteManyArgs} args - Arguments to filter Fibre_service_ports to delete. + * @example + * // Delete a few Fibre_service_ports + * const { count } = await prisma.fibre_service_port.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Fibre_service_ports. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibre_service_portUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Fibre_service_ports + * const fibre_service_port = await prisma.fibre_service_port.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Fibre_service_port. + * @param {fibre_service_portUpsertArgs} args - Arguments to update or create a Fibre_service_port. + * @example + * // Update or create a Fibre_service_port + * const fibre_service_port = await prisma.fibre_service_port.upsert({ + * create: { + * // ... data to create a Fibre_service_port + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Fibre_service_port we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_service_portClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Fibre_service_ports. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibre_service_portCountArgs} args - Arguments to filter Fibre_service_ports to count. + * @example + * // Count the number of Fibre_service_ports + * const count = await prisma.fibre_service_port.count({ + * where: { + * // ... the filter for the Fibre_service_ports 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 Fibre_service_port. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Fibre_service_portAggregateArgs} 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 Fibre_service_port. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibre_service_portGroupByArgs} 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 fibre_service_portGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: fibre_service_portGroupByArgs['orderBy'] } + : { orderBy?: fibre_service_portGroupByArgs['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 ? GetFibre_service_portGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the fibre_service_port model + */ +readonly fields: fibre_service_portFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for fibre_service_port. + * 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__fibre_service_portClient 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 fibre_service_port model + */ +export interface fibre_service_portFieldRefs { + readonly id: Prisma.FieldRef<"fibre_service_port", 'Int'> + readonly last_service_id: Prisma.FieldRef<"fibre_service_port", 'Int'> +} + + +// Custom InputTypes +/** + * fibre_service_port findUnique + */ +export type fibre_service_portFindUniqueArgs = { + /** + * Select specific fields to fetch from the fibre_service_port + */ + select?: Prisma.fibre_service_portSelect | null + /** + * Omit specific fields from the fibre_service_port + */ + omit?: Prisma.fibre_service_portOmit | null + /** + * Filter, which fibre_service_port to fetch. + */ + where: Prisma.fibre_service_portWhereUniqueInput +} + +/** + * fibre_service_port findUniqueOrThrow + */ +export type fibre_service_portFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the fibre_service_port + */ + select?: Prisma.fibre_service_portSelect | null + /** + * Omit specific fields from the fibre_service_port + */ + omit?: Prisma.fibre_service_portOmit | null + /** + * Filter, which fibre_service_port to fetch. + */ + where: Prisma.fibre_service_portWhereUniqueInput +} + +/** + * fibre_service_port findFirst + */ +export type fibre_service_portFindFirstArgs = { + /** + * Select specific fields to fetch from the fibre_service_port + */ + select?: Prisma.fibre_service_portSelect | null + /** + * Omit specific fields from the fibre_service_port + */ + omit?: Prisma.fibre_service_portOmit | null + /** + * Filter, which fibre_service_port to fetch. + */ + where?: Prisma.fibre_service_portWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_service_ports to fetch. + */ + orderBy?: Prisma.fibre_service_portOrderByWithRelationInput | Prisma.fibre_service_portOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for fibre_service_ports. + */ + cursor?: Prisma.fibre_service_portWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_service_ports 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` fibre_service_ports. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of fibre_service_ports. + */ + distinct?: Prisma.Fibre_service_portScalarFieldEnum | Prisma.Fibre_service_portScalarFieldEnum[] +} + +/** + * fibre_service_port findFirstOrThrow + */ +export type fibre_service_portFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the fibre_service_port + */ + select?: Prisma.fibre_service_portSelect | null + /** + * Omit specific fields from the fibre_service_port + */ + omit?: Prisma.fibre_service_portOmit | null + /** + * Filter, which fibre_service_port to fetch. + */ + where?: Prisma.fibre_service_portWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_service_ports to fetch. + */ + orderBy?: Prisma.fibre_service_portOrderByWithRelationInput | Prisma.fibre_service_portOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for fibre_service_ports. + */ + cursor?: Prisma.fibre_service_portWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_service_ports 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` fibre_service_ports. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of fibre_service_ports. + */ + distinct?: Prisma.Fibre_service_portScalarFieldEnum | Prisma.Fibre_service_portScalarFieldEnum[] +} + +/** + * fibre_service_port findMany + */ +export type fibre_service_portFindManyArgs = { + /** + * Select specific fields to fetch from the fibre_service_port + */ + select?: Prisma.fibre_service_portSelect | null + /** + * Omit specific fields from the fibre_service_port + */ + omit?: Prisma.fibre_service_portOmit | null + /** + * Filter, which fibre_service_ports to fetch. + */ + where?: Prisma.fibre_service_portWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_service_ports to fetch. + */ + orderBy?: Prisma.fibre_service_portOrderByWithRelationInput | Prisma.fibre_service_portOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing fibre_service_ports. + */ + cursor?: Prisma.fibre_service_portWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_service_ports 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` fibre_service_ports. + */ + skip?: number + distinct?: Prisma.Fibre_service_portScalarFieldEnum | Prisma.Fibre_service_portScalarFieldEnum[] +} + +/** + * fibre_service_port create + */ +export type fibre_service_portCreateArgs = { + /** + * Select specific fields to fetch from the fibre_service_port + */ + select?: Prisma.fibre_service_portSelect | null + /** + * Omit specific fields from the fibre_service_port + */ + omit?: Prisma.fibre_service_portOmit | null + /** + * The data needed to create a fibre_service_port. + */ + data: Prisma.XOR +} + +/** + * fibre_service_port createMany + */ +export type fibre_service_portCreateManyArgs = { + /** + * The data used to create many fibre_service_ports. + */ + data: Prisma.fibre_service_portCreateManyInput | Prisma.fibre_service_portCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * fibre_service_port update + */ +export type fibre_service_portUpdateArgs = { + /** + * Select specific fields to fetch from the fibre_service_port + */ + select?: Prisma.fibre_service_portSelect | null + /** + * Omit specific fields from the fibre_service_port + */ + omit?: Prisma.fibre_service_portOmit | null + /** + * The data needed to update a fibre_service_port. + */ + data: Prisma.XOR + /** + * Choose, which fibre_service_port to update. + */ + where: Prisma.fibre_service_portWhereUniqueInput +} + +/** + * fibre_service_port updateMany + */ +export type fibre_service_portUpdateManyArgs = { + /** + * The data used to update fibre_service_ports. + */ + data: Prisma.XOR + /** + * Filter which fibre_service_ports to update + */ + where?: Prisma.fibre_service_portWhereInput + /** + * Limit how many fibre_service_ports to update. + */ + limit?: number +} + +/** + * fibre_service_port upsert + */ +export type fibre_service_portUpsertArgs = { + /** + * Select specific fields to fetch from the fibre_service_port + */ + select?: Prisma.fibre_service_portSelect | null + /** + * Omit specific fields from the fibre_service_port + */ + omit?: Prisma.fibre_service_portOmit | null + /** + * The filter to search for the fibre_service_port to update in case it exists. + */ + where: Prisma.fibre_service_portWhereUniqueInput + /** + * In case the fibre_service_port found by the `where` argument doesn't exist, create a new fibre_service_port with this data. + */ + create: Prisma.XOR + /** + * In case the fibre_service_port was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * fibre_service_port delete + */ +export type fibre_service_portDeleteArgs = { + /** + * Select specific fields to fetch from the fibre_service_port + */ + select?: Prisma.fibre_service_portSelect | null + /** + * Omit specific fields from the fibre_service_port + */ + omit?: Prisma.fibre_service_portOmit | null + /** + * Filter which fibre_service_port to delete. + */ + where: Prisma.fibre_service_portWhereUniqueInput +} + +/** + * fibre_service_port deleteMany + */ +export type fibre_service_portDeleteManyArgs = { + /** + * Filter which fibre_service_ports to delete + */ + where?: Prisma.fibre_service_portWhereInput + /** + * Limit how many fibre_service_ports to delete. + */ + limit?: number +} + +/** + * fibre_service_port without action + */ +export type fibre_service_portDefaultArgs = { + /** + * Select specific fields to fetch from the fibre_service_port + */ + select?: Prisma.fibre_service_portSelect | null + /** + * Omit specific fields from the fibre_service_port + */ + omit?: Prisma.fibre_service_portOmit | null +} diff --git a/prisma/generated/mariadb/models/fibre_suivi.ts b/prisma/generated/mariadb/models/fibre_suivi.ts new file mode 100644 index 0000000..74a06de --- /dev/null +++ b/prisma/generated/mariadb/models/fibre_suivi.ts @@ -0,0 +1,1337 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `fibre_suivi` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model fibre_suivi + * + */ +export type fibre_suiviModel = runtime.Types.Result.DefaultSelection + +export type AggregateFibre_suivi = { + _count: Fibre_suiviCountAggregateOutputType | null + _avg: Fibre_suiviAvgAggregateOutputType | null + _sum: Fibre_suiviSumAggregateOutputType | null + _min: Fibre_suiviMinAggregateOutputType | null + _max: Fibre_suiviMaxAggregateOutputType | null +} + +export type Fibre_suiviAvgAggregateOutputType = { + id: number | null + longitude: runtime.Decimal | null + latitude: runtime.Decimal | null + called: number | null + create_by: number | null +} + +export type Fibre_suiviSumAggregateOutputType = { + id: number | null + longitude: runtime.Decimal | null + latitude: runtime.Decimal | null + called: number | null + create_by: number | null +} + +export type Fibre_suiviMinAggregateOutputType = { + id: number | null + customer_id: string | null + first_name: string | null + last_name: string | null + address: string | null + city: string | null + zip: string | null + phone: string | null + email: string | null + longitude: runtime.Decimal | null + latitude: runtime.Decimal | null + called: number | null + create_by: number | null + note: string | null +} + +export type Fibre_suiviMaxAggregateOutputType = { + id: number | null + customer_id: string | null + first_name: string | null + last_name: string | null + address: string | null + city: string | null + zip: string | null + phone: string | null + email: string | null + longitude: runtime.Decimal | null + latitude: runtime.Decimal | null + called: number | null + create_by: number | null + note: string | null +} + +export type Fibre_suiviCountAggregateOutputType = { + id: number + customer_id: number + first_name: number + last_name: number + address: number + city: number + zip: number + phone: number + email: number + longitude: number + latitude: number + called: number + create_by: number + note: number + _all: number +} + + +export type Fibre_suiviAvgAggregateInputType = { + id?: true + longitude?: true + latitude?: true + called?: true + create_by?: true +} + +export type Fibre_suiviSumAggregateInputType = { + id?: true + longitude?: true + latitude?: true + called?: true + create_by?: true +} + +export type Fibre_suiviMinAggregateInputType = { + id?: true + customer_id?: true + first_name?: true + last_name?: true + address?: true + city?: true + zip?: true + phone?: true + email?: true + longitude?: true + latitude?: true + called?: true + create_by?: true + note?: true +} + +export type Fibre_suiviMaxAggregateInputType = { + id?: true + customer_id?: true + first_name?: true + last_name?: true + address?: true + city?: true + zip?: true + phone?: true + email?: true + longitude?: true + latitude?: true + called?: true + create_by?: true + note?: true +} + +export type Fibre_suiviCountAggregateInputType = { + id?: true + customer_id?: true + first_name?: true + last_name?: true + address?: true + city?: true + zip?: true + phone?: true + email?: true + longitude?: true + latitude?: true + called?: true + create_by?: true + note?: true + _all?: true +} + +export type Fibre_suiviAggregateArgs = { + /** + * Filter which fibre_suivi to aggregate. + */ + where?: Prisma.fibre_suiviWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_suivis to fetch. + */ + orderBy?: Prisma.fibre_suiviOrderByWithRelationInput | Prisma.fibre_suiviOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.fibre_suiviWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_suivis 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` fibre_suivis. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned fibre_suivis + **/ + _count?: true | Fibre_suiviCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Fibre_suiviAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Fibre_suiviSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Fibre_suiviMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Fibre_suiviMaxAggregateInputType +} + +export type GetFibre_suiviAggregateType = { + [P in keyof T & keyof AggregateFibre_suivi]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type fibre_suiviGroupByArgs = { + where?: Prisma.fibre_suiviWhereInput + orderBy?: Prisma.fibre_suiviOrderByWithAggregationInput | Prisma.fibre_suiviOrderByWithAggregationInput[] + by: Prisma.Fibre_suiviScalarFieldEnum[] | Prisma.Fibre_suiviScalarFieldEnum + having?: Prisma.fibre_suiviScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Fibre_suiviCountAggregateInputType | true + _avg?: Fibre_suiviAvgAggregateInputType + _sum?: Fibre_suiviSumAggregateInputType + _min?: Fibre_suiviMinAggregateInputType + _max?: Fibre_suiviMaxAggregateInputType +} + +export type Fibre_suiviGroupByOutputType = { + id: number + customer_id: string | null + first_name: string + last_name: string + address: string + city: string + zip: string + phone: string + email: string | null + longitude: runtime.Decimal + latitude: runtime.Decimal + called: number + create_by: number + note: string + _count: Fibre_suiviCountAggregateOutputType | null + _avg: Fibre_suiviAvgAggregateOutputType | null + _sum: Fibre_suiviSumAggregateOutputType | null + _min: Fibre_suiviMinAggregateOutputType | null + _max: Fibre_suiviMaxAggregateOutputType | null +} + +type GetFibre_suiviGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Fibre_suiviGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type fibre_suiviWhereInput = { + AND?: Prisma.fibre_suiviWhereInput | Prisma.fibre_suiviWhereInput[] + OR?: Prisma.fibre_suiviWhereInput[] + NOT?: Prisma.fibre_suiviWhereInput | Prisma.fibre_suiviWhereInput[] + id?: Prisma.IntFilter<"fibre_suivi"> | number + customer_id?: Prisma.StringNullableFilter<"fibre_suivi"> | string | null + first_name?: Prisma.StringFilter<"fibre_suivi"> | string + last_name?: Prisma.StringFilter<"fibre_suivi"> | string + address?: Prisma.StringFilter<"fibre_suivi"> | string + city?: Prisma.StringFilter<"fibre_suivi"> | string + zip?: Prisma.StringFilter<"fibre_suivi"> | string + phone?: Prisma.StringFilter<"fibre_suivi"> | string + email?: Prisma.StringNullableFilter<"fibre_suivi"> | string | null + longitude?: Prisma.DecimalFilter<"fibre_suivi"> | runtime.Decimal | runtime.DecimalJsLike | number | string + latitude?: Prisma.DecimalFilter<"fibre_suivi"> | runtime.Decimal | runtime.DecimalJsLike | number | string + called?: Prisma.IntFilter<"fibre_suivi"> | number + create_by?: Prisma.IntFilter<"fibre_suivi"> | number + note?: Prisma.StringFilter<"fibre_suivi"> | string +} + +export type fibre_suiviOrderByWithRelationInput = { + id?: Prisma.SortOrder + customer_id?: Prisma.SortOrderInput | Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + address?: Prisma.SortOrder + city?: Prisma.SortOrder + zip?: Prisma.SortOrder + phone?: Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + longitude?: Prisma.SortOrder + latitude?: Prisma.SortOrder + called?: Prisma.SortOrder + create_by?: Prisma.SortOrder + note?: Prisma.SortOrder + _relevance?: Prisma.fibre_suiviOrderByRelevanceInput +} + +export type fibre_suiviWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.fibre_suiviWhereInput | Prisma.fibre_suiviWhereInput[] + OR?: Prisma.fibre_suiviWhereInput[] + NOT?: Prisma.fibre_suiviWhereInput | Prisma.fibre_suiviWhereInput[] + customer_id?: Prisma.StringNullableFilter<"fibre_suivi"> | string | null + first_name?: Prisma.StringFilter<"fibre_suivi"> | string + last_name?: Prisma.StringFilter<"fibre_suivi"> | string + address?: Prisma.StringFilter<"fibre_suivi"> | string + city?: Prisma.StringFilter<"fibre_suivi"> | string + zip?: Prisma.StringFilter<"fibre_suivi"> | string + phone?: Prisma.StringFilter<"fibre_suivi"> | string + email?: Prisma.StringNullableFilter<"fibre_suivi"> | string | null + longitude?: Prisma.DecimalFilter<"fibre_suivi"> | runtime.Decimal | runtime.DecimalJsLike | number | string + latitude?: Prisma.DecimalFilter<"fibre_suivi"> | runtime.Decimal | runtime.DecimalJsLike | number | string + called?: Prisma.IntFilter<"fibre_suivi"> | number + create_by?: Prisma.IntFilter<"fibre_suivi"> | number + note?: Prisma.StringFilter<"fibre_suivi"> | string +}, "id"> + +export type fibre_suiviOrderByWithAggregationInput = { + id?: Prisma.SortOrder + customer_id?: Prisma.SortOrderInput | Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + address?: Prisma.SortOrder + city?: Prisma.SortOrder + zip?: Prisma.SortOrder + phone?: Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + longitude?: Prisma.SortOrder + latitude?: Prisma.SortOrder + called?: Prisma.SortOrder + create_by?: Prisma.SortOrder + note?: Prisma.SortOrder + _count?: Prisma.fibre_suiviCountOrderByAggregateInput + _avg?: Prisma.fibre_suiviAvgOrderByAggregateInput + _max?: Prisma.fibre_suiviMaxOrderByAggregateInput + _min?: Prisma.fibre_suiviMinOrderByAggregateInput + _sum?: Prisma.fibre_suiviSumOrderByAggregateInput +} + +export type fibre_suiviScalarWhereWithAggregatesInput = { + AND?: Prisma.fibre_suiviScalarWhereWithAggregatesInput | Prisma.fibre_suiviScalarWhereWithAggregatesInput[] + OR?: Prisma.fibre_suiviScalarWhereWithAggregatesInput[] + NOT?: Prisma.fibre_suiviScalarWhereWithAggregatesInput | Prisma.fibre_suiviScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"fibre_suivi"> | number + customer_id?: Prisma.StringNullableWithAggregatesFilter<"fibre_suivi"> | string | null + first_name?: Prisma.StringWithAggregatesFilter<"fibre_suivi"> | string + last_name?: Prisma.StringWithAggregatesFilter<"fibre_suivi"> | string + address?: Prisma.StringWithAggregatesFilter<"fibre_suivi"> | string + city?: Prisma.StringWithAggregatesFilter<"fibre_suivi"> | string + zip?: Prisma.StringWithAggregatesFilter<"fibre_suivi"> | string + phone?: Prisma.StringWithAggregatesFilter<"fibre_suivi"> | string + email?: Prisma.StringNullableWithAggregatesFilter<"fibre_suivi"> | string | null + longitude?: Prisma.DecimalWithAggregatesFilter<"fibre_suivi"> | runtime.Decimal | runtime.DecimalJsLike | number | string + latitude?: Prisma.DecimalWithAggregatesFilter<"fibre_suivi"> | runtime.Decimal | runtime.DecimalJsLike | number | string + called?: Prisma.IntWithAggregatesFilter<"fibre_suivi"> | number + create_by?: Prisma.IntWithAggregatesFilter<"fibre_suivi"> | number + note?: Prisma.StringWithAggregatesFilter<"fibre_suivi"> | string +} + +export type fibre_suiviCreateInput = { + customer_id?: string | null + first_name: string + last_name: string + address: string + city: string + zip: string + phone: string + email?: string | null + longitude: runtime.Decimal | runtime.DecimalJsLike | number | string + latitude: runtime.Decimal | runtime.DecimalJsLike | number | string + called?: number + create_by?: number + note: string +} + +export type fibre_suiviUncheckedCreateInput = { + id?: number + customer_id?: string | null + first_name: string + last_name: string + address: string + city: string + zip: string + phone: string + email?: string | null + longitude: runtime.Decimal | runtime.DecimalJsLike | number | string + latitude: runtime.Decimal | runtime.DecimalJsLike | number | string + called?: number + create_by?: number + note: string +} + +export type fibre_suiviUpdateInput = { + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + address?: Prisma.StringFieldUpdateOperationsInput | string + city?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string + phone?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + longitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + latitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + called?: Prisma.IntFieldUpdateOperationsInput | number + create_by?: Prisma.IntFieldUpdateOperationsInput | number + note?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_suiviUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + address?: Prisma.StringFieldUpdateOperationsInput | string + city?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string + phone?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + longitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + latitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + called?: Prisma.IntFieldUpdateOperationsInput | number + create_by?: Prisma.IntFieldUpdateOperationsInput | number + note?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_suiviCreateManyInput = { + id?: number + customer_id?: string | null + first_name: string + last_name: string + address: string + city: string + zip: string + phone: string + email?: string | null + longitude: runtime.Decimal | runtime.DecimalJsLike | number | string + latitude: runtime.Decimal | runtime.DecimalJsLike | number | string + called?: number + create_by?: number + note: string +} + +export type fibre_suiviUpdateManyMutationInput = { + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + address?: Prisma.StringFieldUpdateOperationsInput | string + city?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string + phone?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + longitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + latitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + called?: Prisma.IntFieldUpdateOperationsInput | number + create_by?: Prisma.IntFieldUpdateOperationsInput | number + note?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_suiviUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + address?: Prisma.StringFieldUpdateOperationsInput | string + city?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string + phone?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + longitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + latitude?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + called?: Prisma.IntFieldUpdateOperationsInput | number + create_by?: Prisma.IntFieldUpdateOperationsInput | number + note?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_suiviOrderByRelevanceInput = { + fields: Prisma.fibre_suiviOrderByRelevanceFieldEnum | Prisma.fibre_suiviOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type fibre_suiviCountOrderByAggregateInput = { + id?: Prisma.SortOrder + customer_id?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + address?: Prisma.SortOrder + city?: Prisma.SortOrder + zip?: Prisma.SortOrder + phone?: Prisma.SortOrder + email?: Prisma.SortOrder + longitude?: Prisma.SortOrder + latitude?: Prisma.SortOrder + called?: Prisma.SortOrder + create_by?: Prisma.SortOrder + note?: Prisma.SortOrder +} + +export type fibre_suiviAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + longitude?: Prisma.SortOrder + latitude?: Prisma.SortOrder + called?: Prisma.SortOrder + create_by?: Prisma.SortOrder +} + +export type fibre_suiviMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + customer_id?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + address?: Prisma.SortOrder + city?: Prisma.SortOrder + zip?: Prisma.SortOrder + phone?: Prisma.SortOrder + email?: Prisma.SortOrder + longitude?: Prisma.SortOrder + latitude?: Prisma.SortOrder + called?: Prisma.SortOrder + create_by?: Prisma.SortOrder + note?: Prisma.SortOrder +} + +export type fibre_suiviMinOrderByAggregateInput = { + id?: Prisma.SortOrder + customer_id?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + address?: Prisma.SortOrder + city?: Prisma.SortOrder + zip?: Prisma.SortOrder + phone?: Prisma.SortOrder + email?: Prisma.SortOrder + longitude?: Prisma.SortOrder + latitude?: Prisma.SortOrder + called?: Prisma.SortOrder + create_by?: Prisma.SortOrder + note?: Prisma.SortOrder +} + +export type fibre_suiviSumOrderByAggregateInput = { + id?: Prisma.SortOrder + longitude?: Prisma.SortOrder + latitude?: Prisma.SortOrder + called?: Prisma.SortOrder + create_by?: Prisma.SortOrder +} + + + +export type fibre_suiviSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + customer_id?: boolean + first_name?: boolean + last_name?: boolean + address?: boolean + city?: boolean + zip?: boolean + phone?: boolean + email?: boolean + longitude?: boolean + latitude?: boolean + called?: boolean + create_by?: boolean + note?: boolean +}, ExtArgs["result"]["fibre_suivi"]> + + + +export type fibre_suiviSelectScalar = { + id?: boolean + customer_id?: boolean + first_name?: boolean + last_name?: boolean + address?: boolean + city?: boolean + zip?: boolean + phone?: boolean + email?: boolean + longitude?: boolean + latitude?: boolean + called?: boolean + create_by?: boolean + note?: boolean +} + +export type fibre_suiviOmit = runtime.Types.Extensions.GetOmit<"id" | "customer_id" | "first_name" | "last_name" | "address" | "city" | "zip" | "phone" | "email" | "longitude" | "latitude" | "called" | "create_by" | "note", ExtArgs["result"]["fibre_suivi"]> + +export type $fibre_suiviPayload = { + name: "fibre_suivi" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + customer_id: string | null + first_name: string + last_name: string + address: string + city: string + zip: string + phone: string + email: string | null + longitude: runtime.Decimal + latitude: runtime.Decimal + called: number + create_by: number + note: string + }, ExtArgs["result"]["fibre_suivi"]> + composites: {} +} + +export type fibre_suiviGetPayload = runtime.Types.Result.GetResult + +export type fibre_suiviCountArgs = + Omit & { + select?: Fibre_suiviCountAggregateInputType | true + } + +export interface fibre_suiviDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['fibre_suivi'], meta: { name: 'fibre_suivi' } } + /** + * Find zero or one Fibre_suivi that matches the filter. + * @param {fibre_suiviFindUniqueArgs} args - Arguments to find a Fibre_suivi + * @example + * // Get one Fibre_suivi + * const fibre_suivi = await prisma.fibre_suivi.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_suiviClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Fibre_suivi that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {fibre_suiviFindUniqueOrThrowArgs} args - Arguments to find a Fibre_suivi + * @example + * // Get one Fibre_suivi + * const fibre_suivi = await prisma.fibre_suivi.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_suiviClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Fibre_suivi 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 {fibre_suiviFindFirstArgs} args - Arguments to find a Fibre_suivi + * @example + * // Get one Fibre_suivi + * const fibre_suivi = await prisma.fibre_suivi.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__fibre_suiviClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Fibre_suivi 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 {fibre_suiviFindFirstOrThrowArgs} args - Arguments to find a Fibre_suivi + * @example + * // Get one Fibre_suivi + * const fibre_suivi = await prisma.fibre_suivi.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__fibre_suiviClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Fibre_suivis 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 {fibre_suiviFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Fibre_suivis + * const fibre_suivis = await prisma.fibre_suivi.findMany() + * + * // Get first 10 Fibre_suivis + * const fibre_suivis = await prisma.fibre_suivi.findMany({ take: 10 }) + * + * // Only select the `id` + * const fibre_suiviWithIdOnly = await prisma.fibre_suivi.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Fibre_suivi. + * @param {fibre_suiviCreateArgs} args - Arguments to create a Fibre_suivi. + * @example + * // Create one Fibre_suivi + * const Fibre_suivi = await prisma.fibre_suivi.create({ + * data: { + * // ... data to create a Fibre_suivi + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_suiviClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Fibre_suivis. + * @param {fibre_suiviCreateManyArgs} args - Arguments to create many Fibre_suivis. + * @example + * // Create many Fibre_suivis + * const fibre_suivi = await prisma.fibre_suivi.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Fibre_suivi. + * @param {fibre_suiviDeleteArgs} args - Arguments to delete one Fibre_suivi. + * @example + * // Delete one Fibre_suivi + * const Fibre_suivi = await prisma.fibre_suivi.delete({ + * where: { + * // ... filter to delete one Fibre_suivi + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_suiviClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Fibre_suivi. + * @param {fibre_suiviUpdateArgs} args - Arguments to update one Fibre_suivi. + * @example + * // Update one Fibre_suivi + * const fibre_suivi = await prisma.fibre_suivi.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_suiviClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Fibre_suivis. + * @param {fibre_suiviDeleteManyArgs} args - Arguments to filter Fibre_suivis to delete. + * @example + * // Delete a few Fibre_suivis + * const { count } = await prisma.fibre_suivi.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Fibre_suivis. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibre_suiviUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Fibre_suivis + * const fibre_suivi = await prisma.fibre_suivi.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Fibre_suivi. + * @param {fibre_suiviUpsertArgs} args - Arguments to update or create a Fibre_suivi. + * @example + * // Update or create a Fibre_suivi + * const fibre_suivi = await prisma.fibre_suivi.upsert({ + * create: { + * // ... data to create a Fibre_suivi + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Fibre_suivi we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_suiviClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Fibre_suivis. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibre_suiviCountArgs} args - Arguments to filter Fibre_suivis to count. + * @example + * // Count the number of Fibre_suivis + * const count = await prisma.fibre_suivi.count({ + * where: { + * // ... the filter for the Fibre_suivis 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 Fibre_suivi. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Fibre_suiviAggregateArgs} 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 Fibre_suivi. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibre_suiviGroupByArgs} 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 fibre_suiviGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: fibre_suiviGroupByArgs['orderBy'] } + : { orderBy?: fibre_suiviGroupByArgs['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 ? GetFibre_suiviGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the fibre_suivi model + */ +readonly fields: fibre_suiviFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for fibre_suivi. + * 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__fibre_suiviClient 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 fibre_suivi model + */ +export interface fibre_suiviFieldRefs { + readonly id: Prisma.FieldRef<"fibre_suivi", 'Int'> + readonly customer_id: Prisma.FieldRef<"fibre_suivi", 'String'> + readonly first_name: Prisma.FieldRef<"fibre_suivi", 'String'> + readonly last_name: Prisma.FieldRef<"fibre_suivi", 'String'> + readonly address: Prisma.FieldRef<"fibre_suivi", 'String'> + readonly city: Prisma.FieldRef<"fibre_suivi", 'String'> + readonly zip: Prisma.FieldRef<"fibre_suivi", 'String'> + readonly phone: Prisma.FieldRef<"fibre_suivi", 'String'> + readonly email: Prisma.FieldRef<"fibre_suivi", 'String'> + readonly longitude: Prisma.FieldRef<"fibre_suivi", 'Decimal'> + readonly latitude: Prisma.FieldRef<"fibre_suivi", 'Decimal'> + readonly called: Prisma.FieldRef<"fibre_suivi", 'Int'> + readonly create_by: Prisma.FieldRef<"fibre_suivi", 'Int'> + readonly note: Prisma.FieldRef<"fibre_suivi", 'String'> +} + + +// Custom InputTypes +/** + * fibre_suivi findUnique + */ +export type fibre_suiviFindUniqueArgs = { + /** + * Select specific fields to fetch from the fibre_suivi + */ + select?: Prisma.fibre_suiviSelect | null + /** + * Omit specific fields from the fibre_suivi + */ + omit?: Prisma.fibre_suiviOmit | null + /** + * Filter, which fibre_suivi to fetch. + */ + where: Prisma.fibre_suiviWhereUniqueInput +} + +/** + * fibre_suivi findUniqueOrThrow + */ +export type fibre_suiviFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the fibre_suivi + */ + select?: Prisma.fibre_suiviSelect | null + /** + * Omit specific fields from the fibre_suivi + */ + omit?: Prisma.fibre_suiviOmit | null + /** + * Filter, which fibre_suivi to fetch. + */ + where: Prisma.fibre_suiviWhereUniqueInput +} + +/** + * fibre_suivi findFirst + */ +export type fibre_suiviFindFirstArgs = { + /** + * Select specific fields to fetch from the fibre_suivi + */ + select?: Prisma.fibre_suiviSelect | null + /** + * Omit specific fields from the fibre_suivi + */ + omit?: Prisma.fibre_suiviOmit | null + /** + * Filter, which fibre_suivi to fetch. + */ + where?: Prisma.fibre_suiviWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_suivis to fetch. + */ + orderBy?: Prisma.fibre_suiviOrderByWithRelationInput | Prisma.fibre_suiviOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for fibre_suivis. + */ + cursor?: Prisma.fibre_suiviWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_suivis 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` fibre_suivis. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of fibre_suivis. + */ + distinct?: Prisma.Fibre_suiviScalarFieldEnum | Prisma.Fibre_suiviScalarFieldEnum[] +} + +/** + * fibre_suivi findFirstOrThrow + */ +export type fibre_suiviFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the fibre_suivi + */ + select?: Prisma.fibre_suiviSelect | null + /** + * Omit specific fields from the fibre_suivi + */ + omit?: Prisma.fibre_suiviOmit | null + /** + * Filter, which fibre_suivi to fetch. + */ + where?: Prisma.fibre_suiviWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_suivis to fetch. + */ + orderBy?: Prisma.fibre_suiviOrderByWithRelationInput | Prisma.fibre_suiviOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for fibre_suivis. + */ + cursor?: Prisma.fibre_suiviWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_suivis 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` fibre_suivis. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of fibre_suivis. + */ + distinct?: Prisma.Fibre_suiviScalarFieldEnum | Prisma.Fibre_suiviScalarFieldEnum[] +} + +/** + * fibre_suivi findMany + */ +export type fibre_suiviFindManyArgs = { + /** + * Select specific fields to fetch from the fibre_suivi + */ + select?: Prisma.fibre_suiviSelect | null + /** + * Omit specific fields from the fibre_suivi + */ + omit?: Prisma.fibre_suiviOmit | null + /** + * Filter, which fibre_suivis to fetch. + */ + where?: Prisma.fibre_suiviWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_suivis to fetch. + */ + orderBy?: Prisma.fibre_suiviOrderByWithRelationInput | Prisma.fibre_suiviOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing fibre_suivis. + */ + cursor?: Prisma.fibre_suiviWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_suivis 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` fibre_suivis. + */ + skip?: number + distinct?: Prisma.Fibre_suiviScalarFieldEnum | Prisma.Fibre_suiviScalarFieldEnum[] +} + +/** + * fibre_suivi create + */ +export type fibre_suiviCreateArgs = { + /** + * Select specific fields to fetch from the fibre_suivi + */ + select?: Prisma.fibre_suiviSelect | null + /** + * Omit specific fields from the fibre_suivi + */ + omit?: Prisma.fibre_suiviOmit | null + /** + * The data needed to create a fibre_suivi. + */ + data: Prisma.XOR +} + +/** + * fibre_suivi createMany + */ +export type fibre_suiviCreateManyArgs = { + /** + * The data used to create many fibre_suivis. + */ + data: Prisma.fibre_suiviCreateManyInput | Prisma.fibre_suiviCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * fibre_suivi update + */ +export type fibre_suiviUpdateArgs = { + /** + * Select specific fields to fetch from the fibre_suivi + */ + select?: Prisma.fibre_suiviSelect | null + /** + * Omit specific fields from the fibre_suivi + */ + omit?: Prisma.fibre_suiviOmit | null + /** + * The data needed to update a fibre_suivi. + */ + data: Prisma.XOR + /** + * Choose, which fibre_suivi to update. + */ + where: Prisma.fibre_suiviWhereUniqueInput +} + +/** + * fibre_suivi updateMany + */ +export type fibre_suiviUpdateManyArgs = { + /** + * The data used to update fibre_suivis. + */ + data: Prisma.XOR + /** + * Filter which fibre_suivis to update + */ + where?: Prisma.fibre_suiviWhereInput + /** + * Limit how many fibre_suivis to update. + */ + limit?: number +} + +/** + * fibre_suivi upsert + */ +export type fibre_suiviUpsertArgs = { + /** + * Select specific fields to fetch from the fibre_suivi + */ + select?: Prisma.fibre_suiviSelect | null + /** + * Omit specific fields from the fibre_suivi + */ + omit?: Prisma.fibre_suiviOmit | null + /** + * The filter to search for the fibre_suivi to update in case it exists. + */ + where: Prisma.fibre_suiviWhereUniqueInput + /** + * In case the fibre_suivi found by the `where` argument doesn't exist, create a new fibre_suivi with this data. + */ + create: Prisma.XOR + /** + * In case the fibre_suivi was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * fibre_suivi delete + */ +export type fibre_suiviDeleteArgs = { + /** + * Select specific fields to fetch from the fibre_suivi + */ + select?: Prisma.fibre_suiviSelect | null + /** + * Omit specific fields from the fibre_suivi + */ + omit?: Prisma.fibre_suiviOmit | null + /** + * Filter which fibre_suivi to delete. + */ + where: Prisma.fibre_suiviWhereUniqueInput +} + +/** + * fibre_suivi deleteMany + */ +export type fibre_suiviDeleteManyArgs = { + /** + * Filter which fibre_suivis to delete + */ + where?: Prisma.fibre_suiviWhereInput + /** + * Limit how many fibre_suivis to delete. + */ + limit?: number +} + +/** + * fibre_suivi without action + */ +export type fibre_suiviDefaultArgs = { + /** + * Select specific fields to fetch from the fibre_suivi + */ + select?: Prisma.fibre_suiviSelect | null + /** + * Omit specific fields from the fibre_suivi + */ + omit?: Prisma.fibre_suiviOmit | null +} diff --git a/prisma/generated/mariadb/models/fibre_tech.ts b/prisma/generated/mariadb/models/fibre_tech.ts new file mode 100644 index 0000000..f63ea00 --- /dev/null +++ b/prisma/generated/mariadb/models/fibre_tech.ts @@ -0,0 +1,1001 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `fibre_tech` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model fibre_tech + * + */ +export type fibre_techModel = runtime.Types.Result.DefaultSelection + +export type AggregateFibre_tech = { + _count: Fibre_techCountAggregateOutputType | null + _avg: Fibre_techAvgAggregateOutputType | null + _sum: Fibre_techSumAggregateOutputType | null + _min: Fibre_techMinAggregateOutputType | null + _max: Fibre_techMaxAggregateOutputType | null +} + +export type Fibre_techAvgAggregateOutputType = { + id: number | null +} + +export type Fibre_techSumAggregateOutputType = { + id: number | null +} + +export type Fibre_techMinAggregateOutputType = { + id: number | null + description: string | null +} + +export type Fibre_techMaxAggregateOutputType = { + id: number | null + description: string | null +} + +export type Fibre_techCountAggregateOutputType = { + id: number + description: number + _all: number +} + + +export type Fibre_techAvgAggregateInputType = { + id?: true +} + +export type Fibre_techSumAggregateInputType = { + id?: true +} + +export type Fibre_techMinAggregateInputType = { + id?: true + description?: true +} + +export type Fibre_techMaxAggregateInputType = { + id?: true + description?: true +} + +export type Fibre_techCountAggregateInputType = { + id?: true + description?: true + _all?: true +} + +export type Fibre_techAggregateArgs = { + /** + * Filter which fibre_tech to aggregate. + */ + where?: Prisma.fibre_techWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_teches to fetch. + */ + orderBy?: Prisma.fibre_techOrderByWithRelationInput | Prisma.fibre_techOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.fibre_techWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_teches 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` fibre_teches. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned fibre_teches + **/ + _count?: true | Fibre_techCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Fibre_techAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Fibre_techSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Fibre_techMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Fibre_techMaxAggregateInputType +} + +export type GetFibre_techAggregateType = { + [P in keyof T & keyof AggregateFibre_tech]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type fibre_techGroupByArgs = { + where?: Prisma.fibre_techWhereInput + orderBy?: Prisma.fibre_techOrderByWithAggregationInput | Prisma.fibre_techOrderByWithAggregationInput[] + by: Prisma.Fibre_techScalarFieldEnum[] | Prisma.Fibre_techScalarFieldEnum + having?: Prisma.fibre_techScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Fibre_techCountAggregateInputType | true + _avg?: Fibre_techAvgAggregateInputType + _sum?: Fibre_techSumAggregateInputType + _min?: Fibre_techMinAggregateInputType + _max?: Fibre_techMaxAggregateInputType +} + +export type Fibre_techGroupByOutputType = { + id: number + description: string + _count: Fibre_techCountAggregateOutputType | null + _avg: Fibre_techAvgAggregateOutputType | null + _sum: Fibre_techSumAggregateOutputType | null + _min: Fibre_techMinAggregateOutputType | null + _max: Fibre_techMaxAggregateOutputType | null +} + +type GetFibre_techGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Fibre_techGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type fibre_techWhereInput = { + AND?: Prisma.fibre_techWhereInput | Prisma.fibre_techWhereInput[] + OR?: Prisma.fibre_techWhereInput[] + NOT?: Prisma.fibre_techWhereInput | Prisma.fibre_techWhereInput[] + id?: Prisma.IntFilter<"fibre_tech"> | number + description?: Prisma.StringFilter<"fibre_tech"> | string +} + +export type fibre_techOrderByWithRelationInput = { + id?: Prisma.SortOrder + description?: Prisma.SortOrder + _relevance?: Prisma.fibre_techOrderByRelevanceInput +} + +export type fibre_techWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.fibre_techWhereInput | Prisma.fibre_techWhereInput[] + OR?: Prisma.fibre_techWhereInput[] + NOT?: Prisma.fibre_techWhereInput | Prisma.fibre_techWhereInput[] + description?: Prisma.StringFilter<"fibre_tech"> | string +}, "id"> + +export type fibre_techOrderByWithAggregationInput = { + id?: Prisma.SortOrder + description?: Prisma.SortOrder + _count?: Prisma.fibre_techCountOrderByAggregateInput + _avg?: Prisma.fibre_techAvgOrderByAggregateInput + _max?: Prisma.fibre_techMaxOrderByAggregateInput + _min?: Prisma.fibre_techMinOrderByAggregateInput + _sum?: Prisma.fibre_techSumOrderByAggregateInput +} + +export type fibre_techScalarWhereWithAggregatesInput = { + AND?: Prisma.fibre_techScalarWhereWithAggregatesInput | Prisma.fibre_techScalarWhereWithAggregatesInput[] + OR?: Prisma.fibre_techScalarWhereWithAggregatesInput[] + NOT?: Prisma.fibre_techScalarWhereWithAggregatesInput | Prisma.fibre_techScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"fibre_tech"> | number + description?: Prisma.StringWithAggregatesFilter<"fibre_tech"> | string +} + +export type fibre_techCreateInput = { + description: string +} + +export type fibre_techUncheckedCreateInput = { + id?: number + description: string +} + +export type fibre_techUpdateInput = { + description?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_techUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + description?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_techCreateManyInput = { + id?: number + description: string +} + +export type fibre_techUpdateManyMutationInput = { + description?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_techUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + description?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_techOrderByRelevanceInput = { + fields: Prisma.fibre_techOrderByRelevanceFieldEnum | Prisma.fibre_techOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type fibre_techCountOrderByAggregateInput = { + id?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type fibre_techAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type fibre_techMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type fibre_techMinOrderByAggregateInput = { + id?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type fibre_techSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type fibre_techSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + description?: boolean +}, ExtArgs["result"]["fibre_tech"]> + + + +export type fibre_techSelectScalar = { + id?: boolean + description?: boolean +} + +export type fibre_techOmit = runtime.Types.Extensions.GetOmit<"id" | "description", ExtArgs["result"]["fibre_tech"]> + +export type $fibre_techPayload = { + name: "fibre_tech" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + description: string + }, ExtArgs["result"]["fibre_tech"]> + composites: {} +} + +export type fibre_techGetPayload = runtime.Types.Result.GetResult + +export type fibre_techCountArgs = + Omit & { + select?: Fibre_techCountAggregateInputType | true + } + +export interface fibre_techDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['fibre_tech'], meta: { name: 'fibre_tech' } } + /** + * Find zero or one Fibre_tech that matches the filter. + * @param {fibre_techFindUniqueArgs} args - Arguments to find a Fibre_tech + * @example + * // Get one Fibre_tech + * const fibre_tech = await prisma.fibre_tech.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_techClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Fibre_tech that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {fibre_techFindUniqueOrThrowArgs} args - Arguments to find a Fibre_tech + * @example + * // Get one Fibre_tech + * const fibre_tech = await prisma.fibre_tech.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_techClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Fibre_tech 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 {fibre_techFindFirstArgs} args - Arguments to find a Fibre_tech + * @example + * // Get one Fibre_tech + * const fibre_tech = await prisma.fibre_tech.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__fibre_techClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Fibre_tech 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 {fibre_techFindFirstOrThrowArgs} args - Arguments to find a Fibre_tech + * @example + * // Get one Fibre_tech + * const fibre_tech = await prisma.fibre_tech.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__fibre_techClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Fibre_teches 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 {fibre_techFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Fibre_teches + * const fibre_teches = await prisma.fibre_tech.findMany() + * + * // Get first 10 Fibre_teches + * const fibre_teches = await prisma.fibre_tech.findMany({ take: 10 }) + * + * // Only select the `id` + * const fibre_techWithIdOnly = await prisma.fibre_tech.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Fibre_tech. + * @param {fibre_techCreateArgs} args - Arguments to create a Fibre_tech. + * @example + * // Create one Fibre_tech + * const Fibre_tech = await prisma.fibre_tech.create({ + * data: { + * // ... data to create a Fibre_tech + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_techClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Fibre_teches. + * @param {fibre_techCreateManyArgs} args - Arguments to create many Fibre_teches. + * @example + * // Create many Fibre_teches + * const fibre_tech = await prisma.fibre_tech.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Fibre_tech. + * @param {fibre_techDeleteArgs} args - Arguments to delete one Fibre_tech. + * @example + * // Delete one Fibre_tech + * const Fibre_tech = await prisma.fibre_tech.delete({ + * where: { + * // ... filter to delete one Fibre_tech + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_techClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Fibre_tech. + * @param {fibre_techUpdateArgs} args - Arguments to update one Fibre_tech. + * @example + * // Update one Fibre_tech + * const fibre_tech = await prisma.fibre_tech.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_techClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Fibre_teches. + * @param {fibre_techDeleteManyArgs} args - Arguments to filter Fibre_teches to delete. + * @example + * // Delete a few Fibre_teches + * const { count } = await prisma.fibre_tech.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Fibre_teches. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibre_techUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Fibre_teches + * const fibre_tech = await prisma.fibre_tech.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Fibre_tech. + * @param {fibre_techUpsertArgs} args - Arguments to update or create a Fibre_tech. + * @example + * // Update or create a Fibre_tech + * const fibre_tech = await prisma.fibre_tech.upsert({ + * create: { + * // ... data to create a Fibre_tech + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Fibre_tech we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_techClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Fibre_teches. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibre_techCountArgs} args - Arguments to filter Fibre_teches to count. + * @example + * // Count the number of Fibre_teches + * const count = await prisma.fibre_tech.count({ + * where: { + * // ... the filter for the Fibre_teches 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 Fibre_tech. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Fibre_techAggregateArgs} 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 Fibre_tech. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibre_techGroupByArgs} 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 fibre_techGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: fibre_techGroupByArgs['orderBy'] } + : { orderBy?: fibre_techGroupByArgs['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 ? GetFibre_techGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the fibre_tech model + */ +readonly fields: fibre_techFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for fibre_tech. + * 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__fibre_techClient 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 fibre_tech model + */ +export interface fibre_techFieldRefs { + readonly id: Prisma.FieldRef<"fibre_tech", 'Int'> + readonly description: Prisma.FieldRef<"fibre_tech", 'String'> +} + + +// Custom InputTypes +/** + * fibre_tech findUnique + */ +export type fibre_techFindUniqueArgs = { + /** + * Select specific fields to fetch from the fibre_tech + */ + select?: Prisma.fibre_techSelect | null + /** + * Omit specific fields from the fibre_tech + */ + omit?: Prisma.fibre_techOmit | null + /** + * Filter, which fibre_tech to fetch. + */ + where: Prisma.fibre_techWhereUniqueInput +} + +/** + * fibre_tech findUniqueOrThrow + */ +export type fibre_techFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the fibre_tech + */ + select?: Prisma.fibre_techSelect | null + /** + * Omit specific fields from the fibre_tech + */ + omit?: Prisma.fibre_techOmit | null + /** + * Filter, which fibre_tech to fetch. + */ + where: Prisma.fibre_techWhereUniqueInput +} + +/** + * fibre_tech findFirst + */ +export type fibre_techFindFirstArgs = { + /** + * Select specific fields to fetch from the fibre_tech + */ + select?: Prisma.fibre_techSelect | null + /** + * Omit specific fields from the fibre_tech + */ + omit?: Prisma.fibre_techOmit | null + /** + * Filter, which fibre_tech to fetch. + */ + where?: Prisma.fibre_techWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_teches to fetch. + */ + orderBy?: Prisma.fibre_techOrderByWithRelationInput | Prisma.fibre_techOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for fibre_teches. + */ + cursor?: Prisma.fibre_techWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_teches 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` fibre_teches. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of fibre_teches. + */ + distinct?: Prisma.Fibre_techScalarFieldEnum | Prisma.Fibre_techScalarFieldEnum[] +} + +/** + * fibre_tech findFirstOrThrow + */ +export type fibre_techFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the fibre_tech + */ + select?: Prisma.fibre_techSelect | null + /** + * Omit specific fields from the fibre_tech + */ + omit?: Prisma.fibre_techOmit | null + /** + * Filter, which fibre_tech to fetch. + */ + where?: Prisma.fibre_techWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_teches to fetch. + */ + orderBy?: Prisma.fibre_techOrderByWithRelationInput | Prisma.fibre_techOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for fibre_teches. + */ + cursor?: Prisma.fibre_techWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_teches 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` fibre_teches. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of fibre_teches. + */ + distinct?: Prisma.Fibre_techScalarFieldEnum | Prisma.Fibre_techScalarFieldEnum[] +} + +/** + * fibre_tech findMany + */ +export type fibre_techFindManyArgs = { + /** + * Select specific fields to fetch from the fibre_tech + */ + select?: Prisma.fibre_techSelect | null + /** + * Omit specific fields from the fibre_tech + */ + omit?: Prisma.fibre_techOmit | null + /** + * Filter, which fibre_teches to fetch. + */ + where?: Prisma.fibre_techWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_teches to fetch. + */ + orderBy?: Prisma.fibre_techOrderByWithRelationInput | Prisma.fibre_techOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing fibre_teches. + */ + cursor?: Prisma.fibre_techWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_teches 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` fibre_teches. + */ + skip?: number + distinct?: Prisma.Fibre_techScalarFieldEnum | Prisma.Fibre_techScalarFieldEnum[] +} + +/** + * fibre_tech create + */ +export type fibre_techCreateArgs = { + /** + * Select specific fields to fetch from the fibre_tech + */ + select?: Prisma.fibre_techSelect | null + /** + * Omit specific fields from the fibre_tech + */ + omit?: Prisma.fibre_techOmit | null + /** + * The data needed to create a fibre_tech. + */ + data: Prisma.XOR +} + +/** + * fibre_tech createMany + */ +export type fibre_techCreateManyArgs = { + /** + * The data used to create many fibre_teches. + */ + data: Prisma.fibre_techCreateManyInput | Prisma.fibre_techCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * fibre_tech update + */ +export type fibre_techUpdateArgs = { + /** + * Select specific fields to fetch from the fibre_tech + */ + select?: Prisma.fibre_techSelect | null + /** + * Omit specific fields from the fibre_tech + */ + omit?: Prisma.fibre_techOmit | null + /** + * The data needed to update a fibre_tech. + */ + data: Prisma.XOR + /** + * Choose, which fibre_tech to update. + */ + where: Prisma.fibre_techWhereUniqueInput +} + +/** + * fibre_tech updateMany + */ +export type fibre_techUpdateManyArgs = { + /** + * The data used to update fibre_teches. + */ + data: Prisma.XOR + /** + * Filter which fibre_teches to update + */ + where?: Prisma.fibre_techWhereInput + /** + * Limit how many fibre_teches to update. + */ + limit?: number +} + +/** + * fibre_tech upsert + */ +export type fibre_techUpsertArgs = { + /** + * Select specific fields to fetch from the fibre_tech + */ + select?: Prisma.fibre_techSelect | null + /** + * Omit specific fields from the fibre_tech + */ + omit?: Prisma.fibre_techOmit | null + /** + * The filter to search for the fibre_tech to update in case it exists. + */ + where: Prisma.fibre_techWhereUniqueInput + /** + * In case the fibre_tech found by the `where` argument doesn't exist, create a new fibre_tech with this data. + */ + create: Prisma.XOR + /** + * In case the fibre_tech was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * fibre_tech delete + */ +export type fibre_techDeleteArgs = { + /** + * Select specific fields to fetch from the fibre_tech + */ + select?: Prisma.fibre_techSelect | null + /** + * Omit specific fields from the fibre_tech + */ + omit?: Prisma.fibre_techOmit | null + /** + * Filter which fibre_tech to delete. + */ + where: Prisma.fibre_techWhereUniqueInput +} + +/** + * fibre_tech deleteMany + */ +export type fibre_techDeleteManyArgs = { + /** + * Filter which fibre_teches to delete + */ + where?: Prisma.fibre_techWhereInput + /** + * Limit how many fibre_teches to delete. + */ + limit?: number +} + +/** + * fibre_tech without action + */ +export type fibre_techDefaultArgs = { + /** + * Select specific fields to fetch from the fibre_tech + */ + select?: Prisma.fibre_techSelect | null + /** + * Omit specific fields from the fibre_tech + */ + omit?: Prisma.fibre_techOmit | null +} diff --git a/prisma/generated/mariadb/models/fibre_videotron.ts b/prisma/generated/mariadb/models/fibre_videotron.ts new file mode 100644 index 0000000..e156878 --- /dev/null +++ b/prisma/generated/mariadb/models/fibre_videotron.ts @@ -0,0 +1,1105 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `fibre_videotron` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model fibre_videotron + * + */ +export type fibre_videotronModel = runtime.Types.Result.DefaultSelection + +export type AggregateFibre_videotron = { + _count: Fibre_videotronCountAggregateOutputType | null + _avg: Fibre_videotronAvgAggregateOutputType | null + _sum: Fibre_videotronSumAggregateOutputType | null + _min: Fibre_videotronMinAggregateOutputType | null + _max: Fibre_videotronMaxAggregateOutputType | null +} + +export type Fibre_videotronAvgAggregateOutputType = { + id: number | null +} + +export type Fibre_videotronSumAggregateOutputType = { + id: number | null +} + +export type Fibre_videotronMinAggregateOutputType = { + id: number | null + date: string | null + download: string | null + upload: string | null + ethernet: string | null + interface: string | null +} + +export type Fibre_videotronMaxAggregateOutputType = { + id: number | null + date: string | null + download: string | null + upload: string | null + ethernet: string | null + interface: string | null +} + +export type Fibre_videotronCountAggregateOutputType = { + id: number + date: number + download: number + upload: number + ethernet: number + interface: number + _all: number +} + + +export type Fibre_videotronAvgAggregateInputType = { + id?: true +} + +export type Fibre_videotronSumAggregateInputType = { + id?: true +} + +export type Fibre_videotronMinAggregateInputType = { + id?: true + date?: true + download?: true + upload?: true + ethernet?: true + interface?: true +} + +export type Fibre_videotronMaxAggregateInputType = { + id?: true + date?: true + download?: true + upload?: true + ethernet?: true + interface?: true +} + +export type Fibre_videotronCountAggregateInputType = { + id?: true + date?: true + download?: true + upload?: true + ethernet?: true + interface?: true + _all?: true +} + +export type Fibre_videotronAggregateArgs = { + /** + * Filter which fibre_videotron to aggregate. + */ + where?: Prisma.fibre_videotronWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_videotrons to fetch. + */ + orderBy?: Prisma.fibre_videotronOrderByWithRelationInput | Prisma.fibre_videotronOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.fibre_videotronWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_videotrons 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` fibre_videotrons. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned fibre_videotrons + **/ + _count?: true | Fibre_videotronCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Fibre_videotronAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Fibre_videotronSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Fibre_videotronMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Fibre_videotronMaxAggregateInputType +} + +export type GetFibre_videotronAggregateType = { + [P in keyof T & keyof AggregateFibre_videotron]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type fibre_videotronGroupByArgs = { + where?: Prisma.fibre_videotronWhereInput + orderBy?: Prisma.fibre_videotronOrderByWithAggregationInput | Prisma.fibre_videotronOrderByWithAggregationInput[] + by: Prisma.Fibre_videotronScalarFieldEnum[] | Prisma.Fibre_videotronScalarFieldEnum + having?: Prisma.fibre_videotronScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Fibre_videotronCountAggregateInputType | true + _avg?: Fibre_videotronAvgAggregateInputType + _sum?: Fibre_videotronSumAggregateInputType + _min?: Fibre_videotronMinAggregateInputType + _max?: Fibre_videotronMaxAggregateInputType +} + +export type Fibre_videotronGroupByOutputType = { + id: number + date: string + download: string + upload: string + ethernet: string + interface: string + _count: Fibre_videotronCountAggregateOutputType | null + _avg: Fibre_videotronAvgAggregateOutputType | null + _sum: Fibre_videotronSumAggregateOutputType | null + _min: Fibre_videotronMinAggregateOutputType | null + _max: Fibre_videotronMaxAggregateOutputType | null +} + +type GetFibre_videotronGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Fibre_videotronGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type fibre_videotronWhereInput = { + AND?: Prisma.fibre_videotronWhereInput | Prisma.fibre_videotronWhereInput[] + OR?: Prisma.fibre_videotronWhereInput[] + NOT?: Prisma.fibre_videotronWhereInput | Prisma.fibre_videotronWhereInput[] + id?: Prisma.IntFilter<"fibre_videotron"> | number + date?: Prisma.StringFilter<"fibre_videotron"> | string + download?: Prisma.StringFilter<"fibre_videotron"> | string + upload?: Prisma.StringFilter<"fibre_videotron"> | string + ethernet?: Prisma.StringFilter<"fibre_videotron"> | string + interface?: Prisma.StringFilter<"fibre_videotron"> | string +} + +export type fibre_videotronOrderByWithRelationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + download?: Prisma.SortOrder + upload?: Prisma.SortOrder + ethernet?: Prisma.SortOrder + interface?: Prisma.SortOrder + _relevance?: Prisma.fibre_videotronOrderByRelevanceInput +} + +export type fibre_videotronWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.fibre_videotronWhereInput | Prisma.fibre_videotronWhereInput[] + OR?: Prisma.fibre_videotronWhereInput[] + NOT?: Prisma.fibre_videotronWhereInput | Prisma.fibre_videotronWhereInput[] + date?: Prisma.StringFilter<"fibre_videotron"> | string + download?: Prisma.StringFilter<"fibre_videotron"> | string + upload?: Prisma.StringFilter<"fibre_videotron"> | string + ethernet?: Prisma.StringFilter<"fibre_videotron"> | string + interface?: Prisma.StringFilter<"fibre_videotron"> | string +}, "id"> + +export type fibre_videotronOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + download?: Prisma.SortOrder + upload?: Prisma.SortOrder + ethernet?: Prisma.SortOrder + interface?: Prisma.SortOrder + _count?: Prisma.fibre_videotronCountOrderByAggregateInput + _avg?: Prisma.fibre_videotronAvgOrderByAggregateInput + _max?: Prisma.fibre_videotronMaxOrderByAggregateInput + _min?: Prisma.fibre_videotronMinOrderByAggregateInput + _sum?: Prisma.fibre_videotronSumOrderByAggregateInput +} + +export type fibre_videotronScalarWhereWithAggregatesInput = { + AND?: Prisma.fibre_videotronScalarWhereWithAggregatesInput | Prisma.fibre_videotronScalarWhereWithAggregatesInput[] + OR?: Prisma.fibre_videotronScalarWhereWithAggregatesInput[] + NOT?: Prisma.fibre_videotronScalarWhereWithAggregatesInput | Prisma.fibre_videotronScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"fibre_videotron"> | number + date?: Prisma.StringWithAggregatesFilter<"fibre_videotron"> | string + download?: Prisma.StringWithAggregatesFilter<"fibre_videotron"> | string + upload?: Prisma.StringWithAggregatesFilter<"fibre_videotron"> | string + ethernet?: Prisma.StringWithAggregatesFilter<"fibre_videotron"> | string + interface?: Prisma.StringWithAggregatesFilter<"fibre_videotron"> | string +} + +export type fibre_videotronCreateInput = { + date: string + download?: string + upload?: string + ethernet?: string + interface?: string +} + +export type fibre_videotronUncheckedCreateInput = { + id?: number + date: string + download?: string + upload?: string + ethernet?: string + interface?: string +} + +export type fibre_videotronUpdateInput = { + date?: Prisma.StringFieldUpdateOperationsInput | string + download?: Prisma.StringFieldUpdateOperationsInput | string + upload?: Prisma.StringFieldUpdateOperationsInput | string + ethernet?: Prisma.StringFieldUpdateOperationsInput | string + interface?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_videotronUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.StringFieldUpdateOperationsInput | string + download?: Prisma.StringFieldUpdateOperationsInput | string + upload?: Prisma.StringFieldUpdateOperationsInput | string + ethernet?: Prisma.StringFieldUpdateOperationsInput | string + interface?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_videotronCreateManyInput = { + id?: number + date: string + download?: string + upload?: string + ethernet?: string + interface?: string +} + +export type fibre_videotronUpdateManyMutationInput = { + date?: Prisma.StringFieldUpdateOperationsInput | string + download?: Prisma.StringFieldUpdateOperationsInput | string + upload?: Prisma.StringFieldUpdateOperationsInput | string + ethernet?: Prisma.StringFieldUpdateOperationsInput | string + interface?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_videotronUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.StringFieldUpdateOperationsInput | string + download?: Prisma.StringFieldUpdateOperationsInput | string + upload?: Prisma.StringFieldUpdateOperationsInput | string + ethernet?: Prisma.StringFieldUpdateOperationsInput | string + interface?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type fibre_videotronOrderByRelevanceInput = { + fields: Prisma.fibre_videotronOrderByRelevanceFieldEnum | Prisma.fibre_videotronOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type fibre_videotronCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + download?: Prisma.SortOrder + upload?: Prisma.SortOrder + ethernet?: Prisma.SortOrder + interface?: Prisma.SortOrder +} + +export type fibre_videotronAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type fibre_videotronMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + download?: Prisma.SortOrder + upload?: Prisma.SortOrder + ethernet?: Prisma.SortOrder + interface?: Prisma.SortOrder +} + +export type fibre_videotronMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + download?: Prisma.SortOrder + upload?: Prisma.SortOrder + ethernet?: Prisma.SortOrder + interface?: Prisma.SortOrder +} + +export type fibre_videotronSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type fibre_videotronSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date?: boolean + download?: boolean + upload?: boolean + ethernet?: boolean + interface?: boolean +}, ExtArgs["result"]["fibre_videotron"]> + + + +export type fibre_videotronSelectScalar = { + id?: boolean + date?: boolean + download?: boolean + upload?: boolean + ethernet?: boolean + interface?: boolean +} + +export type fibre_videotronOmit = runtime.Types.Extensions.GetOmit<"id" | "date" | "download" | "upload" | "ethernet" | "interface", ExtArgs["result"]["fibre_videotron"]> + +export type $fibre_videotronPayload = { + name: "fibre_videotron" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + date: string + download: string + upload: string + ethernet: string + interface: string + }, ExtArgs["result"]["fibre_videotron"]> + composites: {} +} + +export type fibre_videotronGetPayload = runtime.Types.Result.GetResult + +export type fibre_videotronCountArgs = + Omit & { + select?: Fibre_videotronCountAggregateInputType | true + } + +export interface fibre_videotronDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['fibre_videotron'], meta: { name: 'fibre_videotron' } } + /** + * Find zero or one Fibre_videotron that matches the filter. + * @param {fibre_videotronFindUniqueArgs} args - Arguments to find a Fibre_videotron + * @example + * // Get one Fibre_videotron + * const fibre_videotron = await prisma.fibre_videotron.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_videotronClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Fibre_videotron that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {fibre_videotronFindUniqueOrThrowArgs} args - Arguments to find a Fibre_videotron + * @example + * // Get one Fibre_videotron + * const fibre_videotron = await prisma.fibre_videotron.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_videotronClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Fibre_videotron 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 {fibre_videotronFindFirstArgs} args - Arguments to find a Fibre_videotron + * @example + * // Get one Fibre_videotron + * const fibre_videotron = await prisma.fibre_videotron.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__fibre_videotronClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Fibre_videotron 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 {fibre_videotronFindFirstOrThrowArgs} args - Arguments to find a Fibre_videotron + * @example + * // Get one Fibre_videotron + * const fibre_videotron = await prisma.fibre_videotron.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__fibre_videotronClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Fibre_videotrons 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 {fibre_videotronFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Fibre_videotrons + * const fibre_videotrons = await prisma.fibre_videotron.findMany() + * + * // Get first 10 Fibre_videotrons + * const fibre_videotrons = await prisma.fibre_videotron.findMany({ take: 10 }) + * + * // Only select the `id` + * const fibre_videotronWithIdOnly = await prisma.fibre_videotron.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Fibre_videotron. + * @param {fibre_videotronCreateArgs} args - Arguments to create a Fibre_videotron. + * @example + * // Create one Fibre_videotron + * const Fibre_videotron = await prisma.fibre_videotron.create({ + * data: { + * // ... data to create a Fibre_videotron + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_videotronClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Fibre_videotrons. + * @param {fibre_videotronCreateManyArgs} args - Arguments to create many Fibre_videotrons. + * @example + * // Create many Fibre_videotrons + * const fibre_videotron = await prisma.fibre_videotron.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Fibre_videotron. + * @param {fibre_videotronDeleteArgs} args - Arguments to delete one Fibre_videotron. + * @example + * // Delete one Fibre_videotron + * const Fibre_videotron = await prisma.fibre_videotron.delete({ + * where: { + * // ... filter to delete one Fibre_videotron + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_videotronClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Fibre_videotron. + * @param {fibre_videotronUpdateArgs} args - Arguments to update one Fibre_videotron. + * @example + * // Update one Fibre_videotron + * const fibre_videotron = await prisma.fibre_videotron.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_videotronClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Fibre_videotrons. + * @param {fibre_videotronDeleteManyArgs} args - Arguments to filter Fibre_videotrons to delete. + * @example + * // Delete a few Fibre_videotrons + * const { count } = await prisma.fibre_videotron.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Fibre_videotrons. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibre_videotronUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Fibre_videotrons + * const fibre_videotron = await prisma.fibre_videotron.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Fibre_videotron. + * @param {fibre_videotronUpsertArgs} args - Arguments to update or create a Fibre_videotron. + * @example + * // Update or create a Fibre_videotron + * const fibre_videotron = await prisma.fibre_videotron.upsert({ + * create: { + * // ... data to create a Fibre_videotron + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Fibre_videotron we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__fibre_videotronClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Fibre_videotrons. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibre_videotronCountArgs} args - Arguments to filter Fibre_videotrons to count. + * @example + * // Count the number of Fibre_videotrons + * const count = await prisma.fibre_videotron.count({ + * where: { + * // ... the filter for the Fibre_videotrons 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 Fibre_videotron. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Fibre_videotronAggregateArgs} 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 Fibre_videotron. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fibre_videotronGroupByArgs} 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 fibre_videotronGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: fibre_videotronGroupByArgs['orderBy'] } + : { orderBy?: fibre_videotronGroupByArgs['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 ? GetFibre_videotronGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the fibre_videotron model + */ +readonly fields: fibre_videotronFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for fibre_videotron. + * 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__fibre_videotronClient 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 fibre_videotron model + */ +export interface fibre_videotronFieldRefs { + readonly id: Prisma.FieldRef<"fibre_videotron", 'Int'> + readonly date: Prisma.FieldRef<"fibre_videotron", 'String'> + readonly download: Prisma.FieldRef<"fibre_videotron", 'String'> + readonly upload: Prisma.FieldRef<"fibre_videotron", 'String'> + readonly ethernet: Prisma.FieldRef<"fibre_videotron", 'String'> + readonly interface: Prisma.FieldRef<"fibre_videotron", 'String'> +} + + +// Custom InputTypes +/** + * fibre_videotron findUnique + */ +export type fibre_videotronFindUniqueArgs = { + /** + * Select specific fields to fetch from the fibre_videotron + */ + select?: Prisma.fibre_videotronSelect | null + /** + * Omit specific fields from the fibre_videotron + */ + omit?: Prisma.fibre_videotronOmit | null + /** + * Filter, which fibre_videotron to fetch. + */ + where: Prisma.fibre_videotronWhereUniqueInput +} + +/** + * fibre_videotron findUniqueOrThrow + */ +export type fibre_videotronFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the fibre_videotron + */ + select?: Prisma.fibre_videotronSelect | null + /** + * Omit specific fields from the fibre_videotron + */ + omit?: Prisma.fibre_videotronOmit | null + /** + * Filter, which fibre_videotron to fetch. + */ + where: Prisma.fibre_videotronWhereUniqueInput +} + +/** + * fibre_videotron findFirst + */ +export type fibre_videotronFindFirstArgs = { + /** + * Select specific fields to fetch from the fibre_videotron + */ + select?: Prisma.fibre_videotronSelect | null + /** + * Omit specific fields from the fibre_videotron + */ + omit?: Prisma.fibre_videotronOmit | null + /** + * Filter, which fibre_videotron to fetch. + */ + where?: Prisma.fibre_videotronWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_videotrons to fetch. + */ + orderBy?: Prisma.fibre_videotronOrderByWithRelationInput | Prisma.fibre_videotronOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for fibre_videotrons. + */ + cursor?: Prisma.fibre_videotronWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_videotrons 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` fibre_videotrons. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of fibre_videotrons. + */ + distinct?: Prisma.Fibre_videotronScalarFieldEnum | Prisma.Fibre_videotronScalarFieldEnum[] +} + +/** + * fibre_videotron findFirstOrThrow + */ +export type fibre_videotronFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the fibre_videotron + */ + select?: Prisma.fibre_videotronSelect | null + /** + * Omit specific fields from the fibre_videotron + */ + omit?: Prisma.fibre_videotronOmit | null + /** + * Filter, which fibre_videotron to fetch. + */ + where?: Prisma.fibre_videotronWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_videotrons to fetch. + */ + orderBy?: Prisma.fibre_videotronOrderByWithRelationInput | Prisma.fibre_videotronOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for fibre_videotrons. + */ + cursor?: Prisma.fibre_videotronWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_videotrons 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` fibre_videotrons. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of fibre_videotrons. + */ + distinct?: Prisma.Fibre_videotronScalarFieldEnum | Prisma.Fibre_videotronScalarFieldEnum[] +} + +/** + * fibre_videotron findMany + */ +export type fibre_videotronFindManyArgs = { + /** + * Select specific fields to fetch from the fibre_videotron + */ + select?: Prisma.fibre_videotronSelect | null + /** + * Omit specific fields from the fibre_videotron + */ + omit?: Prisma.fibre_videotronOmit | null + /** + * Filter, which fibre_videotrons to fetch. + */ + where?: Prisma.fibre_videotronWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fibre_videotrons to fetch. + */ + orderBy?: Prisma.fibre_videotronOrderByWithRelationInput | Prisma.fibre_videotronOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing fibre_videotrons. + */ + cursor?: Prisma.fibre_videotronWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fibre_videotrons 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` fibre_videotrons. + */ + skip?: number + distinct?: Prisma.Fibre_videotronScalarFieldEnum | Prisma.Fibre_videotronScalarFieldEnum[] +} + +/** + * fibre_videotron create + */ +export type fibre_videotronCreateArgs = { + /** + * Select specific fields to fetch from the fibre_videotron + */ + select?: Prisma.fibre_videotronSelect | null + /** + * Omit specific fields from the fibre_videotron + */ + omit?: Prisma.fibre_videotronOmit | null + /** + * The data needed to create a fibre_videotron. + */ + data: Prisma.XOR +} + +/** + * fibre_videotron createMany + */ +export type fibre_videotronCreateManyArgs = { + /** + * The data used to create many fibre_videotrons. + */ + data: Prisma.fibre_videotronCreateManyInput | Prisma.fibre_videotronCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * fibre_videotron update + */ +export type fibre_videotronUpdateArgs = { + /** + * Select specific fields to fetch from the fibre_videotron + */ + select?: Prisma.fibre_videotronSelect | null + /** + * Omit specific fields from the fibre_videotron + */ + omit?: Prisma.fibre_videotronOmit | null + /** + * The data needed to update a fibre_videotron. + */ + data: Prisma.XOR + /** + * Choose, which fibre_videotron to update. + */ + where: Prisma.fibre_videotronWhereUniqueInput +} + +/** + * fibre_videotron updateMany + */ +export type fibre_videotronUpdateManyArgs = { + /** + * The data used to update fibre_videotrons. + */ + data: Prisma.XOR + /** + * Filter which fibre_videotrons to update + */ + where?: Prisma.fibre_videotronWhereInput + /** + * Limit how many fibre_videotrons to update. + */ + limit?: number +} + +/** + * fibre_videotron upsert + */ +export type fibre_videotronUpsertArgs = { + /** + * Select specific fields to fetch from the fibre_videotron + */ + select?: Prisma.fibre_videotronSelect | null + /** + * Omit specific fields from the fibre_videotron + */ + omit?: Prisma.fibre_videotronOmit | null + /** + * The filter to search for the fibre_videotron to update in case it exists. + */ + where: Prisma.fibre_videotronWhereUniqueInput + /** + * In case the fibre_videotron found by the `where` argument doesn't exist, create a new fibre_videotron with this data. + */ + create: Prisma.XOR + /** + * In case the fibre_videotron was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * fibre_videotron delete + */ +export type fibre_videotronDeleteArgs = { + /** + * Select specific fields to fetch from the fibre_videotron + */ + select?: Prisma.fibre_videotronSelect | null + /** + * Omit specific fields from the fibre_videotron + */ + omit?: Prisma.fibre_videotronOmit | null + /** + * Filter which fibre_videotron to delete. + */ + where: Prisma.fibre_videotronWhereUniqueInput +} + +/** + * fibre_videotron deleteMany + */ +export type fibre_videotronDeleteManyArgs = { + /** + * Filter which fibre_videotrons to delete + */ + where?: Prisma.fibre_videotronWhereInput + /** + * Limit how many fibre_videotrons to delete. + */ + limit?: number +} + +/** + * fibre_videotron without action + */ +export type fibre_videotronDefaultArgs = { + /** + * Select specific fields to fetch from the fibre_videotron + */ + select?: Prisma.fibre_videotronSelect | null + /** + * Omit specific fields from the fibre_videotron + */ + omit?: Prisma.fibre_videotronOmit | null +} diff --git a/prisma/generated/mariadb/models/fournisseur.ts b/prisma/generated/mariadb/models/fournisseur.ts new file mode 100644 index 0000000..fd7c75c --- /dev/null +++ b/prisma/generated/mariadb/models/fournisseur.ts @@ -0,0 +1,1053 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `fournisseur` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model fournisseur + * + */ +export type fournisseurModel = runtime.Types.Result.DefaultSelection + +export type AggregateFournisseur = { + _count: FournisseurCountAggregateOutputType | null + _avg: FournisseurAvgAggregateOutputType | null + _sum: FournisseurSumAggregateOutputType | null + _min: FournisseurMinAggregateOutputType | null + _max: FournisseurMaxAggregateOutputType | null +} + +export type FournisseurAvgAggregateOutputType = { + id: number | null +} + +export type FournisseurSumAggregateOutputType = { + id: number | null +} + +export type FournisseurMinAggregateOutputType = { + id: number | null + nom: string | null + email: string | null + actif: boolean | null +} + +export type FournisseurMaxAggregateOutputType = { + id: number | null + nom: string | null + email: string | null + actif: boolean | null +} + +export type FournisseurCountAggregateOutputType = { + id: number + nom: number + email: number + actif: number + _all: number +} + + +export type FournisseurAvgAggregateInputType = { + id?: true +} + +export type FournisseurSumAggregateInputType = { + id?: true +} + +export type FournisseurMinAggregateInputType = { + id?: true + nom?: true + email?: true + actif?: true +} + +export type FournisseurMaxAggregateInputType = { + id?: true + nom?: true + email?: true + actif?: true +} + +export type FournisseurCountAggregateInputType = { + id?: true + nom?: true + email?: true + actif?: true + _all?: true +} + +export type FournisseurAggregateArgs = { + /** + * Filter which fournisseur to aggregate. + */ + where?: Prisma.fournisseurWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fournisseurs to fetch. + */ + orderBy?: Prisma.fournisseurOrderByWithRelationInput | Prisma.fournisseurOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.fournisseurWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fournisseurs 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` fournisseurs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned fournisseurs + **/ + _count?: true | FournisseurCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: FournisseurAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: FournisseurSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: FournisseurMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: FournisseurMaxAggregateInputType +} + +export type GetFournisseurAggregateType = { + [P in keyof T & keyof AggregateFournisseur]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type fournisseurGroupByArgs = { + where?: Prisma.fournisseurWhereInput + orderBy?: Prisma.fournisseurOrderByWithAggregationInput | Prisma.fournisseurOrderByWithAggregationInput[] + by: Prisma.FournisseurScalarFieldEnum[] | Prisma.FournisseurScalarFieldEnum + having?: Prisma.fournisseurScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: FournisseurCountAggregateInputType | true + _avg?: FournisseurAvgAggregateInputType + _sum?: FournisseurSumAggregateInputType + _min?: FournisseurMinAggregateInputType + _max?: FournisseurMaxAggregateInputType +} + +export type FournisseurGroupByOutputType = { + id: number + nom: string + email: string + actif: boolean + _count: FournisseurCountAggregateOutputType | null + _avg: FournisseurAvgAggregateOutputType | null + _sum: FournisseurSumAggregateOutputType | null + _min: FournisseurMinAggregateOutputType | null + _max: FournisseurMaxAggregateOutputType | null +} + +type GetFournisseurGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof FournisseurGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type fournisseurWhereInput = { + AND?: Prisma.fournisseurWhereInput | Prisma.fournisseurWhereInput[] + OR?: Prisma.fournisseurWhereInput[] + NOT?: Prisma.fournisseurWhereInput | Prisma.fournisseurWhereInput[] + id?: Prisma.IntFilter<"fournisseur"> | number + nom?: Prisma.StringFilter<"fournisseur"> | string + email?: Prisma.StringFilter<"fournisseur"> | string + actif?: Prisma.BoolFilter<"fournisseur"> | boolean +} + +export type fournisseurOrderByWithRelationInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + email?: Prisma.SortOrder + actif?: Prisma.SortOrder + _relevance?: Prisma.fournisseurOrderByRelevanceInput +} + +export type fournisseurWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.fournisseurWhereInput | Prisma.fournisseurWhereInput[] + OR?: Prisma.fournisseurWhereInput[] + NOT?: Prisma.fournisseurWhereInput | Prisma.fournisseurWhereInput[] + nom?: Prisma.StringFilter<"fournisseur"> | string + email?: Prisma.StringFilter<"fournisseur"> | string + actif?: Prisma.BoolFilter<"fournisseur"> | boolean +}, "id"> + +export type fournisseurOrderByWithAggregationInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + email?: Prisma.SortOrder + actif?: Prisma.SortOrder + _count?: Prisma.fournisseurCountOrderByAggregateInput + _avg?: Prisma.fournisseurAvgOrderByAggregateInput + _max?: Prisma.fournisseurMaxOrderByAggregateInput + _min?: Prisma.fournisseurMinOrderByAggregateInput + _sum?: Prisma.fournisseurSumOrderByAggregateInput +} + +export type fournisseurScalarWhereWithAggregatesInput = { + AND?: Prisma.fournisseurScalarWhereWithAggregatesInput | Prisma.fournisseurScalarWhereWithAggregatesInput[] + OR?: Prisma.fournisseurScalarWhereWithAggregatesInput[] + NOT?: Prisma.fournisseurScalarWhereWithAggregatesInput | Prisma.fournisseurScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"fournisseur"> | number + nom?: Prisma.StringWithAggregatesFilter<"fournisseur"> | string + email?: Prisma.StringWithAggregatesFilter<"fournisseur"> | string + actif?: Prisma.BoolWithAggregatesFilter<"fournisseur"> | boolean +} + +export type fournisseurCreateInput = { + nom: string + email: string + actif?: boolean +} + +export type fournisseurUncheckedCreateInput = { + id?: number + nom: string + email: string + actif?: boolean +} + +export type fournisseurUpdateInput = { + nom?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + actif?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type fournisseurUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + nom?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + actif?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type fournisseurCreateManyInput = { + id?: number + nom: string + email: string + actif?: boolean +} + +export type fournisseurUpdateManyMutationInput = { + nom?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + actif?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type fournisseurUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + nom?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + actif?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type fournisseurOrderByRelevanceInput = { + fields: Prisma.fournisseurOrderByRelevanceFieldEnum | Prisma.fournisseurOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type fournisseurCountOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + email?: Prisma.SortOrder + actif?: Prisma.SortOrder +} + +export type fournisseurAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type fournisseurMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + email?: Prisma.SortOrder + actif?: Prisma.SortOrder +} + +export type fournisseurMinOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + email?: Prisma.SortOrder + actif?: Prisma.SortOrder +} + +export type fournisseurSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type fournisseurSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + nom?: boolean + email?: boolean + actif?: boolean +}, ExtArgs["result"]["fournisseur"]> + + + +export type fournisseurSelectScalar = { + id?: boolean + nom?: boolean + email?: boolean + actif?: boolean +} + +export type fournisseurOmit = runtime.Types.Extensions.GetOmit<"id" | "nom" | "email" | "actif", ExtArgs["result"]["fournisseur"]> + +export type $fournisseurPayload = { + name: "fournisseur" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + nom: string + email: string + actif: boolean + }, ExtArgs["result"]["fournisseur"]> + composites: {} +} + +export type fournisseurGetPayload = runtime.Types.Result.GetResult + +export type fournisseurCountArgs = + Omit & { + select?: FournisseurCountAggregateInputType | true + } + +export interface fournisseurDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['fournisseur'], meta: { name: 'fournisseur' } } + /** + * Find zero or one Fournisseur that matches the filter. + * @param {fournisseurFindUniqueArgs} args - Arguments to find a Fournisseur + * @example + * // Get one Fournisseur + * const fournisseur = await prisma.fournisseur.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__fournisseurClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Fournisseur that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {fournisseurFindUniqueOrThrowArgs} args - Arguments to find a Fournisseur + * @example + * // Get one Fournisseur + * const fournisseur = await prisma.fournisseur.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__fournisseurClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Fournisseur 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 {fournisseurFindFirstArgs} args - Arguments to find a Fournisseur + * @example + * // Get one Fournisseur + * const fournisseur = await prisma.fournisseur.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__fournisseurClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Fournisseur 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 {fournisseurFindFirstOrThrowArgs} args - Arguments to find a Fournisseur + * @example + * // Get one Fournisseur + * const fournisseur = await prisma.fournisseur.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__fournisseurClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Fournisseurs 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 {fournisseurFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Fournisseurs + * const fournisseurs = await prisma.fournisseur.findMany() + * + * // Get first 10 Fournisseurs + * const fournisseurs = await prisma.fournisseur.findMany({ take: 10 }) + * + * // Only select the `id` + * const fournisseurWithIdOnly = await prisma.fournisseur.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Fournisseur. + * @param {fournisseurCreateArgs} args - Arguments to create a Fournisseur. + * @example + * // Create one Fournisseur + * const Fournisseur = await prisma.fournisseur.create({ + * data: { + * // ... data to create a Fournisseur + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__fournisseurClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Fournisseurs. + * @param {fournisseurCreateManyArgs} args - Arguments to create many Fournisseurs. + * @example + * // Create many Fournisseurs + * const fournisseur = await prisma.fournisseur.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Fournisseur. + * @param {fournisseurDeleteArgs} args - Arguments to delete one Fournisseur. + * @example + * // Delete one Fournisseur + * const Fournisseur = await prisma.fournisseur.delete({ + * where: { + * // ... filter to delete one Fournisseur + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__fournisseurClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Fournisseur. + * @param {fournisseurUpdateArgs} args - Arguments to update one Fournisseur. + * @example + * // Update one Fournisseur + * const fournisseur = await prisma.fournisseur.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__fournisseurClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Fournisseurs. + * @param {fournisseurDeleteManyArgs} args - Arguments to filter Fournisseurs to delete. + * @example + * // Delete a few Fournisseurs + * const { count } = await prisma.fournisseur.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Fournisseurs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fournisseurUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Fournisseurs + * const fournisseur = await prisma.fournisseur.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Fournisseur. + * @param {fournisseurUpsertArgs} args - Arguments to update or create a Fournisseur. + * @example + * // Update or create a Fournisseur + * const fournisseur = await prisma.fournisseur.upsert({ + * create: { + * // ... data to create a Fournisseur + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Fournisseur we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__fournisseurClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Fournisseurs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fournisseurCountArgs} args - Arguments to filter Fournisseurs to count. + * @example + * // Count the number of Fournisseurs + * const count = await prisma.fournisseur.count({ + * where: { + * // ... the filter for the Fournisseurs 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 Fournisseur. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {FournisseurAggregateArgs} 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 Fournisseur. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {fournisseurGroupByArgs} 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 fournisseurGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: fournisseurGroupByArgs['orderBy'] } + : { orderBy?: fournisseurGroupByArgs['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 ? GetFournisseurGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the fournisseur model + */ +readonly fields: fournisseurFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for fournisseur. + * 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__fournisseurClient 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 fournisseur model + */ +export interface fournisseurFieldRefs { + readonly id: Prisma.FieldRef<"fournisseur", 'Int'> + readonly nom: Prisma.FieldRef<"fournisseur", 'String'> + readonly email: Prisma.FieldRef<"fournisseur", 'String'> + readonly actif: Prisma.FieldRef<"fournisseur", 'Boolean'> +} + + +// Custom InputTypes +/** + * fournisseur findUnique + */ +export type fournisseurFindUniqueArgs = { + /** + * Select specific fields to fetch from the fournisseur + */ + select?: Prisma.fournisseurSelect | null + /** + * Omit specific fields from the fournisseur + */ + omit?: Prisma.fournisseurOmit | null + /** + * Filter, which fournisseur to fetch. + */ + where: Prisma.fournisseurWhereUniqueInput +} + +/** + * fournisseur findUniqueOrThrow + */ +export type fournisseurFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the fournisseur + */ + select?: Prisma.fournisseurSelect | null + /** + * Omit specific fields from the fournisseur + */ + omit?: Prisma.fournisseurOmit | null + /** + * Filter, which fournisseur to fetch. + */ + where: Prisma.fournisseurWhereUniqueInput +} + +/** + * fournisseur findFirst + */ +export type fournisseurFindFirstArgs = { + /** + * Select specific fields to fetch from the fournisseur + */ + select?: Prisma.fournisseurSelect | null + /** + * Omit specific fields from the fournisseur + */ + omit?: Prisma.fournisseurOmit | null + /** + * Filter, which fournisseur to fetch. + */ + where?: Prisma.fournisseurWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fournisseurs to fetch. + */ + orderBy?: Prisma.fournisseurOrderByWithRelationInput | Prisma.fournisseurOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for fournisseurs. + */ + cursor?: Prisma.fournisseurWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fournisseurs 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` fournisseurs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of fournisseurs. + */ + distinct?: Prisma.FournisseurScalarFieldEnum | Prisma.FournisseurScalarFieldEnum[] +} + +/** + * fournisseur findFirstOrThrow + */ +export type fournisseurFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the fournisseur + */ + select?: Prisma.fournisseurSelect | null + /** + * Omit specific fields from the fournisseur + */ + omit?: Prisma.fournisseurOmit | null + /** + * Filter, which fournisseur to fetch. + */ + where?: Prisma.fournisseurWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fournisseurs to fetch. + */ + orderBy?: Prisma.fournisseurOrderByWithRelationInput | Prisma.fournisseurOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for fournisseurs. + */ + cursor?: Prisma.fournisseurWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fournisseurs 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` fournisseurs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of fournisseurs. + */ + distinct?: Prisma.FournisseurScalarFieldEnum | Prisma.FournisseurScalarFieldEnum[] +} + +/** + * fournisseur findMany + */ +export type fournisseurFindManyArgs = { + /** + * Select specific fields to fetch from the fournisseur + */ + select?: Prisma.fournisseurSelect | null + /** + * Omit specific fields from the fournisseur + */ + omit?: Prisma.fournisseurOmit | null + /** + * Filter, which fournisseurs to fetch. + */ + where?: Prisma.fournisseurWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of fournisseurs to fetch. + */ + orderBy?: Prisma.fournisseurOrderByWithRelationInput | Prisma.fournisseurOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing fournisseurs. + */ + cursor?: Prisma.fournisseurWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` fournisseurs 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` fournisseurs. + */ + skip?: number + distinct?: Prisma.FournisseurScalarFieldEnum | Prisma.FournisseurScalarFieldEnum[] +} + +/** + * fournisseur create + */ +export type fournisseurCreateArgs = { + /** + * Select specific fields to fetch from the fournisseur + */ + select?: Prisma.fournisseurSelect | null + /** + * Omit specific fields from the fournisseur + */ + omit?: Prisma.fournisseurOmit | null + /** + * The data needed to create a fournisseur. + */ + data: Prisma.XOR +} + +/** + * fournisseur createMany + */ +export type fournisseurCreateManyArgs = { + /** + * The data used to create many fournisseurs. + */ + data: Prisma.fournisseurCreateManyInput | Prisma.fournisseurCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * fournisseur update + */ +export type fournisseurUpdateArgs = { + /** + * Select specific fields to fetch from the fournisseur + */ + select?: Prisma.fournisseurSelect | null + /** + * Omit specific fields from the fournisseur + */ + omit?: Prisma.fournisseurOmit | null + /** + * The data needed to update a fournisseur. + */ + data: Prisma.XOR + /** + * Choose, which fournisseur to update. + */ + where: Prisma.fournisseurWhereUniqueInput +} + +/** + * fournisseur updateMany + */ +export type fournisseurUpdateManyArgs = { + /** + * The data used to update fournisseurs. + */ + data: Prisma.XOR + /** + * Filter which fournisseurs to update + */ + where?: Prisma.fournisseurWhereInput + /** + * Limit how many fournisseurs to update. + */ + limit?: number +} + +/** + * fournisseur upsert + */ +export type fournisseurUpsertArgs = { + /** + * Select specific fields to fetch from the fournisseur + */ + select?: Prisma.fournisseurSelect | null + /** + * Omit specific fields from the fournisseur + */ + omit?: Prisma.fournisseurOmit | null + /** + * The filter to search for the fournisseur to update in case it exists. + */ + where: Prisma.fournisseurWhereUniqueInput + /** + * In case the fournisseur found by the `where` argument doesn't exist, create a new fournisseur with this data. + */ + create: Prisma.XOR + /** + * In case the fournisseur was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * fournisseur delete + */ +export type fournisseurDeleteArgs = { + /** + * Select specific fields to fetch from the fournisseur + */ + select?: Prisma.fournisseurSelect | null + /** + * Omit specific fields from the fournisseur + */ + omit?: Prisma.fournisseurOmit | null + /** + * Filter which fournisseur to delete. + */ + where: Prisma.fournisseurWhereUniqueInput +} + +/** + * fournisseur deleteMany + */ +export type fournisseurDeleteManyArgs = { + /** + * Filter which fournisseurs to delete + */ + where?: Prisma.fournisseurWhereInput + /** + * Limit how many fournisseurs to delete. + */ + limit?: number +} + +/** + * fournisseur without action + */ +export type fournisseurDefaultArgs = { + /** + * Select specific fields to fetch from the fournisseur + */ + select?: Prisma.fournisseurSelect | null + /** + * Omit specific fields from the fournisseur + */ + omit?: Prisma.fournisseurOmit | null +} diff --git a/prisma/generated/mariadb/models/gantt.ts b/prisma/generated/mariadb/models/gantt.ts new file mode 100644 index 0000000..5b51300 --- /dev/null +++ b/prisma/generated/mariadb/models/gantt.ts @@ -0,0 +1,1091 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `gantt` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model gantt + * + */ +export type ganttModel = runtime.Types.Result.DefaultSelection + +export type AggregateGantt = { + _count: GanttCountAggregateOutputType | null + _avg: GanttAvgAggregateOutputType | null + _sum: GanttSumAggregateOutputType | null + _min: GanttMinAggregateOutputType | null + _max: GanttMaxAggregateOutputType | null +} + +export type GanttAvgAggregateOutputType = { + id: number | null + account_id: number | null + closed: number | null +} + +export type GanttSumAggregateOutputType = { + id: number | null + account_id: number | null + closed: number | null +} + +export type GanttMinAggregateOutputType = { + id: number | null + account_id: number | null + name: string | null + gantt: string | null + closed: number | null +} + +export type GanttMaxAggregateOutputType = { + id: number | null + account_id: number | null + name: string | null + gantt: string | null + closed: number | null +} + +export type GanttCountAggregateOutputType = { + id: number + account_id: number + name: number + gantt: number + closed: number + _all: number +} + + +export type GanttAvgAggregateInputType = { + id?: true + account_id?: true + closed?: true +} + +export type GanttSumAggregateInputType = { + id?: true + account_id?: true + closed?: true +} + +export type GanttMinAggregateInputType = { + id?: true + account_id?: true + name?: true + gantt?: true + closed?: true +} + +export type GanttMaxAggregateInputType = { + id?: true + account_id?: true + name?: true + gantt?: true + closed?: true +} + +export type GanttCountAggregateInputType = { + id?: true + account_id?: true + name?: true + gantt?: true + closed?: true + _all?: true +} + +export type GanttAggregateArgs = { + /** + * Filter which gantt to aggregate. + */ + where?: Prisma.ganttWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of gantts to fetch. + */ + orderBy?: Prisma.ganttOrderByWithRelationInput | Prisma.ganttOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ganttWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` gantts 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` gantts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned gantts + **/ + _count?: true | GanttCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: GanttAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: GanttSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: GanttMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: GanttMaxAggregateInputType +} + +export type GetGanttAggregateType = { + [P in keyof T & keyof AggregateGantt]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ganttGroupByArgs = { + where?: Prisma.ganttWhereInput + orderBy?: Prisma.ganttOrderByWithAggregationInput | Prisma.ganttOrderByWithAggregationInput[] + by: Prisma.GanttScalarFieldEnum[] | Prisma.GanttScalarFieldEnum + having?: Prisma.ganttScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: GanttCountAggregateInputType | true + _avg?: GanttAvgAggregateInputType + _sum?: GanttSumAggregateInputType + _min?: GanttMinAggregateInputType + _max?: GanttMaxAggregateInputType +} + +export type GanttGroupByOutputType = { + id: number + account_id: number + name: string | null + gantt: string + closed: number + _count: GanttCountAggregateOutputType | null + _avg: GanttAvgAggregateOutputType | null + _sum: GanttSumAggregateOutputType | null + _min: GanttMinAggregateOutputType | null + _max: GanttMaxAggregateOutputType | null +} + +type GetGanttGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof GanttGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ganttWhereInput = { + AND?: Prisma.ganttWhereInput | Prisma.ganttWhereInput[] + OR?: Prisma.ganttWhereInput[] + NOT?: Prisma.ganttWhereInput | Prisma.ganttWhereInput[] + id?: Prisma.IntFilter<"gantt"> | number + account_id?: Prisma.IntFilter<"gantt"> | number + name?: Prisma.StringNullableFilter<"gantt"> | string | null + gantt?: Prisma.StringFilter<"gantt"> | string + closed?: Prisma.IntFilter<"gantt"> | number +} + +export type ganttOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + gantt?: Prisma.SortOrder + closed?: Prisma.SortOrder + _relevance?: Prisma.ganttOrderByRelevanceInput +} + +export type ganttWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.ganttWhereInput | Prisma.ganttWhereInput[] + OR?: Prisma.ganttWhereInput[] + NOT?: Prisma.ganttWhereInput | Prisma.ganttWhereInput[] + account_id?: Prisma.IntFilter<"gantt"> | number + name?: Prisma.StringNullableFilter<"gantt"> | string | null + gantt?: Prisma.StringFilter<"gantt"> | string + closed?: Prisma.IntFilter<"gantt"> | number +}, "id"> + +export type ganttOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + gantt?: Prisma.SortOrder + closed?: Prisma.SortOrder + _count?: Prisma.ganttCountOrderByAggregateInput + _avg?: Prisma.ganttAvgOrderByAggregateInput + _max?: Prisma.ganttMaxOrderByAggregateInput + _min?: Prisma.ganttMinOrderByAggregateInput + _sum?: Prisma.ganttSumOrderByAggregateInput +} + +export type ganttScalarWhereWithAggregatesInput = { + AND?: Prisma.ganttScalarWhereWithAggregatesInput | Prisma.ganttScalarWhereWithAggregatesInput[] + OR?: Prisma.ganttScalarWhereWithAggregatesInput[] + NOT?: Prisma.ganttScalarWhereWithAggregatesInput | Prisma.ganttScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"gantt"> | number + account_id?: Prisma.IntWithAggregatesFilter<"gantt"> | number + name?: Prisma.StringNullableWithAggregatesFilter<"gantt"> | string | null + gantt?: Prisma.StringWithAggregatesFilter<"gantt"> | string + closed?: Prisma.IntWithAggregatesFilter<"gantt"> | number +} + +export type ganttCreateInput = { + account_id?: number + name?: string | null + gantt: string + closed?: number +} + +export type ganttUncheckedCreateInput = { + id?: number + account_id?: number + name?: string | null + gantt: string + closed?: number +} + +export type ganttUpdateInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + gantt?: Prisma.StringFieldUpdateOperationsInput | string + closed?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type ganttUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + gantt?: Prisma.StringFieldUpdateOperationsInput | string + closed?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type ganttCreateManyInput = { + id?: number + account_id?: number + name?: string | null + gantt: string + closed?: number +} + +export type ganttUpdateManyMutationInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + gantt?: Prisma.StringFieldUpdateOperationsInput | string + closed?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type ganttUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + gantt?: Prisma.StringFieldUpdateOperationsInput | string + closed?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type ganttOrderByRelevanceInput = { + fields: Prisma.ganttOrderByRelevanceFieldEnum | Prisma.ganttOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type ganttCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + gantt?: Prisma.SortOrder + closed?: Prisma.SortOrder +} + +export type ganttAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + closed?: Prisma.SortOrder +} + +export type ganttMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + gantt?: Prisma.SortOrder + closed?: Prisma.SortOrder +} + +export type ganttMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + gantt?: Prisma.SortOrder + closed?: Prisma.SortOrder +} + +export type ganttSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + closed?: Prisma.SortOrder +} + + + +export type ganttSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + name?: boolean + gantt?: boolean + closed?: boolean +}, ExtArgs["result"]["gantt"]> + + + +export type ganttSelectScalar = { + id?: boolean + account_id?: boolean + name?: boolean + gantt?: boolean + closed?: boolean +} + +export type ganttOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "name" | "gantt" | "closed", ExtArgs["result"]["gantt"]> + +export type $ganttPayload = { + name: "gantt" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: number + name: string | null + gantt: string + closed: number + }, ExtArgs["result"]["gantt"]> + composites: {} +} + +export type ganttGetPayload = runtime.Types.Result.GetResult + +export type ganttCountArgs = + Omit & { + select?: GanttCountAggregateInputType | true + } + +export interface ganttDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['gantt'], meta: { name: 'gantt' } } + /** + * Find zero or one Gantt that matches the filter. + * @param {ganttFindUniqueArgs} args - Arguments to find a Gantt + * @example + * // Get one Gantt + * const gantt = await prisma.gantt.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ganttClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Gantt that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ganttFindUniqueOrThrowArgs} args - Arguments to find a Gantt + * @example + * // Get one Gantt + * const gantt = await prisma.gantt.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ganttClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Gantt 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 {ganttFindFirstArgs} args - Arguments to find a Gantt + * @example + * // Get one Gantt + * const gantt = await prisma.gantt.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ganttClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Gantt 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 {ganttFindFirstOrThrowArgs} args - Arguments to find a Gantt + * @example + * // Get one Gantt + * const gantt = await prisma.gantt.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ganttClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Gantts 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 {ganttFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Gantts + * const gantts = await prisma.gantt.findMany() + * + * // Get first 10 Gantts + * const gantts = await prisma.gantt.findMany({ take: 10 }) + * + * // Only select the `id` + * const ganttWithIdOnly = await prisma.gantt.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Gantt. + * @param {ganttCreateArgs} args - Arguments to create a Gantt. + * @example + * // Create one Gantt + * const Gantt = await prisma.gantt.create({ + * data: { + * // ... data to create a Gantt + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ganttClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Gantts. + * @param {ganttCreateManyArgs} args - Arguments to create many Gantts. + * @example + * // Create many Gantts + * const gantt = await prisma.gantt.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Gantt. + * @param {ganttDeleteArgs} args - Arguments to delete one Gantt. + * @example + * // Delete one Gantt + * const Gantt = await prisma.gantt.delete({ + * where: { + * // ... filter to delete one Gantt + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ganttClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Gantt. + * @param {ganttUpdateArgs} args - Arguments to update one Gantt. + * @example + * // Update one Gantt + * const gantt = await prisma.gantt.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ganttClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Gantts. + * @param {ganttDeleteManyArgs} args - Arguments to filter Gantts to delete. + * @example + * // Delete a few Gantts + * const { count } = await prisma.gantt.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Gantts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ganttUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Gantts + * const gantt = await prisma.gantt.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Gantt. + * @param {ganttUpsertArgs} args - Arguments to update or create a Gantt. + * @example + * // Update or create a Gantt + * const gantt = await prisma.gantt.upsert({ + * create: { + * // ... data to create a Gantt + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Gantt we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ganttClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Gantts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ganttCountArgs} args - Arguments to filter Gantts to count. + * @example + * // Count the number of Gantts + * const count = await prisma.gantt.count({ + * where: { + * // ... the filter for the Gantts 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 Gantt. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {GanttAggregateArgs} 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 Gantt. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ganttGroupByArgs} 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 ganttGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ganttGroupByArgs['orderBy'] } + : { orderBy?: ganttGroupByArgs['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 ? GetGanttGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the gantt model + */ +readonly fields: ganttFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for gantt. + * 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__ganttClient 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 gantt model + */ +export interface ganttFieldRefs { + readonly id: Prisma.FieldRef<"gantt", 'Int'> + readonly account_id: Prisma.FieldRef<"gantt", 'Int'> + readonly name: Prisma.FieldRef<"gantt", 'String'> + readonly gantt: Prisma.FieldRef<"gantt", 'String'> + readonly closed: Prisma.FieldRef<"gantt", 'Int'> +} + + +// Custom InputTypes +/** + * gantt findUnique + */ +export type ganttFindUniqueArgs = { + /** + * Select specific fields to fetch from the gantt + */ + select?: Prisma.ganttSelect | null + /** + * Omit specific fields from the gantt + */ + omit?: Prisma.ganttOmit | null + /** + * Filter, which gantt to fetch. + */ + where: Prisma.ganttWhereUniqueInput +} + +/** + * gantt findUniqueOrThrow + */ +export type ganttFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the gantt + */ + select?: Prisma.ganttSelect | null + /** + * Omit specific fields from the gantt + */ + omit?: Prisma.ganttOmit | null + /** + * Filter, which gantt to fetch. + */ + where: Prisma.ganttWhereUniqueInput +} + +/** + * gantt findFirst + */ +export type ganttFindFirstArgs = { + /** + * Select specific fields to fetch from the gantt + */ + select?: Prisma.ganttSelect | null + /** + * Omit specific fields from the gantt + */ + omit?: Prisma.ganttOmit | null + /** + * Filter, which gantt to fetch. + */ + where?: Prisma.ganttWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of gantts to fetch. + */ + orderBy?: Prisma.ganttOrderByWithRelationInput | Prisma.ganttOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for gantts. + */ + cursor?: Prisma.ganttWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` gantts 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` gantts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of gantts. + */ + distinct?: Prisma.GanttScalarFieldEnum | Prisma.GanttScalarFieldEnum[] +} + +/** + * gantt findFirstOrThrow + */ +export type ganttFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the gantt + */ + select?: Prisma.ganttSelect | null + /** + * Omit specific fields from the gantt + */ + omit?: Prisma.ganttOmit | null + /** + * Filter, which gantt to fetch. + */ + where?: Prisma.ganttWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of gantts to fetch. + */ + orderBy?: Prisma.ganttOrderByWithRelationInput | Prisma.ganttOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for gantts. + */ + cursor?: Prisma.ganttWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` gantts 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` gantts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of gantts. + */ + distinct?: Prisma.GanttScalarFieldEnum | Prisma.GanttScalarFieldEnum[] +} + +/** + * gantt findMany + */ +export type ganttFindManyArgs = { + /** + * Select specific fields to fetch from the gantt + */ + select?: Prisma.ganttSelect | null + /** + * Omit specific fields from the gantt + */ + omit?: Prisma.ganttOmit | null + /** + * Filter, which gantts to fetch. + */ + where?: Prisma.ganttWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of gantts to fetch. + */ + orderBy?: Prisma.ganttOrderByWithRelationInput | Prisma.ganttOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing gantts. + */ + cursor?: Prisma.ganttWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` gantts 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` gantts. + */ + skip?: number + distinct?: Prisma.GanttScalarFieldEnum | Prisma.GanttScalarFieldEnum[] +} + +/** + * gantt create + */ +export type ganttCreateArgs = { + /** + * Select specific fields to fetch from the gantt + */ + select?: Prisma.ganttSelect | null + /** + * Omit specific fields from the gantt + */ + omit?: Prisma.ganttOmit | null + /** + * The data needed to create a gantt. + */ + data: Prisma.XOR +} + +/** + * gantt createMany + */ +export type ganttCreateManyArgs = { + /** + * The data used to create many gantts. + */ + data: Prisma.ganttCreateManyInput | Prisma.ganttCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * gantt update + */ +export type ganttUpdateArgs = { + /** + * Select specific fields to fetch from the gantt + */ + select?: Prisma.ganttSelect | null + /** + * Omit specific fields from the gantt + */ + omit?: Prisma.ganttOmit | null + /** + * The data needed to update a gantt. + */ + data: Prisma.XOR + /** + * Choose, which gantt to update. + */ + where: Prisma.ganttWhereUniqueInput +} + +/** + * gantt updateMany + */ +export type ganttUpdateManyArgs = { + /** + * The data used to update gantts. + */ + data: Prisma.XOR + /** + * Filter which gantts to update + */ + where?: Prisma.ganttWhereInput + /** + * Limit how many gantts to update. + */ + limit?: number +} + +/** + * gantt upsert + */ +export type ganttUpsertArgs = { + /** + * Select specific fields to fetch from the gantt + */ + select?: Prisma.ganttSelect | null + /** + * Omit specific fields from the gantt + */ + omit?: Prisma.ganttOmit | null + /** + * The filter to search for the gantt to update in case it exists. + */ + where: Prisma.ganttWhereUniqueInput + /** + * In case the gantt found by the `where` argument doesn't exist, create a new gantt with this data. + */ + create: Prisma.XOR + /** + * In case the gantt was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * gantt delete + */ +export type ganttDeleteArgs = { + /** + * Select specific fields to fetch from the gantt + */ + select?: Prisma.ganttSelect | null + /** + * Omit specific fields from the gantt + */ + omit?: Prisma.ganttOmit | null + /** + * Filter which gantt to delete. + */ + where: Prisma.ganttWhereUniqueInput +} + +/** + * gantt deleteMany + */ +export type ganttDeleteManyArgs = { + /** + * Filter which gantts to delete + */ + where?: Prisma.ganttWhereInput + /** + * Limit how many gantts to delete. + */ + limit?: number +} + +/** + * gantt without action + */ +export type ganttDefaultArgs = { + /** + * Select specific fields to fetch from the gantt + */ + select?: Prisma.ganttSelect | null + /** + * Omit specific fields from the gantt + */ + omit?: Prisma.ganttOmit | null +} diff --git a/prisma/generated/mariadb/models/gantt_template.ts b/prisma/generated/mariadb/models/gantt_template.ts new file mode 100644 index 0000000..09ed1ff --- /dev/null +++ b/prisma/generated/mariadb/models/gantt_template.ts @@ -0,0 +1,1027 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `gantt_template` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model gantt_template + * + */ +export type gantt_templateModel = runtime.Types.Result.DefaultSelection + +export type AggregateGantt_template = { + _count: Gantt_templateCountAggregateOutputType | null + _avg: Gantt_templateAvgAggregateOutputType | null + _sum: Gantt_templateSumAggregateOutputType | null + _min: Gantt_templateMinAggregateOutputType | null + _max: Gantt_templateMaxAggregateOutputType | null +} + +export type Gantt_templateAvgAggregateOutputType = { + id: number | null +} + +export type Gantt_templateSumAggregateOutputType = { + id: number | null +} + +export type Gantt_templateMinAggregateOutputType = { + id: number | null + name: string | null + gantt: string | null +} + +export type Gantt_templateMaxAggregateOutputType = { + id: number | null + name: string | null + gantt: string | null +} + +export type Gantt_templateCountAggregateOutputType = { + id: number + name: number + gantt: number + _all: number +} + + +export type Gantt_templateAvgAggregateInputType = { + id?: true +} + +export type Gantt_templateSumAggregateInputType = { + id?: true +} + +export type Gantt_templateMinAggregateInputType = { + id?: true + name?: true + gantt?: true +} + +export type Gantt_templateMaxAggregateInputType = { + id?: true + name?: true + gantt?: true +} + +export type Gantt_templateCountAggregateInputType = { + id?: true + name?: true + gantt?: true + _all?: true +} + +export type Gantt_templateAggregateArgs = { + /** + * Filter which gantt_template to aggregate. + */ + where?: Prisma.gantt_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of gantt_templates to fetch. + */ + orderBy?: Prisma.gantt_templateOrderByWithRelationInput | Prisma.gantt_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.gantt_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` gantt_templates 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` gantt_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned gantt_templates + **/ + _count?: true | Gantt_templateCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Gantt_templateAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Gantt_templateSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Gantt_templateMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Gantt_templateMaxAggregateInputType +} + +export type GetGantt_templateAggregateType = { + [P in keyof T & keyof AggregateGantt_template]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type gantt_templateGroupByArgs = { + where?: Prisma.gantt_templateWhereInput + orderBy?: Prisma.gantt_templateOrderByWithAggregationInput | Prisma.gantt_templateOrderByWithAggregationInput[] + by: Prisma.Gantt_templateScalarFieldEnum[] | Prisma.Gantt_templateScalarFieldEnum + having?: Prisma.gantt_templateScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Gantt_templateCountAggregateInputType | true + _avg?: Gantt_templateAvgAggregateInputType + _sum?: Gantt_templateSumAggregateInputType + _min?: Gantt_templateMinAggregateInputType + _max?: Gantt_templateMaxAggregateInputType +} + +export type Gantt_templateGroupByOutputType = { + id: number + name: string | null + gantt: string + _count: Gantt_templateCountAggregateOutputType | null + _avg: Gantt_templateAvgAggregateOutputType | null + _sum: Gantt_templateSumAggregateOutputType | null + _min: Gantt_templateMinAggregateOutputType | null + _max: Gantt_templateMaxAggregateOutputType | null +} + +type GetGantt_templateGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Gantt_templateGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type gantt_templateWhereInput = { + AND?: Prisma.gantt_templateWhereInput | Prisma.gantt_templateWhereInput[] + OR?: Prisma.gantt_templateWhereInput[] + NOT?: Prisma.gantt_templateWhereInput | Prisma.gantt_templateWhereInput[] + id?: Prisma.IntFilter<"gantt_template"> | number + name?: Prisma.StringNullableFilter<"gantt_template"> | string | null + gantt?: Prisma.StringFilter<"gantt_template"> | string +} + +export type gantt_templateOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + gantt?: Prisma.SortOrder + _relevance?: Prisma.gantt_templateOrderByRelevanceInput +} + +export type gantt_templateWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.gantt_templateWhereInput | Prisma.gantt_templateWhereInput[] + OR?: Prisma.gantt_templateWhereInput[] + NOT?: Prisma.gantt_templateWhereInput | Prisma.gantt_templateWhereInput[] + name?: Prisma.StringNullableFilter<"gantt_template"> | string | null + gantt?: Prisma.StringFilter<"gantt_template"> | string +}, "id"> + +export type gantt_templateOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + gantt?: Prisma.SortOrder + _count?: Prisma.gantt_templateCountOrderByAggregateInput + _avg?: Prisma.gantt_templateAvgOrderByAggregateInput + _max?: Prisma.gantt_templateMaxOrderByAggregateInput + _min?: Prisma.gantt_templateMinOrderByAggregateInput + _sum?: Prisma.gantt_templateSumOrderByAggregateInput +} + +export type gantt_templateScalarWhereWithAggregatesInput = { + AND?: Prisma.gantt_templateScalarWhereWithAggregatesInput | Prisma.gantt_templateScalarWhereWithAggregatesInput[] + OR?: Prisma.gantt_templateScalarWhereWithAggregatesInput[] + NOT?: Prisma.gantt_templateScalarWhereWithAggregatesInput | Prisma.gantt_templateScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"gantt_template"> | number + name?: Prisma.StringNullableWithAggregatesFilter<"gantt_template"> | string | null + gantt?: Prisma.StringWithAggregatesFilter<"gantt_template"> | string +} + +export type gantt_templateCreateInput = { + name?: string | null + gantt: string +} + +export type gantt_templateUncheckedCreateInput = { + id?: number + name?: string | null + gantt: string +} + +export type gantt_templateUpdateInput = { + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + gantt?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type gantt_templateUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + gantt?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type gantt_templateCreateManyInput = { + id?: number + name?: string | null + gantt: string +} + +export type gantt_templateUpdateManyMutationInput = { + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + gantt?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type gantt_templateUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + gantt?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type gantt_templateOrderByRelevanceInput = { + fields: Prisma.gantt_templateOrderByRelevanceFieldEnum | Prisma.gantt_templateOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type gantt_templateCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + gantt?: Prisma.SortOrder +} + +export type gantt_templateAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type gantt_templateMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + gantt?: Prisma.SortOrder +} + +export type gantt_templateMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + gantt?: Prisma.SortOrder +} + +export type gantt_templateSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type gantt_templateSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + gantt?: boolean +}, ExtArgs["result"]["gantt_template"]> + + + +export type gantt_templateSelectScalar = { + id?: boolean + name?: boolean + gantt?: boolean +} + +export type gantt_templateOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "gantt", ExtArgs["result"]["gantt_template"]> + +export type $gantt_templatePayload = { + name: "gantt_template" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name: string | null + gantt: string + }, ExtArgs["result"]["gantt_template"]> + composites: {} +} + +export type gantt_templateGetPayload = runtime.Types.Result.GetResult + +export type gantt_templateCountArgs = + Omit & { + select?: Gantt_templateCountAggregateInputType | true + } + +export interface gantt_templateDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['gantt_template'], meta: { name: 'gantt_template' } } + /** + * Find zero or one Gantt_template that matches the filter. + * @param {gantt_templateFindUniqueArgs} args - Arguments to find a Gantt_template + * @example + * // Get one Gantt_template + * const gantt_template = await prisma.gantt_template.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__gantt_templateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Gantt_template that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {gantt_templateFindUniqueOrThrowArgs} args - Arguments to find a Gantt_template + * @example + * // Get one Gantt_template + * const gantt_template = await prisma.gantt_template.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__gantt_templateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Gantt_template 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 {gantt_templateFindFirstArgs} args - Arguments to find a Gantt_template + * @example + * // Get one Gantt_template + * const gantt_template = await prisma.gantt_template.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__gantt_templateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Gantt_template 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 {gantt_templateFindFirstOrThrowArgs} args - Arguments to find a Gantt_template + * @example + * // Get one Gantt_template + * const gantt_template = await prisma.gantt_template.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__gantt_templateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Gantt_templates 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 {gantt_templateFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Gantt_templates + * const gantt_templates = await prisma.gantt_template.findMany() + * + * // Get first 10 Gantt_templates + * const gantt_templates = await prisma.gantt_template.findMany({ take: 10 }) + * + * // Only select the `id` + * const gantt_templateWithIdOnly = await prisma.gantt_template.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Gantt_template. + * @param {gantt_templateCreateArgs} args - Arguments to create a Gantt_template. + * @example + * // Create one Gantt_template + * const Gantt_template = await prisma.gantt_template.create({ + * data: { + * // ... data to create a Gantt_template + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__gantt_templateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Gantt_templates. + * @param {gantt_templateCreateManyArgs} args - Arguments to create many Gantt_templates. + * @example + * // Create many Gantt_templates + * const gantt_template = await prisma.gantt_template.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Gantt_template. + * @param {gantt_templateDeleteArgs} args - Arguments to delete one Gantt_template. + * @example + * // Delete one Gantt_template + * const Gantt_template = await prisma.gantt_template.delete({ + * where: { + * // ... filter to delete one Gantt_template + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__gantt_templateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Gantt_template. + * @param {gantt_templateUpdateArgs} args - Arguments to update one Gantt_template. + * @example + * // Update one Gantt_template + * const gantt_template = await prisma.gantt_template.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__gantt_templateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Gantt_templates. + * @param {gantt_templateDeleteManyArgs} args - Arguments to filter Gantt_templates to delete. + * @example + * // Delete a few Gantt_templates + * const { count } = await prisma.gantt_template.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Gantt_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {gantt_templateUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Gantt_templates + * const gantt_template = await prisma.gantt_template.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Gantt_template. + * @param {gantt_templateUpsertArgs} args - Arguments to update or create a Gantt_template. + * @example + * // Update or create a Gantt_template + * const gantt_template = await prisma.gantt_template.upsert({ + * create: { + * // ... data to create a Gantt_template + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Gantt_template we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__gantt_templateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Gantt_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {gantt_templateCountArgs} args - Arguments to filter Gantt_templates to count. + * @example + * // Count the number of Gantt_templates + * const count = await prisma.gantt_template.count({ + * where: { + * // ... the filter for the Gantt_templates 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 Gantt_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Gantt_templateAggregateArgs} 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 Gantt_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {gantt_templateGroupByArgs} 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 gantt_templateGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: gantt_templateGroupByArgs['orderBy'] } + : { orderBy?: gantt_templateGroupByArgs['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 ? GetGantt_templateGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the gantt_template model + */ +readonly fields: gantt_templateFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for gantt_template. + * 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__gantt_templateClient 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 gantt_template model + */ +export interface gantt_templateFieldRefs { + readonly id: Prisma.FieldRef<"gantt_template", 'Int'> + readonly name: Prisma.FieldRef<"gantt_template", 'String'> + readonly gantt: Prisma.FieldRef<"gantt_template", 'String'> +} + + +// Custom InputTypes +/** + * gantt_template findUnique + */ +export type gantt_templateFindUniqueArgs = { + /** + * Select specific fields to fetch from the gantt_template + */ + select?: Prisma.gantt_templateSelect | null + /** + * Omit specific fields from the gantt_template + */ + omit?: Prisma.gantt_templateOmit | null + /** + * Filter, which gantt_template to fetch. + */ + where: Prisma.gantt_templateWhereUniqueInput +} + +/** + * gantt_template findUniqueOrThrow + */ +export type gantt_templateFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the gantt_template + */ + select?: Prisma.gantt_templateSelect | null + /** + * Omit specific fields from the gantt_template + */ + omit?: Prisma.gantt_templateOmit | null + /** + * Filter, which gantt_template to fetch. + */ + where: Prisma.gantt_templateWhereUniqueInput +} + +/** + * gantt_template findFirst + */ +export type gantt_templateFindFirstArgs = { + /** + * Select specific fields to fetch from the gantt_template + */ + select?: Prisma.gantt_templateSelect | null + /** + * Omit specific fields from the gantt_template + */ + omit?: Prisma.gantt_templateOmit | null + /** + * Filter, which gantt_template to fetch. + */ + where?: Prisma.gantt_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of gantt_templates to fetch. + */ + orderBy?: Prisma.gantt_templateOrderByWithRelationInput | Prisma.gantt_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for gantt_templates. + */ + cursor?: Prisma.gantt_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` gantt_templates 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` gantt_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of gantt_templates. + */ + distinct?: Prisma.Gantt_templateScalarFieldEnum | Prisma.Gantt_templateScalarFieldEnum[] +} + +/** + * gantt_template findFirstOrThrow + */ +export type gantt_templateFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the gantt_template + */ + select?: Prisma.gantt_templateSelect | null + /** + * Omit specific fields from the gantt_template + */ + omit?: Prisma.gantt_templateOmit | null + /** + * Filter, which gantt_template to fetch. + */ + where?: Prisma.gantt_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of gantt_templates to fetch. + */ + orderBy?: Prisma.gantt_templateOrderByWithRelationInput | Prisma.gantt_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for gantt_templates. + */ + cursor?: Prisma.gantt_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` gantt_templates 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` gantt_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of gantt_templates. + */ + distinct?: Prisma.Gantt_templateScalarFieldEnum | Prisma.Gantt_templateScalarFieldEnum[] +} + +/** + * gantt_template findMany + */ +export type gantt_templateFindManyArgs = { + /** + * Select specific fields to fetch from the gantt_template + */ + select?: Prisma.gantt_templateSelect | null + /** + * Omit specific fields from the gantt_template + */ + omit?: Prisma.gantt_templateOmit | null + /** + * Filter, which gantt_templates to fetch. + */ + where?: Prisma.gantt_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of gantt_templates to fetch. + */ + orderBy?: Prisma.gantt_templateOrderByWithRelationInput | Prisma.gantt_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing gantt_templates. + */ + cursor?: Prisma.gantt_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` gantt_templates 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` gantt_templates. + */ + skip?: number + distinct?: Prisma.Gantt_templateScalarFieldEnum | Prisma.Gantt_templateScalarFieldEnum[] +} + +/** + * gantt_template create + */ +export type gantt_templateCreateArgs = { + /** + * Select specific fields to fetch from the gantt_template + */ + select?: Prisma.gantt_templateSelect | null + /** + * Omit specific fields from the gantt_template + */ + omit?: Prisma.gantt_templateOmit | null + /** + * The data needed to create a gantt_template. + */ + data: Prisma.XOR +} + +/** + * gantt_template createMany + */ +export type gantt_templateCreateManyArgs = { + /** + * The data used to create many gantt_templates. + */ + data: Prisma.gantt_templateCreateManyInput | Prisma.gantt_templateCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * gantt_template update + */ +export type gantt_templateUpdateArgs = { + /** + * Select specific fields to fetch from the gantt_template + */ + select?: Prisma.gantt_templateSelect | null + /** + * Omit specific fields from the gantt_template + */ + omit?: Prisma.gantt_templateOmit | null + /** + * The data needed to update a gantt_template. + */ + data: Prisma.XOR + /** + * Choose, which gantt_template to update. + */ + where: Prisma.gantt_templateWhereUniqueInput +} + +/** + * gantt_template updateMany + */ +export type gantt_templateUpdateManyArgs = { + /** + * The data used to update gantt_templates. + */ + data: Prisma.XOR + /** + * Filter which gantt_templates to update + */ + where?: Prisma.gantt_templateWhereInput + /** + * Limit how many gantt_templates to update. + */ + limit?: number +} + +/** + * gantt_template upsert + */ +export type gantt_templateUpsertArgs = { + /** + * Select specific fields to fetch from the gantt_template + */ + select?: Prisma.gantt_templateSelect | null + /** + * Omit specific fields from the gantt_template + */ + omit?: Prisma.gantt_templateOmit | null + /** + * The filter to search for the gantt_template to update in case it exists. + */ + where: Prisma.gantt_templateWhereUniqueInput + /** + * In case the gantt_template found by the `where` argument doesn't exist, create a new gantt_template with this data. + */ + create: Prisma.XOR + /** + * In case the gantt_template was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * gantt_template delete + */ +export type gantt_templateDeleteArgs = { + /** + * Select specific fields to fetch from the gantt_template + */ + select?: Prisma.gantt_templateSelect | null + /** + * Omit specific fields from the gantt_template + */ + omit?: Prisma.gantt_templateOmit | null + /** + * Filter which gantt_template to delete. + */ + where: Prisma.gantt_templateWhereUniqueInput +} + +/** + * gantt_template deleteMany + */ +export type gantt_templateDeleteManyArgs = { + /** + * Filter which gantt_templates to delete + */ + where?: Prisma.gantt_templateWhereInput + /** + * Limit how many gantt_templates to delete. + */ + limit?: number +} + +/** + * gantt_template without action + */ +export type gantt_templateDefaultArgs = { + /** + * Select specific fields to fetch from the gantt_template + */ + select?: Prisma.gantt_templateSelect | null + /** + * Omit specific fields from the gantt_template + */ + omit?: Prisma.gantt_templateOmit | null +} diff --git a/prisma/generated/mariadb/models/hour_bank.ts b/prisma/generated/mariadb/models/hour_bank.ts new file mode 100644 index 0000000..27e6021 --- /dev/null +++ b/prisma/generated/mariadb/models/hour_bank.ts @@ -0,0 +1,1161 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `hour_bank` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model hour_bank + * + */ +export type hour_bankModel = runtime.Types.Result.DefaultSelection + +export type AggregateHour_bank = { + _count: Hour_bankCountAggregateOutputType | null + _avg: Hour_bankAvgAggregateOutputType | null + _sum: Hour_bankSumAggregateOutputType | null + _min: Hour_bankMinAggregateOutputType | null + _max: Hour_bankMaxAggregateOutputType | null +} + +export type Hour_bankAvgAggregateOutputType = { + id: number | null + account_id: number | null + remaining_time: number | null + expiration_date: number | null + recurrence: number | null + reset_value: number | null +} + +export type Hour_bankSumAggregateOutputType = { + id: number | null + account_id: bigint | null + remaining_time: number | null + expiration_date: bigint | null + recurrence: number | null + reset_value: number | null +} + +export type Hour_bankMinAggregateOutputType = { + id: number | null + account_id: bigint | null + remaining_time: number | null + expiration_date: bigint | null + note: string | null + recurrence: number | null + reset_value: number | null +} + +export type Hour_bankMaxAggregateOutputType = { + id: number | null + account_id: bigint | null + remaining_time: number | null + expiration_date: bigint | null + note: string | null + recurrence: number | null + reset_value: number | null +} + +export type Hour_bankCountAggregateOutputType = { + id: number + account_id: number + remaining_time: number + expiration_date: number + note: number + recurrence: number + reset_value: number + _all: number +} + + +export type Hour_bankAvgAggregateInputType = { + id?: true + account_id?: true + remaining_time?: true + expiration_date?: true + recurrence?: true + reset_value?: true +} + +export type Hour_bankSumAggregateInputType = { + id?: true + account_id?: true + remaining_time?: true + expiration_date?: true + recurrence?: true + reset_value?: true +} + +export type Hour_bankMinAggregateInputType = { + id?: true + account_id?: true + remaining_time?: true + expiration_date?: true + note?: true + recurrence?: true + reset_value?: true +} + +export type Hour_bankMaxAggregateInputType = { + id?: true + account_id?: true + remaining_time?: true + expiration_date?: true + note?: true + recurrence?: true + reset_value?: true +} + +export type Hour_bankCountAggregateInputType = { + id?: true + account_id?: true + remaining_time?: true + expiration_date?: true + note?: true + recurrence?: true + reset_value?: true + _all?: true +} + +export type Hour_bankAggregateArgs = { + /** + * Filter which hour_bank to aggregate. + */ + where?: Prisma.hour_bankWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of hour_banks to fetch. + */ + orderBy?: Prisma.hour_bankOrderByWithRelationInput | Prisma.hour_bankOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.hour_bankWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` hour_banks 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` hour_banks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned hour_banks + **/ + _count?: true | Hour_bankCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Hour_bankAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Hour_bankSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Hour_bankMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Hour_bankMaxAggregateInputType +} + +export type GetHour_bankAggregateType = { + [P in keyof T & keyof AggregateHour_bank]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type hour_bankGroupByArgs = { + where?: Prisma.hour_bankWhereInput + orderBy?: Prisma.hour_bankOrderByWithAggregationInput | Prisma.hour_bankOrderByWithAggregationInput[] + by: Prisma.Hour_bankScalarFieldEnum[] | Prisma.Hour_bankScalarFieldEnum + having?: Prisma.hour_bankScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Hour_bankCountAggregateInputType | true + _avg?: Hour_bankAvgAggregateInputType + _sum?: Hour_bankSumAggregateInputType + _min?: Hour_bankMinAggregateInputType + _max?: Hour_bankMaxAggregateInputType +} + +export type Hour_bankGroupByOutputType = { + id: number + account_id: bigint + remaining_time: number + expiration_date: bigint + note: string | null + recurrence: number + reset_value: number + _count: Hour_bankCountAggregateOutputType | null + _avg: Hour_bankAvgAggregateOutputType | null + _sum: Hour_bankSumAggregateOutputType | null + _min: Hour_bankMinAggregateOutputType | null + _max: Hour_bankMaxAggregateOutputType | null +} + +type GetHour_bankGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Hour_bankGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type hour_bankWhereInput = { + AND?: Prisma.hour_bankWhereInput | Prisma.hour_bankWhereInput[] + OR?: Prisma.hour_bankWhereInput[] + NOT?: Prisma.hour_bankWhereInput | Prisma.hour_bankWhereInput[] + id?: Prisma.IntFilter<"hour_bank"> | number + account_id?: Prisma.BigIntFilter<"hour_bank"> | bigint | number + remaining_time?: Prisma.IntFilter<"hour_bank"> | number + expiration_date?: Prisma.BigIntFilter<"hour_bank"> | bigint | number + note?: Prisma.StringNullableFilter<"hour_bank"> | string | null + recurrence?: Prisma.IntFilter<"hour_bank"> | number + reset_value?: Prisma.IntFilter<"hour_bank"> | number +} + +export type hour_bankOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + remaining_time?: Prisma.SortOrder + expiration_date?: Prisma.SortOrder + note?: Prisma.SortOrderInput | Prisma.SortOrder + recurrence?: Prisma.SortOrder + reset_value?: Prisma.SortOrder + _relevance?: Prisma.hour_bankOrderByRelevanceInput +} + +export type hour_bankWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.hour_bankWhereInput | Prisma.hour_bankWhereInput[] + OR?: Prisma.hour_bankWhereInput[] + NOT?: Prisma.hour_bankWhereInput | Prisma.hour_bankWhereInput[] + account_id?: Prisma.BigIntFilter<"hour_bank"> | bigint | number + remaining_time?: Prisma.IntFilter<"hour_bank"> | number + expiration_date?: Prisma.BigIntFilter<"hour_bank"> | bigint | number + note?: Prisma.StringNullableFilter<"hour_bank"> | string | null + recurrence?: Prisma.IntFilter<"hour_bank"> | number + reset_value?: Prisma.IntFilter<"hour_bank"> | number +}, "id"> + +export type hour_bankOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + remaining_time?: Prisma.SortOrder + expiration_date?: Prisma.SortOrder + note?: Prisma.SortOrderInput | Prisma.SortOrder + recurrence?: Prisma.SortOrder + reset_value?: Prisma.SortOrder + _count?: Prisma.hour_bankCountOrderByAggregateInput + _avg?: Prisma.hour_bankAvgOrderByAggregateInput + _max?: Prisma.hour_bankMaxOrderByAggregateInput + _min?: Prisma.hour_bankMinOrderByAggregateInput + _sum?: Prisma.hour_bankSumOrderByAggregateInput +} + +export type hour_bankScalarWhereWithAggregatesInput = { + AND?: Prisma.hour_bankScalarWhereWithAggregatesInput | Prisma.hour_bankScalarWhereWithAggregatesInput[] + OR?: Prisma.hour_bankScalarWhereWithAggregatesInput[] + NOT?: Prisma.hour_bankScalarWhereWithAggregatesInput | Prisma.hour_bankScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"hour_bank"> | number + account_id?: Prisma.BigIntWithAggregatesFilter<"hour_bank"> | bigint | number + remaining_time?: Prisma.IntWithAggregatesFilter<"hour_bank"> | number + expiration_date?: Prisma.BigIntWithAggregatesFilter<"hour_bank"> | bigint | number + note?: Prisma.StringNullableWithAggregatesFilter<"hour_bank"> | string | null + recurrence?: Prisma.IntWithAggregatesFilter<"hour_bank"> | number + reset_value?: Prisma.IntWithAggregatesFilter<"hour_bank"> | number +} + +export type hour_bankCreateInput = { + account_id: bigint | number + remaining_time?: number + expiration_date?: bigint | number + note?: string | null + recurrence?: number + reset_value?: number +} + +export type hour_bankUncheckedCreateInput = { + id?: number + account_id: bigint | number + remaining_time?: number + expiration_date?: bigint | number + note?: string | null + recurrence?: number + reset_value?: number +} + +export type hour_bankUpdateInput = { + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + remaining_time?: Prisma.IntFieldUpdateOperationsInput | number + expiration_date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recurrence?: Prisma.IntFieldUpdateOperationsInput | number + reset_value?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type hour_bankUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + remaining_time?: Prisma.IntFieldUpdateOperationsInput | number + expiration_date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recurrence?: Prisma.IntFieldUpdateOperationsInput | number + reset_value?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type hour_bankCreateManyInput = { + id?: number + account_id: bigint | number + remaining_time?: number + expiration_date?: bigint | number + note?: string | null + recurrence?: number + reset_value?: number +} + +export type hour_bankUpdateManyMutationInput = { + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + remaining_time?: Prisma.IntFieldUpdateOperationsInput | number + expiration_date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recurrence?: Prisma.IntFieldUpdateOperationsInput | number + reset_value?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type hour_bankUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + remaining_time?: Prisma.IntFieldUpdateOperationsInput | number + expiration_date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + recurrence?: Prisma.IntFieldUpdateOperationsInput | number + reset_value?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type hour_bankOrderByRelevanceInput = { + fields: Prisma.hour_bankOrderByRelevanceFieldEnum | Prisma.hour_bankOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type hour_bankCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + remaining_time?: Prisma.SortOrder + expiration_date?: Prisma.SortOrder + note?: Prisma.SortOrder + recurrence?: Prisma.SortOrder + reset_value?: Prisma.SortOrder +} + +export type hour_bankAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + remaining_time?: Prisma.SortOrder + expiration_date?: Prisma.SortOrder + recurrence?: Prisma.SortOrder + reset_value?: Prisma.SortOrder +} + +export type hour_bankMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + remaining_time?: Prisma.SortOrder + expiration_date?: Prisma.SortOrder + note?: Prisma.SortOrder + recurrence?: Prisma.SortOrder + reset_value?: Prisma.SortOrder +} + +export type hour_bankMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + remaining_time?: Prisma.SortOrder + expiration_date?: Prisma.SortOrder + note?: Prisma.SortOrder + recurrence?: Prisma.SortOrder + reset_value?: Prisma.SortOrder +} + +export type hour_bankSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + remaining_time?: Prisma.SortOrder + expiration_date?: Prisma.SortOrder + recurrence?: Prisma.SortOrder + reset_value?: Prisma.SortOrder +} + + + +export type hour_bankSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + remaining_time?: boolean + expiration_date?: boolean + note?: boolean + recurrence?: boolean + reset_value?: boolean +}, ExtArgs["result"]["hour_bank"]> + + + +export type hour_bankSelectScalar = { + id?: boolean + account_id?: boolean + remaining_time?: boolean + expiration_date?: boolean + note?: boolean + recurrence?: boolean + reset_value?: boolean +} + +export type hour_bankOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "remaining_time" | "expiration_date" | "note" | "recurrence" | "reset_value", ExtArgs["result"]["hour_bank"]> + +export type $hour_bankPayload = { + name: "hour_bank" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: bigint + remaining_time: number + expiration_date: bigint + note: string | null + recurrence: number + reset_value: number + }, ExtArgs["result"]["hour_bank"]> + composites: {} +} + +export type hour_bankGetPayload = runtime.Types.Result.GetResult + +export type hour_bankCountArgs = + Omit & { + select?: Hour_bankCountAggregateInputType | true + } + +export interface hour_bankDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['hour_bank'], meta: { name: 'hour_bank' } } + /** + * Find zero or one Hour_bank that matches the filter. + * @param {hour_bankFindUniqueArgs} args - Arguments to find a Hour_bank + * @example + * // Get one Hour_bank + * const hour_bank = await prisma.hour_bank.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Hour_bank that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {hour_bankFindUniqueOrThrowArgs} args - Arguments to find a Hour_bank + * @example + * // Get one Hour_bank + * const hour_bank = await prisma.hour_bank.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Hour_bank 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 {hour_bankFindFirstArgs} args - Arguments to find a Hour_bank + * @example + * // Get one Hour_bank + * const hour_bank = await prisma.hour_bank.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Hour_bank 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 {hour_bankFindFirstOrThrowArgs} args - Arguments to find a Hour_bank + * @example + * // Get one Hour_bank + * const hour_bank = await prisma.hour_bank.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Hour_banks 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 {hour_bankFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Hour_banks + * const hour_banks = await prisma.hour_bank.findMany() + * + * // Get first 10 Hour_banks + * const hour_banks = await prisma.hour_bank.findMany({ take: 10 }) + * + * // Only select the `id` + * const hour_bankWithIdOnly = await prisma.hour_bank.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Hour_bank. + * @param {hour_bankCreateArgs} args - Arguments to create a Hour_bank. + * @example + * // Create one Hour_bank + * const Hour_bank = await prisma.hour_bank.create({ + * data: { + * // ... data to create a Hour_bank + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Hour_banks. + * @param {hour_bankCreateManyArgs} args - Arguments to create many Hour_banks. + * @example + * // Create many Hour_banks + * const hour_bank = await prisma.hour_bank.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Hour_bank. + * @param {hour_bankDeleteArgs} args - Arguments to delete one Hour_bank. + * @example + * // Delete one Hour_bank + * const Hour_bank = await prisma.hour_bank.delete({ + * where: { + * // ... filter to delete one Hour_bank + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Hour_bank. + * @param {hour_bankUpdateArgs} args - Arguments to update one Hour_bank. + * @example + * // Update one Hour_bank + * const hour_bank = await prisma.hour_bank.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Hour_banks. + * @param {hour_bankDeleteManyArgs} args - Arguments to filter Hour_banks to delete. + * @example + * // Delete a few Hour_banks + * const { count } = await prisma.hour_bank.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Hour_banks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {hour_bankUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Hour_banks + * const hour_bank = await prisma.hour_bank.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Hour_bank. + * @param {hour_bankUpsertArgs} args - Arguments to update or create a Hour_bank. + * @example + * // Update or create a Hour_bank + * const hour_bank = await prisma.hour_bank.upsert({ + * create: { + * // ... data to create a Hour_bank + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Hour_bank we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Hour_banks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {hour_bankCountArgs} args - Arguments to filter Hour_banks to count. + * @example + * // Count the number of Hour_banks + * const count = await prisma.hour_bank.count({ + * where: { + * // ... the filter for the Hour_banks 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 Hour_bank. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Hour_bankAggregateArgs} 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 Hour_bank. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {hour_bankGroupByArgs} 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 hour_bankGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: hour_bankGroupByArgs['orderBy'] } + : { orderBy?: hour_bankGroupByArgs['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 ? GetHour_bankGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the hour_bank model + */ +readonly fields: hour_bankFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for hour_bank. + * 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__hour_bankClient 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 hour_bank model + */ +export interface hour_bankFieldRefs { + readonly id: Prisma.FieldRef<"hour_bank", 'Int'> + readonly account_id: Prisma.FieldRef<"hour_bank", 'BigInt'> + readonly remaining_time: Prisma.FieldRef<"hour_bank", 'Int'> + readonly expiration_date: Prisma.FieldRef<"hour_bank", 'BigInt'> + readonly note: Prisma.FieldRef<"hour_bank", 'String'> + readonly recurrence: Prisma.FieldRef<"hour_bank", 'Int'> + readonly reset_value: Prisma.FieldRef<"hour_bank", 'Int'> +} + + +// Custom InputTypes +/** + * hour_bank findUnique + */ +export type hour_bankFindUniqueArgs = { + /** + * Select specific fields to fetch from the hour_bank + */ + select?: Prisma.hour_bankSelect | null + /** + * Omit specific fields from the hour_bank + */ + omit?: Prisma.hour_bankOmit | null + /** + * Filter, which hour_bank to fetch. + */ + where: Prisma.hour_bankWhereUniqueInput +} + +/** + * hour_bank findUniqueOrThrow + */ +export type hour_bankFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the hour_bank + */ + select?: Prisma.hour_bankSelect | null + /** + * Omit specific fields from the hour_bank + */ + omit?: Prisma.hour_bankOmit | null + /** + * Filter, which hour_bank to fetch. + */ + where: Prisma.hour_bankWhereUniqueInput +} + +/** + * hour_bank findFirst + */ +export type hour_bankFindFirstArgs = { + /** + * Select specific fields to fetch from the hour_bank + */ + select?: Prisma.hour_bankSelect | null + /** + * Omit specific fields from the hour_bank + */ + omit?: Prisma.hour_bankOmit | null + /** + * Filter, which hour_bank to fetch. + */ + where?: Prisma.hour_bankWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of hour_banks to fetch. + */ + orderBy?: Prisma.hour_bankOrderByWithRelationInput | Prisma.hour_bankOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for hour_banks. + */ + cursor?: Prisma.hour_bankWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` hour_banks 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` hour_banks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of hour_banks. + */ + distinct?: Prisma.Hour_bankScalarFieldEnum | Prisma.Hour_bankScalarFieldEnum[] +} + +/** + * hour_bank findFirstOrThrow + */ +export type hour_bankFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the hour_bank + */ + select?: Prisma.hour_bankSelect | null + /** + * Omit specific fields from the hour_bank + */ + omit?: Prisma.hour_bankOmit | null + /** + * Filter, which hour_bank to fetch. + */ + where?: Prisma.hour_bankWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of hour_banks to fetch. + */ + orderBy?: Prisma.hour_bankOrderByWithRelationInput | Prisma.hour_bankOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for hour_banks. + */ + cursor?: Prisma.hour_bankWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` hour_banks 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` hour_banks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of hour_banks. + */ + distinct?: Prisma.Hour_bankScalarFieldEnum | Prisma.Hour_bankScalarFieldEnum[] +} + +/** + * hour_bank findMany + */ +export type hour_bankFindManyArgs = { + /** + * Select specific fields to fetch from the hour_bank + */ + select?: Prisma.hour_bankSelect | null + /** + * Omit specific fields from the hour_bank + */ + omit?: Prisma.hour_bankOmit | null + /** + * Filter, which hour_banks to fetch. + */ + where?: Prisma.hour_bankWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of hour_banks to fetch. + */ + orderBy?: Prisma.hour_bankOrderByWithRelationInput | Prisma.hour_bankOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing hour_banks. + */ + cursor?: Prisma.hour_bankWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` hour_banks 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` hour_banks. + */ + skip?: number + distinct?: Prisma.Hour_bankScalarFieldEnum | Prisma.Hour_bankScalarFieldEnum[] +} + +/** + * hour_bank create + */ +export type hour_bankCreateArgs = { + /** + * Select specific fields to fetch from the hour_bank + */ + select?: Prisma.hour_bankSelect | null + /** + * Omit specific fields from the hour_bank + */ + omit?: Prisma.hour_bankOmit | null + /** + * The data needed to create a hour_bank. + */ + data: Prisma.XOR +} + +/** + * hour_bank createMany + */ +export type hour_bankCreateManyArgs = { + /** + * The data used to create many hour_banks. + */ + data: Prisma.hour_bankCreateManyInput | Prisma.hour_bankCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * hour_bank update + */ +export type hour_bankUpdateArgs = { + /** + * Select specific fields to fetch from the hour_bank + */ + select?: Prisma.hour_bankSelect | null + /** + * Omit specific fields from the hour_bank + */ + omit?: Prisma.hour_bankOmit | null + /** + * The data needed to update a hour_bank. + */ + data: Prisma.XOR + /** + * Choose, which hour_bank to update. + */ + where: Prisma.hour_bankWhereUniqueInput +} + +/** + * hour_bank updateMany + */ +export type hour_bankUpdateManyArgs = { + /** + * The data used to update hour_banks. + */ + data: Prisma.XOR + /** + * Filter which hour_banks to update + */ + where?: Prisma.hour_bankWhereInput + /** + * Limit how many hour_banks to update. + */ + limit?: number +} + +/** + * hour_bank upsert + */ +export type hour_bankUpsertArgs = { + /** + * Select specific fields to fetch from the hour_bank + */ + select?: Prisma.hour_bankSelect | null + /** + * Omit specific fields from the hour_bank + */ + omit?: Prisma.hour_bankOmit | null + /** + * The filter to search for the hour_bank to update in case it exists. + */ + where: Prisma.hour_bankWhereUniqueInput + /** + * In case the hour_bank found by the `where` argument doesn't exist, create a new hour_bank with this data. + */ + create: Prisma.XOR + /** + * In case the hour_bank was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * hour_bank delete + */ +export type hour_bankDeleteArgs = { + /** + * Select specific fields to fetch from the hour_bank + */ + select?: Prisma.hour_bankSelect | null + /** + * Omit specific fields from the hour_bank + */ + omit?: Prisma.hour_bankOmit | null + /** + * Filter which hour_bank to delete. + */ + where: Prisma.hour_bankWhereUniqueInput +} + +/** + * hour_bank deleteMany + */ +export type hour_bankDeleteManyArgs = { + /** + * Filter which hour_banks to delete + */ + where?: Prisma.hour_bankWhereInput + /** + * Limit how many hour_banks to delete. + */ + limit?: number +} + +/** + * hour_bank without action + */ +export type hour_bankDefaultArgs = { + /** + * Select specific fields to fetch from the hour_bank + */ + select?: Prisma.hour_bankSelect | null + /** + * Omit specific fields from the hour_bank + */ + omit?: Prisma.hour_bankOmit | null +} diff --git a/prisma/generated/mariadb/models/hour_bank_detail.ts b/prisma/generated/mariadb/models/hour_bank_detail.ts new file mode 100644 index 0000000..f5b908e --- /dev/null +++ b/prisma/generated/mariadb/models/hour_bank_detail.ts @@ -0,0 +1,1187 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `hour_bank_detail` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model hour_bank_detail + * + */ +export type hour_bank_detailModel = runtime.Types.Result.DefaultSelection + +export type AggregateHour_bank_detail = { + _count: Hour_bank_detailCountAggregateOutputType | null + _avg: Hour_bank_detailAvgAggregateOutputType | null + _sum: Hour_bank_detailSumAggregateOutputType | null + _min: Hour_bank_detailMinAggregateOutputType | null + _max: Hour_bank_detailMaxAggregateOutputType | null +} + +export type Hour_bank_detailAvgAggregateOutputType = { + id: number | null + hour_id: number | null + staff_id: number | null + date_orig: number | null + used_time: number | null + ticket_id: number | null +} + +export type Hour_bank_detailSumAggregateOutputType = { + id: number | null + hour_id: number | null + staff_id: bigint | null + date_orig: bigint | null + used_time: number | null + ticket_id: bigint | null +} + +export type Hour_bank_detailMinAggregateOutputType = { + id: number | null + hour_id: number | null + staff_id: bigint | null + date_orig: bigint | null + used_time: number | null + ticket_id: bigint | null + working_order: string | null + detail: string | null +} + +export type Hour_bank_detailMaxAggregateOutputType = { + id: number | null + hour_id: number | null + staff_id: bigint | null + date_orig: bigint | null + used_time: number | null + ticket_id: bigint | null + working_order: string | null + detail: string | null +} + +export type Hour_bank_detailCountAggregateOutputType = { + id: number + hour_id: number + staff_id: number + date_orig: number + used_time: number + ticket_id: number + working_order: number + detail: number + _all: number +} + + +export type Hour_bank_detailAvgAggregateInputType = { + id?: true + hour_id?: true + staff_id?: true + date_orig?: true + used_time?: true + ticket_id?: true +} + +export type Hour_bank_detailSumAggregateInputType = { + id?: true + hour_id?: true + staff_id?: true + date_orig?: true + used_time?: true + ticket_id?: true +} + +export type Hour_bank_detailMinAggregateInputType = { + id?: true + hour_id?: true + staff_id?: true + date_orig?: true + used_time?: true + ticket_id?: true + working_order?: true + detail?: true +} + +export type Hour_bank_detailMaxAggregateInputType = { + id?: true + hour_id?: true + staff_id?: true + date_orig?: true + used_time?: true + ticket_id?: true + working_order?: true + detail?: true +} + +export type Hour_bank_detailCountAggregateInputType = { + id?: true + hour_id?: true + staff_id?: true + date_orig?: true + used_time?: true + ticket_id?: true + working_order?: true + detail?: true + _all?: true +} + +export type Hour_bank_detailAggregateArgs = { + /** + * Filter which hour_bank_detail to aggregate. + */ + where?: Prisma.hour_bank_detailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of hour_bank_details to fetch. + */ + orderBy?: Prisma.hour_bank_detailOrderByWithRelationInput | Prisma.hour_bank_detailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.hour_bank_detailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` hour_bank_details 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` hour_bank_details. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned hour_bank_details + **/ + _count?: true | Hour_bank_detailCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Hour_bank_detailAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Hour_bank_detailSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Hour_bank_detailMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Hour_bank_detailMaxAggregateInputType +} + +export type GetHour_bank_detailAggregateType = { + [P in keyof T & keyof AggregateHour_bank_detail]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type hour_bank_detailGroupByArgs = { + where?: Prisma.hour_bank_detailWhereInput + orderBy?: Prisma.hour_bank_detailOrderByWithAggregationInput | Prisma.hour_bank_detailOrderByWithAggregationInput[] + by: Prisma.Hour_bank_detailScalarFieldEnum[] | Prisma.Hour_bank_detailScalarFieldEnum + having?: Prisma.hour_bank_detailScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Hour_bank_detailCountAggregateInputType | true + _avg?: Hour_bank_detailAvgAggregateInputType + _sum?: Hour_bank_detailSumAggregateInputType + _min?: Hour_bank_detailMinAggregateInputType + _max?: Hour_bank_detailMaxAggregateInputType +} + +export type Hour_bank_detailGroupByOutputType = { + id: number + hour_id: number + staff_id: bigint | null + date_orig: bigint + used_time: number + ticket_id: bigint | null + working_order: string | null + detail: string | null + _count: Hour_bank_detailCountAggregateOutputType | null + _avg: Hour_bank_detailAvgAggregateOutputType | null + _sum: Hour_bank_detailSumAggregateOutputType | null + _min: Hour_bank_detailMinAggregateOutputType | null + _max: Hour_bank_detailMaxAggregateOutputType | null +} + +type GetHour_bank_detailGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Hour_bank_detailGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type hour_bank_detailWhereInput = { + AND?: Prisma.hour_bank_detailWhereInput | Prisma.hour_bank_detailWhereInput[] + OR?: Prisma.hour_bank_detailWhereInput[] + NOT?: Prisma.hour_bank_detailWhereInput | Prisma.hour_bank_detailWhereInput[] + id?: Prisma.IntFilter<"hour_bank_detail"> | number + hour_id?: Prisma.IntFilter<"hour_bank_detail"> | number + staff_id?: Prisma.BigIntNullableFilter<"hour_bank_detail"> | bigint | number | null + date_orig?: Prisma.BigIntFilter<"hour_bank_detail"> | bigint | number + used_time?: Prisma.IntFilter<"hour_bank_detail"> | number + ticket_id?: Prisma.BigIntNullableFilter<"hour_bank_detail"> | bigint | number | null + working_order?: Prisma.StringNullableFilter<"hour_bank_detail"> | string | null + detail?: Prisma.StringNullableFilter<"hour_bank_detail"> | string | null +} + +export type hour_bank_detailOrderByWithRelationInput = { + id?: Prisma.SortOrder + hour_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrder + used_time?: Prisma.SortOrder + ticket_id?: Prisma.SortOrderInput | Prisma.SortOrder + working_order?: Prisma.SortOrderInput | Prisma.SortOrder + detail?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.hour_bank_detailOrderByRelevanceInput +} + +export type hour_bank_detailWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.hour_bank_detailWhereInput | Prisma.hour_bank_detailWhereInput[] + OR?: Prisma.hour_bank_detailWhereInput[] + NOT?: Prisma.hour_bank_detailWhereInput | Prisma.hour_bank_detailWhereInput[] + hour_id?: Prisma.IntFilter<"hour_bank_detail"> | number + staff_id?: Prisma.BigIntNullableFilter<"hour_bank_detail"> | bigint | number | null + date_orig?: Prisma.BigIntFilter<"hour_bank_detail"> | bigint | number + used_time?: Prisma.IntFilter<"hour_bank_detail"> | number + ticket_id?: Prisma.BigIntNullableFilter<"hour_bank_detail"> | bigint | number | null + working_order?: Prisma.StringNullableFilter<"hour_bank_detail"> | string | null + detail?: Prisma.StringNullableFilter<"hour_bank_detail"> | string | null +}, "id"> + +export type hour_bank_detailOrderByWithAggregationInput = { + id?: Prisma.SortOrder + hour_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrder + used_time?: Prisma.SortOrder + ticket_id?: Prisma.SortOrderInput | Prisma.SortOrder + working_order?: Prisma.SortOrderInput | Prisma.SortOrder + detail?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.hour_bank_detailCountOrderByAggregateInput + _avg?: Prisma.hour_bank_detailAvgOrderByAggregateInput + _max?: Prisma.hour_bank_detailMaxOrderByAggregateInput + _min?: Prisma.hour_bank_detailMinOrderByAggregateInput + _sum?: Prisma.hour_bank_detailSumOrderByAggregateInput +} + +export type hour_bank_detailScalarWhereWithAggregatesInput = { + AND?: Prisma.hour_bank_detailScalarWhereWithAggregatesInput | Prisma.hour_bank_detailScalarWhereWithAggregatesInput[] + OR?: Prisma.hour_bank_detailScalarWhereWithAggregatesInput[] + NOT?: Prisma.hour_bank_detailScalarWhereWithAggregatesInput | Prisma.hour_bank_detailScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"hour_bank_detail"> | number + hour_id?: Prisma.IntWithAggregatesFilter<"hour_bank_detail"> | number + staff_id?: Prisma.BigIntNullableWithAggregatesFilter<"hour_bank_detail"> | bigint | number | null + date_orig?: Prisma.BigIntWithAggregatesFilter<"hour_bank_detail"> | bigint | number + used_time?: Prisma.IntWithAggregatesFilter<"hour_bank_detail"> | number + ticket_id?: Prisma.BigIntNullableWithAggregatesFilter<"hour_bank_detail"> | bigint | number | null + working_order?: Prisma.StringNullableWithAggregatesFilter<"hour_bank_detail"> | string | null + detail?: Prisma.StringNullableWithAggregatesFilter<"hour_bank_detail"> | string | null +} + +export type hour_bank_detailCreateInput = { + hour_id: number + staff_id?: bigint | number | null + date_orig: bigint | number + used_time?: number + ticket_id?: bigint | number | null + working_order?: string | null + detail?: string | null +} + +export type hour_bank_detailUncheckedCreateInput = { + id?: number + hour_id: number + staff_id?: bigint | number | null + date_orig: bigint | number + used_time?: number + ticket_id?: bigint | number | null + working_order?: string | null + detail?: string | null +} + +export type hour_bank_detailUpdateInput = { + hour_id?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + used_time?: Prisma.IntFieldUpdateOperationsInput | number + ticket_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type hour_bank_detailUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + hour_id?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + used_time?: Prisma.IntFieldUpdateOperationsInput | number + ticket_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type hour_bank_detailCreateManyInput = { + id?: number + hour_id: number + staff_id?: bigint | number | null + date_orig: bigint | number + used_time?: number + ticket_id?: bigint | number | null + working_order?: string | null + detail?: string | null +} + +export type hour_bank_detailUpdateManyMutationInput = { + hour_id?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + used_time?: Prisma.IntFieldUpdateOperationsInput | number + ticket_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type hour_bank_detailUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + hour_id?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + used_time?: Prisma.IntFieldUpdateOperationsInput | number + ticket_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type hour_bank_detailOrderByRelevanceInput = { + fields: Prisma.hour_bank_detailOrderByRelevanceFieldEnum | Prisma.hour_bank_detailOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type hour_bank_detailCountOrderByAggregateInput = { + id?: Prisma.SortOrder + hour_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + used_time?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + working_order?: Prisma.SortOrder + detail?: Prisma.SortOrder +} + +export type hour_bank_detailAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + hour_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + used_time?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder +} + +export type hour_bank_detailMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + hour_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + used_time?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + working_order?: Prisma.SortOrder + detail?: Prisma.SortOrder +} + +export type hour_bank_detailMinOrderByAggregateInput = { + id?: Prisma.SortOrder + hour_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + used_time?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + working_order?: Prisma.SortOrder + detail?: Prisma.SortOrder +} + +export type hour_bank_detailSumOrderByAggregateInput = { + id?: Prisma.SortOrder + hour_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + used_time?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder +} + + + +export type hour_bank_detailSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + hour_id?: boolean + staff_id?: boolean + date_orig?: boolean + used_time?: boolean + ticket_id?: boolean + working_order?: boolean + detail?: boolean +}, ExtArgs["result"]["hour_bank_detail"]> + + + +export type hour_bank_detailSelectScalar = { + id?: boolean + hour_id?: boolean + staff_id?: boolean + date_orig?: boolean + used_time?: boolean + ticket_id?: boolean + working_order?: boolean + detail?: boolean +} + +export type hour_bank_detailOmit = runtime.Types.Extensions.GetOmit<"id" | "hour_id" | "staff_id" | "date_orig" | "used_time" | "ticket_id" | "working_order" | "detail", ExtArgs["result"]["hour_bank_detail"]> + +export type $hour_bank_detailPayload = { + name: "hour_bank_detail" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + hour_id: number + staff_id: bigint | null + date_orig: bigint + used_time: number + ticket_id: bigint | null + working_order: string | null + detail: string | null + }, ExtArgs["result"]["hour_bank_detail"]> + composites: {} +} + +export type hour_bank_detailGetPayload = runtime.Types.Result.GetResult + +export type hour_bank_detailCountArgs = + Omit & { + select?: Hour_bank_detailCountAggregateInputType | true + } + +export interface hour_bank_detailDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['hour_bank_detail'], meta: { name: 'hour_bank_detail' } } + /** + * Find zero or one Hour_bank_detail that matches the filter. + * @param {hour_bank_detailFindUniqueArgs} args - Arguments to find a Hour_bank_detail + * @example + * // Get one Hour_bank_detail + * const hour_bank_detail = await prisma.hour_bank_detail.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Hour_bank_detail that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {hour_bank_detailFindUniqueOrThrowArgs} args - Arguments to find a Hour_bank_detail + * @example + * // Get one Hour_bank_detail + * const hour_bank_detail = await prisma.hour_bank_detail.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Hour_bank_detail 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 {hour_bank_detailFindFirstArgs} args - Arguments to find a Hour_bank_detail + * @example + * // Get one Hour_bank_detail + * const hour_bank_detail = await prisma.hour_bank_detail.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Hour_bank_detail 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 {hour_bank_detailFindFirstOrThrowArgs} args - Arguments to find a Hour_bank_detail + * @example + * // Get one Hour_bank_detail + * const hour_bank_detail = await prisma.hour_bank_detail.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Hour_bank_details 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 {hour_bank_detailFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Hour_bank_details + * const hour_bank_details = await prisma.hour_bank_detail.findMany() + * + * // Get first 10 Hour_bank_details + * const hour_bank_details = await prisma.hour_bank_detail.findMany({ take: 10 }) + * + * // Only select the `id` + * const hour_bank_detailWithIdOnly = await prisma.hour_bank_detail.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Hour_bank_detail. + * @param {hour_bank_detailCreateArgs} args - Arguments to create a Hour_bank_detail. + * @example + * // Create one Hour_bank_detail + * const Hour_bank_detail = await prisma.hour_bank_detail.create({ + * data: { + * // ... data to create a Hour_bank_detail + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Hour_bank_details. + * @param {hour_bank_detailCreateManyArgs} args - Arguments to create many Hour_bank_details. + * @example + * // Create many Hour_bank_details + * const hour_bank_detail = await prisma.hour_bank_detail.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Hour_bank_detail. + * @param {hour_bank_detailDeleteArgs} args - Arguments to delete one Hour_bank_detail. + * @example + * // Delete one Hour_bank_detail + * const Hour_bank_detail = await prisma.hour_bank_detail.delete({ + * where: { + * // ... filter to delete one Hour_bank_detail + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Hour_bank_detail. + * @param {hour_bank_detailUpdateArgs} args - Arguments to update one Hour_bank_detail. + * @example + * // Update one Hour_bank_detail + * const hour_bank_detail = await prisma.hour_bank_detail.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Hour_bank_details. + * @param {hour_bank_detailDeleteManyArgs} args - Arguments to filter Hour_bank_details to delete. + * @example + * // Delete a few Hour_bank_details + * const { count } = await prisma.hour_bank_detail.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Hour_bank_details. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {hour_bank_detailUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Hour_bank_details + * const hour_bank_detail = await prisma.hour_bank_detail.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Hour_bank_detail. + * @param {hour_bank_detailUpsertArgs} args - Arguments to update or create a Hour_bank_detail. + * @example + * // Update or create a Hour_bank_detail + * const hour_bank_detail = await prisma.hour_bank_detail.upsert({ + * create: { + * // ... data to create a Hour_bank_detail + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Hour_bank_detail we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Hour_bank_details. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {hour_bank_detailCountArgs} args - Arguments to filter Hour_bank_details to count. + * @example + * // Count the number of Hour_bank_details + * const count = await prisma.hour_bank_detail.count({ + * where: { + * // ... the filter for the Hour_bank_details 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 Hour_bank_detail. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Hour_bank_detailAggregateArgs} 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 Hour_bank_detail. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {hour_bank_detailGroupByArgs} 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 hour_bank_detailGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: hour_bank_detailGroupByArgs['orderBy'] } + : { orderBy?: hour_bank_detailGroupByArgs['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 ? GetHour_bank_detailGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the hour_bank_detail model + */ +readonly fields: hour_bank_detailFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for hour_bank_detail. + * 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__hour_bank_detailClient 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 hour_bank_detail model + */ +export interface hour_bank_detailFieldRefs { + readonly id: Prisma.FieldRef<"hour_bank_detail", 'Int'> + readonly hour_id: Prisma.FieldRef<"hour_bank_detail", 'Int'> + readonly staff_id: Prisma.FieldRef<"hour_bank_detail", 'BigInt'> + readonly date_orig: Prisma.FieldRef<"hour_bank_detail", 'BigInt'> + readonly used_time: Prisma.FieldRef<"hour_bank_detail", 'Int'> + readonly ticket_id: Prisma.FieldRef<"hour_bank_detail", 'BigInt'> + readonly working_order: Prisma.FieldRef<"hour_bank_detail", 'String'> + readonly detail: Prisma.FieldRef<"hour_bank_detail", 'String'> +} + + +// Custom InputTypes +/** + * hour_bank_detail findUnique + */ +export type hour_bank_detailFindUniqueArgs = { + /** + * Select specific fields to fetch from the hour_bank_detail + */ + select?: Prisma.hour_bank_detailSelect | null + /** + * Omit specific fields from the hour_bank_detail + */ + omit?: Prisma.hour_bank_detailOmit | null + /** + * Filter, which hour_bank_detail to fetch. + */ + where: Prisma.hour_bank_detailWhereUniqueInput +} + +/** + * hour_bank_detail findUniqueOrThrow + */ +export type hour_bank_detailFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the hour_bank_detail + */ + select?: Prisma.hour_bank_detailSelect | null + /** + * Omit specific fields from the hour_bank_detail + */ + omit?: Prisma.hour_bank_detailOmit | null + /** + * Filter, which hour_bank_detail to fetch. + */ + where: Prisma.hour_bank_detailWhereUniqueInput +} + +/** + * hour_bank_detail findFirst + */ +export type hour_bank_detailFindFirstArgs = { + /** + * Select specific fields to fetch from the hour_bank_detail + */ + select?: Prisma.hour_bank_detailSelect | null + /** + * Omit specific fields from the hour_bank_detail + */ + omit?: Prisma.hour_bank_detailOmit | null + /** + * Filter, which hour_bank_detail to fetch. + */ + where?: Prisma.hour_bank_detailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of hour_bank_details to fetch. + */ + orderBy?: Prisma.hour_bank_detailOrderByWithRelationInput | Prisma.hour_bank_detailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for hour_bank_details. + */ + cursor?: Prisma.hour_bank_detailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` hour_bank_details 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` hour_bank_details. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of hour_bank_details. + */ + distinct?: Prisma.Hour_bank_detailScalarFieldEnum | Prisma.Hour_bank_detailScalarFieldEnum[] +} + +/** + * hour_bank_detail findFirstOrThrow + */ +export type hour_bank_detailFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the hour_bank_detail + */ + select?: Prisma.hour_bank_detailSelect | null + /** + * Omit specific fields from the hour_bank_detail + */ + omit?: Prisma.hour_bank_detailOmit | null + /** + * Filter, which hour_bank_detail to fetch. + */ + where?: Prisma.hour_bank_detailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of hour_bank_details to fetch. + */ + orderBy?: Prisma.hour_bank_detailOrderByWithRelationInput | Prisma.hour_bank_detailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for hour_bank_details. + */ + cursor?: Prisma.hour_bank_detailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` hour_bank_details 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` hour_bank_details. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of hour_bank_details. + */ + distinct?: Prisma.Hour_bank_detailScalarFieldEnum | Prisma.Hour_bank_detailScalarFieldEnum[] +} + +/** + * hour_bank_detail findMany + */ +export type hour_bank_detailFindManyArgs = { + /** + * Select specific fields to fetch from the hour_bank_detail + */ + select?: Prisma.hour_bank_detailSelect | null + /** + * Omit specific fields from the hour_bank_detail + */ + omit?: Prisma.hour_bank_detailOmit | null + /** + * Filter, which hour_bank_details to fetch. + */ + where?: Prisma.hour_bank_detailWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of hour_bank_details to fetch. + */ + orderBy?: Prisma.hour_bank_detailOrderByWithRelationInput | Prisma.hour_bank_detailOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing hour_bank_details. + */ + cursor?: Prisma.hour_bank_detailWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` hour_bank_details 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` hour_bank_details. + */ + skip?: number + distinct?: Prisma.Hour_bank_detailScalarFieldEnum | Prisma.Hour_bank_detailScalarFieldEnum[] +} + +/** + * hour_bank_detail create + */ +export type hour_bank_detailCreateArgs = { + /** + * Select specific fields to fetch from the hour_bank_detail + */ + select?: Prisma.hour_bank_detailSelect | null + /** + * Omit specific fields from the hour_bank_detail + */ + omit?: Prisma.hour_bank_detailOmit | null + /** + * The data needed to create a hour_bank_detail. + */ + data: Prisma.XOR +} + +/** + * hour_bank_detail createMany + */ +export type hour_bank_detailCreateManyArgs = { + /** + * The data used to create many hour_bank_details. + */ + data: Prisma.hour_bank_detailCreateManyInput | Prisma.hour_bank_detailCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * hour_bank_detail update + */ +export type hour_bank_detailUpdateArgs = { + /** + * Select specific fields to fetch from the hour_bank_detail + */ + select?: Prisma.hour_bank_detailSelect | null + /** + * Omit specific fields from the hour_bank_detail + */ + omit?: Prisma.hour_bank_detailOmit | null + /** + * The data needed to update a hour_bank_detail. + */ + data: Prisma.XOR + /** + * Choose, which hour_bank_detail to update. + */ + where: Prisma.hour_bank_detailWhereUniqueInput +} + +/** + * hour_bank_detail updateMany + */ +export type hour_bank_detailUpdateManyArgs = { + /** + * The data used to update hour_bank_details. + */ + data: Prisma.XOR + /** + * Filter which hour_bank_details to update + */ + where?: Prisma.hour_bank_detailWhereInput + /** + * Limit how many hour_bank_details to update. + */ + limit?: number +} + +/** + * hour_bank_detail upsert + */ +export type hour_bank_detailUpsertArgs = { + /** + * Select specific fields to fetch from the hour_bank_detail + */ + select?: Prisma.hour_bank_detailSelect | null + /** + * Omit specific fields from the hour_bank_detail + */ + omit?: Prisma.hour_bank_detailOmit | null + /** + * The filter to search for the hour_bank_detail to update in case it exists. + */ + where: Prisma.hour_bank_detailWhereUniqueInput + /** + * In case the hour_bank_detail found by the `where` argument doesn't exist, create a new hour_bank_detail with this data. + */ + create: Prisma.XOR + /** + * In case the hour_bank_detail was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * hour_bank_detail delete + */ +export type hour_bank_detailDeleteArgs = { + /** + * Select specific fields to fetch from the hour_bank_detail + */ + select?: Prisma.hour_bank_detailSelect | null + /** + * Omit specific fields from the hour_bank_detail + */ + omit?: Prisma.hour_bank_detailOmit | null + /** + * Filter which hour_bank_detail to delete. + */ + where: Prisma.hour_bank_detailWhereUniqueInput +} + +/** + * hour_bank_detail deleteMany + */ +export type hour_bank_detailDeleteManyArgs = { + /** + * Filter which hour_bank_details to delete + */ + where?: Prisma.hour_bank_detailWhereInput + /** + * Limit how many hour_bank_details to delete. + */ + limit?: number +} + +/** + * hour_bank_detail without action + */ +export type hour_bank_detailDefaultArgs = { + /** + * Select specific fields to fetch from the hour_bank_detail + */ + select?: Prisma.hour_bank_detailSelect | null + /** + * Omit specific fields from the hour_bank_detail + */ + omit?: Prisma.hour_bank_detailOmit | null +} diff --git a/prisma/generated/mariadb/models/intranet_doc.ts b/prisma/generated/mariadb/models/intranet_doc.ts new file mode 100644 index 0000000..40d7b22 --- /dev/null +++ b/prisma/generated/mariadb/models/intranet_doc.ts @@ -0,0 +1,1236 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `intranet_doc` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model intranet_doc + * + */ +export type intranet_docModel = runtime.Types.Result.DefaultSelection + +export type AggregateIntranet_doc = { + _count: Intranet_docCountAggregateOutputType | null + _avg: Intranet_docAvgAggregateOutputType | null + _sum: Intranet_docSumAggregateOutputType | null + _min: Intranet_docMinAggregateOutputType | null + _max: Intranet_docMaxAggregateOutputType | null +} + +export type Intranet_docAvgAggregateOutputType = { + id: number | null + account_id: number | null + date: number | null + path_id: number | null + priority_order: number | null +} + +export type Intranet_docSumAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date: bigint | null + path_id: number | null + priority_order: number | null +} + +export type Intranet_docMinAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date: bigint | null + title: string | null + msg: string | null + attachment: string | null + unread_csv: string | null + path_id: number | null + priority_order: number | null + update_timestamp: Date | null +} + +export type Intranet_docMaxAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date: bigint | null + title: string | null + msg: string | null + attachment: string | null + unread_csv: string | null + path_id: number | null + priority_order: number | null + update_timestamp: Date | null +} + +export type Intranet_docCountAggregateOutputType = { + id: number + account_id: number + date: number + title: number + msg: number + attachment: number + unread_csv: number + path_id: number + priority_order: number + update_timestamp: number + _all: number +} + + +export type Intranet_docAvgAggregateInputType = { + id?: true + account_id?: true + date?: true + path_id?: true + priority_order?: true +} + +export type Intranet_docSumAggregateInputType = { + id?: true + account_id?: true + date?: true + path_id?: true + priority_order?: true +} + +export type Intranet_docMinAggregateInputType = { + id?: true + account_id?: true + date?: true + title?: true + msg?: true + attachment?: true + unread_csv?: true + path_id?: true + priority_order?: true + update_timestamp?: true +} + +export type Intranet_docMaxAggregateInputType = { + id?: true + account_id?: true + date?: true + title?: true + msg?: true + attachment?: true + unread_csv?: true + path_id?: true + priority_order?: true + update_timestamp?: true +} + +export type Intranet_docCountAggregateInputType = { + id?: true + account_id?: true + date?: true + title?: true + msg?: true + attachment?: true + unread_csv?: true + path_id?: true + priority_order?: true + update_timestamp?: true + _all?: true +} + +export type Intranet_docAggregateArgs = { + /** + * Filter which intranet_doc to aggregate. + */ + where?: Prisma.intranet_docWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_docs to fetch. + */ + orderBy?: Prisma.intranet_docOrderByWithRelationInput | Prisma.intranet_docOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.intranet_docWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_docs 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` intranet_docs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned intranet_docs + **/ + _count?: true | Intranet_docCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Intranet_docAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Intranet_docSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Intranet_docMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Intranet_docMaxAggregateInputType +} + +export type GetIntranet_docAggregateType = { + [P in keyof T & keyof AggregateIntranet_doc]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type intranet_docGroupByArgs = { + where?: Prisma.intranet_docWhereInput + orderBy?: Prisma.intranet_docOrderByWithAggregationInput | Prisma.intranet_docOrderByWithAggregationInput[] + by: Prisma.Intranet_docScalarFieldEnum[] | Prisma.Intranet_docScalarFieldEnum + having?: Prisma.intranet_docScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Intranet_docCountAggregateInputType | true + _avg?: Intranet_docAvgAggregateInputType + _sum?: Intranet_docSumAggregateInputType + _min?: Intranet_docMinAggregateInputType + _max?: Intranet_docMaxAggregateInputType +} + +export type Intranet_docGroupByOutputType = { + id: bigint + account_id: bigint + date: bigint + title: string + msg: string + attachment: string + unread_csv: string + path_id: number + priority_order: number + update_timestamp: Date + _count: Intranet_docCountAggregateOutputType | null + _avg: Intranet_docAvgAggregateOutputType | null + _sum: Intranet_docSumAggregateOutputType | null + _min: Intranet_docMinAggregateOutputType | null + _max: Intranet_docMaxAggregateOutputType | null +} + +type GetIntranet_docGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Intranet_docGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type intranet_docWhereInput = { + AND?: Prisma.intranet_docWhereInput | Prisma.intranet_docWhereInput[] + OR?: Prisma.intranet_docWhereInput[] + NOT?: Prisma.intranet_docWhereInput | Prisma.intranet_docWhereInput[] + id?: Prisma.BigIntFilter<"intranet_doc"> | bigint | number + account_id?: Prisma.BigIntFilter<"intranet_doc"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_doc"> | bigint | number + title?: Prisma.StringFilter<"intranet_doc"> | string + msg?: Prisma.StringFilter<"intranet_doc"> | string + attachment?: Prisma.StringFilter<"intranet_doc"> | string + unread_csv?: Prisma.StringFilter<"intranet_doc"> | string + path_id?: Prisma.IntFilter<"intranet_doc"> | number + priority_order?: Prisma.IntFilter<"intranet_doc"> | number + update_timestamp?: Prisma.DateTimeFilter<"intranet_doc"> | Date | string +} + +export type intranet_docOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder + path_id?: Prisma.SortOrder + priority_order?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder + _relevance?: Prisma.intranet_docOrderByRelevanceInput +} + +export type intranet_docWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.intranet_docWhereInput | Prisma.intranet_docWhereInput[] + OR?: Prisma.intranet_docWhereInput[] + NOT?: Prisma.intranet_docWhereInput | Prisma.intranet_docWhereInput[] + account_id?: Prisma.BigIntFilter<"intranet_doc"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_doc"> | bigint | number + title?: Prisma.StringFilter<"intranet_doc"> | string + msg?: Prisma.StringFilter<"intranet_doc"> | string + attachment?: Prisma.StringFilter<"intranet_doc"> | string + unread_csv?: Prisma.StringFilter<"intranet_doc"> | string + path_id?: Prisma.IntFilter<"intranet_doc"> | number + priority_order?: Prisma.IntFilter<"intranet_doc"> | number + update_timestamp?: Prisma.DateTimeFilter<"intranet_doc"> | Date | string +}, "id"> + +export type intranet_docOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder + path_id?: Prisma.SortOrder + priority_order?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder + _count?: Prisma.intranet_docCountOrderByAggregateInput + _avg?: Prisma.intranet_docAvgOrderByAggregateInput + _max?: Prisma.intranet_docMaxOrderByAggregateInput + _min?: Prisma.intranet_docMinOrderByAggregateInput + _sum?: Prisma.intranet_docSumOrderByAggregateInput +} + +export type intranet_docScalarWhereWithAggregatesInput = { + AND?: Prisma.intranet_docScalarWhereWithAggregatesInput | Prisma.intranet_docScalarWhereWithAggregatesInput[] + OR?: Prisma.intranet_docScalarWhereWithAggregatesInput[] + NOT?: Prisma.intranet_docScalarWhereWithAggregatesInput | Prisma.intranet_docScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"intranet_doc"> | bigint | number + account_id?: Prisma.BigIntWithAggregatesFilter<"intranet_doc"> | bigint | number + date?: Prisma.BigIntWithAggregatesFilter<"intranet_doc"> | bigint | number + title?: Prisma.StringWithAggregatesFilter<"intranet_doc"> | string + msg?: Prisma.StringWithAggregatesFilter<"intranet_doc"> | string + attachment?: Prisma.StringWithAggregatesFilter<"intranet_doc"> | string + unread_csv?: Prisma.StringWithAggregatesFilter<"intranet_doc"> | string + path_id?: Prisma.IntWithAggregatesFilter<"intranet_doc"> | number + priority_order?: Prisma.IntWithAggregatesFilter<"intranet_doc"> | number + update_timestamp?: Prisma.DateTimeWithAggregatesFilter<"intranet_doc"> | Date | string +} + +export type intranet_docCreateInput = { + id?: bigint | number + account_id: bigint | number + date: bigint | number + title: string + msg: string + attachment: string + unread_csv: string + path_id: number + priority_order?: number + update_timestamp?: Date | string +} + +export type intranet_docUncheckedCreateInput = { + id?: bigint | number + account_id: bigint | number + date: bigint | number + title: string + msg: string + attachment: string + unread_csv: string + path_id: number + priority_order?: number + update_timestamp?: Date | string +} + +export type intranet_docUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string + path_id?: Prisma.IntFieldUpdateOperationsInput | number + priority_order?: Prisma.IntFieldUpdateOperationsInput | number + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type intranet_docUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string + path_id?: Prisma.IntFieldUpdateOperationsInput | number + priority_order?: Prisma.IntFieldUpdateOperationsInput | number + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type intranet_docCreateManyInput = { + id?: bigint | number + account_id: bigint | number + date: bigint | number + title: string + msg: string + attachment: string + unread_csv: string + path_id: number + priority_order?: number + update_timestamp?: Date | string +} + +export type intranet_docUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string + path_id?: Prisma.IntFieldUpdateOperationsInput | number + priority_order?: Prisma.IntFieldUpdateOperationsInput | number + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type intranet_docUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string + path_id?: Prisma.IntFieldUpdateOperationsInput | number + priority_order?: Prisma.IntFieldUpdateOperationsInput | number + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type intranet_docOrderByRelevanceInput = { + fields: Prisma.intranet_docOrderByRelevanceFieldEnum | Prisma.intranet_docOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type intranet_docCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder + path_id?: Prisma.SortOrder + priority_order?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder +} + +export type intranet_docAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + path_id?: Prisma.SortOrder + priority_order?: Prisma.SortOrder +} + +export type intranet_docMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder + path_id?: Prisma.SortOrder + priority_order?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder +} + +export type intranet_docMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder + path_id?: Prisma.SortOrder + priority_order?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder +} + +export type intranet_docSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + path_id?: Prisma.SortOrder + priority_order?: Prisma.SortOrder +} + + + +export type intranet_docSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + date?: boolean + title?: boolean + msg?: boolean + attachment?: boolean + unread_csv?: boolean + path_id?: boolean + priority_order?: boolean + update_timestamp?: boolean +}, ExtArgs["result"]["intranet_doc"]> + + + +export type intranet_docSelectScalar = { + id?: boolean + account_id?: boolean + date?: boolean + title?: boolean + msg?: boolean + attachment?: boolean + unread_csv?: boolean + path_id?: boolean + priority_order?: boolean + update_timestamp?: boolean +} + +export type intranet_docOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date" | "title" | "msg" | "attachment" | "unread_csv" | "path_id" | "priority_order" | "update_timestamp", ExtArgs["result"]["intranet_doc"]> + +export type $intranet_docPayload = { + name: "intranet_doc" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + account_id: bigint + date: bigint + title: string + msg: string + attachment: string + unread_csv: string + path_id: number + priority_order: number + update_timestamp: Date + }, ExtArgs["result"]["intranet_doc"]> + composites: {} +} + +export type intranet_docGetPayload = runtime.Types.Result.GetResult + +export type intranet_docCountArgs = + Omit & { + select?: Intranet_docCountAggregateInputType | true + } + +export interface intranet_docDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['intranet_doc'], meta: { name: 'intranet_doc' } } + /** + * Find zero or one Intranet_doc that matches the filter. + * @param {intranet_docFindUniqueArgs} args - Arguments to find a Intranet_doc + * @example + * // Get one Intranet_doc + * const intranet_doc = await prisma.intranet_doc.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Intranet_doc that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {intranet_docFindUniqueOrThrowArgs} args - Arguments to find a Intranet_doc + * @example + * // Get one Intranet_doc + * const intranet_doc = await prisma.intranet_doc.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_doc 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 {intranet_docFindFirstArgs} args - Arguments to find a Intranet_doc + * @example + * // Get one Intranet_doc + * const intranet_doc = await prisma.intranet_doc.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_doc 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 {intranet_docFindFirstOrThrowArgs} args - Arguments to find a Intranet_doc + * @example + * // Get one Intranet_doc + * const intranet_doc = await prisma.intranet_doc.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Intranet_docs 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 {intranet_docFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Intranet_docs + * const intranet_docs = await prisma.intranet_doc.findMany() + * + * // Get first 10 Intranet_docs + * const intranet_docs = await prisma.intranet_doc.findMany({ take: 10 }) + * + * // Only select the `id` + * const intranet_docWithIdOnly = await prisma.intranet_doc.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Intranet_doc. + * @param {intranet_docCreateArgs} args - Arguments to create a Intranet_doc. + * @example + * // Create one Intranet_doc + * const Intranet_doc = await prisma.intranet_doc.create({ + * data: { + * // ... data to create a Intranet_doc + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Intranet_docs. + * @param {intranet_docCreateManyArgs} args - Arguments to create many Intranet_docs. + * @example + * // Create many Intranet_docs + * const intranet_doc = await prisma.intranet_doc.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Intranet_doc. + * @param {intranet_docDeleteArgs} args - Arguments to delete one Intranet_doc. + * @example + * // Delete one Intranet_doc + * const Intranet_doc = await prisma.intranet_doc.delete({ + * where: { + * // ... filter to delete one Intranet_doc + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Intranet_doc. + * @param {intranet_docUpdateArgs} args - Arguments to update one Intranet_doc. + * @example + * // Update one Intranet_doc + * const intranet_doc = await prisma.intranet_doc.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Intranet_docs. + * @param {intranet_docDeleteManyArgs} args - Arguments to filter Intranet_docs to delete. + * @example + * // Delete a few Intranet_docs + * const { count } = await prisma.intranet_doc.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Intranet_docs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_docUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Intranet_docs + * const intranet_doc = await prisma.intranet_doc.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Intranet_doc. + * @param {intranet_docUpsertArgs} args - Arguments to update or create a Intranet_doc. + * @example + * // Update or create a Intranet_doc + * const intranet_doc = await prisma.intranet_doc.upsert({ + * create: { + * // ... data to create a Intranet_doc + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Intranet_doc we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Intranet_docs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_docCountArgs} args - Arguments to filter Intranet_docs to count. + * @example + * // Count the number of Intranet_docs + * const count = await prisma.intranet_doc.count({ + * where: { + * // ... the filter for the Intranet_docs 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 Intranet_doc. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Intranet_docAggregateArgs} 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 Intranet_doc. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_docGroupByArgs} 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 intranet_docGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: intranet_docGroupByArgs['orderBy'] } + : { orderBy?: intranet_docGroupByArgs['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 ? GetIntranet_docGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the intranet_doc model + */ +readonly fields: intranet_docFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for intranet_doc. + * 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__intranet_docClient 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 intranet_doc model + */ +export interface intranet_docFieldRefs { + readonly id: Prisma.FieldRef<"intranet_doc", 'BigInt'> + readonly account_id: Prisma.FieldRef<"intranet_doc", 'BigInt'> + readonly date: Prisma.FieldRef<"intranet_doc", 'BigInt'> + readonly title: Prisma.FieldRef<"intranet_doc", 'String'> + readonly msg: Prisma.FieldRef<"intranet_doc", 'String'> + readonly attachment: Prisma.FieldRef<"intranet_doc", 'String'> + readonly unread_csv: Prisma.FieldRef<"intranet_doc", 'String'> + readonly path_id: Prisma.FieldRef<"intranet_doc", 'Int'> + readonly priority_order: Prisma.FieldRef<"intranet_doc", 'Int'> + readonly update_timestamp: Prisma.FieldRef<"intranet_doc", 'DateTime'> +} + + +// Custom InputTypes +/** + * intranet_doc findUnique + */ +export type intranet_docFindUniqueArgs = { + /** + * Select specific fields to fetch from the intranet_doc + */ + select?: Prisma.intranet_docSelect | null + /** + * Omit specific fields from the intranet_doc + */ + omit?: Prisma.intranet_docOmit | null + /** + * Filter, which intranet_doc to fetch. + */ + where: Prisma.intranet_docWhereUniqueInput +} + +/** + * intranet_doc findUniqueOrThrow + */ +export type intranet_docFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_doc + */ + select?: Prisma.intranet_docSelect | null + /** + * Omit specific fields from the intranet_doc + */ + omit?: Prisma.intranet_docOmit | null + /** + * Filter, which intranet_doc to fetch. + */ + where: Prisma.intranet_docWhereUniqueInput +} + +/** + * intranet_doc findFirst + */ +export type intranet_docFindFirstArgs = { + /** + * Select specific fields to fetch from the intranet_doc + */ + select?: Prisma.intranet_docSelect | null + /** + * Omit specific fields from the intranet_doc + */ + omit?: Prisma.intranet_docOmit | null + /** + * Filter, which intranet_doc to fetch. + */ + where?: Prisma.intranet_docWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_docs to fetch. + */ + orderBy?: Prisma.intranet_docOrderByWithRelationInput | Prisma.intranet_docOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_docs. + */ + cursor?: Prisma.intranet_docWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_docs 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` intranet_docs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_docs. + */ + distinct?: Prisma.Intranet_docScalarFieldEnum | Prisma.Intranet_docScalarFieldEnum[] +} + +/** + * intranet_doc findFirstOrThrow + */ +export type intranet_docFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_doc + */ + select?: Prisma.intranet_docSelect | null + /** + * Omit specific fields from the intranet_doc + */ + omit?: Prisma.intranet_docOmit | null + /** + * Filter, which intranet_doc to fetch. + */ + where?: Prisma.intranet_docWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_docs to fetch. + */ + orderBy?: Prisma.intranet_docOrderByWithRelationInput | Prisma.intranet_docOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_docs. + */ + cursor?: Prisma.intranet_docWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_docs 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` intranet_docs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_docs. + */ + distinct?: Prisma.Intranet_docScalarFieldEnum | Prisma.Intranet_docScalarFieldEnum[] +} + +/** + * intranet_doc findMany + */ +export type intranet_docFindManyArgs = { + /** + * Select specific fields to fetch from the intranet_doc + */ + select?: Prisma.intranet_docSelect | null + /** + * Omit specific fields from the intranet_doc + */ + omit?: Prisma.intranet_docOmit | null + /** + * Filter, which intranet_docs to fetch. + */ + where?: Prisma.intranet_docWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_docs to fetch. + */ + orderBy?: Prisma.intranet_docOrderByWithRelationInput | Prisma.intranet_docOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing intranet_docs. + */ + cursor?: Prisma.intranet_docWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_docs 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` intranet_docs. + */ + skip?: number + distinct?: Prisma.Intranet_docScalarFieldEnum | Prisma.Intranet_docScalarFieldEnum[] +} + +/** + * intranet_doc create + */ +export type intranet_docCreateArgs = { + /** + * Select specific fields to fetch from the intranet_doc + */ + select?: Prisma.intranet_docSelect | null + /** + * Omit specific fields from the intranet_doc + */ + omit?: Prisma.intranet_docOmit | null + /** + * The data needed to create a intranet_doc. + */ + data: Prisma.XOR +} + +/** + * intranet_doc createMany + */ +export type intranet_docCreateManyArgs = { + /** + * The data used to create many intranet_docs. + */ + data: Prisma.intranet_docCreateManyInput | Prisma.intranet_docCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * intranet_doc update + */ +export type intranet_docUpdateArgs = { + /** + * Select specific fields to fetch from the intranet_doc + */ + select?: Prisma.intranet_docSelect | null + /** + * Omit specific fields from the intranet_doc + */ + omit?: Prisma.intranet_docOmit | null + /** + * The data needed to update a intranet_doc. + */ + data: Prisma.XOR + /** + * Choose, which intranet_doc to update. + */ + where: Prisma.intranet_docWhereUniqueInput +} + +/** + * intranet_doc updateMany + */ +export type intranet_docUpdateManyArgs = { + /** + * The data used to update intranet_docs. + */ + data: Prisma.XOR + /** + * Filter which intranet_docs to update + */ + where?: Prisma.intranet_docWhereInput + /** + * Limit how many intranet_docs to update. + */ + limit?: number +} + +/** + * intranet_doc upsert + */ +export type intranet_docUpsertArgs = { + /** + * Select specific fields to fetch from the intranet_doc + */ + select?: Prisma.intranet_docSelect | null + /** + * Omit specific fields from the intranet_doc + */ + omit?: Prisma.intranet_docOmit | null + /** + * The filter to search for the intranet_doc to update in case it exists. + */ + where: Prisma.intranet_docWhereUniqueInput + /** + * In case the intranet_doc found by the `where` argument doesn't exist, create a new intranet_doc with this data. + */ + create: Prisma.XOR + /** + * In case the intranet_doc was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * intranet_doc delete + */ +export type intranet_docDeleteArgs = { + /** + * Select specific fields to fetch from the intranet_doc + */ + select?: Prisma.intranet_docSelect | null + /** + * Omit specific fields from the intranet_doc + */ + omit?: Prisma.intranet_docOmit | null + /** + * Filter which intranet_doc to delete. + */ + where: Prisma.intranet_docWhereUniqueInput +} + +/** + * intranet_doc deleteMany + */ +export type intranet_docDeleteManyArgs = { + /** + * Filter which intranet_docs to delete + */ + where?: Prisma.intranet_docWhereInput + /** + * Limit how many intranet_docs to delete. + */ + limit?: number +} + +/** + * intranet_doc without action + */ +export type intranet_docDefaultArgs = { + /** + * Select specific fields to fetch from the intranet_doc + */ + select?: Prisma.intranet_docSelect | null + /** + * Omit specific fields from the intranet_doc + */ + omit?: Prisma.intranet_docOmit | null +} diff --git a/prisma/generated/mariadb/models/intranet_doc_paths.ts b/prisma/generated/mariadb/models/intranet_doc_paths.ts new file mode 100644 index 0000000..a932437 --- /dev/null +++ b/prisma/generated/mariadb/models/intranet_doc_paths.ts @@ -0,0 +1,1065 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `intranet_doc_paths` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model intranet_doc_paths + * + */ +export type intranet_doc_pathsModel = runtime.Types.Result.DefaultSelection + +export type AggregateIntranet_doc_paths = { + _count: Intranet_doc_pathsCountAggregateOutputType | null + _avg: Intranet_doc_pathsAvgAggregateOutputType | null + _sum: Intranet_doc_pathsSumAggregateOutputType | null + _min: Intranet_doc_pathsMinAggregateOutputType | null + _max: Intranet_doc_pathsMaxAggregateOutputType | null +} + +export type Intranet_doc_pathsAvgAggregateOutputType = { + id: number | null + parent_id: number | null + priority_order: number | null +} + +export type Intranet_doc_pathsSumAggregateOutputType = { + id: number | null + parent_id: number | null + priority_order: number | null +} + +export type Intranet_doc_pathsMinAggregateOutputType = { + id: number | null + description: string | null + parent_id: number | null + priority_order: number | null +} + +export type Intranet_doc_pathsMaxAggregateOutputType = { + id: number | null + description: string | null + parent_id: number | null + priority_order: number | null +} + +export type Intranet_doc_pathsCountAggregateOutputType = { + id: number + description: number + parent_id: number + priority_order: number + _all: number +} + + +export type Intranet_doc_pathsAvgAggregateInputType = { + id?: true + parent_id?: true + priority_order?: true +} + +export type Intranet_doc_pathsSumAggregateInputType = { + id?: true + parent_id?: true + priority_order?: true +} + +export type Intranet_doc_pathsMinAggregateInputType = { + id?: true + description?: true + parent_id?: true + priority_order?: true +} + +export type Intranet_doc_pathsMaxAggregateInputType = { + id?: true + description?: true + parent_id?: true + priority_order?: true +} + +export type Intranet_doc_pathsCountAggregateInputType = { + id?: true + description?: true + parent_id?: true + priority_order?: true + _all?: true +} + +export type Intranet_doc_pathsAggregateArgs = { + /** + * Filter which intranet_doc_paths to aggregate. + */ + where?: Prisma.intranet_doc_pathsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_doc_paths to fetch. + */ + orderBy?: Prisma.intranet_doc_pathsOrderByWithRelationInput | Prisma.intranet_doc_pathsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.intranet_doc_pathsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_doc_paths 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` intranet_doc_paths. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned intranet_doc_paths + **/ + _count?: true | Intranet_doc_pathsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Intranet_doc_pathsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Intranet_doc_pathsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Intranet_doc_pathsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Intranet_doc_pathsMaxAggregateInputType +} + +export type GetIntranet_doc_pathsAggregateType = { + [P in keyof T & keyof AggregateIntranet_doc_paths]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type intranet_doc_pathsGroupByArgs = { + where?: Prisma.intranet_doc_pathsWhereInput + orderBy?: Prisma.intranet_doc_pathsOrderByWithAggregationInput | Prisma.intranet_doc_pathsOrderByWithAggregationInput[] + by: Prisma.Intranet_doc_pathsScalarFieldEnum[] | Prisma.Intranet_doc_pathsScalarFieldEnum + having?: Prisma.intranet_doc_pathsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Intranet_doc_pathsCountAggregateInputType | true + _avg?: Intranet_doc_pathsAvgAggregateInputType + _sum?: Intranet_doc_pathsSumAggregateInputType + _min?: Intranet_doc_pathsMinAggregateInputType + _max?: Intranet_doc_pathsMaxAggregateInputType +} + +export type Intranet_doc_pathsGroupByOutputType = { + id: number + description: string + parent_id: number | null + priority_order: number + _count: Intranet_doc_pathsCountAggregateOutputType | null + _avg: Intranet_doc_pathsAvgAggregateOutputType | null + _sum: Intranet_doc_pathsSumAggregateOutputType | null + _min: Intranet_doc_pathsMinAggregateOutputType | null + _max: Intranet_doc_pathsMaxAggregateOutputType | null +} + +type GetIntranet_doc_pathsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Intranet_doc_pathsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type intranet_doc_pathsWhereInput = { + AND?: Prisma.intranet_doc_pathsWhereInput | Prisma.intranet_doc_pathsWhereInput[] + OR?: Prisma.intranet_doc_pathsWhereInput[] + NOT?: Prisma.intranet_doc_pathsWhereInput | Prisma.intranet_doc_pathsWhereInput[] + id?: Prisma.IntFilter<"intranet_doc_paths"> | number + description?: Prisma.StringFilter<"intranet_doc_paths"> | string + parent_id?: Prisma.IntNullableFilter<"intranet_doc_paths"> | number | null + priority_order?: Prisma.IntFilter<"intranet_doc_paths"> | number +} + +export type intranet_doc_pathsOrderByWithRelationInput = { + id?: Prisma.SortOrder + description?: Prisma.SortOrder + parent_id?: Prisma.SortOrderInput | Prisma.SortOrder + priority_order?: Prisma.SortOrder + _relevance?: Prisma.intranet_doc_pathsOrderByRelevanceInput +} + +export type intranet_doc_pathsWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.intranet_doc_pathsWhereInput | Prisma.intranet_doc_pathsWhereInput[] + OR?: Prisma.intranet_doc_pathsWhereInput[] + NOT?: Prisma.intranet_doc_pathsWhereInput | Prisma.intranet_doc_pathsWhereInput[] + description?: Prisma.StringFilter<"intranet_doc_paths"> | string + parent_id?: Prisma.IntNullableFilter<"intranet_doc_paths"> | number | null + priority_order?: Prisma.IntFilter<"intranet_doc_paths"> | number +}, "id"> + +export type intranet_doc_pathsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + description?: Prisma.SortOrder + parent_id?: Prisma.SortOrderInput | Prisma.SortOrder + priority_order?: Prisma.SortOrder + _count?: Prisma.intranet_doc_pathsCountOrderByAggregateInput + _avg?: Prisma.intranet_doc_pathsAvgOrderByAggregateInput + _max?: Prisma.intranet_doc_pathsMaxOrderByAggregateInput + _min?: Prisma.intranet_doc_pathsMinOrderByAggregateInput + _sum?: Prisma.intranet_doc_pathsSumOrderByAggregateInput +} + +export type intranet_doc_pathsScalarWhereWithAggregatesInput = { + AND?: Prisma.intranet_doc_pathsScalarWhereWithAggregatesInput | Prisma.intranet_doc_pathsScalarWhereWithAggregatesInput[] + OR?: Prisma.intranet_doc_pathsScalarWhereWithAggregatesInput[] + NOT?: Prisma.intranet_doc_pathsScalarWhereWithAggregatesInput | Prisma.intranet_doc_pathsScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"intranet_doc_paths"> | number + description?: Prisma.StringWithAggregatesFilter<"intranet_doc_paths"> | string + parent_id?: Prisma.IntNullableWithAggregatesFilter<"intranet_doc_paths"> | number | null + priority_order?: Prisma.IntWithAggregatesFilter<"intranet_doc_paths"> | number +} + +export type intranet_doc_pathsCreateInput = { + description: string + parent_id?: number | null + priority_order?: number +} + +export type intranet_doc_pathsUncheckedCreateInput = { + id?: number + description: string + parent_id?: number | null + priority_order?: number +} + +export type intranet_doc_pathsUpdateInput = { + description?: Prisma.StringFieldUpdateOperationsInput | string + parent_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + priority_order?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type intranet_doc_pathsUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + description?: Prisma.StringFieldUpdateOperationsInput | string + parent_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + priority_order?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type intranet_doc_pathsCreateManyInput = { + id?: number + description: string + parent_id?: number | null + priority_order?: number +} + +export type intranet_doc_pathsUpdateManyMutationInput = { + description?: Prisma.StringFieldUpdateOperationsInput | string + parent_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + priority_order?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type intranet_doc_pathsUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + description?: Prisma.StringFieldUpdateOperationsInput | string + parent_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + priority_order?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type intranet_doc_pathsOrderByRelevanceInput = { + fields: Prisma.intranet_doc_pathsOrderByRelevanceFieldEnum | Prisma.intranet_doc_pathsOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type intranet_doc_pathsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + description?: Prisma.SortOrder + parent_id?: Prisma.SortOrder + priority_order?: Prisma.SortOrder +} + +export type intranet_doc_pathsAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + parent_id?: Prisma.SortOrder + priority_order?: Prisma.SortOrder +} + +export type intranet_doc_pathsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + description?: Prisma.SortOrder + parent_id?: Prisma.SortOrder + priority_order?: Prisma.SortOrder +} + +export type intranet_doc_pathsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + description?: Prisma.SortOrder + parent_id?: Prisma.SortOrder + priority_order?: Prisma.SortOrder +} + +export type intranet_doc_pathsSumOrderByAggregateInput = { + id?: Prisma.SortOrder + parent_id?: Prisma.SortOrder + priority_order?: Prisma.SortOrder +} + + + +export type intranet_doc_pathsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + description?: boolean + parent_id?: boolean + priority_order?: boolean +}, ExtArgs["result"]["intranet_doc_paths"]> + + + +export type intranet_doc_pathsSelectScalar = { + id?: boolean + description?: boolean + parent_id?: boolean + priority_order?: boolean +} + +export type intranet_doc_pathsOmit = runtime.Types.Extensions.GetOmit<"id" | "description" | "parent_id" | "priority_order", ExtArgs["result"]["intranet_doc_paths"]> + +export type $intranet_doc_pathsPayload = { + name: "intranet_doc_paths" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + description: string + parent_id: number | null + priority_order: number + }, ExtArgs["result"]["intranet_doc_paths"]> + composites: {} +} + +export type intranet_doc_pathsGetPayload = runtime.Types.Result.GetResult + +export type intranet_doc_pathsCountArgs = + Omit & { + select?: Intranet_doc_pathsCountAggregateInputType | true + } + +export interface intranet_doc_pathsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['intranet_doc_paths'], meta: { name: 'intranet_doc_paths' } } + /** + * Find zero or one Intranet_doc_paths that matches the filter. + * @param {intranet_doc_pathsFindUniqueArgs} args - Arguments to find a Intranet_doc_paths + * @example + * // Get one Intranet_doc_paths + * const intranet_doc_paths = await prisma.intranet_doc_paths.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_pathsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Intranet_doc_paths that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {intranet_doc_pathsFindUniqueOrThrowArgs} args - Arguments to find a Intranet_doc_paths + * @example + * // Get one Intranet_doc_paths + * const intranet_doc_paths = await prisma.intranet_doc_paths.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_pathsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_doc_paths 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 {intranet_doc_pathsFindFirstArgs} args - Arguments to find a Intranet_doc_paths + * @example + * // Get one Intranet_doc_paths + * const intranet_doc_paths = await prisma.intranet_doc_paths.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_pathsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_doc_paths 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 {intranet_doc_pathsFindFirstOrThrowArgs} args - Arguments to find a Intranet_doc_paths + * @example + * // Get one Intranet_doc_paths + * const intranet_doc_paths = await prisma.intranet_doc_paths.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_pathsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Intranet_doc_paths 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 {intranet_doc_pathsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Intranet_doc_paths + * const intranet_doc_paths = await prisma.intranet_doc_paths.findMany() + * + * // Get first 10 Intranet_doc_paths + * const intranet_doc_paths = await prisma.intranet_doc_paths.findMany({ take: 10 }) + * + * // Only select the `id` + * const intranet_doc_pathsWithIdOnly = await prisma.intranet_doc_paths.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Intranet_doc_paths. + * @param {intranet_doc_pathsCreateArgs} args - Arguments to create a Intranet_doc_paths. + * @example + * // Create one Intranet_doc_paths + * const Intranet_doc_paths = await prisma.intranet_doc_paths.create({ + * data: { + * // ... data to create a Intranet_doc_paths + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_pathsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Intranet_doc_paths. + * @param {intranet_doc_pathsCreateManyArgs} args - Arguments to create many Intranet_doc_paths. + * @example + * // Create many Intranet_doc_paths + * const intranet_doc_paths = await prisma.intranet_doc_paths.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Intranet_doc_paths. + * @param {intranet_doc_pathsDeleteArgs} args - Arguments to delete one Intranet_doc_paths. + * @example + * // Delete one Intranet_doc_paths + * const Intranet_doc_paths = await prisma.intranet_doc_paths.delete({ + * where: { + * // ... filter to delete one Intranet_doc_paths + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_pathsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Intranet_doc_paths. + * @param {intranet_doc_pathsUpdateArgs} args - Arguments to update one Intranet_doc_paths. + * @example + * // Update one Intranet_doc_paths + * const intranet_doc_paths = await prisma.intranet_doc_paths.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_pathsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Intranet_doc_paths. + * @param {intranet_doc_pathsDeleteManyArgs} args - Arguments to filter Intranet_doc_paths to delete. + * @example + * // Delete a few Intranet_doc_paths + * const { count } = await prisma.intranet_doc_paths.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Intranet_doc_paths. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_doc_pathsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Intranet_doc_paths + * const intranet_doc_paths = await prisma.intranet_doc_paths.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Intranet_doc_paths. + * @param {intranet_doc_pathsUpsertArgs} args - Arguments to update or create a Intranet_doc_paths. + * @example + * // Update or create a Intranet_doc_paths + * const intranet_doc_paths = await prisma.intranet_doc_paths.upsert({ + * create: { + * // ... data to create a Intranet_doc_paths + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Intranet_doc_paths we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_pathsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Intranet_doc_paths. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_doc_pathsCountArgs} args - Arguments to filter Intranet_doc_paths to count. + * @example + * // Count the number of Intranet_doc_paths + * const count = await prisma.intranet_doc_paths.count({ + * where: { + * // ... the filter for the Intranet_doc_paths 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 Intranet_doc_paths. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Intranet_doc_pathsAggregateArgs} 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 Intranet_doc_paths. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_doc_pathsGroupByArgs} 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 intranet_doc_pathsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: intranet_doc_pathsGroupByArgs['orderBy'] } + : { orderBy?: intranet_doc_pathsGroupByArgs['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 ? GetIntranet_doc_pathsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the intranet_doc_paths model + */ +readonly fields: intranet_doc_pathsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for intranet_doc_paths. + * 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__intranet_doc_pathsClient 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 intranet_doc_paths model + */ +export interface intranet_doc_pathsFieldRefs { + readonly id: Prisma.FieldRef<"intranet_doc_paths", 'Int'> + readonly description: Prisma.FieldRef<"intranet_doc_paths", 'String'> + readonly parent_id: Prisma.FieldRef<"intranet_doc_paths", 'Int'> + readonly priority_order: Prisma.FieldRef<"intranet_doc_paths", 'Int'> +} + + +// Custom InputTypes +/** + * intranet_doc_paths findUnique + */ +export type intranet_doc_pathsFindUniqueArgs = { + /** + * Select specific fields to fetch from the intranet_doc_paths + */ + select?: Prisma.intranet_doc_pathsSelect | null + /** + * Omit specific fields from the intranet_doc_paths + */ + omit?: Prisma.intranet_doc_pathsOmit | null + /** + * Filter, which intranet_doc_paths to fetch. + */ + where: Prisma.intranet_doc_pathsWhereUniqueInput +} + +/** + * intranet_doc_paths findUniqueOrThrow + */ +export type intranet_doc_pathsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_doc_paths + */ + select?: Prisma.intranet_doc_pathsSelect | null + /** + * Omit specific fields from the intranet_doc_paths + */ + omit?: Prisma.intranet_doc_pathsOmit | null + /** + * Filter, which intranet_doc_paths to fetch. + */ + where: Prisma.intranet_doc_pathsWhereUniqueInput +} + +/** + * intranet_doc_paths findFirst + */ +export type intranet_doc_pathsFindFirstArgs = { + /** + * Select specific fields to fetch from the intranet_doc_paths + */ + select?: Prisma.intranet_doc_pathsSelect | null + /** + * Omit specific fields from the intranet_doc_paths + */ + omit?: Prisma.intranet_doc_pathsOmit | null + /** + * Filter, which intranet_doc_paths to fetch. + */ + where?: Prisma.intranet_doc_pathsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_doc_paths to fetch. + */ + orderBy?: Prisma.intranet_doc_pathsOrderByWithRelationInput | Prisma.intranet_doc_pathsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_doc_paths. + */ + cursor?: Prisma.intranet_doc_pathsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_doc_paths 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` intranet_doc_paths. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_doc_paths. + */ + distinct?: Prisma.Intranet_doc_pathsScalarFieldEnum | Prisma.Intranet_doc_pathsScalarFieldEnum[] +} + +/** + * intranet_doc_paths findFirstOrThrow + */ +export type intranet_doc_pathsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_doc_paths + */ + select?: Prisma.intranet_doc_pathsSelect | null + /** + * Omit specific fields from the intranet_doc_paths + */ + omit?: Prisma.intranet_doc_pathsOmit | null + /** + * Filter, which intranet_doc_paths to fetch. + */ + where?: Prisma.intranet_doc_pathsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_doc_paths to fetch. + */ + orderBy?: Prisma.intranet_doc_pathsOrderByWithRelationInput | Prisma.intranet_doc_pathsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_doc_paths. + */ + cursor?: Prisma.intranet_doc_pathsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_doc_paths 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` intranet_doc_paths. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_doc_paths. + */ + distinct?: Prisma.Intranet_doc_pathsScalarFieldEnum | Prisma.Intranet_doc_pathsScalarFieldEnum[] +} + +/** + * intranet_doc_paths findMany + */ +export type intranet_doc_pathsFindManyArgs = { + /** + * Select specific fields to fetch from the intranet_doc_paths + */ + select?: Prisma.intranet_doc_pathsSelect | null + /** + * Omit specific fields from the intranet_doc_paths + */ + omit?: Prisma.intranet_doc_pathsOmit | null + /** + * Filter, which intranet_doc_paths to fetch. + */ + where?: Prisma.intranet_doc_pathsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_doc_paths to fetch. + */ + orderBy?: Prisma.intranet_doc_pathsOrderByWithRelationInput | Prisma.intranet_doc_pathsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing intranet_doc_paths. + */ + cursor?: Prisma.intranet_doc_pathsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_doc_paths 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` intranet_doc_paths. + */ + skip?: number + distinct?: Prisma.Intranet_doc_pathsScalarFieldEnum | Prisma.Intranet_doc_pathsScalarFieldEnum[] +} + +/** + * intranet_doc_paths create + */ +export type intranet_doc_pathsCreateArgs = { + /** + * Select specific fields to fetch from the intranet_doc_paths + */ + select?: Prisma.intranet_doc_pathsSelect | null + /** + * Omit specific fields from the intranet_doc_paths + */ + omit?: Prisma.intranet_doc_pathsOmit | null + /** + * The data needed to create a intranet_doc_paths. + */ + data: Prisma.XOR +} + +/** + * intranet_doc_paths createMany + */ +export type intranet_doc_pathsCreateManyArgs = { + /** + * The data used to create many intranet_doc_paths. + */ + data: Prisma.intranet_doc_pathsCreateManyInput | Prisma.intranet_doc_pathsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * intranet_doc_paths update + */ +export type intranet_doc_pathsUpdateArgs = { + /** + * Select specific fields to fetch from the intranet_doc_paths + */ + select?: Prisma.intranet_doc_pathsSelect | null + /** + * Omit specific fields from the intranet_doc_paths + */ + omit?: Prisma.intranet_doc_pathsOmit | null + /** + * The data needed to update a intranet_doc_paths. + */ + data: Prisma.XOR + /** + * Choose, which intranet_doc_paths to update. + */ + where: Prisma.intranet_doc_pathsWhereUniqueInput +} + +/** + * intranet_doc_paths updateMany + */ +export type intranet_doc_pathsUpdateManyArgs = { + /** + * The data used to update intranet_doc_paths. + */ + data: Prisma.XOR + /** + * Filter which intranet_doc_paths to update + */ + where?: Prisma.intranet_doc_pathsWhereInput + /** + * Limit how many intranet_doc_paths to update. + */ + limit?: number +} + +/** + * intranet_doc_paths upsert + */ +export type intranet_doc_pathsUpsertArgs = { + /** + * Select specific fields to fetch from the intranet_doc_paths + */ + select?: Prisma.intranet_doc_pathsSelect | null + /** + * Omit specific fields from the intranet_doc_paths + */ + omit?: Prisma.intranet_doc_pathsOmit | null + /** + * The filter to search for the intranet_doc_paths to update in case it exists. + */ + where: Prisma.intranet_doc_pathsWhereUniqueInput + /** + * In case the intranet_doc_paths found by the `where` argument doesn't exist, create a new intranet_doc_paths with this data. + */ + create: Prisma.XOR + /** + * In case the intranet_doc_paths was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * intranet_doc_paths delete + */ +export type intranet_doc_pathsDeleteArgs = { + /** + * Select specific fields to fetch from the intranet_doc_paths + */ + select?: Prisma.intranet_doc_pathsSelect | null + /** + * Omit specific fields from the intranet_doc_paths + */ + omit?: Prisma.intranet_doc_pathsOmit | null + /** + * Filter which intranet_doc_paths to delete. + */ + where: Prisma.intranet_doc_pathsWhereUniqueInput +} + +/** + * intranet_doc_paths deleteMany + */ +export type intranet_doc_pathsDeleteManyArgs = { + /** + * Filter which intranet_doc_paths to delete + */ + where?: Prisma.intranet_doc_pathsWhereInput + /** + * Limit how many intranet_doc_paths to delete. + */ + limit?: number +} + +/** + * intranet_doc_paths without action + */ +export type intranet_doc_pathsDefaultArgs = { + /** + * Select specific fields to fetch from the intranet_doc_paths + */ + select?: Prisma.intranet_doc_pathsSelect | null + /** + * Omit specific fields from the intranet_doc_paths + */ + omit?: Prisma.intranet_doc_pathsOmit | null +} diff --git a/prisma/generated/mariadb/models/intranet_doc_reply.ts b/prisma/generated/mariadb/models/intranet_doc_reply.ts new file mode 100644 index 0000000..dafe9fa --- /dev/null +++ b/prisma/generated/mariadb/models/intranet_doc_reply.ts @@ -0,0 +1,1158 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `intranet_doc_reply` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model intranet_doc_reply + * + */ +export type intranet_doc_replyModel = runtime.Types.Result.DefaultSelection + +export type AggregateIntranet_doc_reply = { + _count: Intranet_doc_replyCountAggregateOutputType | null + _avg: Intranet_doc_replyAvgAggregateOutputType | null + _sum: Intranet_doc_replySumAggregateOutputType | null + _min: Intranet_doc_replyMinAggregateOutputType | null + _max: Intranet_doc_replyMaxAggregateOutputType | null +} + +export type Intranet_doc_replyAvgAggregateOutputType = { + id: number | null + feed_id: number | null + date: number | null + account_id: number | null + attachment: number | null +} + +export type Intranet_doc_replySumAggregateOutputType = { + id: bigint | null + feed_id: bigint | null + date: bigint | null + account_id: bigint | null + attachment: bigint | null +} + +export type Intranet_doc_replyMinAggregateOutputType = { + id: bigint | null + feed_id: bigint | null + date: bigint | null + account_id: bigint | null + msg: string | null + attachment: bigint | null + update_timestamp: Date | null +} + +export type Intranet_doc_replyMaxAggregateOutputType = { + id: bigint | null + feed_id: bigint | null + date: bigint | null + account_id: bigint | null + msg: string | null + attachment: bigint | null + update_timestamp: Date | null +} + +export type Intranet_doc_replyCountAggregateOutputType = { + id: number + feed_id: number + date: number + account_id: number + msg: number + attachment: number + update_timestamp: number + _all: number +} + + +export type Intranet_doc_replyAvgAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + attachment?: true +} + +export type Intranet_doc_replySumAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + attachment?: true +} + +export type Intranet_doc_replyMinAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + msg?: true + attachment?: true + update_timestamp?: true +} + +export type Intranet_doc_replyMaxAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + msg?: true + attachment?: true + update_timestamp?: true +} + +export type Intranet_doc_replyCountAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + msg?: true + attachment?: true + update_timestamp?: true + _all?: true +} + +export type Intranet_doc_replyAggregateArgs = { + /** + * Filter which intranet_doc_reply to aggregate. + */ + where?: Prisma.intranet_doc_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_doc_replies to fetch. + */ + orderBy?: Prisma.intranet_doc_replyOrderByWithRelationInput | Prisma.intranet_doc_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.intranet_doc_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_doc_replies 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` intranet_doc_replies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned intranet_doc_replies + **/ + _count?: true | Intranet_doc_replyCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Intranet_doc_replyAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Intranet_doc_replySumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Intranet_doc_replyMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Intranet_doc_replyMaxAggregateInputType +} + +export type GetIntranet_doc_replyAggregateType = { + [P in keyof T & keyof AggregateIntranet_doc_reply]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type intranet_doc_replyGroupByArgs = { + where?: Prisma.intranet_doc_replyWhereInput + orderBy?: Prisma.intranet_doc_replyOrderByWithAggregationInput | Prisma.intranet_doc_replyOrderByWithAggregationInput[] + by: Prisma.Intranet_doc_replyScalarFieldEnum[] | Prisma.Intranet_doc_replyScalarFieldEnum + having?: Prisma.intranet_doc_replyScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Intranet_doc_replyCountAggregateInputType | true + _avg?: Intranet_doc_replyAvgAggregateInputType + _sum?: Intranet_doc_replySumAggregateInputType + _min?: Intranet_doc_replyMinAggregateInputType + _max?: Intranet_doc_replyMaxAggregateInputType +} + +export type Intranet_doc_replyGroupByOutputType = { + id: bigint + feed_id: bigint + date: bigint + account_id: bigint + msg: string + attachment: bigint + update_timestamp: Date + _count: Intranet_doc_replyCountAggregateOutputType | null + _avg: Intranet_doc_replyAvgAggregateOutputType | null + _sum: Intranet_doc_replySumAggregateOutputType | null + _min: Intranet_doc_replyMinAggregateOutputType | null + _max: Intranet_doc_replyMaxAggregateOutputType | null +} + +type GetIntranet_doc_replyGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Intranet_doc_replyGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type intranet_doc_replyWhereInput = { + AND?: Prisma.intranet_doc_replyWhereInput | Prisma.intranet_doc_replyWhereInput[] + OR?: Prisma.intranet_doc_replyWhereInput[] + NOT?: Prisma.intranet_doc_replyWhereInput | Prisma.intranet_doc_replyWhereInput[] + id?: Prisma.BigIntFilter<"intranet_doc_reply"> | bigint | number + feed_id?: Prisma.BigIntFilter<"intranet_doc_reply"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_doc_reply"> | bigint | number + account_id?: Prisma.BigIntFilter<"intranet_doc_reply"> | bigint | number + msg?: Prisma.StringFilter<"intranet_doc_reply"> | string + attachment?: Prisma.BigIntFilter<"intranet_doc_reply"> | bigint | number + update_timestamp?: Prisma.DateTimeFilter<"intranet_doc_reply"> | Date | string +} + +export type intranet_doc_replyOrderByWithRelationInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder + _relevance?: Prisma.intranet_doc_replyOrderByRelevanceInput +} + +export type intranet_doc_replyWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.intranet_doc_replyWhereInput | Prisma.intranet_doc_replyWhereInput[] + OR?: Prisma.intranet_doc_replyWhereInput[] + NOT?: Prisma.intranet_doc_replyWhereInput | Prisma.intranet_doc_replyWhereInput[] + feed_id?: Prisma.BigIntFilter<"intranet_doc_reply"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_doc_reply"> | bigint | number + account_id?: Prisma.BigIntFilter<"intranet_doc_reply"> | bigint | number + msg?: Prisma.StringFilter<"intranet_doc_reply"> | string + attachment?: Prisma.BigIntFilter<"intranet_doc_reply"> | bigint | number + update_timestamp?: Prisma.DateTimeFilter<"intranet_doc_reply"> | Date | string +}, "id"> + +export type intranet_doc_replyOrderByWithAggregationInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder + _count?: Prisma.intranet_doc_replyCountOrderByAggregateInput + _avg?: Prisma.intranet_doc_replyAvgOrderByAggregateInput + _max?: Prisma.intranet_doc_replyMaxOrderByAggregateInput + _min?: Prisma.intranet_doc_replyMinOrderByAggregateInput + _sum?: Prisma.intranet_doc_replySumOrderByAggregateInput +} + +export type intranet_doc_replyScalarWhereWithAggregatesInput = { + AND?: Prisma.intranet_doc_replyScalarWhereWithAggregatesInput | Prisma.intranet_doc_replyScalarWhereWithAggregatesInput[] + OR?: Prisma.intranet_doc_replyScalarWhereWithAggregatesInput[] + NOT?: Prisma.intranet_doc_replyScalarWhereWithAggregatesInput | Prisma.intranet_doc_replyScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"intranet_doc_reply"> | bigint | number + feed_id?: Prisma.BigIntWithAggregatesFilter<"intranet_doc_reply"> | bigint | number + date?: Prisma.BigIntWithAggregatesFilter<"intranet_doc_reply"> | bigint | number + account_id?: Prisma.BigIntWithAggregatesFilter<"intranet_doc_reply"> | bigint | number + msg?: Prisma.StringWithAggregatesFilter<"intranet_doc_reply"> | string + attachment?: Prisma.BigIntWithAggregatesFilter<"intranet_doc_reply"> | bigint | number + update_timestamp?: Prisma.DateTimeWithAggregatesFilter<"intranet_doc_reply"> | Date | string +} + +export type intranet_doc_replyCreateInput = { + id?: bigint | number + feed_id: bigint | number + date: bigint | number + account_id: bigint | number + msg: string + attachment?: bigint | number + update_timestamp?: Date | string +} + +export type intranet_doc_replyUncheckedCreateInput = { + id?: bigint | number + feed_id: bigint | number + date: bigint | number + account_id: bigint | number + msg: string + attachment?: bigint | number + update_timestamp?: Date | string +} + +export type intranet_doc_replyUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type intranet_doc_replyUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type intranet_doc_replyCreateManyInput = { + id?: bigint | number + feed_id: bigint | number + date: bigint | number + account_id: bigint | number + msg: string + attachment?: bigint | number + update_timestamp?: Date | string +} + +export type intranet_doc_replyUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type intranet_doc_replyUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type intranet_doc_replyOrderByRelevanceInput = { + fields: Prisma.intranet_doc_replyOrderByRelevanceFieldEnum | Prisma.intranet_doc_replyOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type intranet_doc_replyCountOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder +} + +export type intranet_doc_replyAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + +export type intranet_doc_replyMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder +} + +export type intranet_doc_replyMinOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder +} + +export type intranet_doc_replySumOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + + + +export type intranet_doc_replySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + feed_id?: boolean + date?: boolean + account_id?: boolean + msg?: boolean + attachment?: boolean + update_timestamp?: boolean +}, ExtArgs["result"]["intranet_doc_reply"]> + + + +export type intranet_doc_replySelectScalar = { + id?: boolean + feed_id?: boolean + date?: boolean + account_id?: boolean + msg?: boolean + attachment?: boolean + update_timestamp?: boolean +} + +export type intranet_doc_replyOmit = runtime.Types.Extensions.GetOmit<"id" | "feed_id" | "date" | "account_id" | "msg" | "attachment" | "update_timestamp", ExtArgs["result"]["intranet_doc_reply"]> + +export type $intranet_doc_replyPayload = { + name: "intranet_doc_reply" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + feed_id: bigint + date: bigint + account_id: bigint + msg: string + attachment: bigint + update_timestamp: Date + }, ExtArgs["result"]["intranet_doc_reply"]> + composites: {} +} + +export type intranet_doc_replyGetPayload = runtime.Types.Result.GetResult + +export type intranet_doc_replyCountArgs = + Omit & { + select?: Intranet_doc_replyCountAggregateInputType | true + } + +export interface intranet_doc_replyDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['intranet_doc_reply'], meta: { name: 'intranet_doc_reply' } } + /** + * Find zero or one Intranet_doc_reply that matches the filter. + * @param {intranet_doc_replyFindUniqueArgs} args - Arguments to find a Intranet_doc_reply + * @example + * // Get one Intranet_doc_reply + * const intranet_doc_reply = await prisma.intranet_doc_reply.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_replyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Intranet_doc_reply that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {intranet_doc_replyFindUniqueOrThrowArgs} args - Arguments to find a Intranet_doc_reply + * @example + * // Get one Intranet_doc_reply + * const intranet_doc_reply = await prisma.intranet_doc_reply.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_replyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_doc_reply 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 {intranet_doc_replyFindFirstArgs} args - Arguments to find a Intranet_doc_reply + * @example + * // Get one Intranet_doc_reply + * const intranet_doc_reply = await prisma.intranet_doc_reply.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_replyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_doc_reply 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 {intranet_doc_replyFindFirstOrThrowArgs} args - Arguments to find a Intranet_doc_reply + * @example + * // Get one Intranet_doc_reply + * const intranet_doc_reply = await prisma.intranet_doc_reply.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_replyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Intranet_doc_replies 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 {intranet_doc_replyFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Intranet_doc_replies + * const intranet_doc_replies = await prisma.intranet_doc_reply.findMany() + * + * // Get first 10 Intranet_doc_replies + * const intranet_doc_replies = await prisma.intranet_doc_reply.findMany({ take: 10 }) + * + * // Only select the `id` + * const intranet_doc_replyWithIdOnly = await prisma.intranet_doc_reply.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Intranet_doc_reply. + * @param {intranet_doc_replyCreateArgs} args - Arguments to create a Intranet_doc_reply. + * @example + * // Create one Intranet_doc_reply + * const Intranet_doc_reply = await prisma.intranet_doc_reply.create({ + * data: { + * // ... data to create a Intranet_doc_reply + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_replyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Intranet_doc_replies. + * @param {intranet_doc_replyCreateManyArgs} args - Arguments to create many Intranet_doc_replies. + * @example + * // Create many Intranet_doc_replies + * const intranet_doc_reply = await prisma.intranet_doc_reply.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Intranet_doc_reply. + * @param {intranet_doc_replyDeleteArgs} args - Arguments to delete one Intranet_doc_reply. + * @example + * // Delete one Intranet_doc_reply + * const Intranet_doc_reply = await prisma.intranet_doc_reply.delete({ + * where: { + * // ... filter to delete one Intranet_doc_reply + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_replyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Intranet_doc_reply. + * @param {intranet_doc_replyUpdateArgs} args - Arguments to update one Intranet_doc_reply. + * @example + * // Update one Intranet_doc_reply + * const intranet_doc_reply = await prisma.intranet_doc_reply.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_replyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Intranet_doc_replies. + * @param {intranet_doc_replyDeleteManyArgs} args - Arguments to filter Intranet_doc_replies to delete. + * @example + * // Delete a few Intranet_doc_replies + * const { count } = await prisma.intranet_doc_reply.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Intranet_doc_replies. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_doc_replyUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Intranet_doc_replies + * const intranet_doc_reply = await prisma.intranet_doc_reply.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Intranet_doc_reply. + * @param {intranet_doc_replyUpsertArgs} args - Arguments to update or create a Intranet_doc_reply. + * @example + * // Update or create a Intranet_doc_reply + * const intranet_doc_reply = await prisma.intranet_doc_reply.upsert({ + * create: { + * // ... data to create a Intranet_doc_reply + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Intranet_doc_reply we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_doc_replyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Intranet_doc_replies. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_doc_replyCountArgs} args - Arguments to filter Intranet_doc_replies to count. + * @example + * // Count the number of Intranet_doc_replies + * const count = await prisma.intranet_doc_reply.count({ + * where: { + * // ... the filter for the Intranet_doc_replies 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 Intranet_doc_reply. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Intranet_doc_replyAggregateArgs} 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 Intranet_doc_reply. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_doc_replyGroupByArgs} 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 intranet_doc_replyGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: intranet_doc_replyGroupByArgs['orderBy'] } + : { orderBy?: intranet_doc_replyGroupByArgs['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 ? GetIntranet_doc_replyGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the intranet_doc_reply model + */ +readonly fields: intranet_doc_replyFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for intranet_doc_reply. + * 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__intranet_doc_replyClient 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 intranet_doc_reply model + */ +export interface intranet_doc_replyFieldRefs { + readonly id: Prisma.FieldRef<"intranet_doc_reply", 'BigInt'> + readonly feed_id: Prisma.FieldRef<"intranet_doc_reply", 'BigInt'> + readonly date: Prisma.FieldRef<"intranet_doc_reply", 'BigInt'> + readonly account_id: Prisma.FieldRef<"intranet_doc_reply", 'BigInt'> + readonly msg: Prisma.FieldRef<"intranet_doc_reply", 'String'> + readonly attachment: Prisma.FieldRef<"intranet_doc_reply", 'BigInt'> + readonly update_timestamp: Prisma.FieldRef<"intranet_doc_reply", 'DateTime'> +} + + +// Custom InputTypes +/** + * intranet_doc_reply findUnique + */ +export type intranet_doc_replyFindUniqueArgs = { + /** + * Select specific fields to fetch from the intranet_doc_reply + */ + select?: Prisma.intranet_doc_replySelect | null + /** + * Omit specific fields from the intranet_doc_reply + */ + omit?: Prisma.intranet_doc_replyOmit | null + /** + * Filter, which intranet_doc_reply to fetch. + */ + where: Prisma.intranet_doc_replyWhereUniqueInput +} + +/** + * intranet_doc_reply findUniqueOrThrow + */ +export type intranet_doc_replyFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_doc_reply + */ + select?: Prisma.intranet_doc_replySelect | null + /** + * Omit specific fields from the intranet_doc_reply + */ + omit?: Prisma.intranet_doc_replyOmit | null + /** + * Filter, which intranet_doc_reply to fetch. + */ + where: Prisma.intranet_doc_replyWhereUniqueInput +} + +/** + * intranet_doc_reply findFirst + */ +export type intranet_doc_replyFindFirstArgs = { + /** + * Select specific fields to fetch from the intranet_doc_reply + */ + select?: Prisma.intranet_doc_replySelect | null + /** + * Omit specific fields from the intranet_doc_reply + */ + omit?: Prisma.intranet_doc_replyOmit | null + /** + * Filter, which intranet_doc_reply to fetch. + */ + where?: Prisma.intranet_doc_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_doc_replies to fetch. + */ + orderBy?: Prisma.intranet_doc_replyOrderByWithRelationInput | Prisma.intranet_doc_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_doc_replies. + */ + cursor?: Prisma.intranet_doc_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_doc_replies 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` intranet_doc_replies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_doc_replies. + */ + distinct?: Prisma.Intranet_doc_replyScalarFieldEnum | Prisma.Intranet_doc_replyScalarFieldEnum[] +} + +/** + * intranet_doc_reply findFirstOrThrow + */ +export type intranet_doc_replyFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_doc_reply + */ + select?: Prisma.intranet_doc_replySelect | null + /** + * Omit specific fields from the intranet_doc_reply + */ + omit?: Prisma.intranet_doc_replyOmit | null + /** + * Filter, which intranet_doc_reply to fetch. + */ + where?: Prisma.intranet_doc_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_doc_replies to fetch. + */ + orderBy?: Prisma.intranet_doc_replyOrderByWithRelationInput | Prisma.intranet_doc_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_doc_replies. + */ + cursor?: Prisma.intranet_doc_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_doc_replies 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` intranet_doc_replies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_doc_replies. + */ + distinct?: Prisma.Intranet_doc_replyScalarFieldEnum | Prisma.Intranet_doc_replyScalarFieldEnum[] +} + +/** + * intranet_doc_reply findMany + */ +export type intranet_doc_replyFindManyArgs = { + /** + * Select specific fields to fetch from the intranet_doc_reply + */ + select?: Prisma.intranet_doc_replySelect | null + /** + * Omit specific fields from the intranet_doc_reply + */ + omit?: Prisma.intranet_doc_replyOmit | null + /** + * Filter, which intranet_doc_replies to fetch. + */ + where?: Prisma.intranet_doc_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_doc_replies to fetch. + */ + orderBy?: Prisma.intranet_doc_replyOrderByWithRelationInput | Prisma.intranet_doc_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing intranet_doc_replies. + */ + cursor?: Prisma.intranet_doc_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_doc_replies 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` intranet_doc_replies. + */ + skip?: number + distinct?: Prisma.Intranet_doc_replyScalarFieldEnum | Prisma.Intranet_doc_replyScalarFieldEnum[] +} + +/** + * intranet_doc_reply create + */ +export type intranet_doc_replyCreateArgs = { + /** + * Select specific fields to fetch from the intranet_doc_reply + */ + select?: Prisma.intranet_doc_replySelect | null + /** + * Omit specific fields from the intranet_doc_reply + */ + omit?: Prisma.intranet_doc_replyOmit | null + /** + * The data needed to create a intranet_doc_reply. + */ + data: Prisma.XOR +} + +/** + * intranet_doc_reply createMany + */ +export type intranet_doc_replyCreateManyArgs = { + /** + * The data used to create many intranet_doc_replies. + */ + data: Prisma.intranet_doc_replyCreateManyInput | Prisma.intranet_doc_replyCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * intranet_doc_reply update + */ +export type intranet_doc_replyUpdateArgs = { + /** + * Select specific fields to fetch from the intranet_doc_reply + */ + select?: Prisma.intranet_doc_replySelect | null + /** + * Omit specific fields from the intranet_doc_reply + */ + omit?: Prisma.intranet_doc_replyOmit | null + /** + * The data needed to update a intranet_doc_reply. + */ + data: Prisma.XOR + /** + * Choose, which intranet_doc_reply to update. + */ + where: Prisma.intranet_doc_replyWhereUniqueInput +} + +/** + * intranet_doc_reply updateMany + */ +export type intranet_doc_replyUpdateManyArgs = { + /** + * The data used to update intranet_doc_replies. + */ + data: Prisma.XOR + /** + * Filter which intranet_doc_replies to update + */ + where?: Prisma.intranet_doc_replyWhereInput + /** + * Limit how many intranet_doc_replies to update. + */ + limit?: number +} + +/** + * intranet_doc_reply upsert + */ +export type intranet_doc_replyUpsertArgs = { + /** + * Select specific fields to fetch from the intranet_doc_reply + */ + select?: Prisma.intranet_doc_replySelect | null + /** + * Omit specific fields from the intranet_doc_reply + */ + omit?: Prisma.intranet_doc_replyOmit | null + /** + * The filter to search for the intranet_doc_reply to update in case it exists. + */ + where: Prisma.intranet_doc_replyWhereUniqueInput + /** + * In case the intranet_doc_reply found by the `where` argument doesn't exist, create a new intranet_doc_reply with this data. + */ + create: Prisma.XOR + /** + * In case the intranet_doc_reply was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * intranet_doc_reply delete + */ +export type intranet_doc_replyDeleteArgs = { + /** + * Select specific fields to fetch from the intranet_doc_reply + */ + select?: Prisma.intranet_doc_replySelect | null + /** + * Omit specific fields from the intranet_doc_reply + */ + omit?: Prisma.intranet_doc_replyOmit | null + /** + * Filter which intranet_doc_reply to delete. + */ + where: Prisma.intranet_doc_replyWhereUniqueInput +} + +/** + * intranet_doc_reply deleteMany + */ +export type intranet_doc_replyDeleteManyArgs = { + /** + * Filter which intranet_doc_replies to delete + */ + where?: Prisma.intranet_doc_replyWhereInput + /** + * Limit how many intranet_doc_replies to delete. + */ + limit?: number +} + +/** + * intranet_doc_reply without action + */ +export type intranet_doc_replyDefaultArgs = { + /** + * Select specific fields to fetch from the intranet_doc_reply + */ + select?: Prisma.intranet_doc_replySelect | null + /** + * Omit specific fields from the intranet_doc_reply + */ + omit?: Prisma.intranet_doc_replyOmit | null +} diff --git a/prisma/generated/mariadb/models/intranet_feed.ts b/prisma/generated/mariadb/models/intranet_feed.ts new file mode 100644 index 0000000..ba7cb18 --- /dev/null +++ b/prisma/generated/mariadb/models/intranet_feed.ts @@ -0,0 +1,1146 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `intranet_feed` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model intranet_feed + * + */ +export type intranet_feedModel = runtime.Types.Result.DefaultSelection + +export type AggregateIntranet_feed = { + _count: Intranet_feedCountAggregateOutputType | null + _avg: Intranet_feedAvgAggregateOutputType | null + _sum: Intranet_feedSumAggregateOutputType | null + _min: Intranet_feedMinAggregateOutputType | null + _max: Intranet_feedMaxAggregateOutputType | null +} + +export type Intranet_feedAvgAggregateOutputType = { + id: number | null + account_id: number | null + date: number | null +} + +export type Intranet_feedSumAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date: bigint | null +} + +export type Intranet_feedMinAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date: bigint | null + title: string | null + msg: string | null + attachment: string | null + unread_csv: string | null +} + +export type Intranet_feedMaxAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date: bigint | null + title: string | null + msg: string | null + attachment: string | null + unread_csv: string | null +} + +export type Intranet_feedCountAggregateOutputType = { + id: number + account_id: number + date: number + title: number + msg: number + attachment: number + unread_csv: number + _all: number +} + + +export type Intranet_feedAvgAggregateInputType = { + id?: true + account_id?: true + date?: true +} + +export type Intranet_feedSumAggregateInputType = { + id?: true + account_id?: true + date?: true +} + +export type Intranet_feedMinAggregateInputType = { + id?: true + account_id?: true + date?: true + title?: true + msg?: true + attachment?: true + unread_csv?: true +} + +export type Intranet_feedMaxAggregateInputType = { + id?: true + account_id?: true + date?: true + title?: true + msg?: true + attachment?: true + unread_csv?: true +} + +export type Intranet_feedCountAggregateInputType = { + id?: true + account_id?: true + date?: true + title?: true + msg?: true + attachment?: true + unread_csv?: true + _all?: true +} + +export type Intranet_feedAggregateArgs = { + /** + * Filter which intranet_feed to aggregate. + */ + where?: Prisma.intranet_feedWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_feeds to fetch. + */ + orderBy?: Prisma.intranet_feedOrderByWithRelationInput | Prisma.intranet_feedOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.intranet_feedWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_feeds 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` intranet_feeds. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned intranet_feeds + **/ + _count?: true | Intranet_feedCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Intranet_feedAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Intranet_feedSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Intranet_feedMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Intranet_feedMaxAggregateInputType +} + +export type GetIntranet_feedAggregateType = { + [P in keyof T & keyof AggregateIntranet_feed]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type intranet_feedGroupByArgs = { + where?: Prisma.intranet_feedWhereInput + orderBy?: Prisma.intranet_feedOrderByWithAggregationInput | Prisma.intranet_feedOrderByWithAggregationInput[] + by: Prisma.Intranet_feedScalarFieldEnum[] | Prisma.Intranet_feedScalarFieldEnum + having?: Prisma.intranet_feedScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Intranet_feedCountAggregateInputType | true + _avg?: Intranet_feedAvgAggregateInputType + _sum?: Intranet_feedSumAggregateInputType + _min?: Intranet_feedMinAggregateInputType + _max?: Intranet_feedMaxAggregateInputType +} + +export type Intranet_feedGroupByOutputType = { + id: bigint + account_id: bigint + date: bigint + title: string + msg: string + attachment: string + unread_csv: string + _count: Intranet_feedCountAggregateOutputType | null + _avg: Intranet_feedAvgAggregateOutputType | null + _sum: Intranet_feedSumAggregateOutputType | null + _min: Intranet_feedMinAggregateOutputType | null + _max: Intranet_feedMaxAggregateOutputType | null +} + +type GetIntranet_feedGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Intranet_feedGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type intranet_feedWhereInput = { + AND?: Prisma.intranet_feedWhereInput | Prisma.intranet_feedWhereInput[] + OR?: Prisma.intranet_feedWhereInput[] + NOT?: Prisma.intranet_feedWhereInput | Prisma.intranet_feedWhereInput[] + id?: Prisma.BigIntFilter<"intranet_feed"> | bigint | number + account_id?: Prisma.BigIntFilter<"intranet_feed"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_feed"> | bigint | number + title?: Prisma.StringFilter<"intranet_feed"> | string + msg?: Prisma.StringFilter<"intranet_feed"> | string + attachment?: Prisma.StringFilter<"intranet_feed"> | string + unread_csv?: Prisma.StringFilter<"intranet_feed"> | string +} + +export type intranet_feedOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder + _relevance?: Prisma.intranet_feedOrderByRelevanceInput +} + +export type intranet_feedWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.intranet_feedWhereInput | Prisma.intranet_feedWhereInput[] + OR?: Prisma.intranet_feedWhereInput[] + NOT?: Prisma.intranet_feedWhereInput | Prisma.intranet_feedWhereInput[] + account_id?: Prisma.BigIntFilter<"intranet_feed"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_feed"> | bigint | number + title?: Prisma.StringFilter<"intranet_feed"> | string + msg?: Prisma.StringFilter<"intranet_feed"> | string + attachment?: Prisma.StringFilter<"intranet_feed"> | string + unread_csv?: Prisma.StringFilter<"intranet_feed"> | string +}, "id"> + +export type intranet_feedOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder + _count?: Prisma.intranet_feedCountOrderByAggregateInput + _avg?: Prisma.intranet_feedAvgOrderByAggregateInput + _max?: Prisma.intranet_feedMaxOrderByAggregateInput + _min?: Prisma.intranet_feedMinOrderByAggregateInput + _sum?: Prisma.intranet_feedSumOrderByAggregateInput +} + +export type intranet_feedScalarWhereWithAggregatesInput = { + AND?: Prisma.intranet_feedScalarWhereWithAggregatesInput | Prisma.intranet_feedScalarWhereWithAggregatesInput[] + OR?: Prisma.intranet_feedScalarWhereWithAggregatesInput[] + NOT?: Prisma.intranet_feedScalarWhereWithAggregatesInput | Prisma.intranet_feedScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"intranet_feed"> | bigint | number + account_id?: Prisma.BigIntWithAggregatesFilter<"intranet_feed"> | bigint | number + date?: Prisma.BigIntWithAggregatesFilter<"intranet_feed"> | bigint | number + title?: Prisma.StringWithAggregatesFilter<"intranet_feed"> | string + msg?: Prisma.StringWithAggregatesFilter<"intranet_feed"> | string + attachment?: Prisma.StringWithAggregatesFilter<"intranet_feed"> | string + unread_csv?: Prisma.StringWithAggregatesFilter<"intranet_feed"> | string +} + +export type intranet_feedCreateInput = { + id?: bigint | number + account_id: bigint | number + date: bigint | number + title: string + msg: string + attachment: string + unread_csv: string +} + +export type intranet_feedUncheckedCreateInput = { + id?: bigint | number + account_id: bigint | number + date: bigint | number + title: string + msg: string + attachment: string + unread_csv: string +} + +export type intranet_feedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type intranet_feedUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type intranet_feedCreateManyInput = { + id?: bigint | number + account_id: bigint | number + date: bigint | number + title: string + msg: string + attachment: string + unread_csv: string +} + +export type intranet_feedUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type intranet_feedUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type intranet_feedOrderByRelevanceInput = { + fields: Prisma.intranet_feedOrderByRelevanceFieldEnum | Prisma.intranet_feedOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type intranet_feedCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder +} + +export type intranet_feedAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder +} + +export type intranet_feedMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder +} + +export type intranet_feedMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder +} + +export type intranet_feedSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder +} + + + +export type intranet_feedSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + date?: boolean + title?: boolean + msg?: boolean + attachment?: boolean + unread_csv?: boolean +}, ExtArgs["result"]["intranet_feed"]> + + + +export type intranet_feedSelectScalar = { + id?: boolean + account_id?: boolean + date?: boolean + title?: boolean + msg?: boolean + attachment?: boolean + unread_csv?: boolean +} + +export type intranet_feedOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date" | "title" | "msg" | "attachment" | "unread_csv", ExtArgs["result"]["intranet_feed"]> + +export type $intranet_feedPayload = { + name: "intranet_feed" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + account_id: bigint + date: bigint + title: string + msg: string + attachment: string + unread_csv: string + }, ExtArgs["result"]["intranet_feed"]> + composites: {} +} + +export type intranet_feedGetPayload = runtime.Types.Result.GetResult + +export type intranet_feedCountArgs = + Omit & { + select?: Intranet_feedCountAggregateInputType | true + } + +export interface intranet_feedDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['intranet_feed'], meta: { name: 'intranet_feed' } } + /** + * Find zero or one Intranet_feed that matches the filter. + * @param {intranet_feedFindUniqueArgs} args - Arguments to find a Intranet_feed + * @example + * // Get one Intranet_feed + * const intranet_feed = await prisma.intranet_feed.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_feedClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Intranet_feed that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {intranet_feedFindUniqueOrThrowArgs} args - Arguments to find a Intranet_feed + * @example + * // Get one Intranet_feed + * const intranet_feed = await prisma.intranet_feed.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_feedClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_feed 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 {intranet_feedFindFirstArgs} args - Arguments to find a Intranet_feed + * @example + * // Get one Intranet_feed + * const intranet_feed = await prisma.intranet_feed.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_feedClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_feed 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 {intranet_feedFindFirstOrThrowArgs} args - Arguments to find a Intranet_feed + * @example + * // Get one Intranet_feed + * const intranet_feed = await prisma.intranet_feed.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_feedClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Intranet_feeds 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 {intranet_feedFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Intranet_feeds + * const intranet_feeds = await prisma.intranet_feed.findMany() + * + * // Get first 10 Intranet_feeds + * const intranet_feeds = await prisma.intranet_feed.findMany({ take: 10 }) + * + * // Only select the `id` + * const intranet_feedWithIdOnly = await prisma.intranet_feed.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Intranet_feed. + * @param {intranet_feedCreateArgs} args - Arguments to create a Intranet_feed. + * @example + * // Create one Intranet_feed + * const Intranet_feed = await prisma.intranet_feed.create({ + * data: { + * // ... data to create a Intranet_feed + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_feedClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Intranet_feeds. + * @param {intranet_feedCreateManyArgs} args - Arguments to create many Intranet_feeds. + * @example + * // Create many Intranet_feeds + * const intranet_feed = await prisma.intranet_feed.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Intranet_feed. + * @param {intranet_feedDeleteArgs} args - Arguments to delete one Intranet_feed. + * @example + * // Delete one Intranet_feed + * const Intranet_feed = await prisma.intranet_feed.delete({ + * where: { + * // ... filter to delete one Intranet_feed + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_feedClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Intranet_feed. + * @param {intranet_feedUpdateArgs} args - Arguments to update one Intranet_feed. + * @example + * // Update one Intranet_feed + * const intranet_feed = await prisma.intranet_feed.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_feedClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Intranet_feeds. + * @param {intranet_feedDeleteManyArgs} args - Arguments to filter Intranet_feeds to delete. + * @example + * // Delete a few Intranet_feeds + * const { count } = await prisma.intranet_feed.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Intranet_feeds. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_feedUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Intranet_feeds + * const intranet_feed = await prisma.intranet_feed.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Intranet_feed. + * @param {intranet_feedUpsertArgs} args - Arguments to update or create a Intranet_feed. + * @example + * // Update or create a Intranet_feed + * const intranet_feed = await prisma.intranet_feed.upsert({ + * create: { + * // ... data to create a Intranet_feed + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Intranet_feed we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_feedClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Intranet_feeds. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_feedCountArgs} args - Arguments to filter Intranet_feeds to count. + * @example + * // Count the number of Intranet_feeds + * const count = await prisma.intranet_feed.count({ + * where: { + * // ... the filter for the Intranet_feeds 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 Intranet_feed. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Intranet_feedAggregateArgs} 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 Intranet_feed. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_feedGroupByArgs} 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 intranet_feedGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: intranet_feedGroupByArgs['orderBy'] } + : { orderBy?: intranet_feedGroupByArgs['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 ? GetIntranet_feedGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the intranet_feed model + */ +readonly fields: intranet_feedFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for intranet_feed. + * 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__intranet_feedClient 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 intranet_feed model + */ +export interface intranet_feedFieldRefs { + readonly id: Prisma.FieldRef<"intranet_feed", 'BigInt'> + readonly account_id: Prisma.FieldRef<"intranet_feed", 'BigInt'> + readonly date: Prisma.FieldRef<"intranet_feed", 'BigInt'> + readonly title: Prisma.FieldRef<"intranet_feed", 'String'> + readonly msg: Prisma.FieldRef<"intranet_feed", 'String'> + readonly attachment: Prisma.FieldRef<"intranet_feed", 'String'> + readonly unread_csv: Prisma.FieldRef<"intranet_feed", 'String'> +} + + +// Custom InputTypes +/** + * intranet_feed findUnique + */ +export type intranet_feedFindUniqueArgs = { + /** + * Select specific fields to fetch from the intranet_feed + */ + select?: Prisma.intranet_feedSelect | null + /** + * Omit specific fields from the intranet_feed + */ + omit?: Prisma.intranet_feedOmit | null + /** + * Filter, which intranet_feed to fetch. + */ + where: Prisma.intranet_feedWhereUniqueInput +} + +/** + * intranet_feed findUniqueOrThrow + */ +export type intranet_feedFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_feed + */ + select?: Prisma.intranet_feedSelect | null + /** + * Omit specific fields from the intranet_feed + */ + omit?: Prisma.intranet_feedOmit | null + /** + * Filter, which intranet_feed to fetch. + */ + where: Prisma.intranet_feedWhereUniqueInput +} + +/** + * intranet_feed findFirst + */ +export type intranet_feedFindFirstArgs = { + /** + * Select specific fields to fetch from the intranet_feed + */ + select?: Prisma.intranet_feedSelect | null + /** + * Omit specific fields from the intranet_feed + */ + omit?: Prisma.intranet_feedOmit | null + /** + * Filter, which intranet_feed to fetch. + */ + where?: Prisma.intranet_feedWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_feeds to fetch. + */ + orderBy?: Prisma.intranet_feedOrderByWithRelationInput | Prisma.intranet_feedOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_feeds. + */ + cursor?: Prisma.intranet_feedWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_feeds 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` intranet_feeds. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_feeds. + */ + distinct?: Prisma.Intranet_feedScalarFieldEnum | Prisma.Intranet_feedScalarFieldEnum[] +} + +/** + * intranet_feed findFirstOrThrow + */ +export type intranet_feedFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_feed + */ + select?: Prisma.intranet_feedSelect | null + /** + * Omit specific fields from the intranet_feed + */ + omit?: Prisma.intranet_feedOmit | null + /** + * Filter, which intranet_feed to fetch. + */ + where?: Prisma.intranet_feedWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_feeds to fetch. + */ + orderBy?: Prisma.intranet_feedOrderByWithRelationInput | Prisma.intranet_feedOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_feeds. + */ + cursor?: Prisma.intranet_feedWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_feeds 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` intranet_feeds. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_feeds. + */ + distinct?: Prisma.Intranet_feedScalarFieldEnum | Prisma.Intranet_feedScalarFieldEnum[] +} + +/** + * intranet_feed findMany + */ +export type intranet_feedFindManyArgs = { + /** + * Select specific fields to fetch from the intranet_feed + */ + select?: Prisma.intranet_feedSelect | null + /** + * Omit specific fields from the intranet_feed + */ + omit?: Prisma.intranet_feedOmit | null + /** + * Filter, which intranet_feeds to fetch. + */ + where?: Prisma.intranet_feedWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_feeds to fetch. + */ + orderBy?: Prisma.intranet_feedOrderByWithRelationInput | Prisma.intranet_feedOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing intranet_feeds. + */ + cursor?: Prisma.intranet_feedWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_feeds 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` intranet_feeds. + */ + skip?: number + distinct?: Prisma.Intranet_feedScalarFieldEnum | Prisma.Intranet_feedScalarFieldEnum[] +} + +/** + * intranet_feed create + */ +export type intranet_feedCreateArgs = { + /** + * Select specific fields to fetch from the intranet_feed + */ + select?: Prisma.intranet_feedSelect | null + /** + * Omit specific fields from the intranet_feed + */ + omit?: Prisma.intranet_feedOmit | null + /** + * The data needed to create a intranet_feed. + */ + data: Prisma.XOR +} + +/** + * intranet_feed createMany + */ +export type intranet_feedCreateManyArgs = { + /** + * The data used to create many intranet_feeds. + */ + data: Prisma.intranet_feedCreateManyInput | Prisma.intranet_feedCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * intranet_feed update + */ +export type intranet_feedUpdateArgs = { + /** + * Select specific fields to fetch from the intranet_feed + */ + select?: Prisma.intranet_feedSelect | null + /** + * Omit specific fields from the intranet_feed + */ + omit?: Prisma.intranet_feedOmit | null + /** + * The data needed to update a intranet_feed. + */ + data: Prisma.XOR + /** + * Choose, which intranet_feed to update. + */ + where: Prisma.intranet_feedWhereUniqueInput +} + +/** + * intranet_feed updateMany + */ +export type intranet_feedUpdateManyArgs = { + /** + * The data used to update intranet_feeds. + */ + data: Prisma.XOR + /** + * Filter which intranet_feeds to update + */ + where?: Prisma.intranet_feedWhereInput + /** + * Limit how many intranet_feeds to update. + */ + limit?: number +} + +/** + * intranet_feed upsert + */ +export type intranet_feedUpsertArgs = { + /** + * Select specific fields to fetch from the intranet_feed + */ + select?: Prisma.intranet_feedSelect | null + /** + * Omit specific fields from the intranet_feed + */ + omit?: Prisma.intranet_feedOmit | null + /** + * The filter to search for the intranet_feed to update in case it exists. + */ + where: Prisma.intranet_feedWhereUniqueInput + /** + * In case the intranet_feed found by the `where` argument doesn't exist, create a new intranet_feed with this data. + */ + create: Prisma.XOR + /** + * In case the intranet_feed was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * intranet_feed delete + */ +export type intranet_feedDeleteArgs = { + /** + * Select specific fields to fetch from the intranet_feed + */ + select?: Prisma.intranet_feedSelect | null + /** + * Omit specific fields from the intranet_feed + */ + omit?: Prisma.intranet_feedOmit | null + /** + * Filter which intranet_feed to delete. + */ + where: Prisma.intranet_feedWhereUniqueInput +} + +/** + * intranet_feed deleteMany + */ +export type intranet_feedDeleteManyArgs = { + /** + * Filter which intranet_feeds to delete + */ + where?: Prisma.intranet_feedWhereInput + /** + * Limit how many intranet_feeds to delete. + */ + limit?: number +} + +/** + * intranet_feed without action + */ +export type intranet_feedDefaultArgs = { + /** + * Select specific fields to fetch from the intranet_feed + */ + select?: Prisma.intranet_feedSelect | null + /** + * Omit specific fields from the intranet_feed + */ + omit?: Prisma.intranet_feedOmit | null +} diff --git a/prisma/generated/mariadb/models/intranet_feed_reply.ts b/prisma/generated/mariadb/models/intranet_feed_reply.ts new file mode 100644 index 0000000..537ef79 --- /dev/null +++ b/prisma/generated/mariadb/models/intranet_feed_reply.ts @@ -0,0 +1,1132 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `intranet_feed_reply` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model intranet_feed_reply + * + */ +export type intranet_feed_replyModel = runtime.Types.Result.DefaultSelection + +export type AggregateIntranet_feed_reply = { + _count: Intranet_feed_replyCountAggregateOutputType | null + _avg: Intranet_feed_replyAvgAggregateOutputType | null + _sum: Intranet_feed_replySumAggregateOutputType | null + _min: Intranet_feed_replyMinAggregateOutputType | null + _max: Intranet_feed_replyMaxAggregateOutputType | null +} + +export type Intranet_feed_replyAvgAggregateOutputType = { + id: number | null + feed_id: number | null + date: number | null + account_id: number | null + attachment: number | null +} + +export type Intranet_feed_replySumAggregateOutputType = { + id: bigint | null + feed_id: bigint | null + date: bigint | null + account_id: bigint | null + attachment: bigint | null +} + +export type Intranet_feed_replyMinAggregateOutputType = { + id: bigint | null + feed_id: bigint | null + date: bigint | null + account_id: bigint | null + msg: string | null + attachment: bigint | null +} + +export type Intranet_feed_replyMaxAggregateOutputType = { + id: bigint | null + feed_id: bigint | null + date: bigint | null + account_id: bigint | null + msg: string | null + attachment: bigint | null +} + +export type Intranet_feed_replyCountAggregateOutputType = { + id: number + feed_id: number + date: number + account_id: number + msg: number + attachment: number + _all: number +} + + +export type Intranet_feed_replyAvgAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + attachment?: true +} + +export type Intranet_feed_replySumAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + attachment?: true +} + +export type Intranet_feed_replyMinAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + msg?: true + attachment?: true +} + +export type Intranet_feed_replyMaxAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + msg?: true + attachment?: true +} + +export type Intranet_feed_replyCountAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + msg?: true + attachment?: true + _all?: true +} + +export type Intranet_feed_replyAggregateArgs = { + /** + * Filter which intranet_feed_reply to aggregate. + */ + where?: Prisma.intranet_feed_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_feed_replies to fetch. + */ + orderBy?: Prisma.intranet_feed_replyOrderByWithRelationInput | Prisma.intranet_feed_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.intranet_feed_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_feed_replies 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` intranet_feed_replies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned intranet_feed_replies + **/ + _count?: true | Intranet_feed_replyCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Intranet_feed_replyAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Intranet_feed_replySumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Intranet_feed_replyMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Intranet_feed_replyMaxAggregateInputType +} + +export type GetIntranet_feed_replyAggregateType = { + [P in keyof T & keyof AggregateIntranet_feed_reply]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type intranet_feed_replyGroupByArgs = { + where?: Prisma.intranet_feed_replyWhereInput + orderBy?: Prisma.intranet_feed_replyOrderByWithAggregationInput | Prisma.intranet_feed_replyOrderByWithAggregationInput[] + by: Prisma.Intranet_feed_replyScalarFieldEnum[] | Prisma.Intranet_feed_replyScalarFieldEnum + having?: Prisma.intranet_feed_replyScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Intranet_feed_replyCountAggregateInputType | true + _avg?: Intranet_feed_replyAvgAggregateInputType + _sum?: Intranet_feed_replySumAggregateInputType + _min?: Intranet_feed_replyMinAggregateInputType + _max?: Intranet_feed_replyMaxAggregateInputType +} + +export type Intranet_feed_replyGroupByOutputType = { + id: bigint + feed_id: bigint + date: bigint + account_id: bigint + msg: string + attachment: bigint + _count: Intranet_feed_replyCountAggregateOutputType | null + _avg: Intranet_feed_replyAvgAggregateOutputType | null + _sum: Intranet_feed_replySumAggregateOutputType | null + _min: Intranet_feed_replyMinAggregateOutputType | null + _max: Intranet_feed_replyMaxAggregateOutputType | null +} + +type GetIntranet_feed_replyGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Intranet_feed_replyGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type intranet_feed_replyWhereInput = { + AND?: Prisma.intranet_feed_replyWhereInput | Prisma.intranet_feed_replyWhereInput[] + OR?: Prisma.intranet_feed_replyWhereInput[] + NOT?: Prisma.intranet_feed_replyWhereInput | Prisma.intranet_feed_replyWhereInput[] + id?: Prisma.BigIntFilter<"intranet_feed_reply"> | bigint | number + feed_id?: Prisma.BigIntFilter<"intranet_feed_reply"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_feed_reply"> | bigint | number + account_id?: Prisma.BigIntFilter<"intranet_feed_reply"> | bigint | number + msg?: Prisma.StringFilter<"intranet_feed_reply"> | string + attachment?: Prisma.BigIntFilter<"intranet_feed_reply"> | bigint | number +} + +export type intranet_feed_replyOrderByWithRelationInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + _relevance?: Prisma.intranet_feed_replyOrderByRelevanceInput +} + +export type intranet_feed_replyWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.intranet_feed_replyWhereInput | Prisma.intranet_feed_replyWhereInput[] + OR?: Prisma.intranet_feed_replyWhereInput[] + NOT?: Prisma.intranet_feed_replyWhereInput | Prisma.intranet_feed_replyWhereInput[] + feed_id?: Prisma.BigIntFilter<"intranet_feed_reply"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_feed_reply"> | bigint | number + account_id?: Prisma.BigIntFilter<"intranet_feed_reply"> | bigint | number + msg?: Prisma.StringFilter<"intranet_feed_reply"> | string + attachment?: Prisma.BigIntFilter<"intranet_feed_reply"> | bigint | number +}, "id"> + +export type intranet_feed_replyOrderByWithAggregationInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + _count?: Prisma.intranet_feed_replyCountOrderByAggregateInput + _avg?: Prisma.intranet_feed_replyAvgOrderByAggregateInput + _max?: Prisma.intranet_feed_replyMaxOrderByAggregateInput + _min?: Prisma.intranet_feed_replyMinOrderByAggregateInput + _sum?: Prisma.intranet_feed_replySumOrderByAggregateInput +} + +export type intranet_feed_replyScalarWhereWithAggregatesInput = { + AND?: Prisma.intranet_feed_replyScalarWhereWithAggregatesInput | Prisma.intranet_feed_replyScalarWhereWithAggregatesInput[] + OR?: Prisma.intranet_feed_replyScalarWhereWithAggregatesInput[] + NOT?: Prisma.intranet_feed_replyScalarWhereWithAggregatesInput | Prisma.intranet_feed_replyScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"intranet_feed_reply"> | bigint | number + feed_id?: Prisma.BigIntWithAggregatesFilter<"intranet_feed_reply"> | bigint | number + date?: Prisma.BigIntWithAggregatesFilter<"intranet_feed_reply"> | bigint | number + account_id?: Prisma.BigIntWithAggregatesFilter<"intranet_feed_reply"> | bigint | number + msg?: Prisma.StringWithAggregatesFilter<"intranet_feed_reply"> | string + attachment?: Prisma.BigIntWithAggregatesFilter<"intranet_feed_reply"> | bigint | number +} + +export type intranet_feed_replyCreateInput = { + id?: bigint | number + feed_id: bigint | number + date: bigint | number + account_id: bigint | number + msg: string + attachment: bigint | number +} + +export type intranet_feed_replyUncheckedCreateInput = { + id?: bigint | number + feed_id: bigint | number + date: bigint | number + account_id: bigint | number + msg: string + attachment: bigint | number +} + +export type intranet_feed_replyUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type intranet_feed_replyUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type intranet_feed_replyCreateManyInput = { + id?: bigint | number + feed_id: bigint | number + date: bigint | number + account_id: bigint | number + msg: string + attachment: bigint | number +} + +export type intranet_feed_replyUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type intranet_feed_replyUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type intranet_feed_replyOrderByRelevanceInput = { + fields: Prisma.intranet_feed_replyOrderByRelevanceFieldEnum | Prisma.intranet_feed_replyOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type intranet_feed_replyCountOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + +export type intranet_feed_replyAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + +export type intranet_feed_replyMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + +export type intranet_feed_replyMinOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + +export type intranet_feed_replySumOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + + + +export type intranet_feed_replySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + feed_id?: boolean + date?: boolean + account_id?: boolean + msg?: boolean + attachment?: boolean +}, ExtArgs["result"]["intranet_feed_reply"]> + + + +export type intranet_feed_replySelectScalar = { + id?: boolean + feed_id?: boolean + date?: boolean + account_id?: boolean + msg?: boolean + attachment?: boolean +} + +export type intranet_feed_replyOmit = runtime.Types.Extensions.GetOmit<"id" | "feed_id" | "date" | "account_id" | "msg" | "attachment", ExtArgs["result"]["intranet_feed_reply"]> + +export type $intranet_feed_replyPayload = { + name: "intranet_feed_reply" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + feed_id: bigint + date: bigint + account_id: bigint + msg: string + attachment: bigint + }, ExtArgs["result"]["intranet_feed_reply"]> + composites: {} +} + +export type intranet_feed_replyGetPayload = runtime.Types.Result.GetResult + +export type intranet_feed_replyCountArgs = + Omit & { + select?: Intranet_feed_replyCountAggregateInputType | true + } + +export interface intranet_feed_replyDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['intranet_feed_reply'], meta: { name: 'intranet_feed_reply' } } + /** + * Find zero or one Intranet_feed_reply that matches the filter. + * @param {intranet_feed_replyFindUniqueArgs} args - Arguments to find a Intranet_feed_reply + * @example + * // Get one Intranet_feed_reply + * const intranet_feed_reply = await prisma.intranet_feed_reply.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_feed_replyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Intranet_feed_reply that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {intranet_feed_replyFindUniqueOrThrowArgs} args - Arguments to find a Intranet_feed_reply + * @example + * // Get one Intranet_feed_reply + * const intranet_feed_reply = await prisma.intranet_feed_reply.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_feed_replyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_feed_reply 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 {intranet_feed_replyFindFirstArgs} args - Arguments to find a Intranet_feed_reply + * @example + * // Get one Intranet_feed_reply + * const intranet_feed_reply = await prisma.intranet_feed_reply.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_feed_replyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_feed_reply 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 {intranet_feed_replyFindFirstOrThrowArgs} args - Arguments to find a Intranet_feed_reply + * @example + * // Get one Intranet_feed_reply + * const intranet_feed_reply = await prisma.intranet_feed_reply.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_feed_replyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Intranet_feed_replies 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 {intranet_feed_replyFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Intranet_feed_replies + * const intranet_feed_replies = await prisma.intranet_feed_reply.findMany() + * + * // Get first 10 Intranet_feed_replies + * const intranet_feed_replies = await prisma.intranet_feed_reply.findMany({ take: 10 }) + * + * // Only select the `id` + * const intranet_feed_replyWithIdOnly = await prisma.intranet_feed_reply.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Intranet_feed_reply. + * @param {intranet_feed_replyCreateArgs} args - Arguments to create a Intranet_feed_reply. + * @example + * // Create one Intranet_feed_reply + * const Intranet_feed_reply = await prisma.intranet_feed_reply.create({ + * data: { + * // ... data to create a Intranet_feed_reply + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_feed_replyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Intranet_feed_replies. + * @param {intranet_feed_replyCreateManyArgs} args - Arguments to create many Intranet_feed_replies. + * @example + * // Create many Intranet_feed_replies + * const intranet_feed_reply = await prisma.intranet_feed_reply.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Intranet_feed_reply. + * @param {intranet_feed_replyDeleteArgs} args - Arguments to delete one Intranet_feed_reply. + * @example + * // Delete one Intranet_feed_reply + * const Intranet_feed_reply = await prisma.intranet_feed_reply.delete({ + * where: { + * // ... filter to delete one Intranet_feed_reply + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_feed_replyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Intranet_feed_reply. + * @param {intranet_feed_replyUpdateArgs} args - Arguments to update one Intranet_feed_reply. + * @example + * // Update one Intranet_feed_reply + * const intranet_feed_reply = await prisma.intranet_feed_reply.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_feed_replyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Intranet_feed_replies. + * @param {intranet_feed_replyDeleteManyArgs} args - Arguments to filter Intranet_feed_replies to delete. + * @example + * // Delete a few Intranet_feed_replies + * const { count } = await prisma.intranet_feed_reply.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Intranet_feed_replies. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_feed_replyUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Intranet_feed_replies + * const intranet_feed_reply = await prisma.intranet_feed_reply.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Intranet_feed_reply. + * @param {intranet_feed_replyUpsertArgs} args - Arguments to update or create a Intranet_feed_reply. + * @example + * // Update or create a Intranet_feed_reply + * const intranet_feed_reply = await prisma.intranet_feed_reply.upsert({ + * create: { + * // ... data to create a Intranet_feed_reply + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Intranet_feed_reply we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_feed_replyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Intranet_feed_replies. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_feed_replyCountArgs} args - Arguments to filter Intranet_feed_replies to count. + * @example + * // Count the number of Intranet_feed_replies + * const count = await prisma.intranet_feed_reply.count({ + * where: { + * // ... the filter for the Intranet_feed_replies 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 Intranet_feed_reply. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Intranet_feed_replyAggregateArgs} 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 Intranet_feed_reply. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_feed_replyGroupByArgs} 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 intranet_feed_replyGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: intranet_feed_replyGroupByArgs['orderBy'] } + : { orderBy?: intranet_feed_replyGroupByArgs['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 ? GetIntranet_feed_replyGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the intranet_feed_reply model + */ +readonly fields: intranet_feed_replyFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for intranet_feed_reply. + * 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__intranet_feed_replyClient 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 intranet_feed_reply model + */ +export interface intranet_feed_replyFieldRefs { + readonly id: Prisma.FieldRef<"intranet_feed_reply", 'BigInt'> + readonly feed_id: Prisma.FieldRef<"intranet_feed_reply", 'BigInt'> + readonly date: Prisma.FieldRef<"intranet_feed_reply", 'BigInt'> + readonly account_id: Prisma.FieldRef<"intranet_feed_reply", 'BigInt'> + readonly msg: Prisma.FieldRef<"intranet_feed_reply", 'String'> + readonly attachment: Prisma.FieldRef<"intranet_feed_reply", 'BigInt'> +} + + +// Custom InputTypes +/** + * intranet_feed_reply findUnique + */ +export type intranet_feed_replyFindUniqueArgs = { + /** + * Select specific fields to fetch from the intranet_feed_reply + */ + select?: Prisma.intranet_feed_replySelect | null + /** + * Omit specific fields from the intranet_feed_reply + */ + omit?: Prisma.intranet_feed_replyOmit | null + /** + * Filter, which intranet_feed_reply to fetch. + */ + where: Prisma.intranet_feed_replyWhereUniqueInput +} + +/** + * intranet_feed_reply findUniqueOrThrow + */ +export type intranet_feed_replyFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_feed_reply + */ + select?: Prisma.intranet_feed_replySelect | null + /** + * Omit specific fields from the intranet_feed_reply + */ + omit?: Prisma.intranet_feed_replyOmit | null + /** + * Filter, which intranet_feed_reply to fetch. + */ + where: Prisma.intranet_feed_replyWhereUniqueInput +} + +/** + * intranet_feed_reply findFirst + */ +export type intranet_feed_replyFindFirstArgs = { + /** + * Select specific fields to fetch from the intranet_feed_reply + */ + select?: Prisma.intranet_feed_replySelect | null + /** + * Omit specific fields from the intranet_feed_reply + */ + omit?: Prisma.intranet_feed_replyOmit | null + /** + * Filter, which intranet_feed_reply to fetch. + */ + where?: Prisma.intranet_feed_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_feed_replies to fetch. + */ + orderBy?: Prisma.intranet_feed_replyOrderByWithRelationInput | Prisma.intranet_feed_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_feed_replies. + */ + cursor?: Prisma.intranet_feed_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_feed_replies 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` intranet_feed_replies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_feed_replies. + */ + distinct?: Prisma.Intranet_feed_replyScalarFieldEnum | Prisma.Intranet_feed_replyScalarFieldEnum[] +} + +/** + * intranet_feed_reply findFirstOrThrow + */ +export type intranet_feed_replyFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_feed_reply + */ + select?: Prisma.intranet_feed_replySelect | null + /** + * Omit specific fields from the intranet_feed_reply + */ + omit?: Prisma.intranet_feed_replyOmit | null + /** + * Filter, which intranet_feed_reply to fetch. + */ + where?: Prisma.intranet_feed_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_feed_replies to fetch. + */ + orderBy?: Prisma.intranet_feed_replyOrderByWithRelationInput | Prisma.intranet_feed_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_feed_replies. + */ + cursor?: Prisma.intranet_feed_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_feed_replies 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` intranet_feed_replies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_feed_replies. + */ + distinct?: Prisma.Intranet_feed_replyScalarFieldEnum | Prisma.Intranet_feed_replyScalarFieldEnum[] +} + +/** + * intranet_feed_reply findMany + */ +export type intranet_feed_replyFindManyArgs = { + /** + * Select specific fields to fetch from the intranet_feed_reply + */ + select?: Prisma.intranet_feed_replySelect | null + /** + * Omit specific fields from the intranet_feed_reply + */ + omit?: Prisma.intranet_feed_replyOmit | null + /** + * Filter, which intranet_feed_replies to fetch. + */ + where?: Prisma.intranet_feed_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_feed_replies to fetch. + */ + orderBy?: Prisma.intranet_feed_replyOrderByWithRelationInput | Prisma.intranet_feed_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing intranet_feed_replies. + */ + cursor?: Prisma.intranet_feed_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_feed_replies 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` intranet_feed_replies. + */ + skip?: number + distinct?: Prisma.Intranet_feed_replyScalarFieldEnum | Prisma.Intranet_feed_replyScalarFieldEnum[] +} + +/** + * intranet_feed_reply create + */ +export type intranet_feed_replyCreateArgs = { + /** + * Select specific fields to fetch from the intranet_feed_reply + */ + select?: Prisma.intranet_feed_replySelect | null + /** + * Omit specific fields from the intranet_feed_reply + */ + omit?: Prisma.intranet_feed_replyOmit | null + /** + * The data needed to create a intranet_feed_reply. + */ + data: Prisma.XOR +} + +/** + * intranet_feed_reply createMany + */ +export type intranet_feed_replyCreateManyArgs = { + /** + * The data used to create many intranet_feed_replies. + */ + data: Prisma.intranet_feed_replyCreateManyInput | Prisma.intranet_feed_replyCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * intranet_feed_reply update + */ +export type intranet_feed_replyUpdateArgs = { + /** + * Select specific fields to fetch from the intranet_feed_reply + */ + select?: Prisma.intranet_feed_replySelect | null + /** + * Omit specific fields from the intranet_feed_reply + */ + omit?: Prisma.intranet_feed_replyOmit | null + /** + * The data needed to update a intranet_feed_reply. + */ + data: Prisma.XOR + /** + * Choose, which intranet_feed_reply to update. + */ + where: Prisma.intranet_feed_replyWhereUniqueInput +} + +/** + * intranet_feed_reply updateMany + */ +export type intranet_feed_replyUpdateManyArgs = { + /** + * The data used to update intranet_feed_replies. + */ + data: Prisma.XOR + /** + * Filter which intranet_feed_replies to update + */ + where?: Prisma.intranet_feed_replyWhereInput + /** + * Limit how many intranet_feed_replies to update. + */ + limit?: number +} + +/** + * intranet_feed_reply upsert + */ +export type intranet_feed_replyUpsertArgs = { + /** + * Select specific fields to fetch from the intranet_feed_reply + */ + select?: Prisma.intranet_feed_replySelect | null + /** + * Omit specific fields from the intranet_feed_reply + */ + omit?: Prisma.intranet_feed_replyOmit | null + /** + * The filter to search for the intranet_feed_reply to update in case it exists. + */ + where: Prisma.intranet_feed_replyWhereUniqueInput + /** + * In case the intranet_feed_reply found by the `where` argument doesn't exist, create a new intranet_feed_reply with this data. + */ + create: Prisma.XOR + /** + * In case the intranet_feed_reply was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * intranet_feed_reply delete + */ +export type intranet_feed_replyDeleteArgs = { + /** + * Select specific fields to fetch from the intranet_feed_reply + */ + select?: Prisma.intranet_feed_replySelect | null + /** + * Omit specific fields from the intranet_feed_reply + */ + omit?: Prisma.intranet_feed_replyOmit | null + /** + * Filter which intranet_feed_reply to delete. + */ + where: Prisma.intranet_feed_replyWhereUniqueInput +} + +/** + * intranet_feed_reply deleteMany + */ +export type intranet_feed_replyDeleteManyArgs = { + /** + * Filter which intranet_feed_replies to delete + */ + where?: Prisma.intranet_feed_replyWhereInput + /** + * Limit how many intranet_feed_replies to delete. + */ + limit?: number +} + +/** + * intranet_feed_reply without action + */ +export type intranet_feed_replyDefaultArgs = { + /** + * Select specific fields to fetch from the intranet_feed_reply + */ + select?: Prisma.intranet_feed_replySelect | null + /** + * Omit specific fields from the intranet_feed_reply + */ + omit?: Prisma.intranet_feed_replyOmit | null +} diff --git a/prisma/generated/mariadb/models/intranet_techniciens.ts b/prisma/generated/mariadb/models/intranet_techniciens.ts new file mode 100644 index 0000000..9915dd1 --- /dev/null +++ b/prisma/generated/mariadb/models/intranet_techniciens.ts @@ -0,0 +1,1146 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `intranet_techniciens` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model intranet_techniciens + * + */ +export type intranet_techniciensModel = runtime.Types.Result.DefaultSelection + +export type AggregateIntranet_techniciens = { + _count: Intranet_techniciensCountAggregateOutputType | null + _avg: Intranet_techniciensAvgAggregateOutputType | null + _sum: Intranet_techniciensSumAggregateOutputType | null + _min: Intranet_techniciensMinAggregateOutputType | null + _max: Intranet_techniciensMaxAggregateOutputType | null +} + +export type Intranet_techniciensAvgAggregateOutputType = { + id: number | null + account_id: number | null + date: number | null +} + +export type Intranet_techniciensSumAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date: bigint | null +} + +export type Intranet_techniciensMinAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date: bigint | null + title: string | null + msg: string | null + attachment: string | null + unread_csv: string | null +} + +export type Intranet_techniciensMaxAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date: bigint | null + title: string | null + msg: string | null + attachment: string | null + unread_csv: string | null +} + +export type Intranet_techniciensCountAggregateOutputType = { + id: number + account_id: number + date: number + title: number + msg: number + attachment: number + unread_csv: number + _all: number +} + + +export type Intranet_techniciensAvgAggregateInputType = { + id?: true + account_id?: true + date?: true +} + +export type Intranet_techniciensSumAggregateInputType = { + id?: true + account_id?: true + date?: true +} + +export type Intranet_techniciensMinAggregateInputType = { + id?: true + account_id?: true + date?: true + title?: true + msg?: true + attachment?: true + unread_csv?: true +} + +export type Intranet_techniciensMaxAggregateInputType = { + id?: true + account_id?: true + date?: true + title?: true + msg?: true + attachment?: true + unread_csv?: true +} + +export type Intranet_techniciensCountAggregateInputType = { + id?: true + account_id?: true + date?: true + title?: true + msg?: true + attachment?: true + unread_csv?: true + _all?: true +} + +export type Intranet_techniciensAggregateArgs = { + /** + * Filter which intranet_techniciens to aggregate. + */ + where?: Prisma.intranet_techniciensWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_techniciens to fetch. + */ + orderBy?: Prisma.intranet_techniciensOrderByWithRelationInput | Prisma.intranet_techniciensOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.intranet_techniciensWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_techniciens 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` intranet_techniciens. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned intranet_techniciens + **/ + _count?: true | Intranet_techniciensCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Intranet_techniciensAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Intranet_techniciensSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Intranet_techniciensMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Intranet_techniciensMaxAggregateInputType +} + +export type GetIntranet_techniciensAggregateType = { + [P in keyof T & keyof AggregateIntranet_techniciens]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type intranet_techniciensGroupByArgs = { + where?: Prisma.intranet_techniciensWhereInput + orderBy?: Prisma.intranet_techniciensOrderByWithAggregationInput | Prisma.intranet_techniciensOrderByWithAggregationInput[] + by: Prisma.Intranet_techniciensScalarFieldEnum[] | Prisma.Intranet_techniciensScalarFieldEnum + having?: Prisma.intranet_techniciensScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Intranet_techniciensCountAggregateInputType | true + _avg?: Intranet_techniciensAvgAggregateInputType + _sum?: Intranet_techniciensSumAggregateInputType + _min?: Intranet_techniciensMinAggregateInputType + _max?: Intranet_techniciensMaxAggregateInputType +} + +export type Intranet_techniciensGroupByOutputType = { + id: bigint + account_id: bigint + date: bigint + title: string + msg: string + attachment: string + unread_csv: string + _count: Intranet_techniciensCountAggregateOutputType | null + _avg: Intranet_techniciensAvgAggregateOutputType | null + _sum: Intranet_techniciensSumAggregateOutputType | null + _min: Intranet_techniciensMinAggregateOutputType | null + _max: Intranet_techniciensMaxAggregateOutputType | null +} + +type GetIntranet_techniciensGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Intranet_techniciensGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type intranet_techniciensWhereInput = { + AND?: Prisma.intranet_techniciensWhereInput | Prisma.intranet_techniciensWhereInput[] + OR?: Prisma.intranet_techniciensWhereInput[] + NOT?: Prisma.intranet_techniciensWhereInput | Prisma.intranet_techniciensWhereInput[] + id?: Prisma.BigIntFilter<"intranet_techniciens"> | bigint | number + account_id?: Prisma.BigIntFilter<"intranet_techniciens"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_techniciens"> | bigint | number + title?: Prisma.StringFilter<"intranet_techniciens"> | string + msg?: Prisma.StringFilter<"intranet_techniciens"> | string + attachment?: Prisma.StringFilter<"intranet_techniciens"> | string + unread_csv?: Prisma.StringFilter<"intranet_techniciens"> | string +} + +export type intranet_techniciensOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder + _relevance?: Prisma.intranet_techniciensOrderByRelevanceInput +} + +export type intranet_techniciensWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.intranet_techniciensWhereInput | Prisma.intranet_techniciensWhereInput[] + OR?: Prisma.intranet_techniciensWhereInput[] + NOT?: Prisma.intranet_techniciensWhereInput | Prisma.intranet_techniciensWhereInput[] + account_id?: Prisma.BigIntFilter<"intranet_techniciens"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_techniciens"> | bigint | number + title?: Prisma.StringFilter<"intranet_techniciens"> | string + msg?: Prisma.StringFilter<"intranet_techniciens"> | string + attachment?: Prisma.StringFilter<"intranet_techniciens"> | string + unread_csv?: Prisma.StringFilter<"intranet_techniciens"> | string +}, "id"> + +export type intranet_techniciensOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder + _count?: Prisma.intranet_techniciensCountOrderByAggregateInput + _avg?: Prisma.intranet_techniciensAvgOrderByAggregateInput + _max?: Prisma.intranet_techniciensMaxOrderByAggregateInput + _min?: Prisma.intranet_techniciensMinOrderByAggregateInput + _sum?: Prisma.intranet_techniciensSumOrderByAggregateInput +} + +export type intranet_techniciensScalarWhereWithAggregatesInput = { + AND?: Prisma.intranet_techniciensScalarWhereWithAggregatesInput | Prisma.intranet_techniciensScalarWhereWithAggregatesInput[] + OR?: Prisma.intranet_techniciensScalarWhereWithAggregatesInput[] + NOT?: Prisma.intranet_techniciensScalarWhereWithAggregatesInput | Prisma.intranet_techniciensScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"intranet_techniciens"> | bigint | number + account_id?: Prisma.BigIntWithAggregatesFilter<"intranet_techniciens"> | bigint | number + date?: Prisma.BigIntWithAggregatesFilter<"intranet_techniciens"> | bigint | number + title?: Prisma.StringWithAggregatesFilter<"intranet_techniciens"> | string + msg?: Prisma.StringWithAggregatesFilter<"intranet_techniciens"> | string + attachment?: Prisma.StringWithAggregatesFilter<"intranet_techniciens"> | string + unread_csv?: Prisma.StringWithAggregatesFilter<"intranet_techniciens"> | string +} + +export type intranet_techniciensCreateInput = { + id?: bigint | number + account_id: bigint | number + date: bigint | number + title: string + msg: string + attachment: string + unread_csv: string +} + +export type intranet_techniciensUncheckedCreateInput = { + id?: bigint | number + account_id: bigint | number + date: bigint | number + title: string + msg: string + attachment: string + unread_csv: string +} + +export type intranet_techniciensUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type intranet_techniciensUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type intranet_techniciensCreateManyInput = { + id?: bigint | number + account_id: bigint | number + date: bigint | number + title: string + msg: string + attachment: string + unread_csv: string +} + +export type intranet_techniciensUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type intranet_techniciensUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type intranet_techniciensOrderByRelevanceInput = { + fields: Prisma.intranet_techniciensOrderByRelevanceFieldEnum | Prisma.intranet_techniciensOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type intranet_techniciensCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder +} + +export type intranet_techniciensAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder +} + +export type intranet_techniciensMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder +} + +export type intranet_techniciensMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder +} + +export type intranet_techniciensSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder +} + + + +export type intranet_techniciensSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + date?: boolean + title?: boolean + msg?: boolean + attachment?: boolean + unread_csv?: boolean +}, ExtArgs["result"]["intranet_techniciens"]> + + + +export type intranet_techniciensSelectScalar = { + id?: boolean + account_id?: boolean + date?: boolean + title?: boolean + msg?: boolean + attachment?: boolean + unread_csv?: boolean +} + +export type intranet_techniciensOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date" | "title" | "msg" | "attachment" | "unread_csv", ExtArgs["result"]["intranet_techniciens"]> + +export type $intranet_techniciensPayload = { + name: "intranet_techniciens" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + account_id: bigint + date: bigint + title: string + msg: string + attachment: string + unread_csv: string + }, ExtArgs["result"]["intranet_techniciens"]> + composites: {} +} + +export type intranet_techniciensGetPayload = runtime.Types.Result.GetResult + +export type intranet_techniciensCountArgs = + Omit & { + select?: Intranet_techniciensCountAggregateInputType | true + } + +export interface intranet_techniciensDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['intranet_techniciens'], meta: { name: 'intranet_techniciens' } } + /** + * Find zero or one Intranet_techniciens that matches the filter. + * @param {intranet_techniciensFindUniqueArgs} args - Arguments to find a Intranet_techniciens + * @example + * // Get one Intranet_techniciens + * const intranet_techniciens = await prisma.intranet_techniciens.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciensClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Intranet_techniciens that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {intranet_techniciensFindUniqueOrThrowArgs} args - Arguments to find a Intranet_techniciens + * @example + * // Get one Intranet_techniciens + * const intranet_techniciens = await prisma.intranet_techniciens.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciensClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_techniciens 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 {intranet_techniciensFindFirstArgs} args - Arguments to find a Intranet_techniciens + * @example + * // Get one Intranet_techniciens + * const intranet_techniciens = await prisma.intranet_techniciens.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciensClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_techniciens 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 {intranet_techniciensFindFirstOrThrowArgs} args - Arguments to find a Intranet_techniciens + * @example + * // Get one Intranet_techniciens + * const intranet_techniciens = await prisma.intranet_techniciens.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciensClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Intranet_techniciens 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 {intranet_techniciensFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Intranet_techniciens + * const intranet_techniciens = await prisma.intranet_techniciens.findMany() + * + * // Get first 10 Intranet_techniciens + * const intranet_techniciens = await prisma.intranet_techniciens.findMany({ take: 10 }) + * + * // Only select the `id` + * const intranet_techniciensWithIdOnly = await prisma.intranet_techniciens.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Intranet_techniciens. + * @param {intranet_techniciensCreateArgs} args - Arguments to create a Intranet_techniciens. + * @example + * // Create one Intranet_techniciens + * const Intranet_techniciens = await prisma.intranet_techniciens.create({ + * data: { + * // ... data to create a Intranet_techniciens + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciensClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Intranet_techniciens. + * @param {intranet_techniciensCreateManyArgs} args - Arguments to create many Intranet_techniciens. + * @example + * // Create many Intranet_techniciens + * const intranet_techniciens = await prisma.intranet_techniciens.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Intranet_techniciens. + * @param {intranet_techniciensDeleteArgs} args - Arguments to delete one Intranet_techniciens. + * @example + * // Delete one Intranet_techniciens + * const Intranet_techniciens = await prisma.intranet_techniciens.delete({ + * where: { + * // ... filter to delete one Intranet_techniciens + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciensClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Intranet_techniciens. + * @param {intranet_techniciensUpdateArgs} args - Arguments to update one Intranet_techniciens. + * @example + * // Update one Intranet_techniciens + * const intranet_techniciens = await prisma.intranet_techniciens.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciensClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Intranet_techniciens. + * @param {intranet_techniciensDeleteManyArgs} args - Arguments to filter Intranet_techniciens to delete. + * @example + * // Delete a few Intranet_techniciens + * const { count } = await prisma.intranet_techniciens.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Intranet_techniciens. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_techniciensUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Intranet_techniciens + * const intranet_techniciens = await prisma.intranet_techniciens.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Intranet_techniciens. + * @param {intranet_techniciensUpsertArgs} args - Arguments to update or create a Intranet_techniciens. + * @example + * // Update or create a Intranet_techniciens + * const intranet_techniciens = await prisma.intranet_techniciens.upsert({ + * create: { + * // ... data to create a Intranet_techniciens + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Intranet_techniciens we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciensClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Intranet_techniciens. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_techniciensCountArgs} args - Arguments to filter Intranet_techniciens to count. + * @example + * // Count the number of Intranet_techniciens + * const count = await prisma.intranet_techniciens.count({ + * where: { + * // ... the filter for the Intranet_techniciens 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 Intranet_techniciens. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Intranet_techniciensAggregateArgs} 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 Intranet_techniciens. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_techniciensGroupByArgs} 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 intranet_techniciensGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: intranet_techniciensGroupByArgs['orderBy'] } + : { orderBy?: intranet_techniciensGroupByArgs['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 ? GetIntranet_techniciensGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the intranet_techniciens model + */ +readonly fields: intranet_techniciensFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for intranet_techniciens. + * 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__intranet_techniciensClient 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 intranet_techniciens model + */ +export interface intranet_techniciensFieldRefs { + readonly id: Prisma.FieldRef<"intranet_techniciens", 'BigInt'> + readonly account_id: Prisma.FieldRef<"intranet_techniciens", 'BigInt'> + readonly date: Prisma.FieldRef<"intranet_techniciens", 'BigInt'> + readonly title: Prisma.FieldRef<"intranet_techniciens", 'String'> + readonly msg: Prisma.FieldRef<"intranet_techniciens", 'String'> + readonly attachment: Prisma.FieldRef<"intranet_techniciens", 'String'> + readonly unread_csv: Prisma.FieldRef<"intranet_techniciens", 'String'> +} + + +// Custom InputTypes +/** + * intranet_techniciens findUnique + */ +export type intranet_techniciensFindUniqueArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens + */ + select?: Prisma.intranet_techniciensSelect | null + /** + * Omit specific fields from the intranet_techniciens + */ + omit?: Prisma.intranet_techniciensOmit | null + /** + * Filter, which intranet_techniciens to fetch. + */ + where: Prisma.intranet_techniciensWhereUniqueInput +} + +/** + * intranet_techniciens findUniqueOrThrow + */ +export type intranet_techniciensFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens + */ + select?: Prisma.intranet_techniciensSelect | null + /** + * Omit specific fields from the intranet_techniciens + */ + omit?: Prisma.intranet_techniciensOmit | null + /** + * Filter, which intranet_techniciens to fetch. + */ + where: Prisma.intranet_techniciensWhereUniqueInput +} + +/** + * intranet_techniciens findFirst + */ +export type intranet_techniciensFindFirstArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens + */ + select?: Prisma.intranet_techniciensSelect | null + /** + * Omit specific fields from the intranet_techniciens + */ + omit?: Prisma.intranet_techniciensOmit | null + /** + * Filter, which intranet_techniciens to fetch. + */ + where?: Prisma.intranet_techniciensWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_techniciens to fetch. + */ + orderBy?: Prisma.intranet_techniciensOrderByWithRelationInput | Prisma.intranet_techniciensOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_techniciens. + */ + cursor?: Prisma.intranet_techniciensWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_techniciens 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` intranet_techniciens. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_techniciens. + */ + distinct?: Prisma.Intranet_techniciensScalarFieldEnum | Prisma.Intranet_techniciensScalarFieldEnum[] +} + +/** + * intranet_techniciens findFirstOrThrow + */ +export type intranet_techniciensFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens + */ + select?: Prisma.intranet_techniciensSelect | null + /** + * Omit specific fields from the intranet_techniciens + */ + omit?: Prisma.intranet_techniciensOmit | null + /** + * Filter, which intranet_techniciens to fetch. + */ + where?: Prisma.intranet_techniciensWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_techniciens to fetch. + */ + orderBy?: Prisma.intranet_techniciensOrderByWithRelationInput | Prisma.intranet_techniciensOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_techniciens. + */ + cursor?: Prisma.intranet_techniciensWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_techniciens 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` intranet_techniciens. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_techniciens. + */ + distinct?: Prisma.Intranet_techniciensScalarFieldEnum | Prisma.Intranet_techniciensScalarFieldEnum[] +} + +/** + * intranet_techniciens findMany + */ +export type intranet_techniciensFindManyArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens + */ + select?: Prisma.intranet_techniciensSelect | null + /** + * Omit specific fields from the intranet_techniciens + */ + omit?: Prisma.intranet_techniciensOmit | null + /** + * Filter, which intranet_techniciens to fetch. + */ + where?: Prisma.intranet_techniciensWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_techniciens to fetch. + */ + orderBy?: Prisma.intranet_techniciensOrderByWithRelationInput | Prisma.intranet_techniciensOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing intranet_techniciens. + */ + cursor?: Prisma.intranet_techniciensWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_techniciens 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` intranet_techniciens. + */ + skip?: number + distinct?: Prisma.Intranet_techniciensScalarFieldEnum | Prisma.Intranet_techniciensScalarFieldEnum[] +} + +/** + * intranet_techniciens create + */ +export type intranet_techniciensCreateArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens + */ + select?: Prisma.intranet_techniciensSelect | null + /** + * Omit specific fields from the intranet_techniciens + */ + omit?: Prisma.intranet_techniciensOmit | null + /** + * The data needed to create a intranet_techniciens. + */ + data: Prisma.XOR +} + +/** + * intranet_techniciens createMany + */ +export type intranet_techniciensCreateManyArgs = { + /** + * The data used to create many intranet_techniciens. + */ + data: Prisma.intranet_techniciensCreateManyInput | Prisma.intranet_techniciensCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * intranet_techniciens update + */ +export type intranet_techniciensUpdateArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens + */ + select?: Prisma.intranet_techniciensSelect | null + /** + * Omit specific fields from the intranet_techniciens + */ + omit?: Prisma.intranet_techniciensOmit | null + /** + * The data needed to update a intranet_techniciens. + */ + data: Prisma.XOR + /** + * Choose, which intranet_techniciens to update. + */ + where: Prisma.intranet_techniciensWhereUniqueInput +} + +/** + * intranet_techniciens updateMany + */ +export type intranet_techniciensUpdateManyArgs = { + /** + * The data used to update intranet_techniciens. + */ + data: Prisma.XOR + /** + * Filter which intranet_techniciens to update + */ + where?: Prisma.intranet_techniciensWhereInput + /** + * Limit how many intranet_techniciens to update. + */ + limit?: number +} + +/** + * intranet_techniciens upsert + */ +export type intranet_techniciensUpsertArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens + */ + select?: Prisma.intranet_techniciensSelect | null + /** + * Omit specific fields from the intranet_techniciens + */ + omit?: Prisma.intranet_techniciensOmit | null + /** + * The filter to search for the intranet_techniciens to update in case it exists. + */ + where: Prisma.intranet_techniciensWhereUniqueInput + /** + * In case the intranet_techniciens found by the `where` argument doesn't exist, create a new intranet_techniciens with this data. + */ + create: Prisma.XOR + /** + * In case the intranet_techniciens was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * intranet_techniciens delete + */ +export type intranet_techniciensDeleteArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens + */ + select?: Prisma.intranet_techniciensSelect | null + /** + * Omit specific fields from the intranet_techniciens + */ + omit?: Prisma.intranet_techniciensOmit | null + /** + * Filter which intranet_techniciens to delete. + */ + where: Prisma.intranet_techniciensWhereUniqueInput +} + +/** + * intranet_techniciens deleteMany + */ +export type intranet_techniciensDeleteManyArgs = { + /** + * Filter which intranet_techniciens to delete + */ + where?: Prisma.intranet_techniciensWhereInput + /** + * Limit how many intranet_techniciens to delete. + */ + limit?: number +} + +/** + * intranet_techniciens without action + */ +export type intranet_techniciensDefaultArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens + */ + select?: Prisma.intranet_techniciensSelect | null + /** + * Omit specific fields from the intranet_techniciens + */ + omit?: Prisma.intranet_techniciensOmit | null +} diff --git a/prisma/generated/mariadb/models/intranet_techniciens_reply.ts b/prisma/generated/mariadb/models/intranet_techniciens_reply.ts new file mode 100644 index 0000000..0922b3e --- /dev/null +++ b/prisma/generated/mariadb/models/intranet_techniciens_reply.ts @@ -0,0 +1,1132 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `intranet_techniciens_reply` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model intranet_techniciens_reply + * + */ +export type intranet_techniciens_replyModel = runtime.Types.Result.DefaultSelection + +export type AggregateIntranet_techniciens_reply = { + _count: Intranet_techniciens_replyCountAggregateOutputType | null + _avg: Intranet_techniciens_replyAvgAggregateOutputType | null + _sum: Intranet_techniciens_replySumAggregateOutputType | null + _min: Intranet_techniciens_replyMinAggregateOutputType | null + _max: Intranet_techniciens_replyMaxAggregateOutputType | null +} + +export type Intranet_techniciens_replyAvgAggregateOutputType = { + id: number | null + feed_id: number | null + date: number | null + account_id: number | null + attachment: number | null +} + +export type Intranet_techniciens_replySumAggregateOutputType = { + id: bigint | null + feed_id: bigint | null + date: bigint | null + account_id: bigint | null + attachment: bigint | null +} + +export type Intranet_techniciens_replyMinAggregateOutputType = { + id: bigint | null + feed_id: bigint | null + date: bigint | null + account_id: bigint | null + msg: string | null + attachment: bigint | null +} + +export type Intranet_techniciens_replyMaxAggregateOutputType = { + id: bigint | null + feed_id: bigint | null + date: bigint | null + account_id: bigint | null + msg: string | null + attachment: bigint | null +} + +export type Intranet_techniciens_replyCountAggregateOutputType = { + id: number + feed_id: number + date: number + account_id: number + msg: number + attachment: number + _all: number +} + + +export type Intranet_techniciens_replyAvgAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + attachment?: true +} + +export type Intranet_techniciens_replySumAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + attachment?: true +} + +export type Intranet_techniciens_replyMinAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + msg?: true + attachment?: true +} + +export type Intranet_techniciens_replyMaxAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + msg?: true + attachment?: true +} + +export type Intranet_techniciens_replyCountAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + msg?: true + attachment?: true + _all?: true +} + +export type Intranet_techniciens_replyAggregateArgs = { + /** + * Filter which intranet_techniciens_reply to aggregate. + */ + where?: Prisma.intranet_techniciens_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_techniciens_replies to fetch. + */ + orderBy?: Prisma.intranet_techniciens_replyOrderByWithRelationInput | Prisma.intranet_techniciens_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.intranet_techniciens_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_techniciens_replies 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` intranet_techniciens_replies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned intranet_techniciens_replies + **/ + _count?: true | Intranet_techniciens_replyCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Intranet_techniciens_replyAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Intranet_techniciens_replySumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Intranet_techniciens_replyMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Intranet_techniciens_replyMaxAggregateInputType +} + +export type GetIntranet_techniciens_replyAggregateType = { + [P in keyof T & keyof AggregateIntranet_techniciens_reply]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type intranet_techniciens_replyGroupByArgs = { + where?: Prisma.intranet_techniciens_replyWhereInput + orderBy?: Prisma.intranet_techniciens_replyOrderByWithAggregationInput | Prisma.intranet_techniciens_replyOrderByWithAggregationInput[] + by: Prisma.Intranet_techniciens_replyScalarFieldEnum[] | Prisma.Intranet_techniciens_replyScalarFieldEnum + having?: Prisma.intranet_techniciens_replyScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Intranet_techniciens_replyCountAggregateInputType | true + _avg?: Intranet_techniciens_replyAvgAggregateInputType + _sum?: Intranet_techniciens_replySumAggregateInputType + _min?: Intranet_techniciens_replyMinAggregateInputType + _max?: Intranet_techniciens_replyMaxAggregateInputType +} + +export type Intranet_techniciens_replyGroupByOutputType = { + id: bigint + feed_id: bigint + date: bigint + account_id: bigint + msg: string + attachment: bigint + _count: Intranet_techniciens_replyCountAggregateOutputType | null + _avg: Intranet_techniciens_replyAvgAggregateOutputType | null + _sum: Intranet_techniciens_replySumAggregateOutputType | null + _min: Intranet_techniciens_replyMinAggregateOutputType | null + _max: Intranet_techniciens_replyMaxAggregateOutputType | null +} + +type GetIntranet_techniciens_replyGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Intranet_techniciens_replyGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type intranet_techniciens_replyWhereInput = { + AND?: Prisma.intranet_techniciens_replyWhereInput | Prisma.intranet_techniciens_replyWhereInput[] + OR?: Prisma.intranet_techniciens_replyWhereInput[] + NOT?: Prisma.intranet_techniciens_replyWhereInput | Prisma.intranet_techniciens_replyWhereInput[] + id?: Prisma.BigIntFilter<"intranet_techniciens_reply"> | bigint | number + feed_id?: Prisma.BigIntFilter<"intranet_techniciens_reply"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_techniciens_reply"> | bigint | number + account_id?: Prisma.BigIntFilter<"intranet_techniciens_reply"> | bigint | number + msg?: Prisma.StringFilter<"intranet_techniciens_reply"> | string + attachment?: Prisma.BigIntFilter<"intranet_techniciens_reply"> | bigint | number +} + +export type intranet_techniciens_replyOrderByWithRelationInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + _relevance?: Prisma.intranet_techniciens_replyOrderByRelevanceInput +} + +export type intranet_techniciens_replyWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.intranet_techniciens_replyWhereInput | Prisma.intranet_techniciens_replyWhereInput[] + OR?: Prisma.intranet_techniciens_replyWhereInput[] + NOT?: Prisma.intranet_techniciens_replyWhereInput | Prisma.intranet_techniciens_replyWhereInput[] + feed_id?: Prisma.BigIntFilter<"intranet_techniciens_reply"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_techniciens_reply"> | bigint | number + account_id?: Prisma.BigIntFilter<"intranet_techniciens_reply"> | bigint | number + msg?: Prisma.StringFilter<"intranet_techniciens_reply"> | string + attachment?: Prisma.BigIntFilter<"intranet_techniciens_reply"> | bigint | number +}, "id"> + +export type intranet_techniciens_replyOrderByWithAggregationInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + _count?: Prisma.intranet_techniciens_replyCountOrderByAggregateInput + _avg?: Prisma.intranet_techniciens_replyAvgOrderByAggregateInput + _max?: Prisma.intranet_techniciens_replyMaxOrderByAggregateInput + _min?: Prisma.intranet_techniciens_replyMinOrderByAggregateInput + _sum?: Prisma.intranet_techniciens_replySumOrderByAggregateInput +} + +export type intranet_techniciens_replyScalarWhereWithAggregatesInput = { + AND?: Prisma.intranet_techniciens_replyScalarWhereWithAggregatesInput | Prisma.intranet_techniciens_replyScalarWhereWithAggregatesInput[] + OR?: Prisma.intranet_techniciens_replyScalarWhereWithAggregatesInput[] + NOT?: Prisma.intranet_techniciens_replyScalarWhereWithAggregatesInput | Prisma.intranet_techniciens_replyScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"intranet_techniciens_reply"> | bigint | number + feed_id?: Prisma.BigIntWithAggregatesFilter<"intranet_techniciens_reply"> | bigint | number + date?: Prisma.BigIntWithAggregatesFilter<"intranet_techniciens_reply"> | bigint | number + account_id?: Prisma.BigIntWithAggregatesFilter<"intranet_techniciens_reply"> | bigint | number + msg?: Prisma.StringWithAggregatesFilter<"intranet_techniciens_reply"> | string + attachment?: Prisma.BigIntWithAggregatesFilter<"intranet_techniciens_reply"> | bigint | number +} + +export type intranet_techniciens_replyCreateInput = { + id?: bigint | number + feed_id: bigint | number + date: bigint | number + account_id: bigint | number + msg: string + attachment: bigint | number +} + +export type intranet_techniciens_replyUncheckedCreateInput = { + id?: bigint | number + feed_id: bigint | number + date: bigint | number + account_id: bigint | number + msg: string + attachment: bigint | number +} + +export type intranet_techniciens_replyUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type intranet_techniciens_replyUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type intranet_techniciens_replyCreateManyInput = { + id?: bigint | number + feed_id: bigint | number + date: bigint | number + account_id: bigint | number + msg: string + attachment: bigint | number +} + +export type intranet_techniciens_replyUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type intranet_techniciens_replyUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type intranet_techniciens_replyOrderByRelevanceInput = { + fields: Prisma.intranet_techniciens_replyOrderByRelevanceFieldEnum | Prisma.intranet_techniciens_replyOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type intranet_techniciens_replyCountOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + +export type intranet_techniciens_replyAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + +export type intranet_techniciens_replyMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + +export type intranet_techniciens_replyMinOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + +export type intranet_techniciens_replySumOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + + + +export type intranet_techniciens_replySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + feed_id?: boolean + date?: boolean + account_id?: boolean + msg?: boolean + attachment?: boolean +}, ExtArgs["result"]["intranet_techniciens_reply"]> + + + +export type intranet_techniciens_replySelectScalar = { + id?: boolean + feed_id?: boolean + date?: boolean + account_id?: boolean + msg?: boolean + attachment?: boolean +} + +export type intranet_techniciens_replyOmit = runtime.Types.Extensions.GetOmit<"id" | "feed_id" | "date" | "account_id" | "msg" | "attachment", ExtArgs["result"]["intranet_techniciens_reply"]> + +export type $intranet_techniciens_replyPayload = { + name: "intranet_techniciens_reply" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + feed_id: bigint + date: bigint + account_id: bigint + msg: string + attachment: bigint + }, ExtArgs["result"]["intranet_techniciens_reply"]> + composites: {} +} + +export type intranet_techniciens_replyGetPayload = runtime.Types.Result.GetResult + +export type intranet_techniciens_replyCountArgs = + Omit & { + select?: Intranet_techniciens_replyCountAggregateInputType | true + } + +export interface intranet_techniciens_replyDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['intranet_techniciens_reply'], meta: { name: 'intranet_techniciens_reply' } } + /** + * Find zero or one Intranet_techniciens_reply that matches the filter. + * @param {intranet_techniciens_replyFindUniqueArgs} args - Arguments to find a Intranet_techniciens_reply + * @example + * // Get one Intranet_techniciens_reply + * const intranet_techniciens_reply = await prisma.intranet_techniciens_reply.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciens_replyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Intranet_techniciens_reply that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {intranet_techniciens_replyFindUniqueOrThrowArgs} args - Arguments to find a Intranet_techniciens_reply + * @example + * // Get one Intranet_techniciens_reply + * const intranet_techniciens_reply = await prisma.intranet_techniciens_reply.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciens_replyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_techniciens_reply 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 {intranet_techniciens_replyFindFirstArgs} args - Arguments to find a Intranet_techniciens_reply + * @example + * // Get one Intranet_techniciens_reply + * const intranet_techniciens_reply = await prisma.intranet_techniciens_reply.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciens_replyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_techniciens_reply 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 {intranet_techniciens_replyFindFirstOrThrowArgs} args - Arguments to find a Intranet_techniciens_reply + * @example + * // Get one Intranet_techniciens_reply + * const intranet_techniciens_reply = await prisma.intranet_techniciens_reply.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciens_replyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Intranet_techniciens_replies 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 {intranet_techniciens_replyFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Intranet_techniciens_replies + * const intranet_techniciens_replies = await prisma.intranet_techniciens_reply.findMany() + * + * // Get first 10 Intranet_techniciens_replies + * const intranet_techniciens_replies = await prisma.intranet_techniciens_reply.findMany({ take: 10 }) + * + * // Only select the `id` + * const intranet_techniciens_replyWithIdOnly = await prisma.intranet_techniciens_reply.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Intranet_techniciens_reply. + * @param {intranet_techniciens_replyCreateArgs} args - Arguments to create a Intranet_techniciens_reply. + * @example + * // Create one Intranet_techniciens_reply + * const Intranet_techniciens_reply = await prisma.intranet_techniciens_reply.create({ + * data: { + * // ... data to create a Intranet_techniciens_reply + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciens_replyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Intranet_techniciens_replies. + * @param {intranet_techniciens_replyCreateManyArgs} args - Arguments to create many Intranet_techniciens_replies. + * @example + * // Create many Intranet_techniciens_replies + * const intranet_techniciens_reply = await prisma.intranet_techniciens_reply.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Intranet_techniciens_reply. + * @param {intranet_techniciens_replyDeleteArgs} args - Arguments to delete one Intranet_techniciens_reply. + * @example + * // Delete one Intranet_techniciens_reply + * const Intranet_techniciens_reply = await prisma.intranet_techniciens_reply.delete({ + * where: { + * // ... filter to delete one Intranet_techniciens_reply + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciens_replyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Intranet_techniciens_reply. + * @param {intranet_techniciens_replyUpdateArgs} args - Arguments to update one Intranet_techniciens_reply. + * @example + * // Update one Intranet_techniciens_reply + * const intranet_techniciens_reply = await prisma.intranet_techniciens_reply.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciens_replyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Intranet_techniciens_replies. + * @param {intranet_techniciens_replyDeleteManyArgs} args - Arguments to filter Intranet_techniciens_replies to delete. + * @example + * // Delete a few Intranet_techniciens_replies + * const { count } = await prisma.intranet_techniciens_reply.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Intranet_techniciens_replies. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_techniciens_replyUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Intranet_techniciens_replies + * const intranet_techniciens_reply = await prisma.intranet_techniciens_reply.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Intranet_techniciens_reply. + * @param {intranet_techniciens_replyUpsertArgs} args - Arguments to update or create a Intranet_techniciens_reply. + * @example + * // Update or create a Intranet_techniciens_reply + * const intranet_techniciens_reply = await prisma.intranet_techniciens_reply.upsert({ + * create: { + * // ... data to create a Intranet_techniciens_reply + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Intranet_techniciens_reply we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techniciens_replyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Intranet_techniciens_replies. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_techniciens_replyCountArgs} args - Arguments to filter Intranet_techniciens_replies to count. + * @example + * // Count the number of Intranet_techniciens_replies + * const count = await prisma.intranet_techniciens_reply.count({ + * where: { + * // ... the filter for the Intranet_techniciens_replies 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 Intranet_techniciens_reply. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Intranet_techniciens_replyAggregateArgs} 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 Intranet_techniciens_reply. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_techniciens_replyGroupByArgs} 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 intranet_techniciens_replyGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: intranet_techniciens_replyGroupByArgs['orderBy'] } + : { orderBy?: intranet_techniciens_replyGroupByArgs['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 ? GetIntranet_techniciens_replyGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the intranet_techniciens_reply model + */ +readonly fields: intranet_techniciens_replyFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for intranet_techniciens_reply. + * 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__intranet_techniciens_replyClient 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 intranet_techniciens_reply model + */ +export interface intranet_techniciens_replyFieldRefs { + readonly id: Prisma.FieldRef<"intranet_techniciens_reply", 'BigInt'> + readonly feed_id: Prisma.FieldRef<"intranet_techniciens_reply", 'BigInt'> + readonly date: Prisma.FieldRef<"intranet_techniciens_reply", 'BigInt'> + readonly account_id: Prisma.FieldRef<"intranet_techniciens_reply", 'BigInt'> + readonly msg: Prisma.FieldRef<"intranet_techniciens_reply", 'String'> + readonly attachment: Prisma.FieldRef<"intranet_techniciens_reply", 'BigInt'> +} + + +// Custom InputTypes +/** + * intranet_techniciens_reply findUnique + */ +export type intranet_techniciens_replyFindUniqueArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens_reply + */ + select?: Prisma.intranet_techniciens_replySelect | null + /** + * Omit specific fields from the intranet_techniciens_reply + */ + omit?: Prisma.intranet_techniciens_replyOmit | null + /** + * Filter, which intranet_techniciens_reply to fetch. + */ + where: Prisma.intranet_techniciens_replyWhereUniqueInput +} + +/** + * intranet_techniciens_reply findUniqueOrThrow + */ +export type intranet_techniciens_replyFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens_reply + */ + select?: Prisma.intranet_techniciens_replySelect | null + /** + * Omit specific fields from the intranet_techniciens_reply + */ + omit?: Prisma.intranet_techniciens_replyOmit | null + /** + * Filter, which intranet_techniciens_reply to fetch. + */ + where: Prisma.intranet_techniciens_replyWhereUniqueInput +} + +/** + * intranet_techniciens_reply findFirst + */ +export type intranet_techniciens_replyFindFirstArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens_reply + */ + select?: Prisma.intranet_techniciens_replySelect | null + /** + * Omit specific fields from the intranet_techniciens_reply + */ + omit?: Prisma.intranet_techniciens_replyOmit | null + /** + * Filter, which intranet_techniciens_reply to fetch. + */ + where?: Prisma.intranet_techniciens_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_techniciens_replies to fetch. + */ + orderBy?: Prisma.intranet_techniciens_replyOrderByWithRelationInput | Prisma.intranet_techniciens_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_techniciens_replies. + */ + cursor?: Prisma.intranet_techniciens_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_techniciens_replies 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` intranet_techniciens_replies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_techniciens_replies. + */ + distinct?: Prisma.Intranet_techniciens_replyScalarFieldEnum | Prisma.Intranet_techniciens_replyScalarFieldEnum[] +} + +/** + * intranet_techniciens_reply findFirstOrThrow + */ +export type intranet_techniciens_replyFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens_reply + */ + select?: Prisma.intranet_techniciens_replySelect | null + /** + * Omit specific fields from the intranet_techniciens_reply + */ + omit?: Prisma.intranet_techniciens_replyOmit | null + /** + * Filter, which intranet_techniciens_reply to fetch. + */ + where?: Prisma.intranet_techniciens_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_techniciens_replies to fetch. + */ + orderBy?: Prisma.intranet_techniciens_replyOrderByWithRelationInput | Prisma.intranet_techniciens_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_techniciens_replies. + */ + cursor?: Prisma.intranet_techniciens_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_techniciens_replies 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` intranet_techniciens_replies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_techniciens_replies. + */ + distinct?: Prisma.Intranet_techniciens_replyScalarFieldEnum | Prisma.Intranet_techniciens_replyScalarFieldEnum[] +} + +/** + * intranet_techniciens_reply findMany + */ +export type intranet_techniciens_replyFindManyArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens_reply + */ + select?: Prisma.intranet_techniciens_replySelect | null + /** + * Omit specific fields from the intranet_techniciens_reply + */ + omit?: Prisma.intranet_techniciens_replyOmit | null + /** + * Filter, which intranet_techniciens_replies to fetch. + */ + where?: Prisma.intranet_techniciens_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_techniciens_replies to fetch. + */ + orderBy?: Prisma.intranet_techniciens_replyOrderByWithRelationInput | Prisma.intranet_techniciens_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing intranet_techniciens_replies. + */ + cursor?: Prisma.intranet_techniciens_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_techniciens_replies 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` intranet_techniciens_replies. + */ + skip?: number + distinct?: Prisma.Intranet_techniciens_replyScalarFieldEnum | Prisma.Intranet_techniciens_replyScalarFieldEnum[] +} + +/** + * intranet_techniciens_reply create + */ +export type intranet_techniciens_replyCreateArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens_reply + */ + select?: Prisma.intranet_techniciens_replySelect | null + /** + * Omit specific fields from the intranet_techniciens_reply + */ + omit?: Prisma.intranet_techniciens_replyOmit | null + /** + * The data needed to create a intranet_techniciens_reply. + */ + data: Prisma.XOR +} + +/** + * intranet_techniciens_reply createMany + */ +export type intranet_techniciens_replyCreateManyArgs = { + /** + * The data used to create many intranet_techniciens_replies. + */ + data: Prisma.intranet_techniciens_replyCreateManyInput | Prisma.intranet_techniciens_replyCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * intranet_techniciens_reply update + */ +export type intranet_techniciens_replyUpdateArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens_reply + */ + select?: Prisma.intranet_techniciens_replySelect | null + /** + * Omit specific fields from the intranet_techniciens_reply + */ + omit?: Prisma.intranet_techniciens_replyOmit | null + /** + * The data needed to update a intranet_techniciens_reply. + */ + data: Prisma.XOR + /** + * Choose, which intranet_techniciens_reply to update. + */ + where: Prisma.intranet_techniciens_replyWhereUniqueInput +} + +/** + * intranet_techniciens_reply updateMany + */ +export type intranet_techniciens_replyUpdateManyArgs = { + /** + * The data used to update intranet_techniciens_replies. + */ + data: Prisma.XOR + /** + * Filter which intranet_techniciens_replies to update + */ + where?: Prisma.intranet_techniciens_replyWhereInput + /** + * Limit how many intranet_techniciens_replies to update. + */ + limit?: number +} + +/** + * intranet_techniciens_reply upsert + */ +export type intranet_techniciens_replyUpsertArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens_reply + */ + select?: Prisma.intranet_techniciens_replySelect | null + /** + * Omit specific fields from the intranet_techniciens_reply + */ + omit?: Prisma.intranet_techniciens_replyOmit | null + /** + * The filter to search for the intranet_techniciens_reply to update in case it exists. + */ + where: Prisma.intranet_techniciens_replyWhereUniqueInput + /** + * In case the intranet_techniciens_reply found by the `where` argument doesn't exist, create a new intranet_techniciens_reply with this data. + */ + create: Prisma.XOR + /** + * In case the intranet_techniciens_reply was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * intranet_techniciens_reply delete + */ +export type intranet_techniciens_replyDeleteArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens_reply + */ + select?: Prisma.intranet_techniciens_replySelect | null + /** + * Omit specific fields from the intranet_techniciens_reply + */ + omit?: Prisma.intranet_techniciens_replyOmit | null + /** + * Filter which intranet_techniciens_reply to delete. + */ + where: Prisma.intranet_techniciens_replyWhereUniqueInput +} + +/** + * intranet_techniciens_reply deleteMany + */ +export type intranet_techniciens_replyDeleteManyArgs = { + /** + * Filter which intranet_techniciens_replies to delete + */ + where?: Prisma.intranet_techniciens_replyWhereInput + /** + * Limit how many intranet_techniciens_replies to delete. + */ + limit?: number +} + +/** + * intranet_techniciens_reply without action + */ +export type intranet_techniciens_replyDefaultArgs = { + /** + * Select specific fields to fetch from the intranet_techniciens_reply + */ + select?: Prisma.intranet_techniciens_replySelect | null + /** + * Omit specific fields from the intranet_techniciens_reply + */ + omit?: Prisma.intranet_techniciens_replyOmit | null +} diff --git a/prisma/generated/mariadb/models/intranet_techno.ts b/prisma/generated/mariadb/models/intranet_techno.ts new file mode 100644 index 0000000..d6601e9 --- /dev/null +++ b/prisma/generated/mariadb/models/intranet_techno.ts @@ -0,0 +1,1146 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `intranet_techno` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model intranet_techno + * + */ +export type intranet_technoModel = runtime.Types.Result.DefaultSelection + +export type AggregateIntranet_techno = { + _count: Intranet_technoCountAggregateOutputType | null + _avg: Intranet_technoAvgAggregateOutputType | null + _sum: Intranet_technoSumAggregateOutputType | null + _min: Intranet_technoMinAggregateOutputType | null + _max: Intranet_technoMaxAggregateOutputType | null +} + +export type Intranet_technoAvgAggregateOutputType = { + id: number | null + account_id: number | null + date: number | null +} + +export type Intranet_technoSumAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date: bigint | null +} + +export type Intranet_technoMinAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date: bigint | null + title: string | null + msg: string | null + attachment: string | null + unread_csv: string | null +} + +export type Intranet_technoMaxAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date: bigint | null + title: string | null + msg: string | null + attachment: string | null + unread_csv: string | null +} + +export type Intranet_technoCountAggregateOutputType = { + id: number + account_id: number + date: number + title: number + msg: number + attachment: number + unread_csv: number + _all: number +} + + +export type Intranet_technoAvgAggregateInputType = { + id?: true + account_id?: true + date?: true +} + +export type Intranet_technoSumAggregateInputType = { + id?: true + account_id?: true + date?: true +} + +export type Intranet_technoMinAggregateInputType = { + id?: true + account_id?: true + date?: true + title?: true + msg?: true + attachment?: true + unread_csv?: true +} + +export type Intranet_technoMaxAggregateInputType = { + id?: true + account_id?: true + date?: true + title?: true + msg?: true + attachment?: true + unread_csv?: true +} + +export type Intranet_technoCountAggregateInputType = { + id?: true + account_id?: true + date?: true + title?: true + msg?: true + attachment?: true + unread_csv?: true + _all?: true +} + +export type Intranet_technoAggregateArgs = { + /** + * Filter which intranet_techno to aggregate. + */ + where?: Prisma.intranet_technoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_technos to fetch. + */ + orderBy?: Prisma.intranet_technoOrderByWithRelationInput | Prisma.intranet_technoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.intranet_technoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_technos 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` intranet_technos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned intranet_technos + **/ + _count?: true | Intranet_technoCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Intranet_technoAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Intranet_technoSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Intranet_technoMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Intranet_technoMaxAggregateInputType +} + +export type GetIntranet_technoAggregateType = { + [P in keyof T & keyof AggregateIntranet_techno]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type intranet_technoGroupByArgs = { + where?: Prisma.intranet_technoWhereInput + orderBy?: Prisma.intranet_technoOrderByWithAggregationInput | Prisma.intranet_technoOrderByWithAggregationInput[] + by: Prisma.Intranet_technoScalarFieldEnum[] | Prisma.Intranet_technoScalarFieldEnum + having?: Prisma.intranet_technoScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Intranet_technoCountAggregateInputType | true + _avg?: Intranet_technoAvgAggregateInputType + _sum?: Intranet_technoSumAggregateInputType + _min?: Intranet_technoMinAggregateInputType + _max?: Intranet_technoMaxAggregateInputType +} + +export type Intranet_technoGroupByOutputType = { + id: bigint + account_id: bigint + date: bigint + title: string + msg: string + attachment: string + unread_csv: string + _count: Intranet_technoCountAggregateOutputType | null + _avg: Intranet_technoAvgAggregateOutputType | null + _sum: Intranet_technoSumAggregateOutputType | null + _min: Intranet_technoMinAggregateOutputType | null + _max: Intranet_technoMaxAggregateOutputType | null +} + +type GetIntranet_technoGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Intranet_technoGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type intranet_technoWhereInput = { + AND?: Prisma.intranet_technoWhereInput | Prisma.intranet_technoWhereInput[] + OR?: Prisma.intranet_technoWhereInput[] + NOT?: Prisma.intranet_technoWhereInput | Prisma.intranet_technoWhereInput[] + id?: Prisma.BigIntFilter<"intranet_techno"> | bigint | number + account_id?: Prisma.BigIntFilter<"intranet_techno"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_techno"> | bigint | number + title?: Prisma.StringFilter<"intranet_techno"> | string + msg?: Prisma.StringFilter<"intranet_techno"> | string + attachment?: Prisma.StringFilter<"intranet_techno"> | string + unread_csv?: Prisma.StringFilter<"intranet_techno"> | string +} + +export type intranet_technoOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder + _relevance?: Prisma.intranet_technoOrderByRelevanceInput +} + +export type intranet_technoWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.intranet_technoWhereInput | Prisma.intranet_technoWhereInput[] + OR?: Prisma.intranet_technoWhereInput[] + NOT?: Prisma.intranet_technoWhereInput | Prisma.intranet_technoWhereInput[] + account_id?: Prisma.BigIntFilter<"intranet_techno"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_techno"> | bigint | number + title?: Prisma.StringFilter<"intranet_techno"> | string + msg?: Prisma.StringFilter<"intranet_techno"> | string + attachment?: Prisma.StringFilter<"intranet_techno"> | string + unread_csv?: Prisma.StringFilter<"intranet_techno"> | string +}, "id"> + +export type intranet_technoOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder + _count?: Prisma.intranet_technoCountOrderByAggregateInput + _avg?: Prisma.intranet_technoAvgOrderByAggregateInput + _max?: Prisma.intranet_technoMaxOrderByAggregateInput + _min?: Prisma.intranet_technoMinOrderByAggregateInput + _sum?: Prisma.intranet_technoSumOrderByAggregateInput +} + +export type intranet_technoScalarWhereWithAggregatesInput = { + AND?: Prisma.intranet_technoScalarWhereWithAggregatesInput | Prisma.intranet_technoScalarWhereWithAggregatesInput[] + OR?: Prisma.intranet_technoScalarWhereWithAggregatesInput[] + NOT?: Prisma.intranet_technoScalarWhereWithAggregatesInput | Prisma.intranet_technoScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"intranet_techno"> | bigint | number + account_id?: Prisma.BigIntWithAggregatesFilter<"intranet_techno"> | bigint | number + date?: Prisma.BigIntWithAggregatesFilter<"intranet_techno"> | bigint | number + title?: Prisma.StringWithAggregatesFilter<"intranet_techno"> | string + msg?: Prisma.StringWithAggregatesFilter<"intranet_techno"> | string + attachment?: Prisma.StringWithAggregatesFilter<"intranet_techno"> | string + unread_csv?: Prisma.StringWithAggregatesFilter<"intranet_techno"> | string +} + +export type intranet_technoCreateInput = { + id?: bigint | number + account_id: bigint | number + date: bigint | number + title: string + msg: string + attachment: string + unread_csv: string +} + +export type intranet_technoUncheckedCreateInput = { + id?: bigint | number + account_id: bigint | number + date: bigint | number + title: string + msg: string + attachment: string + unread_csv: string +} + +export type intranet_technoUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type intranet_technoUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type intranet_technoCreateManyInput = { + id?: bigint | number + account_id: bigint | number + date: bigint | number + title: string + msg: string + attachment: string + unread_csv: string +} + +export type intranet_technoUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type intranet_technoUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.StringFieldUpdateOperationsInput | string + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type intranet_technoOrderByRelevanceInput = { + fields: Prisma.intranet_technoOrderByRelevanceFieldEnum | Prisma.intranet_technoOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type intranet_technoCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder +} + +export type intranet_technoAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder +} + +export type intranet_technoMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder +} + +export type intranet_technoMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + title?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder +} + +export type intranet_technoSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder +} + + + +export type intranet_technoSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + date?: boolean + title?: boolean + msg?: boolean + attachment?: boolean + unread_csv?: boolean +}, ExtArgs["result"]["intranet_techno"]> + + + +export type intranet_technoSelectScalar = { + id?: boolean + account_id?: boolean + date?: boolean + title?: boolean + msg?: boolean + attachment?: boolean + unread_csv?: boolean +} + +export type intranet_technoOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date" | "title" | "msg" | "attachment" | "unread_csv", ExtArgs["result"]["intranet_techno"]> + +export type $intranet_technoPayload = { + name: "intranet_techno" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + account_id: bigint + date: bigint + title: string + msg: string + attachment: string + unread_csv: string + }, ExtArgs["result"]["intranet_techno"]> + composites: {} +} + +export type intranet_technoGetPayload = runtime.Types.Result.GetResult + +export type intranet_technoCountArgs = + Omit & { + select?: Intranet_technoCountAggregateInputType | true + } + +export interface intranet_technoDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['intranet_techno'], meta: { name: 'intranet_techno' } } + /** + * Find zero or one Intranet_techno that matches the filter. + * @param {intranet_technoFindUniqueArgs} args - Arguments to find a Intranet_techno + * @example + * // Get one Intranet_techno + * const intranet_techno = await prisma.intranet_techno.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_technoClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Intranet_techno that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {intranet_technoFindUniqueOrThrowArgs} args - Arguments to find a Intranet_techno + * @example + * // Get one Intranet_techno + * const intranet_techno = await prisma.intranet_techno.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_technoClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_techno 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 {intranet_technoFindFirstArgs} args - Arguments to find a Intranet_techno + * @example + * // Get one Intranet_techno + * const intranet_techno = await prisma.intranet_techno.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_technoClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_techno 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 {intranet_technoFindFirstOrThrowArgs} args - Arguments to find a Intranet_techno + * @example + * // Get one Intranet_techno + * const intranet_techno = await prisma.intranet_techno.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_technoClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Intranet_technos 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 {intranet_technoFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Intranet_technos + * const intranet_technos = await prisma.intranet_techno.findMany() + * + * // Get first 10 Intranet_technos + * const intranet_technos = await prisma.intranet_techno.findMany({ take: 10 }) + * + * // Only select the `id` + * const intranet_technoWithIdOnly = await prisma.intranet_techno.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Intranet_techno. + * @param {intranet_technoCreateArgs} args - Arguments to create a Intranet_techno. + * @example + * // Create one Intranet_techno + * const Intranet_techno = await prisma.intranet_techno.create({ + * data: { + * // ... data to create a Intranet_techno + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_technoClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Intranet_technos. + * @param {intranet_technoCreateManyArgs} args - Arguments to create many Intranet_technos. + * @example + * // Create many Intranet_technos + * const intranet_techno = await prisma.intranet_techno.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Intranet_techno. + * @param {intranet_technoDeleteArgs} args - Arguments to delete one Intranet_techno. + * @example + * // Delete one Intranet_techno + * const Intranet_techno = await prisma.intranet_techno.delete({ + * where: { + * // ... filter to delete one Intranet_techno + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_technoClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Intranet_techno. + * @param {intranet_technoUpdateArgs} args - Arguments to update one Intranet_techno. + * @example + * // Update one Intranet_techno + * const intranet_techno = await prisma.intranet_techno.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_technoClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Intranet_technos. + * @param {intranet_technoDeleteManyArgs} args - Arguments to filter Intranet_technos to delete. + * @example + * // Delete a few Intranet_technos + * const { count } = await prisma.intranet_techno.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Intranet_technos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_technoUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Intranet_technos + * const intranet_techno = await prisma.intranet_techno.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Intranet_techno. + * @param {intranet_technoUpsertArgs} args - Arguments to update or create a Intranet_techno. + * @example + * // Update or create a Intranet_techno + * const intranet_techno = await prisma.intranet_techno.upsert({ + * create: { + * // ... data to create a Intranet_techno + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Intranet_techno we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_technoClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Intranet_technos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_technoCountArgs} args - Arguments to filter Intranet_technos to count. + * @example + * // Count the number of Intranet_technos + * const count = await prisma.intranet_techno.count({ + * where: { + * // ... the filter for the Intranet_technos 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 Intranet_techno. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Intranet_technoAggregateArgs} 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 Intranet_techno. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_technoGroupByArgs} 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 intranet_technoGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: intranet_technoGroupByArgs['orderBy'] } + : { orderBy?: intranet_technoGroupByArgs['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 ? GetIntranet_technoGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the intranet_techno model + */ +readonly fields: intranet_technoFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for intranet_techno. + * 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__intranet_technoClient 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 intranet_techno model + */ +export interface intranet_technoFieldRefs { + readonly id: Prisma.FieldRef<"intranet_techno", 'BigInt'> + readonly account_id: Prisma.FieldRef<"intranet_techno", 'BigInt'> + readonly date: Prisma.FieldRef<"intranet_techno", 'BigInt'> + readonly title: Prisma.FieldRef<"intranet_techno", 'String'> + readonly msg: Prisma.FieldRef<"intranet_techno", 'String'> + readonly attachment: Prisma.FieldRef<"intranet_techno", 'String'> + readonly unread_csv: Prisma.FieldRef<"intranet_techno", 'String'> +} + + +// Custom InputTypes +/** + * intranet_techno findUnique + */ +export type intranet_technoFindUniqueArgs = { + /** + * Select specific fields to fetch from the intranet_techno + */ + select?: Prisma.intranet_technoSelect | null + /** + * Omit specific fields from the intranet_techno + */ + omit?: Prisma.intranet_technoOmit | null + /** + * Filter, which intranet_techno to fetch. + */ + where: Prisma.intranet_technoWhereUniqueInput +} + +/** + * intranet_techno findUniqueOrThrow + */ +export type intranet_technoFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_techno + */ + select?: Prisma.intranet_technoSelect | null + /** + * Omit specific fields from the intranet_techno + */ + omit?: Prisma.intranet_technoOmit | null + /** + * Filter, which intranet_techno to fetch. + */ + where: Prisma.intranet_technoWhereUniqueInput +} + +/** + * intranet_techno findFirst + */ +export type intranet_technoFindFirstArgs = { + /** + * Select specific fields to fetch from the intranet_techno + */ + select?: Prisma.intranet_technoSelect | null + /** + * Omit specific fields from the intranet_techno + */ + omit?: Prisma.intranet_technoOmit | null + /** + * Filter, which intranet_techno to fetch. + */ + where?: Prisma.intranet_technoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_technos to fetch. + */ + orderBy?: Prisma.intranet_technoOrderByWithRelationInput | Prisma.intranet_technoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_technos. + */ + cursor?: Prisma.intranet_technoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_technos 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` intranet_technos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_technos. + */ + distinct?: Prisma.Intranet_technoScalarFieldEnum | Prisma.Intranet_technoScalarFieldEnum[] +} + +/** + * intranet_techno findFirstOrThrow + */ +export type intranet_technoFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_techno + */ + select?: Prisma.intranet_technoSelect | null + /** + * Omit specific fields from the intranet_techno + */ + omit?: Prisma.intranet_technoOmit | null + /** + * Filter, which intranet_techno to fetch. + */ + where?: Prisma.intranet_technoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_technos to fetch. + */ + orderBy?: Prisma.intranet_technoOrderByWithRelationInput | Prisma.intranet_technoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_technos. + */ + cursor?: Prisma.intranet_technoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_technos 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` intranet_technos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_technos. + */ + distinct?: Prisma.Intranet_technoScalarFieldEnum | Prisma.Intranet_technoScalarFieldEnum[] +} + +/** + * intranet_techno findMany + */ +export type intranet_technoFindManyArgs = { + /** + * Select specific fields to fetch from the intranet_techno + */ + select?: Prisma.intranet_technoSelect | null + /** + * Omit specific fields from the intranet_techno + */ + omit?: Prisma.intranet_technoOmit | null + /** + * Filter, which intranet_technos to fetch. + */ + where?: Prisma.intranet_technoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_technos to fetch. + */ + orderBy?: Prisma.intranet_technoOrderByWithRelationInput | Prisma.intranet_technoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing intranet_technos. + */ + cursor?: Prisma.intranet_technoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_technos 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` intranet_technos. + */ + skip?: number + distinct?: Prisma.Intranet_technoScalarFieldEnum | Prisma.Intranet_technoScalarFieldEnum[] +} + +/** + * intranet_techno create + */ +export type intranet_technoCreateArgs = { + /** + * Select specific fields to fetch from the intranet_techno + */ + select?: Prisma.intranet_technoSelect | null + /** + * Omit specific fields from the intranet_techno + */ + omit?: Prisma.intranet_technoOmit | null + /** + * The data needed to create a intranet_techno. + */ + data: Prisma.XOR +} + +/** + * intranet_techno createMany + */ +export type intranet_technoCreateManyArgs = { + /** + * The data used to create many intranet_technos. + */ + data: Prisma.intranet_technoCreateManyInput | Prisma.intranet_technoCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * intranet_techno update + */ +export type intranet_technoUpdateArgs = { + /** + * Select specific fields to fetch from the intranet_techno + */ + select?: Prisma.intranet_technoSelect | null + /** + * Omit specific fields from the intranet_techno + */ + omit?: Prisma.intranet_technoOmit | null + /** + * The data needed to update a intranet_techno. + */ + data: Prisma.XOR + /** + * Choose, which intranet_techno to update. + */ + where: Prisma.intranet_technoWhereUniqueInput +} + +/** + * intranet_techno updateMany + */ +export type intranet_technoUpdateManyArgs = { + /** + * The data used to update intranet_technos. + */ + data: Prisma.XOR + /** + * Filter which intranet_technos to update + */ + where?: Prisma.intranet_technoWhereInput + /** + * Limit how many intranet_technos to update. + */ + limit?: number +} + +/** + * intranet_techno upsert + */ +export type intranet_technoUpsertArgs = { + /** + * Select specific fields to fetch from the intranet_techno + */ + select?: Prisma.intranet_technoSelect | null + /** + * Omit specific fields from the intranet_techno + */ + omit?: Prisma.intranet_technoOmit | null + /** + * The filter to search for the intranet_techno to update in case it exists. + */ + where: Prisma.intranet_technoWhereUniqueInput + /** + * In case the intranet_techno found by the `where` argument doesn't exist, create a new intranet_techno with this data. + */ + create: Prisma.XOR + /** + * In case the intranet_techno was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * intranet_techno delete + */ +export type intranet_technoDeleteArgs = { + /** + * Select specific fields to fetch from the intranet_techno + */ + select?: Prisma.intranet_technoSelect | null + /** + * Omit specific fields from the intranet_techno + */ + omit?: Prisma.intranet_technoOmit | null + /** + * Filter which intranet_techno to delete. + */ + where: Prisma.intranet_technoWhereUniqueInput +} + +/** + * intranet_techno deleteMany + */ +export type intranet_technoDeleteManyArgs = { + /** + * Filter which intranet_technos to delete + */ + where?: Prisma.intranet_technoWhereInput + /** + * Limit how many intranet_technos to delete. + */ + limit?: number +} + +/** + * intranet_techno without action + */ +export type intranet_technoDefaultArgs = { + /** + * Select specific fields to fetch from the intranet_techno + */ + select?: Prisma.intranet_technoSelect | null + /** + * Omit specific fields from the intranet_techno + */ + omit?: Prisma.intranet_technoOmit | null +} diff --git a/prisma/generated/mariadb/models/intranet_techno_reply.ts b/prisma/generated/mariadb/models/intranet_techno_reply.ts new file mode 100644 index 0000000..13e63a5 --- /dev/null +++ b/prisma/generated/mariadb/models/intranet_techno_reply.ts @@ -0,0 +1,1132 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `intranet_techno_reply` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model intranet_techno_reply + * + */ +export type intranet_techno_replyModel = runtime.Types.Result.DefaultSelection + +export type AggregateIntranet_techno_reply = { + _count: Intranet_techno_replyCountAggregateOutputType | null + _avg: Intranet_techno_replyAvgAggregateOutputType | null + _sum: Intranet_techno_replySumAggregateOutputType | null + _min: Intranet_techno_replyMinAggregateOutputType | null + _max: Intranet_techno_replyMaxAggregateOutputType | null +} + +export type Intranet_techno_replyAvgAggregateOutputType = { + id: number | null + feed_id: number | null + date: number | null + account_id: number | null + attachment: number | null +} + +export type Intranet_techno_replySumAggregateOutputType = { + id: bigint | null + feed_id: bigint | null + date: bigint | null + account_id: bigint | null + attachment: bigint | null +} + +export type Intranet_techno_replyMinAggregateOutputType = { + id: bigint | null + feed_id: bigint | null + date: bigint | null + account_id: bigint | null + msg: string | null + attachment: bigint | null +} + +export type Intranet_techno_replyMaxAggregateOutputType = { + id: bigint | null + feed_id: bigint | null + date: bigint | null + account_id: bigint | null + msg: string | null + attachment: bigint | null +} + +export type Intranet_techno_replyCountAggregateOutputType = { + id: number + feed_id: number + date: number + account_id: number + msg: number + attachment: number + _all: number +} + + +export type Intranet_techno_replyAvgAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + attachment?: true +} + +export type Intranet_techno_replySumAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + attachment?: true +} + +export type Intranet_techno_replyMinAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + msg?: true + attachment?: true +} + +export type Intranet_techno_replyMaxAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + msg?: true + attachment?: true +} + +export type Intranet_techno_replyCountAggregateInputType = { + id?: true + feed_id?: true + date?: true + account_id?: true + msg?: true + attachment?: true + _all?: true +} + +export type Intranet_techno_replyAggregateArgs = { + /** + * Filter which intranet_techno_reply to aggregate. + */ + where?: Prisma.intranet_techno_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_techno_replies to fetch. + */ + orderBy?: Prisma.intranet_techno_replyOrderByWithRelationInput | Prisma.intranet_techno_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.intranet_techno_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_techno_replies 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` intranet_techno_replies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned intranet_techno_replies + **/ + _count?: true | Intranet_techno_replyCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Intranet_techno_replyAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Intranet_techno_replySumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Intranet_techno_replyMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Intranet_techno_replyMaxAggregateInputType +} + +export type GetIntranet_techno_replyAggregateType = { + [P in keyof T & keyof AggregateIntranet_techno_reply]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type intranet_techno_replyGroupByArgs = { + where?: Prisma.intranet_techno_replyWhereInput + orderBy?: Prisma.intranet_techno_replyOrderByWithAggregationInput | Prisma.intranet_techno_replyOrderByWithAggregationInput[] + by: Prisma.Intranet_techno_replyScalarFieldEnum[] | Prisma.Intranet_techno_replyScalarFieldEnum + having?: Prisma.intranet_techno_replyScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Intranet_techno_replyCountAggregateInputType | true + _avg?: Intranet_techno_replyAvgAggregateInputType + _sum?: Intranet_techno_replySumAggregateInputType + _min?: Intranet_techno_replyMinAggregateInputType + _max?: Intranet_techno_replyMaxAggregateInputType +} + +export type Intranet_techno_replyGroupByOutputType = { + id: bigint + feed_id: bigint + date: bigint + account_id: bigint + msg: string + attachment: bigint + _count: Intranet_techno_replyCountAggregateOutputType | null + _avg: Intranet_techno_replyAvgAggregateOutputType | null + _sum: Intranet_techno_replySumAggregateOutputType | null + _min: Intranet_techno_replyMinAggregateOutputType | null + _max: Intranet_techno_replyMaxAggregateOutputType | null +} + +type GetIntranet_techno_replyGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Intranet_techno_replyGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type intranet_techno_replyWhereInput = { + AND?: Prisma.intranet_techno_replyWhereInput | Prisma.intranet_techno_replyWhereInput[] + OR?: Prisma.intranet_techno_replyWhereInput[] + NOT?: Prisma.intranet_techno_replyWhereInput | Prisma.intranet_techno_replyWhereInput[] + id?: Prisma.BigIntFilter<"intranet_techno_reply"> | bigint | number + feed_id?: Prisma.BigIntFilter<"intranet_techno_reply"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_techno_reply"> | bigint | number + account_id?: Prisma.BigIntFilter<"intranet_techno_reply"> | bigint | number + msg?: Prisma.StringFilter<"intranet_techno_reply"> | string + attachment?: Prisma.BigIntFilter<"intranet_techno_reply"> | bigint | number +} + +export type intranet_techno_replyOrderByWithRelationInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + _relevance?: Prisma.intranet_techno_replyOrderByRelevanceInput +} + +export type intranet_techno_replyWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.intranet_techno_replyWhereInput | Prisma.intranet_techno_replyWhereInput[] + OR?: Prisma.intranet_techno_replyWhereInput[] + NOT?: Prisma.intranet_techno_replyWhereInput | Prisma.intranet_techno_replyWhereInput[] + feed_id?: Prisma.BigIntFilter<"intranet_techno_reply"> | bigint | number + date?: Prisma.BigIntFilter<"intranet_techno_reply"> | bigint | number + account_id?: Prisma.BigIntFilter<"intranet_techno_reply"> | bigint | number + msg?: Prisma.StringFilter<"intranet_techno_reply"> | string + attachment?: Prisma.BigIntFilter<"intranet_techno_reply"> | bigint | number +}, "id"> + +export type intranet_techno_replyOrderByWithAggregationInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder + _count?: Prisma.intranet_techno_replyCountOrderByAggregateInput + _avg?: Prisma.intranet_techno_replyAvgOrderByAggregateInput + _max?: Prisma.intranet_techno_replyMaxOrderByAggregateInput + _min?: Prisma.intranet_techno_replyMinOrderByAggregateInput + _sum?: Prisma.intranet_techno_replySumOrderByAggregateInput +} + +export type intranet_techno_replyScalarWhereWithAggregatesInput = { + AND?: Prisma.intranet_techno_replyScalarWhereWithAggregatesInput | Prisma.intranet_techno_replyScalarWhereWithAggregatesInput[] + OR?: Prisma.intranet_techno_replyScalarWhereWithAggregatesInput[] + NOT?: Prisma.intranet_techno_replyScalarWhereWithAggregatesInput | Prisma.intranet_techno_replyScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"intranet_techno_reply"> | bigint | number + feed_id?: Prisma.BigIntWithAggregatesFilter<"intranet_techno_reply"> | bigint | number + date?: Prisma.BigIntWithAggregatesFilter<"intranet_techno_reply"> | bigint | number + account_id?: Prisma.BigIntWithAggregatesFilter<"intranet_techno_reply"> | bigint | number + msg?: Prisma.StringWithAggregatesFilter<"intranet_techno_reply"> | string + attachment?: Prisma.BigIntWithAggregatesFilter<"intranet_techno_reply"> | bigint | number +} + +export type intranet_techno_replyCreateInput = { + id?: bigint | number + feed_id: bigint | number + date: bigint | number + account_id: bigint | number + msg: string + attachment: bigint | number +} + +export type intranet_techno_replyUncheckedCreateInput = { + id?: bigint | number + feed_id: bigint | number + date: bigint | number + account_id: bigint | number + msg: string + attachment: bigint | number +} + +export type intranet_techno_replyUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type intranet_techno_replyUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type intranet_techno_replyCreateManyInput = { + id?: bigint | number + feed_id: bigint | number + date: bigint | number + account_id: bigint | number + msg: string + attachment: bigint | number +} + +export type intranet_techno_replyUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type intranet_techno_replyUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + feed_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type intranet_techno_replyOrderByRelevanceInput = { + fields: Prisma.intranet_techno_replyOrderByRelevanceFieldEnum | Prisma.intranet_techno_replyOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type intranet_techno_replyCountOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + +export type intranet_techno_replyAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + +export type intranet_techno_replyMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + +export type intranet_techno_replyMinOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + +export type intranet_techno_replySumOrderByAggregateInput = { + id?: Prisma.SortOrder + feed_id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + attachment?: Prisma.SortOrder +} + + + +export type intranet_techno_replySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + feed_id?: boolean + date?: boolean + account_id?: boolean + msg?: boolean + attachment?: boolean +}, ExtArgs["result"]["intranet_techno_reply"]> + + + +export type intranet_techno_replySelectScalar = { + id?: boolean + feed_id?: boolean + date?: boolean + account_id?: boolean + msg?: boolean + attachment?: boolean +} + +export type intranet_techno_replyOmit = runtime.Types.Extensions.GetOmit<"id" | "feed_id" | "date" | "account_id" | "msg" | "attachment", ExtArgs["result"]["intranet_techno_reply"]> + +export type $intranet_techno_replyPayload = { + name: "intranet_techno_reply" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + feed_id: bigint + date: bigint + account_id: bigint + msg: string + attachment: bigint + }, ExtArgs["result"]["intranet_techno_reply"]> + composites: {} +} + +export type intranet_techno_replyGetPayload = runtime.Types.Result.GetResult + +export type intranet_techno_replyCountArgs = + Omit & { + select?: Intranet_techno_replyCountAggregateInputType | true + } + +export interface intranet_techno_replyDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['intranet_techno_reply'], meta: { name: 'intranet_techno_reply' } } + /** + * Find zero or one Intranet_techno_reply that matches the filter. + * @param {intranet_techno_replyFindUniqueArgs} args - Arguments to find a Intranet_techno_reply + * @example + * // Get one Intranet_techno_reply + * const intranet_techno_reply = await prisma.intranet_techno_reply.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techno_replyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Intranet_techno_reply that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {intranet_techno_replyFindUniqueOrThrowArgs} args - Arguments to find a Intranet_techno_reply + * @example + * // Get one Intranet_techno_reply + * const intranet_techno_reply = await prisma.intranet_techno_reply.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techno_replyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_techno_reply 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 {intranet_techno_replyFindFirstArgs} args - Arguments to find a Intranet_techno_reply + * @example + * // Get one Intranet_techno_reply + * const intranet_techno_reply = await prisma.intranet_techno_reply.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_techno_replyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Intranet_techno_reply 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 {intranet_techno_replyFindFirstOrThrowArgs} args - Arguments to find a Intranet_techno_reply + * @example + * // Get one Intranet_techno_reply + * const intranet_techno_reply = await prisma.intranet_techno_reply.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_techno_replyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Intranet_techno_replies 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 {intranet_techno_replyFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Intranet_techno_replies + * const intranet_techno_replies = await prisma.intranet_techno_reply.findMany() + * + * // Get first 10 Intranet_techno_replies + * const intranet_techno_replies = await prisma.intranet_techno_reply.findMany({ take: 10 }) + * + * // Only select the `id` + * const intranet_techno_replyWithIdOnly = await prisma.intranet_techno_reply.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Intranet_techno_reply. + * @param {intranet_techno_replyCreateArgs} args - Arguments to create a Intranet_techno_reply. + * @example + * // Create one Intranet_techno_reply + * const Intranet_techno_reply = await prisma.intranet_techno_reply.create({ + * data: { + * // ... data to create a Intranet_techno_reply + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techno_replyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Intranet_techno_replies. + * @param {intranet_techno_replyCreateManyArgs} args - Arguments to create many Intranet_techno_replies. + * @example + * // Create many Intranet_techno_replies + * const intranet_techno_reply = await prisma.intranet_techno_reply.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Intranet_techno_reply. + * @param {intranet_techno_replyDeleteArgs} args - Arguments to delete one Intranet_techno_reply. + * @example + * // Delete one Intranet_techno_reply + * const Intranet_techno_reply = await prisma.intranet_techno_reply.delete({ + * where: { + * // ... filter to delete one Intranet_techno_reply + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techno_replyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Intranet_techno_reply. + * @param {intranet_techno_replyUpdateArgs} args - Arguments to update one Intranet_techno_reply. + * @example + * // Update one Intranet_techno_reply + * const intranet_techno_reply = await prisma.intranet_techno_reply.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techno_replyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Intranet_techno_replies. + * @param {intranet_techno_replyDeleteManyArgs} args - Arguments to filter Intranet_techno_replies to delete. + * @example + * // Delete a few Intranet_techno_replies + * const { count } = await prisma.intranet_techno_reply.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Intranet_techno_replies. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_techno_replyUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Intranet_techno_replies + * const intranet_techno_reply = await prisma.intranet_techno_reply.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Intranet_techno_reply. + * @param {intranet_techno_replyUpsertArgs} args - Arguments to update or create a Intranet_techno_reply. + * @example + * // Update or create a Intranet_techno_reply + * const intranet_techno_reply = await prisma.intranet_techno_reply.upsert({ + * create: { + * // ... data to create a Intranet_techno_reply + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Intranet_techno_reply we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_techno_replyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Intranet_techno_replies. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_techno_replyCountArgs} args - Arguments to filter Intranet_techno_replies to count. + * @example + * // Count the number of Intranet_techno_replies + * const count = await prisma.intranet_techno_reply.count({ + * where: { + * // ... the filter for the Intranet_techno_replies 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 Intranet_techno_reply. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Intranet_techno_replyAggregateArgs} 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 Intranet_techno_reply. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {intranet_techno_replyGroupByArgs} 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 intranet_techno_replyGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: intranet_techno_replyGroupByArgs['orderBy'] } + : { orderBy?: intranet_techno_replyGroupByArgs['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 ? GetIntranet_techno_replyGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the intranet_techno_reply model + */ +readonly fields: intranet_techno_replyFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for intranet_techno_reply. + * 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__intranet_techno_replyClient 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 intranet_techno_reply model + */ +export interface intranet_techno_replyFieldRefs { + readonly id: Prisma.FieldRef<"intranet_techno_reply", 'BigInt'> + readonly feed_id: Prisma.FieldRef<"intranet_techno_reply", 'BigInt'> + readonly date: Prisma.FieldRef<"intranet_techno_reply", 'BigInt'> + readonly account_id: Prisma.FieldRef<"intranet_techno_reply", 'BigInt'> + readonly msg: Prisma.FieldRef<"intranet_techno_reply", 'String'> + readonly attachment: Prisma.FieldRef<"intranet_techno_reply", 'BigInt'> +} + + +// Custom InputTypes +/** + * intranet_techno_reply findUnique + */ +export type intranet_techno_replyFindUniqueArgs = { + /** + * Select specific fields to fetch from the intranet_techno_reply + */ + select?: Prisma.intranet_techno_replySelect | null + /** + * Omit specific fields from the intranet_techno_reply + */ + omit?: Prisma.intranet_techno_replyOmit | null + /** + * Filter, which intranet_techno_reply to fetch. + */ + where: Prisma.intranet_techno_replyWhereUniqueInput +} + +/** + * intranet_techno_reply findUniqueOrThrow + */ +export type intranet_techno_replyFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_techno_reply + */ + select?: Prisma.intranet_techno_replySelect | null + /** + * Omit specific fields from the intranet_techno_reply + */ + omit?: Prisma.intranet_techno_replyOmit | null + /** + * Filter, which intranet_techno_reply to fetch. + */ + where: Prisma.intranet_techno_replyWhereUniqueInput +} + +/** + * intranet_techno_reply findFirst + */ +export type intranet_techno_replyFindFirstArgs = { + /** + * Select specific fields to fetch from the intranet_techno_reply + */ + select?: Prisma.intranet_techno_replySelect | null + /** + * Omit specific fields from the intranet_techno_reply + */ + omit?: Prisma.intranet_techno_replyOmit | null + /** + * Filter, which intranet_techno_reply to fetch. + */ + where?: Prisma.intranet_techno_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_techno_replies to fetch. + */ + orderBy?: Prisma.intranet_techno_replyOrderByWithRelationInput | Prisma.intranet_techno_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_techno_replies. + */ + cursor?: Prisma.intranet_techno_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_techno_replies 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` intranet_techno_replies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_techno_replies. + */ + distinct?: Prisma.Intranet_techno_replyScalarFieldEnum | Prisma.Intranet_techno_replyScalarFieldEnum[] +} + +/** + * intranet_techno_reply findFirstOrThrow + */ +export type intranet_techno_replyFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the intranet_techno_reply + */ + select?: Prisma.intranet_techno_replySelect | null + /** + * Omit specific fields from the intranet_techno_reply + */ + omit?: Prisma.intranet_techno_replyOmit | null + /** + * Filter, which intranet_techno_reply to fetch. + */ + where?: Prisma.intranet_techno_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_techno_replies to fetch. + */ + orderBy?: Prisma.intranet_techno_replyOrderByWithRelationInput | Prisma.intranet_techno_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for intranet_techno_replies. + */ + cursor?: Prisma.intranet_techno_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_techno_replies 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` intranet_techno_replies. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of intranet_techno_replies. + */ + distinct?: Prisma.Intranet_techno_replyScalarFieldEnum | Prisma.Intranet_techno_replyScalarFieldEnum[] +} + +/** + * intranet_techno_reply findMany + */ +export type intranet_techno_replyFindManyArgs = { + /** + * Select specific fields to fetch from the intranet_techno_reply + */ + select?: Prisma.intranet_techno_replySelect | null + /** + * Omit specific fields from the intranet_techno_reply + */ + omit?: Prisma.intranet_techno_replyOmit | null + /** + * Filter, which intranet_techno_replies to fetch. + */ + where?: Prisma.intranet_techno_replyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of intranet_techno_replies to fetch. + */ + orderBy?: Prisma.intranet_techno_replyOrderByWithRelationInput | Prisma.intranet_techno_replyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing intranet_techno_replies. + */ + cursor?: Prisma.intranet_techno_replyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` intranet_techno_replies 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` intranet_techno_replies. + */ + skip?: number + distinct?: Prisma.Intranet_techno_replyScalarFieldEnum | Prisma.Intranet_techno_replyScalarFieldEnum[] +} + +/** + * intranet_techno_reply create + */ +export type intranet_techno_replyCreateArgs = { + /** + * Select specific fields to fetch from the intranet_techno_reply + */ + select?: Prisma.intranet_techno_replySelect | null + /** + * Omit specific fields from the intranet_techno_reply + */ + omit?: Prisma.intranet_techno_replyOmit | null + /** + * The data needed to create a intranet_techno_reply. + */ + data: Prisma.XOR +} + +/** + * intranet_techno_reply createMany + */ +export type intranet_techno_replyCreateManyArgs = { + /** + * The data used to create many intranet_techno_replies. + */ + data: Prisma.intranet_techno_replyCreateManyInput | Prisma.intranet_techno_replyCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * intranet_techno_reply update + */ +export type intranet_techno_replyUpdateArgs = { + /** + * Select specific fields to fetch from the intranet_techno_reply + */ + select?: Prisma.intranet_techno_replySelect | null + /** + * Omit specific fields from the intranet_techno_reply + */ + omit?: Prisma.intranet_techno_replyOmit | null + /** + * The data needed to update a intranet_techno_reply. + */ + data: Prisma.XOR + /** + * Choose, which intranet_techno_reply to update. + */ + where: Prisma.intranet_techno_replyWhereUniqueInput +} + +/** + * intranet_techno_reply updateMany + */ +export type intranet_techno_replyUpdateManyArgs = { + /** + * The data used to update intranet_techno_replies. + */ + data: Prisma.XOR + /** + * Filter which intranet_techno_replies to update + */ + where?: Prisma.intranet_techno_replyWhereInput + /** + * Limit how many intranet_techno_replies to update. + */ + limit?: number +} + +/** + * intranet_techno_reply upsert + */ +export type intranet_techno_replyUpsertArgs = { + /** + * Select specific fields to fetch from the intranet_techno_reply + */ + select?: Prisma.intranet_techno_replySelect | null + /** + * Omit specific fields from the intranet_techno_reply + */ + omit?: Prisma.intranet_techno_replyOmit | null + /** + * The filter to search for the intranet_techno_reply to update in case it exists. + */ + where: Prisma.intranet_techno_replyWhereUniqueInput + /** + * In case the intranet_techno_reply found by the `where` argument doesn't exist, create a new intranet_techno_reply with this data. + */ + create: Prisma.XOR + /** + * In case the intranet_techno_reply was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * intranet_techno_reply delete + */ +export type intranet_techno_replyDeleteArgs = { + /** + * Select specific fields to fetch from the intranet_techno_reply + */ + select?: Prisma.intranet_techno_replySelect | null + /** + * Omit specific fields from the intranet_techno_reply + */ + omit?: Prisma.intranet_techno_replyOmit | null + /** + * Filter which intranet_techno_reply to delete. + */ + where: Prisma.intranet_techno_replyWhereUniqueInput +} + +/** + * intranet_techno_reply deleteMany + */ +export type intranet_techno_replyDeleteManyArgs = { + /** + * Filter which intranet_techno_replies to delete + */ + where?: Prisma.intranet_techno_replyWhereInput + /** + * Limit how many intranet_techno_replies to delete. + */ + limit?: number +} + +/** + * intranet_techno_reply without action + */ +export type intranet_techno_replyDefaultArgs = { + /** + * Select specific fields to fetch from the intranet_techno_reply + */ + select?: Prisma.intranet_techno_replySelect | null + /** + * Omit specific fields from the intranet_techno_reply + */ + omit?: Prisma.intranet_techno_replyOmit | null +} diff --git a/prisma/generated/mariadb/models/inventaire_log.ts b/prisma/generated/mariadb/models/inventaire_log.ts new file mode 100644 index 0000000..9eaa0e6 --- /dev/null +++ b/prisma/generated/mariadb/models/inventaire_log.ts @@ -0,0 +1,1117 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `inventaire_log` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model inventaire_log + * + */ +export type inventaire_logModel = runtime.Types.Result.DefaultSelection + +export type AggregateInventaire_log = { + _count: Inventaire_logCountAggregateOutputType | null + _avg: Inventaire_logAvgAggregateOutputType | null + _sum: Inventaire_logSumAggregateOutputType | null + _min: Inventaire_logMinAggregateOutputType | null + _max: Inventaire_logMaxAggregateOutputType | null +} + +export type Inventaire_logAvgAggregateOutputType = { + id: number | null + staff_id: number | null + qte: number | null +} + +export type Inventaire_logSumAggregateOutputType = { + id: number | null + staff_id: number | null + qte: number | null +} + +export type Inventaire_logMinAggregateOutputType = { + id: number | null + prod_tag: string | null + staff_id: number | null + action: string | null + qte: number | null + timestamp: string | null +} + +export type Inventaire_logMaxAggregateOutputType = { + id: number | null + prod_tag: string | null + staff_id: number | null + action: string | null + qte: number | null + timestamp: string | null +} + +export type Inventaire_logCountAggregateOutputType = { + id: number + prod_tag: number + staff_id: number + action: number + qte: number + timestamp: number + _all: number +} + + +export type Inventaire_logAvgAggregateInputType = { + id?: true + staff_id?: true + qte?: true +} + +export type Inventaire_logSumAggregateInputType = { + id?: true + staff_id?: true + qte?: true +} + +export type Inventaire_logMinAggregateInputType = { + id?: true + prod_tag?: true + staff_id?: true + action?: true + qte?: true + timestamp?: true +} + +export type Inventaire_logMaxAggregateInputType = { + id?: true + prod_tag?: true + staff_id?: true + action?: true + qte?: true + timestamp?: true +} + +export type Inventaire_logCountAggregateInputType = { + id?: true + prod_tag?: true + staff_id?: true + action?: true + qte?: true + timestamp?: true + _all?: true +} + +export type Inventaire_logAggregateArgs = { + /** + * Filter which inventaire_log to aggregate. + */ + where?: Prisma.inventaire_logWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of inventaire_logs to fetch. + */ + orderBy?: Prisma.inventaire_logOrderByWithRelationInput | Prisma.inventaire_logOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.inventaire_logWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` inventaire_logs 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` inventaire_logs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned inventaire_logs + **/ + _count?: true | Inventaire_logCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Inventaire_logAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Inventaire_logSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Inventaire_logMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Inventaire_logMaxAggregateInputType +} + +export type GetInventaire_logAggregateType = { + [P in keyof T & keyof AggregateInventaire_log]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type inventaire_logGroupByArgs = { + where?: Prisma.inventaire_logWhereInput + orderBy?: Prisma.inventaire_logOrderByWithAggregationInput | Prisma.inventaire_logOrderByWithAggregationInput[] + by: Prisma.Inventaire_logScalarFieldEnum[] | Prisma.Inventaire_logScalarFieldEnum + having?: Prisma.inventaire_logScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Inventaire_logCountAggregateInputType | true + _avg?: Inventaire_logAvgAggregateInputType + _sum?: Inventaire_logSumAggregateInputType + _min?: Inventaire_logMinAggregateInputType + _max?: Inventaire_logMaxAggregateInputType +} + +export type Inventaire_logGroupByOutputType = { + id: number + prod_tag: string + staff_id: number + action: string + qte: number + timestamp: string + _count: Inventaire_logCountAggregateOutputType | null + _avg: Inventaire_logAvgAggregateOutputType | null + _sum: Inventaire_logSumAggregateOutputType | null + _min: Inventaire_logMinAggregateOutputType | null + _max: Inventaire_logMaxAggregateOutputType | null +} + +type GetInventaire_logGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Inventaire_logGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type inventaire_logWhereInput = { + AND?: Prisma.inventaire_logWhereInput | Prisma.inventaire_logWhereInput[] + OR?: Prisma.inventaire_logWhereInput[] + NOT?: Prisma.inventaire_logWhereInput | Prisma.inventaire_logWhereInput[] + id?: Prisma.IntFilter<"inventaire_log"> | number + prod_tag?: Prisma.StringFilter<"inventaire_log"> | string + staff_id?: Prisma.IntFilter<"inventaire_log"> | number + action?: Prisma.StringFilter<"inventaire_log"> | string + qte?: Prisma.IntFilter<"inventaire_log"> | number + timestamp?: Prisma.StringFilter<"inventaire_log"> | string +} + +export type inventaire_logOrderByWithRelationInput = { + id?: Prisma.SortOrder + prod_tag?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + action?: Prisma.SortOrder + qte?: Prisma.SortOrder + timestamp?: Prisma.SortOrder + _relevance?: Prisma.inventaire_logOrderByRelevanceInput +} + +export type inventaire_logWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.inventaire_logWhereInput | Prisma.inventaire_logWhereInput[] + OR?: Prisma.inventaire_logWhereInput[] + NOT?: Prisma.inventaire_logWhereInput | Prisma.inventaire_logWhereInput[] + prod_tag?: Prisma.StringFilter<"inventaire_log"> | string + staff_id?: Prisma.IntFilter<"inventaire_log"> | number + action?: Prisma.StringFilter<"inventaire_log"> | string + qte?: Prisma.IntFilter<"inventaire_log"> | number + timestamp?: Prisma.StringFilter<"inventaire_log"> | string +}, "id"> + +export type inventaire_logOrderByWithAggregationInput = { + id?: Prisma.SortOrder + prod_tag?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + action?: Prisma.SortOrder + qte?: Prisma.SortOrder + timestamp?: Prisma.SortOrder + _count?: Prisma.inventaire_logCountOrderByAggregateInput + _avg?: Prisma.inventaire_logAvgOrderByAggregateInput + _max?: Prisma.inventaire_logMaxOrderByAggregateInput + _min?: Prisma.inventaire_logMinOrderByAggregateInput + _sum?: Prisma.inventaire_logSumOrderByAggregateInput +} + +export type inventaire_logScalarWhereWithAggregatesInput = { + AND?: Prisma.inventaire_logScalarWhereWithAggregatesInput | Prisma.inventaire_logScalarWhereWithAggregatesInput[] + OR?: Prisma.inventaire_logScalarWhereWithAggregatesInput[] + NOT?: Prisma.inventaire_logScalarWhereWithAggregatesInput | Prisma.inventaire_logScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"inventaire_log"> | number + prod_tag?: Prisma.StringWithAggregatesFilter<"inventaire_log"> | string + staff_id?: Prisma.IntWithAggregatesFilter<"inventaire_log"> | number + action?: Prisma.StringWithAggregatesFilter<"inventaire_log"> | string + qte?: Prisma.IntWithAggregatesFilter<"inventaire_log"> | number + timestamp?: Prisma.StringWithAggregatesFilter<"inventaire_log"> | string +} + +export type inventaire_logCreateInput = { + prod_tag: string + staff_id: number + action: string + qte: number + timestamp: string +} + +export type inventaire_logUncheckedCreateInput = { + id?: number + prod_tag: string + staff_id: number + action: string + qte: number + timestamp: string +} + +export type inventaire_logUpdateInput = { + prod_tag?: Prisma.StringFieldUpdateOperationsInput | string + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + action?: Prisma.StringFieldUpdateOperationsInput | string + qte?: Prisma.IntFieldUpdateOperationsInput | number + timestamp?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type inventaire_logUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + prod_tag?: Prisma.StringFieldUpdateOperationsInput | string + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + action?: Prisma.StringFieldUpdateOperationsInput | string + qte?: Prisma.IntFieldUpdateOperationsInput | number + timestamp?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type inventaire_logCreateManyInput = { + id?: number + prod_tag: string + staff_id: number + action: string + qte: number + timestamp: string +} + +export type inventaire_logUpdateManyMutationInput = { + prod_tag?: Prisma.StringFieldUpdateOperationsInput | string + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + action?: Prisma.StringFieldUpdateOperationsInput | string + qte?: Prisma.IntFieldUpdateOperationsInput | number + timestamp?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type inventaire_logUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + prod_tag?: Prisma.StringFieldUpdateOperationsInput | string + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + action?: Prisma.StringFieldUpdateOperationsInput | string + qte?: Prisma.IntFieldUpdateOperationsInput | number + timestamp?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type inventaire_logOrderByRelevanceInput = { + fields: Prisma.inventaire_logOrderByRelevanceFieldEnum | Prisma.inventaire_logOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type inventaire_logCountOrderByAggregateInput = { + id?: Prisma.SortOrder + prod_tag?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + action?: Prisma.SortOrder + qte?: Prisma.SortOrder + timestamp?: Prisma.SortOrder +} + +export type inventaire_logAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + qte?: Prisma.SortOrder +} + +export type inventaire_logMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + prod_tag?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + action?: Prisma.SortOrder + qte?: Prisma.SortOrder + timestamp?: Prisma.SortOrder +} + +export type inventaire_logMinOrderByAggregateInput = { + id?: Prisma.SortOrder + prod_tag?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + action?: Prisma.SortOrder + qte?: Prisma.SortOrder + timestamp?: Prisma.SortOrder +} + +export type inventaire_logSumOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + qte?: Prisma.SortOrder +} + + + +export type inventaire_logSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + prod_tag?: boolean + staff_id?: boolean + action?: boolean + qte?: boolean + timestamp?: boolean +}, ExtArgs["result"]["inventaire_log"]> + + + +export type inventaire_logSelectScalar = { + id?: boolean + prod_tag?: boolean + staff_id?: boolean + action?: boolean + qte?: boolean + timestamp?: boolean +} + +export type inventaire_logOmit = runtime.Types.Extensions.GetOmit<"id" | "prod_tag" | "staff_id" | "action" | "qte" | "timestamp", ExtArgs["result"]["inventaire_log"]> + +export type $inventaire_logPayload = { + name: "inventaire_log" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + prod_tag: string + staff_id: number + action: string + qte: number + timestamp: string + }, ExtArgs["result"]["inventaire_log"]> + composites: {} +} + +export type inventaire_logGetPayload = runtime.Types.Result.GetResult + +export type inventaire_logCountArgs = + Omit & { + select?: Inventaire_logCountAggregateInputType | true + } + +export interface inventaire_logDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['inventaire_log'], meta: { name: 'inventaire_log' } } + /** + * Find zero or one Inventaire_log that matches the filter. + * @param {inventaire_logFindUniqueArgs} args - Arguments to find a Inventaire_log + * @example + * // Get one Inventaire_log + * const inventaire_log = await prisma.inventaire_log.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Inventaire_log that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {inventaire_logFindUniqueOrThrowArgs} args - Arguments to find a Inventaire_log + * @example + * // Get one Inventaire_log + * const inventaire_log = await prisma.inventaire_log.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Inventaire_log 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 {inventaire_logFindFirstArgs} args - Arguments to find a Inventaire_log + * @example + * // Get one Inventaire_log + * const inventaire_log = await prisma.inventaire_log.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Inventaire_log 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 {inventaire_logFindFirstOrThrowArgs} args - Arguments to find a Inventaire_log + * @example + * // Get one Inventaire_log + * const inventaire_log = await prisma.inventaire_log.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Inventaire_logs 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 {inventaire_logFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Inventaire_logs + * const inventaire_logs = await prisma.inventaire_log.findMany() + * + * // Get first 10 Inventaire_logs + * const inventaire_logs = await prisma.inventaire_log.findMany({ take: 10 }) + * + * // Only select the `id` + * const inventaire_logWithIdOnly = await prisma.inventaire_log.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Inventaire_log. + * @param {inventaire_logCreateArgs} args - Arguments to create a Inventaire_log. + * @example + * // Create one Inventaire_log + * const Inventaire_log = await prisma.inventaire_log.create({ + * data: { + * // ... data to create a Inventaire_log + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Inventaire_logs. + * @param {inventaire_logCreateManyArgs} args - Arguments to create many Inventaire_logs. + * @example + * // Create many Inventaire_logs + * const inventaire_log = await prisma.inventaire_log.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Inventaire_log. + * @param {inventaire_logDeleteArgs} args - Arguments to delete one Inventaire_log. + * @example + * // Delete one Inventaire_log + * const Inventaire_log = await prisma.inventaire_log.delete({ + * where: { + * // ... filter to delete one Inventaire_log + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Inventaire_log. + * @param {inventaire_logUpdateArgs} args - Arguments to update one Inventaire_log. + * @example + * // Update one Inventaire_log + * const inventaire_log = await prisma.inventaire_log.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Inventaire_logs. + * @param {inventaire_logDeleteManyArgs} args - Arguments to filter Inventaire_logs to delete. + * @example + * // Delete a few Inventaire_logs + * const { count } = await prisma.inventaire_log.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Inventaire_logs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {inventaire_logUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Inventaire_logs + * const inventaire_log = await prisma.inventaire_log.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Inventaire_log. + * @param {inventaire_logUpsertArgs} args - Arguments to update or create a Inventaire_log. + * @example + * // Update or create a Inventaire_log + * const inventaire_log = await prisma.inventaire_log.upsert({ + * create: { + * // ... data to create a Inventaire_log + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Inventaire_log we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Inventaire_logs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {inventaire_logCountArgs} args - Arguments to filter Inventaire_logs to count. + * @example + * // Count the number of Inventaire_logs + * const count = await prisma.inventaire_log.count({ + * where: { + * // ... the filter for the Inventaire_logs 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 Inventaire_log. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Inventaire_logAggregateArgs} 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 Inventaire_log. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {inventaire_logGroupByArgs} 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 inventaire_logGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: inventaire_logGroupByArgs['orderBy'] } + : { orderBy?: inventaire_logGroupByArgs['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 ? GetInventaire_logGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the inventaire_log model + */ +readonly fields: inventaire_logFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for inventaire_log. + * 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__inventaire_logClient 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 inventaire_log model + */ +export interface inventaire_logFieldRefs { + readonly id: Prisma.FieldRef<"inventaire_log", 'Int'> + readonly prod_tag: Prisma.FieldRef<"inventaire_log", 'String'> + readonly staff_id: Prisma.FieldRef<"inventaire_log", 'Int'> + readonly action: Prisma.FieldRef<"inventaire_log", 'String'> + readonly qte: Prisma.FieldRef<"inventaire_log", 'Int'> + readonly timestamp: Prisma.FieldRef<"inventaire_log", 'String'> +} + + +// Custom InputTypes +/** + * inventaire_log findUnique + */ +export type inventaire_logFindUniqueArgs = { + /** + * Select specific fields to fetch from the inventaire_log + */ + select?: Prisma.inventaire_logSelect | null + /** + * Omit specific fields from the inventaire_log + */ + omit?: Prisma.inventaire_logOmit | null + /** + * Filter, which inventaire_log to fetch. + */ + where: Prisma.inventaire_logWhereUniqueInput +} + +/** + * inventaire_log findUniqueOrThrow + */ +export type inventaire_logFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the inventaire_log + */ + select?: Prisma.inventaire_logSelect | null + /** + * Omit specific fields from the inventaire_log + */ + omit?: Prisma.inventaire_logOmit | null + /** + * Filter, which inventaire_log to fetch. + */ + where: Prisma.inventaire_logWhereUniqueInput +} + +/** + * inventaire_log findFirst + */ +export type inventaire_logFindFirstArgs = { + /** + * Select specific fields to fetch from the inventaire_log + */ + select?: Prisma.inventaire_logSelect | null + /** + * Omit specific fields from the inventaire_log + */ + omit?: Prisma.inventaire_logOmit | null + /** + * Filter, which inventaire_log to fetch. + */ + where?: Prisma.inventaire_logWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of inventaire_logs to fetch. + */ + orderBy?: Prisma.inventaire_logOrderByWithRelationInput | Prisma.inventaire_logOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for inventaire_logs. + */ + cursor?: Prisma.inventaire_logWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` inventaire_logs 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` inventaire_logs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of inventaire_logs. + */ + distinct?: Prisma.Inventaire_logScalarFieldEnum | Prisma.Inventaire_logScalarFieldEnum[] +} + +/** + * inventaire_log findFirstOrThrow + */ +export type inventaire_logFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the inventaire_log + */ + select?: Prisma.inventaire_logSelect | null + /** + * Omit specific fields from the inventaire_log + */ + omit?: Prisma.inventaire_logOmit | null + /** + * Filter, which inventaire_log to fetch. + */ + where?: Prisma.inventaire_logWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of inventaire_logs to fetch. + */ + orderBy?: Prisma.inventaire_logOrderByWithRelationInput | Prisma.inventaire_logOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for inventaire_logs. + */ + cursor?: Prisma.inventaire_logWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` inventaire_logs 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` inventaire_logs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of inventaire_logs. + */ + distinct?: Prisma.Inventaire_logScalarFieldEnum | Prisma.Inventaire_logScalarFieldEnum[] +} + +/** + * inventaire_log findMany + */ +export type inventaire_logFindManyArgs = { + /** + * Select specific fields to fetch from the inventaire_log + */ + select?: Prisma.inventaire_logSelect | null + /** + * Omit specific fields from the inventaire_log + */ + omit?: Prisma.inventaire_logOmit | null + /** + * Filter, which inventaire_logs to fetch. + */ + where?: Prisma.inventaire_logWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of inventaire_logs to fetch. + */ + orderBy?: Prisma.inventaire_logOrderByWithRelationInput | Prisma.inventaire_logOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing inventaire_logs. + */ + cursor?: Prisma.inventaire_logWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` inventaire_logs 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` inventaire_logs. + */ + skip?: number + distinct?: Prisma.Inventaire_logScalarFieldEnum | Prisma.Inventaire_logScalarFieldEnum[] +} + +/** + * inventaire_log create + */ +export type inventaire_logCreateArgs = { + /** + * Select specific fields to fetch from the inventaire_log + */ + select?: Prisma.inventaire_logSelect | null + /** + * Omit specific fields from the inventaire_log + */ + omit?: Prisma.inventaire_logOmit | null + /** + * The data needed to create a inventaire_log. + */ + data: Prisma.XOR +} + +/** + * inventaire_log createMany + */ +export type inventaire_logCreateManyArgs = { + /** + * The data used to create many inventaire_logs. + */ + data: Prisma.inventaire_logCreateManyInput | Prisma.inventaire_logCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * inventaire_log update + */ +export type inventaire_logUpdateArgs = { + /** + * Select specific fields to fetch from the inventaire_log + */ + select?: Prisma.inventaire_logSelect | null + /** + * Omit specific fields from the inventaire_log + */ + omit?: Prisma.inventaire_logOmit | null + /** + * The data needed to update a inventaire_log. + */ + data: Prisma.XOR + /** + * Choose, which inventaire_log to update. + */ + where: Prisma.inventaire_logWhereUniqueInput +} + +/** + * inventaire_log updateMany + */ +export type inventaire_logUpdateManyArgs = { + /** + * The data used to update inventaire_logs. + */ + data: Prisma.XOR + /** + * Filter which inventaire_logs to update + */ + where?: Prisma.inventaire_logWhereInput + /** + * Limit how many inventaire_logs to update. + */ + limit?: number +} + +/** + * inventaire_log upsert + */ +export type inventaire_logUpsertArgs = { + /** + * Select specific fields to fetch from the inventaire_log + */ + select?: Prisma.inventaire_logSelect | null + /** + * Omit specific fields from the inventaire_log + */ + omit?: Prisma.inventaire_logOmit | null + /** + * The filter to search for the inventaire_log to update in case it exists. + */ + where: Prisma.inventaire_logWhereUniqueInput + /** + * In case the inventaire_log found by the `where` argument doesn't exist, create a new inventaire_log with this data. + */ + create: Prisma.XOR + /** + * In case the inventaire_log was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * inventaire_log delete + */ +export type inventaire_logDeleteArgs = { + /** + * Select specific fields to fetch from the inventaire_log + */ + select?: Prisma.inventaire_logSelect | null + /** + * Omit specific fields from the inventaire_log + */ + omit?: Prisma.inventaire_logOmit | null + /** + * Filter which inventaire_log to delete. + */ + where: Prisma.inventaire_logWhereUniqueInput +} + +/** + * inventaire_log deleteMany + */ +export type inventaire_logDeleteManyArgs = { + /** + * Filter which inventaire_logs to delete + */ + where?: Prisma.inventaire_logWhereInput + /** + * Limit how many inventaire_logs to delete. + */ + limit?: number +} + +/** + * inventaire_log without action + */ +export type inventaire_logDefaultArgs = { + /** + * Select specific fields to fetch from the inventaire_log + */ + select?: Prisma.inventaire_logSelect | null + /** + * Omit specific fields from the inventaire_log + */ + omit?: Prisma.inventaire_logOmit | null +} diff --git a/prisma/generated/mariadb/models/invoice.ts b/prisma/generated/mariadb/models/invoice.ts new file mode 100644 index 0000000..63c3e0c --- /dev/null +++ b/prisma/generated/mariadb/models/invoice.ts @@ -0,0 +1,1472 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `invoice` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model invoice + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type invoiceModel = runtime.Types.Result.DefaultSelection + +export type AggregateInvoice = { + _count: InvoiceCountAggregateOutputType | null + _avg: InvoiceAvgAggregateOutputType | null + _sum: InvoiceSumAggregateOutputType | null + _min: InvoiceMinAggregateOutputType | null + _max: InvoiceMaxAggregateOutputType | null +} + +export type InvoiceAvgAggregateOutputType = { + id: number | null + date_orig: number | null + process_status: number | null + billing_status: number | null + refund_status: number | null + print_status: number | null + account_id: number | null + total_amt: number | null + billed_amt: number | null + due_date: number | null + email_status: number | null + correction: number | null + ppa_charge: number | null + credit_code_id: number | null +} + +export type InvoiceSumAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + process_status: number | null + billing_status: number | null + refund_status: number | null + print_status: number | null + account_id: bigint | null + total_amt: number | null + billed_amt: number | null + due_date: bigint | null + email_status: number | null + correction: number | null + ppa_charge: number | null + credit_code_id: number | null +} + +export type InvoiceMinAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + process_status: number | null + billing_status: number | null + refund_status: number | null + print_status: number | null + account_id: bigint | null + total_amt: number | null + billed_amt: number | null + due_date: bigint | null + notes: string | null + template_message: string | null + email_status: number | null + working_order: string | null + correction: number | null + ppa_charge: number | null + credit_code_id: number | null +} + +export type InvoiceMaxAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + process_status: number | null + billing_status: number | null + refund_status: number | null + print_status: number | null + account_id: bigint | null + total_amt: number | null + billed_amt: number | null + due_date: bigint | null + notes: string | null + template_message: string | null + email_status: number | null + working_order: string | null + correction: number | null + ppa_charge: number | null + credit_code_id: number | null +} + +export type InvoiceCountAggregateOutputType = { + id: number + date_orig: number + process_status: number + billing_status: number + refund_status: number + print_status: number + account_id: number + total_amt: number + billed_amt: number + due_date: number + notes: number + template_message: number + email_status: number + working_order: number + correction: number + ppa_charge: number + credit_code_id: number + _all: number +} + + +export type InvoiceAvgAggregateInputType = { + id?: true + date_orig?: true + process_status?: true + billing_status?: true + refund_status?: true + print_status?: true + account_id?: true + total_amt?: true + billed_amt?: true + due_date?: true + email_status?: true + correction?: true + ppa_charge?: true + credit_code_id?: true +} + +export type InvoiceSumAggregateInputType = { + id?: true + date_orig?: true + process_status?: true + billing_status?: true + refund_status?: true + print_status?: true + account_id?: true + total_amt?: true + billed_amt?: true + due_date?: true + email_status?: true + correction?: true + ppa_charge?: true + credit_code_id?: true +} + +export type InvoiceMinAggregateInputType = { + id?: true + date_orig?: true + process_status?: true + billing_status?: true + refund_status?: true + print_status?: true + account_id?: true + total_amt?: true + billed_amt?: true + due_date?: true + notes?: true + template_message?: true + email_status?: true + working_order?: true + correction?: true + ppa_charge?: true + credit_code_id?: true +} + +export type InvoiceMaxAggregateInputType = { + id?: true + date_orig?: true + process_status?: true + billing_status?: true + refund_status?: true + print_status?: true + account_id?: true + total_amt?: true + billed_amt?: true + due_date?: true + notes?: true + template_message?: true + email_status?: true + working_order?: true + correction?: true + ppa_charge?: true + credit_code_id?: true +} + +export type InvoiceCountAggregateInputType = { + id?: true + date_orig?: true + process_status?: true + billing_status?: true + refund_status?: true + print_status?: true + account_id?: true + total_amt?: true + billed_amt?: true + due_date?: true + notes?: true + template_message?: true + email_status?: true + working_order?: true + correction?: true + ppa_charge?: true + credit_code_id?: true + _all?: true +} + +export type InvoiceAggregateArgs = { + /** + * Filter which invoice to aggregate. + */ + where?: Prisma.invoiceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoices to fetch. + */ + orderBy?: Prisma.invoiceOrderByWithRelationInput | Prisma.invoiceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.invoiceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoices 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` invoices. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned invoices + **/ + _count?: true | InvoiceCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: InvoiceAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: InvoiceSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: InvoiceMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: InvoiceMaxAggregateInputType +} + +export type GetInvoiceAggregateType = { + [P in keyof T & keyof AggregateInvoice]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type invoiceGroupByArgs = { + where?: Prisma.invoiceWhereInput + orderBy?: Prisma.invoiceOrderByWithAggregationInput | Prisma.invoiceOrderByWithAggregationInput[] + by: Prisma.InvoiceScalarFieldEnum[] | Prisma.InvoiceScalarFieldEnum + having?: Prisma.invoiceScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: InvoiceCountAggregateInputType | true + _avg?: InvoiceAvgAggregateInputType + _sum?: InvoiceSumAggregateInputType + _min?: InvoiceMinAggregateInputType + _max?: InvoiceMaxAggregateInputType +} + +export type InvoiceGroupByOutputType = { + id: bigint + date_orig: bigint | null + process_status: number | null + billing_status: number | null + refund_status: number | null + print_status: number | null + account_id: bigint | null + total_amt: number | null + billed_amt: number | null + due_date: bigint | null + notes: string | null + template_message: string | null + email_status: number | null + working_order: string | null + correction: number + ppa_charge: number + credit_code_id: number + _count: InvoiceCountAggregateOutputType | null + _avg: InvoiceAvgAggregateOutputType | null + _sum: InvoiceSumAggregateOutputType | null + _min: InvoiceMinAggregateOutputType | null + _max: InvoiceMaxAggregateOutputType | null +} + +type GetInvoiceGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof InvoiceGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type invoiceWhereInput = { + AND?: Prisma.invoiceWhereInput | Prisma.invoiceWhereInput[] + OR?: Prisma.invoiceWhereInput[] + NOT?: Prisma.invoiceWhereInput | Prisma.invoiceWhereInput[] + id?: Prisma.BigIntFilter<"invoice"> | bigint | number + date_orig?: Prisma.BigIntNullableFilter<"invoice"> | bigint | number | null + process_status?: Prisma.IntNullableFilter<"invoice"> | number | null + billing_status?: Prisma.IntNullableFilter<"invoice"> | number | null + refund_status?: Prisma.IntNullableFilter<"invoice"> | number | null + print_status?: Prisma.IntNullableFilter<"invoice"> | number | null + account_id?: Prisma.BigIntNullableFilter<"invoice"> | bigint | number | null + total_amt?: Prisma.FloatNullableFilter<"invoice"> | number | null + billed_amt?: Prisma.FloatNullableFilter<"invoice"> | number | null + due_date?: Prisma.BigIntNullableFilter<"invoice"> | bigint | number | null + notes?: Prisma.StringNullableFilter<"invoice"> | string | null + template_message?: Prisma.StringNullableFilter<"invoice"> | string | null + email_status?: Prisma.IntNullableFilter<"invoice"> | number | null + working_order?: Prisma.StringNullableFilter<"invoice"> | string | null + correction?: Prisma.IntFilter<"invoice"> | number + ppa_charge?: Prisma.IntFilter<"invoice"> | number + credit_code_id?: Prisma.IntFilter<"invoice"> | number +} + +export type invoiceOrderByWithRelationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + process_status?: Prisma.SortOrderInput | Prisma.SortOrder + billing_status?: Prisma.SortOrderInput | Prisma.SortOrder + refund_status?: Prisma.SortOrderInput | Prisma.SortOrder + print_status?: Prisma.SortOrderInput | Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + total_amt?: Prisma.SortOrderInput | Prisma.SortOrder + billed_amt?: Prisma.SortOrderInput | Prisma.SortOrder + due_date?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + template_message?: Prisma.SortOrderInput | Prisma.SortOrder + email_status?: Prisma.SortOrderInput | Prisma.SortOrder + working_order?: Prisma.SortOrderInput | Prisma.SortOrder + correction?: Prisma.SortOrder + ppa_charge?: Prisma.SortOrder + credit_code_id?: Prisma.SortOrder + _relevance?: Prisma.invoiceOrderByRelevanceInput +} + +export type invoiceWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.invoiceWhereInput | Prisma.invoiceWhereInput[] + OR?: Prisma.invoiceWhereInput[] + NOT?: Prisma.invoiceWhereInput | Prisma.invoiceWhereInput[] + date_orig?: Prisma.BigIntNullableFilter<"invoice"> | bigint | number | null + process_status?: Prisma.IntNullableFilter<"invoice"> | number | null + billing_status?: Prisma.IntNullableFilter<"invoice"> | number | null + refund_status?: Prisma.IntNullableFilter<"invoice"> | number | null + print_status?: Prisma.IntNullableFilter<"invoice"> | number | null + account_id?: Prisma.BigIntNullableFilter<"invoice"> | bigint | number | null + total_amt?: Prisma.FloatNullableFilter<"invoice"> | number | null + billed_amt?: Prisma.FloatNullableFilter<"invoice"> | number | null + due_date?: Prisma.BigIntNullableFilter<"invoice"> | bigint | number | null + notes?: Prisma.StringNullableFilter<"invoice"> | string | null + template_message?: Prisma.StringNullableFilter<"invoice"> | string | null + email_status?: Prisma.IntNullableFilter<"invoice"> | number | null + working_order?: Prisma.StringNullableFilter<"invoice"> | string | null + correction?: Prisma.IntFilter<"invoice"> | number + ppa_charge?: Prisma.IntFilter<"invoice"> | number + credit_code_id?: Prisma.IntFilter<"invoice"> | number +}, "id"> + +export type invoiceOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + process_status?: Prisma.SortOrderInput | Prisma.SortOrder + billing_status?: Prisma.SortOrderInput | Prisma.SortOrder + refund_status?: Prisma.SortOrderInput | Prisma.SortOrder + print_status?: Prisma.SortOrderInput | Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + total_amt?: Prisma.SortOrderInput | Prisma.SortOrder + billed_amt?: Prisma.SortOrderInput | Prisma.SortOrder + due_date?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + template_message?: Prisma.SortOrderInput | Prisma.SortOrder + email_status?: Prisma.SortOrderInput | Prisma.SortOrder + working_order?: Prisma.SortOrderInput | Prisma.SortOrder + correction?: Prisma.SortOrder + ppa_charge?: Prisma.SortOrder + credit_code_id?: Prisma.SortOrder + _count?: Prisma.invoiceCountOrderByAggregateInput + _avg?: Prisma.invoiceAvgOrderByAggregateInput + _max?: Prisma.invoiceMaxOrderByAggregateInput + _min?: Prisma.invoiceMinOrderByAggregateInput + _sum?: Prisma.invoiceSumOrderByAggregateInput +} + +export type invoiceScalarWhereWithAggregatesInput = { + AND?: Prisma.invoiceScalarWhereWithAggregatesInput | Prisma.invoiceScalarWhereWithAggregatesInput[] + OR?: Prisma.invoiceScalarWhereWithAggregatesInput[] + NOT?: Prisma.invoiceScalarWhereWithAggregatesInput | Prisma.invoiceScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"invoice"> | bigint | number + date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"invoice"> | bigint | number | null + process_status?: Prisma.IntNullableWithAggregatesFilter<"invoice"> | number | null + billing_status?: Prisma.IntNullableWithAggregatesFilter<"invoice"> | number | null + refund_status?: Prisma.IntNullableWithAggregatesFilter<"invoice"> | number | null + print_status?: Prisma.IntNullableWithAggregatesFilter<"invoice"> | number | null + account_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice"> | bigint | number | null + total_amt?: Prisma.FloatNullableWithAggregatesFilter<"invoice"> | number | null + billed_amt?: Prisma.FloatNullableWithAggregatesFilter<"invoice"> | number | null + due_date?: Prisma.BigIntNullableWithAggregatesFilter<"invoice"> | bigint | number | null + notes?: Prisma.StringNullableWithAggregatesFilter<"invoice"> | string | null + template_message?: Prisma.StringNullableWithAggregatesFilter<"invoice"> | string | null + email_status?: Prisma.IntNullableWithAggregatesFilter<"invoice"> | number | null + working_order?: Prisma.StringNullableWithAggregatesFilter<"invoice"> | string | null + correction?: Prisma.IntWithAggregatesFilter<"invoice"> | number + ppa_charge?: Prisma.IntWithAggregatesFilter<"invoice"> | number + credit_code_id?: Prisma.IntWithAggregatesFilter<"invoice"> | number +} + +export type invoiceCreateInput = { + id?: bigint | number + date_orig?: bigint | number | null + process_status?: number | null + billing_status?: number | null + refund_status?: number | null + print_status?: number | null + account_id?: bigint | number | null + total_amt?: number | null + billed_amt?: number | null + due_date?: bigint | number | null + notes?: string | null + template_message?: string | null + email_status?: number | null + working_order?: string | null + correction?: number + ppa_charge?: number + credit_code_id?: number +} + +export type invoiceUncheckedCreateInput = { + id?: bigint | number + date_orig?: bigint | number | null + process_status?: number | null + billing_status?: number | null + refund_status?: number | null + print_status?: number | null + account_id?: bigint | number | null + total_amt?: number | null + billed_amt?: number | null + due_date?: bigint | number | null + notes?: string | null + template_message?: string | null + email_status?: number | null + working_order?: string | null + correction?: number + ppa_charge?: number + credit_code_id?: number +} + +export type invoiceUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + process_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + billing_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + refund_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + print_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + billed_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + due_date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + template_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + correction?: Prisma.IntFieldUpdateOperationsInput | number + ppa_charge?: Prisma.IntFieldUpdateOperationsInput | number + credit_code_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type invoiceUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + process_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + billing_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + refund_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + print_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + billed_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + due_date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + template_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + correction?: Prisma.IntFieldUpdateOperationsInput | number + ppa_charge?: Prisma.IntFieldUpdateOperationsInput | number + credit_code_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type invoiceCreateManyInput = { + id?: bigint | number + date_orig?: bigint | number | null + process_status?: number | null + billing_status?: number | null + refund_status?: number | null + print_status?: number | null + account_id?: bigint | number | null + total_amt?: number | null + billed_amt?: number | null + due_date?: bigint | number | null + notes?: string | null + template_message?: string | null + email_status?: number | null + working_order?: string | null + correction?: number + ppa_charge?: number + credit_code_id?: number +} + +export type invoiceUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + process_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + billing_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + refund_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + print_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + billed_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + due_date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + template_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + correction?: Prisma.IntFieldUpdateOperationsInput | number + ppa_charge?: Prisma.IntFieldUpdateOperationsInput | number + credit_code_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type invoiceUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + process_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + billing_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + refund_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + print_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + billed_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + due_date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + template_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + correction?: Prisma.IntFieldUpdateOperationsInput | number + ppa_charge?: Prisma.IntFieldUpdateOperationsInput | number + credit_code_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type invoiceOrderByRelevanceInput = { + fields: Prisma.invoiceOrderByRelevanceFieldEnum | Prisma.invoiceOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type invoiceCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + process_status?: Prisma.SortOrder + billing_status?: Prisma.SortOrder + refund_status?: Prisma.SortOrder + print_status?: Prisma.SortOrder + account_id?: Prisma.SortOrder + total_amt?: Prisma.SortOrder + billed_amt?: Prisma.SortOrder + due_date?: Prisma.SortOrder + notes?: Prisma.SortOrder + template_message?: Prisma.SortOrder + email_status?: Prisma.SortOrder + working_order?: Prisma.SortOrder + correction?: Prisma.SortOrder + ppa_charge?: Prisma.SortOrder + credit_code_id?: Prisma.SortOrder +} + +export type invoiceAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + process_status?: Prisma.SortOrder + billing_status?: Prisma.SortOrder + refund_status?: Prisma.SortOrder + print_status?: Prisma.SortOrder + account_id?: Prisma.SortOrder + total_amt?: Prisma.SortOrder + billed_amt?: Prisma.SortOrder + due_date?: Prisma.SortOrder + email_status?: Prisma.SortOrder + correction?: Prisma.SortOrder + ppa_charge?: Prisma.SortOrder + credit_code_id?: Prisma.SortOrder +} + +export type invoiceMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + process_status?: Prisma.SortOrder + billing_status?: Prisma.SortOrder + refund_status?: Prisma.SortOrder + print_status?: Prisma.SortOrder + account_id?: Prisma.SortOrder + total_amt?: Prisma.SortOrder + billed_amt?: Prisma.SortOrder + due_date?: Prisma.SortOrder + notes?: Prisma.SortOrder + template_message?: Prisma.SortOrder + email_status?: Prisma.SortOrder + working_order?: Prisma.SortOrder + correction?: Prisma.SortOrder + ppa_charge?: Prisma.SortOrder + credit_code_id?: Prisma.SortOrder +} + +export type invoiceMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + process_status?: Prisma.SortOrder + billing_status?: Prisma.SortOrder + refund_status?: Prisma.SortOrder + print_status?: Prisma.SortOrder + account_id?: Prisma.SortOrder + total_amt?: Prisma.SortOrder + billed_amt?: Prisma.SortOrder + due_date?: Prisma.SortOrder + notes?: Prisma.SortOrder + template_message?: Prisma.SortOrder + email_status?: Prisma.SortOrder + working_order?: Prisma.SortOrder + correction?: Prisma.SortOrder + ppa_charge?: Prisma.SortOrder + credit_code_id?: Prisma.SortOrder +} + +export type invoiceSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + process_status?: Prisma.SortOrder + billing_status?: Prisma.SortOrder + refund_status?: Prisma.SortOrder + print_status?: Prisma.SortOrder + account_id?: Prisma.SortOrder + total_amt?: Prisma.SortOrder + billed_amt?: Prisma.SortOrder + due_date?: Prisma.SortOrder + email_status?: Prisma.SortOrder + correction?: Prisma.SortOrder + ppa_charge?: Prisma.SortOrder + credit_code_id?: Prisma.SortOrder +} + + + +export type invoiceSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date_orig?: boolean + process_status?: boolean + billing_status?: boolean + refund_status?: boolean + print_status?: boolean + account_id?: boolean + total_amt?: boolean + billed_amt?: boolean + due_date?: boolean + notes?: boolean + template_message?: boolean + email_status?: boolean + working_order?: boolean + correction?: boolean + ppa_charge?: boolean + credit_code_id?: boolean +}, ExtArgs["result"]["invoice"]> + + + +export type invoiceSelectScalar = { + id?: boolean + date_orig?: boolean + process_status?: boolean + billing_status?: boolean + refund_status?: boolean + print_status?: boolean + account_id?: boolean + total_amt?: boolean + billed_amt?: boolean + due_date?: boolean + notes?: boolean + template_message?: boolean + email_status?: boolean + working_order?: boolean + correction?: boolean + ppa_charge?: boolean + credit_code_id?: boolean +} + +export type invoiceOmit = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "process_status" | "billing_status" | "refund_status" | "print_status" | "account_id" | "total_amt" | "billed_amt" | "due_date" | "notes" | "template_message" | "email_status" | "working_order" | "correction" | "ppa_charge" | "credit_code_id", ExtArgs["result"]["invoice"]> + +export type $invoicePayload = { + name: "invoice" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + date_orig: bigint | null + process_status: number | null + billing_status: number | null + refund_status: number | null + print_status: number | null + account_id: bigint | null + total_amt: number | null + billed_amt: number | null + due_date: bigint | null + notes: string | null + template_message: string | null + email_status: number | null + working_order: string | null + correction: number + ppa_charge: number + credit_code_id: number + }, ExtArgs["result"]["invoice"]> + composites: {} +} + +export type invoiceGetPayload = runtime.Types.Result.GetResult + +export type invoiceCountArgs = + Omit & { + select?: InvoiceCountAggregateInputType | true + } + +export interface invoiceDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['invoice'], meta: { name: 'invoice' } } + /** + * Find zero or one Invoice that matches the filter. + * @param {invoiceFindUniqueArgs} args - Arguments to find a Invoice + * @example + * // Get one Invoice + * const invoice = await prisma.invoice.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__invoiceClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Invoice that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {invoiceFindUniqueOrThrowArgs} args - Arguments to find a Invoice + * @example + * // Get one Invoice + * const invoice = await prisma.invoice.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__invoiceClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice 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 {invoiceFindFirstArgs} args - Arguments to find a Invoice + * @example + * // Get one Invoice + * const invoice = await prisma.invoice.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__invoiceClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice 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 {invoiceFindFirstOrThrowArgs} args - Arguments to find a Invoice + * @example + * // Get one Invoice + * const invoice = await prisma.invoice.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__invoiceClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Invoices 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 {invoiceFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Invoices + * const invoices = await prisma.invoice.findMany() + * + * // Get first 10 Invoices + * const invoices = await prisma.invoice.findMany({ take: 10 }) + * + * // Only select the `id` + * const invoiceWithIdOnly = await prisma.invoice.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Invoice. + * @param {invoiceCreateArgs} args - Arguments to create a Invoice. + * @example + * // Create one Invoice + * const Invoice = await prisma.invoice.create({ + * data: { + * // ... data to create a Invoice + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__invoiceClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Invoices. + * @param {invoiceCreateManyArgs} args - Arguments to create many Invoices. + * @example + * // Create many Invoices + * const invoice = await prisma.invoice.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Invoice. + * @param {invoiceDeleteArgs} args - Arguments to delete one Invoice. + * @example + * // Delete one Invoice + * const Invoice = await prisma.invoice.delete({ + * where: { + * // ... filter to delete one Invoice + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__invoiceClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Invoice. + * @param {invoiceUpdateArgs} args - Arguments to update one Invoice. + * @example + * // Update one Invoice + * const invoice = await prisma.invoice.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__invoiceClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Invoices. + * @param {invoiceDeleteManyArgs} args - Arguments to filter Invoices to delete. + * @example + * // Delete a few Invoices + * const { count } = await prisma.invoice.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Invoices. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoiceUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Invoices + * const invoice = await prisma.invoice.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Invoice. + * @param {invoiceUpsertArgs} args - Arguments to update or create a Invoice. + * @example + * // Update or create a Invoice + * const invoice = await prisma.invoice.upsert({ + * create: { + * // ... data to create a Invoice + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Invoice we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__invoiceClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Invoices. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoiceCountArgs} args - Arguments to filter Invoices to count. + * @example + * // Count the number of Invoices + * const count = await prisma.invoice.count({ + * where: { + * // ... the filter for the Invoices 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 Invoice. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {InvoiceAggregateArgs} 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 Invoice. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoiceGroupByArgs} 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 invoiceGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: invoiceGroupByArgs['orderBy'] } + : { orderBy?: invoiceGroupByArgs['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 ? GetInvoiceGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the invoice model + */ +readonly fields: invoiceFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for invoice. + * 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__invoiceClient 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 invoice model + */ +export interface invoiceFieldRefs { + readonly id: Prisma.FieldRef<"invoice", 'BigInt'> + readonly date_orig: Prisma.FieldRef<"invoice", 'BigInt'> + readonly process_status: Prisma.FieldRef<"invoice", 'Int'> + readonly billing_status: Prisma.FieldRef<"invoice", 'Int'> + readonly refund_status: Prisma.FieldRef<"invoice", 'Int'> + readonly print_status: Prisma.FieldRef<"invoice", 'Int'> + readonly account_id: Prisma.FieldRef<"invoice", 'BigInt'> + readonly total_amt: Prisma.FieldRef<"invoice", 'Float'> + readonly billed_amt: Prisma.FieldRef<"invoice", 'Float'> + readonly due_date: Prisma.FieldRef<"invoice", 'BigInt'> + readonly notes: Prisma.FieldRef<"invoice", 'String'> + readonly template_message: Prisma.FieldRef<"invoice", 'String'> + readonly email_status: Prisma.FieldRef<"invoice", 'Int'> + readonly working_order: Prisma.FieldRef<"invoice", 'String'> + readonly correction: Prisma.FieldRef<"invoice", 'Int'> + readonly ppa_charge: Prisma.FieldRef<"invoice", 'Int'> + readonly credit_code_id: Prisma.FieldRef<"invoice", 'Int'> +} + + +// Custom InputTypes +/** + * invoice findUnique + */ +export type invoiceFindUniqueArgs = { + /** + * Select specific fields to fetch from the invoice + */ + select?: Prisma.invoiceSelect | null + /** + * Omit specific fields from the invoice + */ + omit?: Prisma.invoiceOmit | null + /** + * Filter, which invoice to fetch. + */ + where: Prisma.invoiceWhereUniqueInput +} + +/** + * invoice findUniqueOrThrow + */ +export type invoiceFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice + */ + select?: Prisma.invoiceSelect | null + /** + * Omit specific fields from the invoice + */ + omit?: Prisma.invoiceOmit | null + /** + * Filter, which invoice to fetch. + */ + where: Prisma.invoiceWhereUniqueInput +} + +/** + * invoice findFirst + */ +export type invoiceFindFirstArgs = { + /** + * Select specific fields to fetch from the invoice + */ + select?: Prisma.invoiceSelect | null + /** + * Omit specific fields from the invoice + */ + omit?: Prisma.invoiceOmit | null + /** + * Filter, which invoice to fetch. + */ + where?: Prisma.invoiceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoices to fetch. + */ + orderBy?: Prisma.invoiceOrderByWithRelationInput | Prisma.invoiceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoices. + */ + cursor?: Prisma.invoiceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoices 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` invoices. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoices. + */ + distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[] +} + +/** + * invoice findFirstOrThrow + */ +export type invoiceFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice + */ + select?: Prisma.invoiceSelect | null + /** + * Omit specific fields from the invoice + */ + omit?: Prisma.invoiceOmit | null + /** + * Filter, which invoice to fetch. + */ + where?: Prisma.invoiceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoices to fetch. + */ + orderBy?: Prisma.invoiceOrderByWithRelationInput | Prisma.invoiceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoices. + */ + cursor?: Prisma.invoiceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoices 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` invoices. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoices. + */ + distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[] +} + +/** + * invoice findMany + */ +export type invoiceFindManyArgs = { + /** + * Select specific fields to fetch from the invoice + */ + select?: Prisma.invoiceSelect | null + /** + * Omit specific fields from the invoice + */ + omit?: Prisma.invoiceOmit | null + /** + * Filter, which invoices to fetch. + */ + where?: Prisma.invoiceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoices to fetch. + */ + orderBy?: Prisma.invoiceOrderByWithRelationInput | Prisma.invoiceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing invoices. + */ + cursor?: Prisma.invoiceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoices 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` invoices. + */ + skip?: number + distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[] +} + +/** + * invoice create + */ +export type invoiceCreateArgs = { + /** + * Select specific fields to fetch from the invoice + */ + select?: Prisma.invoiceSelect | null + /** + * Omit specific fields from the invoice + */ + omit?: Prisma.invoiceOmit | null + /** + * The data needed to create a invoice. + */ + data?: Prisma.XOR +} + +/** + * invoice createMany + */ +export type invoiceCreateManyArgs = { + /** + * The data used to create many invoices. + */ + data: Prisma.invoiceCreateManyInput | Prisma.invoiceCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * invoice update + */ +export type invoiceUpdateArgs = { + /** + * Select specific fields to fetch from the invoice + */ + select?: Prisma.invoiceSelect | null + /** + * Omit specific fields from the invoice + */ + omit?: Prisma.invoiceOmit | null + /** + * The data needed to update a invoice. + */ + data: Prisma.XOR + /** + * Choose, which invoice to update. + */ + where: Prisma.invoiceWhereUniqueInput +} + +/** + * invoice updateMany + */ +export type invoiceUpdateManyArgs = { + /** + * The data used to update invoices. + */ + data: Prisma.XOR + /** + * Filter which invoices to update + */ + where?: Prisma.invoiceWhereInput + /** + * Limit how many invoices to update. + */ + limit?: number +} + +/** + * invoice upsert + */ +export type invoiceUpsertArgs = { + /** + * Select specific fields to fetch from the invoice + */ + select?: Prisma.invoiceSelect | null + /** + * Omit specific fields from the invoice + */ + omit?: Prisma.invoiceOmit | null + /** + * The filter to search for the invoice to update in case it exists. + */ + where: Prisma.invoiceWhereUniqueInput + /** + * In case the invoice found by the `where` argument doesn't exist, create a new invoice with this data. + */ + create: Prisma.XOR + /** + * In case the invoice was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * invoice delete + */ +export type invoiceDeleteArgs = { + /** + * Select specific fields to fetch from the invoice + */ + select?: Prisma.invoiceSelect | null + /** + * Omit specific fields from the invoice + */ + omit?: Prisma.invoiceOmit | null + /** + * Filter which invoice to delete. + */ + where: Prisma.invoiceWhereUniqueInput +} + +/** + * invoice deleteMany + */ +export type invoiceDeleteManyArgs = { + /** + * Filter which invoices to delete + */ + where?: Prisma.invoiceWhereInput + /** + * Limit how many invoices to delete. + */ + limit?: number +} + +/** + * invoice without action + */ +export type invoiceDefaultArgs = { + /** + * Select specific fields to fetch from the invoice + */ + select?: Prisma.invoiceSelect | null + /** + * Omit specific fields from the invoice + */ + omit?: Prisma.invoiceOmit | null +} diff --git a/prisma/generated/mariadb/models/invoice_bk.ts b/prisma/generated/mariadb/models/invoice_bk.ts new file mode 100644 index 0000000..bc94f54 --- /dev/null +++ b/prisma/generated/mariadb/models/invoice_bk.ts @@ -0,0 +1,1472 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `invoice_bk` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model invoice_bk + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type invoice_bkModel = runtime.Types.Result.DefaultSelection + +export type AggregateInvoice_bk = { + _count: Invoice_bkCountAggregateOutputType | null + _avg: Invoice_bkAvgAggregateOutputType | null + _sum: Invoice_bkSumAggregateOutputType | null + _min: Invoice_bkMinAggregateOutputType | null + _max: Invoice_bkMaxAggregateOutputType | null +} + +export type Invoice_bkAvgAggregateOutputType = { + id: number | null + date_orig: number | null + process_status: number | null + billing_status: number | null + refund_status: number | null + print_status: number | null + account_id: number | null + total_amt: number | null + billed_amt: number | null + due_date: number | null + email_status: number | null + correction: number | null + ppa_charge: number | null + credit_code_id: number | null +} + +export type Invoice_bkSumAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + process_status: number | null + billing_status: number | null + refund_status: number | null + print_status: number | null + account_id: bigint | null + total_amt: number | null + billed_amt: number | null + due_date: bigint | null + email_status: number | null + correction: number | null + ppa_charge: number | null + credit_code_id: number | null +} + +export type Invoice_bkMinAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + process_status: number | null + billing_status: number | null + refund_status: number | null + print_status: number | null + account_id: bigint | null + total_amt: number | null + billed_amt: number | null + due_date: bigint | null + notes: string | null + template_message: string | null + email_status: number | null + working_order: string | null + correction: number | null + ppa_charge: number | null + credit_code_id: number | null +} + +export type Invoice_bkMaxAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + process_status: number | null + billing_status: number | null + refund_status: number | null + print_status: number | null + account_id: bigint | null + total_amt: number | null + billed_amt: number | null + due_date: bigint | null + notes: string | null + template_message: string | null + email_status: number | null + working_order: string | null + correction: number | null + ppa_charge: number | null + credit_code_id: number | null +} + +export type Invoice_bkCountAggregateOutputType = { + id: number + date_orig: number + process_status: number + billing_status: number + refund_status: number + print_status: number + account_id: number + total_amt: number + billed_amt: number + due_date: number + notes: number + template_message: number + email_status: number + working_order: number + correction: number + ppa_charge: number + credit_code_id: number + _all: number +} + + +export type Invoice_bkAvgAggregateInputType = { + id?: true + date_orig?: true + process_status?: true + billing_status?: true + refund_status?: true + print_status?: true + account_id?: true + total_amt?: true + billed_amt?: true + due_date?: true + email_status?: true + correction?: true + ppa_charge?: true + credit_code_id?: true +} + +export type Invoice_bkSumAggregateInputType = { + id?: true + date_orig?: true + process_status?: true + billing_status?: true + refund_status?: true + print_status?: true + account_id?: true + total_amt?: true + billed_amt?: true + due_date?: true + email_status?: true + correction?: true + ppa_charge?: true + credit_code_id?: true +} + +export type Invoice_bkMinAggregateInputType = { + id?: true + date_orig?: true + process_status?: true + billing_status?: true + refund_status?: true + print_status?: true + account_id?: true + total_amt?: true + billed_amt?: true + due_date?: true + notes?: true + template_message?: true + email_status?: true + working_order?: true + correction?: true + ppa_charge?: true + credit_code_id?: true +} + +export type Invoice_bkMaxAggregateInputType = { + id?: true + date_orig?: true + process_status?: true + billing_status?: true + refund_status?: true + print_status?: true + account_id?: true + total_amt?: true + billed_amt?: true + due_date?: true + notes?: true + template_message?: true + email_status?: true + working_order?: true + correction?: true + ppa_charge?: true + credit_code_id?: true +} + +export type Invoice_bkCountAggregateInputType = { + id?: true + date_orig?: true + process_status?: true + billing_status?: true + refund_status?: true + print_status?: true + account_id?: true + total_amt?: true + billed_amt?: true + due_date?: true + notes?: true + template_message?: true + email_status?: true + working_order?: true + correction?: true + ppa_charge?: true + credit_code_id?: true + _all?: true +} + +export type Invoice_bkAggregateArgs = { + /** + * Filter which invoice_bk to aggregate. + */ + where?: Prisma.invoice_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_bks to fetch. + */ + orderBy?: Prisma.invoice_bkOrderByWithRelationInput | Prisma.invoice_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.invoice_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_bks 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` invoice_bks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned invoice_bks + **/ + _count?: true | Invoice_bkCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Invoice_bkAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Invoice_bkSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Invoice_bkMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Invoice_bkMaxAggregateInputType +} + +export type GetInvoice_bkAggregateType = { + [P in keyof T & keyof AggregateInvoice_bk]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type invoice_bkGroupByArgs = { + where?: Prisma.invoice_bkWhereInput + orderBy?: Prisma.invoice_bkOrderByWithAggregationInput | Prisma.invoice_bkOrderByWithAggregationInput[] + by: Prisma.Invoice_bkScalarFieldEnum[] | Prisma.Invoice_bkScalarFieldEnum + having?: Prisma.invoice_bkScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Invoice_bkCountAggregateInputType | true + _avg?: Invoice_bkAvgAggregateInputType + _sum?: Invoice_bkSumAggregateInputType + _min?: Invoice_bkMinAggregateInputType + _max?: Invoice_bkMaxAggregateInputType +} + +export type Invoice_bkGroupByOutputType = { + id: bigint + date_orig: bigint | null + process_status: number | null + billing_status: number | null + refund_status: number | null + print_status: number | null + account_id: bigint | null + total_amt: number | null + billed_amt: number | null + due_date: bigint | null + notes: string | null + template_message: string | null + email_status: number | null + working_order: string | null + correction: number + ppa_charge: number + credit_code_id: number + _count: Invoice_bkCountAggregateOutputType | null + _avg: Invoice_bkAvgAggregateOutputType | null + _sum: Invoice_bkSumAggregateOutputType | null + _min: Invoice_bkMinAggregateOutputType | null + _max: Invoice_bkMaxAggregateOutputType | null +} + +type GetInvoice_bkGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Invoice_bkGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type invoice_bkWhereInput = { + AND?: Prisma.invoice_bkWhereInput | Prisma.invoice_bkWhereInput[] + OR?: Prisma.invoice_bkWhereInput[] + NOT?: Prisma.invoice_bkWhereInput | Prisma.invoice_bkWhereInput[] + id?: Prisma.BigIntFilter<"invoice_bk"> | bigint | number + date_orig?: Prisma.BigIntNullableFilter<"invoice_bk"> | bigint | number | null + process_status?: Prisma.IntNullableFilter<"invoice_bk"> | number | null + billing_status?: Prisma.IntNullableFilter<"invoice_bk"> | number | null + refund_status?: Prisma.IntNullableFilter<"invoice_bk"> | number | null + print_status?: Prisma.IntNullableFilter<"invoice_bk"> | number | null + account_id?: Prisma.BigIntNullableFilter<"invoice_bk"> | bigint | number | null + total_amt?: Prisma.FloatNullableFilter<"invoice_bk"> | number | null + billed_amt?: Prisma.FloatNullableFilter<"invoice_bk"> | number | null + due_date?: Prisma.BigIntNullableFilter<"invoice_bk"> | bigint | number | null + notes?: Prisma.StringNullableFilter<"invoice_bk"> | string | null + template_message?: Prisma.StringNullableFilter<"invoice_bk"> | string | null + email_status?: Prisma.IntNullableFilter<"invoice_bk"> | number | null + working_order?: Prisma.StringNullableFilter<"invoice_bk"> | string | null + correction?: Prisma.IntFilter<"invoice_bk"> | number + ppa_charge?: Prisma.IntFilter<"invoice_bk"> | number + credit_code_id?: Prisma.IntFilter<"invoice_bk"> | number +} + +export type invoice_bkOrderByWithRelationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + process_status?: Prisma.SortOrderInput | Prisma.SortOrder + billing_status?: Prisma.SortOrderInput | Prisma.SortOrder + refund_status?: Prisma.SortOrderInput | Prisma.SortOrder + print_status?: Prisma.SortOrderInput | Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + total_amt?: Prisma.SortOrderInput | Prisma.SortOrder + billed_amt?: Prisma.SortOrderInput | Prisma.SortOrder + due_date?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + template_message?: Prisma.SortOrderInput | Prisma.SortOrder + email_status?: Prisma.SortOrderInput | Prisma.SortOrder + working_order?: Prisma.SortOrderInput | Prisma.SortOrder + correction?: Prisma.SortOrder + ppa_charge?: Prisma.SortOrder + credit_code_id?: Prisma.SortOrder + _relevance?: Prisma.invoice_bkOrderByRelevanceInput +} + +export type invoice_bkWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.invoice_bkWhereInput | Prisma.invoice_bkWhereInput[] + OR?: Prisma.invoice_bkWhereInput[] + NOT?: Prisma.invoice_bkWhereInput | Prisma.invoice_bkWhereInput[] + date_orig?: Prisma.BigIntNullableFilter<"invoice_bk"> | bigint | number | null + process_status?: Prisma.IntNullableFilter<"invoice_bk"> | number | null + billing_status?: Prisma.IntNullableFilter<"invoice_bk"> | number | null + refund_status?: Prisma.IntNullableFilter<"invoice_bk"> | number | null + print_status?: Prisma.IntNullableFilter<"invoice_bk"> | number | null + account_id?: Prisma.BigIntNullableFilter<"invoice_bk"> | bigint | number | null + total_amt?: Prisma.FloatNullableFilter<"invoice_bk"> | number | null + billed_amt?: Prisma.FloatNullableFilter<"invoice_bk"> | number | null + due_date?: Prisma.BigIntNullableFilter<"invoice_bk"> | bigint | number | null + notes?: Prisma.StringNullableFilter<"invoice_bk"> | string | null + template_message?: Prisma.StringNullableFilter<"invoice_bk"> | string | null + email_status?: Prisma.IntNullableFilter<"invoice_bk"> | number | null + working_order?: Prisma.StringNullableFilter<"invoice_bk"> | string | null + correction?: Prisma.IntFilter<"invoice_bk"> | number + ppa_charge?: Prisma.IntFilter<"invoice_bk"> | number + credit_code_id?: Prisma.IntFilter<"invoice_bk"> | number +}, "id"> + +export type invoice_bkOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + process_status?: Prisma.SortOrderInput | Prisma.SortOrder + billing_status?: Prisma.SortOrderInput | Prisma.SortOrder + refund_status?: Prisma.SortOrderInput | Prisma.SortOrder + print_status?: Prisma.SortOrderInput | Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + total_amt?: Prisma.SortOrderInput | Prisma.SortOrder + billed_amt?: Prisma.SortOrderInput | Prisma.SortOrder + due_date?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + template_message?: Prisma.SortOrderInput | Prisma.SortOrder + email_status?: Prisma.SortOrderInput | Prisma.SortOrder + working_order?: Prisma.SortOrderInput | Prisma.SortOrder + correction?: Prisma.SortOrder + ppa_charge?: Prisma.SortOrder + credit_code_id?: Prisma.SortOrder + _count?: Prisma.invoice_bkCountOrderByAggregateInput + _avg?: Prisma.invoice_bkAvgOrderByAggregateInput + _max?: Prisma.invoice_bkMaxOrderByAggregateInput + _min?: Prisma.invoice_bkMinOrderByAggregateInput + _sum?: Prisma.invoice_bkSumOrderByAggregateInput +} + +export type invoice_bkScalarWhereWithAggregatesInput = { + AND?: Prisma.invoice_bkScalarWhereWithAggregatesInput | Prisma.invoice_bkScalarWhereWithAggregatesInput[] + OR?: Prisma.invoice_bkScalarWhereWithAggregatesInput[] + NOT?: Prisma.invoice_bkScalarWhereWithAggregatesInput | Prisma.invoice_bkScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"invoice_bk"> | bigint | number + date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_bk"> | bigint | number | null + process_status?: Prisma.IntNullableWithAggregatesFilter<"invoice_bk"> | number | null + billing_status?: Prisma.IntNullableWithAggregatesFilter<"invoice_bk"> | number | null + refund_status?: Prisma.IntNullableWithAggregatesFilter<"invoice_bk"> | number | null + print_status?: Prisma.IntNullableWithAggregatesFilter<"invoice_bk"> | number | null + account_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_bk"> | bigint | number | null + total_amt?: Prisma.FloatNullableWithAggregatesFilter<"invoice_bk"> | number | null + billed_amt?: Prisma.FloatNullableWithAggregatesFilter<"invoice_bk"> | number | null + due_date?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_bk"> | bigint | number | null + notes?: Prisma.StringNullableWithAggregatesFilter<"invoice_bk"> | string | null + template_message?: Prisma.StringNullableWithAggregatesFilter<"invoice_bk"> | string | null + email_status?: Prisma.IntNullableWithAggregatesFilter<"invoice_bk"> | number | null + working_order?: Prisma.StringNullableWithAggregatesFilter<"invoice_bk"> | string | null + correction?: Prisma.IntWithAggregatesFilter<"invoice_bk"> | number + ppa_charge?: Prisma.IntWithAggregatesFilter<"invoice_bk"> | number + credit_code_id?: Prisma.IntWithAggregatesFilter<"invoice_bk"> | number +} + +export type invoice_bkCreateInput = { + id?: bigint | number + date_orig?: bigint | number | null + process_status?: number | null + billing_status?: number | null + refund_status?: number | null + print_status?: number | null + account_id?: bigint | number | null + total_amt?: number | null + billed_amt?: number | null + due_date?: bigint | number | null + notes?: string | null + template_message?: string | null + email_status?: number | null + working_order?: string | null + correction?: number + ppa_charge?: number + credit_code_id?: number +} + +export type invoice_bkUncheckedCreateInput = { + id?: bigint | number + date_orig?: bigint | number | null + process_status?: number | null + billing_status?: number | null + refund_status?: number | null + print_status?: number | null + account_id?: bigint | number | null + total_amt?: number | null + billed_amt?: number | null + due_date?: bigint | number | null + notes?: string | null + template_message?: string | null + email_status?: number | null + working_order?: string | null + correction?: number + ppa_charge?: number + credit_code_id?: number +} + +export type invoice_bkUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + process_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + billing_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + refund_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + print_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + billed_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + due_date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + template_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + correction?: Prisma.IntFieldUpdateOperationsInput | number + ppa_charge?: Prisma.IntFieldUpdateOperationsInput | number + credit_code_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type invoice_bkUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + process_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + billing_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + refund_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + print_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + billed_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + due_date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + template_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + correction?: Prisma.IntFieldUpdateOperationsInput | number + ppa_charge?: Prisma.IntFieldUpdateOperationsInput | number + credit_code_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type invoice_bkCreateManyInput = { + id?: bigint | number + date_orig?: bigint | number | null + process_status?: number | null + billing_status?: number | null + refund_status?: number | null + print_status?: number | null + account_id?: bigint | number | null + total_amt?: number | null + billed_amt?: number | null + due_date?: bigint | number | null + notes?: string | null + template_message?: string | null + email_status?: number | null + working_order?: string | null + correction?: number + ppa_charge?: number + credit_code_id?: number +} + +export type invoice_bkUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + process_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + billing_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + refund_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + print_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + billed_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + due_date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + template_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + correction?: Prisma.IntFieldUpdateOperationsInput | number + ppa_charge?: Prisma.IntFieldUpdateOperationsInput | number + credit_code_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type invoice_bkUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + process_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + billing_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + refund_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + print_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + total_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + billed_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + due_date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + template_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + correction?: Prisma.IntFieldUpdateOperationsInput | number + ppa_charge?: Prisma.IntFieldUpdateOperationsInput | number + credit_code_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type invoice_bkOrderByRelevanceInput = { + fields: Prisma.invoice_bkOrderByRelevanceFieldEnum | Prisma.invoice_bkOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type invoice_bkCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + process_status?: Prisma.SortOrder + billing_status?: Prisma.SortOrder + refund_status?: Prisma.SortOrder + print_status?: Prisma.SortOrder + account_id?: Prisma.SortOrder + total_amt?: Prisma.SortOrder + billed_amt?: Prisma.SortOrder + due_date?: Prisma.SortOrder + notes?: Prisma.SortOrder + template_message?: Prisma.SortOrder + email_status?: Prisma.SortOrder + working_order?: Prisma.SortOrder + correction?: Prisma.SortOrder + ppa_charge?: Prisma.SortOrder + credit_code_id?: Prisma.SortOrder +} + +export type invoice_bkAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + process_status?: Prisma.SortOrder + billing_status?: Prisma.SortOrder + refund_status?: Prisma.SortOrder + print_status?: Prisma.SortOrder + account_id?: Prisma.SortOrder + total_amt?: Prisma.SortOrder + billed_amt?: Prisma.SortOrder + due_date?: Prisma.SortOrder + email_status?: Prisma.SortOrder + correction?: Prisma.SortOrder + ppa_charge?: Prisma.SortOrder + credit_code_id?: Prisma.SortOrder +} + +export type invoice_bkMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + process_status?: Prisma.SortOrder + billing_status?: Prisma.SortOrder + refund_status?: Prisma.SortOrder + print_status?: Prisma.SortOrder + account_id?: Prisma.SortOrder + total_amt?: Prisma.SortOrder + billed_amt?: Prisma.SortOrder + due_date?: Prisma.SortOrder + notes?: Prisma.SortOrder + template_message?: Prisma.SortOrder + email_status?: Prisma.SortOrder + working_order?: Prisma.SortOrder + correction?: Prisma.SortOrder + ppa_charge?: Prisma.SortOrder + credit_code_id?: Prisma.SortOrder +} + +export type invoice_bkMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + process_status?: Prisma.SortOrder + billing_status?: Prisma.SortOrder + refund_status?: Prisma.SortOrder + print_status?: Prisma.SortOrder + account_id?: Prisma.SortOrder + total_amt?: Prisma.SortOrder + billed_amt?: Prisma.SortOrder + due_date?: Prisma.SortOrder + notes?: Prisma.SortOrder + template_message?: Prisma.SortOrder + email_status?: Prisma.SortOrder + working_order?: Prisma.SortOrder + correction?: Prisma.SortOrder + ppa_charge?: Prisma.SortOrder + credit_code_id?: Prisma.SortOrder +} + +export type invoice_bkSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + process_status?: Prisma.SortOrder + billing_status?: Prisma.SortOrder + refund_status?: Prisma.SortOrder + print_status?: Prisma.SortOrder + account_id?: Prisma.SortOrder + total_amt?: Prisma.SortOrder + billed_amt?: Prisma.SortOrder + due_date?: Prisma.SortOrder + email_status?: Prisma.SortOrder + correction?: Prisma.SortOrder + ppa_charge?: Prisma.SortOrder + credit_code_id?: Prisma.SortOrder +} + + + +export type invoice_bkSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date_orig?: boolean + process_status?: boolean + billing_status?: boolean + refund_status?: boolean + print_status?: boolean + account_id?: boolean + total_amt?: boolean + billed_amt?: boolean + due_date?: boolean + notes?: boolean + template_message?: boolean + email_status?: boolean + working_order?: boolean + correction?: boolean + ppa_charge?: boolean + credit_code_id?: boolean +}, ExtArgs["result"]["invoice_bk"]> + + + +export type invoice_bkSelectScalar = { + id?: boolean + date_orig?: boolean + process_status?: boolean + billing_status?: boolean + refund_status?: boolean + print_status?: boolean + account_id?: boolean + total_amt?: boolean + billed_amt?: boolean + due_date?: boolean + notes?: boolean + template_message?: boolean + email_status?: boolean + working_order?: boolean + correction?: boolean + ppa_charge?: boolean + credit_code_id?: boolean +} + +export type invoice_bkOmit = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "process_status" | "billing_status" | "refund_status" | "print_status" | "account_id" | "total_amt" | "billed_amt" | "due_date" | "notes" | "template_message" | "email_status" | "working_order" | "correction" | "ppa_charge" | "credit_code_id", ExtArgs["result"]["invoice_bk"]> + +export type $invoice_bkPayload = { + name: "invoice_bk" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + date_orig: bigint | null + process_status: number | null + billing_status: number | null + refund_status: number | null + print_status: number | null + account_id: bigint | null + total_amt: number | null + billed_amt: number | null + due_date: bigint | null + notes: string | null + template_message: string | null + email_status: number | null + working_order: string | null + correction: number + ppa_charge: number + credit_code_id: number + }, ExtArgs["result"]["invoice_bk"]> + composites: {} +} + +export type invoice_bkGetPayload = runtime.Types.Result.GetResult + +export type invoice_bkCountArgs = + Omit & { + select?: Invoice_bkCountAggregateInputType | true + } + +export interface invoice_bkDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['invoice_bk'], meta: { name: 'invoice_bk' } } + /** + * Find zero or one Invoice_bk that matches the filter. + * @param {invoice_bkFindUniqueArgs} args - Arguments to find a Invoice_bk + * @example + * // Get one Invoice_bk + * const invoice_bk = await prisma.invoice_bk.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_bkClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Invoice_bk that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {invoice_bkFindUniqueOrThrowArgs} args - Arguments to find a Invoice_bk + * @example + * // Get one Invoice_bk + * const invoice_bk = await prisma.invoice_bk.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_bkClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice_bk 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 {invoice_bkFindFirstArgs} args - Arguments to find a Invoice_bk + * @example + * // Get one Invoice_bk + * const invoice_bk = await prisma.invoice_bk.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_bkClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice_bk 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 {invoice_bkFindFirstOrThrowArgs} args - Arguments to find a Invoice_bk + * @example + * // Get one Invoice_bk + * const invoice_bk = await prisma.invoice_bk.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_bkClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Invoice_bks 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 {invoice_bkFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Invoice_bks + * const invoice_bks = await prisma.invoice_bk.findMany() + * + * // Get first 10 Invoice_bks + * const invoice_bks = await prisma.invoice_bk.findMany({ take: 10 }) + * + * // Only select the `id` + * const invoice_bkWithIdOnly = await prisma.invoice_bk.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Invoice_bk. + * @param {invoice_bkCreateArgs} args - Arguments to create a Invoice_bk. + * @example + * // Create one Invoice_bk + * const Invoice_bk = await prisma.invoice_bk.create({ + * data: { + * // ... data to create a Invoice_bk + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_bkClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Invoice_bks. + * @param {invoice_bkCreateManyArgs} args - Arguments to create many Invoice_bks. + * @example + * // Create many Invoice_bks + * const invoice_bk = await prisma.invoice_bk.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Invoice_bk. + * @param {invoice_bkDeleteArgs} args - Arguments to delete one Invoice_bk. + * @example + * // Delete one Invoice_bk + * const Invoice_bk = await prisma.invoice_bk.delete({ + * where: { + * // ... filter to delete one Invoice_bk + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_bkClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Invoice_bk. + * @param {invoice_bkUpdateArgs} args - Arguments to update one Invoice_bk. + * @example + * // Update one Invoice_bk + * const invoice_bk = await prisma.invoice_bk.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_bkClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Invoice_bks. + * @param {invoice_bkDeleteManyArgs} args - Arguments to filter Invoice_bks to delete. + * @example + * // Delete a few Invoice_bks + * const { count } = await prisma.invoice_bk.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Invoice_bks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_bkUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Invoice_bks + * const invoice_bk = await prisma.invoice_bk.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Invoice_bk. + * @param {invoice_bkUpsertArgs} args - Arguments to update or create a Invoice_bk. + * @example + * // Update or create a Invoice_bk + * const invoice_bk = await prisma.invoice_bk.upsert({ + * create: { + * // ... data to create a Invoice_bk + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Invoice_bk we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_bkClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Invoice_bks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_bkCountArgs} args - Arguments to filter Invoice_bks to count. + * @example + * // Count the number of Invoice_bks + * const count = await prisma.invoice_bk.count({ + * where: { + * // ... the filter for the Invoice_bks 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 Invoice_bk. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Invoice_bkAggregateArgs} 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 Invoice_bk. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_bkGroupByArgs} 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 invoice_bkGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: invoice_bkGroupByArgs['orderBy'] } + : { orderBy?: invoice_bkGroupByArgs['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 ? GetInvoice_bkGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the invoice_bk model + */ +readonly fields: invoice_bkFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for invoice_bk. + * 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__invoice_bkClient 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 invoice_bk model + */ +export interface invoice_bkFieldRefs { + readonly id: Prisma.FieldRef<"invoice_bk", 'BigInt'> + readonly date_orig: Prisma.FieldRef<"invoice_bk", 'BigInt'> + readonly process_status: Prisma.FieldRef<"invoice_bk", 'Int'> + readonly billing_status: Prisma.FieldRef<"invoice_bk", 'Int'> + readonly refund_status: Prisma.FieldRef<"invoice_bk", 'Int'> + readonly print_status: Prisma.FieldRef<"invoice_bk", 'Int'> + readonly account_id: Prisma.FieldRef<"invoice_bk", 'BigInt'> + readonly total_amt: Prisma.FieldRef<"invoice_bk", 'Float'> + readonly billed_amt: Prisma.FieldRef<"invoice_bk", 'Float'> + readonly due_date: Prisma.FieldRef<"invoice_bk", 'BigInt'> + readonly notes: Prisma.FieldRef<"invoice_bk", 'String'> + readonly template_message: Prisma.FieldRef<"invoice_bk", 'String'> + readonly email_status: Prisma.FieldRef<"invoice_bk", 'Int'> + readonly working_order: Prisma.FieldRef<"invoice_bk", 'String'> + readonly correction: Prisma.FieldRef<"invoice_bk", 'Int'> + readonly ppa_charge: Prisma.FieldRef<"invoice_bk", 'Int'> + readonly credit_code_id: Prisma.FieldRef<"invoice_bk", 'Int'> +} + + +// Custom InputTypes +/** + * invoice_bk findUnique + */ +export type invoice_bkFindUniqueArgs = { + /** + * Select specific fields to fetch from the invoice_bk + */ + select?: Prisma.invoice_bkSelect | null + /** + * Omit specific fields from the invoice_bk + */ + omit?: Prisma.invoice_bkOmit | null + /** + * Filter, which invoice_bk to fetch. + */ + where: Prisma.invoice_bkWhereUniqueInput +} + +/** + * invoice_bk findUniqueOrThrow + */ +export type invoice_bkFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice_bk + */ + select?: Prisma.invoice_bkSelect | null + /** + * Omit specific fields from the invoice_bk + */ + omit?: Prisma.invoice_bkOmit | null + /** + * Filter, which invoice_bk to fetch. + */ + where: Prisma.invoice_bkWhereUniqueInput +} + +/** + * invoice_bk findFirst + */ +export type invoice_bkFindFirstArgs = { + /** + * Select specific fields to fetch from the invoice_bk + */ + select?: Prisma.invoice_bkSelect | null + /** + * Omit specific fields from the invoice_bk + */ + omit?: Prisma.invoice_bkOmit | null + /** + * Filter, which invoice_bk to fetch. + */ + where?: Prisma.invoice_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_bks to fetch. + */ + orderBy?: Prisma.invoice_bkOrderByWithRelationInput | Prisma.invoice_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoice_bks. + */ + cursor?: Prisma.invoice_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_bks 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` invoice_bks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoice_bks. + */ + distinct?: Prisma.Invoice_bkScalarFieldEnum | Prisma.Invoice_bkScalarFieldEnum[] +} + +/** + * invoice_bk findFirstOrThrow + */ +export type invoice_bkFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice_bk + */ + select?: Prisma.invoice_bkSelect | null + /** + * Omit specific fields from the invoice_bk + */ + omit?: Prisma.invoice_bkOmit | null + /** + * Filter, which invoice_bk to fetch. + */ + where?: Prisma.invoice_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_bks to fetch. + */ + orderBy?: Prisma.invoice_bkOrderByWithRelationInput | Prisma.invoice_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoice_bks. + */ + cursor?: Prisma.invoice_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_bks 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` invoice_bks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoice_bks. + */ + distinct?: Prisma.Invoice_bkScalarFieldEnum | Prisma.Invoice_bkScalarFieldEnum[] +} + +/** + * invoice_bk findMany + */ +export type invoice_bkFindManyArgs = { + /** + * Select specific fields to fetch from the invoice_bk + */ + select?: Prisma.invoice_bkSelect | null + /** + * Omit specific fields from the invoice_bk + */ + omit?: Prisma.invoice_bkOmit | null + /** + * Filter, which invoice_bks to fetch. + */ + where?: Prisma.invoice_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_bks to fetch. + */ + orderBy?: Prisma.invoice_bkOrderByWithRelationInput | Prisma.invoice_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing invoice_bks. + */ + cursor?: Prisma.invoice_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_bks 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` invoice_bks. + */ + skip?: number + distinct?: Prisma.Invoice_bkScalarFieldEnum | Prisma.Invoice_bkScalarFieldEnum[] +} + +/** + * invoice_bk create + */ +export type invoice_bkCreateArgs = { + /** + * Select specific fields to fetch from the invoice_bk + */ + select?: Prisma.invoice_bkSelect | null + /** + * Omit specific fields from the invoice_bk + */ + omit?: Prisma.invoice_bkOmit | null + /** + * The data needed to create a invoice_bk. + */ + data?: Prisma.XOR +} + +/** + * invoice_bk createMany + */ +export type invoice_bkCreateManyArgs = { + /** + * The data used to create many invoice_bks. + */ + data: Prisma.invoice_bkCreateManyInput | Prisma.invoice_bkCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * invoice_bk update + */ +export type invoice_bkUpdateArgs = { + /** + * Select specific fields to fetch from the invoice_bk + */ + select?: Prisma.invoice_bkSelect | null + /** + * Omit specific fields from the invoice_bk + */ + omit?: Prisma.invoice_bkOmit | null + /** + * The data needed to update a invoice_bk. + */ + data: Prisma.XOR + /** + * Choose, which invoice_bk to update. + */ + where: Prisma.invoice_bkWhereUniqueInput +} + +/** + * invoice_bk updateMany + */ +export type invoice_bkUpdateManyArgs = { + /** + * The data used to update invoice_bks. + */ + data: Prisma.XOR + /** + * Filter which invoice_bks to update + */ + where?: Prisma.invoice_bkWhereInput + /** + * Limit how many invoice_bks to update. + */ + limit?: number +} + +/** + * invoice_bk upsert + */ +export type invoice_bkUpsertArgs = { + /** + * Select specific fields to fetch from the invoice_bk + */ + select?: Prisma.invoice_bkSelect | null + /** + * Omit specific fields from the invoice_bk + */ + omit?: Prisma.invoice_bkOmit | null + /** + * The filter to search for the invoice_bk to update in case it exists. + */ + where: Prisma.invoice_bkWhereUniqueInput + /** + * In case the invoice_bk found by the `where` argument doesn't exist, create a new invoice_bk with this data. + */ + create: Prisma.XOR + /** + * In case the invoice_bk was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * invoice_bk delete + */ +export type invoice_bkDeleteArgs = { + /** + * Select specific fields to fetch from the invoice_bk + */ + select?: Prisma.invoice_bkSelect | null + /** + * Omit specific fields from the invoice_bk + */ + omit?: Prisma.invoice_bkOmit | null + /** + * Filter which invoice_bk to delete. + */ + where: Prisma.invoice_bkWhereUniqueInput +} + +/** + * invoice_bk deleteMany + */ +export type invoice_bkDeleteManyArgs = { + /** + * Filter which invoice_bks to delete + */ + where?: Prisma.invoice_bkWhereInput + /** + * Limit how many invoice_bks to delete. + */ + limit?: number +} + +/** + * invoice_bk without action + */ +export type invoice_bkDefaultArgs = { + /** + * Select specific fields to fetch from the invoice_bk + */ + select?: Prisma.invoice_bkSelect | null + /** + * Omit specific fields from the invoice_bk + */ + omit?: Prisma.invoice_bkOmit | null +} diff --git a/prisma/generated/mariadb/models/invoice_call.ts b/prisma/generated/mariadb/models/invoice_call.ts new file mode 100644 index 0000000..bf170bb --- /dev/null +++ b/prisma/generated/mariadb/models/invoice_call.ts @@ -0,0 +1,1065 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `invoice_call` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model invoice_call + * + */ +export type invoice_callModel = runtime.Types.Result.DefaultSelection + +export type AggregateInvoice_call = { + _count: Invoice_callCountAggregateOutputType | null + _avg: Invoice_callAvgAggregateOutputType | null + _sum: Invoice_callSumAggregateOutputType | null + _min: Invoice_callMinAggregateOutputType | null + _max: Invoice_callMaxAggregateOutputType | null +} + +export type Invoice_callAvgAggregateOutputType = { + id: number | null + date: number | null + amount: number | null +} + +export type Invoice_callSumAggregateOutputType = { + id: number | null + date: bigint | null + amount: number | null +} + +export type Invoice_callMinAggregateOutputType = { + id: number | null + date: bigint | null + number: string | null + amount: number | null +} + +export type Invoice_callMaxAggregateOutputType = { + id: number | null + date: bigint | null + number: string | null + amount: number | null +} + +export type Invoice_callCountAggregateOutputType = { + id: number + date: number + number: number + amount: number + _all: number +} + + +export type Invoice_callAvgAggregateInputType = { + id?: true + date?: true + amount?: true +} + +export type Invoice_callSumAggregateInputType = { + id?: true + date?: true + amount?: true +} + +export type Invoice_callMinAggregateInputType = { + id?: true + date?: true + number?: true + amount?: true +} + +export type Invoice_callMaxAggregateInputType = { + id?: true + date?: true + number?: true + amount?: true +} + +export type Invoice_callCountAggregateInputType = { + id?: true + date?: true + number?: true + amount?: true + _all?: true +} + +export type Invoice_callAggregateArgs = { + /** + * Filter which invoice_call to aggregate. + */ + where?: Prisma.invoice_callWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_calls to fetch. + */ + orderBy?: Prisma.invoice_callOrderByWithRelationInput | Prisma.invoice_callOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.invoice_callWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_calls 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` invoice_calls. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned invoice_calls + **/ + _count?: true | Invoice_callCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Invoice_callAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Invoice_callSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Invoice_callMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Invoice_callMaxAggregateInputType +} + +export type GetInvoice_callAggregateType = { + [P in keyof T & keyof AggregateInvoice_call]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type invoice_callGroupByArgs = { + where?: Prisma.invoice_callWhereInput + orderBy?: Prisma.invoice_callOrderByWithAggregationInput | Prisma.invoice_callOrderByWithAggregationInput[] + by: Prisma.Invoice_callScalarFieldEnum[] | Prisma.Invoice_callScalarFieldEnum + having?: Prisma.invoice_callScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Invoice_callCountAggregateInputType | true + _avg?: Invoice_callAvgAggregateInputType + _sum?: Invoice_callSumAggregateInputType + _min?: Invoice_callMinAggregateInputType + _max?: Invoice_callMaxAggregateInputType +} + +export type Invoice_callGroupByOutputType = { + id: number + date: bigint + number: string + amount: number + _count: Invoice_callCountAggregateOutputType | null + _avg: Invoice_callAvgAggregateOutputType | null + _sum: Invoice_callSumAggregateOutputType | null + _min: Invoice_callMinAggregateOutputType | null + _max: Invoice_callMaxAggregateOutputType | null +} + +type GetInvoice_callGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Invoice_callGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type invoice_callWhereInput = { + AND?: Prisma.invoice_callWhereInput | Prisma.invoice_callWhereInput[] + OR?: Prisma.invoice_callWhereInput[] + NOT?: Prisma.invoice_callWhereInput | Prisma.invoice_callWhereInput[] + id?: Prisma.IntFilter<"invoice_call"> | number + date?: Prisma.BigIntFilter<"invoice_call"> | bigint | number + number?: Prisma.StringFilter<"invoice_call"> | string + amount?: Prisma.FloatFilter<"invoice_call"> | number +} + +export type invoice_callOrderByWithRelationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + number?: Prisma.SortOrder + amount?: Prisma.SortOrder + _relevance?: Prisma.invoice_callOrderByRelevanceInput +} + +export type invoice_callWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.invoice_callWhereInput | Prisma.invoice_callWhereInput[] + OR?: Prisma.invoice_callWhereInput[] + NOT?: Prisma.invoice_callWhereInput | Prisma.invoice_callWhereInput[] + date?: Prisma.BigIntFilter<"invoice_call"> | bigint | number + number?: Prisma.StringFilter<"invoice_call"> | string + amount?: Prisma.FloatFilter<"invoice_call"> | number +}, "id"> + +export type invoice_callOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + number?: Prisma.SortOrder + amount?: Prisma.SortOrder + _count?: Prisma.invoice_callCountOrderByAggregateInput + _avg?: Prisma.invoice_callAvgOrderByAggregateInput + _max?: Prisma.invoice_callMaxOrderByAggregateInput + _min?: Prisma.invoice_callMinOrderByAggregateInput + _sum?: Prisma.invoice_callSumOrderByAggregateInput +} + +export type invoice_callScalarWhereWithAggregatesInput = { + AND?: Prisma.invoice_callScalarWhereWithAggregatesInput | Prisma.invoice_callScalarWhereWithAggregatesInput[] + OR?: Prisma.invoice_callScalarWhereWithAggregatesInput[] + NOT?: Prisma.invoice_callScalarWhereWithAggregatesInput | Prisma.invoice_callScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"invoice_call"> | number + date?: Prisma.BigIntWithAggregatesFilter<"invoice_call"> | bigint | number + number?: Prisma.StringWithAggregatesFilter<"invoice_call"> | string + amount?: Prisma.FloatWithAggregatesFilter<"invoice_call"> | number +} + +export type invoice_callCreateInput = { + date: bigint | number + number: string + amount: number +} + +export type invoice_callUncheckedCreateInput = { + id?: number + date: bigint | number + number: string + amount: number +} + +export type invoice_callUpdateInput = { + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + number?: Prisma.StringFieldUpdateOperationsInput | string + amount?: Prisma.FloatFieldUpdateOperationsInput | number +} + +export type invoice_callUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + number?: Prisma.StringFieldUpdateOperationsInput | string + amount?: Prisma.FloatFieldUpdateOperationsInput | number +} + +export type invoice_callCreateManyInput = { + id?: number + date: bigint | number + number: string + amount: number +} + +export type invoice_callUpdateManyMutationInput = { + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + number?: Prisma.StringFieldUpdateOperationsInput | string + amount?: Prisma.FloatFieldUpdateOperationsInput | number +} + +export type invoice_callUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + number?: Prisma.StringFieldUpdateOperationsInput | string + amount?: Prisma.FloatFieldUpdateOperationsInput | number +} + +export type invoice_callOrderByRelevanceInput = { + fields: Prisma.invoice_callOrderByRelevanceFieldEnum | Prisma.invoice_callOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type invoice_callCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + number?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type invoice_callAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type invoice_callMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + number?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type invoice_callMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + number?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type invoice_callSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + + + +export type invoice_callSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date?: boolean + number?: boolean + amount?: boolean +}, ExtArgs["result"]["invoice_call"]> + + + +export type invoice_callSelectScalar = { + id?: boolean + date?: boolean + number?: boolean + amount?: boolean +} + +export type invoice_callOmit = runtime.Types.Extensions.GetOmit<"id" | "date" | "number" | "amount", ExtArgs["result"]["invoice_call"]> + +export type $invoice_callPayload = { + name: "invoice_call" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + date: bigint + number: string + amount: number + }, ExtArgs["result"]["invoice_call"]> + composites: {} +} + +export type invoice_callGetPayload = runtime.Types.Result.GetResult + +export type invoice_callCountArgs = + Omit & { + select?: Invoice_callCountAggregateInputType | true + } + +export interface invoice_callDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['invoice_call'], meta: { name: 'invoice_call' } } + /** + * Find zero or one Invoice_call that matches the filter. + * @param {invoice_callFindUniqueArgs} args - Arguments to find a Invoice_call + * @example + * // Get one Invoice_call + * const invoice_call = await prisma.invoice_call.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_callClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Invoice_call that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {invoice_callFindUniqueOrThrowArgs} args - Arguments to find a Invoice_call + * @example + * // Get one Invoice_call + * const invoice_call = await prisma.invoice_call.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_callClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice_call 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 {invoice_callFindFirstArgs} args - Arguments to find a Invoice_call + * @example + * // Get one Invoice_call + * const invoice_call = await prisma.invoice_call.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_callClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice_call 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 {invoice_callFindFirstOrThrowArgs} args - Arguments to find a Invoice_call + * @example + * // Get one Invoice_call + * const invoice_call = await prisma.invoice_call.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_callClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Invoice_calls 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 {invoice_callFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Invoice_calls + * const invoice_calls = await prisma.invoice_call.findMany() + * + * // Get first 10 Invoice_calls + * const invoice_calls = await prisma.invoice_call.findMany({ take: 10 }) + * + * // Only select the `id` + * const invoice_callWithIdOnly = await prisma.invoice_call.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Invoice_call. + * @param {invoice_callCreateArgs} args - Arguments to create a Invoice_call. + * @example + * // Create one Invoice_call + * const Invoice_call = await prisma.invoice_call.create({ + * data: { + * // ... data to create a Invoice_call + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_callClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Invoice_calls. + * @param {invoice_callCreateManyArgs} args - Arguments to create many Invoice_calls. + * @example + * // Create many Invoice_calls + * const invoice_call = await prisma.invoice_call.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Invoice_call. + * @param {invoice_callDeleteArgs} args - Arguments to delete one Invoice_call. + * @example + * // Delete one Invoice_call + * const Invoice_call = await prisma.invoice_call.delete({ + * where: { + * // ... filter to delete one Invoice_call + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_callClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Invoice_call. + * @param {invoice_callUpdateArgs} args - Arguments to update one Invoice_call. + * @example + * // Update one Invoice_call + * const invoice_call = await prisma.invoice_call.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_callClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Invoice_calls. + * @param {invoice_callDeleteManyArgs} args - Arguments to filter Invoice_calls to delete. + * @example + * // Delete a few Invoice_calls + * const { count } = await prisma.invoice_call.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Invoice_calls. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_callUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Invoice_calls + * const invoice_call = await prisma.invoice_call.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Invoice_call. + * @param {invoice_callUpsertArgs} args - Arguments to update or create a Invoice_call. + * @example + * // Update or create a Invoice_call + * const invoice_call = await prisma.invoice_call.upsert({ + * create: { + * // ... data to create a Invoice_call + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Invoice_call we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_callClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Invoice_calls. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_callCountArgs} args - Arguments to filter Invoice_calls to count. + * @example + * // Count the number of Invoice_calls + * const count = await prisma.invoice_call.count({ + * where: { + * // ... the filter for the Invoice_calls 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 Invoice_call. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Invoice_callAggregateArgs} 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 Invoice_call. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_callGroupByArgs} 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 invoice_callGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: invoice_callGroupByArgs['orderBy'] } + : { orderBy?: invoice_callGroupByArgs['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 ? GetInvoice_callGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the invoice_call model + */ +readonly fields: invoice_callFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for invoice_call. + * 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__invoice_callClient 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 invoice_call model + */ +export interface invoice_callFieldRefs { + readonly id: Prisma.FieldRef<"invoice_call", 'Int'> + readonly date: Prisma.FieldRef<"invoice_call", 'BigInt'> + readonly number: Prisma.FieldRef<"invoice_call", 'String'> + readonly amount: Prisma.FieldRef<"invoice_call", 'Float'> +} + + +// Custom InputTypes +/** + * invoice_call findUnique + */ +export type invoice_callFindUniqueArgs = { + /** + * Select specific fields to fetch from the invoice_call + */ + select?: Prisma.invoice_callSelect | null + /** + * Omit specific fields from the invoice_call + */ + omit?: Prisma.invoice_callOmit | null + /** + * Filter, which invoice_call to fetch. + */ + where: Prisma.invoice_callWhereUniqueInput +} + +/** + * invoice_call findUniqueOrThrow + */ +export type invoice_callFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice_call + */ + select?: Prisma.invoice_callSelect | null + /** + * Omit specific fields from the invoice_call + */ + omit?: Prisma.invoice_callOmit | null + /** + * Filter, which invoice_call to fetch. + */ + where: Prisma.invoice_callWhereUniqueInput +} + +/** + * invoice_call findFirst + */ +export type invoice_callFindFirstArgs = { + /** + * Select specific fields to fetch from the invoice_call + */ + select?: Prisma.invoice_callSelect | null + /** + * Omit specific fields from the invoice_call + */ + omit?: Prisma.invoice_callOmit | null + /** + * Filter, which invoice_call to fetch. + */ + where?: Prisma.invoice_callWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_calls to fetch. + */ + orderBy?: Prisma.invoice_callOrderByWithRelationInput | Prisma.invoice_callOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoice_calls. + */ + cursor?: Prisma.invoice_callWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_calls 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` invoice_calls. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoice_calls. + */ + distinct?: Prisma.Invoice_callScalarFieldEnum | Prisma.Invoice_callScalarFieldEnum[] +} + +/** + * invoice_call findFirstOrThrow + */ +export type invoice_callFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice_call + */ + select?: Prisma.invoice_callSelect | null + /** + * Omit specific fields from the invoice_call + */ + omit?: Prisma.invoice_callOmit | null + /** + * Filter, which invoice_call to fetch. + */ + where?: Prisma.invoice_callWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_calls to fetch. + */ + orderBy?: Prisma.invoice_callOrderByWithRelationInput | Prisma.invoice_callOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoice_calls. + */ + cursor?: Prisma.invoice_callWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_calls 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` invoice_calls. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoice_calls. + */ + distinct?: Prisma.Invoice_callScalarFieldEnum | Prisma.Invoice_callScalarFieldEnum[] +} + +/** + * invoice_call findMany + */ +export type invoice_callFindManyArgs = { + /** + * Select specific fields to fetch from the invoice_call + */ + select?: Prisma.invoice_callSelect | null + /** + * Omit specific fields from the invoice_call + */ + omit?: Prisma.invoice_callOmit | null + /** + * Filter, which invoice_calls to fetch. + */ + where?: Prisma.invoice_callWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_calls to fetch. + */ + orderBy?: Prisma.invoice_callOrderByWithRelationInput | Prisma.invoice_callOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing invoice_calls. + */ + cursor?: Prisma.invoice_callWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_calls 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` invoice_calls. + */ + skip?: number + distinct?: Prisma.Invoice_callScalarFieldEnum | Prisma.Invoice_callScalarFieldEnum[] +} + +/** + * invoice_call create + */ +export type invoice_callCreateArgs = { + /** + * Select specific fields to fetch from the invoice_call + */ + select?: Prisma.invoice_callSelect | null + /** + * Omit specific fields from the invoice_call + */ + omit?: Prisma.invoice_callOmit | null + /** + * The data needed to create a invoice_call. + */ + data: Prisma.XOR +} + +/** + * invoice_call createMany + */ +export type invoice_callCreateManyArgs = { + /** + * The data used to create many invoice_calls. + */ + data: Prisma.invoice_callCreateManyInput | Prisma.invoice_callCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * invoice_call update + */ +export type invoice_callUpdateArgs = { + /** + * Select specific fields to fetch from the invoice_call + */ + select?: Prisma.invoice_callSelect | null + /** + * Omit specific fields from the invoice_call + */ + omit?: Prisma.invoice_callOmit | null + /** + * The data needed to update a invoice_call. + */ + data: Prisma.XOR + /** + * Choose, which invoice_call to update. + */ + where: Prisma.invoice_callWhereUniqueInput +} + +/** + * invoice_call updateMany + */ +export type invoice_callUpdateManyArgs = { + /** + * The data used to update invoice_calls. + */ + data: Prisma.XOR + /** + * Filter which invoice_calls to update + */ + where?: Prisma.invoice_callWhereInput + /** + * Limit how many invoice_calls to update. + */ + limit?: number +} + +/** + * invoice_call upsert + */ +export type invoice_callUpsertArgs = { + /** + * Select specific fields to fetch from the invoice_call + */ + select?: Prisma.invoice_callSelect | null + /** + * Omit specific fields from the invoice_call + */ + omit?: Prisma.invoice_callOmit | null + /** + * The filter to search for the invoice_call to update in case it exists. + */ + where: Prisma.invoice_callWhereUniqueInput + /** + * In case the invoice_call found by the `where` argument doesn't exist, create a new invoice_call with this data. + */ + create: Prisma.XOR + /** + * In case the invoice_call was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * invoice_call delete + */ +export type invoice_callDeleteArgs = { + /** + * Select specific fields to fetch from the invoice_call + */ + select?: Prisma.invoice_callSelect | null + /** + * Omit specific fields from the invoice_call + */ + omit?: Prisma.invoice_callOmit | null + /** + * Filter which invoice_call to delete. + */ + where: Prisma.invoice_callWhereUniqueInput +} + +/** + * invoice_call deleteMany + */ +export type invoice_callDeleteManyArgs = { + /** + * Filter which invoice_calls to delete + */ + where?: Prisma.invoice_callWhereInput + /** + * Limit how many invoice_calls to delete. + */ + limit?: number +} + +/** + * invoice_call without action + */ +export type invoice_callDefaultArgs = { + /** + * Select specific fields to fetch from the invoice_call + */ + select?: Prisma.invoice_callSelect | null + /** + * Omit specific fields from the invoice_call + */ + omit?: Prisma.invoice_callOmit | null +} diff --git a/prisma/generated/mariadb/models/invoice_item.ts b/prisma/generated/mariadb/models/invoice_item.ts new file mode 100644 index 0000000..499830a --- /dev/null +++ b/prisma/generated/mariadb/models/invoice_item.ts @@ -0,0 +1,1210 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `invoice_item` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model invoice_item + * + */ +export type invoice_itemModel = runtime.Types.Result.DefaultSelection + +export type AggregateInvoice_item = { + _count: Invoice_itemCountAggregateOutputType | null + _avg: Invoice_itemAvgAggregateOutputType | null + _sum: Invoice_itemSumAggregateOutputType | null + _min: Invoice_itemMinAggregateOutputType | null + _max: Invoice_itemMaxAggregateOutputType | null +} + +export type Invoice_itemAvgAggregateOutputType = { + id: number | null + service_id: number | null + invoice_id: number | null + quantity: number | null + unitary_price: number | null +} + +export type Invoice_itemSumAggregateOutputType = { + id: bigint | null + service_id: bigint | null + invoice_id: bigint | null + quantity: number | null + unitary_price: number | null +} + +export type Invoice_itemMinAggregateOutputType = { + id: bigint | null + service_id: bigint | null + invoice_id: bigint | null + sku: string | null + quantity: number | null + product_name: string | null + unitary_price: number | null + nosub: boolean | null + delivery_name: string | null +} + +export type Invoice_itemMaxAggregateOutputType = { + id: bigint | null + service_id: bigint | null + invoice_id: bigint | null + sku: string | null + quantity: number | null + product_name: string | null + unitary_price: number | null + nosub: boolean | null + delivery_name: string | null +} + +export type Invoice_itemCountAggregateOutputType = { + id: number + service_id: number + invoice_id: number + sku: number + quantity: number + product_name: number + unitary_price: number + nosub: number + delivery_name: number + _all: number +} + + +export type Invoice_itemAvgAggregateInputType = { + id?: true + service_id?: true + invoice_id?: true + quantity?: true + unitary_price?: true +} + +export type Invoice_itemSumAggregateInputType = { + id?: true + service_id?: true + invoice_id?: true + quantity?: true + unitary_price?: true +} + +export type Invoice_itemMinAggregateInputType = { + id?: true + service_id?: true + invoice_id?: true + sku?: true + quantity?: true + product_name?: true + unitary_price?: true + nosub?: true + delivery_name?: true +} + +export type Invoice_itemMaxAggregateInputType = { + id?: true + service_id?: true + invoice_id?: true + sku?: true + quantity?: true + product_name?: true + unitary_price?: true + nosub?: true + delivery_name?: true +} + +export type Invoice_itemCountAggregateInputType = { + id?: true + service_id?: true + invoice_id?: true + sku?: true + quantity?: true + product_name?: true + unitary_price?: true + nosub?: true + delivery_name?: true + _all?: true +} + +export type Invoice_itemAggregateArgs = { + /** + * Filter which invoice_item to aggregate. + */ + where?: Prisma.invoice_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_items to fetch. + */ + orderBy?: Prisma.invoice_itemOrderByWithRelationInput | Prisma.invoice_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.invoice_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` invoice_items. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned invoice_items + **/ + _count?: true | Invoice_itemCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Invoice_itemAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Invoice_itemSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Invoice_itemMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Invoice_itemMaxAggregateInputType +} + +export type GetInvoice_itemAggregateType = { + [P in keyof T & keyof AggregateInvoice_item]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type invoice_itemGroupByArgs = { + where?: Prisma.invoice_itemWhereInput + orderBy?: Prisma.invoice_itemOrderByWithAggregationInput | Prisma.invoice_itemOrderByWithAggregationInput[] + by: Prisma.Invoice_itemScalarFieldEnum[] | Prisma.Invoice_itemScalarFieldEnum + having?: Prisma.invoice_itemScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Invoice_itemCountAggregateInputType | true + _avg?: Invoice_itemAvgAggregateInputType + _sum?: Invoice_itemSumAggregateInputType + _min?: Invoice_itemMinAggregateInputType + _max?: Invoice_itemMaxAggregateInputType +} + +export type Invoice_itemGroupByOutputType = { + id: bigint + service_id: bigint | null + invoice_id: bigint | null + sku: string | null + quantity: number + product_name: string | null + unitary_price: number | null + nosub: boolean + delivery_name: string | null + _count: Invoice_itemCountAggregateOutputType | null + _avg: Invoice_itemAvgAggregateOutputType | null + _sum: Invoice_itemSumAggregateOutputType | null + _min: Invoice_itemMinAggregateOutputType | null + _max: Invoice_itemMaxAggregateOutputType | null +} + +type GetInvoice_itemGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Invoice_itemGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type invoice_itemWhereInput = { + AND?: Prisma.invoice_itemWhereInput | Prisma.invoice_itemWhereInput[] + OR?: Prisma.invoice_itemWhereInput[] + NOT?: Prisma.invoice_itemWhereInput | Prisma.invoice_itemWhereInput[] + id?: Prisma.BigIntFilter<"invoice_item"> | bigint | number + service_id?: Prisma.BigIntNullableFilter<"invoice_item"> | bigint | number | null + invoice_id?: Prisma.BigIntNullableFilter<"invoice_item"> | bigint | number | null + sku?: Prisma.StringNullableFilter<"invoice_item"> | string | null + quantity?: Prisma.FloatFilter<"invoice_item"> | number + product_name?: Prisma.StringNullableFilter<"invoice_item"> | string | null + unitary_price?: Prisma.FloatNullableFilter<"invoice_item"> | number | null + nosub?: Prisma.BoolFilter<"invoice_item"> | boolean + delivery_name?: Prisma.StringNullableFilter<"invoice_item"> | string | null +} + +export type invoice_itemOrderByWithRelationInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrderInput | Prisma.SortOrder + invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder + sku?: Prisma.SortOrderInput | Prisma.SortOrder + quantity?: Prisma.SortOrder + product_name?: Prisma.SortOrderInput | Prisma.SortOrder + unitary_price?: Prisma.SortOrderInput | Prisma.SortOrder + nosub?: Prisma.SortOrder + delivery_name?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.invoice_itemOrderByRelevanceInput +} + +export type invoice_itemWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.invoice_itemWhereInput | Prisma.invoice_itemWhereInput[] + OR?: Prisma.invoice_itemWhereInput[] + NOT?: Prisma.invoice_itemWhereInput | Prisma.invoice_itemWhereInput[] + service_id?: Prisma.BigIntNullableFilter<"invoice_item"> | bigint | number | null + invoice_id?: Prisma.BigIntNullableFilter<"invoice_item"> | bigint | number | null + sku?: Prisma.StringNullableFilter<"invoice_item"> | string | null + quantity?: Prisma.FloatFilter<"invoice_item"> | number + product_name?: Prisma.StringNullableFilter<"invoice_item"> | string | null + unitary_price?: Prisma.FloatNullableFilter<"invoice_item"> | number | null + nosub?: Prisma.BoolFilter<"invoice_item"> | boolean + delivery_name?: Prisma.StringNullableFilter<"invoice_item"> | string | null +}, "id"> + +export type invoice_itemOrderByWithAggregationInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrderInput | Prisma.SortOrder + invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder + sku?: Prisma.SortOrderInput | Prisma.SortOrder + quantity?: Prisma.SortOrder + product_name?: Prisma.SortOrderInput | Prisma.SortOrder + unitary_price?: Prisma.SortOrderInput | Prisma.SortOrder + nosub?: Prisma.SortOrder + delivery_name?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.invoice_itemCountOrderByAggregateInput + _avg?: Prisma.invoice_itemAvgOrderByAggregateInput + _max?: Prisma.invoice_itemMaxOrderByAggregateInput + _min?: Prisma.invoice_itemMinOrderByAggregateInput + _sum?: Prisma.invoice_itemSumOrderByAggregateInput +} + +export type invoice_itemScalarWhereWithAggregatesInput = { + AND?: Prisma.invoice_itemScalarWhereWithAggregatesInput | Prisma.invoice_itemScalarWhereWithAggregatesInput[] + OR?: Prisma.invoice_itemScalarWhereWithAggregatesInput[] + NOT?: Prisma.invoice_itemScalarWhereWithAggregatesInput | Prisma.invoice_itemScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"invoice_item"> | bigint | number + service_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_item"> | bigint | number | null + invoice_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_item"> | bigint | number | null + sku?: Prisma.StringNullableWithAggregatesFilter<"invoice_item"> | string | null + quantity?: Prisma.FloatWithAggregatesFilter<"invoice_item"> | number + product_name?: Prisma.StringNullableWithAggregatesFilter<"invoice_item"> | string | null + unitary_price?: Prisma.FloatNullableWithAggregatesFilter<"invoice_item"> | number | null + nosub?: Prisma.BoolWithAggregatesFilter<"invoice_item"> | boolean + delivery_name?: Prisma.StringNullableWithAggregatesFilter<"invoice_item"> | string | null +} + +export type invoice_itemCreateInput = { + id?: bigint | number + service_id?: bigint | number | null + invoice_id?: bigint | number | null + sku?: string | null + quantity?: number + product_name?: string | null + unitary_price?: number | null + nosub?: boolean + delivery_name?: string | null +} + +export type invoice_itemUncheckedCreateInput = { + id?: bigint | number + service_id?: bigint | number | null + invoice_id?: bigint | number | null + sku?: string | null + quantity?: number + product_name?: string | null + unitary_price?: number | null + nosub?: boolean + delivery_name?: string | null +} + +export type invoice_itemUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + quantity?: Prisma.FloatFieldUpdateOperationsInput | number + product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean + delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type invoice_itemUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + quantity?: Prisma.FloatFieldUpdateOperationsInput | number + product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean + delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type invoice_itemCreateManyInput = { + id?: bigint | number + service_id?: bigint | number | null + invoice_id?: bigint | number | null + sku?: string | null + quantity?: number + product_name?: string | null + unitary_price?: number | null + nosub?: boolean + delivery_name?: string | null +} + +export type invoice_itemUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + quantity?: Prisma.FloatFieldUpdateOperationsInput | number + product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean + delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type invoice_itemUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + quantity?: Prisma.FloatFieldUpdateOperationsInput | number + product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean + delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type invoice_itemOrderByRelevanceInput = { + fields: Prisma.invoice_itemOrderByRelevanceFieldEnum | Prisma.invoice_itemOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type invoice_itemCountOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + sku?: Prisma.SortOrder + quantity?: Prisma.SortOrder + product_name?: Prisma.SortOrder + unitary_price?: Prisma.SortOrder + nosub?: Prisma.SortOrder + delivery_name?: Prisma.SortOrder +} + +export type invoice_itemAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + quantity?: Prisma.SortOrder + unitary_price?: Prisma.SortOrder +} + +export type invoice_itemMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + sku?: Prisma.SortOrder + quantity?: Prisma.SortOrder + product_name?: Prisma.SortOrder + unitary_price?: Prisma.SortOrder + nosub?: Prisma.SortOrder + delivery_name?: Prisma.SortOrder +} + +export type invoice_itemMinOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + sku?: Prisma.SortOrder + quantity?: Prisma.SortOrder + product_name?: Prisma.SortOrder + unitary_price?: Prisma.SortOrder + nosub?: Prisma.SortOrder + delivery_name?: Prisma.SortOrder +} + +export type invoice_itemSumOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + quantity?: Prisma.SortOrder + unitary_price?: Prisma.SortOrder +} + + + +export type invoice_itemSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + service_id?: boolean + invoice_id?: boolean + sku?: boolean + quantity?: boolean + product_name?: boolean + unitary_price?: boolean + nosub?: boolean + delivery_name?: boolean +}, ExtArgs["result"]["invoice_item"]> + + + +export type invoice_itemSelectScalar = { + id?: boolean + service_id?: boolean + invoice_id?: boolean + sku?: boolean + quantity?: boolean + product_name?: boolean + unitary_price?: boolean + nosub?: boolean + delivery_name?: boolean +} + +export type invoice_itemOmit = runtime.Types.Extensions.GetOmit<"id" | "service_id" | "invoice_id" | "sku" | "quantity" | "product_name" | "unitary_price" | "nosub" | "delivery_name", ExtArgs["result"]["invoice_item"]> + +export type $invoice_itemPayload = { + name: "invoice_item" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + service_id: bigint | null + invoice_id: bigint | null + sku: string | null + quantity: number + product_name: string | null + unitary_price: number | null + nosub: boolean + delivery_name: string | null + }, ExtArgs["result"]["invoice_item"]> + composites: {} +} + +export type invoice_itemGetPayload = runtime.Types.Result.GetResult + +export type invoice_itemCountArgs = + Omit & { + select?: Invoice_itemCountAggregateInputType | true + } + +export interface invoice_itemDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['invoice_item'], meta: { name: 'invoice_item' } } + /** + * Find zero or one Invoice_item that matches the filter. + * @param {invoice_itemFindUniqueArgs} args - Arguments to find a Invoice_item + * @example + * // Get one Invoice_item + * const invoice_item = await prisma.invoice_item.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Invoice_item that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {invoice_itemFindUniqueOrThrowArgs} args - Arguments to find a Invoice_item + * @example + * // Get one Invoice_item + * const invoice_item = await prisma.invoice_item.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice_item that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_itemFindFirstArgs} args - Arguments to find a Invoice_item + * @example + * // Get one Invoice_item + * const invoice_item = await prisma.invoice_item.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice_item that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_itemFindFirstOrThrowArgs} args - Arguments to find a Invoice_item + * @example + * // Get one Invoice_item + * const invoice_item = await prisma.invoice_item.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Invoice_items that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_itemFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Invoice_items + * const invoice_items = await prisma.invoice_item.findMany() + * + * // Get first 10 Invoice_items + * const invoice_items = await prisma.invoice_item.findMany({ take: 10 }) + * + * // Only select the `id` + * const invoice_itemWithIdOnly = await prisma.invoice_item.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Invoice_item. + * @param {invoice_itemCreateArgs} args - Arguments to create a Invoice_item. + * @example + * // Create one Invoice_item + * const Invoice_item = await prisma.invoice_item.create({ + * data: { + * // ... data to create a Invoice_item + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Invoice_items. + * @param {invoice_itemCreateManyArgs} args - Arguments to create many Invoice_items. + * @example + * // Create many Invoice_items + * const invoice_item = await prisma.invoice_item.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Invoice_item. + * @param {invoice_itemDeleteArgs} args - Arguments to delete one Invoice_item. + * @example + * // Delete one Invoice_item + * const Invoice_item = await prisma.invoice_item.delete({ + * where: { + * // ... filter to delete one Invoice_item + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Invoice_item. + * @param {invoice_itemUpdateArgs} args - Arguments to update one Invoice_item. + * @example + * // Update one Invoice_item + * const invoice_item = await prisma.invoice_item.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Invoice_items. + * @param {invoice_itemDeleteManyArgs} args - Arguments to filter Invoice_items to delete. + * @example + * // Delete a few Invoice_items + * const { count } = await prisma.invoice_item.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Invoice_items. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_itemUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Invoice_items + * const invoice_item = await prisma.invoice_item.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Invoice_item. + * @param {invoice_itemUpsertArgs} args - Arguments to update or create a Invoice_item. + * @example + * // Update or create a Invoice_item + * const invoice_item = await prisma.invoice_item.upsert({ + * create: { + * // ... data to create a Invoice_item + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Invoice_item we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Invoice_items. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_itemCountArgs} args - Arguments to filter Invoice_items to count. + * @example + * // Count the number of Invoice_items + * const count = await prisma.invoice_item.count({ + * where: { + * // ... the filter for the Invoice_items we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Invoice_item. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Invoice_itemAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Invoice_item. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_itemGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends invoice_itemGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: invoice_itemGroupByArgs['orderBy'] } + : { orderBy?: invoice_itemGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetInvoice_itemGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the invoice_item model + */ +readonly fields: invoice_itemFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for invoice_item. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__invoice_itemClient 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 invoice_item model + */ +export interface invoice_itemFieldRefs { + readonly id: Prisma.FieldRef<"invoice_item", 'BigInt'> + readonly service_id: Prisma.FieldRef<"invoice_item", 'BigInt'> + readonly invoice_id: Prisma.FieldRef<"invoice_item", 'BigInt'> + readonly sku: Prisma.FieldRef<"invoice_item", 'String'> + readonly quantity: Prisma.FieldRef<"invoice_item", 'Float'> + readonly product_name: Prisma.FieldRef<"invoice_item", 'String'> + readonly unitary_price: Prisma.FieldRef<"invoice_item", 'Float'> + readonly nosub: Prisma.FieldRef<"invoice_item", 'Boolean'> + readonly delivery_name: Prisma.FieldRef<"invoice_item", 'String'> +} + + +// Custom InputTypes +/** + * invoice_item findUnique + */ +export type invoice_itemFindUniqueArgs = { + /** + * Select specific fields to fetch from the invoice_item + */ + select?: Prisma.invoice_itemSelect | null + /** + * Omit specific fields from the invoice_item + */ + omit?: Prisma.invoice_itemOmit | null + /** + * Filter, which invoice_item to fetch. + */ + where: Prisma.invoice_itemWhereUniqueInput +} + +/** + * invoice_item findUniqueOrThrow + */ +export type invoice_itemFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice_item + */ + select?: Prisma.invoice_itemSelect | null + /** + * Omit specific fields from the invoice_item + */ + omit?: Prisma.invoice_itemOmit | null + /** + * Filter, which invoice_item to fetch. + */ + where: Prisma.invoice_itemWhereUniqueInput +} + +/** + * invoice_item findFirst + */ +export type invoice_itemFindFirstArgs = { + /** + * Select specific fields to fetch from the invoice_item + */ + select?: Prisma.invoice_itemSelect | null + /** + * Omit specific fields from the invoice_item + */ + omit?: Prisma.invoice_itemOmit | null + /** + * Filter, which invoice_item to fetch. + */ + where?: Prisma.invoice_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_items to fetch. + */ + orderBy?: Prisma.invoice_itemOrderByWithRelationInput | Prisma.invoice_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoice_items. + */ + cursor?: Prisma.invoice_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` invoice_items. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoice_items. + */ + distinct?: Prisma.Invoice_itemScalarFieldEnum | Prisma.Invoice_itemScalarFieldEnum[] +} + +/** + * invoice_item findFirstOrThrow + */ +export type invoice_itemFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice_item + */ + select?: Prisma.invoice_itemSelect | null + /** + * Omit specific fields from the invoice_item + */ + omit?: Prisma.invoice_itemOmit | null + /** + * Filter, which invoice_item to fetch. + */ + where?: Prisma.invoice_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_items to fetch. + */ + orderBy?: Prisma.invoice_itemOrderByWithRelationInput | Prisma.invoice_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoice_items. + */ + cursor?: Prisma.invoice_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` invoice_items. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoice_items. + */ + distinct?: Prisma.Invoice_itemScalarFieldEnum | Prisma.Invoice_itemScalarFieldEnum[] +} + +/** + * invoice_item findMany + */ +export type invoice_itemFindManyArgs = { + /** + * Select specific fields to fetch from the invoice_item + */ + select?: Prisma.invoice_itemSelect | null + /** + * Omit specific fields from the invoice_item + */ + omit?: Prisma.invoice_itemOmit | null + /** + * Filter, which invoice_items to fetch. + */ + where?: Prisma.invoice_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_items to fetch. + */ + orderBy?: Prisma.invoice_itemOrderByWithRelationInput | Prisma.invoice_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing invoice_items. + */ + cursor?: Prisma.invoice_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` invoice_items. + */ + skip?: number + distinct?: Prisma.Invoice_itemScalarFieldEnum | Prisma.Invoice_itemScalarFieldEnum[] +} + +/** + * invoice_item create + */ +export type invoice_itemCreateArgs = { + /** + * Select specific fields to fetch from the invoice_item + */ + select?: Prisma.invoice_itemSelect | null + /** + * Omit specific fields from the invoice_item + */ + omit?: Prisma.invoice_itemOmit | null + /** + * The data needed to create a invoice_item. + */ + data?: Prisma.XOR +} + +/** + * invoice_item createMany + */ +export type invoice_itemCreateManyArgs = { + /** + * The data used to create many invoice_items. + */ + data: Prisma.invoice_itemCreateManyInput | Prisma.invoice_itemCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * invoice_item update + */ +export type invoice_itemUpdateArgs = { + /** + * Select specific fields to fetch from the invoice_item + */ + select?: Prisma.invoice_itemSelect | null + /** + * Omit specific fields from the invoice_item + */ + omit?: Prisma.invoice_itemOmit | null + /** + * The data needed to update a invoice_item. + */ + data: Prisma.XOR + /** + * Choose, which invoice_item to update. + */ + where: Prisma.invoice_itemWhereUniqueInput +} + +/** + * invoice_item updateMany + */ +export type invoice_itemUpdateManyArgs = { + /** + * The data used to update invoice_items. + */ + data: Prisma.XOR + /** + * Filter which invoice_items to update + */ + where?: Prisma.invoice_itemWhereInput + /** + * Limit how many invoice_items to update. + */ + limit?: number +} + +/** + * invoice_item upsert + */ +export type invoice_itemUpsertArgs = { + /** + * Select specific fields to fetch from the invoice_item + */ + select?: Prisma.invoice_itemSelect | null + /** + * Omit specific fields from the invoice_item + */ + omit?: Prisma.invoice_itemOmit | null + /** + * The filter to search for the invoice_item to update in case it exists. + */ + where: Prisma.invoice_itemWhereUniqueInput + /** + * In case the invoice_item found by the `where` argument doesn't exist, create a new invoice_item with this data. + */ + create: Prisma.XOR + /** + * In case the invoice_item was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * invoice_item delete + */ +export type invoice_itemDeleteArgs = { + /** + * Select specific fields to fetch from the invoice_item + */ + select?: Prisma.invoice_itemSelect | null + /** + * Omit specific fields from the invoice_item + */ + omit?: Prisma.invoice_itemOmit | null + /** + * Filter which invoice_item to delete. + */ + where: Prisma.invoice_itemWhereUniqueInput +} + +/** + * invoice_item deleteMany + */ +export type invoice_itemDeleteManyArgs = { + /** + * Filter which invoice_items to delete + */ + where?: Prisma.invoice_itemWhereInput + /** + * Limit how many invoice_items to delete. + */ + limit?: number +} + +/** + * invoice_item without action + */ +export type invoice_itemDefaultArgs = { + /** + * Select specific fields to fetch from the invoice_item + */ + select?: Prisma.invoice_itemSelect | null + /** + * Omit specific fields from the invoice_item + */ + omit?: Prisma.invoice_itemOmit | null +} diff --git a/prisma/generated/mariadb/models/invoice_item_bk.ts b/prisma/generated/mariadb/models/invoice_item_bk.ts new file mode 100644 index 0000000..8b34e9b --- /dev/null +++ b/prisma/generated/mariadb/models/invoice_item_bk.ts @@ -0,0 +1,1210 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `invoice_item_bk` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model invoice_item_bk + * + */ +export type invoice_item_bkModel = runtime.Types.Result.DefaultSelection + +export type AggregateInvoice_item_bk = { + _count: Invoice_item_bkCountAggregateOutputType | null + _avg: Invoice_item_bkAvgAggregateOutputType | null + _sum: Invoice_item_bkSumAggregateOutputType | null + _min: Invoice_item_bkMinAggregateOutputType | null + _max: Invoice_item_bkMaxAggregateOutputType | null +} + +export type Invoice_item_bkAvgAggregateOutputType = { + id: number | null + service_id: number | null + invoice_id: number | null + quantity: number | null + unitary_price: number | null +} + +export type Invoice_item_bkSumAggregateOutputType = { + id: bigint | null + service_id: bigint | null + invoice_id: bigint | null + quantity: number | null + unitary_price: number | null +} + +export type Invoice_item_bkMinAggregateOutputType = { + id: bigint | null + service_id: bigint | null + invoice_id: bigint | null + sku: string | null + quantity: number | null + product_name: string | null + unitary_price: number | null + nosub: boolean | null + delivery_name: string | null +} + +export type Invoice_item_bkMaxAggregateOutputType = { + id: bigint | null + service_id: bigint | null + invoice_id: bigint | null + sku: string | null + quantity: number | null + product_name: string | null + unitary_price: number | null + nosub: boolean | null + delivery_name: string | null +} + +export type Invoice_item_bkCountAggregateOutputType = { + id: number + service_id: number + invoice_id: number + sku: number + quantity: number + product_name: number + unitary_price: number + nosub: number + delivery_name: number + _all: number +} + + +export type Invoice_item_bkAvgAggregateInputType = { + id?: true + service_id?: true + invoice_id?: true + quantity?: true + unitary_price?: true +} + +export type Invoice_item_bkSumAggregateInputType = { + id?: true + service_id?: true + invoice_id?: true + quantity?: true + unitary_price?: true +} + +export type Invoice_item_bkMinAggregateInputType = { + id?: true + service_id?: true + invoice_id?: true + sku?: true + quantity?: true + product_name?: true + unitary_price?: true + nosub?: true + delivery_name?: true +} + +export type Invoice_item_bkMaxAggregateInputType = { + id?: true + service_id?: true + invoice_id?: true + sku?: true + quantity?: true + product_name?: true + unitary_price?: true + nosub?: true + delivery_name?: true +} + +export type Invoice_item_bkCountAggregateInputType = { + id?: true + service_id?: true + invoice_id?: true + sku?: true + quantity?: true + product_name?: true + unitary_price?: true + nosub?: true + delivery_name?: true + _all?: true +} + +export type Invoice_item_bkAggregateArgs = { + /** + * Filter which invoice_item_bk to aggregate. + */ + where?: Prisma.invoice_item_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_item_bks to fetch. + */ + orderBy?: Prisma.invoice_item_bkOrderByWithRelationInput | Prisma.invoice_item_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.invoice_item_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_item_bks 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` invoice_item_bks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned invoice_item_bks + **/ + _count?: true | Invoice_item_bkCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Invoice_item_bkAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Invoice_item_bkSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Invoice_item_bkMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Invoice_item_bkMaxAggregateInputType +} + +export type GetInvoice_item_bkAggregateType = { + [P in keyof T & keyof AggregateInvoice_item_bk]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type invoice_item_bkGroupByArgs = { + where?: Prisma.invoice_item_bkWhereInput + orderBy?: Prisma.invoice_item_bkOrderByWithAggregationInput | Prisma.invoice_item_bkOrderByWithAggregationInput[] + by: Prisma.Invoice_item_bkScalarFieldEnum[] | Prisma.Invoice_item_bkScalarFieldEnum + having?: Prisma.invoice_item_bkScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Invoice_item_bkCountAggregateInputType | true + _avg?: Invoice_item_bkAvgAggregateInputType + _sum?: Invoice_item_bkSumAggregateInputType + _min?: Invoice_item_bkMinAggregateInputType + _max?: Invoice_item_bkMaxAggregateInputType +} + +export type Invoice_item_bkGroupByOutputType = { + id: bigint + service_id: bigint | null + invoice_id: bigint | null + sku: string | null + quantity: number + product_name: string | null + unitary_price: number | null + nosub: boolean + delivery_name: string | null + _count: Invoice_item_bkCountAggregateOutputType | null + _avg: Invoice_item_bkAvgAggregateOutputType | null + _sum: Invoice_item_bkSumAggregateOutputType | null + _min: Invoice_item_bkMinAggregateOutputType | null + _max: Invoice_item_bkMaxAggregateOutputType | null +} + +type GetInvoice_item_bkGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Invoice_item_bkGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type invoice_item_bkWhereInput = { + AND?: Prisma.invoice_item_bkWhereInput | Prisma.invoice_item_bkWhereInput[] + OR?: Prisma.invoice_item_bkWhereInput[] + NOT?: Prisma.invoice_item_bkWhereInput | Prisma.invoice_item_bkWhereInput[] + id?: Prisma.BigIntFilter<"invoice_item_bk"> | bigint | number + service_id?: Prisma.BigIntNullableFilter<"invoice_item_bk"> | bigint | number | null + invoice_id?: Prisma.BigIntNullableFilter<"invoice_item_bk"> | bigint | number | null + sku?: Prisma.StringNullableFilter<"invoice_item_bk"> | string | null + quantity?: Prisma.FloatFilter<"invoice_item_bk"> | number + product_name?: Prisma.StringNullableFilter<"invoice_item_bk"> | string | null + unitary_price?: Prisma.FloatNullableFilter<"invoice_item_bk"> | number | null + nosub?: Prisma.BoolFilter<"invoice_item_bk"> | boolean + delivery_name?: Prisma.StringNullableFilter<"invoice_item_bk"> | string | null +} + +export type invoice_item_bkOrderByWithRelationInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrderInput | Prisma.SortOrder + invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder + sku?: Prisma.SortOrderInput | Prisma.SortOrder + quantity?: Prisma.SortOrder + product_name?: Prisma.SortOrderInput | Prisma.SortOrder + unitary_price?: Prisma.SortOrderInput | Prisma.SortOrder + nosub?: Prisma.SortOrder + delivery_name?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.invoice_item_bkOrderByRelevanceInput +} + +export type invoice_item_bkWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.invoice_item_bkWhereInput | Prisma.invoice_item_bkWhereInput[] + OR?: Prisma.invoice_item_bkWhereInput[] + NOT?: Prisma.invoice_item_bkWhereInput | Prisma.invoice_item_bkWhereInput[] + service_id?: Prisma.BigIntNullableFilter<"invoice_item_bk"> | bigint | number | null + invoice_id?: Prisma.BigIntNullableFilter<"invoice_item_bk"> | bigint | number | null + sku?: Prisma.StringNullableFilter<"invoice_item_bk"> | string | null + quantity?: Prisma.FloatFilter<"invoice_item_bk"> | number + product_name?: Prisma.StringNullableFilter<"invoice_item_bk"> | string | null + unitary_price?: Prisma.FloatNullableFilter<"invoice_item_bk"> | number | null + nosub?: Prisma.BoolFilter<"invoice_item_bk"> | boolean + delivery_name?: Prisma.StringNullableFilter<"invoice_item_bk"> | string | null +}, "id"> + +export type invoice_item_bkOrderByWithAggregationInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrderInput | Prisma.SortOrder + invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder + sku?: Prisma.SortOrderInput | Prisma.SortOrder + quantity?: Prisma.SortOrder + product_name?: Prisma.SortOrderInput | Prisma.SortOrder + unitary_price?: Prisma.SortOrderInput | Prisma.SortOrder + nosub?: Prisma.SortOrder + delivery_name?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.invoice_item_bkCountOrderByAggregateInput + _avg?: Prisma.invoice_item_bkAvgOrderByAggregateInput + _max?: Prisma.invoice_item_bkMaxOrderByAggregateInput + _min?: Prisma.invoice_item_bkMinOrderByAggregateInput + _sum?: Prisma.invoice_item_bkSumOrderByAggregateInput +} + +export type invoice_item_bkScalarWhereWithAggregatesInput = { + AND?: Prisma.invoice_item_bkScalarWhereWithAggregatesInput | Prisma.invoice_item_bkScalarWhereWithAggregatesInput[] + OR?: Prisma.invoice_item_bkScalarWhereWithAggregatesInput[] + NOT?: Prisma.invoice_item_bkScalarWhereWithAggregatesInput | Prisma.invoice_item_bkScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"invoice_item_bk"> | bigint | number + service_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_item_bk"> | bigint | number | null + invoice_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_item_bk"> | bigint | number | null + sku?: Prisma.StringNullableWithAggregatesFilter<"invoice_item_bk"> | string | null + quantity?: Prisma.FloatWithAggregatesFilter<"invoice_item_bk"> | number + product_name?: Prisma.StringNullableWithAggregatesFilter<"invoice_item_bk"> | string | null + unitary_price?: Prisma.FloatNullableWithAggregatesFilter<"invoice_item_bk"> | number | null + nosub?: Prisma.BoolWithAggregatesFilter<"invoice_item_bk"> | boolean + delivery_name?: Prisma.StringNullableWithAggregatesFilter<"invoice_item_bk"> | string | null +} + +export type invoice_item_bkCreateInput = { + id?: bigint | number + service_id?: bigint | number | null + invoice_id?: bigint | number | null + sku?: string | null + quantity?: number + product_name?: string | null + unitary_price?: number | null + nosub?: boolean + delivery_name?: string | null +} + +export type invoice_item_bkUncheckedCreateInput = { + id?: bigint | number + service_id?: bigint | number | null + invoice_id?: bigint | number | null + sku?: string | null + quantity?: number + product_name?: string | null + unitary_price?: number | null + nosub?: boolean + delivery_name?: string | null +} + +export type invoice_item_bkUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + quantity?: Prisma.FloatFieldUpdateOperationsInput | number + product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean + delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type invoice_item_bkUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + quantity?: Prisma.FloatFieldUpdateOperationsInput | number + product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean + delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type invoice_item_bkCreateManyInput = { + id?: bigint | number + service_id?: bigint | number | null + invoice_id?: bigint | number | null + sku?: string | null + quantity?: number + product_name?: string | null + unitary_price?: number | null + nosub?: boolean + delivery_name?: string | null +} + +export type invoice_item_bkUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + quantity?: Prisma.FloatFieldUpdateOperationsInput | number + product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean + delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type invoice_item_bkUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + quantity?: Prisma.FloatFieldUpdateOperationsInput | number + product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean + delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type invoice_item_bkOrderByRelevanceInput = { + fields: Prisma.invoice_item_bkOrderByRelevanceFieldEnum | Prisma.invoice_item_bkOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type invoice_item_bkCountOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + sku?: Prisma.SortOrder + quantity?: Prisma.SortOrder + product_name?: Prisma.SortOrder + unitary_price?: Prisma.SortOrder + nosub?: Prisma.SortOrder + delivery_name?: Prisma.SortOrder +} + +export type invoice_item_bkAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + quantity?: Prisma.SortOrder + unitary_price?: Prisma.SortOrder +} + +export type invoice_item_bkMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + sku?: Prisma.SortOrder + quantity?: Prisma.SortOrder + product_name?: Prisma.SortOrder + unitary_price?: Prisma.SortOrder + nosub?: Prisma.SortOrder + delivery_name?: Prisma.SortOrder +} + +export type invoice_item_bkMinOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + sku?: Prisma.SortOrder + quantity?: Prisma.SortOrder + product_name?: Prisma.SortOrder + unitary_price?: Prisma.SortOrder + nosub?: Prisma.SortOrder + delivery_name?: Prisma.SortOrder +} + +export type invoice_item_bkSumOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + quantity?: Prisma.SortOrder + unitary_price?: Prisma.SortOrder +} + + + +export type invoice_item_bkSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + service_id?: boolean + invoice_id?: boolean + sku?: boolean + quantity?: boolean + product_name?: boolean + unitary_price?: boolean + nosub?: boolean + delivery_name?: boolean +}, ExtArgs["result"]["invoice_item_bk"]> + + + +export type invoice_item_bkSelectScalar = { + id?: boolean + service_id?: boolean + invoice_id?: boolean + sku?: boolean + quantity?: boolean + product_name?: boolean + unitary_price?: boolean + nosub?: boolean + delivery_name?: boolean +} + +export type invoice_item_bkOmit = runtime.Types.Extensions.GetOmit<"id" | "service_id" | "invoice_id" | "sku" | "quantity" | "product_name" | "unitary_price" | "nosub" | "delivery_name", ExtArgs["result"]["invoice_item_bk"]> + +export type $invoice_item_bkPayload = { + name: "invoice_item_bk" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + service_id: bigint | null + invoice_id: bigint | null + sku: string | null + quantity: number + product_name: string | null + unitary_price: number | null + nosub: boolean + delivery_name: string | null + }, ExtArgs["result"]["invoice_item_bk"]> + composites: {} +} + +export type invoice_item_bkGetPayload = runtime.Types.Result.GetResult + +export type invoice_item_bkCountArgs = + Omit & { + select?: Invoice_item_bkCountAggregateInputType | true + } + +export interface invoice_item_bkDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['invoice_item_bk'], meta: { name: 'invoice_item_bk' } } + /** + * Find zero or one Invoice_item_bk that matches the filter. + * @param {invoice_item_bkFindUniqueArgs} args - Arguments to find a Invoice_item_bk + * @example + * // Get one Invoice_item_bk + * const invoice_item_bk = await prisma.invoice_item_bk.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Invoice_item_bk that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {invoice_item_bkFindUniqueOrThrowArgs} args - Arguments to find a Invoice_item_bk + * @example + * // Get one Invoice_item_bk + * const invoice_item_bk = await prisma.invoice_item_bk.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice_item_bk 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 {invoice_item_bkFindFirstArgs} args - Arguments to find a Invoice_item_bk + * @example + * // Get one Invoice_item_bk + * const invoice_item_bk = await prisma.invoice_item_bk.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice_item_bk 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 {invoice_item_bkFindFirstOrThrowArgs} args - Arguments to find a Invoice_item_bk + * @example + * // Get one Invoice_item_bk + * const invoice_item_bk = await prisma.invoice_item_bk.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Invoice_item_bks 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 {invoice_item_bkFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Invoice_item_bks + * const invoice_item_bks = await prisma.invoice_item_bk.findMany() + * + * // Get first 10 Invoice_item_bks + * const invoice_item_bks = await prisma.invoice_item_bk.findMany({ take: 10 }) + * + * // Only select the `id` + * const invoice_item_bkWithIdOnly = await prisma.invoice_item_bk.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Invoice_item_bk. + * @param {invoice_item_bkCreateArgs} args - Arguments to create a Invoice_item_bk. + * @example + * // Create one Invoice_item_bk + * const Invoice_item_bk = await prisma.invoice_item_bk.create({ + * data: { + * // ... data to create a Invoice_item_bk + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Invoice_item_bks. + * @param {invoice_item_bkCreateManyArgs} args - Arguments to create many Invoice_item_bks. + * @example + * // Create many Invoice_item_bks + * const invoice_item_bk = await prisma.invoice_item_bk.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Invoice_item_bk. + * @param {invoice_item_bkDeleteArgs} args - Arguments to delete one Invoice_item_bk. + * @example + * // Delete one Invoice_item_bk + * const Invoice_item_bk = await prisma.invoice_item_bk.delete({ + * where: { + * // ... filter to delete one Invoice_item_bk + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Invoice_item_bk. + * @param {invoice_item_bkUpdateArgs} args - Arguments to update one Invoice_item_bk. + * @example + * // Update one Invoice_item_bk + * const invoice_item_bk = await prisma.invoice_item_bk.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Invoice_item_bks. + * @param {invoice_item_bkDeleteManyArgs} args - Arguments to filter Invoice_item_bks to delete. + * @example + * // Delete a few Invoice_item_bks + * const { count } = await prisma.invoice_item_bk.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Invoice_item_bks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_item_bkUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Invoice_item_bks + * const invoice_item_bk = await prisma.invoice_item_bk.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Invoice_item_bk. + * @param {invoice_item_bkUpsertArgs} args - Arguments to update or create a Invoice_item_bk. + * @example + * // Update or create a Invoice_item_bk + * const invoice_item_bk = await prisma.invoice_item_bk.upsert({ + * create: { + * // ... data to create a Invoice_item_bk + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Invoice_item_bk we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Invoice_item_bks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_item_bkCountArgs} args - Arguments to filter Invoice_item_bks to count. + * @example + * // Count the number of Invoice_item_bks + * const count = await prisma.invoice_item_bk.count({ + * where: { + * // ... the filter for the Invoice_item_bks 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 Invoice_item_bk. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Invoice_item_bkAggregateArgs} 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 Invoice_item_bk. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_item_bkGroupByArgs} 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 invoice_item_bkGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: invoice_item_bkGroupByArgs['orderBy'] } + : { orderBy?: invoice_item_bkGroupByArgs['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 ? GetInvoice_item_bkGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the invoice_item_bk model + */ +readonly fields: invoice_item_bkFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for invoice_item_bk. + * 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__invoice_item_bkClient 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 invoice_item_bk model + */ +export interface invoice_item_bkFieldRefs { + readonly id: Prisma.FieldRef<"invoice_item_bk", 'BigInt'> + readonly service_id: Prisma.FieldRef<"invoice_item_bk", 'BigInt'> + readonly invoice_id: Prisma.FieldRef<"invoice_item_bk", 'BigInt'> + readonly sku: Prisma.FieldRef<"invoice_item_bk", 'String'> + readonly quantity: Prisma.FieldRef<"invoice_item_bk", 'Float'> + readonly product_name: Prisma.FieldRef<"invoice_item_bk", 'String'> + readonly unitary_price: Prisma.FieldRef<"invoice_item_bk", 'Float'> + readonly nosub: Prisma.FieldRef<"invoice_item_bk", 'Boolean'> + readonly delivery_name: Prisma.FieldRef<"invoice_item_bk", 'String'> +} + + +// Custom InputTypes +/** + * invoice_item_bk findUnique + */ +export type invoice_item_bkFindUniqueArgs = { + /** + * Select specific fields to fetch from the invoice_item_bk + */ + select?: Prisma.invoice_item_bkSelect | null + /** + * Omit specific fields from the invoice_item_bk + */ + omit?: Prisma.invoice_item_bkOmit | null + /** + * Filter, which invoice_item_bk to fetch. + */ + where: Prisma.invoice_item_bkWhereUniqueInput +} + +/** + * invoice_item_bk findUniqueOrThrow + */ +export type invoice_item_bkFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice_item_bk + */ + select?: Prisma.invoice_item_bkSelect | null + /** + * Omit specific fields from the invoice_item_bk + */ + omit?: Prisma.invoice_item_bkOmit | null + /** + * Filter, which invoice_item_bk to fetch. + */ + where: Prisma.invoice_item_bkWhereUniqueInput +} + +/** + * invoice_item_bk findFirst + */ +export type invoice_item_bkFindFirstArgs = { + /** + * Select specific fields to fetch from the invoice_item_bk + */ + select?: Prisma.invoice_item_bkSelect | null + /** + * Omit specific fields from the invoice_item_bk + */ + omit?: Prisma.invoice_item_bkOmit | null + /** + * Filter, which invoice_item_bk to fetch. + */ + where?: Prisma.invoice_item_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_item_bks to fetch. + */ + orderBy?: Prisma.invoice_item_bkOrderByWithRelationInput | Prisma.invoice_item_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoice_item_bks. + */ + cursor?: Prisma.invoice_item_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_item_bks 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` invoice_item_bks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoice_item_bks. + */ + distinct?: Prisma.Invoice_item_bkScalarFieldEnum | Prisma.Invoice_item_bkScalarFieldEnum[] +} + +/** + * invoice_item_bk findFirstOrThrow + */ +export type invoice_item_bkFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice_item_bk + */ + select?: Prisma.invoice_item_bkSelect | null + /** + * Omit specific fields from the invoice_item_bk + */ + omit?: Prisma.invoice_item_bkOmit | null + /** + * Filter, which invoice_item_bk to fetch. + */ + where?: Prisma.invoice_item_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_item_bks to fetch. + */ + orderBy?: Prisma.invoice_item_bkOrderByWithRelationInput | Prisma.invoice_item_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoice_item_bks. + */ + cursor?: Prisma.invoice_item_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_item_bks 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` invoice_item_bks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoice_item_bks. + */ + distinct?: Prisma.Invoice_item_bkScalarFieldEnum | Prisma.Invoice_item_bkScalarFieldEnum[] +} + +/** + * invoice_item_bk findMany + */ +export type invoice_item_bkFindManyArgs = { + /** + * Select specific fields to fetch from the invoice_item_bk + */ + select?: Prisma.invoice_item_bkSelect | null + /** + * Omit specific fields from the invoice_item_bk + */ + omit?: Prisma.invoice_item_bkOmit | null + /** + * Filter, which invoice_item_bks to fetch. + */ + where?: Prisma.invoice_item_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_item_bks to fetch. + */ + orderBy?: Prisma.invoice_item_bkOrderByWithRelationInput | Prisma.invoice_item_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing invoice_item_bks. + */ + cursor?: Prisma.invoice_item_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_item_bks 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` invoice_item_bks. + */ + skip?: number + distinct?: Prisma.Invoice_item_bkScalarFieldEnum | Prisma.Invoice_item_bkScalarFieldEnum[] +} + +/** + * invoice_item_bk create + */ +export type invoice_item_bkCreateArgs = { + /** + * Select specific fields to fetch from the invoice_item_bk + */ + select?: Prisma.invoice_item_bkSelect | null + /** + * Omit specific fields from the invoice_item_bk + */ + omit?: Prisma.invoice_item_bkOmit | null + /** + * The data needed to create a invoice_item_bk. + */ + data?: Prisma.XOR +} + +/** + * invoice_item_bk createMany + */ +export type invoice_item_bkCreateManyArgs = { + /** + * The data used to create many invoice_item_bks. + */ + data: Prisma.invoice_item_bkCreateManyInput | Prisma.invoice_item_bkCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * invoice_item_bk update + */ +export type invoice_item_bkUpdateArgs = { + /** + * Select specific fields to fetch from the invoice_item_bk + */ + select?: Prisma.invoice_item_bkSelect | null + /** + * Omit specific fields from the invoice_item_bk + */ + omit?: Prisma.invoice_item_bkOmit | null + /** + * The data needed to update a invoice_item_bk. + */ + data: Prisma.XOR + /** + * Choose, which invoice_item_bk to update. + */ + where: Prisma.invoice_item_bkWhereUniqueInput +} + +/** + * invoice_item_bk updateMany + */ +export type invoice_item_bkUpdateManyArgs = { + /** + * The data used to update invoice_item_bks. + */ + data: Prisma.XOR + /** + * Filter which invoice_item_bks to update + */ + where?: Prisma.invoice_item_bkWhereInput + /** + * Limit how many invoice_item_bks to update. + */ + limit?: number +} + +/** + * invoice_item_bk upsert + */ +export type invoice_item_bkUpsertArgs = { + /** + * Select specific fields to fetch from the invoice_item_bk + */ + select?: Prisma.invoice_item_bkSelect | null + /** + * Omit specific fields from the invoice_item_bk + */ + omit?: Prisma.invoice_item_bkOmit | null + /** + * The filter to search for the invoice_item_bk to update in case it exists. + */ + where: Prisma.invoice_item_bkWhereUniqueInput + /** + * In case the invoice_item_bk found by the `where` argument doesn't exist, create a new invoice_item_bk with this data. + */ + create: Prisma.XOR + /** + * In case the invoice_item_bk was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * invoice_item_bk delete + */ +export type invoice_item_bkDeleteArgs = { + /** + * Select specific fields to fetch from the invoice_item_bk + */ + select?: Prisma.invoice_item_bkSelect | null + /** + * Omit specific fields from the invoice_item_bk + */ + omit?: Prisma.invoice_item_bkOmit | null + /** + * Filter which invoice_item_bk to delete. + */ + where: Prisma.invoice_item_bkWhereUniqueInput +} + +/** + * invoice_item_bk deleteMany + */ +export type invoice_item_bkDeleteManyArgs = { + /** + * Filter which invoice_item_bks to delete + */ + where?: Prisma.invoice_item_bkWhereInput + /** + * Limit how many invoice_item_bks to delete. + */ + limit?: number +} + +/** + * invoice_item_bk without action + */ +export type invoice_item_bkDefaultArgs = { + /** + * Select specific fields to fetch from the invoice_item_bk + */ + select?: Prisma.invoice_item_bkSelect | null + /** + * Omit specific fields from the invoice_item_bk + */ + omit?: Prisma.invoice_item_bkOmit | null +} diff --git a/prisma/generated/mariadb/models/invoice_msg_template.ts b/prisma/generated/mariadb/models/invoice_msg_template.ts new file mode 100644 index 0000000..29c42dc --- /dev/null +++ b/prisma/generated/mariadb/models/invoice_msg_template.ts @@ -0,0 +1,1030 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `invoice_msg_template` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model invoice_msg_template + * + */ +export type invoice_msg_templateModel = runtime.Types.Result.DefaultSelection + +export type AggregateInvoice_msg_template = { + _count: Invoice_msg_templateCountAggregateOutputType | null + _avg: Invoice_msg_templateAvgAggregateOutputType | null + _sum: Invoice_msg_templateSumAggregateOutputType | null + _min: Invoice_msg_templateMinAggregateOutputType | null + _max: Invoice_msg_templateMaxAggregateOutputType | null +} + +export type Invoice_msg_templateAvgAggregateOutputType = { + id: number | null +} + +export type Invoice_msg_templateSumAggregateOutputType = { + id: bigint | null +} + +export type Invoice_msg_templateMinAggregateOutputType = { + id: bigint | null + name: string | null + message: string | null +} + +export type Invoice_msg_templateMaxAggregateOutputType = { + id: bigint | null + name: string | null + message: string | null +} + +export type Invoice_msg_templateCountAggregateOutputType = { + id: number + name: number + message: number + _all: number +} + + +export type Invoice_msg_templateAvgAggregateInputType = { + id?: true +} + +export type Invoice_msg_templateSumAggregateInputType = { + id?: true +} + +export type Invoice_msg_templateMinAggregateInputType = { + id?: true + name?: true + message?: true +} + +export type Invoice_msg_templateMaxAggregateInputType = { + id?: true + name?: true + message?: true +} + +export type Invoice_msg_templateCountAggregateInputType = { + id?: true + name?: true + message?: true + _all?: true +} + +export type Invoice_msg_templateAggregateArgs = { + /** + * Filter which invoice_msg_template to aggregate. + */ + where?: Prisma.invoice_msg_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_msg_templates to fetch. + */ + orderBy?: Prisma.invoice_msg_templateOrderByWithRelationInput | Prisma.invoice_msg_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.invoice_msg_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_msg_templates 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` invoice_msg_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned invoice_msg_templates + **/ + _count?: true | Invoice_msg_templateCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Invoice_msg_templateAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Invoice_msg_templateSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Invoice_msg_templateMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Invoice_msg_templateMaxAggregateInputType +} + +export type GetInvoice_msg_templateAggregateType = { + [P in keyof T & keyof AggregateInvoice_msg_template]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type invoice_msg_templateGroupByArgs = { + where?: Prisma.invoice_msg_templateWhereInput + orderBy?: Prisma.invoice_msg_templateOrderByWithAggregationInput | Prisma.invoice_msg_templateOrderByWithAggregationInput[] + by: Prisma.Invoice_msg_templateScalarFieldEnum[] | Prisma.Invoice_msg_templateScalarFieldEnum + having?: Prisma.invoice_msg_templateScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Invoice_msg_templateCountAggregateInputType | true + _avg?: Invoice_msg_templateAvgAggregateInputType + _sum?: Invoice_msg_templateSumAggregateInputType + _min?: Invoice_msg_templateMinAggregateInputType + _max?: Invoice_msg_templateMaxAggregateInputType +} + +export type Invoice_msg_templateGroupByOutputType = { + id: bigint + name: string | null + message: string | null + _count: Invoice_msg_templateCountAggregateOutputType | null + _avg: Invoice_msg_templateAvgAggregateOutputType | null + _sum: Invoice_msg_templateSumAggregateOutputType | null + _min: Invoice_msg_templateMinAggregateOutputType | null + _max: Invoice_msg_templateMaxAggregateOutputType | null +} + +type GetInvoice_msg_templateGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Invoice_msg_templateGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type invoice_msg_templateWhereInput = { + AND?: Prisma.invoice_msg_templateWhereInput | Prisma.invoice_msg_templateWhereInput[] + OR?: Prisma.invoice_msg_templateWhereInput[] + NOT?: Prisma.invoice_msg_templateWhereInput | Prisma.invoice_msg_templateWhereInput[] + id?: Prisma.BigIntFilter<"invoice_msg_template"> | bigint | number + name?: Prisma.StringNullableFilter<"invoice_msg_template"> | string | null + message?: Prisma.StringNullableFilter<"invoice_msg_template"> | string | null +} + +export type invoice_msg_templateOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + message?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.invoice_msg_templateOrderByRelevanceInput +} + +export type invoice_msg_templateWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.invoice_msg_templateWhereInput | Prisma.invoice_msg_templateWhereInput[] + OR?: Prisma.invoice_msg_templateWhereInput[] + NOT?: Prisma.invoice_msg_templateWhereInput | Prisma.invoice_msg_templateWhereInput[] + name?: Prisma.StringNullableFilter<"invoice_msg_template"> | string | null + message?: Prisma.StringNullableFilter<"invoice_msg_template"> | string | null +}, "id"> + +export type invoice_msg_templateOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + message?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.invoice_msg_templateCountOrderByAggregateInput + _avg?: Prisma.invoice_msg_templateAvgOrderByAggregateInput + _max?: Prisma.invoice_msg_templateMaxOrderByAggregateInput + _min?: Prisma.invoice_msg_templateMinOrderByAggregateInput + _sum?: Prisma.invoice_msg_templateSumOrderByAggregateInput +} + +export type invoice_msg_templateScalarWhereWithAggregatesInput = { + AND?: Prisma.invoice_msg_templateScalarWhereWithAggregatesInput | Prisma.invoice_msg_templateScalarWhereWithAggregatesInput[] + OR?: Prisma.invoice_msg_templateScalarWhereWithAggregatesInput[] + NOT?: Prisma.invoice_msg_templateScalarWhereWithAggregatesInput | Prisma.invoice_msg_templateScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"invoice_msg_template"> | bigint | number + name?: Prisma.StringNullableWithAggregatesFilter<"invoice_msg_template"> | string | null + message?: Prisma.StringNullableWithAggregatesFilter<"invoice_msg_template"> | string | null +} + +export type invoice_msg_templateCreateInput = { + id?: bigint | number + name?: string | null + message?: string | null +} + +export type invoice_msg_templateUncheckedCreateInput = { + id?: bigint | number + name?: string | null + message?: string | null +} + +export type invoice_msg_templateUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type invoice_msg_templateUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type invoice_msg_templateCreateManyInput = { + id?: bigint | number + name?: string | null + message?: string | null +} + +export type invoice_msg_templateUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type invoice_msg_templateUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type invoice_msg_templateOrderByRelevanceInput = { + fields: Prisma.invoice_msg_templateOrderByRelevanceFieldEnum | Prisma.invoice_msg_templateOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type invoice_msg_templateCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + message?: Prisma.SortOrder +} + +export type invoice_msg_templateAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type invoice_msg_templateMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + message?: Prisma.SortOrder +} + +export type invoice_msg_templateMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + message?: Prisma.SortOrder +} + +export type invoice_msg_templateSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type invoice_msg_templateSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + message?: boolean +}, ExtArgs["result"]["invoice_msg_template"]> + + + +export type invoice_msg_templateSelectScalar = { + id?: boolean + name?: boolean + message?: boolean +} + +export type invoice_msg_templateOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "message", ExtArgs["result"]["invoice_msg_template"]> + +export type $invoice_msg_templatePayload = { + name: "invoice_msg_template" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + name: string | null + message: string | null + }, ExtArgs["result"]["invoice_msg_template"]> + composites: {} +} + +export type invoice_msg_templateGetPayload = runtime.Types.Result.GetResult + +export type invoice_msg_templateCountArgs = + Omit & { + select?: Invoice_msg_templateCountAggregateInputType | true + } + +export interface invoice_msg_templateDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['invoice_msg_template'], meta: { name: 'invoice_msg_template' } } + /** + * Find zero or one Invoice_msg_template that matches the filter. + * @param {invoice_msg_templateFindUniqueArgs} args - Arguments to find a Invoice_msg_template + * @example + * // Get one Invoice_msg_template + * const invoice_msg_template = await prisma.invoice_msg_template.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_msg_templateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Invoice_msg_template that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {invoice_msg_templateFindUniqueOrThrowArgs} args - Arguments to find a Invoice_msg_template + * @example + * // Get one Invoice_msg_template + * const invoice_msg_template = await prisma.invoice_msg_template.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_msg_templateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice_msg_template 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 {invoice_msg_templateFindFirstArgs} args - Arguments to find a Invoice_msg_template + * @example + * // Get one Invoice_msg_template + * const invoice_msg_template = await prisma.invoice_msg_template.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_msg_templateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice_msg_template 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 {invoice_msg_templateFindFirstOrThrowArgs} args - Arguments to find a Invoice_msg_template + * @example + * // Get one Invoice_msg_template + * const invoice_msg_template = await prisma.invoice_msg_template.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_msg_templateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Invoice_msg_templates 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 {invoice_msg_templateFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Invoice_msg_templates + * const invoice_msg_templates = await prisma.invoice_msg_template.findMany() + * + * // Get first 10 Invoice_msg_templates + * const invoice_msg_templates = await prisma.invoice_msg_template.findMany({ take: 10 }) + * + * // Only select the `id` + * const invoice_msg_templateWithIdOnly = await prisma.invoice_msg_template.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Invoice_msg_template. + * @param {invoice_msg_templateCreateArgs} args - Arguments to create a Invoice_msg_template. + * @example + * // Create one Invoice_msg_template + * const Invoice_msg_template = await prisma.invoice_msg_template.create({ + * data: { + * // ... data to create a Invoice_msg_template + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_msg_templateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Invoice_msg_templates. + * @param {invoice_msg_templateCreateManyArgs} args - Arguments to create many Invoice_msg_templates. + * @example + * // Create many Invoice_msg_templates + * const invoice_msg_template = await prisma.invoice_msg_template.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Invoice_msg_template. + * @param {invoice_msg_templateDeleteArgs} args - Arguments to delete one Invoice_msg_template. + * @example + * // Delete one Invoice_msg_template + * const Invoice_msg_template = await prisma.invoice_msg_template.delete({ + * where: { + * // ... filter to delete one Invoice_msg_template + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_msg_templateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Invoice_msg_template. + * @param {invoice_msg_templateUpdateArgs} args - Arguments to update one Invoice_msg_template. + * @example + * // Update one Invoice_msg_template + * const invoice_msg_template = await prisma.invoice_msg_template.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_msg_templateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Invoice_msg_templates. + * @param {invoice_msg_templateDeleteManyArgs} args - Arguments to filter Invoice_msg_templates to delete. + * @example + * // Delete a few Invoice_msg_templates + * const { count } = await prisma.invoice_msg_template.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Invoice_msg_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_msg_templateUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Invoice_msg_templates + * const invoice_msg_template = await prisma.invoice_msg_template.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Invoice_msg_template. + * @param {invoice_msg_templateUpsertArgs} args - Arguments to update or create a Invoice_msg_template. + * @example + * // Update or create a Invoice_msg_template + * const invoice_msg_template = await prisma.invoice_msg_template.upsert({ + * create: { + * // ... data to create a Invoice_msg_template + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Invoice_msg_template we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_msg_templateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Invoice_msg_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_msg_templateCountArgs} args - Arguments to filter Invoice_msg_templates to count. + * @example + * // Count the number of Invoice_msg_templates + * const count = await prisma.invoice_msg_template.count({ + * where: { + * // ... the filter for the Invoice_msg_templates 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 Invoice_msg_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Invoice_msg_templateAggregateArgs} 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 Invoice_msg_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_msg_templateGroupByArgs} 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 invoice_msg_templateGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: invoice_msg_templateGroupByArgs['orderBy'] } + : { orderBy?: invoice_msg_templateGroupByArgs['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 ? GetInvoice_msg_templateGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the invoice_msg_template model + */ +readonly fields: invoice_msg_templateFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for invoice_msg_template. + * 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__invoice_msg_templateClient 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 invoice_msg_template model + */ +export interface invoice_msg_templateFieldRefs { + readonly id: Prisma.FieldRef<"invoice_msg_template", 'BigInt'> + readonly name: Prisma.FieldRef<"invoice_msg_template", 'String'> + readonly message: Prisma.FieldRef<"invoice_msg_template", 'String'> +} + + +// Custom InputTypes +/** + * invoice_msg_template findUnique + */ +export type invoice_msg_templateFindUniqueArgs = { + /** + * Select specific fields to fetch from the invoice_msg_template + */ + select?: Prisma.invoice_msg_templateSelect | null + /** + * Omit specific fields from the invoice_msg_template + */ + omit?: Prisma.invoice_msg_templateOmit | null + /** + * Filter, which invoice_msg_template to fetch. + */ + where: Prisma.invoice_msg_templateWhereUniqueInput +} + +/** + * invoice_msg_template findUniqueOrThrow + */ +export type invoice_msg_templateFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice_msg_template + */ + select?: Prisma.invoice_msg_templateSelect | null + /** + * Omit specific fields from the invoice_msg_template + */ + omit?: Prisma.invoice_msg_templateOmit | null + /** + * Filter, which invoice_msg_template to fetch. + */ + where: Prisma.invoice_msg_templateWhereUniqueInput +} + +/** + * invoice_msg_template findFirst + */ +export type invoice_msg_templateFindFirstArgs = { + /** + * Select specific fields to fetch from the invoice_msg_template + */ + select?: Prisma.invoice_msg_templateSelect | null + /** + * Omit specific fields from the invoice_msg_template + */ + omit?: Prisma.invoice_msg_templateOmit | null + /** + * Filter, which invoice_msg_template to fetch. + */ + where?: Prisma.invoice_msg_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_msg_templates to fetch. + */ + orderBy?: Prisma.invoice_msg_templateOrderByWithRelationInput | Prisma.invoice_msg_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoice_msg_templates. + */ + cursor?: Prisma.invoice_msg_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_msg_templates 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` invoice_msg_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoice_msg_templates. + */ + distinct?: Prisma.Invoice_msg_templateScalarFieldEnum | Prisma.Invoice_msg_templateScalarFieldEnum[] +} + +/** + * invoice_msg_template findFirstOrThrow + */ +export type invoice_msg_templateFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice_msg_template + */ + select?: Prisma.invoice_msg_templateSelect | null + /** + * Omit specific fields from the invoice_msg_template + */ + omit?: Prisma.invoice_msg_templateOmit | null + /** + * Filter, which invoice_msg_template to fetch. + */ + where?: Prisma.invoice_msg_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_msg_templates to fetch. + */ + orderBy?: Prisma.invoice_msg_templateOrderByWithRelationInput | Prisma.invoice_msg_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoice_msg_templates. + */ + cursor?: Prisma.invoice_msg_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_msg_templates 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` invoice_msg_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoice_msg_templates. + */ + distinct?: Prisma.Invoice_msg_templateScalarFieldEnum | Prisma.Invoice_msg_templateScalarFieldEnum[] +} + +/** + * invoice_msg_template findMany + */ +export type invoice_msg_templateFindManyArgs = { + /** + * Select specific fields to fetch from the invoice_msg_template + */ + select?: Prisma.invoice_msg_templateSelect | null + /** + * Omit specific fields from the invoice_msg_template + */ + omit?: Prisma.invoice_msg_templateOmit | null + /** + * Filter, which invoice_msg_templates to fetch. + */ + where?: Prisma.invoice_msg_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_msg_templates to fetch. + */ + orderBy?: Prisma.invoice_msg_templateOrderByWithRelationInput | Prisma.invoice_msg_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing invoice_msg_templates. + */ + cursor?: Prisma.invoice_msg_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_msg_templates 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` invoice_msg_templates. + */ + skip?: number + distinct?: Prisma.Invoice_msg_templateScalarFieldEnum | Prisma.Invoice_msg_templateScalarFieldEnum[] +} + +/** + * invoice_msg_template create + */ +export type invoice_msg_templateCreateArgs = { + /** + * Select specific fields to fetch from the invoice_msg_template + */ + select?: Prisma.invoice_msg_templateSelect | null + /** + * Omit specific fields from the invoice_msg_template + */ + omit?: Prisma.invoice_msg_templateOmit | null + /** + * The data needed to create a invoice_msg_template. + */ + data?: Prisma.XOR +} + +/** + * invoice_msg_template createMany + */ +export type invoice_msg_templateCreateManyArgs = { + /** + * The data used to create many invoice_msg_templates. + */ + data: Prisma.invoice_msg_templateCreateManyInput | Prisma.invoice_msg_templateCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * invoice_msg_template update + */ +export type invoice_msg_templateUpdateArgs = { + /** + * Select specific fields to fetch from the invoice_msg_template + */ + select?: Prisma.invoice_msg_templateSelect | null + /** + * Omit specific fields from the invoice_msg_template + */ + omit?: Prisma.invoice_msg_templateOmit | null + /** + * The data needed to update a invoice_msg_template. + */ + data: Prisma.XOR + /** + * Choose, which invoice_msg_template to update. + */ + where: Prisma.invoice_msg_templateWhereUniqueInput +} + +/** + * invoice_msg_template updateMany + */ +export type invoice_msg_templateUpdateManyArgs = { + /** + * The data used to update invoice_msg_templates. + */ + data: Prisma.XOR + /** + * Filter which invoice_msg_templates to update + */ + where?: Prisma.invoice_msg_templateWhereInput + /** + * Limit how many invoice_msg_templates to update. + */ + limit?: number +} + +/** + * invoice_msg_template upsert + */ +export type invoice_msg_templateUpsertArgs = { + /** + * Select specific fields to fetch from the invoice_msg_template + */ + select?: Prisma.invoice_msg_templateSelect | null + /** + * Omit specific fields from the invoice_msg_template + */ + omit?: Prisma.invoice_msg_templateOmit | null + /** + * The filter to search for the invoice_msg_template to update in case it exists. + */ + where: Prisma.invoice_msg_templateWhereUniqueInput + /** + * In case the invoice_msg_template found by the `where` argument doesn't exist, create a new invoice_msg_template with this data. + */ + create: Prisma.XOR + /** + * In case the invoice_msg_template was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * invoice_msg_template delete + */ +export type invoice_msg_templateDeleteArgs = { + /** + * Select specific fields to fetch from the invoice_msg_template + */ + select?: Prisma.invoice_msg_templateSelect | null + /** + * Omit specific fields from the invoice_msg_template + */ + omit?: Prisma.invoice_msg_templateOmit | null + /** + * Filter which invoice_msg_template to delete. + */ + where: Prisma.invoice_msg_templateWhereUniqueInput +} + +/** + * invoice_msg_template deleteMany + */ +export type invoice_msg_templateDeleteManyArgs = { + /** + * Filter which invoice_msg_templates to delete + */ + where?: Prisma.invoice_msg_templateWhereInput + /** + * Limit how many invoice_msg_templates to delete. + */ + limit?: number +} + +/** + * invoice_msg_template without action + */ +export type invoice_msg_templateDefaultArgs = { + /** + * Select specific fields to fetch from the invoice_msg_template + */ + select?: Prisma.invoice_msg_templateSelect | null + /** + * Omit specific fields from the invoice_msg_template + */ + omit?: Prisma.invoice_msg_templateOmit | null +} diff --git a/prisma/generated/mariadb/models/invoice_tax.ts b/prisma/generated/mariadb/models/invoice_tax.ts new file mode 100644 index 0000000..e7a0ce1 --- /dev/null +++ b/prisma/generated/mariadb/models/invoice_tax.ts @@ -0,0 +1,1126 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `invoice_tax` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model invoice_tax + * + */ +export type invoice_taxModel = runtime.Types.Result.DefaultSelection + +export type AggregateInvoice_tax = { + _count: Invoice_taxCountAggregateOutputType | null + _avg: Invoice_taxAvgAggregateOutputType | null + _sum: Invoice_taxSumAggregateOutputType | null + _min: Invoice_taxMinAggregateOutputType | null + _max: Invoice_taxMaxAggregateOutputType | null +} + +export type Invoice_taxAvgAggregateOutputType = { + id: number | null + invoice_id: number | null + tax_rate: number | null + amount: number | null +} + +export type Invoice_taxSumAggregateOutputType = { + id: bigint | null + invoice_id: bigint | null + tax_rate: number | null + amount: number | null +} + +export type Invoice_taxMinAggregateOutputType = { + id: bigint | null + invoice_id: bigint | null + tax_name: string | null + tax_description: string | null + tax_rate: number | null + amount: number | null +} + +export type Invoice_taxMaxAggregateOutputType = { + id: bigint | null + invoice_id: bigint | null + tax_name: string | null + tax_description: string | null + tax_rate: number | null + amount: number | null +} + +export type Invoice_taxCountAggregateOutputType = { + id: number + invoice_id: number + tax_name: number + tax_description: number + tax_rate: number + amount: number + _all: number +} + + +export type Invoice_taxAvgAggregateInputType = { + id?: true + invoice_id?: true + tax_rate?: true + amount?: true +} + +export type Invoice_taxSumAggregateInputType = { + id?: true + invoice_id?: true + tax_rate?: true + amount?: true +} + +export type Invoice_taxMinAggregateInputType = { + id?: true + invoice_id?: true + tax_name?: true + tax_description?: true + tax_rate?: true + amount?: true +} + +export type Invoice_taxMaxAggregateInputType = { + id?: true + invoice_id?: true + tax_name?: true + tax_description?: true + tax_rate?: true + amount?: true +} + +export type Invoice_taxCountAggregateInputType = { + id?: true + invoice_id?: true + tax_name?: true + tax_description?: true + tax_rate?: true + amount?: true + _all?: true +} + +export type Invoice_taxAggregateArgs = { + /** + * Filter which invoice_tax to aggregate. + */ + where?: Prisma.invoice_taxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_taxes to fetch. + */ + orderBy?: Prisma.invoice_taxOrderByWithRelationInput | Prisma.invoice_taxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.invoice_taxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_taxes 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` invoice_taxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned invoice_taxes + **/ + _count?: true | Invoice_taxCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Invoice_taxAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Invoice_taxSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Invoice_taxMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Invoice_taxMaxAggregateInputType +} + +export type GetInvoice_taxAggregateType = { + [P in keyof T & keyof AggregateInvoice_tax]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type invoice_taxGroupByArgs = { + where?: Prisma.invoice_taxWhereInput + orderBy?: Prisma.invoice_taxOrderByWithAggregationInput | Prisma.invoice_taxOrderByWithAggregationInput[] + by: Prisma.Invoice_taxScalarFieldEnum[] | Prisma.Invoice_taxScalarFieldEnum + having?: Prisma.invoice_taxScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Invoice_taxCountAggregateInputType | true + _avg?: Invoice_taxAvgAggregateInputType + _sum?: Invoice_taxSumAggregateInputType + _min?: Invoice_taxMinAggregateInputType + _max?: Invoice_taxMaxAggregateInputType +} + +export type Invoice_taxGroupByOutputType = { + id: bigint + invoice_id: bigint | null + tax_name: string | null + tax_description: string | null + tax_rate: number | null + amount: number | null + _count: Invoice_taxCountAggregateOutputType | null + _avg: Invoice_taxAvgAggregateOutputType | null + _sum: Invoice_taxSumAggregateOutputType | null + _min: Invoice_taxMinAggregateOutputType | null + _max: Invoice_taxMaxAggregateOutputType | null +} + +type GetInvoice_taxGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Invoice_taxGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type invoice_taxWhereInput = { + AND?: Prisma.invoice_taxWhereInput | Prisma.invoice_taxWhereInput[] + OR?: Prisma.invoice_taxWhereInput[] + NOT?: Prisma.invoice_taxWhereInput | Prisma.invoice_taxWhereInput[] + id?: Prisma.BigIntFilter<"invoice_tax"> | bigint | number + invoice_id?: Prisma.BigIntNullableFilter<"invoice_tax"> | bigint | number | null + tax_name?: Prisma.StringNullableFilter<"invoice_tax"> | string | null + tax_description?: Prisma.StringNullableFilter<"invoice_tax"> | string | null + tax_rate?: Prisma.FloatNullableFilter<"invoice_tax"> | number | null + amount?: Prisma.FloatNullableFilter<"invoice_tax"> | number | null +} + +export type invoice_taxOrderByWithRelationInput = { + id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder + tax_name?: Prisma.SortOrderInput | Prisma.SortOrder + tax_description?: Prisma.SortOrderInput | Prisma.SortOrder + tax_rate?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.invoice_taxOrderByRelevanceInput +} + +export type invoice_taxWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.invoice_taxWhereInput | Prisma.invoice_taxWhereInput[] + OR?: Prisma.invoice_taxWhereInput[] + NOT?: Prisma.invoice_taxWhereInput | Prisma.invoice_taxWhereInput[] + invoice_id?: Prisma.BigIntNullableFilter<"invoice_tax"> | bigint | number | null + tax_name?: Prisma.StringNullableFilter<"invoice_tax"> | string | null + tax_description?: Prisma.StringNullableFilter<"invoice_tax"> | string | null + tax_rate?: Prisma.FloatNullableFilter<"invoice_tax"> | number | null + amount?: Prisma.FloatNullableFilter<"invoice_tax"> | number | null +}, "id"> + +export type invoice_taxOrderByWithAggregationInput = { + id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder + tax_name?: Prisma.SortOrderInput | Prisma.SortOrder + tax_description?: Prisma.SortOrderInput | Prisma.SortOrder + tax_rate?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.invoice_taxCountOrderByAggregateInput + _avg?: Prisma.invoice_taxAvgOrderByAggregateInput + _max?: Prisma.invoice_taxMaxOrderByAggregateInput + _min?: Prisma.invoice_taxMinOrderByAggregateInput + _sum?: Prisma.invoice_taxSumOrderByAggregateInput +} + +export type invoice_taxScalarWhereWithAggregatesInput = { + AND?: Prisma.invoice_taxScalarWhereWithAggregatesInput | Prisma.invoice_taxScalarWhereWithAggregatesInput[] + OR?: Prisma.invoice_taxScalarWhereWithAggregatesInput[] + NOT?: Prisma.invoice_taxScalarWhereWithAggregatesInput | Prisma.invoice_taxScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"invoice_tax"> | bigint | number + invoice_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_tax"> | bigint | number | null + tax_name?: Prisma.StringNullableWithAggregatesFilter<"invoice_tax"> | string | null + tax_description?: Prisma.StringNullableWithAggregatesFilter<"invoice_tax"> | string | null + tax_rate?: Prisma.FloatNullableWithAggregatesFilter<"invoice_tax"> | number | null + amount?: Prisma.FloatNullableWithAggregatesFilter<"invoice_tax"> | number | null +} + +export type invoice_taxCreateInput = { + id?: bigint | number + invoice_id?: bigint | number | null + tax_name?: string | null + tax_description?: string | null + tax_rate?: number | null + amount?: number | null +} + +export type invoice_taxUncheckedCreateInput = { + id?: bigint | number + invoice_id?: bigint | number | null + tax_name?: string | null + tax_description?: string | null + tax_rate?: number | null + amount?: number | null +} + +export type invoice_taxUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type invoice_taxUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type invoice_taxCreateManyInput = { + id?: bigint | number + invoice_id?: bigint | number | null + tax_name?: string | null + tax_description?: string | null + tax_rate?: number | null + amount?: number | null +} + +export type invoice_taxUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type invoice_taxUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type invoice_taxOrderByRelevanceInput = { + fields: Prisma.invoice_taxOrderByRelevanceFieldEnum | Prisma.invoice_taxOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type invoice_taxCountOrderByAggregateInput = { + id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + tax_name?: Prisma.SortOrder + tax_description?: Prisma.SortOrder + tax_rate?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type invoice_taxAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + tax_rate?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type invoice_taxMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + tax_name?: Prisma.SortOrder + tax_description?: Prisma.SortOrder + tax_rate?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type invoice_taxMinOrderByAggregateInput = { + id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + tax_name?: Prisma.SortOrder + tax_description?: Prisma.SortOrder + tax_rate?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type invoice_taxSumOrderByAggregateInput = { + id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + tax_rate?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + + + +export type invoice_taxSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + invoice_id?: boolean + tax_name?: boolean + tax_description?: boolean + tax_rate?: boolean + amount?: boolean +}, ExtArgs["result"]["invoice_tax"]> + + + +export type invoice_taxSelectScalar = { + id?: boolean + invoice_id?: boolean + tax_name?: boolean + tax_description?: boolean + tax_rate?: boolean + amount?: boolean +} + +export type invoice_taxOmit = runtime.Types.Extensions.GetOmit<"id" | "invoice_id" | "tax_name" | "tax_description" | "tax_rate" | "amount", ExtArgs["result"]["invoice_tax"]> + +export type $invoice_taxPayload = { + name: "invoice_tax" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + invoice_id: bigint | null + tax_name: string | null + tax_description: string | null + tax_rate: number | null + amount: number | null + }, ExtArgs["result"]["invoice_tax"]> + composites: {} +} + +export type invoice_taxGetPayload = runtime.Types.Result.GetResult + +export type invoice_taxCountArgs = + Omit & { + select?: Invoice_taxCountAggregateInputType | true + } + +export interface invoice_taxDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['invoice_tax'], meta: { name: 'invoice_tax' } } + /** + * Find zero or one Invoice_tax that matches the filter. + * @param {invoice_taxFindUniqueArgs} args - Arguments to find a Invoice_tax + * @example + * // Get one Invoice_tax + * const invoice_tax = await prisma.invoice_tax.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Invoice_tax that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {invoice_taxFindUniqueOrThrowArgs} args - Arguments to find a Invoice_tax + * @example + * // Get one Invoice_tax + * const invoice_tax = await prisma.invoice_tax.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice_tax 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 {invoice_taxFindFirstArgs} args - Arguments to find a Invoice_tax + * @example + * // Get one Invoice_tax + * const invoice_tax = await prisma.invoice_tax.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice_tax 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 {invoice_taxFindFirstOrThrowArgs} args - Arguments to find a Invoice_tax + * @example + * // Get one Invoice_tax + * const invoice_tax = await prisma.invoice_tax.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Invoice_taxes 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 {invoice_taxFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Invoice_taxes + * const invoice_taxes = await prisma.invoice_tax.findMany() + * + * // Get first 10 Invoice_taxes + * const invoice_taxes = await prisma.invoice_tax.findMany({ take: 10 }) + * + * // Only select the `id` + * const invoice_taxWithIdOnly = await prisma.invoice_tax.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Invoice_tax. + * @param {invoice_taxCreateArgs} args - Arguments to create a Invoice_tax. + * @example + * // Create one Invoice_tax + * const Invoice_tax = await prisma.invoice_tax.create({ + * data: { + * // ... data to create a Invoice_tax + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Invoice_taxes. + * @param {invoice_taxCreateManyArgs} args - Arguments to create many Invoice_taxes. + * @example + * // Create many Invoice_taxes + * const invoice_tax = await prisma.invoice_tax.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Invoice_tax. + * @param {invoice_taxDeleteArgs} args - Arguments to delete one Invoice_tax. + * @example + * // Delete one Invoice_tax + * const Invoice_tax = await prisma.invoice_tax.delete({ + * where: { + * // ... filter to delete one Invoice_tax + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Invoice_tax. + * @param {invoice_taxUpdateArgs} args - Arguments to update one Invoice_tax. + * @example + * // Update one Invoice_tax + * const invoice_tax = await prisma.invoice_tax.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Invoice_taxes. + * @param {invoice_taxDeleteManyArgs} args - Arguments to filter Invoice_taxes to delete. + * @example + * // Delete a few Invoice_taxes + * const { count } = await prisma.invoice_tax.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Invoice_taxes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_taxUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Invoice_taxes + * const invoice_tax = await prisma.invoice_tax.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Invoice_tax. + * @param {invoice_taxUpsertArgs} args - Arguments to update or create a Invoice_tax. + * @example + * // Update or create a Invoice_tax + * const invoice_tax = await prisma.invoice_tax.upsert({ + * create: { + * // ... data to create a Invoice_tax + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Invoice_tax we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Invoice_taxes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_taxCountArgs} args - Arguments to filter Invoice_taxes to count. + * @example + * // Count the number of Invoice_taxes + * const count = await prisma.invoice_tax.count({ + * where: { + * // ... the filter for the Invoice_taxes 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 Invoice_tax. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Invoice_taxAggregateArgs} 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 Invoice_tax. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_taxGroupByArgs} 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 invoice_taxGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: invoice_taxGroupByArgs['orderBy'] } + : { orderBy?: invoice_taxGroupByArgs['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 ? GetInvoice_taxGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the invoice_tax model + */ +readonly fields: invoice_taxFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for invoice_tax. + * 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__invoice_taxClient 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 invoice_tax model + */ +export interface invoice_taxFieldRefs { + readonly id: Prisma.FieldRef<"invoice_tax", 'BigInt'> + readonly invoice_id: Prisma.FieldRef<"invoice_tax", 'BigInt'> + readonly tax_name: Prisma.FieldRef<"invoice_tax", 'String'> + readonly tax_description: Prisma.FieldRef<"invoice_tax", 'String'> + readonly tax_rate: Prisma.FieldRef<"invoice_tax", 'Float'> + readonly amount: Prisma.FieldRef<"invoice_tax", 'Float'> +} + + +// Custom InputTypes +/** + * invoice_tax findUnique + */ +export type invoice_taxFindUniqueArgs = { + /** + * Select specific fields to fetch from the invoice_tax + */ + select?: Prisma.invoice_taxSelect | null + /** + * Omit specific fields from the invoice_tax + */ + omit?: Prisma.invoice_taxOmit | null + /** + * Filter, which invoice_tax to fetch. + */ + where: Prisma.invoice_taxWhereUniqueInput +} + +/** + * invoice_tax findUniqueOrThrow + */ +export type invoice_taxFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice_tax + */ + select?: Prisma.invoice_taxSelect | null + /** + * Omit specific fields from the invoice_tax + */ + omit?: Prisma.invoice_taxOmit | null + /** + * Filter, which invoice_tax to fetch. + */ + where: Prisma.invoice_taxWhereUniqueInput +} + +/** + * invoice_tax findFirst + */ +export type invoice_taxFindFirstArgs = { + /** + * Select specific fields to fetch from the invoice_tax + */ + select?: Prisma.invoice_taxSelect | null + /** + * Omit specific fields from the invoice_tax + */ + omit?: Prisma.invoice_taxOmit | null + /** + * Filter, which invoice_tax to fetch. + */ + where?: Prisma.invoice_taxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_taxes to fetch. + */ + orderBy?: Prisma.invoice_taxOrderByWithRelationInput | Prisma.invoice_taxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoice_taxes. + */ + cursor?: Prisma.invoice_taxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_taxes 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` invoice_taxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoice_taxes. + */ + distinct?: Prisma.Invoice_taxScalarFieldEnum | Prisma.Invoice_taxScalarFieldEnum[] +} + +/** + * invoice_tax findFirstOrThrow + */ +export type invoice_taxFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice_tax + */ + select?: Prisma.invoice_taxSelect | null + /** + * Omit specific fields from the invoice_tax + */ + omit?: Prisma.invoice_taxOmit | null + /** + * Filter, which invoice_tax to fetch. + */ + where?: Prisma.invoice_taxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_taxes to fetch. + */ + orderBy?: Prisma.invoice_taxOrderByWithRelationInput | Prisma.invoice_taxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoice_taxes. + */ + cursor?: Prisma.invoice_taxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_taxes 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` invoice_taxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoice_taxes. + */ + distinct?: Prisma.Invoice_taxScalarFieldEnum | Prisma.Invoice_taxScalarFieldEnum[] +} + +/** + * invoice_tax findMany + */ +export type invoice_taxFindManyArgs = { + /** + * Select specific fields to fetch from the invoice_tax + */ + select?: Prisma.invoice_taxSelect | null + /** + * Omit specific fields from the invoice_tax + */ + omit?: Prisma.invoice_taxOmit | null + /** + * Filter, which invoice_taxes to fetch. + */ + where?: Prisma.invoice_taxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_taxes to fetch. + */ + orderBy?: Prisma.invoice_taxOrderByWithRelationInput | Prisma.invoice_taxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing invoice_taxes. + */ + cursor?: Prisma.invoice_taxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_taxes 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` invoice_taxes. + */ + skip?: number + distinct?: Prisma.Invoice_taxScalarFieldEnum | Prisma.Invoice_taxScalarFieldEnum[] +} + +/** + * invoice_tax create + */ +export type invoice_taxCreateArgs = { + /** + * Select specific fields to fetch from the invoice_tax + */ + select?: Prisma.invoice_taxSelect | null + /** + * Omit specific fields from the invoice_tax + */ + omit?: Prisma.invoice_taxOmit | null + /** + * The data needed to create a invoice_tax. + */ + data?: Prisma.XOR +} + +/** + * invoice_tax createMany + */ +export type invoice_taxCreateManyArgs = { + /** + * The data used to create many invoice_taxes. + */ + data: Prisma.invoice_taxCreateManyInput | Prisma.invoice_taxCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * invoice_tax update + */ +export type invoice_taxUpdateArgs = { + /** + * Select specific fields to fetch from the invoice_tax + */ + select?: Prisma.invoice_taxSelect | null + /** + * Omit specific fields from the invoice_tax + */ + omit?: Prisma.invoice_taxOmit | null + /** + * The data needed to update a invoice_tax. + */ + data: Prisma.XOR + /** + * Choose, which invoice_tax to update. + */ + where: Prisma.invoice_taxWhereUniqueInput +} + +/** + * invoice_tax updateMany + */ +export type invoice_taxUpdateManyArgs = { + /** + * The data used to update invoice_taxes. + */ + data: Prisma.XOR + /** + * Filter which invoice_taxes to update + */ + where?: Prisma.invoice_taxWhereInput + /** + * Limit how many invoice_taxes to update. + */ + limit?: number +} + +/** + * invoice_tax upsert + */ +export type invoice_taxUpsertArgs = { + /** + * Select specific fields to fetch from the invoice_tax + */ + select?: Prisma.invoice_taxSelect | null + /** + * Omit specific fields from the invoice_tax + */ + omit?: Prisma.invoice_taxOmit | null + /** + * The filter to search for the invoice_tax to update in case it exists. + */ + where: Prisma.invoice_taxWhereUniqueInput + /** + * In case the invoice_tax found by the `where` argument doesn't exist, create a new invoice_tax with this data. + */ + create: Prisma.XOR + /** + * In case the invoice_tax was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * invoice_tax delete + */ +export type invoice_taxDeleteArgs = { + /** + * Select specific fields to fetch from the invoice_tax + */ + select?: Prisma.invoice_taxSelect | null + /** + * Omit specific fields from the invoice_tax + */ + omit?: Prisma.invoice_taxOmit | null + /** + * Filter which invoice_tax to delete. + */ + where: Prisma.invoice_taxWhereUniqueInput +} + +/** + * invoice_tax deleteMany + */ +export type invoice_taxDeleteManyArgs = { + /** + * Filter which invoice_taxes to delete + */ + where?: Prisma.invoice_taxWhereInput + /** + * Limit how many invoice_taxes to delete. + */ + limit?: number +} + +/** + * invoice_tax without action + */ +export type invoice_taxDefaultArgs = { + /** + * Select specific fields to fetch from the invoice_tax + */ + select?: Prisma.invoice_taxSelect | null + /** + * Omit specific fields from the invoice_tax + */ + omit?: Prisma.invoice_taxOmit | null +} diff --git a/prisma/generated/mariadb/models/invoice_tax_bk.ts b/prisma/generated/mariadb/models/invoice_tax_bk.ts new file mode 100644 index 0000000..4dd3089 --- /dev/null +++ b/prisma/generated/mariadb/models/invoice_tax_bk.ts @@ -0,0 +1,1126 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `invoice_tax_bk` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model invoice_tax_bk + * + */ +export type invoice_tax_bkModel = runtime.Types.Result.DefaultSelection + +export type AggregateInvoice_tax_bk = { + _count: Invoice_tax_bkCountAggregateOutputType | null + _avg: Invoice_tax_bkAvgAggregateOutputType | null + _sum: Invoice_tax_bkSumAggregateOutputType | null + _min: Invoice_tax_bkMinAggregateOutputType | null + _max: Invoice_tax_bkMaxAggregateOutputType | null +} + +export type Invoice_tax_bkAvgAggregateOutputType = { + id: number | null + invoice_id: number | null + tax_rate: number | null + amount: number | null +} + +export type Invoice_tax_bkSumAggregateOutputType = { + id: bigint | null + invoice_id: bigint | null + tax_rate: number | null + amount: number | null +} + +export type Invoice_tax_bkMinAggregateOutputType = { + id: bigint | null + invoice_id: bigint | null + tax_name: string | null + tax_description: string | null + tax_rate: number | null + amount: number | null +} + +export type Invoice_tax_bkMaxAggregateOutputType = { + id: bigint | null + invoice_id: bigint | null + tax_name: string | null + tax_description: string | null + tax_rate: number | null + amount: number | null +} + +export type Invoice_tax_bkCountAggregateOutputType = { + id: number + invoice_id: number + tax_name: number + tax_description: number + tax_rate: number + amount: number + _all: number +} + + +export type Invoice_tax_bkAvgAggregateInputType = { + id?: true + invoice_id?: true + tax_rate?: true + amount?: true +} + +export type Invoice_tax_bkSumAggregateInputType = { + id?: true + invoice_id?: true + tax_rate?: true + amount?: true +} + +export type Invoice_tax_bkMinAggregateInputType = { + id?: true + invoice_id?: true + tax_name?: true + tax_description?: true + tax_rate?: true + amount?: true +} + +export type Invoice_tax_bkMaxAggregateInputType = { + id?: true + invoice_id?: true + tax_name?: true + tax_description?: true + tax_rate?: true + amount?: true +} + +export type Invoice_tax_bkCountAggregateInputType = { + id?: true + invoice_id?: true + tax_name?: true + tax_description?: true + tax_rate?: true + amount?: true + _all?: true +} + +export type Invoice_tax_bkAggregateArgs = { + /** + * Filter which invoice_tax_bk to aggregate. + */ + where?: Prisma.invoice_tax_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_tax_bks to fetch. + */ + orderBy?: Prisma.invoice_tax_bkOrderByWithRelationInput | Prisma.invoice_tax_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.invoice_tax_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_tax_bks 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` invoice_tax_bks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned invoice_tax_bks + **/ + _count?: true | Invoice_tax_bkCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Invoice_tax_bkAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Invoice_tax_bkSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Invoice_tax_bkMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Invoice_tax_bkMaxAggregateInputType +} + +export type GetInvoice_tax_bkAggregateType = { + [P in keyof T & keyof AggregateInvoice_tax_bk]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type invoice_tax_bkGroupByArgs = { + where?: Prisma.invoice_tax_bkWhereInput + orderBy?: Prisma.invoice_tax_bkOrderByWithAggregationInput | Prisma.invoice_tax_bkOrderByWithAggregationInput[] + by: Prisma.Invoice_tax_bkScalarFieldEnum[] | Prisma.Invoice_tax_bkScalarFieldEnum + having?: Prisma.invoice_tax_bkScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Invoice_tax_bkCountAggregateInputType | true + _avg?: Invoice_tax_bkAvgAggregateInputType + _sum?: Invoice_tax_bkSumAggregateInputType + _min?: Invoice_tax_bkMinAggregateInputType + _max?: Invoice_tax_bkMaxAggregateInputType +} + +export type Invoice_tax_bkGroupByOutputType = { + id: bigint + invoice_id: bigint | null + tax_name: string | null + tax_description: string | null + tax_rate: number | null + amount: number | null + _count: Invoice_tax_bkCountAggregateOutputType | null + _avg: Invoice_tax_bkAvgAggregateOutputType | null + _sum: Invoice_tax_bkSumAggregateOutputType | null + _min: Invoice_tax_bkMinAggregateOutputType | null + _max: Invoice_tax_bkMaxAggregateOutputType | null +} + +type GetInvoice_tax_bkGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Invoice_tax_bkGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type invoice_tax_bkWhereInput = { + AND?: Prisma.invoice_tax_bkWhereInput | Prisma.invoice_tax_bkWhereInput[] + OR?: Prisma.invoice_tax_bkWhereInput[] + NOT?: Prisma.invoice_tax_bkWhereInput | Prisma.invoice_tax_bkWhereInput[] + id?: Prisma.BigIntFilter<"invoice_tax_bk"> | bigint | number + invoice_id?: Prisma.BigIntNullableFilter<"invoice_tax_bk"> | bigint | number | null + tax_name?: Prisma.StringNullableFilter<"invoice_tax_bk"> | string | null + tax_description?: Prisma.StringNullableFilter<"invoice_tax_bk"> | string | null + tax_rate?: Prisma.FloatNullableFilter<"invoice_tax_bk"> | number | null + amount?: Prisma.FloatNullableFilter<"invoice_tax_bk"> | number | null +} + +export type invoice_tax_bkOrderByWithRelationInput = { + id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder + tax_name?: Prisma.SortOrderInput | Prisma.SortOrder + tax_description?: Prisma.SortOrderInput | Prisma.SortOrder + tax_rate?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.invoice_tax_bkOrderByRelevanceInput +} + +export type invoice_tax_bkWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.invoice_tax_bkWhereInput | Prisma.invoice_tax_bkWhereInput[] + OR?: Prisma.invoice_tax_bkWhereInput[] + NOT?: Prisma.invoice_tax_bkWhereInput | Prisma.invoice_tax_bkWhereInput[] + invoice_id?: Prisma.BigIntNullableFilter<"invoice_tax_bk"> | bigint | number | null + tax_name?: Prisma.StringNullableFilter<"invoice_tax_bk"> | string | null + tax_description?: Prisma.StringNullableFilter<"invoice_tax_bk"> | string | null + tax_rate?: Prisma.FloatNullableFilter<"invoice_tax_bk"> | number | null + amount?: Prisma.FloatNullableFilter<"invoice_tax_bk"> | number | null +}, "id"> + +export type invoice_tax_bkOrderByWithAggregationInput = { + id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder + tax_name?: Prisma.SortOrderInput | Prisma.SortOrder + tax_description?: Prisma.SortOrderInput | Prisma.SortOrder + tax_rate?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.invoice_tax_bkCountOrderByAggregateInput + _avg?: Prisma.invoice_tax_bkAvgOrderByAggregateInput + _max?: Prisma.invoice_tax_bkMaxOrderByAggregateInput + _min?: Prisma.invoice_tax_bkMinOrderByAggregateInput + _sum?: Prisma.invoice_tax_bkSumOrderByAggregateInput +} + +export type invoice_tax_bkScalarWhereWithAggregatesInput = { + AND?: Prisma.invoice_tax_bkScalarWhereWithAggregatesInput | Prisma.invoice_tax_bkScalarWhereWithAggregatesInput[] + OR?: Prisma.invoice_tax_bkScalarWhereWithAggregatesInput[] + NOT?: Prisma.invoice_tax_bkScalarWhereWithAggregatesInput | Prisma.invoice_tax_bkScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"invoice_tax_bk"> | bigint | number + invoice_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_tax_bk"> | bigint | number | null + tax_name?: Prisma.StringNullableWithAggregatesFilter<"invoice_tax_bk"> | string | null + tax_description?: Prisma.StringNullableWithAggregatesFilter<"invoice_tax_bk"> | string | null + tax_rate?: Prisma.FloatNullableWithAggregatesFilter<"invoice_tax_bk"> | number | null + amount?: Prisma.FloatNullableWithAggregatesFilter<"invoice_tax_bk"> | number | null +} + +export type invoice_tax_bkCreateInput = { + id?: bigint | number + invoice_id?: bigint | number | null + tax_name?: string | null + tax_description?: string | null + tax_rate?: number | null + amount?: number | null +} + +export type invoice_tax_bkUncheckedCreateInput = { + id?: bigint | number + invoice_id?: bigint | number | null + tax_name?: string | null + tax_description?: string | null + tax_rate?: number | null + amount?: number | null +} + +export type invoice_tax_bkUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type invoice_tax_bkUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type invoice_tax_bkCreateManyInput = { + id?: bigint | number + invoice_id?: bigint | number | null + tax_name?: string | null + tax_description?: string | null + tax_rate?: number | null + amount?: number | null +} + +export type invoice_tax_bkUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type invoice_tax_bkUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type invoice_tax_bkOrderByRelevanceInput = { + fields: Prisma.invoice_tax_bkOrderByRelevanceFieldEnum | Prisma.invoice_tax_bkOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type invoice_tax_bkCountOrderByAggregateInput = { + id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + tax_name?: Prisma.SortOrder + tax_description?: Prisma.SortOrder + tax_rate?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type invoice_tax_bkAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + tax_rate?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type invoice_tax_bkMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + tax_name?: Prisma.SortOrder + tax_description?: Prisma.SortOrder + tax_rate?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type invoice_tax_bkMinOrderByAggregateInput = { + id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + tax_name?: Prisma.SortOrder + tax_description?: Prisma.SortOrder + tax_rate?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type invoice_tax_bkSumOrderByAggregateInput = { + id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + tax_rate?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + + + +export type invoice_tax_bkSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + invoice_id?: boolean + tax_name?: boolean + tax_description?: boolean + tax_rate?: boolean + amount?: boolean +}, ExtArgs["result"]["invoice_tax_bk"]> + + + +export type invoice_tax_bkSelectScalar = { + id?: boolean + invoice_id?: boolean + tax_name?: boolean + tax_description?: boolean + tax_rate?: boolean + amount?: boolean +} + +export type invoice_tax_bkOmit = runtime.Types.Extensions.GetOmit<"id" | "invoice_id" | "tax_name" | "tax_description" | "tax_rate" | "amount", ExtArgs["result"]["invoice_tax_bk"]> + +export type $invoice_tax_bkPayload = { + name: "invoice_tax_bk" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + invoice_id: bigint | null + tax_name: string | null + tax_description: string | null + tax_rate: number | null + amount: number | null + }, ExtArgs["result"]["invoice_tax_bk"]> + composites: {} +} + +export type invoice_tax_bkGetPayload = runtime.Types.Result.GetResult + +export type invoice_tax_bkCountArgs = + Omit & { + select?: Invoice_tax_bkCountAggregateInputType | true + } + +export interface invoice_tax_bkDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['invoice_tax_bk'], meta: { name: 'invoice_tax_bk' } } + /** + * Find zero or one Invoice_tax_bk that matches the filter. + * @param {invoice_tax_bkFindUniqueArgs} args - Arguments to find a Invoice_tax_bk + * @example + * // Get one Invoice_tax_bk + * const invoice_tax_bk = await prisma.invoice_tax_bk.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_tax_bkClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Invoice_tax_bk that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {invoice_tax_bkFindUniqueOrThrowArgs} args - Arguments to find a Invoice_tax_bk + * @example + * // Get one Invoice_tax_bk + * const invoice_tax_bk = await prisma.invoice_tax_bk.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_tax_bkClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice_tax_bk 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 {invoice_tax_bkFindFirstArgs} args - Arguments to find a Invoice_tax_bk + * @example + * // Get one Invoice_tax_bk + * const invoice_tax_bk = await prisma.invoice_tax_bk.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_tax_bkClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Invoice_tax_bk 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 {invoice_tax_bkFindFirstOrThrowArgs} args - Arguments to find a Invoice_tax_bk + * @example + * // Get one Invoice_tax_bk + * const invoice_tax_bk = await prisma.invoice_tax_bk.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_tax_bkClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Invoice_tax_bks 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 {invoice_tax_bkFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Invoice_tax_bks + * const invoice_tax_bks = await prisma.invoice_tax_bk.findMany() + * + * // Get first 10 Invoice_tax_bks + * const invoice_tax_bks = await prisma.invoice_tax_bk.findMany({ take: 10 }) + * + * // Only select the `id` + * const invoice_tax_bkWithIdOnly = await prisma.invoice_tax_bk.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Invoice_tax_bk. + * @param {invoice_tax_bkCreateArgs} args - Arguments to create a Invoice_tax_bk. + * @example + * // Create one Invoice_tax_bk + * const Invoice_tax_bk = await prisma.invoice_tax_bk.create({ + * data: { + * // ... data to create a Invoice_tax_bk + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_tax_bkClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Invoice_tax_bks. + * @param {invoice_tax_bkCreateManyArgs} args - Arguments to create many Invoice_tax_bks. + * @example + * // Create many Invoice_tax_bks + * const invoice_tax_bk = await prisma.invoice_tax_bk.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Invoice_tax_bk. + * @param {invoice_tax_bkDeleteArgs} args - Arguments to delete one Invoice_tax_bk. + * @example + * // Delete one Invoice_tax_bk + * const Invoice_tax_bk = await prisma.invoice_tax_bk.delete({ + * where: { + * // ... filter to delete one Invoice_tax_bk + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_tax_bkClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Invoice_tax_bk. + * @param {invoice_tax_bkUpdateArgs} args - Arguments to update one Invoice_tax_bk. + * @example + * // Update one Invoice_tax_bk + * const invoice_tax_bk = await prisma.invoice_tax_bk.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_tax_bkClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Invoice_tax_bks. + * @param {invoice_tax_bkDeleteManyArgs} args - Arguments to filter Invoice_tax_bks to delete. + * @example + * // Delete a few Invoice_tax_bks + * const { count } = await prisma.invoice_tax_bk.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Invoice_tax_bks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_tax_bkUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Invoice_tax_bks + * const invoice_tax_bk = await prisma.invoice_tax_bk.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Invoice_tax_bk. + * @param {invoice_tax_bkUpsertArgs} args - Arguments to update or create a Invoice_tax_bk. + * @example + * // Update or create a Invoice_tax_bk + * const invoice_tax_bk = await prisma.invoice_tax_bk.upsert({ + * create: { + * // ... data to create a Invoice_tax_bk + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Invoice_tax_bk we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_tax_bkClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Invoice_tax_bks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_tax_bkCountArgs} args - Arguments to filter Invoice_tax_bks to count. + * @example + * // Count the number of Invoice_tax_bks + * const count = await prisma.invoice_tax_bk.count({ + * where: { + * // ... the filter for the Invoice_tax_bks 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 Invoice_tax_bk. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Invoice_tax_bkAggregateArgs} 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 Invoice_tax_bk. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {invoice_tax_bkGroupByArgs} 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 invoice_tax_bkGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: invoice_tax_bkGroupByArgs['orderBy'] } + : { orderBy?: invoice_tax_bkGroupByArgs['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 ? GetInvoice_tax_bkGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the invoice_tax_bk model + */ +readonly fields: invoice_tax_bkFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for invoice_tax_bk. + * 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__invoice_tax_bkClient 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 invoice_tax_bk model + */ +export interface invoice_tax_bkFieldRefs { + readonly id: Prisma.FieldRef<"invoice_tax_bk", 'BigInt'> + readonly invoice_id: Prisma.FieldRef<"invoice_tax_bk", 'BigInt'> + readonly tax_name: Prisma.FieldRef<"invoice_tax_bk", 'String'> + readonly tax_description: Prisma.FieldRef<"invoice_tax_bk", 'String'> + readonly tax_rate: Prisma.FieldRef<"invoice_tax_bk", 'Float'> + readonly amount: Prisma.FieldRef<"invoice_tax_bk", 'Float'> +} + + +// Custom InputTypes +/** + * invoice_tax_bk findUnique + */ +export type invoice_tax_bkFindUniqueArgs = { + /** + * Select specific fields to fetch from the invoice_tax_bk + */ + select?: Prisma.invoice_tax_bkSelect | null + /** + * Omit specific fields from the invoice_tax_bk + */ + omit?: Prisma.invoice_tax_bkOmit | null + /** + * Filter, which invoice_tax_bk to fetch. + */ + where: Prisma.invoice_tax_bkWhereUniqueInput +} + +/** + * invoice_tax_bk findUniqueOrThrow + */ +export type invoice_tax_bkFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice_tax_bk + */ + select?: Prisma.invoice_tax_bkSelect | null + /** + * Omit specific fields from the invoice_tax_bk + */ + omit?: Prisma.invoice_tax_bkOmit | null + /** + * Filter, which invoice_tax_bk to fetch. + */ + where: Prisma.invoice_tax_bkWhereUniqueInput +} + +/** + * invoice_tax_bk findFirst + */ +export type invoice_tax_bkFindFirstArgs = { + /** + * Select specific fields to fetch from the invoice_tax_bk + */ + select?: Prisma.invoice_tax_bkSelect | null + /** + * Omit specific fields from the invoice_tax_bk + */ + omit?: Prisma.invoice_tax_bkOmit | null + /** + * Filter, which invoice_tax_bk to fetch. + */ + where?: Prisma.invoice_tax_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_tax_bks to fetch. + */ + orderBy?: Prisma.invoice_tax_bkOrderByWithRelationInput | Prisma.invoice_tax_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoice_tax_bks. + */ + cursor?: Prisma.invoice_tax_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_tax_bks 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` invoice_tax_bks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoice_tax_bks. + */ + distinct?: Prisma.Invoice_tax_bkScalarFieldEnum | Prisma.Invoice_tax_bkScalarFieldEnum[] +} + +/** + * invoice_tax_bk findFirstOrThrow + */ +export type invoice_tax_bkFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the invoice_tax_bk + */ + select?: Prisma.invoice_tax_bkSelect | null + /** + * Omit specific fields from the invoice_tax_bk + */ + omit?: Prisma.invoice_tax_bkOmit | null + /** + * Filter, which invoice_tax_bk to fetch. + */ + where?: Prisma.invoice_tax_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_tax_bks to fetch. + */ + orderBy?: Prisma.invoice_tax_bkOrderByWithRelationInput | Prisma.invoice_tax_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for invoice_tax_bks. + */ + cursor?: Prisma.invoice_tax_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_tax_bks 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` invoice_tax_bks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of invoice_tax_bks. + */ + distinct?: Prisma.Invoice_tax_bkScalarFieldEnum | Prisma.Invoice_tax_bkScalarFieldEnum[] +} + +/** + * invoice_tax_bk findMany + */ +export type invoice_tax_bkFindManyArgs = { + /** + * Select specific fields to fetch from the invoice_tax_bk + */ + select?: Prisma.invoice_tax_bkSelect | null + /** + * Omit specific fields from the invoice_tax_bk + */ + omit?: Prisma.invoice_tax_bkOmit | null + /** + * Filter, which invoice_tax_bks to fetch. + */ + where?: Prisma.invoice_tax_bkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of invoice_tax_bks to fetch. + */ + orderBy?: Prisma.invoice_tax_bkOrderByWithRelationInput | Prisma.invoice_tax_bkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing invoice_tax_bks. + */ + cursor?: Prisma.invoice_tax_bkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` invoice_tax_bks 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` invoice_tax_bks. + */ + skip?: number + distinct?: Prisma.Invoice_tax_bkScalarFieldEnum | Prisma.Invoice_tax_bkScalarFieldEnum[] +} + +/** + * invoice_tax_bk create + */ +export type invoice_tax_bkCreateArgs = { + /** + * Select specific fields to fetch from the invoice_tax_bk + */ + select?: Prisma.invoice_tax_bkSelect | null + /** + * Omit specific fields from the invoice_tax_bk + */ + omit?: Prisma.invoice_tax_bkOmit | null + /** + * The data needed to create a invoice_tax_bk. + */ + data?: Prisma.XOR +} + +/** + * invoice_tax_bk createMany + */ +export type invoice_tax_bkCreateManyArgs = { + /** + * The data used to create many invoice_tax_bks. + */ + data: Prisma.invoice_tax_bkCreateManyInput | Prisma.invoice_tax_bkCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * invoice_tax_bk update + */ +export type invoice_tax_bkUpdateArgs = { + /** + * Select specific fields to fetch from the invoice_tax_bk + */ + select?: Prisma.invoice_tax_bkSelect | null + /** + * Omit specific fields from the invoice_tax_bk + */ + omit?: Prisma.invoice_tax_bkOmit | null + /** + * The data needed to update a invoice_tax_bk. + */ + data: Prisma.XOR + /** + * Choose, which invoice_tax_bk to update. + */ + where: Prisma.invoice_tax_bkWhereUniqueInput +} + +/** + * invoice_tax_bk updateMany + */ +export type invoice_tax_bkUpdateManyArgs = { + /** + * The data used to update invoice_tax_bks. + */ + data: Prisma.XOR + /** + * Filter which invoice_tax_bks to update + */ + where?: Prisma.invoice_tax_bkWhereInput + /** + * Limit how many invoice_tax_bks to update. + */ + limit?: number +} + +/** + * invoice_tax_bk upsert + */ +export type invoice_tax_bkUpsertArgs = { + /** + * Select specific fields to fetch from the invoice_tax_bk + */ + select?: Prisma.invoice_tax_bkSelect | null + /** + * Omit specific fields from the invoice_tax_bk + */ + omit?: Prisma.invoice_tax_bkOmit | null + /** + * The filter to search for the invoice_tax_bk to update in case it exists. + */ + where: Prisma.invoice_tax_bkWhereUniqueInput + /** + * In case the invoice_tax_bk found by the `where` argument doesn't exist, create a new invoice_tax_bk with this data. + */ + create: Prisma.XOR + /** + * In case the invoice_tax_bk was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * invoice_tax_bk delete + */ +export type invoice_tax_bkDeleteArgs = { + /** + * Select specific fields to fetch from the invoice_tax_bk + */ + select?: Prisma.invoice_tax_bkSelect | null + /** + * Omit specific fields from the invoice_tax_bk + */ + omit?: Prisma.invoice_tax_bkOmit | null + /** + * Filter which invoice_tax_bk to delete. + */ + where: Prisma.invoice_tax_bkWhereUniqueInput +} + +/** + * invoice_tax_bk deleteMany + */ +export type invoice_tax_bkDeleteManyArgs = { + /** + * Filter which invoice_tax_bks to delete + */ + where?: Prisma.invoice_tax_bkWhereInput + /** + * Limit how many invoice_tax_bks to delete. + */ + limit?: number +} + +/** + * invoice_tax_bk without action + */ +export type invoice_tax_bkDefaultArgs = { + /** + * Select specific fields to fetch from the invoice_tax_bk + */ + select?: Prisma.invoice_tax_bkSelect | null + /** + * Omit specific fields from the invoice_tax_bk + */ + omit?: Prisma.invoice_tax_bkOmit | null +} diff --git a/prisma/generated/mariadb/models/ip.ts b/prisma/generated/mariadb/models/ip.ts new file mode 100644 index 0000000..e756c38 --- /dev/null +++ b/prisma/generated/mariadb/models/ip.ts @@ -0,0 +1,1357 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ip` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model ip + * + */ +export type ipModel = runtime.Types.Result.DefaultSelection + +export type AggregateIp = { + _count: IpCountAggregateOutputType | null + _avg: IpAvgAggregateOutputType | null + _sum: IpSumAggregateOutputType | null + _min: IpMinAggregateOutputType | null + _max: IpMaxAggregateOutputType | null +} + +export type IpAvgAggregateOutputType = { + id: number | null + service_id: number | null + ip_conso: number | null + actif: number | null +} + +export type IpSumAggregateOutputType = { + id: number | null + service_id: bigint | null + ip_conso: number | null + actif: number | null +} + +export type IpMinAggregateOutputType = { + id: number | null + service_id: bigint | null + ip: string | null + prive: string | null + ip_relais: string | null + technology: string | null + name_access_point: string | null + mac: string | null + web_link: string | null + link_relais: string | null + ip_conso: number | null + actif: number | null + comment: string | null + cidr: string | null + last_updated: Date | null +} + +export type IpMaxAggregateOutputType = { + id: number | null + service_id: bigint | null + ip: string | null + prive: string | null + ip_relais: string | null + technology: string | null + name_access_point: string | null + mac: string | null + web_link: string | null + link_relais: string | null + ip_conso: number | null + actif: number | null + comment: string | null + cidr: string | null + last_updated: Date | null +} + +export type IpCountAggregateOutputType = { + id: number + service_id: number + ip: number + prive: number + ip_relais: number + technology: number + name_access_point: number + mac: number + web_link: number + link_relais: number + ip_conso: number + actif: number + comment: number + cidr: number + last_updated: number + _all: number +} + + +export type IpAvgAggregateInputType = { + id?: true + service_id?: true + ip_conso?: true + actif?: true +} + +export type IpSumAggregateInputType = { + id?: true + service_id?: true + ip_conso?: true + actif?: true +} + +export type IpMinAggregateInputType = { + id?: true + service_id?: true + ip?: true + prive?: true + ip_relais?: true + technology?: true + name_access_point?: true + mac?: true + web_link?: true + link_relais?: true + ip_conso?: true + actif?: true + comment?: true + cidr?: true + last_updated?: true +} + +export type IpMaxAggregateInputType = { + id?: true + service_id?: true + ip?: true + prive?: true + ip_relais?: true + technology?: true + name_access_point?: true + mac?: true + web_link?: true + link_relais?: true + ip_conso?: true + actif?: true + comment?: true + cidr?: true + last_updated?: true +} + +export type IpCountAggregateInputType = { + id?: true + service_id?: true + ip?: true + prive?: true + ip_relais?: true + technology?: true + name_access_point?: true + mac?: true + web_link?: true + link_relais?: true + ip_conso?: true + actif?: true + comment?: true + cidr?: true + last_updated?: true + _all?: true +} + +export type IpAggregateArgs = { + /** + * Filter which ip to aggregate. + */ + where?: Prisma.ipWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ips to fetch. + */ + orderBy?: Prisma.ipOrderByWithRelationInput | Prisma.ipOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ipWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ips 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` ips. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ips + **/ + _count?: true | IpCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: IpAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: IpSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: IpMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: IpMaxAggregateInputType +} + +export type GetIpAggregateType = { + [P in keyof T & keyof AggregateIp]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ipGroupByArgs = { + where?: Prisma.ipWhereInput + orderBy?: Prisma.ipOrderByWithAggregationInput | Prisma.ipOrderByWithAggregationInput[] + by: Prisma.IpScalarFieldEnum[] | Prisma.IpScalarFieldEnum + having?: Prisma.ipScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: IpCountAggregateInputType | true + _avg?: IpAvgAggregateInputType + _sum?: IpSumAggregateInputType + _min?: IpMinAggregateInputType + _max?: IpMaxAggregateInputType +} + +export type IpGroupByOutputType = { + id: number + service_id: bigint | null + ip: string | null + prive: string | null + ip_relais: string | null + technology: string | null + name_access_point: string | null + mac: string | null + web_link: string | null + link_relais: string | null + ip_conso: number + actif: number + comment: string | null + cidr: string | null + last_updated: Date + _count: IpCountAggregateOutputType | null + _avg: IpAvgAggregateOutputType | null + _sum: IpSumAggregateOutputType | null + _min: IpMinAggregateOutputType | null + _max: IpMaxAggregateOutputType | null +} + +type GetIpGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof IpGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ipWhereInput = { + AND?: Prisma.ipWhereInput | Prisma.ipWhereInput[] + OR?: Prisma.ipWhereInput[] + NOT?: Prisma.ipWhereInput | Prisma.ipWhereInput[] + id?: Prisma.IntFilter<"ip"> | number + service_id?: Prisma.BigIntNullableFilter<"ip"> | bigint | number | null + ip?: Prisma.StringNullableFilter<"ip"> | string | null + prive?: Prisma.StringNullableFilter<"ip"> | string | null + ip_relais?: Prisma.StringNullableFilter<"ip"> | string | null + technology?: Prisma.StringNullableFilter<"ip"> | string | null + name_access_point?: Prisma.StringNullableFilter<"ip"> | string | null + mac?: Prisma.StringNullableFilter<"ip"> | string | null + web_link?: Prisma.StringNullableFilter<"ip"> | string | null + link_relais?: Prisma.StringNullableFilter<"ip"> | string | null + ip_conso?: Prisma.IntFilter<"ip"> | number + actif?: Prisma.IntFilter<"ip"> | number + comment?: Prisma.StringNullableFilter<"ip"> | string | null + cidr?: Prisma.StringNullableFilter<"ip"> | string | null + last_updated?: Prisma.DateTimeFilter<"ip"> | Date | string +} + +export type ipOrderByWithRelationInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrderInput | Prisma.SortOrder + ip?: Prisma.SortOrderInput | Prisma.SortOrder + prive?: Prisma.SortOrderInput | Prisma.SortOrder + ip_relais?: Prisma.SortOrderInput | Prisma.SortOrder + technology?: Prisma.SortOrderInput | Prisma.SortOrder + name_access_point?: Prisma.SortOrderInput | Prisma.SortOrder + mac?: Prisma.SortOrderInput | Prisma.SortOrder + web_link?: Prisma.SortOrderInput | Prisma.SortOrder + link_relais?: Prisma.SortOrderInput | Prisma.SortOrder + ip_conso?: Prisma.SortOrder + actif?: Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + cidr?: Prisma.SortOrderInput | Prisma.SortOrder + last_updated?: Prisma.SortOrder + _relevance?: Prisma.ipOrderByRelevanceInput +} + +export type ipWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.ipWhereInput | Prisma.ipWhereInput[] + OR?: Prisma.ipWhereInput[] + NOT?: Prisma.ipWhereInput | Prisma.ipWhereInput[] + service_id?: Prisma.BigIntNullableFilter<"ip"> | bigint | number | null + ip?: Prisma.StringNullableFilter<"ip"> | string | null + prive?: Prisma.StringNullableFilter<"ip"> | string | null + ip_relais?: Prisma.StringNullableFilter<"ip"> | string | null + technology?: Prisma.StringNullableFilter<"ip"> | string | null + name_access_point?: Prisma.StringNullableFilter<"ip"> | string | null + mac?: Prisma.StringNullableFilter<"ip"> | string | null + web_link?: Prisma.StringNullableFilter<"ip"> | string | null + link_relais?: Prisma.StringNullableFilter<"ip"> | string | null + ip_conso?: Prisma.IntFilter<"ip"> | number + actif?: Prisma.IntFilter<"ip"> | number + comment?: Prisma.StringNullableFilter<"ip"> | string | null + cidr?: Prisma.StringNullableFilter<"ip"> | string | null + last_updated?: Prisma.DateTimeFilter<"ip"> | Date | string +}, "id"> + +export type ipOrderByWithAggregationInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrderInput | Prisma.SortOrder + ip?: Prisma.SortOrderInput | Prisma.SortOrder + prive?: Prisma.SortOrderInput | Prisma.SortOrder + ip_relais?: Prisma.SortOrderInput | Prisma.SortOrder + technology?: Prisma.SortOrderInput | Prisma.SortOrder + name_access_point?: Prisma.SortOrderInput | Prisma.SortOrder + mac?: Prisma.SortOrderInput | Prisma.SortOrder + web_link?: Prisma.SortOrderInput | Prisma.SortOrder + link_relais?: Prisma.SortOrderInput | Prisma.SortOrder + ip_conso?: Prisma.SortOrder + actif?: Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + cidr?: Prisma.SortOrderInput | Prisma.SortOrder + last_updated?: Prisma.SortOrder + _count?: Prisma.ipCountOrderByAggregateInput + _avg?: Prisma.ipAvgOrderByAggregateInput + _max?: Prisma.ipMaxOrderByAggregateInput + _min?: Prisma.ipMinOrderByAggregateInput + _sum?: Prisma.ipSumOrderByAggregateInput +} + +export type ipScalarWhereWithAggregatesInput = { + AND?: Prisma.ipScalarWhereWithAggregatesInput | Prisma.ipScalarWhereWithAggregatesInput[] + OR?: Prisma.ipScalarWhereWithAggregatesInput[] + NOT?: Prisma.ipScalarWhereWithAggregatesInput | Prisma.ipScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"ip"> | number + service_id?: Prisma.BigIntNullableWithAggregatesFilter<"ip"> | bigint | number | null + ip?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null + prive?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null + ip_relais?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null + technology?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null + name_access_point?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null + mac?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null + web_link?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null + link_relais?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null + ip_conso?: Prisma.IntWithAggregatesFilter<"ip"> | number + actif?: Prisma.IntWithAggregatesFilter<"ip"> | number + comment?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null + cidr?: Prisma.StringNullableWithAggregatesFilter<"ip"> | string | null + last_updated?: Prisma.DateTimeWithAggregatesFilter<"ip"> | Date | string +} + +export type ipCreateInput = { + service_id?: bigint | number | null + ip?: string | null + prive?: string | null + ip_relais?: string | null + technology?: string | null + name_access_point?: string | null + mac?: string | null + web_link?: string | null + link_relais?: string | null + ip_conso?: number + actif?: number + comment?: string | null + cidr?: string | null + last_updated?: Date | string +} + +export type ipUncheckedCreateInput = { + id?: number + service_id?: bigint | number | null + ip?: string | null + prive?: string | null + ip_relais?: string | null + technology?: string | null + name_access_point?: string | null + mac?: string | null + web_link?: string | null + link_relais?: string | null + ip_conso?: number + actif?: number + comment?: string | null + cidr?: string | null + last_updated?: Date | string +} + +export type ipUpdateInput = { + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + prive?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ip_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + technology?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name_access_point?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + web_link?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + link_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ip_conso?: Prisma.IntFieldUpdateOperationsInput | number + actif?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cidr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_updated?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ipUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + prive?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ip_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + technology?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name_access_point?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + web_link?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + link_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ip_conso?: Prisma.IntFieldUpdateOperationsInput | number + actif?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cidr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_updated?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ipCreateManyInput = { + id?: number + service_id?: bigint | number | null + ip?: string | null + prive?: string | null + ip_relais?: string | null + technology?: string | null + name_access_point?: string | null + mac?: string | null + web_link?: string | null + link_relais?: string | null + ip_conso?: number + actif?: number + comment?: string | null + cidr?: string | null + last_updated?: Date | string +} + +export type ipUpdateManyMutationInput = { + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + prive?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ip_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + technology?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name_access_point?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + web_link?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + link_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ip_conso?: Prisma.IntFieldUpdateOperationsInput | number + actif?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cidr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_updated?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ipUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + prive?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ip_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + technology?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name_access_point?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + web_link?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + link_relais?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ip_conso?: Prisma.IntFieldUpdateOperationsInput | number + actif?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + cidr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + last_updated?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ipOrderByRelevanceInput = { + fields: Prisma.ipOrderByRelevanceFieldEnum | Prisma.ipOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type ipCountOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip?: Prisma.SortOrder + prive?: Prisma.SortOrder + ip_relais?: Prisma.SortOrder + technology?: Prisma.SortOrder + name_access_point?: Prisma.SortOrder + mac?: Prisma.SortOrder + web_link?: Prisma.SortOrder + link_relais?: Prisma.SortOrder + ip_conso?: Prisma.SortOrder + actif?: Prisma.SortOrder + comment?: Prisma.SortOrder + cidr?: Prisma.SortOrder + last_updated?: Prisma.SortOrder +} + +export type ipAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip_conso?: Prisma.SortOrder + actif?: Prisma.SortOrder +} + +export type ipMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip?: Prisma.SortOrder + prive?: Prisma.SortOrder + ip_relais?: Prisma.SortOrder + technology?: Prisma.SortOrder + name_access_point?: Prisma.SortOrder + mac?: Prisma.SortOrder + web_link?: Prisma.SortOrder + link_relais?: Prisma.SortOrder + ip_conso?: Prisma.SortOrder + actif?: Prisma.SortOrder + comment?: Prisma.SortOrder + cidr?: Prisma.SortOrder + last_updated?: Prisma.SortOrder +} + +export type ipMinOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip?: Prisma.SortOrder + prive?: Prisma.SortOrder + ip_relais?: Prisma.SortOrder + technology?: Prisma.SortOrder + name_access_point?: Prisma.SortOrder + mac?: Prisma.SortOrder + web_link?: Prisma.SortOrder + link_relais?: Prisma.SortOrder + ip_conso?: Prisma.SortOrder + actif?: Prisma.SortOrder + comment?: Prisma.SortOrder + cidr?: Prisma.SortOrder + last_updated?: Prisma.SortOrder +} + +export type ipSumOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip_conso?: Prisma.SortOrder + actif?: Prisma.SortOrder +} + + + +export type ipSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + service_id?: boolean + ip?: boolean + prive?: boolean + ip_relais?: boolean + technology?: boolean + name_access_point?: boolean + mac?: boolean + web_link?: boolean + link_relais?: boolean + ip_conso?: boolean + actif?: boolean + comment?: boolean + cidr?: boolean + last_updated?: boolean +}, ExtArgs["result"]["ip"]> + + + +export type ipSelectScalar = { + id?: boolean + service_id?: boolean + ip?: boolean + prive?: boolean + ip_relais?: boolean + technology?: boolean + name_access_point?: boolean + mac?: boolean + web_link?: boolean + link_relais?: boolean + ip_conso?: boolean + actif?: boolean + comment?: boolean + cidr?: boolean + last_updated?: boolean +} + +export type ipOmit = runtime.Types.Extensions.GetOmit<"id" | "service_id" | "ip" | "prive" | "ip_relais" | "technology" | "name_access_point" | "mac" | "web_link" | "link_relais" | "ip_conso" | "actif" | "comment" | "cidr" | "last_updated", ExtArgs["result"]["ip"]> + +export type $ipPayload = { + name: "ip" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + service_id: bigint | null + ip: string | null + prive: string | null + ip_relais: string | null + technology: string | null + name_access_point: string | null + mac: string | null + web_link: string | null + link_relais: string | null + ip_conso: number + actif: number + comment: string | null + cidr: string | null + last_updated: Date + }, ExtArgs["result"]["ip"]> + composites: {} +} + +export type ipGetPayload = runtime.Types.Result.GetResult + +export type ipCountArgs = + Omit & { + select?: IpCountAggregateInputType | true + } + +export interface ipDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ip'], meta: { name: 'ip' } } + /** + * Find zero or one Ip that matches the filter. + * @param {ipFindUniqueArgs} args - Arguments to find a Ip + * @example + * // Get one Ip + * const ip = await prisma.ip.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Ip that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ipFindUniqueOrThrowArgs} args - Arguments to find a Ip + * @example + * // Get one Ip + * const ip = await prisma.ip.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ip 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 {ipFindFirstArgs} args - Arguments to find a Ip + * @example + * // Get one Ip + * const ip = await prisma.ip.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ip 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 {ipFindFirstOrThrowArgs} args - Arguments to find a Ip + * @example + * // Get one Ip + * const ip = await prisma.ip.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Ips 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 {ipFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Ips + * const ips = await prisma.ip.findMany() + * + * // Get first 10 Ips + * const ips = await prisma.ip.findMany({ take: 10 }) + * + * // Only select the `id` + * const ipWithIdOnly = await prisma.ip.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Ip. + * @param {ipCreateArgs} args - Arguments to create a Ip. + * @example + * // Create one Ip + * const Ip = await prisma.ip.create({ + * data: { + * // ... data to create a Ip + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Ips. + * @param {ipCreateManyArgs} args - Arguments to create many Ips. + * @example + * // Create many Ips + * const ip = await prisma.ip.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Ip. + * @param {ipDeleteArgs} args - Arguments to delete one Ip. + * @example + * // Delete one Ip + * const Ip = await prisma.ip.delete({ + * where: { + * // ... filter to delete one Ip + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Ip. + * @param {ipUpdateArgs} args - Arguments to update one Ip. + * @example + * // Update one Ip + * const ip = await prisma.ip.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Ips. + * @param {ipDeleteManyArgs} args - Arguments to filter Ips to delete. + * @example + * // Delete a few Ips + * const { count } = await prisma.ip.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Ips. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ipUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Ips + * const ip = await prisma.ip.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Ip. + * @param {ipUpsertArgs} args - Arguments to update or create a Ip. + * @example + * // Update or create a Ip + * const ip = await prisma.ip.upsert({ + * create: { + * // ... data to create a Ip + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Ip we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ipClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Ips. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ipCountArgs} args - Arguments to filter Ips to count. + * @example + * // Count the number of Ips + * const count = await prisma.ip.count({ + * where: { + * // ... the filter for the Ips 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 Ip. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {IpAggregateArgs} 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 Ip. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ipGroupByArgs} 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 ipGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ipGroupByArgs['orderBy'] } + : { orderBy?: ipGroupByArgs['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 ? GetIpGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ip model + */ +readonly fields: ipFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ip. + * 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__ipClient 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 ip model + */ +export interface ipFieldRefs { + readonly id: Prisma.FieldRef<"ip", 'Int'> + readonly service_id: Prisma.FieldRef<"ip", 'BigInt'> + readonly ip: Prisma.FieldRef<"ip", 'String'> + readonly prive: Prisma.FieldRef<"ip", 'String'> + readonly ip_relais: Prisma.FieldRef<"ip", 'String'> + readonly technology: Prisma.FieldRef<"ip", 'String'> + readonly name_access_point: Prisma.FieldRef<"ip", 'String'> + readonly mac: Prisma.FieldRef<"ip", 'String'> + readonly web_link: Prisma.FieldRef<"ip", 'String'> + readonly link_relais: Prisma.FieldRef<"ip", 'String'> + readonly ip_conso: Prisma.FieldRef<"ip", 'Int'> + readonly actif: Prisma.FieldRef<"ip", 'Int'> + readonly comment: Prisma.FieldRef<"ip", 'String'> + readonly cidr: Prisma.FieldRef<"ip", 'String'> + readonly last_updated: Prisma.FieldRef<"ip", 'DateTime'> +} + + +// Custom InputTypes +/** + * ip findUnique + */ +export type ipFindUniqueArgs = { + /** + * Select specific fields to fetch from the ip + */ + select?: Prisma.ipSelect | null + /** + * Omit specific fields from the ip + */ + omit?: Prisma.ipOmit | null + /** + * Filter, which ip to fetch. + */ + where: Prisma.ipWhereUniqueInput +} + +/** + * ip findUniqueOrThrow + */ +export type ipFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ip + */ + select?: Prisma.ipSelect | null + /** + * Omit specific fields from the ip + */ + omit?: Prisma.ipOmit | null + /** + * Filter, which ip to fetch. + */ + where: Prisma.ipWhereUniqueInput +} + +/** + * ip findFirst + */ +export type ipFindFirstArgs = { + /** + * Select specific fields to fetch from the ip + */ + select?: Prisma.ipSelect | null + /** + * Omit specific fields from the ip + */ + omit?: Prisma.ipOmit | null + /** + * Filter, which ip to fetch. + */ + where?: Prisma.ipWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ips to fetch. + */ + orderBy?: Prisma.ipOrderByWithRelationInput | Prisma.ipOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ips. + */ + cursor?: Prisma.ipWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ips 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` ips. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ips. + */ + distinct?: Prisma.IpScalarFieldEnum | Prisma.IpScalarFieldEnum[] +} + +/** + * ip findFirstOrThrow + */ +export type ipFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ip + */ + select?: Prisma.ipSelect | null + /** + * Omit specific fields from the ip + */ + omit?: Prisma.ipOmit | null + /** + * Filter, which ip to fetch. + */ + where?: Prisma.ipWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ips to fetch. + */ + orderBy?: Prisma.ipOrderByWithRelationInput | Prisma.ipOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ips. + */ + cursor?: Prisma.ipWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ips 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` ips. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ips. + */ + distinct?: Prisma.IpScalarFieldEnum | Prisma.IpScalarFieldEnum[] +} + +/** + * ip findMany + */ +export type ipFindManyArgs = { + /** + * Select specific fields to fetch from the ip + */ + select?: Prisma.ipSelect | null + /** + * Omit specific fields from the ip + */ + omit?: Prisma.ipOmit | null + /** + * Filter, which ips to fetch. + */ + where?: Prisma.ipWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ips to fetch. + */ + orderBy?: Prisma.ipOrderByWithRelationInput | Prisma.ipOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ips. + */ + cursor?: Prisma.ipWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ips 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` ips. + */ + skip?: number + distinct?: Prisma.IpScalarFieldEnum | Prisma.IpScalarFieldEnum[] +} + +/** + * ip create + */ +export type ipCreateArgs = { + /** + * Select specific fields to fetch from the ip + */ + select?: Prisma.ipSelect | null + /** + * Omit specific fields from the ip + */ + omit?: Prisma.ipOmit | null + /** + * The data needed to create a ip. + */ + data?: Prisma.XOR +} + +/** + * ip createMany + */ +export type ipCreateManyArgs = { + /** + * The data used to create many ips. + */ + data: Prisma.ipCreateManyInput | Prisma.ipCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ip update + */ +export type ipUpdateArgs = { + /** + * Select specific fields to fetch from the ip + */ + select?: Prisma.ipSelect | null + /** + * Omit specific fields from the ip + */ + omit?: Prisma.ipOmit | null + /** + * The data needed to update a ip. + */ + data: Prisma.XOR + /** + * Choose, which ip to update. + */ + where: Prisma.ipWhereUniqueInput +} + +/** + * ip updateMany + */ +export type ipUpdateManyArgs = { + /** + * The data used to update ips. + */ + data: Prisma.XOR + /** + * Filter which ips to update + */ + where?: Prisma.ipWhereInput + /** + * Limit how many ips to update. + */ + limit?: number +} + +/** + * ip upsert + */ +export type ipUpsertArgs = { + /** + * Select specific fields to fetch from the ip + */ + select?: Prisma.ipSelect | null + /** + * Omit specific fields from the ip + */ + omit?: Prisma.ipOmit | null + /** + * The filter to search for the ip to update in case it exists. + */ + where: Prisma.ipWhereUniqueInput + /** + * In case the ip found by the `where` argument doesn't exist, create a new ip with this data. + */ + create: Prisma.XOR + /** + * In case the ip was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ip delete + */ +export type ipDeleteArgs = { + /** + * Select specific fields to fetch from the ip + */ + select?: Prisma.ipSelect | null + /** + * Omit specific fields from the ip + */ + omit?: Prisma.ipOmit | null + /** + * Filter which ip to delete. + */ + where: Prisma.ipWhereUniqueInput +} + +/** + * ip deleteMany + */ +export type ipDeleteManyArgs = { + /** + * Filter which ips to delete + */ + where?: Prisma.ipWhereInput + /** + * Limit how many ips to delete. + */ + limit?: number +} + +/** + * ip without action + */ +export type ipDefaultArgs = { + /** + * Select specific fields to fetch from the ip + */ + select?: Prisma.ipSelect | null + /** + * Omit specific fields from the ip + */ + omit?: Prisma.ipOmit | null +} diff --git a/prisma/generated/mariadb/models/ip_admin.ts b/prisma/generated/mariadb/models/ip_admin.ts new file mode 100644 index 0000000..df56945 --- /dev/null +++ b/prisma/generated/mariadb/models/ip_admin.ts @@ -0,0 +1,1027 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ip_admin` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model ip_admin + * + */ +export type ip_adminModel = runtime.Types.Result.DefaultSelection + +export type AggregateIp_admin = { + _count: Ip_adminCountAggregateOutputType | null + _avg: Ip_adminAvgAggregateOutputType | null + _sum: Ip_adminSumAggregateOutputType | null + _min: Ip_adminMinAggregateOutputType | null + _max: Ip_adminMaxAggregateOutputType | null +} + +export type Ip_adminAvgAggregateOutputType = { + id: number | null +} + +export type Ip_adminSumAggregateOutputType = { + id: number | null +} + +export type Ip_adminMinAggregateOutputType = { + id: number | null + ip: string | null + comment: string | null +} + +export type Ip_adminMaxAggregateOutputType = { + id: number | null + ip: string | null + comment: string | null +} + +export type Ip_adminCountAggregateOutputType = { + id: number + ip: number + comment: number + _all: number +} + + +export type Ip_adminAvgAggregateInputType = { + id?: true +} + +export type Ip_adminSumAggregateInputType = { + id?: true +} + +export type Ip_adminMinAggregateInputType = { + id?: true + ip?: true + comment?: true +} + +export type Ip_adminMaxAggregateInputType = { + id?: true + ip?: true + comment?: true +} + +export type Ip_adminCountAggregateInputType = { + id?: true + ip?: true + comment?: true + _all?: true +} + +export type Ip_adminAggregateArgs = { + /** + * Filter which ip_admin to aggregate. + */ + where?: Prisma.ip_adminWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_admins to fetch. + */ + orderBy?: Prisma.ip_adminOrderByWithRelationInput | Prisma.ip_adminOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ip_adminWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_admins 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` ip_admins. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ip_admins + **/ + _count?: true | Ip_adminCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Ip_adminAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Ip_adminSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Ip_adminMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Ip_adminMaxAggregateInputType +} + +export type GetIp_adminAggregateType = { + [P in keyof T & keyof AggregateIp_admin]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ip_adminGroupByArgs = { + where?: Prisma.ip_adminWhereInput + orderBy?: Prisma.ip_adminOrderByWithAggregationInput | Prisma.ip_adminOrderByWithAggregationInput[] + by: Prisma.Ip_adminScalarFieldEnum[] | Prisma.Ip_adminScalarFieldEnum + having?: Prisma.ip_adminScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Ip_adminCountAggregateInputType | true + _avg?: Ip_adminAvgAggregateInputType + _sum?: Ip_adminSumAggregateInputType + _min?: Ip_adminMinAggregateInputType + _max?: Ip_adminMaxAggregateInputType +} + +export type Ip_adminGroupByOutputType = { + id: number + ip: string + comment: string | null + _count: Ip_adminCountAggregateOutputType | null + _avg: Ip_adminAvgAggregateOutputType | null + _sum: Ip_adminSumAggregateOutputType | null + _min: Ip_adminMinAggregateOutputType | null + _max: Ip_adminMaxAggregateOutputType | null +} + +type GetIp_adminGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Ip_adminGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ip_adminWhereInput = { + AND?: Prisma.ip_adminWhereInput | Prisma.ip_adminWhereInput[] + OR?: Prisma.ip_adminWhereInput[] + NOT?: Prisma.ip_adminWhereInput | Prisma.ip_adminWhereInput[] + id?: Prisma.IntFilter<"ip_admin"> | number + ip?: Prisma.StringFilter<"ip_admin"> | string + comment?: Prisma.StringNullableFilter<"ip_admin"> | string | null +} + +export type ip_adminOrderByWithRelationInput = { + id?: Prisma.SortOrder + ip?: Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.ip_adminOrderByRelevanceInput +} + +export type ip_adminWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.ip_adminWhereInput | Prisma.ip_adminWhereInput[] + OR?: Prisma.ip_adminWhereInput[] + NOT?: Prisma.ip_adminWhereInput | Prisma.ip_adminWhereInput[] + ip?: Prisma.StringFilter<"ip_admin"> | string + comment?: Prisma.StringNullableFilter<"ip_admin"> | string | null +}, "id"> + +export type ip_adminOrderByWithAggregationInput = { + id?: Prisma.SortOrder + ip?: Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.ip_adminCountOrderByAggregateInput + _avg?: Prisma.ip_adminAvgOrderByAggregateInput + _max?: Prisma.ip_adminMaxOrderByAggregateInput + _min?: Prisma.ip_adminMinOrderByAggregateInput + _sum?: Prisma.ip_adminSumOrderByAggregateInput +} + +export type ip_adminScalarWhereWithAggregatesInput = { + AND?: Prisma.ip_adminScalarWhereWithAggregatesInput | Prisma.ip_adminScalarWhereWithAggregatesInput[] + OR?: Prisma.ip_adminScalarWhereWithAggregatesInput[] + NOT?: Prisma.ip_adminScalarWhereWithAggregatesInput | Prisma.ip_adminScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"ip_admin"> | number + ip?: Prisma.StringWithAggregatesFilter<"ip_admin"> | string + comment?: Prisma.StringNullableWithAggregatesFilter<"ip_admin"> | string | null +} + +export type ip_adminCreateInput = { + ip: string + comment?: string | null +} + +export type ip_adminUncheckedCreateInput = { + id?: number + ip: string + comment?: string | null +} + +export type ip_adminUpdateInput = { + ip?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ip_adminUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + ip?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ip_adminCreateManyInput = { + id?: number + ip: string + comment?: string | null +} + +export type ip_adminUpdateManyMutationInput = { + ip?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ip_adminUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + ip?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ip_adminOrderByRelevanceInput = { + fields: Prisma.ip_adminOrderByRelevanceFieldEnum | Prisma.ip_adminOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type ip_adminCountOrderByAggregateInput = { + id?: Prisma.SortOrder + ip?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type ip_adminAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type ip_adminMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + ip?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type ip_adminMinOrderByAggregateInput = { + id?: Prisma.SortOrder + ip?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type ip_adminSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type ip_adminSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + ip?: boolean + comment?: boolean +}, ExtArgs["result"]["ip_admin"]> + + + +export type ip_adminSelectScalar = { + id?: boolean + ip?: boolean + comment?: boolean +} + +export type ip_adminOmit = runtime.Types.Extensions.GetOmit<"id" | "ip" | "comment", ExtArgs["result"]["ip_admin"]> + +export type $ip_adminPayload = { + name: "ip_admin" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + ip: string + comment: string | null + }, ExtArgs["result"]["ip_admin"]> + composites: {} +} + +export type ip_adminGetPayload = runtime.Types.Result.GetResult + +export type ip_adminCountArgs = + Omit & { + select?: Ip_adminCountAggregateInputType | true + } + +export interface ip_adminDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ip_admin'], meta: { name: 'ip_admin' } } + /** + * Find zero or one Ip_admin that matches the filter. + * @param {ip_adminFindUniqueArgs} args - Arguments to find a Ip_admin + * @example + * // Get one Ip_admin + * const ip_admin = await prisma.ip_admin.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ip_adminClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Ip_admin that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ip_adminFindUniqueOrThrowArgs} args - Arguments to find a Ip_admin + * @example + * // Get one Ip_admin + * const ip_admin = await prisma.ip_admin.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ip_adminClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ip_admin 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 {ip_adminFindFirstArgs} args - Arguments to find a Ip_admin + * @example + * // Get one Ip_admin + * const ip_admin = await prisma.ip_admin.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ip_adminClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ip_admin 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 {ip_adminFindFirstOrThrowArgs} args - Arguments to find a Ip_admin + * @example + * // Get one Ip_admin + * const ip_admin = await prisma.ip_admin.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ip_adminClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Ip_admins 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 {ip_adminFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Ip_admins + * const ip_admins = await prisma.ip_admin.findMany() + * + * // Get first 10 Ip_admins + * const ip_admins = await prisma.ip_admin.findMany({ take: 10 }) + * + * // Only select the `id` + * const ip_adminWithIdOnly = await prisma.ip_admin.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Ip_admin. + * @param {ip_adminCreateArgs} args - Arguments to create a Ip_admin. + * @example + * // Create one Ip_admin + * const Ip_admin = await prisma.ip_admin.create({ + * data: { + * // ... data to create a Ip_admin + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ip_adminClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Ip_admins. + * @param {ip_adminCreateManyArgs} args - Arguments to create many Ip_admins. + * @example + * // Create many Ip_admins + * const ip_admin = await prisma.ip_admin.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Ip_admin. + * @param {ip_adminDeleteArgs} args - Arguments to delete one Ip_admin. + * @example + * // Delete one Ip_admin + * const Ip_admin = await prisma.ip_admin.delete({ + * where: { + * // ... filter to delete one Ip_admin + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ip_adminClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Ip_admin. + * @param {ip_adminUpdateArgs} args - Arguments to update one Ip_admin. + * @example + * // Update one Ip_admin + * const ip_admin = await prisma.ip_admin.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ip_adminClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Ip_admins. + * @param {ip_adminDeleteManyArgs} args - Arguments to filter Ip_admins to delete. + * @example + * // Delete a few Ip_admins + * const { count } = await prisma.ip_admin.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Ip_admins. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ip_adminUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Ip_admins + * const ip_admin = await prisma.ip_admin.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Ip_admin. + * @param {ip_adminUpsertArgs} args - Arguments to update or create a Ip_admin. + * @example + * // Update or create a Ip_admin + * const ip_admin = await prisma.ip_admin.upsert({ + * create: { + * // ... data to create a Ip_admin + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Ip_admin we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ip_adminClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Ip_admins. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ip_adminCountArgs} args - Arguments to filter Ip_admins to count. + * @example + * // Count the number of Ip_admins + * const count = await prisma.ip_admin.count({ + * where: { + * // ... the filter for the Ip_admins 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 Ip_admin. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Ip_adminAggregateArgs} 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 Ip_admin. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ip_adminGroupByArgs} 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 ip_adminGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ip_adminGroupByArgs['orderBy'] } + : { orderBy?: ip_adminGroupByArgs['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 ? GetIp_adminGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ip_admin model + */ +readonly fields: ip_adminFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ip_admin. + * 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__ip_adminClient 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 ip_admin model + */ +export interface ip_adminFieldRefs { + readonly id: Prisma.FieldRef<"ip_admin", 'Int'> + readonly ip: Prisma.FieldRef<"ip_admin", 'String'> + readonly comment: Prisma.FieldRef<"ip_admin", 'String'> +} + + +// Custom InputTypes +/** + * ip_admin findUnique + */ +export type ip_adminFindUniqueArgs = { + /** + * Select specific fields to fetch from the ip_admin + */ + select?: Prisma.ip_adminSelect | null + /** + * Omit specific fields from the ip_admin + */ + omit?: Prisma.ip_adminOmit | null + /** + * Filter, which ip_admin to fetch. + */ + where: Prisma.ip_adminWhereUniqueInput +} + +/** + * ip_admin findUniqueOrThrow + */ +export type ip_adminFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ip_admin + */ + select?: Prisma.ip_adminSelect | null + /** + * Omit specific fields from the ip_admin + */ + omit?: Prisma.ip_adminOmit | null + /** + * Filter, which ip_admin to fetch. + */ + where: Prisma.ip_adminWhereUniqueInput +} + +/** + * ip_admin findFirst + */ +export type ip_adminFindFirstArgs = { + /** + * Select specific fields to fetch from the ip_admin + */ + select?: Prisma.ip_adminSelect | null + /** + * Omit specific fields from the ip_admin + */ + omit?: Prisma.ip_adminOmit | null + /** + * Filter, which ip_admin to fetch. + */ + where?: Prisma.ip_adminWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_admins to fetch. + */ + orderBy?: Prisma.ip_adminOrderByWithRelationInput | Prisma.ip_adminOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ip_admins. + */ + cursor?: Prisma.ip_adminWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_admins 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` ip_admins. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ip_admins. + */ + distinct?: Prisma.Ip_adminScalarFieldEnum | Prisma.Ip_adminScalarFieldEnum[] +} + +/** + * ip_admin findFirstOrThrow + */ +export type ip_adminFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ip_admin + */ + select?: Prisma.ip_adminSelect | null + /** + * Omit specific fields from the ip_admin + */ + omit?: Prisma.ip_adminOmit | null + /** + * Filter, which ip_admin to fetch. + */ + where?: Prisma.ip_adminWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_admins to fetch. + */ + orderBy?: Prisma.ip_adminOrderByWithRelationInput | Prisma.ip_adminOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ip_admins. + */ + cursor?: Prisma.ip_adminWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_admins 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` ip_admins. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ip_admins. + */ + distinct?: Prisma.Ip_adminScalarFieldEnum | Prisma.Ip_adminScalarFieldEnum[] +} + +/** + * ip_admin findMany + */ +export type ip_adminFindManyArgs = { + /** + * Select specific fields to fetch from the ip_admin + */ + select?: Prisma.ip_adminSelect | null + /** + * Omit specific fields from the ip_admin + */ + omit?: Prisma.ip_adminOmit | null + /** + * Filter, which ip_admins to fetch. + */ + where?: Prisma.ip_adminWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_admins to fetch. + */ + orderBy?: Prisma.ip_adminOrderByWithRelationInput | Prisma.ip_adminOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ip_admins. + */ + cursor?: Prisma.ip_adminWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_admins 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` ip_admins. + */ + skip?: number + distinct?: Prisma.Ip_adminScalarFieldEnum | Prisma.Ip_adminScalarFieldEnum[] +} + +/** + * ip_admin create + */ +export type ip_adminCreateArgs = { + /** + * Select specific fields to fetch from the ip_admin + */ + select?: Prisma.ip_adminSelect | null + /** + * Omit specific fields from the ip_admin + */ + omit?: Prisma.ip_adminOmit | null + /** + * The data needed to create a ip_admin. + */ + data: Prisma.XOR +} + +/** + * ip_admin createMany + */ +export type ip_adminCreateManyArgs = { + /** + * The data used to create many ip_admins. + */ + data: Prisma.ip_adminCreateManyInput | Prisma.ip_adminCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ip_admin update + */ +export type ip_adminUpdateArgs = { + /** + * Select specific fields to fetch from the ip_admin + */ + select?: Prisma.ip_adminSelect | null + /** + * Omit specific fields from the ip_admin + */ + omit?: Prisma.ip_adminOmit | null + /** + * The data needed to update a ip_admin. + */ + data: Prisma.XOR + /** + * Choose, which ip_admin to update. + */ + where: Prisma.ip_adminWhereUniqueInput +} + +/** + * ip_admin updateMany + */ +export type ip_adminUpdateManyArgs = { + /** + * The data used to update ip_admins. + */ + data: Prisma.XOR + /** + * Filter which ip_admins to update + */ + where?: Prisma.ip_adminWhereInput + /** + * Limit how many ip_admins to update. + */ + limit?: number +} + +/** + * ip_admin upsert + */ +export type ip_adminUpsertArgs = { + /** + * Select specific fields to fetch from the ip_admin + */ + select?: Prisma.ip_adminSelect | null + /** + * Omit specific fields from the ip_admin + */ + omit?: Prisma.ip_adminOmit | null + /** + * The filter to search for the ip_admin to update in case it exists. + */ + where: Prisma.ip_adminWhereUniqueInput + /** + * In case the ip_admin found by the `where` argument doesn't exist, create a new ip_admin with this data. + */ + create: Prisma.XOR + /** + * In case the ip_admin was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ip_admin delete + */ +export type ip_adminDeleteArgs = { + /** + * Select specific fields to fetch from the ip_admin + */ + select?: Prisma.ip_adminSelect | null + /** + * Omit specific fields from the ip_admin + */ + omit?: Prisma.ip_adminOmit | null + /** + * Filter which ip_admin to delete. + */ + where: Prisma.ip_adminWhereUniqueInput +} + +/** + * ip_admin deleteMany + */ +export type ip_adminDeleteManyArgs = { + /** + * Filter which ip_admins to delete + */ + where?: Prisma.ip_adminWhereInput + /** + * Limit how many ip_admins to delete. + */ + limit?: number +} + +/** + * ip_admin without action + */ +export type ip_adminDefaultArgs = { + /** + * Select specific fields to fetch from the ip_admin + */ + select?: Prisma.ip_adminSelect | null + /** + * Omit specific fields from the ip_admin + */ + omit?: Prisma.ip_adminOmit | null +} diff --git a/prisma/generated/mariadb/models/ip_history.ts b/prisma/generated/mariadb/models/ip_history.ts new file mode 100644 index 0000000..b9d402d --- /dev/null +++ b/prisma/generated/mariadb/models/ip_history.ts @@ -0,0 +1,1129 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ip_history` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model ip_history + * + */ +export type ip_historyModel = runtime.Types.Result.DefaultSelection + +export type AggregateIp_history = { + _count: Ip_historyCountAggregateOutputType | null + _avg: Ip_historyAvgAggregateOutputType | null + _sum: Ip_historySumAggregateOutputType | null + _min: Ip_historyMinAggregateOutputType | null + _max: Ip_historyMaxAggregateOutputType | null +} + +export type Ip_historyAvgAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + date: number | null +} + +export type Ip_historySumAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + date: bigint | null +} + +export type Ip_historyMinAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + ip: string | null + date: bigint | null +} + +export type Ip_historyMaxAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + ip: string | null + date: bigint | null +} + +export type Ip_historyCountAggregateOutputType = { + id: number + account_id: number + delivery_id: number + service_id: number + ip: number + date: number + _all: number +} + + +export type Ip_historyAvgAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + date?: true +} + +export type Ip_historySumAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + date?: true +} + +export type Ip_historyMinAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + ip?: true + date?: true +} + +export type Ip_historyMaxAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + ip?: true + date?: true +} + +export type Ip_historyCountAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + ip?: true + date?: true + _all?: true +} + +export type Ip_historyAggregateArgs = { + /** + * Filter which ip_history to aggregate. + */ + where?: Prisma.ip_historyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_histories to fetch. + */ + orderBy?: Prisma.ip_historyOrderByWithRelationInput | Prisma.ip_historyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ip_historyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_histories 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` ip_histories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ip_histories + **/ + _count?: true | Ip_historyCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Ip_historyAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Ip_historySumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Ip_historyMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Ip_historyMaxAggregateInputType +} + +export type GetIp_historyAggregateType = { + [P in keyof T & keyof AggregateIp_history]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ip_historyGroupByArgs = { + where?: Prisma.ip_historyWhereInput + orderBy?: Prisma.ip_historyOrderByWithAggregationInput | Prisma.ip_historyOrderByWithAggregationInput[] + by: Prisma.Ip_historyScalarFieldEnum[] | Prisma.Ip_historyScalarFieldEnum + having?: Prisma.ip_historyScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Ip_historyCountAggregateInputType | true + _avg?: Ip_historyAvgAggregateInputType + _sum?: Ip_historySumAggregateInputType + _min?: Ip_historyMinAggregateInputType + _max?: Ip_historyMaxAggregateInputType +} + +export type Ip_historyGroupByOutputType = { + id: number + account_id: number + delivery_id: number + service_id: number + ip: string + date: bigint + _count: Ip_historyCountAggregateOutputType | null + _avg: Ip_historyAvgAggregateOutputType | null + _sum: Ip_historySumAggregateOutputType | null + _min: Ip_historyMinAggregateOutputType | null + _max: Ip_historyMaxAggregateOutputType | null +} + +type GetIp_historyGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Ip_historyGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ip_historyWhereInput = { + AND?: Prisma.ip_historyWhereInput | Prisma.ip_historyWhereInput[] + OR?: Prisma.ip_historyWhereInput[] + NOT?: Prisma.ip_historyWhereInput | Prisma.ip_historyWhereInput[] + id?: Prisma.IntFilter<"ip_history"> | number + account_id?: Prisma.IntFilter<"ip_history"> | number + delivery_id?: Prisma.IntFilter<"ip_history"> | number + service_id?: Prisma.IntFilter<"ip_history"> | number + ip?: Prisma.StringFilter<"ip_history"> | string + date?: Prisma.BigIntFilter<"ip_history"> | bigint | number +} + +export type ip_historyOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip?: Prisma.SortOrder + date?: Prisma.SortOrder + _relevance?: Prisma.ip_historyOrderByRelevanceInput +} + +export type ip_historyWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.ip_historyWhereInput | Prisma.ip_historyWhereInput[] + OR?: Prisma.ip_historyWhereInput[] + NOT?: Prisma.ip_historyWhereInput | Prisma.ip_historyWhereInput[] + account_id?: Prisma.IntFilter<"ip_history"> | number + delivery_id?: Prisma.IntFilter<"ip_history"> | number + service_id?: Prisma.IntFilter<"ip_history"> | number + ip?: Prisma.StringFilter<"ip_history"> | string + date?: Prisma.BigIntFilter<"ip_history"> | bigint | number +}, "id"> + +export type ip_historyOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip?: Prisma.SortOrder + date?: Prisma.SortOrder + _count?: Prisma.ip_historyCountOrderByAggregateInput + _avg?: Prisma.ip_historyAvgOrderByAggregateInput + _max?: Prisma.ip_historyMaxOrderByAggregateInput + _min?: Prisma.ip_historyMinOrderByAggregateInput + _sum?: Prisma.ip_historySumOrderByAggregateInput +} + +export type ip_historyScalarWhereWithAggregatesInput = { + AND?: Prisma.ip_historyScalarWhereWithAggregatesInput | Prisma.ip_historyScalarWhereWithAggregatesInput[] + OR?: Prisma.ip_historyScalarWhereWithAggregatesInput[] + NOT?: Prisma.ip_historyScalarWhereWithAggregatesInput | Prisma.ip_historyScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"ip_history"> | number + account_id?: Prisma.IntWithAggregatesFilter<"ip_history"> | number + delivery_id?: Prisma.IntWithAggregatesFilter<"ip_history"> | number + service_id?: Prisma.IntWithAggregatesFilter<"ip_history"> | number + ip?: Prisma.StringWithAggregatesFilter<"ip_history"> | string + date?: Prisma.BigIntWithAggregatesFilter<"ip_history"> | bigint | number +} + +export type ip_historyCreateInput = { + account_id: number + delivery_id: number + service_id: number + ip: string + date: bigint | number +} + +export type ip_historyUncheckedCreateInput = { + id?: number + account_id: number + delivery_id: number + service_id: number + ip: string + date: bigint | number +} + +export type ip_historyUpdateInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + ip?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type ip_historyUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + ip?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type ip_historyCreateManyInput = { + id?: number + account_id: number + delivery_id: number + service_id: number + ip: string + date: bigint | number +} + +export type ip_historyUpdateManyMutationInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + ip?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type ip_historyUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + ip?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type ip_historyOrderByRelevanceInput = { + fields: Prisma.ip_historyOrderByRelevanceFieldEnum | Prisma.ip_historyOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type ip_historyCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip?: Prisma.SortOrder + date?: Prisma.SortOrder +} + +export type ip_historyAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + date?: Prisma.SortOrder +} + +export type ip_historyMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip?: Prisma.SortOrder + date?: Prisma.SortOrder +} + +export type ip_historyMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + ip?: Prisma.SortOrder + date?: Prisma.SortOrder +} + +export type ip_historySumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + date?: Prisma.SortOrder +} + + + +export type ip_historySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + delivery_id?: boolean + service_id?: boolean + ip?: boolean + date?: boolean +}, ExtArgs["result"]["ip_history"]> + + + +export type ip_historySelectScalar = { + id?: boolean + account_id?: boolean + delivery_id?: boolean + service_id?: boolean + ip?: boolean + date?: boolean +} + +export type ip_historyOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "delivery_id" | "service_id" | "ip" | "date", ExtArgs["result"]["ip_history"]> + +export type $ip_historyPayload = { + name: "ip_history" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: number + delivery_id: number + service_id: number + ip: string + date: bigint + }, ExtArgs["result"]["ip_history"]> + composites: {} +} + +export type ip_historyGetPayload = runtime.Types.Result.GetResult + +export type ip_historyCountArgs = + Omit & { + select?: Ip_historyCountAggregateInputType | true + } + +export interface ip_historyDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ip_history'], meta: { name: 'ip_history' } } + /** + * Find zero or one Ip_history that matches the filter. + * @param {ip_historyFindUniqueArgs} args - Arguments to find a Ip_history + * @example + * // Get one Ip_history + * const ip_history = await prisma.ip_history.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ip_historyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Ip_history that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ip_historyFindUniqueOrThrowArgs} args - Arguments to find a Ip_history + * @example + * // Get one Ip_history + * const ip_history = await prisma.ip_history.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ip_historyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ip_history 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 {ip_historyFindFirstArgs} args - Arguments to find a Ip_history + * @example + * // Get one Ip_history + * const ip_history = await prisma.ip_history.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ip_historyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ip_history 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 {ip_historyFindFirstOrThrowArgs} args - Arguments to find a Ip_history + * @example + * // Get one Ip_history + * const ip_history = await prisma.ip_history.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ip_historyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Ip_histories 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 {ip_historyFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Ip_histories + * const ip_histories = await prisma.ip_history.findMany() + * + * // Get first 10 Ip_histories + * const ip_histories = await prisma.ip_history.findMany({ take: 10 }) + * + * // Only select the `id` + * const ip_historyWithIdOnly = await prisma.ip_history.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Ip_history. + * @param {ip_historyCreateArgs} args - Arguments to create a Ip_history. + * @example + * // Create one Ip_history + * const Ip_history = await prisma.ip_history.create({ + * data: { + * // ... data to create a Ip_history + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ip_historyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Ip_histories. + * @param {ip_historyCreateManyArgs} args - Arguments to create many Ip_histories. + * @example + * // Create many Ip_histories + * const ip_history = await prisma.ip_history.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Ip_history. + * @param {ip_historyDeleteArgs} args - Arguments to delete one Ip_history. + * @example + * // Delete one Ip_history + * const Ip_history = await prisma.ip_history.delete({ + * where: { + * // ... filter to delete one Ip_history + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ip_historyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Ip_history. + * @param {ip_historyUpdateArgs} args - Arguments to update one Ip_history. + * @example + * // Update one Ip_history + * const ip_history = await prisma.ip_history.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ip_historyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Ip_histories. + * @param {ip_historyDeleteManyArgs} args - Arguments to filter Ip_histories to delete. + * @example + * // Delete a few Ip_histories + * const { count } = await prisma.ip_history.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Ip_histories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ip_historyUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Ip_histories + * const ip_history = await prisma.ip_history.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Ip_history. + * @param {ip_historyUpsertArgs} args - Arguments to update or create a Ip_history. + * @example + * // Update or create a Ip_history + * const ip_history = await prisma.ip_history.upsert({ + * create: { + * // ... data to create a Ip_history + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Ip_history we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ip_historyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Ip_histories. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ip_historyCountArgs} args - Arguments to filter Ip_histories to count. + * @example + * // Count the number of Ip_histories + * const count = await prisma.ip_history.count({ + * where: { + * // ... the filter for the Ip_histories 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 Ip_history. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Ip_historyAggregateArgs} 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 Ip_history. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ip_historyGroupByArgs} 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 ip_historyGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ip_historyGroupByArgs['orderBy'] } + : { orderBy?: ip_historyGroupByArgs['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 ? GetIp_historyGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ip_history model + */ +readonly fields: ip_historyFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ip_history. + * 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__ip_historyClient 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 ip_history model + */ +export interface ip_historyFieldRefs { + readonly id: Prisma.FieldRef<"ip_history", 'Int'> + readonly account_id: Prisma.FieldRef<"ip_history", 'Int'> + readonly delivery_id: Prisma.FieldRef<"ip_history", 'Int'> + readonly service_id: Prisma.FieldRef<"ip_history", 'Int'> + readonly ip: Prisma.FieldRef<"ip_history", 'String'> + readonly date: Prisma.FieldRef<"ip_history", 'BigInt'> +} + + +// Custom InputTypes +/** + * ip_history findUnique + */ +export type ip_historyFindUniqueArgs = { + /** + * Select specific fields to fetch from the ip_history + */ + select?: Prisma.ip_historySelect | null + /** + * Omit specific fields from the ip_history + */ + omit?: Prisma.ip_historyOmit | null + /** + * Filter, which ip_history to fetch. + */ + where: Prisma.ip_historyWhereUniqueInput +} + +/** + * ip_history findUniqueOrThrow + */ +export type ip_historyFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ip_history + */ + select?: Prisma.ip_historySelect | null + /** + * Omit specific fields from the ip_history + */ + omit?: Prisma.ip_historyOmit | null + /** + * Filter, which ip_history to fetch. + */ + where: Prisma.ip_historyWhereUniqueInput +} + +/** + * ip_history findFirst + */ +export type ip_historyFindFirstArgs = { + /** + * Select specific fields to fetch from the ip_history + */ + select?: Prisma.ip_historySelect | null + /** + * Omit specific fields from the ip_history + */ + omit?: Prisma.ip_historyOmit | null + /** + * Filter, which ip_history to fetch. + */ + where?: Prisma.ip_historyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_histories to fetch. + */ + orderBy?: Prisma.ip_historyOrderByWithRelationInput | Prisma.ip_historyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ip_histories. + */ + cursor?: Prisma.ip_historyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_histories 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` ip_histories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ip_histories. + */ + distinct?: Prisma.Ip_historyScalarFieldEnum | Prisma.Ip_historyScalarFieldEnum[] +} + +/** + * ip_history findFirstOrThrow + */ +export type ip_historyFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ip_history + */ + select?: Prisma.ip_historySelect | null + /** + * Omit specific fields from the ip_history + */ + omit?: Prisma.ip_historyOmit | null + /** + * Filter, which ip_history to fetch. + */ + where?: Prisma.ip_historyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_histories to fetch. + */ + orderBy?: Prisma.ip_historyOrderByWithRelationInput | Prisma.ip_historyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ip_histories. + */ + cursor?: Prisma.ip_historyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_histories 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` ip_histories. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ip_histories. + */ + distinct?: Prisma.Ip_historyScalarFieldEnum | Prisma.Ip_historyScalarFieldEnum[] +} + +/** + * ip_history findMany + */ +export type ip_historyFindManyArgs = { + /** + * Select specific fields to fetch from the ip_history + */ + select?: Prisma.ip_historySelect | null + /** + * Omit specific fields from the ip_history + */ + omit?: Prisma.ip_historyOmit | null + /** + * Filter, which ip_histories to fetch. + */ + where?: Prisma.ip_historyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_histories to fetch. + */ + orderBy?: Prisma.ip_historyOrderByWithRelationInput | Prisma.ip_historyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ip_histories. + */ + cursor?: Prisma.ip_historyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_histories 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` ip_histories. + */ + skip?: number + distinct?: Prisma.Ip_historyScalarFieldEnum | Prisma.Ip_historyScalarFieldEnum[] +} + +/** + * ip_history create + */ +export type ip_historyCreateArgs = { + /** + * Select specific fields to fetch from the ip_history + */ + select?: Prisma.ip_historySelect | null + /** + * Omit specific fields from the ip_history + */ + omit?: Prisma.ip_historyOmit | null + /** + * The data needed to create a ip_history. + */ + data: Prisma.XOR +} + +/** + * ip_history createMany + */ +export type ip_historyCreateManyArgs = { + /** + * The data used to create many ip_histories. + */ + data: Prisma.ip_historyCreateManyInput | Prisma.ip_historyCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ip_history update + */ +export type ip_historyUpdateArgs = { + /** + * Select specific fields to fetch from the ip_history + */ + select?: Prisma.ip_historySelect | null + /** + * Omit specific fields from the ip_history + */ + omit?: Prisma.ip_historyOmit | null + /** + * The data needed to update a ip_history. + */ + data: Prisma.XOR + /** + * Choose, which ip_history to update. + */ + where: Prisma.ip_historyWhereUniqueInput +} + +/** + * ip_history updateMany + */ +export type ip_historyUpdateManyArgs = { + /** + * The data used to update ip_histories. + */ + data: Prisma.XOR + /** + * Filter which ip_histories to update + */ + where?: Prisma.ip_historyWhereInput + /** + * Limit how many ip_histories to update. + */ + limit?: number +} + +/** + * ip_history upsert + */ +export type ip_historyUpsertArgs = { + /** + * Select specific fields to fetch from the ip_history + */ + select?: Prisma.ip_historySelect | null + /** + * Omit specific fields from the ip_history + */ + omit?: Prisma.ip_historyOmit | null + /** + * The filter to search for the ip_history to update in case it exists. + */ + where: Prisma.ip_historyWhereUniqueInput + /** + * In case the ip_history found by the `where` argument doesn't exist, create a new ip_history with this data. + */ + create: Prisma.XOR + /** + * In case the ip_history was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ip_history delete + */ +export type ip_historyDeleteArgs = { + /** + * Select specific fields to fetch from the ip_history + */ + select?: Prisma.ip_historySelect | null + /** + * Omit specific fields from the ip_history + */ + omit?: Prisma.ip_historyOmit | null + /** + * Filter which ip_history to delete. + */ + where: Prisma.ip_historyWhereUniqueInput +} + +/** + * ip_history deleteMany + */ +export type ip_historyDeleteManyArgs = { + /** + * Filter which ip_histories to delete + */ + where?: Prisma.ip_historyWhereInput + /** + * Limit how many ip_histories to delete. + */ + limit?: number +} + +/** + * ip_history without action + */ +export type ip_historyDefaultArgs = { + /** + * Select specific fields to fetch from the ip_history + */ + select?: Prisma.ip_historySelect | null + /** + * Omit specific fields from the ip_history + */ + omit?: Prisma.ip_historyOmit | null +} diff --git a/prisma/generated/mariadb/models/ip_pp.ts b/prisma/generated/mariadb/models/ip_pp.ts new file mode 100644 index 0000000..8b97d39 --- /dev/null +++ b/prisma/generated/mariadb/models/ip_pp.ts @@ -0,0 +1,1085 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ip_pp` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model ip_pp + * + */ +export type ip_ppModel = runtime.Types.Result.DefaultSelection + +export type AggregateIp_pp = { + _count: Ip_ppCountAggregateOutputType | null + _avg: Ip_ppAvgAggregateOutputType | null + _sum: Ip_ppSumAggregateOutputType | null + _min: Ip_ppMinAggregateOutputType | null + _max: Ip_ppMaxAggregateOutputType | null +} + +export type Ip_ppAvgAggregateOutputType = { + id: number | null + date: number | null +} + +export type Ip_ppSumAggregateOutputType = { + id: number | null + date: bigint | null +} + +export type Ip_ppMinAggregateOutputType = { + id: number | null + ip_prive: string | null + ip_public: string | null + date: bigint | null + ip_id: string | null +} + +export type Ip_ppMaxAggregateOutputType = { + id: number | null + ip_prive: string | null + ip_public: string | null + date: bigint | null + ip_id: string | null +} + +export type Ip_ppCountAggregateOutputType = { + id: number + ip_prive: number + ip_public: number + date: number + ip_id: number + _all: number +} + + +export type Ip_ppAvgAggregateInputType = { + id?: true + date?: true +} + +export type Ip_ppSumAggregateInputType = { + id?: true + date?: true +} + +export type Ip_ppMinAggregateInputType = { + id?: true + ip_prive?: true + ip_public?: true + date?: true + ip_id?: true +} + +export type Ip_ppMaxAggregateInputType = { + id?: true + ip_prive?: true + ip_public?: true + date?: true + ip_id?: true +} + +export type Ip_ppCountAggregateInputType = { + id?: true + ip_prive?: true + ip_public?: true + date?: true + ip_id?: true + _all?: true +} + +export type Ip_ppAggregateArgs = { + /** + * Filter which ip_pp to aggregate. + */ + where?: Prisma.ip_ppWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_pps to fetch. + */ + orderBy?: Prisma.ip_ppOrderByWithRelationInput | Prisma.ip_ppOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ip_ppWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_pps 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` ip_pps. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ip_pps + **/ + _count?: true | Ip_ppCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Ip_ppAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Ip_ppSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Ip_ppMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Ip_ppMaxAggregateInputType +} + +export type GetIp_ppAggregateType = { + [P in keyof T & keyof AggregateIp_pp]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ip_ppGroupByArgs = { + where?: Prisma.ip_ppWhereInput + orderBy?: Prisma.ip_ppOrderByWithAggregationInput | Prisma.ip_ppOrderByWithAggregationInput[] + by: Prisma.Ip_ppScalarFieldEnum[] | Prisma.Ip_ppScalarFieldEnum + having?: Prisma.ip_ppScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Ip_ppCountAggregateInputType | true + _avg?: Ip_ppAvgAggregateInputType + _sum?: Ip_ppSumAggregateInputType + _min?: Ip_ppMinAggregateInputType + _max?: Ip_ppMaxAggregateInputType +} + +export type Ip_ppGroupByOutputType = { + id: number + ip_prive: string + ip_public: string + date: bigint + ip_id: string + _count: Ip_ppCountAggregateOutputType | null + _avg: Ip_ppAvgAggregateOutputType | null + _sum: Ip_ppSumAggregateOutputType | null + _min: Ip_ppMinAggregateOutputType | null + _max: Ip_ppMaxAggregateOutputType | null +} + +type GetIp_ppGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Ip_ppGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ip_ppWhereInput = { + AND?: Prisma.ip_ppWhereInput | Prisma.ip_ppWhereInput[] + OR?: Prisma.ip_ppWhereInput[] + NOT?: Prisma.ip_ppWhereInput | Prisma.ip_ppWhereInput[] + id?: Prisma.IntFilter<"ip_pp"> | number + ip_prive?: Prisma.StringFilter<"ip_pp"> | string + ip_public?: Prisma.StringFilter<"ip_pp"> | string + date?: Prisma.BigIntFilter<"ip_pp"> | bigint | number + ip_id?: Prisma.StringFilter<"ip_pp"> | string +} + +export type ip_ppOrderByWithRelationInput = { + id?: Prisma.SortOrder + ip_prive?: Prisma.SortOrder + ip_public?: Prisma.SortOrder + date?: Prisma.SortOrder + ip_id?: Prisma.SortOrder + _relevance?: Prisma.ip_ppOrderByRelevanceInput +} + +export type ip_ppWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.ip_ppWhereInput | Prisma.ip_ppWhereInput[] + OR?: Prisma.ip_ppWhereInput[] + NOT?: Prisma.ip_ppWhereInput | Prisma.ip_ppWhereInput[] + ip_prive?: Prisma.StringFilter<"ip_pp"> | string + ip_public?: Prisma.StringFilter<"ip_pp"> | string + date?: Prisma.BigIntFilter<"ip_pp"> | bigint | number + ip_id?: Prisma.StringFilter<"ip_pp"> | string +}, "id"> + +export type ip_ppOrderByWithAggregationInput = { + id?: Prisma.SortOrder + ip_prive?: Prisma.SortOrder + ip_public?: Prisma.SortOrder + date?: Prisma.SortOrder + ip_id?: Prisma.SortOrder + _count?: Prisma.ip_ppCountOrderByAggregateInput + _avg?: Prisma.ip_ppAvgOrderByAggregateInput + _max?: Prisma.ip_ppMaxOrderByAggregateInput + _min?: Prisma.ip_ppMinOrderByAggregateInput + _sum?: Prisma.ip_ppSumOrderByAggregateInput +} + +export type ip_ppScalarWhereWithAggregatesInput = { + AND?: Prisma.ip_ppScalarWhereWithAggregatesInput | Prisma.ip_ppScalarWhereWithAggregatesInput[] + OR?: Prisma.ip_ppScalarWhereWithAggregatesInput[] + NOT?: Prisma.ip_ppScalarWhereWithAggregatesInput | Prisma.ip_ppScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"ip_pp"> | number + ip_prive?: Prisma.StringWithAggregatesFilter<"ip_pp"> | string + ip_public?: Prisma.StringWithAggregatesFilter<"ip_pp"> | string + date?: Prisma.BigIntWithAggregatesFilter<"ip_pp"> | bigint | number + ip_id?: Prisma.StringWithAggregatesFilter<"ip_pp"> | string +} + +export type ip_ppCreateInput = { + ip_prive: string + ip_public: string + date: bigint | number + ip_id?: string +} + +export type ip_ppUncheckedCreateInput = { + id?: number + ip_prive: string + ip_public: string + date: bigint | number + ip_id?: string +} + +export type ip_ppUpdateInput = { + ip_prive?: Prisma.StringFieldUpdateOperationsInput | string + ip_public?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ip_id?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ip_ppUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + ip_prive?: Prisma.StringFieldUpdateOperationsInput | string + ip_public?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ip_id?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ip_ppCreateManyInput = { + id?: number + ip_prive: string + ip_public: string + date: bigint | number + ip_id?: string +} + +export type ip_ppUpdateManyMutationInput = { + ip_prive?: Prisma.StringFieldUpdateOperationsInput | string + ip_public?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ip_id?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ip_ppUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + ip_prive?: Prisma.StringFieldUpdateOperationsInput | string + ip_public?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ip_id?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ip_ppOrderByRelevanceInput = { + fields: Prisma.ip_ppOrderByRelevanceFieldEnum | Prisma.ip_ppOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type ip_ppCountOrderByAggregateInput = { + id?: Prisma.SortOrder + ip_prive?: Prisma.SortOrder + ip_public?: Prisma.SortOrder + date?: Prisma.SortOrder + ip_id?: Prisma.SortOrder +} + +export type ip_ppAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder +} + +export type ip_ppMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + ip_prive?: Prisma.SortOrder + ip_public?: Prisma.SortOrder + date?: Prisma.SortOrder + ip_id?: Prisma.SortOrder +} + +export type ip_ppMinOrderByAggregateInput = { + id?: Prisma.SortOrder + ip_prive?: Prisma.SortOrder + ip_public?: Prisma.SortOrder + date?: Prisma.SortOrder + ip_id?: Prisma.SortOrder +} + +export type ip_ppSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder +} + + + +export type ip_ppSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + ip_prive?: boolean + ip_public?: boolean + date?: boolean + ip_id?: boolean +}, ExtArgs["result"]["ip_pp"]> + + + +export type ip_ppSelectScalar = { + id?: boolean + ip_prive?: boolean + ip_public?: boolean + date?: boolean + ip_id?: boolean +} + +export type ip_ppOmit = runtime.Types.Extensions.GetOmit<"id" | "ip_prive" | "ip_public" | "date" | "ip_id", ExtArgs["result"]["ip_pp"]> + +export type $ip_ppPayload = { + name: "ip_pp" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + ip_prive: string + ip_public: string + date: bigint + ip_id: string + }, ExtArgs["result"]["ip_pp"]> + composites: {} +} + +export type ip_ppGetPayload = runtime.Types.Result.GetResult + +export type ip_ppCountArgs = + Omit & { + select?: Ip_ppCountAggregateInputType | true + } + +export interface ip_ppDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ip_pp'], meta: { name: 'ip_pp' } } + /** + * Find zero or one Ip_pp that matches the filter. + * @param {ip_ppFindUniqueArgs} args - Arguments to find a Ip_pp + * @example + * // Get one Ip_pp + * const ip_pp = await prisma.ip_pp.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ip_ppClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Ip_pp that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ip_ppFindUniqueOrThrowArgs} args - Arguments to find a Ip_pp + * @example + * // Get one Ip_pp + * const ip_pp = await prisma.ip_pp.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ip_ppClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ip_pp 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 {ip_ppFindFirstArgs} args - Arguments to find a Ip_pp + * @example + * // Get one Ip_pp + * const ip_pp = await prisma.ip_pp.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ip_ppClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ip_pp 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 {ip_ppFindFirstOrThrowArgs} args - Arguments to find a Ip_pp + * @example + * // Get one Ip_pp + * const ip_pp = await prisma.ip_pp.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ip_ppClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Ip_pps 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 {ip_ppFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Ip_pps + * const ip_pps = await prisma.ip_pp.findMany() + * + * // Get first 10 Ip_pps + * const ip_pps = await prisma.ip_pp.findMany({ take: 10 }) + * + * // Only select the `id` + * const ip_ppWithIdOnly = await prisma.ip_pp.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Ip_pp. + * @param {ip_ppCreateArgs} args - Arguments to create a Ip_pp. + * @example + * // Create one Ip_pp + * const Ip_pp = await prisma.ip_pp.create({ + * data: { + * // ... data to create a Ip_pp + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ip_ppClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Ip_pps. + * @param {ip_ppCreateManyArgs} args - Arguments to create many Ip_pps. + * @example + * // Create many Ip_pps + * const ip_pp = await prisma.ip_pp.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Ip_pp. + * @param {ip_ppDeleteArgs} args - Arguments to delete one Ip_pp. + * @example + * // Delete one Ip_pp + * const Ip_pp = await prisma.ip_pp.delete({ + * where: { + * // ... filter to delete one Ip_pp + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ip_ppClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Ip_pp. + * @param {ip_ppUpdateArgs} args - Arguments to update one Ip_pp. + * @example + * // Update one Ip_pp + * const ip_pp = await prisma.ip_pp.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ip_ppClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Ip_pps. + * @param {ip_ppDeleteManyArgs} args - Arguments to filter Ip_pps to delete. + * @example + * // Delete a few Ip_pps + * const { count } = await prisma.ip_pp.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Ip_pps. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ip_ppUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Ip_pps + * const ip_pp = await prisma.ip_pp.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Ip_pp. + * @param {ip_ppUpsertArgs} args - Arguments to update or create a Ip_pp. + * @example + * // Update or create a Ip_pp + * const ip_pp = await prisma.ip_pp.upsert({ + * create: { + * // ... data to create a Ip_pp + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Ip_pp we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ip_ppClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Ip_pps. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ip_ppCountArgs} args - Arguments to filter Ip_pps to count. + * @example + * // Count the number of Ip_pps + * const count = await prisma.ip_pp.count({ + * where: { + * // ... the filter for the Ip_pps 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 Ip_pp. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Ip_ppAggregateArgs} 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 Ip_pp. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ip_ppGroupByArgs} 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 ip_ppGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ip_ppGroupByArgs['orderBy'] } + : { orderBy?: ip_ppGroupByArgs['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 ? GetIp_ppGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ip_pp model + */ +readonly fields: ip_ppFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ip_pp. + * 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__ip_ppClient 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 ip_pp model + */ +export interface ip_ppFieldRefs { + readonly id: Prisma.FieldRef<"ip_pp", 'Int'> + readonly ip_prive: Prisma.FieldRef<"ip_pp", 'String'> + readonly ip_public: Prisma.FieldRef<"ip_pp", 'String'> + readonly date: Prisma.FieldRef<"ip_pp", 'BigInt'> + readonly ip_id: Prisma.FieldRef<"ip_pp", 'String'> +} + + +// Custom InputTypes +/** + * ip_pp findUnique + */ +export type ip_ppFindUniqueArgs = { + /** + * Select specific fields to fetch from the ip_pp + */ + select?: Prisma.ip_ppSelect | null + /** + * Omit specific fields from the ip_pp + */ + omit?: Prisma.ip_ppOmit | null + /** + * Filter, which ip_pp to fetch. + */ + where: Prisma.ip_ppWhereUniqueInput +} + +/** + * ip_pp findUniqueOrThrow + */ +export type ip_ppFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ip_pp + */ + select?: Prisma.ip_ppSelect | null + /** + * Omit specific fields from the ip_pp + */ + omit?: Prisma.ip_ppOmit | null + /** + * Filter, which ip_pp to fetch. + */ + where: Prisma.ip_ppWhereUniqueInput +} + +/** + * ip_pp findFirst + */ +export type ip_ppFindFirstArgs = { + /** + * Select specific fields to fetch from the ip_pp + */ + select?: Prisma.ip_ppSelect | null + /** + * Omit specific fields from the ip_pp + */ + omit?: Prisma.ip_ppOmit | null + /** + * Filter, which ip_pp to fetch. + */ + where?: Prisma.ip_ppWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_pps to fetch. + */ + orderBy?: Prisma.ip_ppOrderByWithRelationInput | Prisma.ip_ppOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ip_pps. + */ + cursor?: Prisma.ip_ppWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_pps 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` ip_pps. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ip_pps. + */ + distinct?: Prisma.Ip_ppScalarFieldEnum | Prisma.Ip_ppScalarFieldEnum[] +} + +/** + * ip_pp findFirstOrThrow + */ +export type ip_ppFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ip_pp + */ + select?: Prisma.ip_ppSelect | null + /** + * Omit specific fields from the ip_pp + */ + omit?: Prisma.ip_ppOmit | null + /** + * Filter, which ip_pp to fetch. + */ + where?: Prisma.ip_ppWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_pps to fetch. + */ + orderBy?: Prisma.ip_ppOrderByWithRelationInput | Prisma.ip_ppOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ip_pps. + */ + cursor?: Prisma.ip_ppWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_pps 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` ip_pps. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ip_pps. + */ + distinct?: Prisma.Ip_ppScalarFieldEnum | Prisma.Ip_ppScalarFieldEnum[] +} + +/** + * ip_pp findMany + */ +export type ip_ppFindManyArgs = { + /** + * Select specific fields to fetch from the ip_pp + */ + select?: Prisma.ip_ppSelect | null + /** + * Omit specific fields from the ip_pp + */ + omit?: Prisma.ip_ppOmit | null + /** + * Filter, which ip_pps to fetch. + */ + where?: Prisma.ip_ppWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_pps to fetch. + */ + orderBy?: Prisma.ip_ppOrderByWithRelationInput | Prisma.ip_ppOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ip_pps. + */ + cursor?: Prisma.ip_ppWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_pps 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` ip_pps. + */ + skip?: number + distinct?: Prisma.Ip_ppScalarFieldEnum | Prisma.Ip_ppScalarFieldEnum[] +} + +/** + * ip_pp create + */ +export type ip_ppCreateArgs = { + /** + * Select specific fields to fetch from the ip_pp + */ + select?: Prisma.ip_ppSelect | null + /** + * Omit specific fields from the ip_pp + */ + omit?: Prisma.ip_ppOmit | null + /** + * The data needed to create a ip_pp. + */ + data: Prisma.XOR +} + +/** + * ip_pp createMany + */ +export type ip_ppCreateManyArgs = { + /** + * The data used to create many ip_pps. + */ + data: Prisma.ip_ppCreateManyInput | Prisma.ip_ppCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ip_pp update + */ +export type ip_ppUpdateArgs = { + /** + * Select specific fields to fetch from the ip_pp + */ + select?: Prisma.ip_ppSelect | null + /** + * Omit specific fields from the ip_pp + */ + omit?: Prisma.ip_ppOmit | null + /** + * The data needed to update a ip_pp. + */ + data: Prisma.XOR + /** + * Choose, which ip_pp to update. + */ + where: Prisma.ip_ppWhereUniqueInput +} + +/** + * ip_pp updateMany + */ +export type ip_ppUpdateManyArgs = { + /** + * The data used to update ip_pps. + */ + data: Prisma.XOR + /** + * Filter which ip_pps to update + */ + where?: Prisma.ip_ppWhereInput + /** + * Limit how many ip_pps to update. + */ + limit?: number +} + +/** + * ip_pp upsert + */ +export type ip_ppUpsertArgs = { + /** + * Select specific fields to fetch from the ip_pp + */ + select?: Prisma.ip_ppSelect | null + /** + * Omit specific fields from the ip_pp + */ + omit?: Prisma.ip_ppOmit | null + /** + * The filter to search for the ip_pp to update in case it exists. + */ + where: Prisma.ip_ppWhereUniqueInput + /** + * In case the ip_pp found by the `where` argument doesn't exist, create a new ip_pp with this data. + */ + create: Prisma.XOR + /** + * In case the ip_pp was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ip_pp delete + */ +export type ip_ppDeleteArgs = { + /** + * Select specific fields to fetch from the ip_pp + */ + select?: Prisma.ip_ppSelect | null + /** + * Omit specific fields from the ip_pp + */ + omit?: Prisma.ip_ppOmit | null + /** + * Filter which ip_pp to delete. + */ + where: Prisma.ip_ppWhereUniqueInput +} + +/** + * ip_pp deleteMany + */ +export type ip_ppDeleteManyArgs = { + /** + * Filter which ip_pps to delete + */ + where?: Prisma.ip_ppWhereInput + /** + * Limit how many ip_pps to delete. + */ + limit?: number +} + +/** + * ip_pp without action + */ +export type ip_ppDefaultArgs = { + /** + * Select specific fields to fetch from the ip_pp + */ + select?: Prisma.ip_ppSelect | null + /** + * Omit specific fields from the ip_pp + */ + omit?: Prisma.ip_ppOmit | null +} diff --git a/prisma/generated/mariadb/models/ip_static.ts b/prisma/generated/mariadb/models/ip_static.ts new file mode 100644 index 0000000..5b0f4b6 --- /dev/null +++ b/prisma/generated/mariadb/models/ip_static.ts @@ -0,0 +1,1053 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ip_static` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model ip_static + * + */ +export type ip_staticModel = runtime.Types.Result.DefaultSelection + +export type AggregateIp_static = { + _count: Ip_staticCountAggregateOutputType | null + _avg: Ip_staticAvgAggregateOutputType | null + _sum: Ip_staticSumAggregateOutputType | null + _min: Ip_staticMinAggregateOutputType | null + _max: Ip_staticMaxAggregateOutputType | null +} + +export type Ip_staticAvgAggregateOutputType = { + id: number | null +} + +export type Ip_staticSumAggregateOutputType = { + id: number | null +} + +export type Ip_staticMinAggregateOutputType = { + id: number | null + ip: string | null + static: boolean | null + reverse: string | null +} + +export type Ip_staticMaxAggregateOutputType = { + id: number | null + ip: string | null + static: boolean | null + reverse: string | null +} + +export type Ip_staticCountAggregateOutputType = { + id: number + ip: number + static: number + reverse: number + _all: number +} + + +export type Ip_staticAvgAggregateInputType = { + id?: true +} + +export type Ip_staticSumAggregateInputType = { + id?: true +} + +export type Ip_staticMinAggregateInputType = { + id?: true + ip?: true + static?: true + reverse?: true +} + +export type Ip_staticMaxAggregateInputType = { + id?: true + ip?: true + static?: true + reverse?: true +} + +export type Ip_staticCountAggregateInputType = { + id?: true + ip?: true + static?: true + reverse?: true + _all?: true +} + +export type Ip_staticAggregateArgs = { + /** + * Filter which ip_static to aggregate. + */ + where?: Prisma.ip_staticWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_statics to fetch. + */ + orderBy?: Prisma.ip_staticOrderByWithRelationInput | Prisma.ip_staticOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ip_staticWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_statics 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` ip_statics. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ip_statics + **/ + _count?: true | Ip_staticCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Ip_staticAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Ip_staticSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Ip_staticMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Ip_staticMaxAggregateInputType +} + +export type GetIp_staticAggregateType = { + [P in keyof T & keyof AggregateIp_static]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ip_staticGroupByArgs = { + where?: Prisma.ip_staticWhereInput + orderBy?: Prisma.ip_staticOrderByWithAggregationInput | Prisma.ip_staticOrderByWithAggregationInput[] + by: Prisma.Ip_staticScalarFieldEnum[] | Prisma.Ip_staticScalarFieldEnum + having?: Prisma.ip_staticScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Ip_staticCountAggregateInputType | true + _avg?: Ip_staticAvgAggregateInputType + _sum?: Ip_staticSumAggregateInputType + _min?: Ip_staticMinAggregateInputType + _max?: Ip_staticMaxAggregateInputType +} + +export type Ip_staticGroupByOutputType = { + id: number + ip: string + static: boolean + reverse: string | null + _count: Ip_staticCountAggregateOutputType | null + _avg: Ip_staticAvgAggregateOutputType | null + _sum: Ip_staticSumAggregateOutputType | null + _min: Ip_staticMinAggregateOutputType | null + _max: Ip_staticMaxAggregateOutputType | null +} + +type GetIp_staticGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Ip_staticGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ip_staticWhereInput = { + AND?: Prisma.ip_staticWhereInput | Prisma.ip_staticWhereInput[] + OR?: Prisma.ip_staticWhereInput[] + NOT?: Prisma.ip_staticWhereInput | Prisma.ip_staticWhereInput[] + id?: Prisma.IntFilter<"ip_static"> | number + ip?: Prisma.StringFilter<"ip_static"> | string + static?: Prisma.BoolFilter<"ip_static"> | boolean + reverse?: Prisma.StringNullableFilter<"ip_static"> | string | null +} + +export type ip_staticOrderByWithRelationInput = { + id?: Prisma.SortOrder + ip?: Prisma.SortOrder + static?: Prisma.SortOrder + reverse?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.ip_staticOrderByRelevanceInput +} + +export type ip_staticWhereUniqueInput = Prisma.AtLeast<{ + id?: number + ip?: string + AND?: Prisma.ip_staticWhereInput | Prisma.ip_staticWhereInput[] + OR?: Prisma.ip_staticWhereInput[] + NOT?: Prisma.ip_staticWhereInput | Prisma.ip_staticWhereInput[] + static?: Prisma.BoolFilter<"ip_static"> | boolean + reverse?: Prisma.StringNullableFilter<"ip_static"> | string | null +}, "id" | "ip"> + +export type ip_staticOrderByWithAggregationInput = { + id?: Prisma.SortOrder + ip?: Prisma.SortOrder + static?: Prisma.SortOrder + reverse?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.ip_staticCountOrderByAggregateInput + _avg?: Prisma.ip_staticAvgOrderByAggregateInput + _max?: Prisma.ip_staticMaxOrderByAggregateInput + _min?: Prisma.ip_staticMinOrderByAggregateInput + _sum?: Prisma.ip_staticSumOrderByAggregateInput +} + +export type ip_staticScalarWhereWithAggregatesInput = { + AND?: Prisma.ip_staticScalarWhereWithAggregatesInput | Prisma.ip_staticScalarWhereWithAggregatesInput[] + OR?: Prisma.ip_staticScalarWhereWithAggregatesInput[] + NOT?: Prisma.ip_staticScalarWhereWithAggregatesInput | Prisma.ip_staticScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"ip_static"> | number + ip?: Prisma.StringWithAggregatesFilter<"ip_static"> | string + static?: Prisma.BoolWithAggregatesFilter<"ip_static"> | boolean + reverse?: Prisma.StringNullableWithAggregatesFilter<"ip_static"> | string | null +} + +export type ip_staticCreateInput = { + ip: string + static?: boolean + reverse?: string | null +} + +export type ip_staticUncheckedCreateInput = { + id?: number + ip: string + static?: boolean + reverse?: string | null +} + +export type ip_staticUpdateInput = { + ip?: Prisma.StringFieldUpdateOperationsInput | string + static?: Prisma.BoolFieldUpdateOperationsInput | boolean + reverse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ip_staticUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + ip?: Prisma.StringFieldUpdateOperationsInput | string + static?: Prisma.BoolFieldUpdateOperationsInput | boolean + reverse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ip_staticCreateManyInput = { + id?: number + ip: string + static?: boolean + reverse?: string | null +} + +export type ip_staticUpdateManyMutationInput = { + ip?: Prisma.StringFieldUpdateOperationsInput | string + static?: Prisma.BoolFieldUpdateOperationsInput | boolean + reverse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ip_staticUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + ip?: Prisma.StringFieldUpdateOperationsInput | string + static?: Prisma.BoolFieldUpdateOperationsInput | boolean + reverse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ip_staticOrderByRelevanceInput = { + fields: Prisma.ip_staticOrderByRelevanceFieldEnum | Prisma.ip_staticOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type ip_staticCountOrderByAggregateInput = { + id?: Prisma.SortOrder + ip?: Prisma.SortOrder + static?: Prisma.SortOrder + reverse?: Prisma.SortOrder +} + +export type ip_staticAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type ip_staticMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + ip?: Prisma.SortOrder + static?: Prisma.SortOrder + reverse?: Prisma.SortOrder +} + +export type ip_staticMinOrderByAggregateInput = { + id?: Prisma.SortOrder + ip?: Prisma.SortOrder + static?: Prisma.SortOrder + reverse?: Prisma.SortOrder +} + +export type ip_staticSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type ip_staticSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + ip?: boolean + static?: boolean + reverse?: boolean +}, ExtArgs["result"]["ip_static"]> + + + +export type ip_staticSelectScalar = { + id?: boolean + ip?: boolean + static?: boolean + reverse?: boolean +} + +export type ip_staticOmit = runtime.Types.Extensions.GetOmit<"id" | "ip" | "static" | "reverse", ExtArgs["result"]["ip_static"]> + +export type $ip_staticPayload = { + name: "ip_static" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + ip: string + static: boolean + reverse: string | null + }, ExtArgs["result"]["ip_static"]> + composites: {} +} + +export type ip_staticGetPayload = runtime.Types.Result.GetResult + +export type ip_staticCountArgs = + Omit & { + select?: Ip_staticCountAggregateInputType | true + } + +export interface ip_staticDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ip_static'], meta: { name: 'ip_static' } } + /** + * Find zero or one Ip_static that matches the filter. + * @param {ip_staticFindUniqueArgs} args - Arguments to find a Ip_static + * @example + * // Get one Ip_static + * const ip_static = await prisma.ip_static.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ip_staticClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Ip_static that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ip_staticFindUniqueOrThrowArgs} args - Arguments to find a Ip_static + * @example + * // Get one Ip_static + * const ip_static = await prisma.ip_static.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ip_staticClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ip_static 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 {ip_staticFindFirstArgs} args - Arguments to find a Ip_static + * @example + * // Get one Ip_static + * const ip_static = await prisma.ip_static.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ip_staticClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ip_static 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 {ip_staticFindFirstOrThrowArgs} args - Arguments to find a Ip_static + * @example + * // Get one Ip_static + * const ip_static = await prisma.ip_static.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ip_staticClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Ip_statics 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 {ip_staticFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Ip_statics + * const ip_statics = await prisma.ip_static.findMany() + * + * // Get first 10 Ip_statics + * const ip_statics = await prisma.ip_static.findMany({ take: 10 }) + * + * // Only select the `id` + * const ip_staticWithIdOnly = await prisma.ip_static.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Ip_static. + * @param {ip_staticCreateArgs} args - Arguments to create a Ip_static. + * @example + * // Create one Ip_static + * const Ip_static = await prisma.ip_static.create({ + * data: { + * // ... data to create a Ip_static + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ip_staticClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Ip_statics. + * @param {ip_staticCreateManyArgs} args - Arguments to create many Ip_statics. + * @example + * // Create many Ip_statics + * const ip_static = await prisma.ip_static.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Ip_static. + * @param {ip_staticDeleteArgs} args - Arguments to delete one Ip_static. + * @example + * // Delete one Ip_static + * const Ip_static = await prisma.ip_static.delete({ + * where: { + * // ... filter to delete one Ip_static + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ip_staticClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Ip_static. + * @param {ip_staticUpdateArgs} args - Arguments to update one Ip_static. + * @example + * // Update one Ip_static + * const ip_static = await prisma.ip_static.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ip_staticClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Ip_statics. + * @param {ip_staticDeleteManyArgs} args - Arguments to filter Ip_statics to delete. + * @example + * // Delete a few Ip_statics + * const { count } = await prisma.ip_static.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Ip_statics. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ip_staticUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Ip_statics + * const ip_static = await prisma.ip_static.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Ip_static. + * @param {ip_staticUpsertArgs} args - Arguments to update or create a Ip_static. + * @example + * // Update or create a Ip_static + * const ip_static = await prisma.ip_static.upsert({ + * create: { + * // ... data to create a Ip_static + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Ip_static we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ip_staticClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Ip_statics. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ip_staticCountArgs} args - Arguments to filter Ip_statics to count. + * @example + * // Count the number of Ip_statics + * const count = await prisma.ip_static.count({ + * where: { + * // ... the filter for the Ip_statics 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 Ip_static. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Ip_staticAggregateArgs} 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 Ip_static. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ip_staticGroupByArgs} 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 ip_staticGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ip_staticGroupByArgs['orderBy'] } + : { orderBy?: ip_staticGroupByArgs['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 ? GetIp_staticGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ip_static model + */ +readonly fields: ip_staticFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ip_static. + * 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__ip_staticClient 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 ip_static model + */ +export interface ip_staticFieldRefs { + readonly id: Prisma.FieldRef<"ip_static", 'Int'> + readonly ip: Prisma.FieldRef<"ip_static", 'String'> + readonly static: Prisma.FieldRef<"ip_static", 'Boolean'> + readonly reverse: Prisma.FieldRef<"ip_static", 'String'> +} + + +// Custom InputTypes +/** + * ip_static findUnique + */ +export type ip_staticFindUniqueArgs = { + /** + * Select specific fields to fetch from the ip_static + */ + select?: Prisma.ip_staticSelect | null + /** + * Omit specific fields from the ip_static + */ + omit?: Prisma.ip_staticOmit | null + /** + * Filter, which ip_static to fetch. + */ + where: Prisma.ip_staticWhereUniqueInput +} + +/** + * ip_static findUniqueOrThrow + */ +export type ip_staticFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ip_static + */ + select?: Prisma.ip_staticSelect | null + /** + * Omit specific fields from the ip_static + */ + omit?: Prisma.ip_staticOmit | null + /** + * Filter, which ip_static to fetch. + */ + where: Prisma.ip_staticWhereUniqueInput +} + +/** + * ip_static findFirst + */ +export type ip_staticFindFirstArgs = { + /** + * Select specific fields to fetch from the ip_static + */ + select?: Prisma.ip_staticSelect | null + /** + * Omit specific fields from the ip_static + */ + omit?: Prisma.ip_staticOmit | null + /** + * Filter, which ip_static to fetch. + */ + where?: Prisma.ip_staticWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_statics to fetch. + */ + orderBy?: Prisma.ip_staticOrderByWithRelationInput | Prisma.ip_staticOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ip_statics. + */ + cursor?: Prisma.ip_staticWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_statics 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` ip_statics. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ip_statics. + */ + distinct?: Prisma.Ip_staticScalarFieldEnum | Prisma.Ip_staticScalarFieldEnum[] +} + +/** + * ip_static findFirstOrThrow + */ +export type ip_staticFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ip_static + */ + select?: Prisma.ip_staticSelect | null + /** + * Omit specific fields from the ip_static + */ + omit?: Prisma.ip_staticOmit | null + /** + * Filter, which ip_static to fetch. + */ + where?: Prisma.ip_staticWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_statics to fetch. + */ + orderBy?: Prisma.ip_staticOrderByWithRelationInput | Prisma.ip_staticOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ip_statics. + */ + cursor?: Prisma.ip_staticWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_statics 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` ip_statics. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ip_statics. + */ + distinct?: Prisma.Ip_staticScalarFieldEnum | Prisma.Ip_staticScalarFieldEnum[] +} + +/** + * ip_static findMany + */ +export type ip_staticFindManyArgs = { + /** + * Select specific fields to fetch from the ip_static + */ + select?: Prisma.ip_staticSelect | null + /** + * Omit specific fields from the ip_static + */ + omit?: Prisma.ip_staticOmit | null + /** + * Filter, which ip_statics to fetch. + */ + where?: Prisma.ip_staticWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_statics to fetch. + */ + orderBy?: Prisma.ip_staticOrderByWithRelationInput | Prisma.ip_staticOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ip_statics. + */ + cursor?: Prisma.ip_staticWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_statics 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` ip_statics. + */ + skip?: number + distinct?: Prisma.Ip_staticScalarFieldEnum | Prisma.Ip_staticScalarFieldEnum[] +} + +/** + * ip_static create + */ +export type ip_staticCreateArgs = { + /** + * Select specific fields to fetch from the ip_static + */ + select?: Prisma.ip_staticSelect | null + /** + * Omit specific fields from the ip_static + */ + omit?: Prisma.ip_staticOmit | null + /** + * The data needed to create a ip_static. + */ + data: Prisma.XOR +} + +/** + * ip_static createMany + */ +export type ip_staticCreateManyArgs = { + /** + * The data used to create many ip_statics. + */ + data: Prisma.ip_staticCreateManyInput | Prisma.ip_staticCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ip_static update + */ +export type ip_staticUpdateArgs = { + /** + * Select specific fields to fetch from the ip_static + */ + select?: Prisma.ip_staticSelect | null + /** + * Omit specific fields from the ip_static + */ + omit?: Prisma.ip_staticOmit | null + /** + * The data needed to update a ip_static. + */ + data: Prisma.XOR + /** + * Choose, which ip_static to update. + */ + where: Prisma.ip_staticWhereUniqueInput +} + +/** + * ip_static updateMany + */ +export type ip_staticUpdateManyArgs = { + /** + * The data used to update ip_statics. + */ + data: Prisma.XOR + /** + * Filter which ip_statics to update + */ + where?: Prisma.ip_staticWhereInput + /** + * Limit how many ip_statics to update. + */ + limit?: number +} + +/** + * ip_static upsert + */ +export type ip_staticUpsertArgs = { + /** + * Select specific fields to fetch from the ip_static + */ + select?: Prisma.ip_staticSelect | null + /** + * Omit specific fields from the ip_static + */ + omit?: Prisma.ip_staticOmit | null + /** + * The filter to search for the ip_static to update in case it exists. + */ + where: Prisma.ip_staticWhereUniqueInput + /** + * In case the ip_static found by the `where` argument doesn't exist, create a new ip_static with this data. + */ + create: Prisma.XOR + /** + * In case the ip_static was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ip_static delete + */ +export type ip_staticDeleteArgs = { + /** + * Select specific fields to fetch from the ip_static + */ + select?: Prisma.ip_staticSelect | null + /** + * Omit specific fields from the ip_static + */ + omit?: Prisma.ip_staticOmit | null + /** + * Filter which ip_static to delete. + */ + where: Prisma.ip_staticWhereUniqueInput +} + +/** + * ip_static deleteMany + */ +export type ip_staticDeleteManyArgs = { + /** + * Filter which ip_statics to delete + */ + where?: Prisma.ip_staticWhereInput + /** + * Limit how many ip_statics to delete. + */ + limit?: number +} + +/** + * ip_static without action + */ +export type ip_staticDefaultArgs = { + /** + * Select specific fields to fetch from the ip_static + */ + select?: Prisma.ip_staticSelect | null + /** + * Omit specific fields from the ip_static + */ + omit?: Prisma.ip_staticOmit | null +} diff --git a/prisma/generated/mariadb/models/ip_targo.ts b/prisma/generated/mariadb/models/ip_targo.ts new file mode 100644 index 0000000..e0b539e --- /dev/null +++ b/prisma/generated/mariadb/models/ip_targo.ts @@ -0,0 +1,1059 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ip_targo` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model ip_targo + * + */ +export type ip_targoModel = runtime.Types.Result.DefaultSelection + +export type AggregateIp_targo = { + _count: Ip_targoCountAggregateOutputType | null + _avg: Ip_targoAvgAggregateOutputType | null + _sum: Ip_targoSumAggregateOutputType | null + _min: Ip_targoMinAggregateOutputType | null + _max: Ip_targoMaxAggregateOutputType | null +} + +export type Ip_targoAvgAggregateOutputType = { + id: number | null + cidr: number | null +} + +export type Ip_targoSumAggregateOutputType = { + id: number | null + cidr: number | null +} + +export type Ip_targoMinAggregateOutputType = { + id: number | null + ip: string | null + cidr: number | null + comment: string | null +} + +export type Ip_targoMaxAggregateOutputType = { + id: number | null + ip: string | null + cidr: number | null + comment: string | null +} + +export type Ip_targoCountAggregateOutputType = { + id: number + ip: number + cidr: number + comment: number + _all: number +} + + +export type Ip_targoAvgAggregateInputType = { + id?: true + cidr?: true +} + +export type Ip_targoSumAggregateInputType = { + id?: true + cidr?: true +} + +export type Ip_targoMinAggregateInputType = { + id?: true + ip?: true + cidr?: true + comment?: true +} + +export type Ip_targoMaxAggregateInputType = { + id?: true + ip?: true + cidr?: true + comment?: true +} + +export type Ip_targoCountAggregateInputType = { + id?: true + ip?: true + cidr?: true + comment?: true + _all?: true +} + +export type Ip_targoAggregateArgs = { + /** + * Filter which ip_targo to aggregate. + */ + where?: Prisma.ip_targoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_targos to fetch. + */ + orderBy?: Prisma.ip_targoOrderByWithRelationInput | Prisma.ip_targoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ip_targoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_targos 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` ip_targos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ip_targos + **/ + _count?: true | Ip_targoCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Ip_targoAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Ip_targoSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Ip_targoMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Ip_targoMaxAggregateInputType +} + +export type GetIp_targoAggregateType = { + [P in keyof T & keyof AggregateIp_targo]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ip_targoGroupByArgs = { + where?: Prisma.ip_targoWhereInput + orderBy?: Prisma.ip_targoOrderByWithAggregationInput | Prisma.ip_targoOrderByWithAggregationInput[] + by: Prisma.Ip_targoScalarFieldEnum[] | Prisma.Ip_targoScalarFieldEnum + having?: Prisma.ip_targoScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Ip_targoCountAggregateInputType | true + _avg?: Ip_targoAvgAggregateInputType + _sum?: Ip_targoSumAggregateInputType + _min?: Ip_targoMinAggregateInputType + _max?: Ip_targoMaxAggregateInputType +} + +export type Ip_targoGroupByOutputType = { + id: number + ip: string + cidr: number + comment: string | null + _count: Ip_targoCountAggregateOutputType | null + _avg: Ip_targoAvgAggregateOutputType | null + _sum: Ip_targoSumAggregateOutputType | null + _min: Ip_targoMinAggregateOutputType | null + _max: Ip_targoMaxAggregateOutputType | null +} + +type GetIp_targoGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Ip_targoGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ip_targoWhereInput = { + AND?: Prisma.ip_targoWhereInput | Prisma.ip_targoWhereInput[] + OR?: Prisma.ip_targoWhereInput[] + NOT?: Prisma.ip_targoWhereInput | Prisma.ip_targoWhereInput[] + id?: Prisma.IntFilter<"ip_targo"> | number + ip?: Prisma.StringFilter<"ip_targo"> | string + cidr?: Prisma.IntFilter<"ip_targo"> | number + comment?: Prisma.StringNullableFilter<"ip_targo"> | string | null +} + +export type ip_targoOrderByWithRelationInput = { + id?: Prisma.SortOrder + ip?: Prisma.SortOrder + cidr?: Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.ip_targoOrderByRelevanceInput +} + +export type ip_targoWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.ip_targoWhereInput | Prisma.ip_targoWhereInput[] + OR?: Prisma.ip_targoWhereInput[] + NOT?: Prisma.ip_targoWhereInput | Prisma.ip_targoWhereInput[] + ip?: Prisma.StringFilter<"ip_targo"> | string + cidr?: Prisma.IntFilter<"ip_targo"> | number + comment?: Prisma.StringNullableFilter<"ip_targo"> | string | null +}, "id"> + +export type ip_targoOrderByWithAggregationInput = { + id?: Prisma.SortOrder + ip?: Prisma.SortOrder + cidr?: Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.ip_targoCountOrderByAggregateInput + _avg?: Prisma.ip_targoAvgOrderByAggregateInput + _max?: Prisma.ip_targoMaxOrderByAggregateInput + _min?: Prisma.ip_targoMinOrderByAggregateInput + _sum?: Prisma.ip_targoSumOrderByAggregateInput +} + +export type ip_targoScalarWhereWithAggregatesInput = { + AND?: Prisma.ip_targoScalarWhereWithAggregatesInput | Prisma.ip_targoScalarWhereWithAggregatesInput[] + OR?: Prisma.ip_targoScalarWhereWithAggregatesInput[] + NOT?: Prisma.ip_targoScalarWhereWithAggregatesInput | Prisma.ip_targoScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"ip_targo"> | number + ip?: Prisma.StringWithAggregatesFilter<"ip_targo"> | string + cidr?: Prisma.IntWithAggregatesFilter<"ip_targo"> | number + comment?: Prisma.StringNullableWithAggregatesFilter<"ip_targo"> | string | null +} + +export type ip_targoCreateInput = { + ip: string + cidr: number + comment?: string | null +} + +export type ip_targoUncheckedCreateInput = { + id?: number + ip: string + cidr: number + comment?: string | null +} + +export type ip_targoUpdateInput = { + ip?: Prisma.StringFieldUpdateOperationsInput | string + cidr?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ip_targoUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + ip?: Prisma.StringFieldUpdateOperationsInput | string + cidr?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ip_targoCreateManyInput = { + id?: number + ip: string + cidr: number + comment?: string | null +} + +export type ip_targoUpdateManyMutationInput = { + ip?: Prisma.StringFieldUpdateOperationsInput | string + cidr?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ip_targoUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + ip?: Prisma.StringFieldUpdateOperationsInput | string + cidr?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ip_targoOrderByRelevanceInput = { + fields: Prisma.ip_targoOrderByRelevanceFieldEnum | Prisma.ip_targoOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type ip_targoCountOrderByAggregateInput = { + id?: Prisma.SortOrder + ip?: Prisma.SortOrder + cidr?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type ip_targoAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + cidr?: Prisma.SortOrder +} + +export type ip_targoMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + ip?: Prisma.SortOrder + cidr?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type ip_targoMinOrderByAggregateInput = { + id?: Prisma.SortOrder + ip?: Prisma.SortOrder + cidr?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type ip_targoSumOrderByAggregateInput = { + id?: Prisma.SortOrder + cidr?: Prisma.SortOrder +} + + + +export type ip_targoSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + ip?: boolean + cidr?: boolean + comment?: boolean +}, ExtArgs["result"]["ip_targo"]> + + + +export type ip_targoSelectScalar = { + id?: boolean + ip?: boolean + cidr?: boolean + comment?: boolean +} + +export type ip_targoOmit = runtime.Types.Extensions.GetOmit<"id" | "ip" | "cidr" | "comment", ExtArgs["result"]["ip_targo"]> + +export type $ip_targoPayload = { + name: "ip_targo" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + ip: string + cidr: number + comment: string | null + }, ExtArgs["result"]["ip_targo"]> + composites: {} +} + +export type ip_targoGetPayload = runtime.Types.Result.GetResult + +export type ip_targoCountArgs = + Omit & { + select?: Ip_targoCountAggregateInputType | true + } + +export interface ip_targoDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ip_targo'], meta: { name: 'ip_targo' } } + /** + * Find zero or one Ip_targo that matches the filter. + * @param {ip_targoFindUniqueArgs} args - Arguments to find a Ip_targo + * @example + * // Get one Ip_targo + * const ip_targo = await prisma.ip_targo.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ip_targoClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Ip_targo that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ip_targoFindUniqueOrThrowArgs} args - Arguments to find a Ip_targo + * @example + * // Get one Ip_targo + * const ip_targo = await prisma.ip_targo.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ip_targoClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ip_targo 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 {ip_targoFindFirstArgs} args - Arguments to find a Ip_targo + * @example + * // Get one Ip_targo + * const ip_targo = await prisma.ip_targo.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ip_targoClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ip_targo 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 {ip_targoFindFirstOrThrowArgs} args - Arguments to find a Ip_targo + * @example + * // Get one Ip_targo + * const ip_targo = await prisma.ip_targo.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ip_targoClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Ip_targos 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 {ip_targoFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Ip_targos + * const ip_targos = await prisma.ip_targo.findMany() + * + * // Get first 10 Ip_targos + * const ip_targos = await prisma.ip_targo.findMany({ take: 10 }) + * + * // Only select the `id` + * const ip_targoWithIdOnly = await prisma.ip_targo.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Ip_targo. + * @param {ip_targoCreateArgs} args - Arguments to create a Ip_targo. + * @example + * // Create one Ip_targo + * const Ip_targo = await prisma.ip_targo.create({ + * data: { + * // ... data to create a Ip_targo + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ip_targoClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Ip_targos. + * @param {ip_targoCreateManyArgs} args - Arguments to create many Ip_targos. + * @example + * // Create many Ip_targos + * const ip_targo = await prisma.ip_targo.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Ip_targo. + * @param {ip_targoDeleteArgs} args - Arguments to delete one Ip_targo. + * @example + * // Delete one Ip_targo + * const Ip_targo = await prisma.ip_targo.delete({ + * where: { + * // ... filter to delete one Ip_targo + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ip_targoClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Ip_targo. + * @param {ip_targoUpdateArgs} args - Arguments to update one Ip_targo. + * @example + * // Update one Ip_targo + * const ip_targo = await prisma.ip_targo.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ip_targoClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Ip_targos. + * @param {ip_targoDeleteManyArgs} args - Arguments to filter Ip_targos to delete. + * @example + * // Delete a few Ip_targos + * const { count } = await prisma.ip_targo.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Ip_targos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ip_targoUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Ip_targos + * const ip_targo = await prisma.ip_targo.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Ip_targo. + * @param {ip_targoUpsertArgs} args - Arguments to update or create a Ip_targo. + * @example + * // Update or create a Ip_targo + * const ip_targo = await prisma.ip_targo.upsert({ + * create: { + * // ... data to create a Ip_targo + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Ip_targo we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ip_targoClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Ip_targos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ip_targoCountArgs} args - Arguments to filter Ip_targos to count. + * @example + * // Count the number of Ip_targos + * const count = await prisma.ip_targo.count({ + * where: { + * // ... the filter for the Ip_targos 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 Ip_targo. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Ip_targoAggregateArgs} 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 Ip_targo. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ip_targoGroupByArgs} 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 ip_targoGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ip_targoGroupByArgs['orderBy'] } + : { orderBy?: ip_targoGroupByArgs['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 ? GetIp_targoGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ip_targo model + */ +readonly fields: ip_targoFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ip_targo. + * 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__ip_targoClient 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 ip_targo model + */ +export interface ip_targoFieldRefs { + readonly id: Prisma.FieldRef<"ip_targo", 'Int'> + readonly ip: Prisma.FieldRef<"ip_targo", 'String'> + readonly cidr: Prisma.FieldRef<"ip_targo", 'Int'> + readonly comment: Prisma.FieldRef<"ip_targo", 'String'> +} + + +// Custom InputTypes +/** + * ip_targo findUnique + */ +export type ip_targoFindUniqueArgs = { + /** + * Select specific fields to fetch from the ip_targo + */ + select?: Prisma.ip_targoSelect | null + /** + * Omit specific fields from the ip_targo + */ + omit?: Prisma.ip_targoOmit | null + /** + * Filter, which ip_targo to fetch. + */ + where: Prisma.ip_targoWhereUniqueInput +} + +/** + * ip_targo findUniqueOrThrow + */ +export type ip_targoFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ip_targo + */ + select?: Prisma.ip_targoSelect | null + /** + * Omit specific fields from the ip_targo + */ + omit?: Prisma.ip_targoOmit | null + /** + * Filter, which ip_targo to fetch. + */ + where: Prisma.ip_targoWhereUniqueInput +} + +/** + * ip_targo findFirst + */ +export type ip_targoFindFirstArgs = { + /** + * Select specific fields to fetch from the ip_targo + */ + select?: Prisma.ip_targoSelect | null + /** + * Omit specific fields from the ip_targo + */ + omit?: Prisma.ip_targoOmit | null + /** + * Filter, which ip_targo to fetch. + */ + where?: Prisma.ip_targoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_targos to fetch. + */ + orderBy?: Prisma.ip_targoOrderByWithRelationInput | Prisma.ip_targoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ip_targos. + */ + cursor?: Prisma.ip_targoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_targos 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` ip_targos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ip_targos. + */ + distinct?: Prisma.Ip_targoScalarFieldEnum | Prisma.Ip_targoScalarFieldEnum[] +} + +/** + * ip_targo findFirstOrThrow + */ +export type ip_targoFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ip_targo + */ + select?: Prisma.ip_targoSelect | null + /** + * Omit specific fields from the ip_targo + */ + omit?: Prisma.ip_targoOmit | null + /** + * Filter, which ip_targo to fetch. + */ + where?: Prisma.ip_targoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_targos to fetch. + */ + orderBy?: Prisma.ip_targoOrderByWithRelationInput | Prisma.ip_targoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ip_targos. + */ + cursor?: Prisma.ip_targoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_targos 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` ip_targos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ip_targos. + */ + distinct?: Prisma.Ip_targoScalarFieldEnum | Prisma.Ip_targoScalarFieldEnum[] +} + +/** + * ip_targo findMany + */ +export type ip_targoFindManyArgs = { + /** + * Select specific fields to fetch from the ip_targo + */ + select?: Prisma.ip_targoSelect | null + /** + * Omit specific fields from the ip_targo + */ + omit?: Prisma.ip_targoOmit | null + /** + * Filter, which ip_targos to fetch. + */ + where?: Prisma.ip_targoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ip_targos to fetch. + */ + orderBy?: Prisma.ip_targoOrderByWithRelationInput | Prisma.ip_targoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ip_targos. + */ + cursor?: Prisma.ip_targoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ip_targos 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` ip_targos. + */ + skip?: number + distinct?: Prisma.Ip_targoScalarFieldEnum | Prisma.Ip_targoScalarFieldEnum[] +} + +/** + * ip_targo create + */ +export type ip_targoCreateArgs = { + /** + * Select specific fields to fetch from the ip_targo + */ + select?: Prisma.ip_targoSelect | null + /** + * Omit specific fields from the ip_targo + */ + omit?: Prisma.ip_targoOmit | null + /** + * The data needed to create a ip_targo. + */ + data: Prisma.XOR +} + +/** + * ip_targo createMany + */ +export type ip_targoCreateManyArgs = { + /** + * The data used to create many ip_targos. + */ + data: Prisma.ip_targoCreateManyInput | Prisma.ip_targoCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ip_targo update + */ +export type ip_targoUpdateArgs = { + /** + * Select specific fields to fetch from the ip_targo + */ + select?: Prisma.ip_targoSelect | null + /** + * Omit specific fields from the ip_targo + */ + omit?: Prisma.ip_targoOmit | null + /** + * The data needed to update a ip_targo. + */ + data: Prisma.XOR + /** + * Choose, which ip_targo to update. + */ + where: Prisma.ip_targoWhereUniqueInput +} + +/** + * ip_targo updateMany + */ +export type ip_targoUpdateManyArgs = { + /** + * The data used to update ip_targos. + */ + data: Prisma.XOR + /** + * Filter which ip_targos to update + */ + where?: Prisma.ip_targoWhereInput + /** + * Limit how many ip_targos to update. + */ + limit?: number +} + +/** + * ip_targo upsert + */ +export type ip_targoUpsertArgs = { + /** + * Select specific fields to fetch from the ip_targo + */ + select?: Prisma.ip_targoSelect | null + /** + * Omit specific fields from the ip_targo + */ + omit?: Prisma.ip_targoOmit | null + /** + * The filter to search for the ip_targo to update in case it exists. + */ + where: Prisma.ip_targoWhereUniqueInput + /** + * In case the ip_targo found by the `where` argument doesn't exist, create a new ip_targo with this data. + */ + create: Prisma.XOR + /** + * In case the ip_targo was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ip_targo delete + */ +export type ip_targoDeleteArgs = { + /** + * Select specific fields to fetch from the ip_targo + */ + select?: Prisma.ip_targoSelect | null + /** + * Omit specific fields from the ip_targo + */ + omit?: Prisma.ip_targoOmit | null + /** + * Filter which ip_targo to delete. + */ + where: Prisma.ip_targoWhereUniqueInput +} + +/** + * ip_targo deleteMany + */ +export type ip_targoDeleteManyArgs = { + /** + * Filter which ip_targos to delete + */ + where?: Prisma.ip_targoWhereInput + /** + * Limit how many ip_targos to delete. + */ + limit?: number +} + +/** + * ip_targo without action + */ +export type ip_targoDefaultArgs = { + /** + * Select specific fields to fetch from the ip_targo + */ + select?: Prisma.ip_targoSelect | null + /** + * Omit specific fields from the ip_targo + */ + omit?: Prisma.ip_targoOmit | null +} diff --git a/prisma/generated/mariadb/models/licence.ts b/prisma/generated/mariadb/models/licence.ts new file mode 100644 index 0000000..d71273f --- /dev/null +++ b/prisma/generated/mariadb/models/licence.ts @@ -0,0 +1,1079 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `licence` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model licence + * + */ +export type licenceModel = runtime.Types.Result.DefaultSelection + +export type AggregateLicence = { + _count: LicenceCountAggregateOutputType | null + _avg: LicenceAvgAggregateOutputType | null + _sum: LicenceSumAggregateOutputType | null + _min: LicenceMinAggregateOutputType | null + _max: LicenceMaxAggregateOutputType | null +} + +export type LicenceAvgAggregateOutputType = { + id: number | null +} + +export type LicenceSumAggregateOutputType = { + id: number | null +} + +export type LicenceMinAggregateOutputType = { + id: number | null + nom: string | null + date: string | null + can_manage: string | null + comment: string | null +} + +export type LicenceMaxAggregateOutputType = { + id: number | null + nom: string | null + date: string | null + can_manage: string | null + comment: string | null +} + +export type LicenceCountAggregateOutputType = { + id: number + nom: number + date: number + can_manage: number + comment: number + _all: number +} + + +export type LicenceAvgAggregateInputType = { + id?: true +} + +export type LicenceSumAggregateInputType = { + id?: true +} + +export type LicenceMinAggregateInputType = { + id?: true + nom?: true + date?: true + can_manage?: true + comment?: true +} + +export type LicenceMaxAggregateInputType = { + id?: true + nom?: true + date?: true + can_manage?: true + comment?: true +} + +export type LicenceCountAggregateInputType = { + id?: true + nom?: true + date?: true + can_manage?: true + comment?: true + _all?: true +} + +export type LicenceAggregateArgs = { + /** + * Filter which licence to aggregate. + */ + where?: Prisma.licenceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of licences to fetch. + */ + orderBy?: Prisma.licenceOrderByWithRelationInput | Prisma.licenceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.licenceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` licences 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` licences. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned licences + **/ + _count?: true | LicenceCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: LicenceAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: LicenceSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: LicenceMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: LicenceMaxAggregateInputType +} + +export type GetLicenceAggregateType = { + [P in keyof T & keyof AggregateLicence]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type licenceGroupByArgs = { + where?: Prisma.licenceWhereInput + orderBy?: Prisma.licenceOrderByWithAggregationInput | Prisma.licenceOrderByWithAggregationInput[] + by: Prisma.LicenceScalarFieldEnum[] | Prisma.LicenceScalarFieldEnum + having?: Prisma.licenceScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: LicenceCountAggregateInputType | true + _avg?: LicenceAvgAggregateInputType + _sum?: LicenceSumAggregateInputType + _min?: LicenceMinAggregateInputType + _max?: LicenceMaxAggregateInputType +} + +export type LicenceGroupByOutputType = { + id: number + nom: string + date: string + can_manage: string + comment: string | null + _count: LicenceCountAggregateOutputType | null + _avg: LicenceAvgAggregateOutputType | null + _sum: LicenceSumAggregateOutputType | null + _min: LicenceMinAggregateOutputType | null + _max: LicenceMaxAggregateOutputType | null +} + +type GetLicenceGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof LicenceGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type licenceWhereInput = { + AND?: Prisma.licenceWhereInput | Prisma.licenceWhereInput[] + OR?: Prisma.licenceWhereInput[] + NOT?: Prisma.licenceWhereInput | Prisma.licenceWhereInput[] + id?: Prisma.IntFilter<"licence"> | number + nom?: Prisma.StringFilter<"licence"> | string + date?: Prisma.StringFilter<"licence"> | string + can_manage?: Prisma.StringFilter<"licence"> | string + comment?: Prisma.StringNullableFilter<"licence"> | string | null +} + +export type licenceOrderByWithRelationInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + date?: Prisma.SortOrder + can_manage?: Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.licenceOrderByRelevanceInput +} + +export type licenceWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.licenceWhereInput | Prisma.licenceWhereInput[] + OR?: Prisma.licenceWhereInput[] + NOT?: Prisma.licenceWhereInput | Prisma.licenceWhereInput[] + nom?: Prisma.StringFilter<"licence"> | string + date?: Prisma.StringFilter<"licence"> | string + can_manage?: Prisma.StringFilter<"licence"> | string + comment?: Prisma.StringNullableFilter<"licence"> | string | null +}, "id"> + +export type licenceOrderByWithAggregationInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + date?: Prisma.SortOrder + can_manage?: Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.licenceCountOrderByAggregateInput + _avg?: Prisma.licenceAvgOrderByAggregateInput + _max?: Prisma.licenceMaxOrderByAggregateInput + _min?: Prisma.licenceMinOrderByAggregateInput + _sum?: Prisma.licenceSumOrderByAggregateInput +} + +export type licenceScalarWhereWithAggregatesInput = { + AND?: Prisma.licenceScalarWhereWithAggregatesInput | Prisma.licenceScalarWhereWithAggregatesInput[] + OR?: Prisma.licenceScalarWhereWithAggregatesInput[] + NOT?: Prisma.licenceScalarWhereWithAggregatesInput | Prisma.licenceScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"licence"> | number + nom?: Prisma.StringWithAggregatesFilter<"licence"> | string + date?: Prisma.StringWithAggregatesFilter<"licence"> | string + can_manage?: Prisma.StringWithAggregatesFilter<"licence"> | string + comment?: Prisma.StringNullableWithAggregatesFilter<"licence"> | string | null +} + +export type licenceCreateInput = { + nom: string + date: string + can_manage: string + comment?: string | null +} + +export type licenceUncheckedCreateInput = { + id?: number + nom: string + date: string + can_manage: string + comment?: string | null +} + +export type licenceUpdateInput = { + nom?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + can_manage?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type licenceUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + nom?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + can_manage?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type licenceCreateManyInput = { + id?: number + nom: string + date: string + can_manage: string + comment?: string | null +} + +export type licenceUpdateManyMutationInput = { + nom?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + can_manage?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type licenceUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + nom?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + can_manage?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type licenceOrderByRelevanceInput = { + fields: Prisma.licenceOrderByRelevanceFieldEnum | Prisma.licenceOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type licenceCountOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + date?: Prisma.SortOrder + can_manage?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type licenceAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type licenceMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + date?: Prisma.SortOrder + can_manage?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type licenceMinOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + date?: Prisma.SortOrder + can_manage?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type licenceSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type licenceSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + nom?: boolean + date?: boolean + can_manage?: boolean + comment?: boolean +}, ExtArgs["result"]["licence"]> + + + +export type licenceSelectScalar = { + id?: boolean + nom?: boolean + date?: boolean + can_manage?: boolean + comment?: boolean +} + +export type licenceOmit = runtime.Types.Extensions.GetOmit<"id" | "nom" | "date" | "can_manage" | "comment", ExtArgs["result"]["licence"]> + +export type $licencePayload = { + name: "licence" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + nom: string + date: string + can_manage: string + comment: string | null + }, ExtArgs["result"]["licence"]> + composites: {} +} + +export type licenceGetPayload = runtime.Types.Result.GetResult + +export type licenceCountArgs = + Omit & { + select?: LicenceCountAggregateInputType | true + } + +export interface licenceDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['licence'], meta: { name: 'licence' } } + /** + * Find zero or one Licence that matches the filter. + * @param {licenceFindUniqueArgs} args - Arguments to find a Licence + * @example + * // Get one Licence + * const licence = await prisma.licence.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__licenceClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Licence that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {licenceFindUniqueOrThrowArgs} args - Arguments to find a Licence + * @example + * // Get one Licence + * const licence = await prisma.licence.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__licenceClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Licence 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 {licenceFindFirstArgs} args - Arguments to find a Licence + * @example + * // Get one Licence + * const licence = await prisma.licence.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__licenceClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Licence 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 {licenceFindFirstOrThrowArgs} args - Arguments to find a Licence + * @example + * // Get one Licence + * const licence = await prisma.licence.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__licenceClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Licences 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 {licenceFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Licences + * const licences = await prisma.licence.findMany() + * + * // Get first 10 Licences + * const licences = await prisma.licence.findMany({ take: 10 }) + * + * // Only select the `id` + * const licenceWithIdOnly = await prisma.licence.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Licence. + * @param {licenceCreateArgs} args - Arguments to create a Licence. + * @example + * // Create one Licence + * const Licence = await prisma.licence.create({ + * data: { + * // ... data to create a Licence + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__licenceClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Licences. + * @param {licenceCreateManyArgs} args - Arguments to create many Licences. + * @example + * // Create many Licences + * const licence = await prisma.licence.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Licence. + * @param {licenceDeleteArgs} args - Arguments to delete one Licence. + * @example + * // Delete one Licence + * const Licence = await prisma.licence.delete({ + * where: { + * // ... filter to delete one Licence + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__licenceClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Licence. + * @param {licenceUpdateArgs} args - Arguments to update one Licence. + * @example + * // Update one Licence + * const licence = await prisma.licence.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__licenceClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Licences. + * @param {licenceDeleteManyArgs} args - Arguments to filter Licences to delete. + * @example + * // Delete a few Licences + * const { count } = await prisma.licence.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Licences. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {licenceUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Licences + * const licence = await prisma.licence.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Licence. + * @param {licenceUpsertArgs} args - Arguments to update or create a Licence. + * @example + * // Update or create a Licence + * const licence = await prisma.licence.upsert({ + * create: { + * // ... data to create a Licence + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Licence we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__licenceClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Licences. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {licenceCountArgs} args - Arguments to filter Licences to count. + * @example + * // Count the number of Licences + * const count = await prisma.licence.count({ + * where: { + * // ... the filter for the Licences 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 Licence. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {LicenceAggregateArgs} 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 Licence. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {licenceGroupByArgs} 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 licenceGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: licenceGroupByArgs['orderBy'] } + : { orderBy?: licenceGroupByArgs['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 ? GetLicenceGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the licence model + */ +readonly fields: licenceFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for licence. + * 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__licenceClient 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 licence model + */ +export interface licenceFieldRefs { + readonly id: Prisma.FieldRef<"licence", 'Int'> + readonly nom: Prisma.FieldRef<"licence", 'String'> + readonly date: Prisma.FieldRef<"licence", 'String'> + readonly can_manage: Prisma.FieldRef<"licence", 'String'> + readonly comment: Prisma.FieldRef<"licence", 'String'> +} + + +// Custom InputTypes +/** + * licence findUnique + */ +export type licenceFindUniqueArgs = { + /** + * Select specific fields to fetch from the licence + */ + select?: Prisma.licenceSelect | null + /** + * Omit specific fields from the licence + */ + omit?: Prisma.licenceOmit | null + /** + * Filter, which licence to fetch. + */ + where: Prisma.licenceWhereUniqueInput +} + +/** + * licence findUniqueOrThrow + */ +export type licenceFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the licence + */ + select?: Prisma.licenceSelect | null + /** + * Omit specific fields from the licence + */ + omit?: Prisma.licenceOmit | null + /** + * Filter, which licence to fetch. + */ + where: Prisma.licenceWhereUniqueInput +} + +/** + * licence findFirst + */ +export type licenceFindFirstArgs = { + /** + * Select specific fields to fetch from the licence + */ + select?: Prisma.licenceSelect | null + /** + * Omit specific fields from the licence + */ + omit?: Prisma.licenceOmit | null + /** + * Filter, which licence to fetch. + */ + where?: Prisma.licenceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of licences to fetch. + */ + orderBy?: Prisma.licenceOrderByWithRelationInput | Prisma.licenceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for licences. + */ + cursor?: Prisma.licenceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` licences 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` licences. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of licences. + */ + distinct?: Prisma.LicenceScalarFieldEnum | Prisma.LicenceScalarFieldEnum[] +} + +/** + * licence findFirstOrThrow + */ +export type licenceFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the licence + */ + select?: Prisma.licenceSelect | null + /** + * Omit specific fields from the licence + */ + omit?: Prisma.licenceOmit | null + /** + * Filter, which licence to fetch. + */ + where?: Prisma.licenceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of licences to fetch. + */ + orderBy?: Prisma.licenceOrderByWithRelationInput | Prisma.licenceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for licences. + */ + cursor?: Prisma.licenceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` licences 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` licences. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of licences. + */ + distinct?: Prisma.LicenceScalarFieldEnum | Prisma.LicenceScalarFieldEnum[] +} + +/** + * licence findMany + */ +export type licenceFindManyArgs = { + /** + * Select specific fields to fetch from the licence + */ + select?: Prisma.licenceSelect | null + /** + * Omit specific fields from the licence + */ + omit?: Prisma.licenceOmit | null + /** + * Filter, which licences to fetch. + */ + where?: Prisma.licenceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of licences to fetch. + */ + orderBy?: Prisma.licenceOrderByWithRelationInput | Prisma.licenceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing licences. + */ + cursor?: Prisma.licenceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` licences 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` licences. + */ + skip?: number + distinct?: Prisma.LicenceScalarFieldEnum | Prisma.LicenceScalarFieldEnum[] +} + +/** + * licence create + */ +export type licenceCreateArgs = { + /** + * Select specific fields to fetch from the licence + */ + select?: Prisma.licenceSelect | null + /** + * Omit specific fields from the licence + */ + omit?: Prisma.licenceOmit | null + /** + * The data needed to create a licence. + */ + data: Prisma.XOR +} + +/** + * licence createMany + */ +export type licenceCreateManyArgs = { + /** + * The data used to create many licences. + */ + data: Prisma.licenceCreateManyInput | Prisma.licenceCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * licence update + */ +export type licenceUpdateArgs = { + /** + * Select specific fields to fetch from the licence + */ + select?: Prisma.licenceSelect | null + /** + * Omit specific fields from the licence + */ + omit?: Prisma.licenceOmit | null + /** + * The data needed to update a licence. + */ + data: Prisma.XOR + /** + * Choose, which licence to update. + */ + where: Prisma.licenceWhereUniqueInput +} + +/** + * licence updateMany + */ +export type licenceUpdateManyArgs = { + /** + * The data used to update licences. + */ + data: Prisma.XOR + /** + * Filter which licences to update + */ + where?: Prisma.licenceWhereInput + /** + * Limit how many licences to update. + */ + limit?: number +} + +/** + * licence upsert + */ +export type licenceUpsertArgs = { + /** + * Select specific fields to fetch from the licence + */ + select?: Prisma.licenceSelect | null + /** + * Omit specific fields from the licence + */ + omit?: Prisma.licenceOmit | null + /** + * The filter to search for the licence to update in case it exists. + */ + where: Prisma.licenceWhereUniqueInput + /** + * In case the licence found by the `where` argument doesn't exist, create a new licence with this data. + */ + create: Prisma.XOR + /** + * In case the licence was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * licence delete + */ +export type licenceDeleteArgs = { + /** + * Select specific fields to fetch from the licence + */ + select?: Prisma.licenceSelect | null + /** + * Omit specific fields from the licence + */ + omit?: Prisma.licenceOmit | null + /** + * Filter which licence to delete. + */ + where: Prisma.licenceWhereUniqueInput +} + +/** + * licence deleteMany + */ +export type licenceDeleteManyArgs = { + /** + * Filter which licences to delete + */ + where?: Prisma.licenceWhereInput + /** + * Limit how many licences to delete. + */ + limit?: number +} + +/** + * licence without action + */ +export type licenceDefaultArgs = { + /** + * Select specific fields to fetch from the licence + */ + select?: Prisma.licenceSelect | null + /** + * Omit specific fields from the licence + */ + omit?: Prisma.licenceOmit | null +} diff --git a/prisma/generated/mariadb/models/licence_key.ts b/prisma/generated/mariadb/models/licence_key.ts new file mode 100644 index 0000000..b8b54a4 --- /dev/null +++ b/prisma/generated/mariadb/models/licence_key.ts @@ -0,0 +1,1111 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `licence_key` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model licence_key + * + */ +export type licence_keyModel = runtime.Types.Result.DefaultSelection + +export type AggregateLicence_key = { + _count: Licence_keyCountAggregateOutputType | null + _avg: Licence_keyAvgAggregateOutputType | null + _sum: Licence_keySumAggregateOutputType | null + _min: Licence_keyMinAggregateOutputType | null + _max: Licence_keyMaxAggregateOutputType | null +} + +export type Licence_keyAvgAggregateOutputType = { + id: number | null + licence_id: number | null +} + +export type Licence_keySumAggregateOutputType = { + id: number | null + licence_id: number | null +} + +export type Licence_keyMinAggregateOutputType = { + id: number | null + licence_id: number | null + licence_key: string | null + date: string | null + date_expire: string | null + comment: string | null +} + +export type Licence_keyMaxAggregateOutputType = { + id: number | null + licence_id: number | null + licence_key: string | null + date: string | null + date_expire: string | null + comment: string | null +} + +export type Licence_keyCountAggregateOutputType = { + id: number + licence_id: number + licence_key: number + date: number + date_expire: number + comment: number + _all: number +} + + +export type Licence_keyAvgAggregateInputType = { + id?: true + licence_id?: true +} + +export type Licence_keySumAggregateInputType = { + id?: true + licence_id?: true +} + +export type Licence_keyMinAggregateInputType = { + id?: true + licence_id?: true + licence_key?: true + date?: true + date_expire?: true + comment?: true +} + +export type Licence_keyMaxAggregateInputType = { + id?: true + licence_id?: true + licence_key?: true + date?: true + date_expire?: true + comment?: true +} + +export type Licence_keyCountAggregateInputType = { + id?: true + licence_id?: true + licence_key?: true + date?: true + date_expire?: true + comment?: true + _all?: true +} + +export type Licence_keyAggregateArgs = { + /** + * Filter which licence_key to aggregate. + */ + where?: Prisma.licence_keyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of licence_keys to fetch. + */ + orderBy?: Prisma.licence_keyOrderByWithRelationInput | Prisma.licence_keyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.licence_keyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` licence_keys 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` licence_keys. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned licence_keys + **/ + _count?: true | Licence_keyCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Licence_keyAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Licence_keySumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Licence_keyMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Licence_keyMaxAggregateInputType +} + +export type GetLicence_keyAggregateType = { + [P in keyof T & keyof AggregateLicence_key]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type licence_keyGroupByArgs = { + where?: Prisma.licence_keyWhereInput + orderBy?: Prisma.licence_keyOrderByWithAggregationInput | Prisma.licence_keyOrderByWithAggregationInput[] + by: Prisma.Licence_keyScalarFieldEnum[] | Prisma.Licence_keyScalarFieldEnum + having?: Prisma.licence_keyScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Licence_keyCountAggregateInputType | true + _avg?: Licence_keyAvgAggregateInputType + _sum?: Licence_keySumAggregateInputType + _min?: Licence_keyMinAggregateInputType + _max?: Licence_keyMaxAggregateInputType +} + +export type Licence_keyGroupByOutputType = { + id: number + licence_id: number + licence_key: string + date: string + date_expire: string | null + comment: string + _count: Licence_keyCountAggregateOutputType | null + _avg: Licence_keyAvgAggregateOutputType | null + _sum: Licence_keySumAggregateOutputType | null + _min: Licence_keyMinAggregateOutputType | null + _max: Licence_keyMaxAggregateOutputType | null +} + +type GetLicence_keyGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Licence_keyGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type licence_keyWhereInput = { + AND?: Prisma.licence_keyWhereInput | Prisma.licence_keyWhereInput[] + OR?: Prisma.licence_keyWhereInput[] + NOT?: Prisma.licence_keyWhereInput | Prisma.licence_keyWhereInput[] + id?: Prisma.IntFilter<"licence_key"> | number + licence_id?: Prisma.IntFilter<"licence_key"> | number + licence_key?: Prisma.StringFilter<"licence_key"> | string + date?: Prisma.StringFilter<"licence_key"> | string + date_expire?: Prisma.StringNullableFilter<"licence_key"> | string | null + comment?: Prisma.StringFilter<"licence_key"> | string +} + +export type licence_keyOrderByWithRelationInput = { + id?: Prisma.SortOrder + licence_id?: Prisma.SortOrder + licence_key?: Prisma.SortOrder + date?: Prisma.SortOrder + date_expire?: Prisma.SortOrderInput | Prisma.SortOrder + comment?: Prisma.SortOrder + _relevance?: Prisma.licence_keyOrderByRelevanceInput +} + +export type licence_keyWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.licence_keyWhereInput | Prisma.licence_keyWhereInput[] + OR?: Prisma.licence_keyWhereInput[] + NOT?: Prisma.licence_keyWhereInput | Prisma.licence_keyWhereInput[] + licence_id?: Prisma.IntFilter<"licence_key"> | number + licence_key?: Prisma.StringFilter<"licence_key"> | string + date?: Prisma.StringFilter<"licence_key"> | string + date_expire?: Prisma.StringNullableFilter<"licence_key"> | string | null + comment?: Prisma.StringFilter<"licence_key"> | string +}, "id"> + +export type licence_keyOrderByWithAggregationInput = { + id?: Prisma.SortOrder + licence_id?: Prisma.SortOrder + licence_key?: Prisma.SortOrder + date?: Prisma.SortOrder + date_expire?: Prisma.SortOrderInput | Prisma.SortOrder + comment?: Prisma.SortOrder + _count?: Prisma.licence_keyCountOrderByAggregateInput + _avg?: Prisma.licence_keyAvgOrderByAggregateInput + _max?: Prisma.licence_keyMaxOrderByAggregateInput + _min?: Prisma.licence_keyMinOrderByAggregateInput + _sum?: Prisma.licence_keySumOrderByAggregateInput +} + +export type licence_keyScalarWhereWithAggregatesInput = { + AND?: Prisma.licence_keyScalarWhereWithAggregatesInput | Prisma.licence_keyScalarWhereWithAggregatesInput[] + OR?: Prisma.licence_keyScalarWhereWithAggregatesInput[] + NOT?: Prisma.licence_keyScalarWhereWithAggregatesInput | Prisma.licence_keyScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"licence_key"> | number + licence_id?: Prisma.IntWithAggregatesFilter<"licence_key"> | number + licence_key?: Prisma.StringWithAggregatesFilter<"licence_key"> | string + date?: Prisma.StringWithAggregatesFilter<"licence_key"> | string + date_expire?: Prisma.StringNullableWithAggregatesFilter<"licence_key"> | string | null + comment?: Prisma.StringWithAggregatesFilter<"licence_key"> | string +} + +export type licence_keyCreateInput = { + licence_id: number + licence_key: string + date: string + date_expire?: string | null + comment: string +} + +export type licence_keyUncheckedCreateInput = { + id?: number + licence_id: number + licence_key: string + date: string + date_expire?: string | null + comment: string +} + +export type licence_keyUpdateInput = { + licence_id?: Prisma.IntFieldUpdateOperationsInput | number + licence_key?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + date_expire?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type licence_keyUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + licence_id?: Prisma.IntFieldUpdateOperationsInput | number + licence_key?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + date_expire?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type licence_keyCreateManyInput = { + id?: number + licence_id: number + licence_key: string + date: string + date_expire?: string | null + comment: string +} + +export type licence_keyUpdateManyMutationInput = { + licence_id?: Prisma.IntFieldUpdateOperationsInput | number + licence_key?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + date_expire?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type licence_keyUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + licence_id?: Prisma.IntFieldUpdateOperationsInput | number + licence_key?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.StringFieldUpdateOperationsInput | string + date_expire?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type licence_keyOrderByRelevanceInput = { + fields: Prisma.licence_keyOrderByRelevanceFieldEnum | Prisma.licence_keyOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type licence_keyCountOrderByAggregateInput = { + id?: Prisma.SortOrder + licence_id?: Prisma.SortOrder + licence_key?: Prisma.SortOrder + date?: Prisma.SortOrder + date_expire?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type licence_keyAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + licence_id?: Prisma.SortOrder +} + +export type licence_keyMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + licence_id?: Prisma.SortOrder + licence_key?: Prisma.SortOrder + date?: Prisma.SortOrder + date_expire?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type licence_keyMinOrderByAggregateInput = { + id?: Prisma.SortOrder + licence_id?: Prisma.SortOrder + licence_key?: Prisma.SortOrder + date?: Prisma.SortOrder + date_expire?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type licence_keySumOrderByAggregateInput = { + id?: Prisma.SortOrder + licence_id?: Prisma.SortOrder +} + + + +export type licence_keySelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + licence_id?: boolean + licence_key?: boolean + date?: boolean + date_expire?: boolean + comment?: boolean +}, ExtArgs["result"]["licence_key"]> + + + +export type licence_keySelectScalar = { + id?: boolean + licence_id?: boolean + licence_key?: boolean + date?: boolean + date_expire?: boolean + comment?: boolean +} + +export type licence_keyOmit = runtime.Types.Extensions.GetOmit<"id" | "licence_id" | "licence_key" | "date" | "date_expire" | "comment", ExtArgs["result"]["licence_key"]> + +export type $licence_keyPayload = { + name: "licence_key" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + licence_id: number + licence_key: string + date: string + date_expire: string | null + comment: string + }, ExtArgs["result"]["licence_key"]> + composites: {} +} + +export type licence_keyGetPayload = runtime.Types.Result.GetResult + +export type licence_keyCountArgs = + Omit & { + select?: Licence_keyCountAggregateInputType | true + } + +export interface licence_keyDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['licence_key'], meta: { name: 'licence_key' } } + /** + * Find zero or one Licence_key that matches the filter. + * @param {licence_keyFindUniqueArgs} args - Arguments to find a Licence_key + * @example + * // Get one Licence_key + * const licence_key = await prisma.licence_key.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__licence_keyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Licence_key that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {licence_keyFindUniqueOrThrowArgs} args - Arguments to find a Licence_key + * @example + * // Get one Licence_key + * const licence_key = await prisma.licence_key.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__licence_keyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Licence_key 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 {licence_keyFindFirstArgs} args - Arguments to find a Licence_key + * @example + * // Get one Licence_key + * const licence_key = await prisma.licence_key.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__licence_keyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Licence_key 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 {licence_keyFindFirstOrThrowArgs} args - Arguments to find a Licence_key + * @example + * // Get one Licence_key + * const licence_key = await prisma.licence_key.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__licence_keyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Licence_keys 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 {licence_keyFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Licence_keys + * const licence_keys = await prisma.licence_key.findMany() + * + * // Get first 10 Licence_keys + * const licence_keys = await prisma.licence_key.findMany({ take: 10 }) + * + * // Only select the `id` + * const licence_keyWithIdOnly = await prisma.licence_key.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Licence_key. + * @param {licence_keyCreateArgs} args - Arguments to create a Licence_key. + * @example + * // Create one Licence_key + * const Licence_key = await prisma.licence_key.create({ + * data: { + * // ... data to create a Licence_key + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__licence_keyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Licence_keys. + * @param {licence_keyCreateManyArgs} args - Arguments to create many Licence_keys. + * @example + * // Create many Licence_keys + * const licence_key = await prisma.licence_key.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Licence_key. + * @param {licence_keyDeleteArgs} args - Arguments to delete one Licence_key. + * @example + * // Delete one Licence_key + * const Licence_key = await prisma.licence_key.delete({ + * where: { + * // ... filter to delete one Licence_key + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__licence_keyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Licence_key. + * @param {licence_keyUpdateArgs} args - Arguments to update one Licence_key. + * @example + * // Update one Licence_key + * const licence_key = await prisma.licence_key.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__licence_keyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Licence_keys. + * @param {licence_keyDeleteManyArgs} args - Arguments to filter Licence_keys to delete. + * @example + * // Delete a few Licence_keys + * const { count } = await prisma.licence_key.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Licence_keys. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {licence_keyUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Licence_keys + * const licence_key = await prisma.licence_key.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Licence_key. + * @param {licence_keyUpsertArgs} args - Arguments to update or create a Licence_key. + * @example + * // Update or create a Licence_key + * const licence_key = await prisma.licence_key.upsert({ + * create: { + * // ... data to create a Licence_key + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Licence_key we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__licence_keyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Licence_keys. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {licence_keyCountArgs} args - Arguments to filter Licence_keys to count. + * @example + * // Count the number of Licence_keys + * const count = await prisma.licence_key.count({ + * where: { + * // ... the filter for the Licence_keys 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 Licence_key. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Licence_keyAggregateArgs} 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 Licence_key. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {licence_keyGroupByArgs} 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 licence_keyGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: licence_keyGroupByArgs['orderBy'] } + : { orderBy?: licence_keyGroupByArgs['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 ? GetLicence_keyGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the licence_key model + */ +readonly fields: licence_keyFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for licence_key. + * 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__licence_keyClient 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 licence_key model + */ +export interface licence_keyFieldRefs { + readonly id: Prisma.FieldRef<"licence_key", 'Int'> + readonly licence_id: Prisma.FieldRef<"licence_key", 'Int'> + readonly licence_key: Prisma.FieldRef<"licence_key", 'String'> + readonly date: Prisma.FieldRef<"licence_key", 'String'> + readonly date_expire: Prisma.FieldRef<"licence_key", 'String'> + readonly comment: Prisma.FieldRef<"licence_key", 'String'> +} + + +// Custom InputTypes +/** + * licence_key findUnique + */ +export type licence_keyFindUniqueArgs = { + /** + * Select specific fields to fetch from the licence_key + */ + select?: Prisma.licence_keySelect | null + /** + * Omit specific fields from the licence_key + */ + omit?: Prisma.licence_keyOmit | null + /** + * Filter, which licence_key to fetch. + */ + where: Prisma.licence_keyWhereUniqueInput +} + +/** + * licence_key findUniqueOrThrow + */ +export type licence_keyFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the licence_key + */ + select?: Prisma.licence_keySelect | null + /** + * Omit specific fields from the licence_key + */ + omit?: Prisma.licence_keyOmit | null + /** + * Filter, which licence_key to fetch. + */ + where: Prisma.licence_keyWhereUniqueInput +} + +/** + * licence_key findFirst + */ +export type licence_keyFindFirstArgs = { + /** + * Select specific fields to fetch from the licence_key + */ + select?: Prisma.licence_keySelect | null + /** + * Omit specific fields from the licence_key + */ + omit?: Prisma.licence_keyOmit | null + /** + * Filter, which licence_key to fetch. + */ + where?: Prisma.licence_keyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of licence_keys to fetch. + */ + orderBy?: Prisma.licence_keyOrderByWithRelationInput | Prisma.licence_keyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for licence_keys. + */ + cursor?: Prisma.licence_keyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` licence_keys 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` licence_keys. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of licence_keys. + */ + distinct?: Prisma.Licence_keyScalarFieldEnum | Prisma.Licence_keyScalarFieldEnum[] +} + +/** + * licence_key findFirstOrThrow + */ +export type licence_keyFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the licence_key + */ + select?: Prisma.licence_keySelect | null + /** + * Omit specific fields from the licence_key + */ + omit?: Prisma.licence_keyOmit | null + /** + * Filter, which licence_key to fetch. + */ + where?: Prisma.licence_keyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of licence_keys to fetch. + */ + orderBy?: Prisma.licence_keyOrderByWithRelationInput | Prisma.licence_keyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for licence_keys. + */ + cursor?: Prisma.licence_keyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` licence_keys 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` licence_keys. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of licence_keys. + */ + distinct?: Prisma.Licence_keyScalarFieldEnum | Prisma.Licence_keyScalarFieldEnum[] +} + +/** + * licence_key findMany + */ +export type licence_keyFindManyArgs = { + /** + * Select specific fields to fetch from the licence_key + */ + select?: Prisma.licence_keySelect | null + /** + * Omit specific fields from the licence_key + */ + omit?: Prisma.licence_keyOmit | null + /** + * Filter, which licence_keys to fetch. + */ + where?: Prisma.licence_keyWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of licence_keys to fetch. + */ + orderBy?: Prisma.licence_keyOrderByWithRelationInput | Prisma.licence_keyOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing licence_keys. + */ + cursor?: Prisma.licence_keyWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` licence_keys 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` licence_keys. + */ + skip?: number + distinct?: Prisma.Licence_keyScalarFieldEnum | Prisma.Licence_keyScalarFieldEnum[] +} + +/** + * licence_key create + */ +export type licence_keyCreateArgs = { + /** + * Select specific fields to fetch from the licence_key + */ + select?: Prisma.licence_keySelect | null + /** + * Omit specific fields from the licence_key + */ + omit?: Prisma.licence_keyOmit | null + /** + * The data needed to create a licence_key. + */ + data: Prisma.XOR +} + +/** + * licence_key createMany + */ +export type licence_keyCreateManyArgs = { + /** + * The data used to create many licence_keys. + */ + data: Prisma.licence_keyCreateManyInput | Prisma.licence_keyCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * licence_key update + */ +export type licence_keyUpdateArgs = { + /** + * Select specific fields to fetch from the licence_key + */ + select?: Prisma.licence_keySelect | null + /** + * Omit specific fields from the licence_key + */ + omit?: Prisma.licence_keyOmit | null + /** + * The data needed to update a licence_key. + */ + data: Prisma.XOR + /** + * Choose, which licence_key to update. + */ + where: Prisma.licence_keyWhereUniqueInput +} + +/** + * licence_key updateMany + */ +export type licence_keyUpdateManyArgs = { + /** + * The data used to update licence_keys. + */ + data: Prisma.XOR + /** + * Filter which licence_keys to update + */ + where?: Prisma.licence_keyWhereInput + /** + * Limit how many licence_keys to update. + */ + limit?: number +} + +/** + * licence_key upsert + */ +export type licence_keyUpsertArgs = { + /** + * Select specific fields to fetch from the licence_key + */ + select?: Prisma.licence_keySelect | null + /** + * Omit specific fields from the licence_key + */ + omit?: Prisma.licence_keyOmit | null + /** + * The filter to search for the licence_key to update in case it exists. + */ + where: Prisma.licence_keyWhereUniqueInput + /** + * In case the licence_key found by the `where` argument doesn't exist, create a new licence_key with this data. + */ + create: Prisma.XOR + /** + * In case the licence_key was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * licence_key delete + */ +export type licence_keyDeleteArgs = { + /** + * Select specific fields to fetch from the licence_key + */ + select?: Prisma.licence_keySelect | null + /** + * Omit specific fields from the licence_key + */ + omit?: Prisma.licence_keyOmit | null + /** + * Filter which licence_key to delete. + */ + where: Prisma.licence_keyWhereUniqueInput +} + +/** + * licence_key deleteMany + */ +export type licence_keyDeleteManyArgs = { + /** + * Filter which licence_keys to delete + */ + where?: Prisma.licence_keyWhereInput + /** + * Limit how many licence_keys to delete. + */ + limit?: number +} + +/** + * licence_key without action + */ +export type licence_keyDefaultArgs = { + /** + * Select specific fields to fetch from the licence_key + */ + select?: Prisma.licence_keySelect | null + /** + * Omit specific fields from the licence_key + */ + omit?: Prisma.licence_keyOmit | null +} diff --git a/prisma/generated/mariadb/models/municipalite.ts b/prisma/generated/mariadb/models/municipalite.ts new file mode 100644 index 0000000..23ee3d0 --- /dev/null +++ b/prisma/generated/mariadb/models/municipalite.ts @@ -0,0 +1,1079 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `municipalite` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model municipalite + * + */ +export type municipaliteModel = runtime.Types.Result.DefaultSelection + +export type AggregateMunicipalite = { + _count: MunicipaliteCountAggregateOutputType | null + _avg: MunicipaliteAvgAggregateOutputType | null + _sum: MunicipaliteSumAggregateOutputType | null + _min: MunicipaliteMinAggregateOutputType | null + _max: MunicipaliteMaxAggregateOutputType | null +} + +export type MunicipaliteAvgAggregateOutputType = { + id: number | null +} + +export type MunicipaliteSumAggregateOutputType = { + id: number | null +} + +export type MunicipaliteMinAggregateOutputType = { + id: number | null + nom: string | null + code: string | null + administration: string | null + often_used: boolean | null +} + +export type MunicipaliteMaxAggregateOutputType = { + id: number | null + nom: string | null + code: string | null + administration: string | null + often_used: boolean | null +} + +export type MunicipaliteCountAggregateOutputType = { + id: number + nom: number + code: number + administration: number + often_used: number + _all: number +} + + +export type MunicipaliteAvgAggregateInputType = { + id?: true +} + +export type MunicipaliteSumAggregateInputType = { + id?: true +} + +export type MunicipaliteMinAggregateInputType = { + id?: true + nom?: true + code?: true + administration?: true + often_used?: true +} + +export type MunicipaliteMaxAggregateInputType = { + id?: true + nom?: true + code?: true + administration?: true + often_used?: true +} + +export type MunicipaliteCountAggregateInputType = { + id?: true + nom?: true + code?: true + administration?: true + often_used?: true + _all?: true +} + +export type MunicipaliteAggregateArgs = { + /** + * Filter which municipalite to aggregate. + */ + where?: Prisma.municipaliteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of municipalites to fetch. + */ + orderBy?: Prisma.municipaliteOrderByWithRelationInput | Prisma.municipaliteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.municipaliteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` municipalites 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` municipalites. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned municipalites + **/ + _count?: true | MunicipaliteCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: MunicipaliteAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: MunicipaliteSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: MunicipaliteMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: MunicipaliteMaxAggregateInputType +} + +export type GetMunicipaliteAggregateType = { + [P in keyof T & keyof AggregateMunicipalite]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type municipaliteGroupByArgs = { + where?: Prisma.municipaliteWhereInput + orderBy?: Prisma.municipaliteOrderByWithAggregationInput | Prisma.municipaliteOrderByWithAggregationInput[] + by: Prisma.MunicipaliteScalarFieldEnum[] | Prisma.MunicipaliteScalarFieldEnum + having?: Prisma.municipaliteScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: MunicipaliteCountAggregateInputType | true + _avg?: MunicipaliteAvgAggregateInputType + _sum?: MunicipaliteSumAggregateInputType + _min?: MunicipaliteMinAggregateInputType + _max?: MunicipaliteMaxAggregateInputType +} + +export type MunicipaliteGroupByOutputType = { + id: number + nom: string + code: string + administration: string + often_used: boolean + _count: MunicipaliteCountAggregateOutputType | null + _avg: MunicipaliteAvgAggregateOutputType | null + _sum: MunicipaliteSumAggregateOutputType | null + _min: MunicipaliteMinAggregateOutputType | null + _max: MunicipaliteMaxAggregateOutputType | null +} + +type GetMunicipaliteGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof MunicipaliteGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type municipaliteWhereInput = { + AND?: Prisma.municipaliteWhereInput | Prisma.municipaliteWhereInput[] + OR?: Prisma.municipaliteWhereInput[] + NOT?: Prisma.municipaliteWhereInput | Prisma.municipaliteWhereInput[] + id?: Prisma.IntFilter<"municipalite"> | number + nom?: Prisma.StringFilter<"municipalite"> | string + code?: Prisma.StringFilter<"municipalite"> | string + administration?: Prisma.StringFilter<"municipalite"> | string + often_used?: Prisma.BoolFilter<"municipalite"> | boolean +} + +export type municipaliteOrderByWithRelationInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + code?: Prisma.SortOrder + administration?: Prisma.SortOrder + often_used?: Prisma.SortOrder + _relevance?: Prisma.municipaliteOrderByRelevanceInput +} + +export type municipaliteWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.municipaliteWhereInput | Prisma.municipaliteWhereInput[] + OR?: Prisma.municipaliteWhereInput[] + NOT?: Prisma.municipaliteWhereInput | Prisma.municipaliteWhereInput[] + nom?: Prisma.StringFilter<"municipalite"> | string + code?: Prisma.StringFilter<"municipalite"> | string + administration?: Prisma.StringFilter<"municipalite"> | string + often_used?: Prisma.BoolFilter<"municipalite"> | boolean +}, "id"> + +export type municipaliteOrderByWithAggregationInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + code?: Prisma.SortOrder + administration?: Prisma.SortOrder + often_used?: Prisma.SortOrder + _count?: Prisma.municipaliteCountOrderByAggregateInput + _avg?: Prisma.municipaliteAvgOrderByAggregateInput + _max?: Prisma.municipaliteMaxOrderByAggregateInput + _min?: Prisma.municipaliteMinOrderByAggregateInput + _sum?: Prisma.municipaliteSumOrderByAggregateInput +} + +export type municipaliteScalarWhereWithAggregatesInput = { + AND?: Prisma.municipaliteScalarWhereWithAggregatesInput | Prisma.municipaliteScalarWhereWithAggregatesInput[] + OR?: Prisma.municipaliteScalarWhereWithAggregatesInput[] + NOT?: Prisma.municipaliteScalarWhereWithAggregatesInput | Prisma.municipaliteScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"municipalite"> | number + nom?: Prisma.StringWithAggregatesFilter<"municipalite"> | string + code?: Prisma.StringWithAggregatesFilter<"municipalite"> | string + administration?: Prisma.StringWithAggregatesFilter<"municipalite"> | string + often_used?: Prisma.BoolWithAggregatesFilter<"municipalite"> | boolean +} + +export type municipaliteCreateInput = { + nom: string + code: string + administration: string + often_used?: boolean +} + +export type municipaliteUncheckedCreateInput = { + id?: number + nom: string + code: string + administration: string + often_used?: boolean +} + +export type municipaliteUpdateInput = { + nom?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + administration?: Prisma.StringFieldUpdateOperationsInput | string + often_used?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type municipaliteUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + nom?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + administration?: Prisma.StringFieldUpdateOperationsInput | string + often_used?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type municipaliteCreateManyInput = { + id?: number + nom: string + code: string + administration: string + often_used?: boolean +} + +export type municipaliteUpdateManyMutationInput = { + nom?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + administration?: Prisma.StringFieldUpdateOperationsInput | string + often_used?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type municipaliteUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + nom?: Prisma.StringFieldUpdateOperationsInput | string + code?: Prisma.StringFieldUpdateOperationsInput | string + administration?: Prisma.StringFieldUpdateOperationsInput | string + often_used?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type municipaliteOrderByRelevanceInput = { + fields: Prisma.municipaliteOrderByRelevanceFieldEnum | Prisma.municipaliteOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type municipaliteCountOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + code?: Prisma.SortOrder + administration?: Prisma.SortOrder + often_used?: Prisma.SortOrder +} + +export type municipaliteAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type municipaliteMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + code?: Prisma.SortOrder + administration?: Prisma.SortOrder + often_used?: Prisma.SortOrder +} + +export type municipaliteMinOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + code?: Prisma.SortOrder + administration?: Prisma.SortOrder + often_used?: Prisma.SortOrder +} + +export type municipaliteSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type municipaliteSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + nom?: boolean + code?: boolean + administration?: boolean + often_used?: boolean +}, ExtArgs["result"]["municipalite"]> + + + +export type municipaliteSelectScalar = { + id?: boolean + nom?: boolean + code?: boolean + administration?: boolean + often_used?: boolean +} + +export type municipaliteOmit = runtime.Types.Extensions.GetOmit<"id" | "nom" | "code" | "administration" | "often_used", ExtArgs["result"]["municipalite"]> + +export type $municipalitePayload = { + name: "municipalite" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + nom: string + code: string + administration: string + often_used: boolean + }, ExtArgs["result"]["municipalite"]> + composites: {} +} + +export type municipaliteGetPayload = runtime.Types.Result.GetResult + +export type municipaliteCountArgs = + Omit & { + select?: MunicipaliteCountAggregateInputType | true + } + +export interface municipaliteDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['municipalite'], meta: { name: 'municipalite' } } + /** + * Find zero or one Municipalite that matches the filter. + * @param {municipaliteFindUniqueArgs} args - Arguments to find a Municipalite + * @example + * // Get one Municipalite + * const municipalite = await prisma.municipalite.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__municipaliteClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Municipalite that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {municipaliteFindUniqueOrThrowArgs} args - Arguments to find a Municipalite + * @example + * // Get one Municipalite + * const municipalite = await prisma.municipalite.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__municipaliteClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Municipalite 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 {municipaliteFindFirstArgs} args - Arguments to find a Municipalite + * @example + * // Get one Municipalite + * const municipalite = await prisma.municipalite.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__municipaliteClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Municipalite 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 {municipaliteFindFirstOrThrowArgs} args - Arguments to find a Municipalite + * @example + * // Get one Municipalite + * const municipalite = await prisma.municipalite.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__municipaliteClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Municipalites 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 {municipaliteFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Municipalites + * const municipalites = await prisma.municipalite.findMany() + * + * // Get first 10 Municipalites + * const municipalites = await prisma.municipalite.findMany({ take: 10 }) + * + * // Only select the `id` + * const municipaliteWithIdOnly = await prisma.municipalite.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Municipalite. + * @param {municipaliteCreateArgs} args - Arguments to create a Municipalite. + * @example + * // Create one Municipalite + * const Municipalite = await prisma.municipalite.create({ + * data: { + * // ... data to create a Municipalite + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__municipaliteClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Municipalites. + * @param {municipaliteCreateManyArgs} args - Arguments to create many Municipalites. + * @example + * // Create many Municipalites + * const municipalite = await prisma.municipalite.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Municipalite. + * @param {municipaliteDeleteArgs} args - Arguments to delete one Municipalite. + * @example + * // Delete one Municipalite + * const Municipalite = await prisma.municipalite.delete({ + * where: { + * // ... filter to delete one Municipalite + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__municipaliteClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Municipalite. + * @param {municipaliteUpdateArgs} args - Arguments to update one Municipalite. + * @example + * // Update one Municipalite + * const municipalite = await prisma.municipalite.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__municipaliteClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Municipalites. + * @param {municipaliteDeleteManyArgs} args - Arguments to filter Municipalites to delete. + * @example + * // Delete a few Municipalites + * const { count } = await prisma.municipalite.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Municipalites. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {municipaliteUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Municipalites + * const municipalite = await prisma.municipalite.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Municipalite. + * @param {municipaliteUpsertArgs} args - Arguments to update or create a Municipalite. + * @example + * // Update or create a Municipalite + * const municipalite = await prisma.municipalite.upsert({ + * create: { + * // ... data to create a Municipalite + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Municipalite we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__municipaliteClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Municipalites. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {municipaliteCountArgs} args - Arguments to filter Municipalites to count. + * @example + * // Count the number of Municipalites + * const count = await prisma.municipalite.count({ + * where: { + * // ... the filter for the Municipalites 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 Municipalite. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MunicipaliteAggregateArgs} 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 Municipalite. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {municipaliteGroupByArgs} 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 municipaliteGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: municipaliteGroupByArgs['orderBy'] } + : { orderBy?: municipaliteGroupByArgs['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 ? GetMunicipaliteGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the municipalite model + */ +readonly fields: municipaliteFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for municipalite. + * 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__municipaliteClient 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 municipalite model + */ +export interface municipaliteFieldRefs { + readonly id: Prisma.FieldRef<"municipalite", 'Int'> + readonly nom: Prisma.FieldRef<"municipalite", 'String'> + readonly code: Prisma.FieldRef<"municipalite", 'String'> + readonly administration: Prisma.FieldRef<"municipalite", 'String'> + readonly often_used: Prisma.FieldRef<"municipalite", 'Boolean'> +} + + +// Custom InputTypes +/** + * municipalite findUnique + */ +export type municipaliteFindUniqueArgs = { + /** + * Select specific fields to fetch from the municipalite + */ + select?: Prisma.municipaliteSelect | null + /** + * Omit specific fields from the municipalite + */ + omit?: Prisma.municipaliteOmit | null + /** + * Filter, which municipalite to fetch. + */ + where: Prisma.municipaliteWhereUniqueInput +} + +/** + * municipalite findUniqueOrThrow + */ +export type municipaliteFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the municipalite + */ + select?: Prisma.municipaliteSelect | null + /** + * Omit specific fields from the municipalite + */ + omit?: Prisma.municipaliteOmit | null + /** + * Filter, which municipalite to fetch. + */ + where: Prisma.municipaliteWhereUniqueInput +} + +/** + * municipalite findFirst + */ +export type municipaliteFindFirstArgs = { + /** + * Select specific fields to fetch from the municipalite + */ + select?: Prisma.municipaliteSelect | null + /** + * Omit specific fields from the municipalite + */ + omit?: Prisma.municipaliteOmit | null + /** + * Filter, which municipalite to fetch. + */ + where?: Prisma.municipaliteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of municipalites to fetch. + */ + orderBy?: Prisma.municipaliteOrderByWithRelationInput | Prisma.municipaliteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for municipalites. + */ + cursor?: Prisma.municipaliteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` municipalites 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` municipalites. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of municipalites. + */ + distinct?: Prisma.MunicipaliteScalarFieldEnum | Prisma.MunicipaliteScalarFieldEnum[] +} + +/** + * municipalite findFirstOrThrow + */ +export type municipaliteFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the municipalite + */ + select?: Prisma.municipaliteSelect | null + /** + * Omit specific fields from the municipalite + */ + omit?: Prisma.municipaliteOmit | null + /** + * Filter, which municipalite to fetch. + */ + where?: Prisma.municipaliteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of municipalites to fetch. + */ + orderBy?: Prisma.municipaliteOrderByWithRelationInput | Prisma.municipaliteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for municipalites. + */ + cursor?: Prisma.municipaliteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` municipalites 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` municipalites. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of municipalites. + */ + distinct?: Prisma.MunicipaliteScalarFieldEnum | Prisma.MunicipaliteScalarFieldEnum[] +} + +/** + * municipalite findMany + */ +export type municipaliteFindManyArgs = { + /** + * Select specific fields to fetch from the municipalite + */ + select?: Prisma.municipaliteSelect | null + /** + * Omit specific fields from the municipalite + */ + omit?: Prisma.municipaliteOmit | null + /** + * Filter, which municipalites to fetch. + */ + where?: Prisma.municipaliteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of municipalites to fetch. + */ + orderBy?: Prisma.municipaliteOrderByWithRelationInput | Prisma.municipaliteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing municipalites. + */ + cursor?: Prisma.municipaliteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` municipalites 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` municipalites. + */ + skip?: number + distinct?: Prisma.MunicipaliteScalarFieldEnum | Prisma.MunicipaliteScalarFieldEnum[] +} + +/** + * municipalite create + */ +export type municipaliteCreateArgs = { + /** + * Select specific fields to fetch from the municipalite + */ + select?: Prisma.municipaliteSelect | null + /** + * Omit specific fields from the municipalite + */ + omit?: Prisma.municipaliteOmit | null + /** + * The data needed to create a municipalite. + */ + data: Prisma.XOR +} + +/** + * municipalite createMany + */ +export type municipaliteCreateManyArgs = { + /** + * The data used to create many municipalites. + */ + data: Prisma.municipaliteCreateManyInput | Prisma.municipaliteCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * municipalite update + */ +export type municipaliteUpdateArgs = { + /** + * Select specific fields to fetch from the municipalite + */ + select?: Prisma.municipaliteSelect | null + /** + * Omit specific fields from the municipalite + */ + omit?: Prisma.municipaliteOmit | null + /** + * The data needed to update a municipalite. + */ + data: Prisma.XOR + /** + * Choose, which municipalite to update. + */ + where: Prisma.municipaliteWhereUniqueInput +} + +/** + * municipalite updateMany + */ +export type municipaliteUpdateManyArgs = { + /** + * The data used to update municipalites. + */ + data: Prisma.XOR + /** + * Filter which municipalites to update + */ + where?: Prisma.municipaliteWhereInput + /** + * Limit how many municipalites to update. + */ + limit?: number +} + +/** + * municipalite upsert + */ +export type municipaliteUpsertArgs = { + /** + * Select specific fields to fetch from the municipalite + */ + select?: Prisma.municipaliteSelect | null + /** + * Omit specific fields from the municipalite + */ + omit?: Prisma.municipaliteOmit | null + /** + * The filter to search for the municipalite to update in case it exists. + */ + where: Prisma.municipaliteWhereUniqueInput + /** + * In case the municipalite found by the `where` argument doesn't exist, create a new municipalite with this data. + */ + create: Prisma.XOR + /** + * In case the municipalite was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * municipalite delete + */ +export type municipaliteDeleteArgs = { + /** + * Select specific fields to fetch from the municipalite + */ + select?: Prisma.municipaliteSelect | null + /** + * Omit specific fields from the municipalite + */ + omit?: Prisma.municipaliteOmit | null + /** + * Filter which municipalite to delete. + */ + where: Prisma.municipaliteWhereUniqueInput +} + +/** + * municipalite deleteMany + */ +export type municipaliteDeleteManyArgs = { + /** + * Filter which municipalites to delete + */ + where?: Prisma.municipaliteWhereInput + /** + * Limit how many municipalites to delete. + */ + limit?: number +} + +/** + * municipalite without action + */ +export type municipaliteDefaultArgs = { + /** + * Select specific fields to fetch from the municipalite + */ + select?: Prisma.municipaliteSelect | null + /** + * Omit specific fields from the municipalite + */ + omit?: Prisma.municipaliteOmit | null +} diff --git a/prisma/generated/mariadb/models/notes.ts b/prisma/generated/mariadb/models/notes.ts new file mode 100644 index 0000000..3b83016 --- /dev/null +++ b/prisma/generated/mariadb/models/notes.ts @@ -0,0 +1,1033 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `notes` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model notes + * + */ +export type notesModel = runtime.Types.Result.DefaultSelection + +export type AggregateNotes = { + _count: NotesCountAggregateOutputType | null + _avg: NotesAvgAggregateOutputType | null + _sum: NotesSumAggregateOutputType | null + _min: NotesMinAggregateOutputType | null + _max: NotesMaxAggregateOutputType | null +} + +export type NotesAvgAggregateOutputType = { + id: number | null + account_id: number | null +} + +export type NotesSumAggregateOutputType = { + id: number | null + account_id: number | null +} + +export type NotesMinAggregateOutputType = { + id: number | null + account_id: number | null + notes: string | null +} + +export type NotesMaxAggregateOutputType = { + id: number | null + account_id: number | null + notes: string | null +} + +export type NotesCountAggregateOutputType = { + id: number + account_id: number + notes: number + _all: number +} + + +export type NotesAvgAggregateInputType = { + id?: true + account_id?: true +} + +export type NotesSumAggregateInputType = { + id?: true + account_id?: true +} + +export type NotesMinAggregateInputType = { + id?: true + account_id?: true + notes?: true +} + +export type NotesMaxAggregateInputType = { + id?: true + account_id?: true + notes?: true +} + +export type NotesCountAggregateInputType = { + id?: true + account_id?: true + notes?: true + _all?: true +} + +export type NotesAggregateArgs = { + /** + * Filter which notes to aggregate. + */ + where?: Prisma.notesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notes to fetch. + */ + orderBy?: Prisma.notesOrderByWithRelationInput | Prisma.notesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.notesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notes 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` notes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned notes + **/ + _count?: true | NotesCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: NotesAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: NotesSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: NotesMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: NotesMaxAggregateInputType +} + +export type GetNotesAggregateType = { + [P in keyof T & keyof AggregateNotes]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type notesGroupByArgs = { + where?: Prisma.notesWhereInput + orderBy?: Prisma.notesOrderByWithAggregationInput | Prisma.notesOrderByWithAggregationInput[] + by: Prisma.NotesScalarFieldEnum[] | Prisma.NotesScalarFieldEnum + having?: Prisma.notesScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: NotesCountAggregateInputType | true + _avg?: NotesAvgAggregateInputType + _sum?: NotesSumAggregateInputType + _min?: NotesMinAggregateInputType + _max?: NotesMaxAggregateInputType +} + +export type NotesGroupByOutputType = { + id: number + account_id: number + notes: string + _count: NotesCountAggregateOutputType | null + _avg: NotesAvgAggregateOutputType | null + _sum: NotesSumAggregateOutputType | null + _min: NotesMinAggregateOutputType | null + _max: NotesMaxAggregateOutputType | null +} + +type GetNotesGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof NotesGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type notesWhereInput = { + AND?: Prisma.notesWhereInput | Prisma.notesWhereInput[] + OR?: Prisma.notesWhereInput[] + NOT?: Prisma.notesWhereInput | Prisma.notesWhereInput[] + id?: Prisma.IntFilter<"notes"> | number + account_id?: Prisma.IntFilter<"notes"> | number + notes?: Prisma.StringFilter<"notes"> | string +} + +export type notesOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + notes?: Prisma.SortOrder + _relevance?: Prisma.notesOrderByRelevanceInput +} + +export type notesWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.notesWhereInput | Prisma.notesWhereInput[] + OR?: Prisma.notesWhereInput[] + NOT?: Prisma.notesWhereInput | Prisma.notesWhereInput[] + account_id?: Prisma.IntFilter<"notes"> | number + notes?: Prisma.StringFilter<"notes"> | string +}, "id"> + +export type notesOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + notes?: Prisma.SortOrder + _count?: Prisma.notesCountOrderByAggregateInput + _avg?: Prisma.notesAvgOrderByAggregateInput + _max?: Prisma.notesMaxOrderByAggregateInput + _min?: Prisma.notesMinOrderByAggregateInput + _sum?: Prisma.notesSumOrderByAggregateInput +} + +export type notesScalarWhereWithAggregatesInput = { + AND?: Prisma.notesScalarWhereWithAggregatesInput | Prisma.notesScalarWhereWithAggregatesInput[] + OR?: Prisma.notesScalarWhereWithAggregatesInput[] + NOT?: Prisma.notesScalarWhereWithAggregatesInput | Prisma.notesScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"notes"> | number + account_id?: Prisma.IntWithAggregatesFilter<"notes"> | number + notes?: Prisma.StringWithAggregatesFilter<"notes"> | string +} + +export type notesCreateInput = { + account_id: number + notes: string +} + +export type notesUncheckedCreateInput = { + id?: number + account_id: number + notes: string +} + +export type notesUpdateInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + notes?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type notesUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + notes?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type notesCreateManyInput = { + id?: number + account_id: number + notes: string +} + +export type notesUpdateManyMutationInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + notes?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type notesUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + notes?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type notesOrderByRelevanceInput = { + fields: Prisma.notesOrderByRelevanceFieldEnum | Prisma.notesOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type notesCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + notes?: Prisma.SortOrder +} + +export type notesAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder +} + +export type notesMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + notes?: Prisma.SortOrder +} + +export type notesMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + notes?: Prisma.SortOrder +} + +export type notesSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder +} + + + +export type notesSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + notes?: boolean +}, ExtArgs["result"]["notes"]> + + + +export type notesSelectScalar = { + id?: boolean + account_id?: boolean + notes?: boolean +} + +export type notesOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "notes", ExtArgs["result"]["notes"]> + +export type $notesPayload = { + name: "notes" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: number + notes: string + }, ExtArgs["result"]["notes"]> + composites: {} +} + +export type notesGetPayload = runtime.Types.Result.GetResult + +export type notesCountArgs = + Omit & { + select?: NotesCountAggregateInputType | true + } + +export interface notesDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['notes'], meta: { name: 'notes' } } + /** + * Find zero or one Notes that matches the filter. + * @param {notesFindUniqueArgs} args - Arguments to find a Notes + * @example + * // Get one Notes + * const notes = await prisma.notes.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__notesClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Notes that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {notesFindUniqueOrThrowArgs} args - Arguments to find a Notes + * @example + * // Get one Notes + * const notes = await prisma.notes.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__notesClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Notes 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 {notesFindFirstArgs} args - Arguments to find a Notes + * @example + * // Get one Notes + * const notes = await prisma.notes.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__notesClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Notes 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 {notesFindFirstOrThrowArgs} args - Arguments to find a Notes + * @example + * // Get one Notes + * const notes = await prisma.notes.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__notesClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Notes 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 {notesFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Notes + * const notes = await prisma.notes.findMany() + * + * // Get first 10 Notes + * const notes = await prisma.notes.findMany({ take: 10 }) + * + * // Only select the `id` + * const notesWithIdOnly = await prisma.notes.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Notes. + * @param {notesCreateArgs} args - Arguments to create a Notes. + * @example + * // Create one Notes + * const Notes = await prisma.notes.create({ + * data: { + * // ... data to create a Notes + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__notesClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Notes. + * @param {notesCreateManyArgs} args - Arguments to create many Notes. + * @example + * // Create many Notes + * const notes = await prisma.notes.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Notes. + * @param {notesDeleteArgs} args - Arguments to delete one Notes. + * @example + * // Delete one Notes + * const Notes = await prisma.notes.delete({ + * where: { + * // ... filter to delete one Notes + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__notesClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Notes. + * @param {notesUpdateArgs} args - Arguments to update one Notes. + * @example + * // Update one Notes + * const notes = await prisma.notes.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__notesClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Notes. + * @param {notesDeleteManyArgs} args - Arguments to filter Notes to delete. + * @example + * // Delete a few Notes + * const { count } = await prisma.notes.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Notes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {notesUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Notes + * const notes = await prisma.notes.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Notes. + * @param {notesUpsertArgs} args - Arguments to update or create a Notes. + * @example + * // Update or create a Notes + * const notes = await prisma.notes.upsert({ + * create: { + * // ... data to create a Notes + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Notes we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__notesClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Notes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {notesCountArgs} args - Arguments to filter Notes to count. + * @example + * // Count the number of Notes + * const count = await prisma.notes.count({ + * where: { + * // ... the filter for the Notes 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 Notes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotesAggregateArgs} 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 Notes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {notesGroupByArgs} 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 notesGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: notesGroupByArgs['orderBy'] } + : { orderBy?: notesGroupByArgs['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 ? GetNotesGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the notes model + */ +readonly fields: notesFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for notes. + * 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__notesClient 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 notes model + */ +export interface notesFieldRefs { + readonly id: Prisma.FieldRef<"notes", 'Int'> + readonly account_id: Prisma.FieldRef<"notes", 'Int'> + readonly notes: Prisma.FieldRef<"notes", 'String'> +} + + +// Custom InputTypes +/** + * notes findUnique + */ +export type notesFindUniqueArgs = { + /** + * Select specific fields to fetch from the notes + */ + select?: Prisma.notesSelect | null + /** + * Omit specific fields from the notes + */ + omit?: Prisma.notesOmit | null + /** + * Filter, which notes to fetch. + */ + where: Prisma.notesWhereUniqueInput +} + +/** + * notes findUniqueOrThrow + */ +export type notesFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the notes + */ + select?: Prisma.notesSelect | null + /** + * Omit specific fields from the notes + */ + omit?: Prisma.notesOmit | null + /** + * Filter, which notes to fetch. + */ + where: Prisma.notesWhereUniqueInput +} + +/** + * notes findFirst + */ +export type notesFindFirstArgs = { + /** + * Select specific fields to fetch from the notes + */ + select?: Prisma.notesSelect | null + /** + * Omit specific fields from the notes + */ + omit?: Prisma.notesOmit | null + /** + * Filter, which notes to fetch. + */ + where?: Prisma.notesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notes to fetch. + */ + orderBy?: Prisma.notesOrderByWithRelationInput | Prisma.notesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for notes. + */ + cursor?: Prisma.notesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notes 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` notes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of notes. + */ + distinct?: Prisma.NotesScalarFieldEnum | Prisma.NotesScalarFieldEnum[] +} + +/** + * notes findFirstOrThrow + */ +export type notesFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the notes + */ + select?: Prisma.notesSelect | null + /** + * Omit specific fields from the notes + */ + omit?: Prisma.notesOmit | null + /** + * Filter, which notes to fetch. + */ + where?: Prisma.notesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notes to fetch. + */ + orderBy?: Prisma.notesOrderByWithRelationInput | Prisma.notesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for notes. + */ + cursor?: Prisma.notesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notes 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` notes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of notes. + */ + distinct?: Prisma.NotesScalarFieldEnum | Prisma.NotesScalarFieldEnum[] +} + +/** + * notes findMany + */ +export type notesFindManyArgs = { + /** + * Select specific fields to fetch from the notes + */ + select?: Prisma.notesSelect | null + /** + * Omit specific fields from the notes + */ + omit?: Prisma.notesOmit | null + /** + * Filter, which notes to fetch. + */ + where?: Prisma.notesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notes to fetch. + */ + orderBy?: Prisma.notesOrderByWithRelationInput | Prisma.notesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing notes. + */ + cursor?: Prisma.notesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notes 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` notes. + */ + skip?: number + distinct?: Prisma.NotesScalarFieldEnum | Prisma.NotesScalarFieldEnum[] +} + +/** + * notes create + */ +export type notesCreateArgs = { + /** + * Select specific fields to fetch from the notes + */ + select?: Prisma.notesSelect | null + /** + * Omit specific fields from the notes + */ + omit?: Prisma.notesOmit | null + /** + * The data needed to create a notes. + */ + data: Prisma.XOR +} + +/** + * notes createMany + */ +export type notesCreateManyArgs = { + /** + * The data used to create many notes. + */ + data: Prisma.notesCreateManyInput | Prisma.notesCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * notes update + */ +export type notesUpdateArgs = { + /** + * Select specific fields to fetch from the notes + */ + select?: Prisma.notesSelect | null + /** + * Omit specific fields from the notes + */ + omit?: Prisma.notesOmit | null + /** + * The data needed to update a notes. + */ + data: Prisma.XOR + /** + * Choose, which notes to update. + */ + where: Prisma.notesWhereUniqueInput +} + +/** + * notes updateMany + */ +export type notesUpdateManyArgs = { + /** + * The data used to update notes. + */ + data: Prisma.XOR + /** + * Filter which notes to update + */ + where?: Prisma.notesWhereInput + /** + * Limit how many notes to update. + */ + limit?: number +} + +/** + * notes upsert + */ +export type notesUpsertArgs = { + /** + * Select specific fields to fetch from the notes + */ + select?: Prisma.notesSelect | null + /** + * Omit specific fields from the notes + */ + omit?: Prisma.notesOmit | null + /** + * The filter to search for the notes to update in case it exists. + */ + where: Prisma.notesWhereUniqueInput + /** + * In case the notes found by the `where` argument doesn't exist, create a new notes with this data. + */ + create: Prisma.XOR + /** + * In case the notes was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * notes delete + */ +export type notesDeleteArgs = { + /** + * Select specific fields to fetch from the notes + */ + select?: Prisma.notesSelect | null + /** + * Omit specific fields from the notes + */ + omit?: Prisma.notesOmit | null + /** + * Filter which notes to delete. + */ + where: Prisma.notesWhereUniqueInput +} + +/** + * notes deleteMany + */ +export type notesDeleteManyArgs = { + /** + * Filter which notes to delete + */ + where?: Prisma.notesWhereInput + /** + * Limit how many notes to delete. + */ + limit?: number +} + +/** + * notes without action + */ +export type notesDefaultArgs = { + /** + * Select specific fields to fetch from the notes + */ + select?: Prisma.notesSelect | null + /** + * Omit specific fields from the notes + */ + omit?: Prisma.notesOmit | null +} diff --git a/prisma/generated/mariadb/models/notice_gui.ts b/prisma/generated/mariadb/models/notice_gui.ts new file mode 100644 index 0000000..4a9510b --- /dev/null +++ b/prisma/generated/mariadb/models/notice_gui.ts @@ -0,0 +1,1091 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `notice_gui` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model notice_gui + * + */ +export type notice_guiModel = runtime.Types.Result.DefaultSelection + +export type AggregateNotice_gui = { + _count: Notice_guiCountAggregateOutputType | null + _avg: Notice_guiAvgAggregateOutputType | null + _sum: Notice_guiSumAggregateOutputType | null + _min: Notice_guiMinAggregateOutputType | null + _max: Notice_guiMaxAggregateOutputType | null +} + +export type Notice_guiAvgAggregateOutputType = { + id: number | null + staff_id: number | null + is_read: number | null +} + +export type Notice_guiSumAggregateOutputType = { + id: number | null + staff_id: number | null + is_read: number | null +} + +export type Notice_guiMinAggregateOutputType = { + id: number | null + staff_id: number | null + message: string | null + is_read: number | null + timestamp: string | null +} + +export type Notice_guiMaxAggregateOutputType = { + id: number | null + staff_id: number | null + message: string | null + is_read: number | null + timestamp: string | null +} + +export type Notice_guiCountAggregateOutputType = { + id: number + staff_id: number + message: number + is_read: number + timestamp: number + _all: number +} + + +export type Notice_guiAvgAggregateInputType = { + id?: true + staff_id?: true + is_read?: true +} + +export type Notice_guiSumAggregateInputType = { + id?: true + staff_id?: true + is_read?: true +} + +export type Notice_guiMinAggregateInputType = { + id?: true + staff_id?: true + message?: true + is_read?: true + timestamp?: true +} + +export type Notice_guiMaxAggregateInputType = { + id?: true + staff_id?: true + message?: true + is_read?: true + timestamp?: true +} + +export type Notice_guiCountAggregateInputType = { + id?: true + staff_id?: true + message?: true + is_read?: true + timestamp?: true + _all?: true +} + +export type Notice_guiAggregateArgs = { + /** + * Filter which notice_gui to aggregate. + */ + where?: Prisma.notice_guiWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notice_guis to fetch. + */ + orderBy?: Prisma.notice_guiOrderByWithRelationInput | Prisma.notice_guiOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.notice_guiWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notice_guis 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` notice_guis. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned notice_guis + **/ + _count?: true | Notice_guiCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Notice_guiAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Notice_guiSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Notice_guiMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Notice_guiMaxAggregateInputType +} + +export type GetNotice_guiAggregateType = { + [P in keyof T & keyof AggregateNotice_gui]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type notice_guiGroupByArgs = { + where?: Prisma.notice_guiWhereInput + orderBy?: Prisma.notice_guiOrderByWithAggregationInput | Prisma.notice_guiOrderByWithAggregationInput[] + by: Prisma.Notice_guiScalarFieldEnum[] | Prisma.Notice_guiScalarFieldEnum + having?: Prisma.notice_guiScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Notice_guiCountAggregateInputType | true + _avg?: Notice_guiAvgAggregateInputType + _sum?: Notice_guiSumAggregateInputType + _min?: Notice_guiMinAggregateInputType + _max?: Notice_guiMaxAggregateInputType +} + +export type Notice_guiGroupByOutputType = { + id: number + staff_id: number + message: string + is_read: number + timestamp: string + _count: Notice_guiCountAggregateOutputType | null + _avg: Notice_guiAvgAggregateOutputType | null + _sum: Notice_guiSumAggregateOutputType | null + _min: Notice_guiMinAggregateOutputType | null + _max: Notice_guiMaxAggregateOutputType | null +} + +type GetNotice_guiGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Notice_guiGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type notice_guiWhereInput = { + AND?: Prisma.notice_guiWhereInput | Prisma.notice_guiWhereInput[] + OR?: Prisma.notice_guiWhereInput[] + NOT?: Prisma.notice_guiWhereInput | Prisma.notice_guiWhereInput[] + id?: Prisma.IntFilter<"notice_gui"> | number + staff_id?: Prisma.IntFilter<"notice_gui"> | number + message?: Prisma.StringFilter<"notice_gui"> | string + is_read?: Prisma.IntFilter<"notice_gui"> | number + timestamp?: Prisma.StringFilter<"notice_gui"> | string +} + +export type notice_guiOrderByWithRelationInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + message?: Prisma.SortOrder + is_read?: Prisma.SortOrder + timestamp?: Prisma.SortOrder + _relevance?: Prisma.notice_guiOrderByRelevanceInput +} + +export type notice_guiWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.notice_guiWhereInput | Prisma.notice_guiWhereInput[] + OR?: Prisma.notice_guiWhereInput[] + NOT?: Prisma.notice_guiWhereInput | Prisma.notice_guiWhereInput[] + staff_id?: Prisma.IntFilter<"notice_gui"> | number + message?: Prisma.StringFilter<"notice_gui"> | string + is_read?: Prisma.IntFilter<"notice_gui"> | number + timestamp?: Prisma.StringFilter<"notice_gui"> | string +}, "id"> + +export type notice_guiOrderByWithAggregationInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + message?: Prisma.SortOrder + is_read?: Prisma.SortOrder + timestamp?: Prisma.SortOrder + _count?: Prisma.notice_guiCountOrderByAggregateInput + _avg?: Prisma.notice_guiAvgOrderByAggregateInput + _max?: Prisma.notice_guiMaxOrderByAggregateInput + _min?: Prisma.notice_guiMinOrderByAggregateInput + _sum?: Prisma.notice_guiSumOrderByAggregateInput +} + +export type notice_guiScalarWhereWithAggregatesInput = { + AND?: Prisma.notice_guiScalarWhereWithAggregatesInput | Prisma.notice_guiScalarWhereWithAggregatesInput[] + OR?: Prisma.notice_guiScalarWhereWithAggregatesInput[] + NOT?: Prisma.notice_guiScalarWhereWithAggregatesInput | Prisma.notice_guiScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"notice_gui"> | number + staff_id?: Prisma.IntWithAggregatesFilter<"notice_gui"> | number + message?: Prisma.StringWithAggregatesFilter<"notice_gui"> | string + is_read?: Prisma.IntWithAggregatesFilter<"notice_gui"> | number + timestamp?: Prisma.StringWithAggregatesFilter<"notice_gui"> | string +} + +export type notice_guiCreateInput = { + staff_id: number + message: string + is_read?: number + timestamp: string +} + +export type notice_guiUncheckedCreateInput = { + id?: number + staff_id: number + message: string + is_read?: number + timestamp: string +} + +export type notice_guiUpdateInput = { + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + message?: Prisma.StringFieldUpdateOperationsInput | string + is_read?: Prisma.IntFieldUpdateOperationsInput | number + timestamp?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type notice_guiUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + message?: Prisma.StringFieldUpdateOperationsInput | string + is_read?: Prisma.IntFieldUpdateOperationsInput | number + timestamp?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type notice_guiCreateManyInput = { + id?: number + staff_id: number + message: string + is_read?: number + timestamp: string +} + +export type notice_guiUpdateManyMutationInput = { + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + message?: Prisma.StringFieldUpdateOperationsInput | string + is_read?: Prisma.IntFieldUpdateOperationsInput | number + timestamp?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type notice_guiUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + message?: Prisma.StringFieldUpdateOperationsInput | string + is_read?: Prisma.IntFieldUpdateOperationsInput | number + timestamp?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type notice_guiOrderByRelevanceInput = { + fields: Prisma.notice_guiOrderByRelevanceFieldEnum | Prisma.notice_guiOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type notice_guiCountOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + message?: Prisma.SortOrder + is_read?: Prisma.SortOrder + timestamp?: Prisma.SortOrder +} + +export type notice_guiAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + is_read?: Prisma.SortOrder +} + +export type notice_guiMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + message?: Prisma.SortOrder + is_read?: Prisma.SortOrder + timestamp?: Prisma.SortOrder +} + +export type notice_guiMinOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + message?: Prisma.SortOrder + is_read?: Prisma.SortOrder + timestamp?: Prisma.SortOrder +} + +export type notice_guiSumOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + is_read?: Prisma.SortOrder +} + + + +export type notice_guiSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + staff_id?: boolean + message?: boolean + is_read?: boolean + timestamp?: boolean +}, ExtArgs["result"]["notice_gui"]> + + + +export type notice_guiSelectScalar = { + id?: boolean + staff_id?: boolean + message?: boolean + is_read?: boolean + timestamp?: boolean +} + +export type notice_guiOmit = runtime.Types.Extensions.GetOmit<"id" | "staff_id" | "message" | "is_read" | "timestamp", ExtArgs["result"]["notice_gui"]> + +export type $notice_guiPayload = { + name: "notice_gui" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + staff_id: number + message: string + is_read: number + timestamp: string + }, ExtArgs["result"]["notice_gui"]> + composites: {} +} + +export type notice_guiGetPayload = runtime.Types.Result.GetResult + +export type notice_guiCountArgs = + Omit & { + select?: Notice_guiCountAggregateInputType | true + } + +export interface notice_guiDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['notice_gui'], meta: { name: 'notice_gui' } } + /** + * Find zero or one Notice_gui that matches the filter. + * @param {notice_guiFindUniqueArgs} args - Arguments to find a Notice_gui + * @example + * // Get one Notice_gui + * const notice_gui = await prisma.notice_gui.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__notice_guiClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Notice_gui that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {notice_guiFindUniqueOrThrowArgs} args - Arguments to find a Notice_gui + * @example + * // Get one Notice_gui + * const notice_gui = await prisma.notice_gui.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__notice_guiClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Notice_gui 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 {notice_guiFindFirstArgs} args - Arguments to find a Notice_gui + * @example + * // Get one Notice_gui + * const notice_gui = await prisma.notice_gui.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__notice_guiClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Notice_gui 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 {notice_guiFindFirstOrThrowArgs} args - Arguments to find a Notice_gui + * @example + * // Get one Notice_gui + * const notice_gui = await prisma.notice_gui.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__notice_guiClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Notice_guis 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 {notice_guiFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Notice_guis + * const notice_guis = await prisma.notice_gui.findMany() + * + * // Get first 10 Notice_guis + * const notice_guis = await prisma.notice_gui.findMany({ take: 10 }) + * + * // Only select the `id` + * const notice_guiWithIdOnly = await prisma.notice_gui.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Notice_gui. + * @param {notice_guiCreateArgs} args - Arguments to create a Notice_gui. + * @example + * // Create one Notice_gui + * const Notice_gui = await prisma.notice_gui.create({ + * data: { + * // ... data to create a Notice_gui + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__notice_guiClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Notice_guis. + * @param {notice_guiCreateManyArgs} args - Arguments to create many Notice_guis. + * @example + * // Create many Notice_guis + * const notice_gui = await prisma.notice_gui.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Notice_gui. + * @param {notice_guiDeleteArgs} args - Arguments to delete one Notice_gui. + * @example + * // Delete one Notice_gui + * const Notice_gui = await prisma.notice_gui.delete({ + * where: { + * // ... filter to delete one Notice_gui + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__notice_guiClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Notice_gui. + * @param {notice_guiUpdateArgs} args - Arguments to update one Notice_gui. + * @example + * // Update one Notice_gui + * const notice_gui = await prisma.notice_gui.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__notice_guiClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Notice_guis. + * @param {notice_guiDeleteManyArgs} args - Arguments to filter Notice_guis to delete. + * @example + * // Delete a few Notice_guis + * const { count } = await prisma.notice_gui.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Notice_guis. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {notice_guiUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Notice_guis + * const notice_gui = await prisma.notice_gui.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Notice_gui. + * @param {notice_guiUpsertArgs} args - Arguments to update or create a Notice_gui. + * @example + * // Update or create a Notice_gui + * const notice_gui = await prisma.notice_gui.upsert({ + * create: { + * // ... data to create a Notice_gui + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Notice_gui we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__notice_guiClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Notice_guis. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {notice_guiCountArgs} args - Arguments to filter Notice_guis to count. + * @example + * // Count the number of Notice_guis + * const count = await prisma.notice_gui.count({ + * where: { + * // ... the filter for the Notice_guis 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 Notice_gui. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Notice_guiAggregateArgs} 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 Notice_gui. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {notice_guiGroupByArgs} 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 notice_guiGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: notice_guiGroupByArgs['orderBy'] } + : { orderBy?: notice_guiGroupByArgs['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 ? GetNotice_guiGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the notice_gui model + */ +readonly fields: notice_guiFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for notice_gui. + * 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__notice_guiClient 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 notice_gui model + */ +export interface notice_guiFieldRefs { + readonly id: Prisma.FieldRef<"notice_gui", 'Int'> + readonly staff_id: Prisma.FieldRef<"notice_gui", 'Int'> + readonly message: Prisma.FieldRef<"notice_gui", 'String'> + readonly is_read: Prisma.FieldRef<"notice_gui", 'Int'> + readonly timestamp: Prisma.FieldRef<"notice_gui", 'String'> +} + + +// Custom InputTypes +/** + * notice_gui findUnique + */ +export type notice_guiFindUniqueArgs = { + /** + * Select specific fields to fetch from the notice_gui + */ + select?: Prisma.notice_guiSelect | null + /** + * Omit specific fields from the notice_gui + */ + omit?: Prisma.notice_guiOmit | null + /** + * Filter, which notice_gui to fetch. + */ + where: Prisma.notice_guiWhereUniqueInput +} + +/** + * notice_gui findUniqueOrThrow + */ +export type notice_guiFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the notice_gui + */ + select?: Prisma.notice_guiSelect | null + /** + * Omit specific fields from the notice_gui + */ + omit?: Prisma.notice_guiOmit | null + /** + * Filter, which notice_gui to fetch. + */ + where: Prisma.notice_guiWhereUniqueInput +} + +/** + * notice_gui findFirst + */ +export type notice_guiFindFirstArgs = { + /** + * Select specific fields to fetch from the notice_gui + */ + select?: Prisma.notice_guiSelect | null + /** + * Omit specific fields from the notice_gui + */ + omit?: Prisma.notice_guiOmit | null + /** + * Filter, which notice_gui to fetch. + */ + where?: Prisma.notice_guiWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notice_guis to fetch. + */ + orderBy?: Prisma.notice_guiOrderByWithRelationInput | Prisma.notice_guiOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for notice_guis. + */ + cursor?: Prisma.notice_guiWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notice_guis 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` notice_guis. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of notice_guis. + */ + distinct?: Prisma.Notice_guiScalarFieldEnum | Prisma.Notice_guiScalarFieldEnum[] +} + +/** + * notice_gui findFirstOrThrow + */ +export type notice_guiFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the notice_gui + */ + select?: Prisma.notice_guiSelect | null + /** + * Omit specific fields from the notice_gui + */ + omit?: Prisma.notice_guiOmit | null + /** + * Filter, which notice_gui to fetch. + */ + where?: Prisma.notice_guiWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notice_guis to fetch. + */ + orderBy?: Prisma.notice_guiOrderByWithRelationInput | Prisma.notice_guiOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for notice_guis. + */ + cursor?: Prisma.notice_guiWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notice_guis 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` notice_guis. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of notice_guis. + */ + distinct?: Prisma.Notice_guiScalarFieldEnum | Prisma.Notice_guiScalarFieldEnum[] +} + +/** + * notice_gui findMany + */ +export type notice_guiFindManyArgs = { + /** + * Select specific fields to fetch from the notice_gui + */ + select?: Prisma.notice_guiSelect | null + /** + * Omit specific fields from the notice_gui + */ + omit?: Prisma.notice_guiOmit | null + /** + * Filter, which notice_guis to fetch. + */ + where?: Prisma.notice_guiWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notice_guis to fetch. + */ + orderBy?: Prisma.notice_guiOrderByWithRelationInput | Prisma.notice_guiOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing notice_guis. + */ + cursor?: Prisma.notice_guiWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notice_guis 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` notice_guis. + */ + skip?: number + distinct?: Prisma.Notice_guiScalarFieldEnum | Prisma.Notice_guiScalarFieldEnum[] +} + +/** + * notice_gui create + */ +export type notice_guiCreateArgs = { + /** + * Select specific fields to fetch from the notice_gui + */ + select?: Prisma.notice_guiSelect | null + /** + * Omit specific fields from the notice_gui + */ + omit?: Prisma.notice_guiOmit | null + /** + * The data needed to create a notice_gui. + */ + data: Prisma.XOR +} + +/** + * notice_gui createMany + */ +export type notice_guiCreateManyArgs = { + /** + * The data used to create many notice_guis. + */ + data: Prisma.notice_guiCreateManyInput | Prisma.notice_guiCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * notice_gui update + */ +export type notice_guiUpdateArgs = { + /** + * Select specific fields to fetch from the notice_gui + */ + select?: Prisma.notice_guiSelect | null + /** + * Omit specific fields from the notice_gui + */ + omit?: Prisma.notice_guiOmit | null + /** + * The data needed to update a notice_gui. + */ + data: Prisma.XOR + /** + * Choose, which notice_gui to update. + */ + where: Prisma.notice_guiWhereUniqueInput +} + +/** + * notice_gui updateMany + */ +export type notice_guiUpdateManyArgs = { + /** + * The data used to update notice_guis. + */ + data: Prisma.XOR + /** + * Filter which notice_guis to update + */ + where?: Prisma.notice_guiWhereInput + /** + * Limit how many notice_guis to update. + */ + limit?: number +} + +/** + * notice_gui upsert + */ +export type notice_guiUpsertArgs = { + /** + * Select specific fields to fetch from the notice_gui + */ + select?: Prisma.notice_guiSelect | null + /** + * Omit specific fields from the notice_gui + */ + omit?: Prisma.notice_guiOmit | null + /** + * The filter to search for the notice_gui to update in case it exists. + */ + where: Prisma.notice_guiWhereUniqueInput + /** + * In case the notice_gui found by the `where` argument doesn't exist, create a new notice_gui with this data. + */ + create: Prisma.XOR + /** + * In case the notice_gui was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * notice_gui delete + */ +export type notice_guiDeleteArgs = { + /** + * Select specific fields to fetch from the notice_gui + */ + select?: Prisma.notice_guiSelect | null + /** + * Omit specific fields from the notice_gui + */ + omit?: Prisma.notice_guiOmit | null + /** + * Filter which notice_gui to delete. + */ + where: Prisma.notice_guiWhereUniqueInput +} + +/** + * notice_gui deleteMany + */ +export type notice_guiDeleteManyArgs = { + /** + * Filter which notice_guis to delete + */ + where?: Prisma.notice_guiWhereInput + /** + * Limit how many notice_guis to delete. + */ + limit?: number +} + +/** + * notice_gui without action + */ +export type notice_guiDefaultArgs = { + /** + * Select specific fields to fetch from the notice_gui + */ + select?: Prisma.notice_guiSelect | null + /** + * Omit specific fields from the notice_gui + */ + omit?: Prisma.notice_guiOmit | null +} diff --git a/prisma/generated/mariadb/models/notification.ts b/prisma/generated/mariadb/models/notification.ts new file mode 100644 index 0000000..c043458 --- /dev/null +++ b/prisma/generated/mariadb/models/notification.ts @@ -0,0 +1,1137 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `notification` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model notification + * + */ +export type notificationModel = runtime.Types.Result.DefaultSelection + +export type AggregateNotification = { + _count: NotificationCountAggregateOutputType | null + _avg: NotificationAvgAggregateOutputType | null + _sum: NotificationSumAggregateOutputType | null + _min: NotificationMinAggregateOutputType | null + _max: NotificationMaxAggregateOutputType | null +} + +export type NotificationAvgAggregateOutputType = { + id: number | null + staff_id: number | null +} + +export type NotificationSumAggregateOutputType = { + id: number | null + staff_id: number | null +} + +export type NotificationMinAggregateOutputType = { + id: number | null + staff_id: number | null + endpoint: string | null + authToken: string | null + publicKey: string | null + contentEncoding: string | null + plateforme: string | null +} + +export type NotificationMaxAggregateOutputType = { + id: number | null + staff_id: number | null + endpoint: string | null + authToken: string | null + publicKey: string | null + contentEncoding: string | null + plateforme: string | null +} + +export type NotificationCountAggregateOutputType = { + id: number + staff_id: number + endpoint: number + authToken: number + publicKey: number + contentEncoding: number + plateforme: number + _all: number +} + + +export type NotificationAvgAggregateInputType = { + id?: true + staff_id?: true +} + +export type NotificationSumAggregateInputType = { + id?: true + staff_id?: true +} + +export type NotificationMinAggregateInputType = { + id?: true + staff_id?: true + endpoint?: true + authToken?: true + publicKey?: true + contentEncoding?: true + plateforme?: true +} + +export type NotificationMaxAggregateInputType = { + id?: true + staff_id?: true + endpoint?: true + authToken?: true + publicKey?: true + contentEncoding?: true + plateforme?: true +} + +export type NotificationCountAggregateInputType = { + id?: true + staff_id?: true + endpoint?: true + authToken?: true + publicKey?: true + contentEncoding?: true + plateforme?: true + _all?: true +} + +export type NotificationAggregateArgs = { + /** + * Filter which notification to aggregate. + */ + where?: Prisma.notificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notifications to fetch. + */ + orderBy?: Prisma.notificationOrderByWithRelationInput | Prisma.notificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.notificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notifications from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` notifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned notifications + **/ + _count?: true | NotificationCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: NotificationAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: NotificationSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: NotificationMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: NotificationMaxAggregateInputType +} + +export type GetNotificationAggregateType = { + [P in keyof T & keyof AggregateNotification]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type notificationGroupByArgs = { + where?: Prisma.notificationWhereInput + orderBy?: Prisma.notificationOrderByWithAggregationInput | Prisma.notificationOrderByWithAggregationInput[] + by: Prisma.NotificationScalarFieldEnum[] | Prisma.NotificationScalarFieldEnum + having?: Prisma.notificationScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: NotificationCountAggregateInputType | true + _avg?: NotificationAvgAggregateInputType + _sum?: NotificationSumAggregateInputType + _min?: NotificationMinAggregateInputType + _max?: NotificationMaxAggregateInputType +} + +export type NotificationGroupByOutputType = { + id: number + staff_id: number + endpoint: string + authToken: string + publicKey: string + contentEncoding: string + plateforme: string | null + _count: NotificationCountAggregateOutputType | null + _avg: NotificationAvgAggregateOutputType | null + _sum: NotificationSumAggregateOutputType | null + _min: NotificationMinAggregateOutputType | null + _max: NotificationMaxAggregateOutputType | null +} + +type GetNotificationGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof NotificationGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type notificationWhereInput = { + AND?: Prisma.notificationWhereInput | Prisma.notificationWhereInput[] + OR?: Prisma.notificationWhereInput[] + NOT?: Prisma.notificationWhereInput | Prisma.notificationWhereInput[] + id?: Prisma.IntFilter<"notification"> | number + staff_id?: Prisma.IntFilter<"notification"> | number + endpoint?: Prisma.StringFilter<"notification"> | string + authToken?: Prisma.StringFilter<"notification"> | string + publicKey?: Prisma.StringFilter<"notification"> | string + contentEncoding?: Prisma.StringFilter<"notification"> | string + plateforme?: Prisma.StringNullableFilter<"notification"> | string | null +} + +export type notificationOrderByWithRelationInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + endpoint?: Prisma.SortOrder + authToken?: Prisma.SortOrder + publicKey?: Prisma.SortOrder + contentEncoding?: Prisma.SortOrder + plateforme?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.notificationOrderByRelevanceInput +} + +export type notificationWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.notificationWhereInput | Prisma.notificationWhereInput[] + OR?: Prisma.notificationWhereInput[] + NOT?: Prisma.notificationWhereInput | Prisma.notificationWhereInput[] + staff_id?: Prisma.IntFilter<"notification"> | number + endpoint?: Prisma.StringFilter<"notification"> | string + authToken?: Prisma.StringFilter<"notification"> | string + publicKey?: Prisma.StringFilter<"notification"> | string + contentEncoding?: Prisma.StringFilter<"notification"> | string + plateforme?: Prisma.StringNullableFilter<"notification"> | string | null +}, "id"> + +export type notificationOrderByWithAggregationInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + endpoint?: Prisma.SortOrder + authToken?: Prisma.SortOrder + publicKey?: Prisma.SortOrder + contentEncoding?: Prisma.SortOrder + plateforme?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.notificationCountOrderByAggregateInput + _avg?: Prisma.notificationAvgOrderByAggregateInput + _max?: Prisma.notificationMaxOrderByAggregateInput + _min?: Prisma.notificationMinOrderByAggregateInput + _sum?: Prisma.notificationSumOrderByAggregateInput +} + +export type notificationScalarWhereWithAggregatesInput = { + AND?: Prisma.notificationScalarWhereWithAggregatesInput | Prisma.notificationScalarWhereWithAggregatesInput[] + OR?: Prisma.notificationScalarWhereWithAggregatesInput[] + NOT?: Prisma.notificationScalarWhereWithAggregatesInput | Prisma.notificationScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"notification"> | number + staff_id?: Prisma.IntWithAggregatesFilter<"notification"> | number + endpoint?: Prisma.StringWithAggregatesFilter<"notification"> | string + authToken?: Prisma.StringWithAggregatesFilter<"notification"> | string + publicKey?: Prisma.StringWithAggregatesFilter<"notification"> | string + contentEncoding?: Prisma.StringWithAggregatesFilter<"notification"> | string + plateforme?: Prisma.StringNullableWithAggregatesFilter<"notification"> | string | null +} + +export type notificationCreateInput = { + staff_id: number + endpoint: string + authToken: string + publicKey: string + contentEncoding?: string + plateforme?: string | null +} + +export type notificationUncheckedCreateInput = { + id?: number + staff_id: number + endpoint: string + authToken: string + publicKey: string + contentEncoding?: string + plateforme?: string | null +} + +export type notificationUpdateInput = { + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + endpoint?: Prisma.StringFieldUpdateOperationsInput | string + authToken?: Prisma.StringFieldUpdateOperationsInput | string + publicKey?: Prisma.StringFieldUpdateOperationsInput | string + contentEncoding?: Prisma.StringFieldUpdateOperationsInput | string + plateforme?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type notificationUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + endpoint?: Prisma.StringFieldUpdateOperationsInput | string + authToken?: Prisma.StringFieldUpdateOperationsInput | string + publicKey?: Prisma.StringFieldUpdateOperationsInput | string + contentEncoding?: Prisma.StringFieldUpdateOperationsInput | string + plateforme?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type notificationCreateManyInput = { + id?: number + staff_id: number + endpoint: string + authToken: string + publicKey: string + contentEncoding?: string + plateforme?: string | null +} + +export type notificationUpdateManyMutationInput = { + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + endpoint?: Prisma.StringFieldUpdateOperationsInput | string + authToken?: Prisma.StringFieldUpdateOperationsInput | string + publicKey?: Prisma.StringFieldUpdateOperationsInput | string + contentEncoding?: Prisma.StringFieldUpdateOperationsInput | string + plateforme?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type notificationUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + endpoint?: Prisma.StringFieldUpdateOperationsInput | string + authToken?: Prisma.StringFieldUpdateOperationsInput | string + publicKey?: Prisma.StringFieldUpdateOperationsInput | string + contentEncoding?: Prisma.StringFieldUpdateOperationsInput | string + plateforme?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type notificationOrderByRelevanceInput = { + fields: Prisma.notificationOrderByRelevanceFieldEnum | Prisma.notificationOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type notificationCountOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + endpoint?: Prisma.SortOrder + authToken?: Prisma.SortOrder + publicKey?: Prisma.SortOrder + contentEncoding?: Prisma.SortOrder + plateforme?: Prisma.SortOrder +} + +export type notificationAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type notificationMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + endpoint?: Prisma.SortOrder + authToken?: Prisma.SortOrder + publicKey?: Prisma.SortOrder + contentEncoding?: Prisma.SortOrder + plateforme?: Prisma.SortOrder +} + +export type notificationMinOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + endpoint?: Prisma.SortOrder + authToken?: Prisma.SortOrder + publicKey?: Prisma.SortOrder + contentEncoding?: Prisma.SortOrder + plateforme?: Prisma.SortOrder +} + +export type notificationSumOrderByAggregateInput = { + id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + + + +export type notificationSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + staff_id?: boolean + endpoint?: boolean + authToken?: boolean + publicKey?: boolean + contentEncoding?: boolean + plateforme?: boolean +}, ExtArgs["result"]["notification"]> + + + +export type notificationSelectScalar = { + id?: boolean + staff_id?: boolean + endpoint?: boolean + authToken?: boolean + publicKey?: boolean + contentEncoding?: boolean + plateforme?: boolean +} + +export type notificationOmit = runtime.Types.Extensions.GetOmit<"id" | "staff_id" | "endpoint" | "authToken" | "publicKey" | "contentEncoding" | "plateforme", ExtArgs["result"]["notification"]> + +export type $notificationPayload = { + name: "notification" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + staff_id: number + endpoint: string + authToken: string + publicKey: string + contentEncoding: string + plateforme: string | null + }, ExtArgs["result"]["notification"]> + composites: {} +} + +export type notificationGetPayload = runtime.Types.Result.GetResult + +export type notificationCountArgs = + Omit & { + select?: NotificationCountAggregateInputType | true + } + +export interface notificationDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['notification'], meta: { name: 'notification' } } + /** + * Find zero or one Notification that matches the filter. + * @param {notificationFindUniqueArgs} args - Arguments to find a Notification + * @example + * // Get one Notification + * const notification = await prisma.notification.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__notificationClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Notification that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {notificationFindUniqueOrThrowArgs} args - Arguments to find a Notification + * @example + * // Get one Notification + * const notification = await prisma.notification.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__notificationClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Notification that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {notificationFindFirstArgs} args - Arguments to find a Notification + * @example + * // Get one Notification + * const notification = await prisma.notification.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__notificationClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Notification that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {notificationFindFirstOrThrowArgs} args - Arguments to find a Notification + * @example + * // Get one Notification + * const notification = await prisma.notification.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__notificationClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Notifications that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {notificationFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Notifications + * const notifications = await prisma.notification.findMany() + * + * // Get first 10 Notifications + * const notifications = await prisma.notification.findMany({ take: 10 }) + * + * // Only select the `id` + * const notificationWithIdOnly = await prisma.notification.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Notification. + * @param {notificationCreateArgs} args - Arguments to create a Notification. + * @example + * // Create one Notification + * const Notification = await prisma.notification.create({ + * data: { + * // ... data to create a Notification + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__notificationClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Notifications. + * @param {notificationCreateManyArgs} args - Arguments to create many Notifications. + * @example + * // Create many Notifications + * const notification = await prisma.notification.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Notification. + * @param {notificationDeleteArgs} args - Arguments to delete one Notification. + * @example + * // Delete one Notification + * const Notification = await prisma.notification.delete({ + * where: { + * // ... filter to delete one Notification + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__notificationClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Notification. + * @param {notificationUpdateArgs} args - Arguments to update one Notification. + * @example + * // Update one Notification + * const notification = await prisma.notification.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__notificationClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Notifications. + * @param {notificationDeleteManyArgs} args - Arguments to filter Notifications to delete. + * @example + * // Delete a few Notifications + * const { count } = await prisma.notification.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Notifications. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {notificationUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Notifications + * const notification = await prisma.notification.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Notification. + * @param {notificationUpsertArgs} args - Arguments to update or create a Notification. + * @example + * // Update or create a Notification + * const notification = await prisma.notification.upsert({ + * create: { + * // ... data to create a Notification + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Notification we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__notificationClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Notifications. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {notificationCountArgs} args - Arguments to filter Notifications to count. + * @example + * // Count the number of Notifications + * const count = await prisma.notification.count({ + * where: { + * // ... the filter for the Notifications we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Notification. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {NotificationAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Notification. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {notificationGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends notificationGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: notificationGroupByArgs['orderBy'] } + : { orderBy?: notificationGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetNotificationGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the notification model + */ +readonly fields: notificationFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for notification. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__notificationClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + + + + +/** + * Fields of the notification model + */ +export interface notificationFieldRefs { + readonly id: Prisma.FieldRef<"notification", 'Int'> + readonly staff_id: Prisma.FieldRef<"notification", 'Int'> + readonly endpoint: Prisma.FieldRef<"notification", 'String'> + readonly authToken: Prisma.FieldRef<"notification", 'String'> + readonly publicKey: Prisma.FieldRef<"notification", 'String'> + readonly contentEncoding: Prisma.FieldRef<"notification", 'String'> + readonly plateforme: Prisma.FieldRef<"notification", 'String'> +} + + +// Custom InputTypes +/** + * notification findUnique + */ +export type notificationFindUniqueArgs = { + /** + * Select specific fields to fetch from the notification + */ + select?: Prisma.notificationSelect | null + /** + * Omit specific fields from the notification + */ + omit?: Prisma.notificationOmit | null + /** + * Filter, which notification to fetch. + */ + where: Prisma.notificationWhereUniqueInput +} + +/** + * notification findUniqueOrThrow + */ +export type notificationFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the notification + */ + select?: Prisma.notificationSelect | null + /** + * Omit specific fields from the notification + */ + omit?: Prisma.notificationOmit | null + /** + * Filter, which notification to fetch. + */ + where: Prisma.notificationWhereUniqueInput +} + +/** + * notification findFirst + */ +export type notificationFindFirstArgs = { + /** + * Select specific fields to fetch from the notification + */ + select?: Prisma.notificationSelect | null + /** + * Omit specific fields from the notification + */ + omit?: Prisma.notificationOmit | null + /** + * Filter, which notification to fetch. + */ + where?: Prisma.notificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notifications to fetch. + */ + orderBy?: Prisma.notificationOrderByWithRelationInput | Prisma.notificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for notifications. + */ + cursor?: Prisma.notificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notifications from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` notifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of notifications. + */ + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * notification findFirstOrThrow + */ +export type notificationFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the notification + */ + select?: Prisma.notificationSelect | null + /** + * Omit specific fields from the notification + */ + omit?: Prisma.notificationOmit | null + /** + * Filter, which notification to fetch. + */ + where?: Prisma.notificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notifications to fetch. + */ + orderBy?: Prisma.notificationOrderByWithRelationInput | Prisma.notificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for notifications. + */ + cursor?: Prisma.notificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notifications from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` notifications. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of notifications. + */ + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * notification findMany + */ +export type notificationFindManyArgs = { + /** + * Select specific fields to fetch from the notification + */ + select?: Prisma.notificationSelect | null + /** + * Omit specific fields from the notification + */ + omit?: Prisma.notificationOmit | null + /** + * Filter, which notifications to fetch. + */ + where?: Prisma.notificationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notifications to fetch. + */ + orderBy?: Prisma.notificationOrderByWithRelationInput | Prisma.notificationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing notifications. + */ + cursor?: Prisma.notificationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notifications from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` notifications. + */ + skip?: number + distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[] +} + +/** + * notification create + */ +export type notificationCreateArgs = { + /** + * Select specific fields to fetch from the notification + */ + select?: Prisma.notificationSelect | null + /** + * Omit specific fields from the notification + */ + omit?: Prisma.notificationOmit | null + /** + * The data needed to create a notification. + */ + data: Prisma.XOR +} + +/** + * notification createMany + */ +export type notificationCreateManyArgs = { + /** + * The data used to create many notifications. + */ + data: Prisma.notificationCreateManyInput | Prisma.notificationCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * notification update + */ +export type notificationUpdateArgs = { + /** + * Select specific fields to fetch from the notification + */ + select?: Prisma.notificationSelect | null + /** + * Omit specific fields from the notification + */ + omit?: Prisma.notificationOmit | null + /** + * The data needed to update a notification. + */ + data: Prisma.XOR + /** + * Choose, which notification to update. + */ + where: Prisma.notificationWhereUniqueInput +} + +/** + * notification updateMany + */ +export type notificationUpdateManyArgs = { + /** + * The data used to update notifications. + */ + data: Prisma.XOR + /** + * Filter which notifications to update + */ + where?: Prisma.notificationWhereInput + /** + * Limit how many notifications to update. + */ + limit?: number +} + +/** + * notification upsert + */ +export type notificationUpsertArgs = { + /** + * Select specific fields to fetch from the notification + */ + select?: Prisma.notificationSelect | null + /** + * Omit specific fields from the notification + */ + omit?: Prisma.notificationOmit | null + /** + * The filter to search for the notification to update in case it exists. + */ + where: Prisma.notificationWhereUniqueInput + /** + * In case the notification found by the `where` argument doesn't exist, create a new notification with this data. + */ + create: Prisma.XOR + /** + * In case the notification was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * notification delete + */ +export type notificationDeleteArgs = { + /** + * Select specific fields to fetch from the notification + */ + select?: Prisma.notificationSelect | null + /** + * Omit specific fields from the notification + */ + omit?: Prisma.notificationOmit | null + /** + * Filter which notification to delete. + */ + where: Prisma.notificationWhereUniqueInput +} + +/** + * notification deleteMany + */ +export type notificationDeleteManyArgs = { + /** + * Filter which notifications to delete + */ + where?: Prisma.notificationWhereInput + /** + * Limit how many notifications to delete. + */ + limit?: number +} + +/** + * notification without action + */ +export type notificationDefaultArgs = { + /** + * Select specific fields to fetch from the notification + */ + select?: Prisma.notificationSelect | null + /** + * Omit specific fields from the notification + */ + omit?: Prisma.notificationOmit | null +} diff --git a/prisma/generated/mariadb/models/notification_payload.ts b/prisma/generated/mariadb/models/notification_payload.ts new file mode 100644 index 0000000..e21d6ae --- /dev/null +++ b/prisma/generated/mariadb/models/notification_payload.ts @@ -0,0 +1,1059 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `notification_payload` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model notification_payload + * + */ +export type notification_payloadModel = runtime.Types.Result.DefaultSelection + +export type AggregateNotification_payload = { + _count: Notification_payloadCountAggregateOutputType | null + _avg: Notification_payloadAvgAggregateOutputType | null + _sum: Notification_payloadSumAggregateOutputType | null + _min: Notification_payloadMinAggregateOutputType | null + _max: Notification_payloadMaxAggregateOutputType | null +} + +export type Notification_payloadAvgAggregateOutputType = { + id: number | null + notification_id: number | null +} + +export type Notification_payloadSumAggregateOutputType = { + id: number | null + notification_id: number | null +} + +export type Notification_payloadMinAggregateOutputType = { + id: number | null + notification_id: number | null + payload: string | null + timestamp: Date | null +} + +export type Notification_payloadMaxAggregateOutputType = { + id: number | null + notification_id: number | null + payload: string | null + timestamp: Date | null +} + +export type Notification_payloadCountAggregateOutputType = { + id: number + notification_id: number + payload: number + timestamp: number + _all: number +} + + +export type Notification_payloadAvgAggregateInputType = { + id?: true + notification_id?: true +} + +export type Notification_payloadSumAggregateInputType = { + id?: true + notification_id?: true +} + +export type Notification_payloadMinAggregateInputType = { + id?: true + notification_id?: true + payload?: true + timestamp?: true +} + +export type Notification_payloadMaxAggregateInputType = { + id?: true + notification_id?: true + payload?: true + timestamp?: true +} + +export type Notification_payloadCountAggregateInputType = { + id?: true + notification_id?: true + payload?: true + timestamp?: true + _all?: true +} + +export type Notification_payloadAggregateArgs = { + /** + * Filter which notification_payload to aggregate. + */ + where?: Prisma.notification_payloadWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notification_payloads to fetch. + */ + orderBy?: Prisma.notification_payloadOrderByWithRelationInput | Prisma.notification_payloadOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.notification_payloadWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notification_payloads 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` notification_payloads. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned notification_payloads + **/ + _count?: true | Notification_payloadCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Notification_payloadAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Notification_payloadSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Notification_payloadMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Notification_payloadMaxAggregateInputType +} + +export type GetNotification_payloadAggregateType = { + [P in keyof T & keyof AggregateNotification_payload]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type notification_payloadGroupByArgs = { + where?: Prisma.notification_payloadWhereInput + orderBy?: Prisma.notification_payloadOrderByWithAggregationInput | Prisma.notification_payloadOrderByWithAggregationInput[] + by: Prisma.Notification_payloadScalarFieldEnum[] | Prisma.Notification_payloadScalarFieldEnum + having?: Prisma.notification_payloadScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Notification_payloadCountAggregateInputType | true + _avg?: Notification_payloadAvgAggregateInputType + _sum?: Notification_payloadSumAggregateInputType + _min?: Notification_payloadMinAggregateInputType + _max?: Notification_payloadMaxAggregateInputType +} + +export type Notification_payloadGroupByOutputType = { + id: number + notification_id: number + payload: string + timestamp: Date + _count: Notification_payloadCountAggregateOutputType | null + _avg: Notification_payloadAvgAggregateOutputType | null + _sum: Notification_payloadSumAggregateOutputType | null + _min: Notification_payloadMinAggregateOutputType | null + _max: Notification_payloadMaxAggregateOutputType | null +} + +type GetNotification_payloadGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Notification_payloadGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type notification_payloadWhereInput = { + AND?: Prisma.notification_payloadWhereInput | Prisma.notification_payloadWhereInput[] + OR?: Prisma.notification_payloadWhereInput[] + NOT?: Prisma.notification_payloadWhereInput | Prisma.notification_payloadWhereInput[] + id?: Prisma.IntFilter<"notification_payload"> | number + notification_id?: Prisma.IntFilter<"notification_payload"> | number + payload?: Prisma.StringFilter<"notification_payload"> | string + timestamp?: Prisma.DateTimeFilter<"notification_payload"> | Date | string +} + +export type notification_payloadOrderByWithRelationInput = { + id?: Prisma.SortOrder + notification_id?: Prisma.SortOrder + payload?: Prisma.SortOrder + timestamp?: Prisma.SortOrder + _relevance?: Prisma.notification_payloadOrderByRelevanceInput +} + +export type notification_payloadWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.notification_payloadWhereInput | Prisma.notification_payloadWhereInput[] + OR?: Prisma.notification_payloadWhereInput[] + NOT?: Prisma.notification_payloadWhereInput | Prisma.notification_payloadWhereInput[] + notification_id?: Prisma.IntFilter<"notification_payload"> | number + payload?: Prisma.StringFilter<"notification_payload"> | string + timestamp?: Prisma.DateTimeFilter<"notification_payload"> | Date | string +}, "id"> + +export type notification_payloadOrderByWithAggregationInput = { + id?: Prisma.SortOrder + notification_id?: Prisma.SortOrder + payload?: Prisma.SortOrder + timestamp?: Prisma.SortOrder + _count?: Prisma.notification_payloadCountOrderByAggregateInput + _avg?: Prisma.notification_payloadAvgOrderByAggregateInput + _max?: Prisma.notification_payloadMaxOrderByAggregateInput + _min?: Prisma.notification_payloadMinOrderByAggregateInput + _sum?: Prisma.notification_payloadSumOrderByAggregateInput +} + +export type notification_payloadScalarWhereWithAggregatesInput = { + AND?: Prisma.notification_payloadScalarWhereWithAggregatesInput | Prisma.notification_payloadScalarWhereWithAggregatesInput[] + OR?: Prisma.notification_payloadScalarWhereWithAggregatesInput[] + NOT?: Prisma.notification_payloadScalarWhereWithAggregatesInput | Prisma.notification_payloadScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"notification_payload"> | number + notification_id?: Prisma.IntWithAggregatesFilter<"notification_payload"> | number + payload?: Prisma.StringWithAggregatesFilter<"notification_payload"> | string + timestamp?: Prisma.DateTimeWithAggregatesFilter<"notification_payload"> | Date | string +} + +export type notification_payloadCreateInput = { + notification_id: number + payload: string + timestamp?: Date | string +} + +export type notification_payloadUncheckedCreateInput = { + id?: number + notification_id: number + payload: string + timestamp?: Date | string +} + +export type notification_payloadUpdateInput = { + notification_id?: Prisma.IntFieldUpdateOperationsInput | number + payload?: Prisma.StringFieldUpdateOperationsInput | string + timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type notification_payloadUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + notification_id?: Prisma.IntFieldUpdateOperationsInput | number + payload?: Prisma.StringFieldUpdateOperationsInput | string + timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type notification_payloadCreateManyInput = { + id?: number + notification_id: number + payload: string + timestamp?: Date | string +} + +export type notification_payloadUpdateManyMutationInput = { + notification_id?: Prisma.IntFieldUpdateOperationsInput | number + payload?: Prisma.StringFieldUpdateOperationsInput | string + timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type notification_payloadUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + notification_id?: Prisma.IntFieldUpdateOperationsInput | number + payload?: Prisma.StringFieldUpdateOperationsInput | string + timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type notification_payloadOrderByRelevanceInput = { + fields: Prisma.notification_payloadOrderByRelevanceFieldEnum | Prisma.notification_payloadOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type notification_payloadCountOrderByAggregateInput = { + id?: Prisma.SortOrder + notification_id?: Prisma.SortOrder + payload?: Prisma.SortOrder + timestamp?: Prisma.SortOrder +} + +export type notification_payloadAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + notification_id?: Prisma.SortOrder +} + +export type notification_payloadMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + notification_id?: Prisma.SortOrder + payload?: Prisma.SortOrder + timestamp?: Prisma.SortOrder +} + +export type notification_payloadMinOrderByAggregateInput = { + id?: Prisma.SortOrder + notification_id?: Prisma.SortOrder + payload?: Prisma.SortOrder + timestamp?: Prisma.SortOrder +} + +export type notification_payloadSumOrderByAggregateInput = { + id?: Prisma.SortOrder + notification_id?: Prisma.SortOrder +} + + + +export type notification_payloadSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + notification_id?: boolean + payload?: boolean + timestamp?: boolean +}, ExtArgs["result"]["notification_payload"]> + + + +export type notification_payloadSelectScalar = { + id?: boolean + notification_id?: boolean + payload?: boolean + timestamp?: boolean +} + +export type notification_payloadOmit = runtime.Types.Extensions.GetOmit<"id" | "notification_id" | "payload" | "timestamp", ExtArgs["result"]["notification_payload"]> + +export type $notification_payloadPayload = { + name: "notification_payload" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + notification_id: number + payload: string + timestamp: Date + }, ExtArgs["result"]["notification_payload"]> + composites: {} +} + +export type notification_payloadGetPayload = runtime.Types.Result.GetResult + +export type notification_payloadCountArgs = + Omit & { + select?: Notification_payloadCountAggregateInputType | true + } + +export interface notification_payloadDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['notification_payload'], meta: { name: 'notification_payload' } } + /** + * Find zero or one Notification_payload that matches the filter. + * @param {notification_payloadFindUniqueArgs} args - Arguments to find a Notification_payload + * @example + * // Get one Notification_payload + * const notification_payload = await prisma.notification_payload.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__notification_payloadClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Notification_payload that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {notification_payloadFindUniqueOrThrowArgs} args - Arguments to find a Notification_payload + * @example + * // Get one Notification_payload + * const notification_payload = await prisma.notification_payload.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__notification_payloadClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Notification_payload 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 {notification_payloadFindFirstArgs} args - Arguments to find a Notification_payload + * @example + * // Get one Notification_payload + * const notification_payload = await prisma.notification_payload.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__notification_payloadClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Notification_payload 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 {notification_payloadFindFirstOrThrowArgs} args - Arguments to find a Notification_payload + * @example + * // Get one Notification_payload + * const notification_payload = await prisma.notification_payload.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__notification_payloadClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Notification_payloads 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 {notification_payloadFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Notification_payloads + * const notification_payloads = await prisma.notification_payload.findMany() + * + * // Get first 10 Notification_payloads + * const notification_payloads = await prisma.notification_payload.findMany({ take: 10 }) + * + * // Only select the `id` + * const notification_payloadWithIdOnly = await prisma.notification_payload.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Notification_payload. + * @param {notification_payloadCreateArgs} args - Arguments to create a Notification_payload. + * @example + * // Create one Notification_payload + * const Notification_payload = await prisma.notification_payload.create({ + * data: { + * // ... data to create a Notification_payload + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__notification_payloadClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Notification_payloads. + * @param {notification_payloadCreateManyArgs} args - Arguments to create many Notification_payloads. + * @example + * // Create many Notification_payloads + * const notification_payload = await prisma.notification_payload.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Notification_payload. + * @param {notification_payloadDeleteArgs} args - Arguments to delete one Notification_payload. + * @example + * // Delete one Notification_payload + * const Notification_payload = await prisma.notification_payload.delete({ + * where: { + * // ... filter to delete one Notification_payload + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__notification_payloadClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Notification_payload. + * @param {notification_payloadUpdateArgs} args - Arguments to update one Notification_payload. + * @example + * // Update one Notification_payload + * const notification_payload = await prisma.notification_payload.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__notification_payloadClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Notification_payloads. + * @param {notification_payloadDeleteManyArgs} args - Arguments to filter Notification_payloads to delete. + * @example + * // Delete a few Notification_payloads + * const { count } = await prisma.notification_payload.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Notification_payloads. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {notification_payloadUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Notification_payloads + * const notification_payload = await prisma.notification_payload.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Notification_payload. + * @param {notification_payloadUpsertArgs} args - Arguments to update or create a Notification_payload. + * @example + * // Update or create a Notification_payload + * const notification_payload = await prisma.notification_payload.upsert({ + * create: { + * // ... data to create a Notification_payload + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Notification_payload we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__notification_payloadClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Notification_payloads. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {notification_payloadCountArgs} args - Arguments to filter Notification_payloads to count. + * @example + * // Count the number of Notification_payloads + * const count = await prisma.notification_payload.count({ + * where: { + * // ... the filter for the Notification_payloads we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Notification_payload. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Notification_payloadAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Notification_payload. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {notification_payloadGroupByArgs} 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 notification_payloadGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: notification_payloadGroupByArgs['orderBy'] } + : { orderBy?: notification_payloadGroupByArgs['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 ? GetNotification_payloadGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the notification_payload model + */ +readonly fields: notification_payloadFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for notification_payload. + * 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__notification_payloadClient 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 notification_payload model + */ +export interface notification_payloadFieldRefs { + readonly id: Prisma.FieldRef<"notification_payload", 'Int'> + readonly notification_id: Prisma.FieldRef<"notification_payload", 'Int'> + readonly payload: Prisma.FieldRef<"notification_payload", 'String'> + readonly timestamp: Prisma.FieldRef<"notification_payload", 'DateTime'> +} + + +// Custom InputTypes +/** + * notification_payload findUnique + */ +export type notification_payloadFindUniqueArgs = { + /** + * Select specific fields to fetch from the notification_payload + */ + select?: Prisma.notification_payloadSelect | null + /** + * Omit specific fields from the notification_payload + */ + omit?: Prisma.notification_payloadOmit | null + /** + * Filter, which notification_payload to fetch. + */ + where: Prisma.notification_payloadWhereUniqueInput +} + +/** + * notification_payload findUniqueOrThrow + */ +export type notification_payloadFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the notification_payload + */ + select?: Prisma.notification_payloadSelect | null + /** + * Omit specific fields from the notification_payload + */ + omit?: Prisma.notification_payloadOmit | null + /** + * Filter, which notification_payload to fetch. + */ + where: Prisma.notification_payloadWhereUniqueInput +} + +/** + * notification_payload findFirst + */ +export type notification_payloadFindFirstArgs = { + /** + * Select specific fields to fetch from the notification_payload + */ + select?: Prisma.notification_payloadSelect | null + /** + * Omit specific fields from the notification_payload + */ + omit?: Prisma.notification_payloadOmit | null + /** + * Filter, which notification_payload to fetch. + */ + where?: Prisma.notification_payloadWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notification_payloads to fetch. + */ + orderBy?: Prisma.notification_payloadOrderByWithRelationInput | Prisma.notification_payloadOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for notification_payloads. + */ + cursor?: Prisma.notification_payloadWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notification_payloads 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` notification_payloads. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of notification_payloads. + */ + distinct?: Prisma.Notification_payloadScalarFieldEnum | Prisma.Notification_payloadScalarFieldEnum[] +} + +/** + * notification_payload findFirstOrThrow + */ +export type notification_payloadFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the notification_payload + */ + select?: Prisma.notification_payloadSelect | null + /** + * Omit specific fields from the notification_payload + */ + omit?: Prisma.notification_payloadOmit | null + /** + * Filter, which notification_payload to fetch. + */ + where?: Prisma.notification_payloadWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notification_payloads to fetch. + */ + orderBy?: Prisma.notification_payloadOrderByWithRelationInput | Prisma.notification_payloadOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for notification_payloads. + */ + cursor?: Prisma.notification_payloadWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notification_payloads 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` notification_payloads. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of notification_payloads. + */ + distinct?: Prisma.Notification_payloadScalarFieldEnum | Prisma.Notification_payloadScalarFieldEnum[] +} + +/** + * notification_payload findMany + */ +export type notification_payloadFindManyArgs = { + /** + * Select specific fields to fetch from the notification_payload + */ + select?: Prisma.notification_payloadSelect | null + /** + * Omit specific fields from the notification_payload + */ + omit?: Prisma.notification_payloadOmit | null + /** + * Filter, which notification_payloads to fetch. + */ + where?: Prisma.notification_payloadWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of notification_payloads to fetch. + */ + orderBy?: Prisma.notification_payloadOrderByWithRelationInput | Prisma.notification_payloadOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing notification_payloads. + */ + cursor?: Prisma.notification_payloadWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` notification_payloads 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` notification_payloads. + */ + skip?: number + distinct?: Prisma.Notification_payloadScalarFieldEnum | Prisma.Notification_payloadScalarFieldEnum[] +} + +/** + * notification_payload create + */ +export type notification_payloadCreateArgs = { + /** + * Select specific fields to fetch from the notification_payload + */ + select?: Prisma.notification_payloadSelect | null + /** + * Omit specific fields from the notification_payload + */ + omit?: Prisma.notification_payloadOmit | null + /** + * The data needed to create a notification_payload. + */ + data: Prisma.XOR +} + +/** + * notification_payload createMany + */ +export type notification_payloadCreateManyArgs = { + /** + * The data used to create many notification_payloads. + */ + data: Prisma.notification_payloadCreateManyInput | Prisma.notification_payloadCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * notification_payload update + */ +export type notification_payloadUpdateArgs = { + /** + * Select specific fields to fetch from the notification_payload + */ + select?: Prisma.notification_payloadSelect | null + /** + * Omit specific fields from the notification_payload + */ + omit?: Prisma.notification_payloadOmit | null + /** + * The data needed to update a notification_payload. + */ + data: Prisma.XOR + /** + * Choose, which notification_payload to update. + */ + where: Prisma.notification_payloadWhereUniqueInput +} + +/** + * notification_payload updateMany + */ +export type notification_payloadUpdateManyArgs = { + /** + * The data used to update notification_payloads. + */ + data: Prisma.XOR + /** + * Filter which notification_payloads to update + */ + where?: Prisma.notification_payloadWhereInput + /** + * Limit how many notification_payloads to update. + */ + limit?: number +} + +/** + * notification_payload upsert + */ +export type notification_payloadUpsertArgs = { + /** + * Select specific fields to fetch from the notification_payload + */ + select?: Prisma.notification_payloadSelect | null + /** + * Omit specific fields from the notification_payload + */ + omit?: Prisma.notification_payloadOmit | null + /** + * The filter to search for the notification_payload to update in case it exists. + */ + where: Prisma.notification_payloadWhereUniqueInput + /** + * In case the notification_payload found by the `where` argument doesn't exist, create a new notification_payload with this data. + */ + create: Prisma.XOR + /** + * In case the notification_payload was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * notification_payload delete + */ +export type notification_payloadDeleteArgs = { + /** + * Select specific fields to fetch from the notification_payload + */ + select?: Prisma.notification_payloadSelect | null + /** + * Omit specific fields from the notification_payload + */ + omit?: Prisma.notification_payloadOmit | null + /** + * Filter which notification_payload to delete. + */ + where: Prisma.notification_payloadWhereUniqueInput +} + +/** + * notification_payload deleteMany + */ +export type notification_payloadDeleteManyArgs = { + /** + * Filter which notification_payloads to delete + */ + where?: Prisma.notification_payloadWhereInput + /** + * Limit how many notification_payloads to delete. + */ + limit?: number +} + +/** + * notification_payload without action + */ +export type notification_payloadDefaultArgs = { + /** + * Select specific fields to fetch from the notification_payload + */ + select?: Prisma.notification_payloadSelect | null + /** + * Omit specific fields from the notification_payload + */ + omit?: Prisma.notification_payloadOmit | null +} diff --git a/prisma/generated/mariadb/models/passwords_manager.ts b/prisma/generated/mariadb/models/passwords_manager.ts new file mode 100644 index 0000000..e691d2c --- /dev/null +++ b/prisma/generated/mariadb/models/passwords_manager.ts @@ -0,0 +1,1438 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `passwords_manager` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model passwords_manager + * + */ +export type passwords_managerModel = runtime.Types.Result.DefaultSelection + +export type AggregatePasswords_manager = { + _count: Passwords_managerCountAggregateOutputType | null + _avg: Passwords_managerAvgAggregateOutputType | null + _sum: Passwords_managerSumAggregateOutputType | null + _min: Passwords_managerMinAggregateOutputType | null + _max: Passwords_managerMaxAggregateOutputType | null +} + +export type Passwords_managerAvgAggregateOutputType = { + id: number | null + date_orig: number | null + date_last: number | null + created_by: number | null +} + +export type Passwords_managerSumAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + date_last: bigint | null + created_by: bigint | null +} + +export type Passwords_managerMinAggregateOutputType = { + id: bigint | null + title: string | null + login: string | null + pass: string | null + url: string | null + email: string | null + phone: string | null + category: string | null + subcategory: string | null + desc: string | null + notes: string | null + logs: string | null + date_orig: bigint | null + date_last: bigint | null + users_granted: string | null + group_granted: string | null + created_by: bigint | null + keywords: string | null +} + +export type Passwords_managerMaxAggregateOutputType = { + id: bigint | null + title: string | null + login: string | null + pass: string | null + url: string | null + email: string | null + phone: string | null + category: string | null + subcategory: string | null + desc: string | null + notes: string | null + logs: string | null + date_orig: bigint | null + date_last: bigint | null + users_granted: string | null + group_granted: string | null + created_by: bigint | null + keywords: string | null +} + +export type Passwords_managerCountAggregateOutputType = { + id: number + title: number + login: number + pass: number + url: number + email: number + phone: number + category: number + subcategory: number + desc: number + notes: number + logs: number + date_orig: number + date_last: number + users_granted: number + group_granted: number + created_by: number + keywords: number + _all: number +} + + +export type Passwords_managerAvgAggregateInputType = { + id?: true + date_orig?: true + date_last?: true + created_by?: true +} + +export type Passwords_managerSumAggregateInputType = { + id?: true + date_orig?: true + date_last?: true + created_by?: true +} + +export type Passwords_managerMinAggregateInputType = { + id?: true + title?: true + login?: true + pass?: true + url?: true + email?: true + phone?: true + category?: true + subcategory?: true + desc?: true + notes?: true + logs?: true + date_orig?: true + date_last?: true + users_granted?: true + group_granted?: true + created_by?: true + keywords?: true +} + +export type Passwords_managerMaxAggregateInputType = { + id?: true + title?: true + login?: true + pass?: true + url?: true + email?: true + phone?: true + category?: true + subcategory?: true + desc?: true + notes?: true + logs?: true + date_orig?: true + date_last?: true + users_granted?: true + group_granted?: true + created_by?: true + keywords?: true +} + +export type Passwords_managerCountAggregateInputType = { + id?: true + title?: true + login?: true + pass?: true + url?: true + email?: true + phone?: true + category?: true + subcategory?: true + desc?: true + notes?: true + logs?: true + date_orig?: true + date_last?: true + users_granted?: true + group_granted?: true + created_by?: true + keywords?: true + _all?: true +} + +export type Passwords_managerAggregateArgs = { + /** + * Filter which passwords_manager to aggregate. + */ + where?: Prisma.passwords_managerWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of passwords_managers to fetch. + */ + orderBy?: Prisma.passwords_managerOrderByWithRelationInput | Prisma.passwords_managerOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.passwords_managerWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` passwords_managers 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` passwords_managers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned passwords_managers + **/ + _count?: true | Passwords_managerCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Passwords_managerAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Passwords_managerSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Passwords_managerMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Passwords_managerMaxAggregateInputType +} + +export type GetPasswords_managerAggregateType = { + [P in keyof T & keyof AggregatePasswords_manager]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type passwords_managerGroupByArgs = { + where?: Prisma.passwords_managerWhereInput + orderBy?: Prisma.passwords_managerOrderByWithAggregationInput | Prisma.passwords_managerOrderByWithAggregationInput[] + by: Prisma.Passwords_managerScalarFieldEnum[] | Prisma.Passwords_managerScalarFieldEnum + having?: Prisma.passwords_managerScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Passwords_managerCountAggregateInputType | true + _avg?: Passwords_managerAvgAggregateInputType + _sum?: Passwords_managerSumAggregateInputType + _min?: Passwords_managerMinAggregateInputType + _max?: Passwords_managerMaxAggregateInputType +} + +export type Passwords_managerGroupByOutputType = { + id: bigint + title: string + login: string + pass: string + url: string | null + email: string | null + phone: string | null + category: string | null + subcategory: string | null + desc: string | null + notes: string | null + logs: string | null + date_orig: bigint + date_last: bigint + users_granted: string | null + group_granted: string | null + created_by: bigint + keywords: string | null + _count: Passwords_managerCountAggregateOutputType | null + _avg: Passwords_managerAvgAggregateOutputType | null + _sum: Passwords_managerSumAggregateOutputType | null + _min: Passwords_managerMinAggregateOutputType | null + _max: Passwords_managerMaxAggregateOutputType | null +} + +type GetPasswords_managerGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Passwords_managerGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type passwords_managerWhereInput = { + AND?: Prisma.passwords_managerWhereInput | Prisma.passwords_managerWhereInput[] + OR?: Prisma.passwords_managerWhereInput[] + NOT?: Prisma.passwords_managerWhereInput | Prisma.passwords_managerWhereInput[] + id?: Prisma.BigIntFilter<"passwords_manager"> | bigint | number + title?: Prisma.StringFilter<"passwords_manager"> | string + login?: Prisma.StringFilter<"passwords_manager"> | string + pass?: Prisma.StringFilter<"passwords_manager"> | string + url?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + email?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + phone?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + category?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + subcategory?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + desc?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + notes?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + logs?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + date_orig?: Prisma.BigIntFilter<"passwords_manager"> | bigint | number + date_last?: Prisma.BigIntFilter<"passwords_manager"> | bigint | number + users_granted?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + group_granted?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + created_by?: Prisma.BigIntFilter<"passwords_manager"> | bigint | number + keywords?: Prisma.StringNullableFilter<"passwords_manager"> | string | null +} + +export type passwords_managerOrderByWithRelationInput = { + id?: Prisma.SortOrder + title?: Prisma.SortOrder + login?: Prisma.SortOrder + pass?: Prisma.SortOrder + url?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + phone?: Prisma.SortOrderInput | Prisma.SortOrder + category?: Prisma.SortOrderInput | Prisma.SortOrder + subcategory?: Prisma.SortOrderInput | Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + logs?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_last?: Prisma.SortOrder + users_granted?: Prisma.SortOrderInput | Prisma.SortOrder + group_granted?: Prisma.SortOrderInput | Prisma.SortOrder + created_by?: Prisma.SortOrder + keywords?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.passwords_managerOrderByRelevanceInput +} + +export type passwords_managerWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.passwords_managerWhereInput | Prisma.passwords_managerWhereInput[] + OR?: Prisma.passwords_managerWhereInput[] + NOT?: Prisma.passwords_managerWhereInput | Prisma.passwords_managerWhereInput[] + title?: Prisma.StringFilter<"passwords_manager"> | string + login?: Prisma.StringFilter<"passwords_manager"> | string + pass?: Prisma.StringFilter<"passwords_manager"> | string + url?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + email?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + phone?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + category?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + subcategory?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + desc?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + notes?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + logs?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + date_orig?: Prisma.BigIntFilter<"passwords_manager"> | bigint | number + date_last?: Prisma.BigIntFilter<"passwords_manager"> | bigint | number + users_granted?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + group_granted?: Prisma.StringNullableFilter<"passwords_manager"> | string | null + created_by?: Prisma.BigIntFilter<"passwords_manager"> | bigint | number + keywords?: Prisma.StringNullableFilter<"passwords_manager"> | string | null +}, "id"> + +export type passwords_managerOrderByWithAggregationInput = { + id?: Prisma.SortOrder + title?: Prisma.SortOrder + login?: Prisma.SortOrder + pass?: Prisma.SortOrder + url?: Prisma.SortOrderInput | Prisma.SortOrder + email?: Prisma.SortOrderInput | Prisma.SortOrder + phone?: Prisma.SortOrderInput | Prisma.SortOrder + category?: Prisma.SortOrderInput | Prisma.SortOrder + subcategory?: Prisma.SortOrderInput | Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + logs?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_last?: Prisma.SortOrder + users_granted?: Prisma.SortOrderInput | Prisma.SortOrder + group_granted?: Prisma.SortOrderInput | Prisma.SortOrder + created_by?: Prisma.SortOrder + keywords?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.passwords_managerCountOrderByAggregateInput + _avg?: Prisma.passwords_managerAvgOrderByAggregateInput + _max?: Prisma.passwords_managerMaxOrderByAggregateInput + _min?: Prisma.passwords_managerMinOrderByAggregateInput + _sum?: Prisma.passwords_managerSumOrderByAggregateInput +} + +export type passwords_managerScalarWhereWithAggregatesInput = { + AND?: Prisma.passwords_managerScalarWhereWithAggregatesInput | Prisma.passwords_managerScalarWhereWithAggregatesInput[] + OR?: Prisma.passwords_managerScalarWhereWithAggregatesInput[] + NOT?: Prisma.passwords_managerScalarWhereWithAggregatesInput | Prisma.passwords_managerScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"passwords_manager"> | bigint | number + title?: Prisma.StringWithAggregatesFilter<"passwords_manager"> | string + login?: Prisma.StringWithAggregatesFilter<"passwords_manager"> | string + pass?: Prisma.StringWithAggregatesFilter<"passwords_manager"> | string + url?: Prisma.StringNullableWithAggregatesFilter<"passwords_manager"> | string | null + email?: Prisma.StringNullableWithAggregatesFilter<"passwords_manager"> | string | null + phone?: Prisma.StringNullableWithAggregatesFilter<"passwords_manager"> | string | null + category?: Prisma.StringNullableWithAggregatesFilter<"passwords_manager"> | string | null + subcategory?: Prisma.StringNullableWithAggregatesFilter<"passwords_manager"> | string | null + desc?: Prisma.StringNullableWithAggregatesFilter<"passwords_manager"> | string | null + notes?: Prisma.StringNullableWithAggregatesFilter<"passwords_manager"> | string | null + logs?: Prisma.StringNullableWithAggregatesFilter<"passwords_manager"> | string | null + date_orig?: Prisma.BigIntWithAggregatesFilter<"passwords_manager"> | bigint | number + date_last?: Prisma.BigIntWithAggregatesFilter<"passwords_manager"> | bigint | number + users_granted?: Prisma.StringNullableWithAggregatesFilter<"passwords_manager"> | string | null + group_granted?: Prisma.StringNullableWithAggregatesFilter<"passwords_manager"> | string | null + created_by?: Prisma.BigIntWithAggregatesFilter<"passwords_manager"> | bigint | number + keywords?: Prisma.StringNullableWithAggregatesFilter<"passwords_manager"> | string | null +} + +export type passwords_managerCreateInput = { + id?: bigint | number + title: string + login: string + pass: string + url?: string | null + email?: string | null + phone?: string | null + category?: string | null + subcategory?: string | null + desc?: string | null + notes?: string | null + logs?: string | null + date_orig: bigint | number + date_last: bigint | number + users_granted?: string | null + group_granted?: string | null + created_by: bigint | number + keywords?: string | null +} + +export type passwords_managerUncheckedCreateInput = { + id?: bigint | number + title: string + login: string + pass: string + url?: string | null + email?: string | null + phone?: string | null + category?: string | null + subcategory?: string | null + desc?: string | null + notes?: string | null + logs?: string | null + date_orig: bigint | number + date_last: bigint | number + users_granted?: string | null + group_granted?: string | null + created_by: bigint | number + keywords?: string | null +} + +export type passwords_managerUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + login?: Prisma.StringFieldUpdateOperationsInput | string + pass?: Prisma.StringFieldUpdateOperationsInput | string + url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + subcategory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + logs?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_last?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + users_granted?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + group_granted?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_by?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + keywords?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type passwords_managerUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + login?: Prisma.StringFieldUpdateOperationsInput | string + pass?: Prisma.StringFieldUpdateOperationsInput | string + url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + subcategory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + logs?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_last?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + users_granted?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + group_granted?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_by?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + keywords?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type passwords_managerCreateManyInput = { + id?: bigint | number + title: string + login: string + pass: string + url?: string | null + email?: string | null + phone?: string | null + category?: string | null + subcategory?: string | null + desc?: string | null + notes?: string | null + logs?: string | null + date_orig: bigint | number + date_last: bigint | number + users_granted?: string | null + group_granted?: string | null + created_by: bigint | number + keywords?: string | null +} + +export type passwords_managerUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + login?: Prisma.StringFieldUpdateOperationsInput | string + pass?: Prisma.StringFieldUpdateOperationsInput | string + url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + subcategory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + logs?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_last?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + users_granted?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + group_granted?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_by?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + keywords?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type passwords_managerUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + title?: Prisma.StringFieldUpdateOperationsInput | string + login?: Prisma.StringFieldUpdateOperationsInput | string + pass?: Prisma.StringFieldUpdateOperationsInput | string + url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + subcategory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + logs?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_last?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + users_granted?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + group_granted?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + created_by?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + keywords?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type passwords_managerOrderByRelevanceInput = { + fields: Prisma.passwords_managerOrderByRelevanceFieldEnum | Prisma.passwords_managerOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type passwords_managerCountOrderByAggregateInput = { + id?: Prisma.SortOrder + title?: Prisma.SortOrder + login?: Prisma.SortOrder + pass?: Prisma.SortOrder + url?: Prisma.SortOrder + email?: Prisma.SortOrder + phone?: Prisma.SortOrder + category?: Prisma.SortOrder + subcategory?: Prisma.SortOrder + desc?: Prisma.SortOrder + notes?: Prisma.SortOrder + logs?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_last?: Prisma.SortOrder + users_granted?: Prisma.SortOrder + group_granted?: Prisma.SortOrder + created_by?: Prisma.SortOrder + keywords?: Prisma.SortOrder +} + +export type passwords_managerAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_last?: Prisma.SortOrder + created_by?: Prisma.SortOrder +} + +export type passwords_managerMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + title?: Prisma.SortOrder + login?: Prisma.SortOrder + pass?: Prisma.SortOrder + url?: Prisma.SortOrder + email?: Prisma.SortOrder + phone?: Prisma.SortOrder + category?: Prisma.SortOrder + subcategory?: Prisma.SortOrder + desc?: Prisma.SortOrder + notes?: Prisma.SortOrder + logs?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_last?: Prisma.SortOrder + users_granted?: Prisma.SortOrder + group_granted?: Prisma.SortOrder + created_by?: Prisma.SortOrder + keywords?: Prisma.SortOrder +} + +export type passwords_managerMinOrderByAggregateInput = { + id?: Prisma.SortOrder + title?: Prisma.SortOrder + login?: Prisma.SortOrder + pass?: Prisma.SortOrder + url?: Prisma.SortOrder + email?: Prisma.SortOrder + phone?: Prisma.SortOrder + category?: Prisma.SortOrder + subcategory?: Prisma.SortOrder + desc?: Prisma.SortOrder + notes?: Prisma.SortOrder + logs?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_last?: Prisma.SortOrder + users_granted?: Prisma.SortOrder + group_granted?: Prisma.SortOrder + created_by?: Prisma.SortOrder + keywords?: Prisma.SortOrder +} + +export type passwords_managerSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_last?: Prisma.SortOrder + created_by?: Prisma.SortOrder +} + + + +export type passwords_managerSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + title?: boolean + login?: boolean + pass?: boolean + url?: boolean + email?: boolean + phone?: boolean + category?: boolean + subcategory?: boolean + desc?: boolean + notes?: boolean + logs?: boolean + date_orig?: boolean + date_last?: boolean + users_granted?: boolean + group_granted?: boolean + created_by?: boolean + keywords?: boolean +}, ExtArgs["result"]["passwords_manager"]> + + + +export type passwords_managerSelectScalar = { + id?: boolean + title?: boolean + login?: boolean + pass?: boolean + url?: boolean + email?: boolean + phone?: boolean + category?: boolean + subcategory?: boolean + desc?: boolean + notes?: boolean + logs?: boolean + date_orig?: boolean + date_last?: boolean + users_granted?: boolean + group_granted?: boolean + created_by?: boolean + keywords?: boolean +} + +export type passwords_managerOmit = runtime.Types.Extensions.GetOmit<"id" | "title" | "login" | "pass" | "url" | "email" | "phone" | "category" | "subcategory" | "desc" | "notes" | "logs" | "date_orig" | "date_last" | "users_granted" | "group_granted" | "created_by" | "keywords", ExtArgs["result"]["passwords_manager"]> + +export type $passwords_managerPayload = { + name: "passwords_manager" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + title: string + login: string + pass: string + url: string | null + email: string | null + phone: string | null + category: string | null + subcategory: string | null + desc: string | null + notes: string | null + logs: string | null + date_orig: bigint + date_last: bigint + users_granted: string | null + group_granted: string | null + created_by: bigint + keywords: string | null + }, ExtArgs["result"]["passwords_manager"]> + composites: {} +} + +export type passwords_managerGetPayload = runtime.Types.Result.GetResult + +export type passwords_managerCountArgs = + Omit & { + select?: Passwords_managerCountAggregateInputType | true + } + +export interface passwords_managerDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['passwords_manager'], meta: { name: 'passwords_manager' } } + /** + * Find zero or one Passwords_manager that matches the filter. + * @param {passwords_managerFindUniqueArgs} args - Arguments to find a Passwords_manager + * @example + * // Get one Passwords_manager + * const passwords_manager = await prisma.passwords_manager.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_managerClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Passwords_manager that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {passwords_managerFindUniqueOrThrowArgs} args - Arguments to find a Passwords_manager + * @example + * // Get one Passwords_manager + * const passwords_manager = await prisma.passwords_manager.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_managerClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Passwords_manager 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 {passwords_managerFindFirstArgs} args - Arguments to find a Passwords_manager + * @example + * // Get one Passwords_manager + * const passwords_manager = await prisma.passwords_manager.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__passwords_managerClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Passwords_manager 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 {passwords_managerFindFirstOrThrowArgs} args - Arguments to find a Passwords_manager + * @example + * // Get one Passwords_manager + * const passwords_manager = await prisma.passwords_manager.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__passwords_managerClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Passwords_managers 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 {passwords_managerFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Passwords_managers + * const passwords_managers = await prisma.passwords_manager.findMany() + * + * // Get first 10 Passwords_managers + * const passwords_managers = await prisma.passwords_manager.findMany({ take: 10 }) + * + * // Only select the `id` + * const passwords_managerWithIdOnly = await prisma.passwords_manager.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Passwords_manager. + * @param {passwords_managerCreateArgs} args - Arguments to create a Passwords_manager. + * @example + * // Create one Passwords_manager + * const Passwords_manager = await prisma.passwords_manager.create({ + * data: { + * // ... data to create a Passwords_manager + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_managerClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Passwords_managers. + * @param {passwords_managerCreateManyArgs} args - Arguments to create many Passwords_managers. + * @example + * // Create many Passwords_managers + * const passwords_manager = await prisma.passwords_manager.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Passwords_manager. + * @param {passwords_managerDeleteArgs} args - Arguments to delete one Passwords_manager. + * @example + * // Delete one Passwords_manager + * const Passwords_manager = await prisma.passwords_manager.delete({ + * where: { + * // ... filter to delete one Passwords_manager + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_managerClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Passwords_manager. + * @param {passwords_managerUpdateArgs} args - Arguments to update one Passwords_manager. + * @example + * // Update one Passwords_manager + * const passwords_manager = await prisma.passwords_manager.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_managerClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Passwords_managers. + * @param {passwords_managerDeleteManyArgs} args - Arguments to filter Passwords_managers to delete. + * @example + * // Delete a few Passwords_managers + * const { count } = await prisma.passwords_manager.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Passwords_managers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {passwords_managerUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Passwords_managers + * const passwords_manager = await prisma.passwords_manager.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Passwords_manager. + * @param {passwords_managerUpsertArgs} args - Arguments to update or create a Passwords_manager. + * @example + * // Update or create a Passwords_manager + * const passwords_manager = await prisma.passwords_manager.upsert({ + * create: { + * // ... data to create a Passwords_manager + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Passwords_manager we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_managerClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Passwords_managers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {passwords_managerCountArgs} args - Arguments to filter Passwords_managers to count. + * @example + * // Count the number of Passwords_managers + * const count = await prisma.passwords_manager.count({ + * where: { + * // ... the filter for the Passwords_managers 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 Passwords_manager. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Passwords_managerAggregateArgs} 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 Passwords_manager. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {passwords_managerGroupByArgs} 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 passwords_managerGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: passwords_managerGroupByArgs['orderBy'] } + : { orderBy?: passwords_managerGroupByArgs['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 ? GetPasswords_managerGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the passwords_manager model + */ +readonly fields: passwords_managerFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for passwords_manager. + * 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__passwords_managerClient 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 passwords_manager model + */ +export interface passwords_managerFieldRefs { + readonly id: Prisma.FieldRef<"passwords_manager", 'BigInt'> + readonly title: Prisma.FieldRef<"passwords_manager", 'String'> + readonly login: Prisma.FieldRef<"passwords_manager", 'String'> + readonly pass: Prisma.FieldRef<"passwords_manager", 'String'> + readonly url: Prisma.FieldRef<"passwords_manager", 'String'> + readonly email: Prisma.FieldRef<"passwords_manager", 'String'> + readonly phone: Prisma.FieldRef<"passwords_manager", 'String'> + readonly category: Prisma.FieldRef<"passwords_manager", 'String'> + readonly subcategory: Prisma.FieldRef<"passwords_manager", 'String'> + readonly desc: Prisma.FieldRef<"passwords_manager", 'String'> + readonly notes: Prisma.FieldRef<"passwords_manager", 'String'> + readonly logs: Prisma.FieldRef<"passwords_manager", 'String'> + readonly date_orig: Prisma.FieldRef<"passwords_manager", 'BigInt'> + readonly date_last: Prisma.FieldRef<"passwords_manager", 'BigInt'> + readonly users_granted: Prisma.FieldRef<"passwords_manager", 'String'> + readonly group_granted: Prisma.FieldRef<"passwords_manager", 'String'> + readonly created_by: Prisma.FieldRef<"passwords_manager", 'BigInt'> + readonly keywords: Prisma.FieldRef<"passwords_manager", 'String'> +} + + +// Custom InputTypes +/** + * passwords_manager findUnique + */ +export type passwords_managerFindUniqueArgs = { + /** + * Select specific fields to fetch from the passwords_manager + */ + select?: Prisma.passwords_managerSelect | null + /** + * Omit specific fields from the passwords_manager + */ + omit?: Prisma.passwords_managerOmit | null + /** + * Filter, which passwords_manager to fetch. + */ + where: Prisma.passwords_managerWhereUniqueInput +} + +/** + * passwords_manager findUniqueOrThrow + */ +export type passwords_managerFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the passwords_manager + */ + select?: Prisma.passwords_managerSelect | null + /** + * Omit specific fields from the passwords_manager + */ + omit?: Prisma.passwords_managerOmit | null + /** + * Filter, which passwords_manager to fetch. + */ + where: Prisma.passwords_managerWhereUniqueInput +} + +/** + * passwords_manager findFirst + */ +export type passwords_managerFindFirstArgs = { + /** + * Select specific fields to fetch from the passwords_manager + */ + select?: Prisma.passwords_managerSelect | null + /** + * Omit specific fields from the passwords_manager + */ + omit?: Prisma.passwords_managerOmit | null + /** + * Filter, which passwords_manager to fetch. + */ + where?: Prisma.passwords_managerWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of passwords_managers to fetch. + */ + orderBy?: Prisma.passwords_managerOrderByWithRelationInput | Prisma.passwords_managerOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for passwords_managers. + */ + cursor?: Prisma.passwords_managerWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` passwords_managers 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` passwords_managers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of passwords_managers. + */ + distinct?: Prisma.Passwords_managerScalarFieldEnum | Prisma.Passwords_managerScalarFieldEnum[] +} + +/** + * passwords_manager findFirstOrThrow + */ +export type passwords_managerFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the passwords_manager + */ + select?: Prisma.passwords_managerSelect | null + /** + * Omit specific fields from the passwords_manager + */ + omit?: Prisma.passwords_managerOmit | null + /** + * Filter, which passwords_manager to fetch. + */ + where?: Prisma.passwords_managerWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of passwords_managers to fetch. + */ + orderBy?: Prisma.passwords_managerOrderByWithRelationInput | Prisma.passwords_managerOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for passwords_managers. + */ + cursor?: Prisma.passwords_managerWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` passwords_managers 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` passwords_managers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of passwords_managers. + */ + distinct?: Prisma.Passwords_managerScalarFieldEnum | Prisma.Passwords_managerScalarFieldEnum[] +} + +/** + * passwords_manager findMany + */ +export type passwords_managerFindManyArgs = { + /** + * Select specific fields to fetch from the passwords_manager + */ + select?: Prisma.passwords_managerSelect | null + /** + * Omit specific fields from the passwords_manager + */ + omit?: Prisma.passwords_managerOmit | null + /** + * Filter, which passwords_managers to fetch. + */ + where?: Prisma.passwords_managerWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of passwords_managers to fetch. + */ + orderBy?: Prisma.passwords_managerOrderByWithRelationInput | Prisma.passwords_managerOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing passwords_managers. + */ + cursor?: Prisma.passwords_managerWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` passwords_managers 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` passwords_managers. + */ + skip?: number + distinct?: Prisma.Passwords_managerScalarFieldEnum | Prisma.Passwords_managerScalarFieldEnum[] +} + +/** + * passwords_manager create + */ +export type passwords_managerCreateArgs = { + /** + * Select specific fields to fetch from the passwords_manager + */ + select?: Prisma.passwords_managerSelect | null + /** + * Omit specific fields from the passwords_manager + */ + omit?: Prisma.passwords_managerOmit | null + /** + * The data needed to create a passwords_manager. + */ + data: Prisma.XOR +} + +/** + * passwords_manager createMany + */ +export type passwords_managerCreateManyArgs = { + /** + * The data used to create many passwords_managers. + */ + data: Prisma.passwords_managerCreateManyInput | Prisma.passwords_managerCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * passwords_manager update + */ +export type passwords_managerUpdateArgs = { + /** + * Select specific fields to fetch from the passwords_manager + */ + select?: Prisma.passwords_managerSelect | null + /** + * Omit specific fields from the passwords_manager + */ + omit?: Prisma.passwords_managerOmit | null + /** + * The data needed to update a passwords_manager. + */ + data: Prisma.XOR + /** + * Choose, which passwords_manager to update. + */ + where: Prisma.passwords_managerWhereUniqueInput +} + +/** + * passwords_manager updateMany + */ +export type passwords_managerUpdateManyArgs = { + /** + * The data used to update passwords_managers. + */ + data: Prisma.XOR + /** + * Filter which passwords_managers to update + */ + where?: Prisma.passwords_managerWhereInput + /** + * Limit how many passwords_managers to update. + */ + limit?: number +} + +/** + * passwords_manager upsert + */ +export type passwords_managerUpsertArgs = { + /** + * Select specific fields to fetch from the passwords_manager + */ + select?: Prisma.passwords_managerSelect | null + /** + * Omit specific fields from the passwords_manager + */ + omit?: Prisma.passwords_managerOmit | null + /** + * The filter to search for the passwords_manager to update in case it exists. + */ + where: Prisma.passwords_managerWhereUniqueInput + /** + * In case the passwords_manager found by the `where` argument doesn't exist, create a new passwords_manager with this data. + */ + create: Prisma.XOR + /** + * In case the passwords_manager was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * passwords_manager delete + */ +export type passwords_managerDeleteArgs = { + /** + * Select specific fields to fetch from the passwords_manager + */ + select?: Prisma.passwords_managerSelect | null + /** + * Omit specific fields from the passwords_manager + */ + omit?: Prisma.passwords_managerOmit | null + /** + * Filter which passwords_manager to delete. + */ + where: Prisma.passwords_managerWhereUniqueInput +} + +/** + * passwords_manager deleteMany + */ +export type passwords_managerDeleteManyArgs = { + /** + * Filter which passwords_managers to delete + */ + where?: Prisma.passwords_managerWhereInput + /** + * Limit how many passwords_managers to delete. + */ + limit?: number +} + +/** + * passwords_manager without action + */ +export type passwords_managerDefaultArgs = { + /** + * Select specific fields to fetch from the passwords_manager + */ + select?: Prisma.passwords_managerSelect | null + /** + * Omit specific fields from the passwords_manager + */ + omit?: Prisma.passwords_managerOmit | null +} diff --git a/prisma/generated/mariadb/models/passwords_manager_cat.ts b/prisma/generated/mariadb/models/passwords_manager_cat.ts new file mode 100644 index 0000000..dbf3c8e --- /dev/null +++ b/prisma/generated/mariadb/models/passwords_manager_cat.ts @@ -0,0 +1,1027 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `passwords_manager_cat` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model passwords_manager_cat + * + */ +export type passwords_manager_catModel = runtime.Types.Result.DefaultSelection + +export type AggregatePasswords_manager_cat = { + _count: Passwords_manager_catCountAggregateOutputType | null + _avg: Passwords_manager_catAvgAggregateOutputType | null + _sum: Passwords_manager_catSumAggregateOutputType | null + _min: Passwords_manager_catMinAggregateOutputType | null + _max: Passwords_manager_catMaxAggregateOutputType | null +} + +export type Passwords_manager_catAvgAggregateOutputType = { + id: number | null +} + +export type Passwords_manager_catSumAggregateOutputType = { + id: number | null +} + +export type Passwords_manager_catMinAggregateOutputType = { + id: number | null + title: string | null + desc: string | null +} + +export type Passwords_manager_catMaxAggregateOutputType = { + id: number | null + title: string | null + desc: string | null +} + +export type Passwords_manager_catCountAggregateOutputType = { + id: number + title: number + desc: number + _all: number +} + + +export type Passwords_manager_catAvgAggregateInputType = { + id?: true +} + +export type Passwords_manager_catSumAggregateInputType = { + id?: true +} + +export type Passwords_manager_catMinAggregateInputType = { + id?: true + title?: true + desc?: true +} + +export type Passwords_manager_catMaxAggregateInputType = { + id?: true + title?: true + desc?: true +} + +export type Passwords_manager_catCountAggregateInputType = { + id?: true + title?: true + desc?: true + _all?: true +} + +export type Passwords_manager_catAggregateArgs = { + /** + * Filter which passwords_manager_cat to aggregate. + */ + where?: Prisma.passwords_manager_catWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of passwords_manager_cats to fetch. + */ + orderBy?: Prisma.passwords_manager_catOrderByWithRelationInput | Prisma.passwords_manager_catOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.passwords_manager_catWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` passwords_manager_cats 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` passwords_manager_cats. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned passwords_manager_cats + **/ + _count?: true | Passwords_manager_catCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Passwords_manager_catAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Passwords_manager_catSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Passwords_manager_catMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Passwords_manager_catMaxAggregateInputType +} + +export type GetPasswords_manager_catAggregateType = { + [P in keyof T & keyof AggregatePasswords_manager_cat]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type passwords_manager_catGroupByArgs = { + where?: Prisma.passwords_manager_catWhereInput + orderBy?: Prisma.passwords_manager_catOrderByWithAggregationInput | Prisma.passwords_manager_catOrderByWithAggregationInput[] + by: Prisma.Passwords_manager_catScalarFieldEnum[] | Prisma.Passwords_manager_catScalarFieldEnum + having?: Prisma.passwords_manager_catScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Passwords_manager_catCountAggregateInputType | true + _avg?: Passwords_manager_catAvgAggregateInputType + _sum?: Passwords_manager_catSumAggregateInputType + _min?: Passwords_manager_catMinAggregateInputType + _max?: Passwords_manager_catMaxAggregateInputType +} + +export type Passwords_manager_catGroupByOutputType = { + id: number + title: string + desc: string | null + _count: Passwords_manager_catCountAggregateOutputType | null + _avg: Passwords_manager_catAvgAggregateOutputType | null + _sum: Passwords_manager_catSumAggregateOutputType | null + _min: Passwords_manager_catMinAggregateOutputType | null + _max: Passwords_manager_catMaxAggregateOutputType | null +} + +type GetPasswords_manager_catGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Passwords_manager_catGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type passwords_manager_catWhereInput = { + AND?: Prisma.passwords_manager_catWhereInput | Prisma.passwords_manager_catWhereInput[] + OR?: Prisma.passwords_manager_catWhereInput[] + NOT?: Prisma.passwords_manager_catWhereInput | Prisma.passwords_manager_catWhereInput[] + id?: Prisma.IntFilter<"passwords_manager_cat"> | number + title?: Prisma.StringFilter<"passwords_manager_cat"> | string + desc?: Prisma.StringNullableFilter<"passwords_manager_cat"> | string | null +} + +export type passwords_manager_catOrderByWithRelationInput = { + id?: Prisma.SortOrder + title?: Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.passwords_manager_catOrderByRelevanceInput +} + +export type passwords_manager_catWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.passwords_manager_catWhereInput | Prisma.passwords_manager_catWhereInput[] + OR?: Prisma.passwords_manager_catWhereInput[] + NOT?: Prisma.passwords_manager_catWhereInput | Prisma.passwords_manager_catWhereInput[] + title?: Prisma.StringFilter<"passwords_manager_cat"> | string + desc?: Prisma.StringNullableFilter<"passwords_manager_cat"> | string | null +}, "id"> + +export type passwords_manager_catOrderByWithAggregationInput = { + id?: Prisma.SortOrder + title?: Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.passwords_manager_catCountOrderByAggregateInput + _avg?: Prisma.passwords_manager_catAvgOrderByAggregateInput + _max?: Prisma.passwords_manager_catMaxOrderByAggregateInput + _min?: Prisma.passwords_manager_catMinOrderByAggregateInput + _sum?: Prisma.passwords_manager_catSumOrderByAggregateInput +} + +export type passwords_manager_catScalarWhereWithAggregatesInput = { + AND?: Prisma.passwords_manager_catScalarWhereWithAggregatesInput | Prisma.passwords_manager_catScalarWhereWithAggregatesInput[] + OR?: Prisma.passwords_manager_catScalarWhereWithAggregatesInput[] + NOT?: Prisma.passwords_manager_catScalarWhereWithAggregatesInput | Prisma.passwords_manager_catScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"passwords_manager_cat"> | number + title?: Prisma.StringWithAggregatesFilter<"passwords_manager_cat"> | string + desc?: Prisma.StringNullableWithAggregatesFilter<"passwords_manager_cat"> | string | null +} + +export type passwords_manager_catCreateInput = { + title: string + desc?: string | null +} + +export type passwords_manager_catUncheckedCreateInput = { + id?: number + title: string + desc?: string | null +} + +export type passwords_manager_catUpdateInput = { + title?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type passwords_manager_catUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + title?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type passwords_manager_catCreateManyInput = { + id?: number + title: string + desc?: string | null +} + +export type passwords_manager_catUpdateManyMutationInput = { + title?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type passwords_manager_catUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + title?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type passwords_manager_catOrderByRelevanceInput = { + fields: Prisma.passwords_manager_catOrderByRelevanceFieldEnum | Prisma.passwords_manager_catOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type passwords_manager_catCountOrderByAggregateInput = { + id?: Prisma.SortOrder + title?: Prisma.SortOrder + desc?: Prisma.SortOrder +} + +export type passwords_manager_catAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type passwords_manager_catMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + title?: Prisma.SortOrder + desc?: Prisma.SortOrder +} + +export type passwords_manager_catMinOrderByAggregateInput = { + id?: Prisma.SortOrder + title?: Prisma.SortOrder + desc?: Prisma.SortOrder +} + +export type passwords_manager_catSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type passwords_manager_catSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + title?: boolean + desc?: boolean +}, ExtArgs["result"]["passwords_manager_cat"]> + + + +export type passwords_manager_catSelectScalar = { + id?: boolean + title?: boolean + desc?: boolean +} + +export type passwords_manager_catOmit = runtime.Types.Extensions.GetOmit<"id" | "title" | "desc", ExtArgs["result"]["passwords_manager_cat"]> + +export type $passwords_manager_catPayload = { + name: "passwords_manager_cat" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + title: string + desc: string | null + }, ExtArgs["result"]["passwords_manager_cat"]> + composites: {} +} + +export type passwords_manager_catGetPayload = runtime.Types.Result.GetResult + +export type passwords_manager_catCountArgs = + Omit & { + select?: Passwords_manager_catCountAggregateInputType | true + } + +export interface passwords_manager_catDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['passwords_manager_cat'], meta: { name: 'passwords_manager_cat' } } + /** + * Find zero or one Passwords_manager_cat that matches the filter. + * @param {passwords_manager_catFindUniqueArgs} args - Arguments to find a Passwords_manager_cat + * @example + * // Get one Passwords_manager_cat + * const passwords_manager_cat = await prisma.passwords_manager_cat.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_catClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Passwords_manager_cat that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {passwords_manager_catFindUniqueOrThrowArgs} args - Arguments to find a Passwords_manager_cat + * @example + * // Get one Passwords_manager_cat + * const passwords_manager_cat = await prisma.passwords_manager_cat.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_catClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Passwords_manager_cat 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 {passwords_manager_catFindFirstArgs} args - Arguments to find a Passwords_manager_cat + * @example + * // Get one Passwords_manager_cat + * const passwords_manager_cat = await prisma.passwords_manager_cat.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_catClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Passwords_manager_cat 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 {passwords_manager_catFindFirstOrThrowArgs} args - Arguments to find a Passwords_manager_cat + * @example + * // Get one Passwords_manager_cat + * const passwords_manager_cat = await prisma.passwords_manager_cat.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_catClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Passwords_manager_cats 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 {passwords_manager_catFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Passwords_manager_cats + * const passwords_manager_cats = await prisma.passwords_manager_cat.findMany() + * + * // Get first 10 Passwords_manager_cats + * const passwords_manager_cats = await prisma.passwords_manager_cat.findMany({ take: 10 }) + * + * // Only select the `id` + * const passwords_manager_catWithIdOnly = await prisma.passwords_manager_cat.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Passwords_manager_cat. + * @param {passwords_manager_catCreateArgs} args - Arguments to create a Passwords_manager_cat. + * @example + * // Create one Passwords_manager_cat + * const Passwords_manager_cat = await prisma.passwords_manager_cat.create({ + * data: { + * // ... data to create a Passwords_manager_cat + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_catClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Passwords_manager_cats. + * @param {passwords_manager_catCreateManyArgs} args - Arguments to create many Passwords_manager_cats. + * @example + * // Create many Passwords_manager_cats + * const passwords_manager_cat = await prisma.passwords_manager_cat.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Passwords_manager_cat. + * @param {passwords_manager_catDeleteArgs} args - Arguments to delete one Passwords_manager_cat. + * @example + * // Delete one Passwords_manager_cat + * const Passwords_manager_cat = await prisma.passwords_manager_cat.delete({ + * where: { + * // ... filter to delete one Passwords_manager_cat + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_catClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Passwords_manager_cat. + * @param {passwords_manager_catUpdateArgs} args - Arguments to update one Passwords_manager_cat. + * @example + * // Update one Passwords_manager_cat + * const passwords_manager_cat = await prisma.passwords_manager_cat.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_catClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Passwords_manager_cats. + * @param {passwords_manager_catDeleteManyArgs} args - Arguments to filter Passwords_manager_cats to delete. + * @example + * // Delete a few Passwords_manager_cats + * const { count } = await prisma.passwords_manager_cat.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Passwords_manager_cats. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {passwords_manager_catUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Passwords_manager_cats + * const passwords_manager_cat = await prisma.passwords_manager_cat.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Passwords_manager_cat. + * @param {passwords_manager_catUpsertArgs} args - Arguments to update or create a Passwords_manager_cat. + * @example + * // Update or create a Passwords_manager_cat + * const passwords_manager_cat = await prisma.passwords_manager_cat.upsert({ + * create: { + * // ... data to create a Passwords_manager_cat + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Passwords_manager_cat we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_catClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Passwords_manager_cats. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {passwords_manager_catCountArgs} args - Arguments to filter Passwords_manager_cats to count. + * @example + * // Count the number of Passwords_manager_cats + * const count = await prisma.passwords_manager_cat.count({ + * where: { + * // ... the filter for the Passwords_manager_cats 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 Passwords_manager_cat. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Passwords_manager_catAggregateArgs} 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 Passwords_manager_cat. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {passwords_manager_catGroupByArgs} 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 passwords_manager_catGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: passwords_manager_catGroupByArgs['orderBy'] } + : { orderBy?: passwords_manager_catGroupByArgs['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 ? GetPasswords_manager_catGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the passwords_manager_cat model + */ +readonly fields: passwords_manager_catFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for passwords_manager_cat. + * 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__passwords_manager_catClient 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 passwords_manager_cat model + */ +export interface passwords_manager_catFieldRefs { + readonly id: Prisma.FieldRef<"passwords_manager_cat", 'Int'> + readonly title: Prisma.FieldRef<"passwords_manager_cat", 'String'> + readonly desc: Prisma.FieldRef<"passwords_manager_cat", 'String'> +} + + +// Custom InputTypes +/** + * passwords_manager_cat findUnique + */ +export type passwords_manager_catFindUniqueArgs = { + /** + * Select specific fields to fetch from the passwords_manager_cat + */ + select?: Prisma.passwords_manager_catSelect | null + /** + * Omit specific fields from the passwords_manager_cat + */ + omit?: Prisma.passwords_manager_catOmit | null + /** + * Filter, which passwords_manager_cat to fetch. + */ + where: Prisma.passwords_manager_catWhereUniqueInput +} + +/** + * passwords_manager_cat findUniqueOrThrow + */ +export type passwords_manager_catFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the passwords_manager_cat + */ + select?: Prisma.passwords_manager_catSelect | null + /** + * Omit specific fields from the passwords_manager_cat + */ + omit?: Prisma.passwords_manager_catOmit | null + /** + * Filter, which passwords_manager_cat to fetch. + */ + where: Prisma.passwords_manager_catWhereUniqueInput +} + +/** + * passwords_manager_cat findFirst + */ +export type passwords_manager_catFindFirstArgs = { + /** + * Select specific fields to fetch from the passwords_manager_cat + */ + select?: Prisma.passwords_manager_catSelect | null + /** + * Omit specific fields from the passwords_manager_cat + */ + omit?: Prisma.passwords_manager_catOmit | null + /** + * Filter, which passwords_manager_cat to fetch. + */ + where?: Prisma.passwords_manager_catWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of passwords_manager_cats to fetch. + */ + orderBy?: Prisma.passwords_manager_catOrderByWithRelationInput | Prisma.passwords_manager_catOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for passwords_manager_cats. + */ + cursor?: Prisma.passwords_manager_catWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` passwords_manager_cats 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` passwords_manager_cats. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of passwords_manager_cats. + */ + distinct?: Prisma.Passwords_manager_catScalarFieldEnum | Prisma.Passwords_manager_catScalarFieldEnum[] +} + +/** + * passwords_manager_cat findFirstOrThrow + */ +export type passwords_manager_catFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the passwords_manager_cat + */ + select?: Prisma.passwords_manager_catSelect | null + /** + * Omit specific fields from the passwords_manager_cat + */ + omit?: Prisma.passwords_manager_catOmit | null + /** + * Filter, which passwords_manager_cat to fetch. + */ + where?: Prisma.passwords_manager_catWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of passwords_manager_cats to fetch. + */ + orderBy?: Prisma.passwords_manager_catOrderByWithRelationInput | Prisma.passwords_manager_catOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for passwords_manager_cats. + */ + cursor?: Prisma.passwords_manager_catWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` passwords_manager_cats 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` passwords_manager_cats. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of passwords_manager_cats. + */ + distinct?: Prisma.Passwords_manager_catScalarFieldEnum | Prisma.Passwords_manager_catScalarFieldEnum[] +} + +/** + * passwords_manager_cat findMany + */ +export type passwords_manager_catFindManyArgs = { + /** + * Select specific fields to fetch from the passwords_manager_cat + */ + select?: Prisma.passwords_manager_catSelect | null + /** + * Omit specific fields from the passwords_manager_cat + */ + omit?: Prisma.passwords_manager_catOmit | null + /** + * Filter, which passwords_manager_cats to fetch. + */ + where?: Prisma.passwords_manager_catWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of passwords_manager_cats to fetch. + */ + orderBy?: Prisma.passwords_manager_catOrderByWithRelationInput | Prisma.passwords_manager_catOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing passwords_manager_cats. + */ + cursor?: Prisma.passwords_manager_catWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` passwords_manager_cats 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` passwords_manager_cats. + */ + skip?: number + distinct?: Prisma.Passwords_manager_catScalarFieldEnum | Prisma.Passwords_manager_catScalarFieldEnum[] +} + +/** + * passwords_manager_cat create + */ +export type passwords_manager_catCreateArgs = { + /** + * Select specific fields to fetch from the passwords_manager_cat + */ + select?: Prisma.passwords_manager_catSelect | null + /** + * Omit specific fields from the passwords_manager_cat + */ + omit?: Prisma.passwords_manager_catOmit | null + /** + * The data needed to create a passwords_manager_cat. + */ + data: Prisma.XOR +} + +/** + * passwords_manager_cat createMany + */ +export type passwords_manager_catCreateManyArgs = { + /** + * The data used to create many passwords_manager_cats. + */ + data: Prisma.passwords_manager_catCreateManyInput | Prisma.passwords_manager_catCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * passwords_manager_cat update + */ +export type passwords_manager_catUpdateArgs = { + /** + * Select specific fields to fetch from the passwords_manager_cat + */ + select?: Prisma.passwords_manager_catSelect | null + /** + * Omit specific fields from the passwords_manager_cat + */ + omit?: Prisma.passwords_manager_catOmit | null + /** + * The data needed to update a passwords_manager_cat. + */ + data: Prisma.XOR + /** + * Choose, which passwords_manager_cat to update. + */ + where: Prisma.passwords_manager_catWhereUniqueInput +} + +/** + * passwords_manager_cat updateMany + */ +export type passwords_manager_catUpdateManyArgs = { + /** + * The data used to update passwords_manager_cats. + */ + data: Prisma.XOR + /** + * Filter which passwords_manager_cats to update + */ + where?: Prisma.passwords_manager_catWhereInput + /** + * Limit how many passwords_manager_cats to update. + */ + limit?: number +} + +/** + * passwords_manager_cat upsert + */ +export type passwords_manager_catUpsertArgs = { + /** + * Select specific fields to fetch from the passwords_manager_cat + */ + select?: Prisma.passwords_manager_catSelect | null + /** + * Omit specific fields from the passwords_manager_cat + */ + omit?: Prisma.passwords_manager_catOmit | null + /** + * The filter to search for the passwords_manager_cat to update in case it exists. + */ + where: Prisma.passwords_manager_catWhereUniqueInput + /** + * In case the passwords_manager_cat found by the `where` argument doesn't exist, create a new passwords_manager_cat with this data. + */ + create: Prisma.XOR + /** + * In case the passwords_manager_cat was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * passwords_manager_cat delete + */ +export type passwords_manager_catDeleteArgs = { + /** + * Select specific fields to fetch from the passwords_manager_cat + */ + select?: Prisma.passwords_manager_catSelect | null + /** + * Omit specific fields from the passwords_manager_cat + */ + omit?: Prisma.passwords_manager_catOmit | null + /** + * Filter which passwords_manager_cat to delete. + */ + where: Prisma.passwords_manager_catWhereUniqueInput +} + +/** + * passwords_manager_cat deleteMany + */ +export type passwords_manager_catDeleteManyArgs = { + /** + * Filter which passwords_manager_cats to delete + */ + where?: Prisma.passwords_manager_catWhereInput + /** + * Limit how many passwords_manager_cats to delete. + */ + limit?: number +} + +/** + * passwords_manager_cat without action + */ +export type passwords_manager_catDefaultArgs = { + /** + * Select specific fields to fetch from the passwords_manager_cat + */ + select?: Prisma.passwords_manager_catSelect | null + /** + * Omit specific fields from the passwords_manager_cat + */ + omit?: Prisma.passwords_manager_catOmit | null +} diff --git a/prisma/generated/mariadb/models/passwords_manager_group.ts b/prisma/generated/mariadb/models/passwords_manager_group.ts new file mode 100644 index 0000000..bfc536f --- /dev/null +++ b/prisma/generated/mariadb/models/passwords_manager_group.ts @@ -0,0 +1,1027 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `passwords_manager_group` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model passwords_manager_group + * + */ +export type passwords_manager_groupModel = runtime.Types.Result.DefaultSelection + +export type AggregatePasswords_manager_group = { + _count: Passwords_manager_groupCountAggregateOutputType | null + _avg: Passwords_manager_groupAvgAggregateOutputType | null + _sum: Passwords_manager_groupSumAggregateOutputType | null + _min: Passwords_manager_groupMinAggregateOutputType | null + _max: Passwords_manager_groupMaxAggregateOutputType | null +} + +export type Passwords_manager_groupAvgAggregateOutputType = { + id: number | null +} + +export type Passwords_manager_groupSumAggregateOutputType = { + id: number | null +} + +export type Passwords_manager_groupMinAggregateOutputType = { + id: number | null + name: string | null + users: string | null +} + +export type Passwords_manager_groupMaxAggregateOutputType = { + id: number | null + name: string | null + users: string | null +} + +export type Passwords_manager_groupCountAggregateOutputType = { + id: number + name: number + users: number + _all: number +} + + +export type Passwords_manager_groupAvgAggregateInputType = { + id?: true +} + +export type Passwords_manager_groupSumAggregateInputType = { + id?: true +} + +export type Passwords_manager_groupMinAggregateInputType = { + id?: true + name?: true + users?: true +} + +export type Passwords_manager_groupMaxAggregateInputType = { + id?: true + name?: true + users?: true +} + +export type Passwords_manager_groupCountAggregateInputType = { + id?: true + name?: true + users?: true + _all?: true +} + +export type Passwords_manager_groupAggregateArgs = { + /** + * Filter which passwords_manager_group to aggregate. + */ + where?: Prisma.passwords_manager_groupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of passwords_manager_groups to fetch. + */ + orderBy?: Prisma.passwords_manager_groupOrderByWithRelationInput | Prisma.passwords_manager_groupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.passwords_manager_groupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` passwords_manager_groups 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` passwords_manager_groups. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned passwords_manager_groups + **/ + _count?: true | Passwords_manager_groupCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Passwords_manager_groupAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Passwords_manager_groupSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Passwords_manager_groupMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Passwords_manager_groupMaxAggregateInputType +} + +export type GetPasswords_manager_groupAggregateType = { + [P in keyof T & keyof AggregatePasswords_manager_group]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type passwords_manager_groupGroupByArgs = { + where?: Prisma.passwords_manager_groupWhereInput + orderBy?: Prisma.passwords_manager_groupOrderByWithAggregationInput | Prisma.passwords_manager_groupOrderByWithAggregationInput[] + by: Prisma.Passwords_manager_groupScalarFieldEnum[] | Prisma.Passwords_manager_groupScalarFieldEnum + having?: Prisma.passwords_manager_groupScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Passwords_manager_groupCountAggregateInputType | true + _avg?: Passwords_manager_groupAvgAggregateInputType + _sum?: Passwords_manager_groupSumAggregateInputType + _min?: Passwords_manager_groupMinAggregateInputType + _max?: Passwords_manager_groupMaxAggregateInputType +} + +export type Passwords_manager_groupGroupByOutputType = { + id: number + name: string + users: string | null + _count: Passwords_manager_groupCountAggregateOutputType | null + _avg: Passwords_manager_groupAvgAggregateOutputType | null + _sum: Passwords_manager_groupSumAggregateOutputType | null + _min: Passwords_manager_groupMinAggregateOutputType | null + _max: Passwords_manager_groupMaxAggregateOutputType | null +} + +type GetPasswords_manager_groupGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Passwords_manager_groupGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type passwords_manager_groupWhereInput = { + AND?: Prisma.passwords_manager_groupWhereInput | Prisma.passwords_manager_groupWhereInput[] + OR?: Prisma.passwords_manager_groupWhereInput[] + NOT?: Prisma.passwords_manager_groupWhereInput | Prisma.passwords_manager_groupWhereInput[] + id?: Prisma.IntFilter<"passwords_manager_group"> | number + name?: Prisma.StringFilter<"passwords_manager_group"> | string + users?: Prisma.StringNullableFilter<"passwords_manager_group"> | string | null +} + +export type passwords_manager_groupOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + users?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.passwords_manager_groupOrderByRelevanceInput +} + +export type passwords_manager_groupWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.passwords_manager_groupWhereInput | Prisma.passwords_manager_groupWhereInput[] + OR?: Prisma.passwords_manager_groupWhereInput[] + NOT?: Prisma.passwords_manager_groupWhereInput | Prisma.passwords_manager_groupWhereInput[] + name?: Prisma.StringFilter<"passwords_manager_group"> | string + users?: Prisma.StringNullableFilter<"passwords_manager_group"> | string | null +}, "id"> + +export type passwords_manager_groupOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + users?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.passwords_manager_groupCountOrderByAggregateInput + _avg?: Prisma.passwords_manager_groupAvgOrderByAggregateInput + _max?: Prisma.passwords_manager_groupMaxOrderByAggregateInput + _min?: Prisma.passwords_manager_groupMinOrderByAggregateInput + _sum?: Prisma.passwords_manager_groupSumOrderByAggregateInput +} + +export type passwords_manager_groupScalarWhereWithAggregatesInput = { + AND?: Prisma.passwords_manager_groupScalarWhereWithAggregatesInput | Prisma.passwords_manager_groupScalarWhereWithAggregatesInput[] + OR?: Prisma.passwords_manager_groupScalarWhereWithAggregatesInput[] + NOT?: Prisma.passwords_manager_groupScalarWhereWithAggregatesInput | Prisma.passwords_manager_groupScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"passwords_manager_group"> | number + name?: Prisma.StringWithAggregatesFilter<"passwords_manager_group"> | string + users?: Prisma.StringNullableWithAggregatesFilter<"passwords_manager_group"> | string | null +} + +export type passwords_manager_groupCreateInput = { + name: string + users?: string | null +} + +export type passwords_manager_groupUncheckedCreateInput = { + id?: number + name: string + users?: string | null +} + +export type passwords_manager_groupUpdateInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + users?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type passwords_manager_groupUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + users?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type passwords_manager_groupCreateManyInput = { + id?: number + name: string + users?: string | null +} + +export type passwords_manager_groupUpdateManyMutationInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + users?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type passwords_manager_groupUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + users?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type passwords_manager_groupOrderByRelevanceInput = { + fields: Prisma.passwords_manager_groupOrderByRelevanceFieldEnum | Prisma.passwords_manager_groupOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type passwords_manager_groupCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + users?: Prisma.SortOrder +} + +export type passwords_manager_groupAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type passwords_manager_groupMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + users?: Prisma.SortOrder +} + +export type passwords_manager_groupMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + users?: Prisma.SortOrder +} + +export type passwords_manager_groupSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type passwords_manager_groupSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + users?: boolean +}, ExtArgs["result"]["passwords_manager_group"]> + + + +export type passwords_manager_groupSelectScalar = { + id?: boolean + name?: boolean + users?: boolean +} + +export type passwords_manager_groupOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "users", ExtArgs["result"]["passwords_manager_group"]> + +export type $passwords_manager_groupPayload = { + name: "passwords_manager_group" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name: string + users: string | null + }, ExtArgs["result"]["passwords_manager_group"]> + composites: {} +} + +export type passwords_manager_groupGetPayload = runtime.Types.Result.GetResult + +export type passwords_manager_groupCountArgs = + Omit & { + select?: Passwords_manager_groupCountAggregateInputType | true + } + +export interface passwords_manager_groupDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['passwords_manager_group'], meta: { name: 'passwords_manager_group' } } + /** + * Find zero or one Passwords_manager_group that matches the filter. + * @param {passwords_manager_groupFindUniqueArgs} args - Arguments to find a Passwords_manager_group + * @example + * // Get one Passwords_manager_group + * const passwords_manager_group = await prisma.passwords_manager_group.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_groupClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Passwords_manager_group that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {passwords_manager_groupFindUniqueOrThrowArgs} args - Arguments to find a Passwords_manager_group + * @example + * // Get one Passwords_manager_group + * const passwords_manager_group = await prisma.passwords_manager_group.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_groupClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Passwords_manager_group 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 {passwords_manager_groupFindFirstArgs} args - Arguments to find a Passwords_manager_group + * @example + * // Get one Passwords_manager_group + * const passwords_manager_group = await prisma.passwords_manager_group.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_groupClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Passwords_manager_group 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 {passwords_manager_groupFindFirstOrThrowArgs} args - Arguments to find a Passwords_manager_group + * @example + * // Get one Passwords_manager_group + * const passwords_manager_group = await prisma.passwords_manager_group.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_groupClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Passwords_manager_groups 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 {passwords_manager_groupFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Passwords_manager_groups + * const passwords_manager_groups = await prisma.passwords_manager_group.findMany() + * + * // Get first 10 Passwords_manager_groups + * const passwords_manager_groups = await prisma.passwords_manager_group.findMany({ take: 10 }) + * + * // Only select the `id` + * const passwords_manager_groupWithIdOnly = await prisma.passwords_manager_group.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Passwords_manager_group. + * @param {passwords_manager_groupCreateArgs} args - Arguments to create a Passwords_manager_group. + * @example + * // Create one Passwords_manager_group + * const Passwords_manager_group = await prisma.passwords_manager_group.create({ + * data: { + * // ... data to create a Passwords_manager_group + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_groupClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Passwords_manager_groups. + * @param {passwords_manager_groupCreateManyArgs} args - Arguments to create many Passwords_manager_groups. + * @example + * // Create many Passwords_manager_groups + * const passwords_manager_group = await prisma.passwords_manager_group.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Passwords_manager_group. + * @param {passwords_manager_groupDeleteArgs} args - Arguments to delete one Passwords_manager_group. + * @example + * // Delete one Passwords_manager_group + * const Passwords_manager_group = await prisma.passwords_manager_group.delete({ + * where: { + * // ... filter to delete one Passwords_manager_group + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_groupClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Passwords_manager_group. + * @param {passwords_manager_groupUpdateArgs} args - Arguments to update one Passwords_manager_group. + * @example + * // Update one Passwords_manager_group + * const passwords_manager_group = await prisma.passwords_manager_group.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_groupClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Passwords_manager_groups. + * @param {passwords_manager_groupDeleteManyArgs} args - Arguments to filter Passwords_manager_groups to delete. + * @example + * // Delete a few Passwords_manager_groups + * const { count } = await prisma.passwords_manager_group.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Passwords_manager_groups. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {passwords_manager_groupUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Passwords_manager_groups + * const passwords_manager_group = await prisma.passwords_manager_group.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Passwords_manager_group. + * @param {passwords_manager_groupUpsertArgs} args - Arguments to update or create a Passwords_manager_group. + * @example + * // Update or create a Passwords_manager_group + * const passwords_manager_group = await prisma.passwords_manager_group.upsert({ + * create: { + * // ... data to create a Passwords_manager_group + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Passwords_manager_group we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__passwords_manager_groupClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Passwords_manager_groups. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {passwords_manager_groupCountArgs} args - Arguments to filter Passwords_manager_groups to count. + * @example + * // Count the number of Passwords_manager_groups + * const count = await prisma.passwords_manager_group.count({ + * where: { + * // ... the filter for the Passwords_manager_groups 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 Passwords_manager_group. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Passwords_manager_groupAggregateArgs} 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 Passwords_manager_group. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {passwords_manager_groupGroupByArgs} 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 passwords_manager_groupGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: passwords_manager_groupGroupByArgs['orderBy'] } + : { orderBy?: passwords_manager_groupGroupByArgs['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 ? GetPasswords_manager_groupGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the passwords_manager_group model + */ +readonly fields: passwords_manager_groupFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for passwords_manager_group. + * 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__passwords_manager_groupClient 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 passwords_manager_group model + */ +export interface passwords_manager_groupFieldRefs { + readonly id: Prisma.FieldRef<"passwords_manager_group", 'Int'> + readonly name: Prisma.FieldRef<"passwords_manager_group", 'String'> + readonly users: Prisma.FieldRef<"passwords_manager_group", 'String'> +} + + +// Custom InputTypes +/** + * passwords_manager_group findUnique + */ +export type passwords_manager_groupFindUniqueArgs = { + /** + * Select specific fields to fetch from the passwords_manager_group + */ + select?: Prisma.passwords_manager_groupSelect | null + /** + * Omit specific fields from the passwords_manager_group + */ + omit?: Prisma.passwords_manager_groupOmit | null + /** + * Filter, which passwords_manager_group to fetch. + */ + where: Prisma.passwords_manager_groupWhereUniqueInput +} + +/** + * passwords_manager_group findUniqueOrThrow + */ +export type passwords_manager_groupFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the passwords_manager_group + */ + select?: Prisma.passwords_manager_groupSelect | null + /** + * Omit specific fields from the passwords_manager_group + */ + omit?: Prisma.passwords_manager_groupOmit | null + /** + * Filter, which passwords_manager_group to fetch. + */ + where: Prisma.passwords_manager_groupWhereUniqueInput +} + +/** + * passwords_manager_group findFirst + */ +export type passwords_manager_groupFindFirstArgs = { + /** + * Select specific fields to fetch from the passwords_manager_group + */ + select?: Prisma.passwords_manager_groupSelect | null + /** + * Omit specific fields from the passwords_manager_group + */ + omit?: Prisma.passwords_manager_groupOmit | null + /** + * Filter, which passwords_manager_group to fetch. + */ + where?: Prisma.passwords_manager_groupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of passwords_manager_groups to fetch. + */ + orderBy?: Prisma.passwords_manager_groupOrderByWithRelationInput | Prisma.passwords_manager_groupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for passwords_manager_groups. + */ + cursor?: Prisma.passwords_manager_groupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` passwords_manager_groups 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` passwords_manager_groups. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of passwords_manager_groups. + */ + distinct?: Prisma.Passwords_manager_groupScalarFieldEnum | Prisma.Passwords_manager_groupScalarFieldEnum[] +} + +/** + * passwords_manager_group findFirstOrThrow + */ +export type passwords_manager_groupFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the passwords_manager_group + */ + select?: Prisma.passwords_manager_groupSelect | null + /** + * Omit specific fields from the passwords_manager_group + */ + omit?: Prisma.passwords_manager_groupOmit | null + /** + * Filter, which passwords_manager_group to fetch. + */ + where?: Prisma.passwords_manager_groupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of passwords_manager_groups to fetch. + */ + orderBy?: Prisma.passwords_manager_groupOrderByWithRelationInput | Prisma.passwords_manager_groupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for passwords_manager_groups. + */ + cursor?: Prisma.passwords_manager_groupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` passwords_manager_groups 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` passwords_manager_groups. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of passwords_manager_groups. + */ + distinct?: Prisma.Passwords_manager_groupScalarFieldEnum | Prisma.Passwords_manager_groupScalarFieldEnum[] +} + +/** + * passwords_manager_group findMany + */ +export type passwords_manager_groupFindManyArgs = { + /** + * Select specific fields to fetch from the passwords_manager_group + */ + select?: Prisma.passwords_manager_groupSelect | null + /** + * Omit specific fields from the passwords_manager_group + */ + omit?: Prisma.passwords_manager_groupOmit | null + /** + * Filter, which passwords_manager_groups to fetch. + */ + where?: Prisma.passwords_manager_groupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of passwords_manager_groups to fetch. + */ + orderBy?: Prisma.passwords_manager_groupOrderByWithRelationInput | Prisma.passwords_manager_groupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing passwords_manager_groups. + */ + cursor?: Prisma.passwords_manager_groupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` passwords_manager_groups 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` passwords_manager_groups. + */ + skip?: number + distinct?: Prisma.Passwords_manager_groupScalarFieldEnum | Prisma.Passwords_manager_groupScalarFieldEnum[] +} + +/** + * passwords_manager_group create + */ +export type passwords_manager_groupCreateArgs = { + /** + * Select specific fields to fetch from the passwords_manager_group + */ + select?: Prisma.passwords_manager_groupSelect | null + /** + * Omit specific fields from the passwords_manager_group + */ + omit?: Prisma.passwords_manager_groupOmit | null + /** + * The data needed to create a passwords_manager_group. + */ + data: Prisma.XOR +} + +/** + * passwords_manager_group createMany + */ +export type passwords_manager_groupCreateManyArgs = { + /** + * The data used to create many passwords_manager_groups. + */ + data: Prisma.passwords_manager_groupCreateManyInput | Prisma.passwords_manager_groupCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * passwords_manager_group update + */ +export type passwords_manager_groupUpdateArgs = { + /** + * Select specific fields to fetch from the passwords_manager_group + */ + select?: Prisma.passwords_manager_groupSelect | null + /** + * Omit specific fields from the passwords_manager_group + */ + omit?: Prisma.passwords_manager_groupOmit | null + /** + * The data needed to update a passwords_manager_group. + */ + data: Prisma.XOR + /** + * Choose, which passwords_manager_group to update. + */ + where: Prisma.passwords_manager_groupWhereUniqueInput +} + +/** + * passwords_manager_group updateMany + */ +export type passwords_manager_groupUpdateManyArgs = { + /** + * The data used to update passwords_manager_groups. + */ + data: Prisma.XOR + /** + * Filter which passwords_manager_groups to update + */ + where?: Prisma.passwords_manager_groupWhereInput + /** + * Limit how many passwords_manager_groups to update. + */ + limit?: number +} + +/** + * passwords_manager_group upsert + */ +export type passwords_manager_groupUpsertArgs = { + /** + * Select specific fields to fetch from the passwords_manager_group + */ + select?: Prisma.passwords_manager_groupSelect | null + /** + * Omit specific fields from the passwords_manager_group + */ + omit?: Prisma.passwords_manager_groupOmit | null + /** + * The filter to search for the passwords_manager_group to update in case it exists. + */ + where: Prisma.passwords_manager_groupWhereUniqueInput + /** + * In case the passwords_manager_group found by the `where` argument doesn't exist, create a new passwords_manager_group with this data. + */ + create: Prisma.XOR + /** + * In case the passwords_manager_group was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * passwords_manager_group delete + */ +export type passwords_manager_groupDeleteArgs = { + /** + * Select specific fields to fetch from the passwords_manager_group + */ + select?: Prisma.passwords_manager_groupSelect | null + /** + * Omit specific fields from the passwords_manager_group + */ + omit?: Prisma.passwords_manager_groupOmit | null + /** + * Filter which passwords_manager_group to delete. + */ + where: Prisma.passwords_manager_groupWhereUniqueInput +} + +/** + * passwords_manager_group deleteMany + */ +export type passwords_manager_groupDeleteManyArgs = { + /** + * Filter which passwords_manager_groups to delete + */ + where?: Prisma.passwords_manager_groupWhereInput + /** + * Limit how many passwords_manager_groups to delete. + */ + limit?: number +} + +/** + * passwords_manager_group without action + */ +export type passwords_manager_groupDefaultArgs = { + /** + * Select specific fields to fetch from the passwords_manager_group + */ + select?: Prisma.passwords_manager_groupSelect | null + /** + * Omit specific fields from the passwords_manager_group + */ + omit?: Prisma.passwords_manager_groupOmit | null +} diff --git a/prisma/generated/mariadb/models/payment.ts b/prisma/generated/mariadb/models/payment.ts new file mode 100644 index 0000000..98218b0 --- /dev/null +++ b/prisma/generated/mariadb/models/payment.ts @@ -0,0 +1,1306 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `payment` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model payment + * + */ +export type paymentModel = runtime.Types.Result.DefaultSelection + +export type AggregatePayment = { + _count: PaymentCountAggregateOutputType | null + _avg: PaymentAvgAggregateOutputType | null + _sum: PaymentSumAggregateOutputType | null + _min: PaymentMinAggregateOutputType | null + _max: PaymentMaxAggregateOutputType | null +} + +export type PaymentAvgAggregateOutputType = { + id: number | null + account_id: number | null + date_orig: number | null + amount: number | null + applied_amt: number | null + excedent: number | null + correction: number | null + cr: number | null +} + +export type PaymentSumAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date_orig: bigint | null + amount: number | null + applied_amt: number | null + excedent: number | null + correction: number | null + cr: number | null +} + +export type PaymentMinAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date_orig: bigint | null + amount: number | null + applied_amt: number | null + type: string | null + memo: string | null + reference: string | null + excedent: number | null + correction: number | null + cr: number | null + uniqsess: string | null +} + +export type PaymentMaxAggregateOutputType = { + id: bigint | null + account_id: bigint | null + date_orig: bigint | null + amount: number | null + applied_amt: number | null + type: string | null + memo: string | null + reference: string | null + excedent: number | null + correction: number | null + cr: number | null + uniqsess: string | null +} + +export type PaymentCountAggregateOutputType = { + id: number + account_id: number + date_orig: number + amount: number + applied_amt: number + type: number + memo: number + reference: number + excedent: number + correction: number + cr: number + uniqsess: number + _all: number +} + + +export type PaymentAvgAggregateInputType = { + id?: true + account_id?: true + date_orig?: true + amount?: true + applied_amt?: true + excedent?: true + correction?: true + cr?: true +} + +export type PaymentSumAggregateInputType = { + id?: true + account_id?: true + date_orig?: true + amount?: true + applied_amt?: true + excedent?: true + correction?: true + cr?: true +} + +export type PaymentMinAggregateInputType = { + id?: true + account_id?: true + date_orig?: true + amount?: true + applied_amt?: true + type?: true + memo?: true + reference?: true + excedent?: true + correction?: true + cr?: true + uniqsess?: true +} + +export type PaymentMaxAggregateInputType = { + id?: true + account_id?: true + date_orig?: true + amount?: true + applied_amt?: true + type?: true + memo?: true + reference?: true + excedent?: true + correction?: true + cr?: true + uniqsess?: true +} + +export type PaymentCountAggregateInputType = { + id?: true + account_id?: true + date_orig?: true + amount?: true + applied_amt?: true + type?: true + memo?: true + reference?: true + excedent?: true + correction?: true + cr?: true + uniqsess?: true + _all?: true +} + +export type PaymentAggregateArgs = { + /** + * Filter which payment to aggregate. + */ + where?: Prisma.paymentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of payments to fetch. + */ + orderBy?: Prisma.paymentOrderByWithRelationInput | Prisma.paymentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.paymentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` payments 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` payments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned payments + **/ + _count?: true | PaymentCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: PaymentAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: PaymentSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: PaymentMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: PaymentMaxAggregateInputType +} + +export type GetPaymentAggregateType = { + [P in keyof T & keyof AggregatePayment]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type paymentGroupByArgs = { + where?: Prisma.paymentWhereInput + orderBy?: Prisma.paymentOrderByWithAggregationInput | Prisma.paymentOrderByWithAggregationInput[] + by: Prisma.PaymentScalarFieldEnum[] | Prisma.PaymentScalarFieldEnum + having?: Prisma.paymentScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: PaymentCountAggregateInputType | true + _avg?: PaymentAvgAggregateInputType + _sum?: PaymentSumAggregateInputType + _min?: PaymentMinAggregateInputType + _max?: PaymentMaxAggregateInputType +} + +export type PaymentGroupByOutputType = { + id: bigint + account_id: bigint | null + date_orig: bigint | null + amount: number | null + applied_amt: number | null + type: string | null + memo: string | null + reference: string | null + excedent: number + correction: number + cr: number + uniqsess: string | null + _count: PaymentCountAggregateOutputType | null + _avg: PaymentAvgAggregateOutputType | null + _sum: PaymentSumAggregateOutputType | null + _min: PaymentMinAggregateOutputType | null + _max: PaymentMaxAggregateOutputType | null +} + +type GetPaymentGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof PaymentGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type paymentWhereInput = { + AND?: Prisma.paymentWhereInput | Prisma.paymentWhereInput[] + OR?: Prisma.paymentWhereInput[] + NOT?: Prisma.paymentWhereInput | Prisma.paymentWhereInput[] + id?: Prisma.BigIntFilter<"payment"> | bigint | number + account_id?: Prisma.BigIntNullableFilter<"payment"> | bigint | number | null + date_orig?: Prisma.BigIntNullableFilter<"payment"> | bigint | number | null + amount?: Prisma.FloatNullableFilter<"payment"> | number | null + applied_amt?: Prisma.FloatNullableFilter<"payment"> | number | null + type?: Prisma.StringNullableFilter<"payment"> | string | null + memo?: Prisma.StringNullableFilter<"payment"> | string | null + reference?: Prisma.StringNullableFilter<"payment"> | string | null + excedent?: Prisma.IntFilter<"payment"> | number + correction?: Prisma.IntFilter<"payment"> | number + cr?: Prisma.IntFilter<"payment"> | number + uniqsess?: Prisma.StringNullableFilter<"payment"> | string | null +} + +export type paymentOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + applied_amt?: Prisma.SortOrderInput | Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + memo?: Prisma.SortOrderInput | Prisma.SortOrder + reference?: Prisma.SortOrderInput | Prisma.SortOrder + excedent?: Prisma.SortOrder + correction?: Prisma.SortOrder + cr?: Prisma.SortOrder + uniqsess?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.paymentOrderByRelevanceInput +} + +export type paymentWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.paymentWhereInput | Prisma.paymentWhereInput[] + OR?: Prisma.paymentWhereInput[] + NOT?: Prisma.paymentWhereInput | Prisma.paymentWhereInput[] + account_id?: Prisma.BigIntNullableFilter<"payment"> | bigint | number | null + date_orig?: Prisma.BigIntNullableFilter<"payment"> | bigint | number | null + amount?: Prisma.FloatNullableFilter<"payment"> | number | null + applied_amt?: Prisma.FloatNullableFilter<"payment"> | number | null + type?: Prisma.StringNullableFilter<"payment"> | string | null + memo?: Prisma.StringNullableFilter<"payment"> | string | null + reference?: Prisma.StringNullableFilter<"payment"> | string | null + excedent?: Prisma.IntFilter<"payment"> | number + correction?: Prisma.IntFilter<"payment"> | number + cr?: Prisma.IntFilter<"payment"> | number + uniqsess?: Prisma.StringNullableFilter<"payment"> | string | null +}, "id"> + +export type paymentOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + applied_amt?: Prisma.SortOrderInput | Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + memo?: Prisma.SortOrderInput | Prisma.SortOrder + reference?: Prisma.SortOrderInput | Prisma.SortOrder + excedent?: Prisma.SortOrder + correction?: Prisma.SortOrder + cr?: Prisma.SortOrder + uniqsess?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.paymentCountOrderByAggregateInput + _avg?: Prisma.paymentAvgOrderByAggregateInput + _max?: Prisma.paymentMaxOrderByAggregateInput + _min?: Prisma.paymentMinOrderByAggregateInput + _sum?: Prisma.paymentSumOrderByAggregateInput +} + +export type paymentScalarWhereWithAggregatesInput = { + AND?: Prisma.paymentScalarWhereWithAggregatesInput | Prisma.paymentScalarWhereWithAggregatesInput[] + OR?: Prisma.paymentScalarWhereWithAggregatesInput[] + NOT?: Prisma.paymentScalarWhereWithAggregatesInput | Prisma.paymentScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"payment"> | bigint | number + account_id?: Prisma.BigIntNullableWithAggregatesFilter<"payment"> | bigint | number | null + date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"payment"> | bigint | number | null + amount?: Prisma.FloatNullableWithAggregatesFilter<"payment"> | number | null + applied_amt?: Prisma.FloatNullableWithAggregatesFilter<"payment"> | number | null + type?: Prisma.StringNullableWithAggregatesFilter<"payment"> | string | null + memo?: Prisma.StringNullableWithAggregatesFilter<"payment"> | string | null + reference?: Prisma.StringNullableWithAggregatesFilter<"payment"> | string | null + excedent?: Prisma.IntWithAggregatesFilter<"payment"> | number + correction?: Prisma.IntWithAggregatesFilter<"payment"> | number + cr?: Prisma.IntWithAggregatesFilter<"payment"> | number + uniqsess?: Prisma.StringNullableWithAggregatesFilter<"payment"> | string | null +} + +export type paymentCreateInput = { + id?: bigint | number + account_id?: bigint | number | null + date_orig?: bigint | number | null + amount?: number | null + applied_amt?: number | null + type?: string | null + memo?: string | null + reference?: string | null + excedent?: number + correction?: number + cr?: number + uniqsess?: string | null +} + +export type paymentUncheckedCreateInput = { + id?: bigint | number + account_id?: bigint | number | null + date_orig?: bigint | number | null + amount?: number | null + applied_amt?: number | null + type?: string | null + memo?: string | null + reference?: string | null + excedent?: number + correction?: number + cr?: number + uniqsess?: string | null +} + +export type paymentUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + applied_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + excedent?: Prisma.IntFieldUpdateOperationsInput | number + correction?: Prisma.IntFieldUpdateOperationsInput | number + cr?: Prisma.IntFieldUpdateOperationsInput | number + uniqsess?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type paymentUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + applied_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + excedent?: Prisma.IntFieldUpdateOperationsInput | number + correction?: Prisma.IntFieldUpdateOperationsInput | number + cr?: Prisma.IntFieldUpdateOperationsInput | number + uniqsess?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type paymentCreateManyInput = { + id?: bigint | number + account_id?: bigint | number | null + date_orig?: bigint | number | null + amount?: number | null + applied_amt?: number | null + type?: string | null + memo?: string | null + reference?: string | null + excedent?: number + correction?: number + cr?: number + uniqsess?: string | null +} + +export type paymentUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + applied_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + excedent?: Prisma.IntFieldUpdateOperationsInput | number + correction?: Prisma.IntFieldUpdateOperationsInput | number + cr?: Prisma.IntFieldUpdateOperationsInput | number + uniqsess?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type paymentUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + applied_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + excedent?: Prisma.IntFieldUpdateOperationsInput | number + correction?: Prisma.IntFieldUpdateOperationsInput | number + cr?: Prisma.IntFieldUpdateOperationsInput | number + uniqsess?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type paymentOrderByRelevanceInput = { + fields: Prisma.paymentOrderByRelevanceFieldEnum | Prisma.paymentOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type paymentCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + amount?: Prisma.SortOrder + applied_amt?: Prisma.SortOrder + type?: Prisma.SortOrder + memo?: Prisma.SortOrder + reference?: Prisma.SortOrder + excedent?: Prisma.SortOrder + correction?: Prisma.SortOrder + cr?: Prisma.SortOrder + uniqsess?: Prisma.SortOrder +} + +export type paymentAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + amount?: Prisma.SortOrder + applied_amt?: Prisma.SortOrder + excedent?: Prisma.SortOrder + correction?: Prisma.SortOrder + cr?: Prisma.SortOrder +} + +export type paymentMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + amount?: Prisma.SortOrder + applied_amt?: Prisma.SortOrder + type?: Prisma.SortOrder + memo?: Prisma.SortOrder + reference?: Prisma.SortOrder + excedent?: Prisma.SortOrder + correction?: Prisma.SortOrder + cr?: Prisma.SortOrder + uniqsess?: Prisma.SortOrder +} + +export type paymentMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + amount?: Prisma.SortOrder + applied_amt?: Prisma.SortOrder + type?: Prisma.SortOrder + memo?: Prisma.SortOrder + reference?: Prisma.SortOrder + excedent?: Prisma.SortOrder + correction?: Prisma.SortOrder + cr?: Prisma.SortOrder + uniqsess?: Prisma.SortOrder +} + +export type paymentSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + amount?: Prisma.SortOrder + applied_amt?: Prisma.SortOrder + excedent?: Prisma.SortOrder + correction?: Prisma.SortOrder + cr?: Prisma.SortOrder +} + + + +export type paymentSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + date_orig?: boolean + amount?: boolean + applied_amt?: boolean + type?: boolean + memo?: boolean + reference?: boolean + excedent?: boolean + correction?: boolean + cr?: boolean + uniqsess?: boolean +}, ExtArgs["result"]["payment"]> + + + +export type paymentSelectScalar = { + id?: boolean + account_id?: boolean + date_orig?: boolean + amount?: boolean + applied_amt?: boolean + type?: boolean + memo?: boolean + reference?: boolean + excedent?: boolean + correction?: boolean + cr?: boolean + uniqsess?: boolean +} + +export type paymentOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date_orig" | "amount" | "applied_amt" | "type" | "memo" | "reference" | "excedent" | "correction" | "cr" | "uniqsess", ExtArgs["result"]["payment"]> + +export type $paymentPayload = { + name: "payment" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + account_id: bigint | null + date_orig: bigint | null + amount: number | null + applied_amt: number | null + type: string | null + memo: string | null + reference: string | null + excedent: number + correction: number + cr: number + uniqsess: string | null + }, ExtArgs["result"]["payment"]> + composites: {} +} + +export type paymentGetPayload = runtime.Types.Result.GetResult + +export type paymentCountArgs = + Omit & { + select?: PaymentCountAggregateInputType | true + } + +export interface paymentDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['payment'], meta: { name: 'payment' } } + /** + * Find zero or one Payment that matches the filter. + * @param {paymentFindUniqueArgs} args - Arguments to find a Payment + * @example + * // Get one Payment + * const payment = await prisma.payment.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Payment that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {paymentFindUniqueOrThrowArgs} args - Arguments to find a Payment + * @example + * // Get one Payment + * const payment = await prisma.payment.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Payment 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 {paymentFindFirstArgs} args - Arguments to find a Payment + * @example + * // Get one Payment + * const payment = await prisma.payment.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Payment 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 {paymentFindFirstOrThrowArgs} args - Arguments to find a Payment + * @example + * // Get one Payment + * const payment = await prisma.payment.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Payments 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 {paymentFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Payments + * const payments = await prisma.payment.findMany() + * + * // Get first 10 Payments + * const payments = await prisma.payment.findMany({ take: 10 }) + * + * // Only select the `id` + * const paymentWithIdOnly = await prisma.payment.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Payment. + * @param {paymentCreateArgs} args - Arguments to create a Payment. + * @example + * // Create one Payment + * const Payment = await prisma.payment.create({ + * data: { + * // ... data to create a Payment + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Payments. + * @param {paymentCreateManyArgs} args - Arguments to create many Payments. + * @example + * // Create many Payments + * const payment = await prisma.payment.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Payment. + * @param {paymentDeleteArgs} args - Arguments to delete one Payment. + * @example + * // Delete one Payment + * const Payment = await prisma.payment.delete({ + * where: { + * // ... filter to delete one Payment + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Payment. + * @param {paymentUpdateArgs} args - Arguments to update one Payment. + * @example + * // Update one Payment + * const payment = await prisma.payment.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Payments. + * @param {paymentDeleteManyArgs} args - Arguments to filter Payments to delete. + * @example + * // Delete a few Payments + * const { count } = await prisma.payment.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Payments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {paymentUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Payments + * const payment = await prisma.payment.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Payment. + * @param {paymentUpsertArgs} args - Arguments to update or create a Payment. + * @example + * // Update or create a Payment + * const payment = await prisma.payment.upsert({ + * create: { + * // ... data to create a Payment + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Payment we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Payments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {paymentCountArgs} args - Arguments to filter Payments to count. + * @example + * // Count the number of Payments + * const count = await prisma.payment.count({ + * where: { + * // ... the filter for the Payments 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 Payment. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PaymentAggregateArgs} 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 Payment. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {paymentGroupByArgs} 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 paymentGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: paymentGroupByArgs['orderBy'] } + : { orderBy?: paymentGroupByArgs['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 ? GetPaymentGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the payment model + */ +readonly fields: paymentFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for payment. + * 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__paymentClient 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 payment model + */ +export interface paymentFieldRefs { + readonly id: Prisma.FieldRef<"payment", 'BigInt'> + readonly account_id: Prisma.FieldRef<"payment", 'BigInt'> + readonly date_orig: Prisma.FieldRef<"payment", 'BigInt'> + readonly amount: Prisma.FieldRef<"payment", 'Float'> + readonly applied_amt: Prisma.FieldRef<"payment", 'Float'> + readonly type: Prisma.FieldRef<"payment", 'String'> + readonly memo: Prisma.FieldRef<"payment", 'String'> + readonly reference: Prisma.FieldRef<"payment", 'String'> + readonly excedent: Prisma.FieldRef<"payment", 'Int'> + readonly correction: Prisma.FieldRef<"payment", 'Int'> + readonly cr: Prisma.FieldRef<"payment", 'Int'> + readonly uniqsess: Prisma.FieldRef<"payment", 'String'> +} + + +// Custom InputTypes +/** + * payment findUnique + */ +export type paymentFindUniqueArgs = { + /** + * Select specific fields to fetch from the payment + */ + select?: Prisma.paymentSelect | null + /** + * Omit specific fields from the payment + */ + omit?: Prisma.paymentOmit | null + /** + * Filter, which payment to fetch. + */ + where: Prisma.paymentWhereUniqueInput +} + +/** + * payment findUniqueOrThrow + */ +export type paymentFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the payment + */ + select?: Prisma.paymentSelect | null + /** + * Omit specific fields from the payment + */ + omit?: Prisma.paymentOmit | null + /** + * Filter, which payment to fetch. + */ + where: Prisma.paymentWhereUniqueInput +} + +/** + * payment findFirst + */ +export type paymentFindFirstArgs = { + /** + * Select specific fields to fetch from the payment + */ + select?: Prisma.paymentSelect | null + /** + * Omit specific fields from the payment + */ + omit?: Prisma.paymentOmit | null + /** + * Filter, which payment to fetch. + */ + where?: Prisma.paymentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of payments to fetch. + */ + orderBy?: Prisma.paymentOrderByWithRelationInput | Prisma.paymentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for payments. + */ + cursor?: Prisma.paymentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` payments 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` payments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of payments. + */ + distinct?: Prisma.PaymentScalarFieldEnum | Prisma.PaymentScalarFieldEnum[] +} + +/** + * payment findFirstOrThrow + */ +export type paymentFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the payment + */ + select?: Prisma.paymentSelect | null + /** + * Omit specific fields from the payment + */ + omit?: Prisma.paymentOmit | null + /** + * Filter, which payment to fetch. + */ + where?: Prisma.paymentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of payments to fetch. + */ + orderBy?: Prisma.paymentOrderByWithRelationInput | Prisma.paymentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for payments. + */ + cursor?: Prisma.paymentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` payments 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` payments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of payments. + */ + distinct?: Prisma.PaymentScalarFieldEnum | Prisma.PaymentScalarFieldEnum[] +} + +/** + * payment findMany + */ +export type paymentFindManyArgs = { + /** + * Select specific fields to fetch from the payment + */ + select?: Prisma.paymentSelect | null + /** + * Omit specific fields from the payment + */ + omit?: Prisma.paymentOmit | null + /** + * Filter, which payments to fetch. + */ + where?: Prisma.paymentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of payments to fetch. + */ + orderBy?: Prisma.paymentOrderByWithRelationInput | Prisma.paymentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing payments. + */ + cursor?: Prisma.paymentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` payments 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` payments. + */ + skip?: number + distinct?: Prisma.PaymentScalarFieldEnum | Prisma.PaymentScalarFieldEnum[] +} + +/** + * payment create + */ +export type paymentCreateArgs = { + /** + * Select specific fields to fetch from the payment + */ + select?: Prisma.paymentSelect | null + /** + * Omit specific fields from the payment + */ + omit?: Prisma.paymentOmit | null + /** + * The data needed to create a payment. + */ + data?: Prisma.XOR +} + +/** + * payment createMany + */ +export type paymentCreateManyArgs = { + /** + * The data used to create many payments. + */ + data: Prisma.paymentCreateManyInput | Prisma.paymentCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * payment update + */ +export type paymentUpdateArgs = { + /** + * Select specific fields to fetch from the payment + */ + select?: Prisma.paymentSelect | null + /** + * Omit specific fields from the payment + */ + omit?: Prisma.paymentOmit | null + /** + * The data needed to update a payment. + */ + data: Prisma.XOR + /** + * Choose, which payment to update. + */ + where: Prisma.paymentWhereUniqueInput +} + +/** + * payment updateMany + */ +export type paymentUpdateManyArgs = { + /** + * The data used to update payments. + */ + data: Prisma.XOR + /** + * Filter which payments to update + */ + where?: Prisma.paymentWhereInput + /** + * Limit how many payments to update. + */ + limit?: number +} + +/** + * payment upsert + */ +export type paymentUpsertArgs = { + /** + * Select specific fields to fetch from the payment + */ + select?: Prisma.paymentSelect | null + /** + * Omit specific fields from the payment + */ + omit?: Prisma.paymentOmit | null + /** + * The filter to search for the payment to update in case it exists. + */ + where: Prisma.paymentWhereUniqueInput + /** + * In case the payment found by the `where` argument doesn't exist, create a new payment with this data. + */ + create: Prisma.XOR + /** + * In case the payment was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * payment delete + */ +export type paymentDeleteArgs = { + /** + * Select specific fields to fetch from the payment + */ + select?: Prisma.paymentSelect | null + /** + * Omit specific fields from the payment + */ + omit?: Prisma.paymentOmit | null + /** + * Filter which payment to delete. + */ + where: Prisma.paymentWhereUniqueInput +} + +/** + * payment deleteMany + */ +export type paymentDeleteManyArgs = { + /** + * Filter which payments to delete + */ + where?: Prisma.paymentWhereInput + /** + * Limit how many payments to delete. + */ + limit?: number +} + +/** + * payment without action + */ +export type paymentDefaultArgs = { + /** + * Select specific fields to fetch from the payment + */ + select?: Prisma.paymentSelect | null + /** + * Omit specific fields from the payment + */ + omit?: Prisma.paymentOmit | null +} diff --git a/prisma/generated/mariadb/models/payment_item.ts b/prisma/generated/mariadb/models/payment_item.ts new file mode 100644 index 0000000..5d5f571 --- /dev/null +++ b/prisma/generated/mariadb/models/payment_item.ts @@ -0,0 +1,1099 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `payment_item` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model payment_item + * + */ +export type payment_itemModel = runtime.Types.Result.DefaultSelection + +export type AggregatePayment_item = { + _count: Payment_itemCountAggregateOutputType | null + _avg: Payment_itemAvgAggregateOutputType | null + _sum: Payment_itemSumAggregateOutputType | null + _min: Payment_itemMinAggregateOutputType | null + _max: Payment_itemMaxAggregateOutputType | null +} + +export type Payment_itemAvgAggregateOutputType = { + id: number | null + payment_id: number | null + invoice_id: number | null + amount: number | null + date_orig: number | null +} + +export type Payment_itemSumAggregateOutputType = { + id: bigint | null + payment_id: bigint | null + invoice_id: bigint | null + amount: number | null + date_orig: bigint | null +} + +export type Payment_itemMinAggregateOutputType = { + id: bigint | null + payment_id: bigint | null + invoice_id: bigint | null + amount: number | null + date_orig: bigint | null +} + +export type Payment_itemMaxAggregateOutputType = { + id: bigint | null + payment_id: bigint | null + invoice_id: bigint | null + amount: number | null + date_orig: bigint | null +} + +export type Payment_itemCountAggregateOutputType = { + id: number + payment_id: number + invoice_id: number + amount: number + date_orig: number + _all: number +} + + +export type Payment_itemAvgAggregateInputType = { + id?: true + payment_id?: true + invoice_id?: true + amount?: true + date_orig?: true +} + +export type Payment_itemSumAggregateInputType = { + id?: true + payment_id?: true + invoice_id?: true + amount?: true + date_orig?: true +} + +export type Payment_itemMinAggregateInputType = { + id?: true + payment_id?: true + invoice_id?: true + amount?: true + date_orig?: true +} + +export type Payment_itemMaxAggregateInputType = { + id?: true + payment_id?: true + invoice_id?: true + amount?: true + date_orig?: true +} + +export type Payment_itemCountAggregateInputType = { + id?: true + payment_id?: true + invoice_id?: true + amount?: true + date_orig?: true + _all?: true +} + +export type Payment_itemAggregateArgs = { + /** + * Filter which payment_item to aggregate. + */ + where?: Prisma.payment_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of payment_items to fetch. + */ + orderBy?: Prisma.payment_itemOrderByWithRelationInput | Prisma.payment_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.payment_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` payment_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` payment_items. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned payment_items + **/ + _count?: true | Payment_itemCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Payment_itemAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Payment_itemSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Payment_itemMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Payment_itemMaxAggregateInputType +} + +export type GetPayment_itemAggregateType = { + [P in keyof T & keyof AggregatePayment_item]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type payment_itemGroupByArgs = { + where?: Prisma.payment_itemWhereInput + orderBy?: Prisma.payment_itemOrderByWithAggregationInput | Prisma.payment_itemOrderByWithAggregationInput[] + by: Prisma.Payment_itemScalarFieldEnum[] | Prisma.Payment_itemScalarFieldEnum + having?: Prisma.payment_itemScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Payment_itemCountAggregateInputType | true + _avg?: Payment_itemAvgAggregateInputType + _sum?: Payment_itemSumAggregateInputType + _min?: Payment_itemMinAggregateInputType + _max?: Payment_itemMaxAggregateInputType +} + +export type Payment_itemGroupByOutputType = { + id: bigint + payment_id: bigint | null + invoice_id: bigint | null + amount: number | null + date_orig: bigint | null + _count: Payment_itemCountAggregateOutputType | null + _avg: Payment_itemAvgAggregateOutputType | null + _sum: Payment_itemSumAggregateOutputType | null + _min: Payment_itemMinAggregateOutputType | null + _max: Payment_itemMaxAggregateOutputType | null +} + +type GetPayment_itemGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Payment_itemGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type payment_itemWhereInput = { + AND?: Prisma.payment_itemWhereInput | Prisma.payment_itemWhereInput[] + OR?: Prisma.payment_itemWhereInput[] + NOT?: Prisma.payment_itemWhereInput | Prisma.payment_itemWhereInput[] + id?: Prisma.BigIntFilter<"payment_item"> | bigint | number + payment_id?: Prisma.BigIntNullableFilter<"payment_item"> | bigint | number | null + invoice_id?: Prisma.BigIntNullableFilter<"payment_item"> | bigint | number | null + amount?: Prisma.FloatNullableFilter<"payment_item"> | number | null + date_orig?: Prisma.BigIntNullableFilter<"payment_item"> | bigint | number | null +} + +export type payment_itemOrderByWithRelationInput = { + id?: Prisma.SortOrder + payment_id?: Prisma.SortOrderInput | Prisma.SortOrder + invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type payment_itemWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.payment_itemWhereInput | Prisma.payment_itemWhereInput[] + OR?: Prisma.payment_itemWhereInput[] + NOT?: Prisma.payment_itemWhereInput | Prisma.payment_itemWhereInput[] + payment_id?: Prisma.BigIntNullableFilter<"payment_item"> | bigint | number | null + invoice_id?: Prisma.BigIntNullableFilter<"payment_item"> | bigint | number | null + amount?: Prisma.FloatNullableFilter<"payment_item"> | number | null + date_orig?: Prisma.BigIntNullableFilter<"payment_item"> | bigint | number | null +}, "id"> + +export type payment_itemOrderByWithAggregationInput = { + id?: Prisma.SortOrder + payment_id?: Prisma.SortOrderInput | Prisma.SortOrder + invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.payment_itemCountOrderByAggregateInput + _avg?: Prisma.payment_itemAvgOrderByAggregateInput + _max?: Prisma.payment_itemMaxOrderByAggregateInput + _min?: Prisma.payment_itemMinOrderByAggregateInput + _sum?: Prisma.payment_itemSumOrderByAggregateInput +} + +export type payment_itemScalarWhereWithAggregatesInput = { + AND?: Prisma.payment_itemScalarWhereWithAggregatesInput | Prisma.payment_itemScalarWhereWithAggregatesInput[] + OR?: Prisma.payment_itemScalarWhereWithAggregatesInput[] + NOT?: Prisma.payment_itemScalarWhereWithAggregatesInput | Prisma.payment_itemScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"payment_item"> | bigint | number + payment_id?: Prisma.BigIntNullableWithAggregatesFilter<"payment_item"> | bigint | number | null + invoice_id?: Prisma.BigIntNullableWithAggregatesFilter<"payment_item"> | bigint | number | null + amount?: Prisma.FloatNullableWithAggregatesFilter<"payment_item"> | number | null + date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"payment_item"> | bigint | number | null +} + +export type payment_itemCreateInput = { + id?: bigint | number + payment_id?: bigint | number | null + invoice_id?: bigint | number | null + amount?: number | null + date_orig?: bigint | number | null +} + +export type payment_itemUncheckedCreateInput = { + id?: bigint | number + payment_id?: bigint | number | null + invoice_id?: bigint | number | null + amount?: number | null + date_orig?: bigint | number | null +} + +export type payment_itemUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + payment_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type payment_itemUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + payment_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type payment_itemCreateManyInput = { + id?: bigint | number + payment_id?: bigint | number | null + invoice_id?: bigint | number | null + amount?: number | null + date_orig?: bigint | number | null +} + +export type payment_itemUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + payment_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type payment_itemUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + payment_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null +} + +export type payment_itemCountOrderByAggregateInput = { + id?: Prisma.SortOrder + payment_id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + amount?: Prisma.SortOrder + date_orig?: Prisma.SortOrder +} + +export type payment_itemAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + payment_id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + amount?: Prisma.SortOrder + date_orig?: Prisma.SortOrder +} + +export type payment_itemMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + payment_id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + amount?: Prisma.SortOrder + date_orig?: Prisma.SortOrder +} + +export type payment_itemMinOrderByAggregateInput = { + id?: Prisma.SortOrder + payment_id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + amount?: Prisma.SortOrder + date_orig?: Prisma.SortOrder +} + +export type payment_itemSumOrderByAggregateInput = { + id?: Prisma.SortOrder + payment_id?: Prisma.SortOrder + invoice_id?: Prisma.SortOrder + amount?: Prisma.SortOrder + date_orig?: Prisma.SortOrder +} + + + +export type payment_itemSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + payment_id?: boolean + invoice_id?: boolean + amount?: boolean + date_orig?: boolean +}, ExtArgs["result"]["payment_item"]> + + + +export type payment_itemSelectScalar = { + id?: boolean + payment_id?: boolean + invoice_id?: boolean + amount?: boolean + date_orig?: boolean +} + +export type payment_itemOmit = runtime.Types.Extensions.GetOmit<"id" | "payment_id" | "invoice_id" | "amount" | "date_orig", ExtArgs["result"]["payment_item"]> + +export type $payment_itemPayload = { + name: "payment_item" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + payment_id: bigint | null + invoice_id: bigint | null + amount: number | null + date_orig: bigint | null + }, ExtArgs["result"]["payment_item"]> + composites: {} +} + +export type payment_itemGetPayload = runtime.Types.Result.GetResult + +export type payment_itemCountArgs = + Omit & { + select?: Payment_itemCountAggregateInputType | true + } + +export interface payment_itemDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['payment_item'], meta: { name: 'payment_item' } } + /** + * Find zero or one Payment_item that matches the filter. + * @param {payment_itemFindUniqueArgs} args - Arguments to find a Payment_item + * @example + * // Get one Payment_item + * const payment_item = await prisma.payment_item.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Payment_item that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {payment_itemFindUniqueOrThrowArgs} args - Arguments to find a Payment_item + * @example + * // Get one Payment_item + * const payment_item = await prisma.payment_item.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Payment_item that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {payment_itemFindFirstArgs} args - Arguments to find a Payment_item + * @example + * // Get one Payment_item + * const payment_item = await prisma.payment_item.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Payment_item that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {payment_itemFindFirstOrThrowArgs} args - Arguments to find a Payment_item + * @example + * // Get one Payment_item + * const payment_item = await prisma.payment_item.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Payment_items that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {payment_itemFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Payment_items + * const payment_items = await prisma.payment_item.findMany() + * + * // Get first 10 Payment_items + * const payment_items = await prisma.payment_item.findMany({ take: 10 }) + * + * // Only select the `id` + * const payment_itemWithIdOnly = await prisma.payment_item.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Payment_item. + * @param {payment_itemCreateArgs} args - Arguments to create a Payment_item. + * @example + * // Create one Payment_item + * const Payment_item = await prisma.payment_item.create({ + * data: { + * // ... data to create a Payment_item + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Payment_items. + * @param {payment_itemCreateManyArgs} args - Arguments to create many Payment_items. + * @example + * // Create many Payment_items + * const payment_item = await prisma.payment_item.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Payment_item. + * @param {payment_itemDeleteArgs} args - Arguments to delete one Payment_item. + * @example + * // Delete one Payment_item + * const Payment_item = await prisma.payment_item.delete({ + * where: { + * // ... filter to delete one Payment_item + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Payment_item. + * @param {payment_itemUpdateArgs} args - Arguments to update one Payment_item. + * @example + * // Update one Payment_item + * const payment_item = await prisma.payment_item.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Payment_items. + * @param {payment_itemDeleteManyArgs} args - Arguments to filter Payment_items to delete. + * @example + * // Delete a few Payment_items + * const { count } = await prisma.payment_item.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Payment_items. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {payment_itemUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Payment_items + * const payment_item = await prisma.payment_item.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Payment_item. + * @param {payment_itemUpsertArgs} args - Arguments to update or create a Payment_item. + * @example + * // Update or create a Payment_item + * const payment_item = await prisma.payment_item.upsert({ + * create: { + * // ... data to create a Payment_item + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Payment_item we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Payment_items. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {payment_itemCountArgs} args - Arguments to filter Payment_items to count. + * @example + * // Count the number of Payment_items + * const count = await prisma.payment_item.count({ + * where: { + * // ... the filter for the Payment_items we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Payment_item. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Payment_itemAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Payment_item. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {payment_itemGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends payment_itemGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: payment_itemGroupByArgs['orderBy'] } + : { orderBy?: payment_itemGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetPayment_itemGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the payment_item model + */ +readonly fields: payment_itemFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for payment_item. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__payment_itemClient 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 payment_item model + */ +export interface payment_itemFieldRefs { + readonly id: Prisma.FieldRef<"payment_item", 'BigInt'> + readonly payment_id: Prisma.FieldRef<"payment_item", 'BigInt'> + readonly invoice_id: Prisma.FieldRef<"payment_item", 'BigInt'> + readonly amount: Prisma.FieldRef<"payment_item", 'Float'> + readonly date_orig: Prisma.FieldRef<"payment_item", 'BigInt'> +} + + +// Custom InputTypes +/** + * payment_item findUnique + */ +export type payment_itemFindUniqueArgs = { + /** + * Select specific fields to fetch from the payment_item + */ + select?: Prisma.payment_itemSelect | null + /** + * Omit specific fields from the payment_item + */ + omit?: Prisma.payment_itemOmit | null + /** + * Filter, which payment_item to fetch. + */ + where: Prisma.payment_itemWhereUniqueInput +} + +/** + * payment_item findUniqueOrThrow + */ +export type payment_itemFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the payment_item + */ + select?: Prisma.payment_itemSelect | null + /** + * Omit specific fields from the payment_item + */ + omit?: Prisma.payment_itemOmit | null + /** + * Filter, which payment_item to fetch. + */ + where: Prisma.payment_itemWhereUniqueInput +} + +/** + * payment_item findFirst + */ +export type payment_itemFindFirstArgs = { + /** + * Select specific fields to fetch from the payment_item + */ + select?: Prisma.payment_itemSelect | null + /** + * Omit specific fields from the payment_item + */ + omit?: Prisma.payment_itemOmit | null + /** + * Filter, which payment_item to fetch. + */ + where?: Prisma.payment_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of payment_items to fetch. + */ + orderBy?: Prisma.payment_itemOrderByWithRelationInput | Prisma.payment_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for payment_items. + */ + cursor?: Prisma.payment_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` payment_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` payment_items. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of payment_items. + */ + distinct?: Prisma.Payment_itemScalarFieldEnum | Prisma.Payment_itemScalarFieldEnum[] +} + +/** + * payment_item findFirstOrThrow + */ +export type payment_itemFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the payment_item + */ + select?: Prisma.payment_itemSelect | null + /** + * Omit specific fields from the payment_item + */ + omit?: Prisma.payment_itemOmit | null + /** + * Filter, which payment_item to fetch. + */ + where?: Prisma.payment_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of payment_items to fetch. + */ + orderBy?: Prisma.payment_itemOrderByWithRelationInput | Prisma.payment_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for payment_items. + */ + cursor?: Prisma.payment_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` payment_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` payment_items. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of payment_items. + */ + distinct?: Prisma.Payment_itemScalarFieldEnum | Prisma.Payment_itemScalarFieldEnum[] +} + +/** + * payment_item findMany + */ +export type payment_itemFindManyArgs = { + /** + * Select specific fields to fetch from the payment_item + */ + select?: Prisma.payment_itemSelect | null + /** + * Omit specific fields from the payment_item + */ + omit?: Prisma.payment_itemOmit | null + /** + * Filter, which payment_items to fetch. + */ + where?: Prisma.payment_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of payment_items to fetch. + */ + orderBy?: Prisma.payment_itemOrderByWithRelationInput | Prisma.payment_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing payment_items. + */ + cursor?: Prisma.payment_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` payment_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` payment_items. + */ + skip?: number + distinct?: Prisma.Payment_itemScalarFieldEnum | Prisma.Payment_itemScalarFieldEnum[] +} + +/** + * payment_item create + */ +export type payment_itemCreateArgs = { + /** + * Select specific fields to fetch from the payment_item + */ + select?: Prisma.payment_itemSelect | null + /** + * Omit specific fields from the payment_item + */ + omit?: Prisma.payment_itemOmit | null + /** + * The data needed to create a payment_item. + */ + data?: Prisma.XOR +} + +/** + * payment_item createMany + */ +export type payment_itemCreateManyArgs = { + /** + * The data used to create many payment_items. + */ + data: Prisma.payment_itemCreateManyInput | Prisma.payment_itemCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * payment_item update + */ +export type payment_itemUpdateArgs = { + /** + * Select specific fields to fetch from the payment_item + */ + select?: Prisma.payment_itemSelect | null + /** + * Omit specific fields from the payment_item + */ + omit?: Prisma.payment_itemOmit | null + /** + * The data needed to update a payment_item. + */ + data: Prisma.XOR + /** + * Choose, which payment_item to update. + */ + where: Prisma.payment_itemWhereUniqueInput +} + +/** + * payment_item updateMany + */ +export type payment_itemUpdateManyArgs = { + /** + * The data used to update payment_items. + */ + data: Prisma.XOR + /** + * Filter which payment_items to update + */ + where?: Prisma.payment_itemWhereInput + /** + * Limit how many payment_items to update. + */ + limit?: number +} + +/** + * payment_item upsert + */ +export type payment_itemUpsertArgs = { + /** + * Select specific fields to fetch from the payment_item + */ + select?: Prisma.payment_itemSelect | null + /** + * Omit specific fields from the payment_item + */ + omit?: Prisma.payment_itemOmit | null + /** + * The filter to search for the payment_item to update in case it exists. + */ + where: Prisma.payment_itemWhereUniqueInput + /** + * In case the payment_item found by the `where` argument doesn't exist, create a new payment_item with this data. + */ + create: Prisma.XOR + /** + * In case the payment_item was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * payment_item delete + */ +export type payment_itemDeleteArgs = { + /** + * Select specific fields to fetch from the payment_item + */ + select?: Prisma.payment_itemSelect | null + /** + * Omit specific fields from the payment_item + */ + omit?: Prisma.payment_itemOmit | null + /** + * Filter which payment_item to delete. + */ + where: Prisma.payment_itemWhereUniqueInput +} + +/** + * payment_item deleteMany + */ +export type payment_itemDeleteManyArgs = { + /** + * Filter which payment_items to delete + */ + where?: Prisma.payment_itemWhereInput + /** + * Limit how many payment_items to delete. + */ + limit?: number +} + +/** + * payment_item without action + */ +export type payment_itemDefaultArgs = { + /** + * Select specific fields to fetch from the payment_item + */ + select?: Prisma.payment_itemSelect | null + /** + * Omit specific fields from the payment_item + */ + omit?: Prisma.payment_itemOmit | null +} diff --git a/prisma/generated/mariadb/models/pbx.ts b/prisma/generated/mariadb/models/pbx.ts new file mode 100644 index 0000000..5a860a8 --- /dev/null +++ b/prisma/generated/mariadb/models/pbx.ts @@ -0,0 +1,1587 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `pbx` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model pbx + * This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments + */ +export type pbxModel = runtime.Types.Result.DefaultSelection + +export type AggregatePbx = { + _count: PbxCountAggregateOutputType | null + _avg: PbxAvgAggregateOutputType | null + _sum: PbxSumAggregateOutputType | null + _min: PbxMinAggregateOutputType | null + _max: PbxMaxAggregateOutputType | null +} + +export type PbxAvgAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + has_vm: number | null + keep_msg: number | null + vm_disk_quota: number | null + max_calls: number | null + call_timeout: number | null + date_origin: number | null + date_update: number | null + update_by: number | null +} + +export type PbxSumAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + has_vm: number | null + keep_msg: number | null + vm_disk_quota: number | null + max_calls: number | null + call_timeout: number | null + date_origin: bigint | null + date_update: bigint | null + update_by: number | null +} + +export type PbxMinAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + phone: string | null + name: string | null + password: string | null + vm_password: string | null + has_vm: number | null + vm_email: string | null + keep_msg: number | null + vm_disk_quota: number | null + int_code: string | null + language: string | null + call_911: string | null + max_calls: number | null + call_timeout: number | null + user_context: string | null + country_whitelist: string | null + date_origin: bigint | null + date_update: bigint | null + update_by: number | null +} + +export type PbxMaxAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + phone: string | null + name: string | null + password: string | null + vm_password: string | null + has_vm: number | null + vm_email: string | null + keep_msg: number | null + vm_disk_quota: number | null + int_code: string | null + language: string | null + call_911: string | null + max_calls: number | null + call_timeout: number | null + user_context: string | null + country_whitelist: string | null + date_origin: bigint | null + date_update: bigint | null + update_by: number | null +} + +export type PbxCountAggregateOutputType = { + id: number + account_id: number + delivery_id: number + service_id: number + phone: number + name: number + password: number + vm_password: number + has_vm: number + vm_email: number + keep_msg: number + vm_disk_quota: number + int_code: number + language: number + call_911: number + max_calls: number + call_timeout: number + user_context: number + country_whitelist: number + date_origin: number + date_update: number + update_by: number + _all: number +} + + +export type PbxAvgAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + has_vm?: true + keep_msg?: true + vm_disk_quota?: true + max_calls?: true + call_timeout?: true + date_origin?: true + date_update?: true + update_by?: true +} + +export type PbxSumAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + has_vm?: true + keep_msg?: true + vm_disk_quota?: true + max_calls?: true + call_timeout?: true + date_origin?: true + date_update?: true + update_by?: true +} + +export type PbxMinAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + phone?: true + name?: true + password?: true + vm_password?: true + has_vm?: true + vm_email?: true + keep_msg?: true + vm_disk_quota?: true + int_code?: true + language?: true + call_911?: true + max_calls?: true + call_timeout?: true + user_context?: true + country_whitelist?: true + date_origin?: true + date_update?: true + update_by?: true +} + +export type PbxMaxAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + phone?: true + name?: true + password?: true + vm_password?: true + has_vm?: true + vm_email?: true + keep_msg?: true + vm_disk_quota?: true + int_code?: true + language?: true + call_911?: true + max_calls?: true + call_timeout?: true + user_context?: true + country_whitelist?: true + date_origin?: true + date_update?: true + update_by?: true +} + +export type PbxCountAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + phone?: true + name?: true + password?: true + vm_password?: true + has_vm?: true + vm_email?: true + keep_msg?: true + vm_disk_quota?: true + int_code?: true + language?: true + call_911?: true + max_calls?: true + call_timeout?: true + user_context?: true + country_whitelist?: true + date_origin?: true + date_update?: true + update_by?: true + _all?: true +} + +export type PbxAggregateArgs = { + /** + * Filter which pbx to aggregate. + */ + where?: Prisma.pbxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbxes to fetch. + */ + orderBy?: Prisma.pbxOrderByWithRelationInput | Prisma.pbxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.pbxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbxes 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` pbxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned pbxes + **/ + _count?: true | PbxCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: PbxAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: PbxSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: PbxMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: PbxMaxAggregateInputType +} + +export type GetPbxAggregateType = { + [P in keyof T & keyof AggregatePbx]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type pbxGroupByArgs = { + where?: Prisma.pbxWhereInput + orderBy?: Prisma.pbxOrderByWithAggregationInput | Prisma.pbxOrderByWithAggregationInput[] + by: Prisma.PbxScalarFieldEnum[] | Prisma.PbxScalarFieldEnum + having?: Prisma.pbxScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: PbxCountAggregateInputType | true + _avg?: PbxAvgAggregateInputType + _sum?: PbxSumAggregateInputType + _min?: PbxMinAggregateInputType + _max?: PbxMaxAggregateInputType +} + +export type PbxGroupByOutputType = { + id: number + account_id: number + delivery_id: number + service_id: number + phone: string + name: string | null + password: string + vm_password: string + has_vm: number + vm_email: string | null + keep_msg: number + vm_disk_quota: number + int_code: string + language: string + call_911: string + max_calls: number + call_timeout: number + user_context: string + country_whitelist: string + date_origin: bigint + date_update: bigint + update_by: number | null + _count: PbxCountAggregateOutputType | null + _avg: PbxAvgAggregateOutputType | null + _sum: PbxSumAggregateOutputType | null + _min: PbxMinAggregateOutputType | null + _max: PbxMaxAggregateOutputType | null +} + +type GetPbxGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof PbxGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type pbxWhereInput = { + AND?: Prisma.pbxWhereInput | Prisma.pbxWhereInput[] + OR?: Prisma.pbxWhereInput[] + NOT?: Prisma.pbxWhereInput | Prisma.pbxWhereInput[] + id?: Prisma.IntFilter<"pbx"> | number + account_id?: Prisma.IntFilter<"pbx"> | number + delivery_id?: Prisma.IntFilter<"pbx"> | number + service_id?: Prisma.IntFilter<"pbx"> | number + phone?: Prisma.StringFilter<"pbx"> | string + name?: Prisma.StringNullableFilter<"pbx"> | string | null + password?: Prisma.StringFilter<"pbx"> | string + vm_password?: Prisma.StringFilter<"pbx"> | string + has_vm?: Prisma.IntFilter<"pbx"> | number + vm_email?: Prisma.StringNullableFilter<"pbx"> | string | null + keep_msg?: Prisma.IntFilter<"pbx"> | number + vm_disk_quota?: Prisma.IntFilter<"pbx"> | number + int_code?: Prisma.StringFilter<"pbx"> | string + language?: Prisma.StringFilter<"pbx"> | string + call_911?: Prisma.StringFilter<"pbx"> | string + max_calls?: Prisma.IntFilter<"pbx"> | number + call_timeout?: Prisma.IntFilter<"pbx"> | number + user_context?: Prisma.StringFilter<"pbx"> | string + country_whitelist?: Prisma.StringFilter<"pbx"> | string + date_origin?: Prisma.BigIntFilter<"pbx"> | bigint | number + date_update?: Prisma.BigIntFilter<"pbx"> | bigint | number + update_by?: Prisma.IntNullableFilter<"pbx"> | number | null +} + +export type pbxOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrder + vm_password?: Prisma.SortOrder + has_vm?: Prisma.SortOrder + vm_email?: Prisma.SortOrderInput | Prisma.SortOrder + keep_msg?: Prisma.SortOrder + vm_disk_quota?: Prisma.SortOrder + int_code?: Prisma.SortOrder + language?: Prisma.SortOrder + call_911?: Prisma.SortOrder + max_calls?: Prisma.SortOrder + call_timeout?: Prisma.SortOrder + user_context?: Prisma.SortOrder + country_whitelist?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.pbxOrderByRelevanceInput +} + +export type pbxWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.pbxWhereInput | Prisma.pbxWhereInput[] + OR?: Prisma.pbxWhereInput[] + NOT?: Prisma.pbxWhereInput | Prisma.pbxWhereInput[] + account_id?: Prisma.IntFilter<"pbx"> | number + delivery_id?: Prisma.IntFilter<"pbx"> | number + service_id?: Prisma.IntFilter<"pbx"> | number + phone?: Prisma.StringFilter<"pbx"> | string + name?: Prisma.StringNullableFilter<"pbx"> | string | null + password?: Prisma.StringFilter<"pbx"> | string + vm_password?: Prisma.StringFilter<"pbx"> | string + has_vm?: Prisma.IntFilter<"pbx"> | number + vm_email?: Prisma.StringNullableFilter<"pbx"> | string | null + keep_msg?: Prisma.IntFilter<"pbx"> | number + vm_disk_quota?: Prisma.IntFilter<"pbx"> | number + int_code?: Prisma.StringFilter<"pbx"> | string + language?: Prisma.StringFilter<"pbx"> | string + call_911?: Prisma.StringFilter<"pbx"> | string + max_calls?: Prisma.IntFilter<"pbx"> | number + call_timeout?: Prisma.IntFilter<"pbx"> | number + user_context?: Prisma.StringFilter<"pbx"> | string + country_whitelist?: Prisma.StringFilter<"pbx"> | string + date_origin?: Prisma.BigIntFilter<"pbx"> | bigint | number + date_update?: Prisma.BigIntFilter<"pbx"> | bigint | number + update_by?: Prisma.IntNullableFilter<"pbx"> | number | null +}, "id"> + +export type pbxOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + password?: Prisma.SortOrder + vm_password?: Prisma.SortOrder + has_vm?: Prisma.SortOrder + vm_email?: Prisma.SortOrderInput | Prisma.SortOrder + keep_msg?: Prisma.SortOrder + vm_disk_quota?: Prisma.SortOrder + int_code?: Prisma.SortOrder + language?: Prisma.SortOrder + call_911?: Prisma.SortOrder + max_calls?: Prisma.SortOrder + call_timeout?: Prisma.SortOrder + user_context?: Prisma.SortOrder + country_whitelist?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.pbxCountOrderByAggregateInput + _avg?: Prisma.pbxAvgOrderByAggregateInput + _max?: Prisma.pbxMaxOrderByAggregateInput + _min?: Prisma.pbxMinOrderByAggregateInput + _sum?: Prisma.pbxSumOrderByAggregateInput +} + +export type pbxScalarWhereWithAggregatesInput = { + AND?: Prisma.pbxScalarWhereWithAggregatesInput | Prisma.pbxScalarWhereWithAggregatesInput[] + OR?: Prisma.pbxScalarWhereWithAggregatesInput[] + NOT?: Prisma.pbxScalarWhereWithAggregatesInput | Prisma.pbxScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"pbx"> | number + account_id?: Prisma.IntWithAggregatesFilter<"pbx"> | number + delivery_id?: Prisma.IntWithAggregatesFilter<"pbx"> | number + service_id?: Prisma.IntWithAggregatesFilter<"pbx"> | number + phone?: Prisma.StringWithAggregatesFilter<"pbx"> | string + name?: Prisma.StringNullableWithAggregatesFilter<"pbx"> | string | null + password?: Prisma.StringWithAggregatesFilter<"pbx"> | string + vm_password?: Prisma.StringWithAggregatesFilter<"pbx"> | string + has_vm?: Prisma.IntWithAggregatesFilter<"pbx"> | number + vm_email?: Prisma.StringNullableWithAggregatesFilter<"pbx"> | string | null + keep_msg?: Prisma.IntWithAggregatesFilter<"pbx"> | number + vm_disk_quota?: Prisma.IntWithAggregatesFilter<"pbx"> | number + int_code?: Prisma.StringWithAggregatesFilter<"pbx"> | string + language?: Prisma.StringWithAggregatesFilter<"pbx"> | string + call_911?: Prisma.StringWithAggregatesFilter<"pbx"> | string + max_calls?: Prisma.IntWithAggregatesFilter<"pbx"> | number + call_timeout?: Prisma.IntWithAggregatesFilter<"pbx"> | number + user_context?: Prisma.StringWithAggregatesFilter<"pbx"> | string + country_whitelist?: Prisma.StringWithAggregatesFilter<"pbx"> | string + date_origin?: Prisma.BigIntWithAggregatesFilter<"pbx"> | bigint | number + date_update?: Prisma.BigIntWithAggregatesFilter<"pbx"> | bigint | number + update_by?: Prisma.IntNullableWithAggregatesFilter<"pbx"> | number | null +} + +export type pbxCreateInput = { + account_id: number + delivery_id: number + service_id: number + phone: string + name?: string | null + password: string + vm_password?: string + has_vm?: number + vm_email?: string | null + keep_msg?: number + vm_disk_quota?: number + int_code: string + language?: string + call_911: string + max_calls?: number + call_timeout?: number + user_context?: string + country_whitelist: string + date_origin: bigint | number + date_update: bigint | number + update_by?: number | null +} + +export type pbxUncheckedCreateInput = { + id?: number + account_id: number + delivery_id: number + service_id: number + phone: string + name?: string | null + password: string + vm_password?: string + has_vm?: number + vm_email?: string | null + keep_msg?: number + vm_disk_quota?: number + int_code: string + language?: string + call_911: string + max_calls?: number + call_timeout?: number + user_context?: string + country_whitelist: string + date_origin: bigint | number + date_update: bigint | number + update_by?: number | null +} + +export type pbxUpdateInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.StringFieldUpdateOperationsInput | string + vm_password?: Prisma.StringFieldUpdateOperationsInput | string + has_vm?: Prisma.IntFieldUpdateOperationsInput | number + vm_email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + keep_msg?: Prisma.IntFieldUpdateOperationsInput | number + vm_disk_quota?: Prisma.IntFieldUpdateOperationsInput | number + int_code?: Prisma.StringFieldUpdateOperationsInput | string + language?: Prisma.StringFieldUpdateOperationsInput | string + call_911?: Prisma.StringFieldUpdateOperationsInput | string + max_calls?: Prisma.IntFieldUpdateOperationsInput | number + call_timeout?: Prisma.IntFieldUpdateOperationsInput | number + user_context?: Prisma.StringFieldUpdateOperationsInput | string + country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string + date_origin?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + update_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type pbxUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.StringFieldUpdateOperationsInput | string + vm_password?: Prisma.StringFieldUpdateOperationsInput | string + has_vm?: Prisma.IntFieldUpdateOperationsInput | number + vm_email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + keep_msg?: Prisma.IntFieldUpdateOperationsInput | number + vm_disk_quota?: Prisma.IntFieldUpdateOperationsInput | number + int_code?: Prisma.StringFieldUpdateOperationsInput | string + language?: Prisma.StringFieldUpdateOperationsInput | string + call_911?: Prisma.StringFieldUpdateOperationsInput | string + max_calls?: Prisma.IntFieldUpdateOperationsInput | number + call_timeout?: Prisma.IntFieldUpdateOperationsInput | number + user_context?: Prisma.StringFieldUpdateOperationsInput | string + country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string + date_origin?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + update_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type pbxCreateManyInput = { + id?: number + account_id: number + delivery_id: number + service_id: number + phone: string + name?: string | null + password: string + vm_password?: string + has_vm?: number + vm_email?: string | null + keep_msg?: number + vm_disk_quota?: number + int_code: string + language?: string + call_911: string + max_calls?: number + call_timeout?: number + user_context?: string + country_whitelist: string + date_origin: bigint | number + date_update: bigint | number + update_by?: number | null +} + +export type pbxUpdateManyMutationInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.StringFieldUpdateOperationsInput | string + vm_password?: Prisma.StringFieldUpdateOperationsInput | string + has_vm?: Prisma.IntFieldUpdateOperationsInput | number + vm_email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + keep_msg?: Prisma.IntFieldUpdateOperationsInput | number + vm_disk_quota?: Prisma.IntFieldUpdateOperationsInput | number + int_code?: Prisma.StringFieldUpdateOperationsInput | string + language?: Prisma.StringFieldUpdateOperationsInput | string + call_911?: Prisma.StringFieldUpdateOperationsInput | string + max_calls?: Prisma.IntFieldUpdateOperationsInput | number + call_timeout?: Prisma.IntFieldUpdateOperationsInput | number + user_context?: Prisma.StringFieldUpdateOperationsInput | string + country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string + date_origin?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + update_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type pbxUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + password?: Prisma.StringFieldUpdateOperationsInput | string + vm_password?: Prisma.StringFieldUpdateOperationsInput | string + has_vm?: Prisma.IntFieldUpdateOperationsInput | number + vm_email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + keep_msg?: Prisma.IntFieldUpdateOperationsInput | number + vm_disk_quota?: Prisma.IntFieldUpdateOperationsInput | number + int_code?: Prisma.StringFieldUpdateOperationsInput | string + language?: Prisma.StringFieldUpdateOperationsInput | string + call_911?: Prisma.StringFieldUpdateOperationsInput | string + max_calls?: Prisma.IntFieldUpdateOperationsInput | number + call_timeout?: Prisma.IntFieldUpdateOperationsInput | number + user_context?: Prisma.StringFieldUpdateOperationsInput | string + country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string + date_origin?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + update_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type pbxOrderByRelevanceInput = { + fields: Prisma.pbxOrderByRelevanceFieldEnum | Prisma.pbxOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type pbxCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + name?: Prisma.SortOrder + password?: Prisma.SortOrder + vm_password?: Prisma.SortOrder + has_vm?: Prisma.SortOrder + vm_email?: Prisma.SortOrder + keep_msg?: Prisma.SortOrder + vm_disk_quota?: Prisma.SortOrder + int_code?: Prisma.SortOrder + language?: Prisma.SortOrder + call_911?: Prisma.SortOrder + max_calls?: Prisma.SortOrder + call_timeout?: Prisma.SortOrder + user_context?: Prisma.SortOrder + country_whitelist?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + +export type pbxAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + has_vm?: Prisma.SortOrder + keep_msg?: Prisma.SortOrder + vm_disk_quota?: Prisma.SortOrder + max_calls?: Prisma.SortOrder + call_timeout?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + +export type pbxMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + name?: Prisma.SortOrder + password?: Prisma.SortOrder + vm_password?: Prisma.SortOrder + has_vm?: Prisma.SortOrder + vm_email?: Prisma.SortOrder + keep_msg?: Prisma.SortOrder + vm_disk_quota?: Prisma.SortOrder + int_code?: Prisma.SortOrder + language?: Prisma.SortOrder + call_911?: Prisma.SortOrder + max_calls?: Prisma.SortOrder + call_timeout?: Prisma.SortOrder + user_context?: Prisma.SortOrder + country_whitelist?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + +export type pbxMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + name?: Prisma.SortOrder + password?: Prisma.SortOrder + vm_password?: Prisma.SortOrder + has_vm?: Prisma.SortOrder + vm_email?: Prisma.SortOrder + keep_msg?: Prisma.SortOrder + vm_disk_quota?: Prisma.SortOrder + int_code?: Prisma.SortOrder + language?: Prisma.SortOrder + call_911?: Prisma.SortOrder + max_calls?: Prisma.SortOrder + call_timeout?: Prisma.SortOrder + user_context?: Prisma.SortOrder + country_whitelist?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + +export type pbxSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + has_vm?: Prisma.SortOrder + keep_msg?: Prisma.SortOrder + vm_disk_quota?: Prisma.SortOrder + max_calls?: Prisma.SortOrder + call_timeout?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + + + +export type pbxSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + delivery_id?: boolean + service_id?: boolean + phone?: boolean + name?: boolean + password?: boolean + vm_password?: boolean + has_vm?: boolean + vm_email?: boolean + keep_msg?: boolean + vm_disk_quota?: boolean + int_code?: boolean + language?: boolean + call_911?: boolean + max_calls?: boolean + call_timeout?: boolean + user_context?: boolean + country_whitelist?: boolean + date_origin?: boolean + date_update?: boolean + update_by?: boolean +}, ExtArgs["result"]["pbx"]> + + + +export type pbxSelectScalar = { + id?: boolean + account_id?: boolean + delivery_id?: boolean + service_id?: boolean + phone?: boolean + name?: boolean + password?: boolean + vm_password?: boolean + has_vm?: boolean + vm_email?: boolean + keep_msg?: boolean + vm_disk_quota?: boolean + int_code?: boolean + language?: boolean + call_911?: boolean + max_calls?: boolean + call_timeout?: boolean + user_context?: boolean + country_whitelist?: boolean + date_origin?: boolean + date_update?: boolean + update_by?: boolean +} + +export type pbxOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "delivery_id" | "service_id" | "phone" | "name" | "password" | "vm_password" | "has_vm" | "vm_email" | "keep_msg" | "vm_disk_quota" | "int_code" | "language" | "call_911" | "max_calls" | "call_timeout" | "user_context" | "country_whitelist" | "date_origin" | "date_update" | "update_by", ExtArgs["result"]["pbx"]> + +export type $pbxPayload = { + name: "pbx" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: number + delivery_id: number + service_id: number + phone: string + name: string | null + password: string + vm_password: string + has_vm: number + vm_email: string | null + keep_msg: number + vm_disk_quota: number + int_code: string + language: string + call_911: string + max_calls: number + call_timeout: number + user_context: string + country_whitelist: string + date_origin: bigint + date_update: bigint + update_by: number | null + }, ExtArgs["result"]["pbx"]> + composites: {} +} + +export type pbxGetPayload = runtime.Types.Result.GetResult + +export type pbxCountArgs = + Omit & { + select?: PbxCountAggregateInputType | true + } + +export interface pbxDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['pbx'], meta: { name: 'pbx' } } + /** + * Find zero or one Pbx that matches the filter. + * @param {pbxFindUniqueArgs} args - Arguments to find a Pbx + * @example + * // Get one Pbx + * const pbx = await prisma.pbx.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__pbxClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Pbx that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {pbxFindUniqueOrThrowArgs} args - Arguments to find a Pbx + * @example + * // Get one Pbx + * const pbx = await prisma.pbx.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__pbxClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Pbx 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 {pbxFindFirstArgs} args - Arguments to find a Pbx + * @example + * // Get one Pbx + * const pbx = await prisma.pbx.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__pbxClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Pbx 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 {pbxFindFirstOrThrowArgs} args - Arguments to find a Pbx + * @example + * // Get one Pbx + * const pbx = await prisma.pbx.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__pbxClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Pbxes 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 {pbxFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Pbxes + * const pbxes = await prisma.pbx.findMany() + * + * // Get first 10 Pbxes + * const pbxes = await prisma.pbx.findMany({ take: 10 }) + * + * // Only select the `id` + * const pbxWithIdOnly = await prisma.pbx.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Pbx. + * @param {pbxCreateArgs} args - Arguments to create a Pbx. + * @example + * // Create one Pbx + * const Pbx = await prisma.pbx.create({ + * data: { + * // ... data to create a Pbx + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__pbxClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Pbxes. + * @param {pbxCreateManyArgs} args - Arguments to create many Pbxes. + * @example + * // Create many Pbxes + * const pbx = await prisma.pbx.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Pbx. + * @param {pbxDeleteArgs} args - Arguments to delete one Pbx. + * @example + * // Delete one Pbx + * const Pbx = await prisma.pbx.delete({ + * where: { + * // ... filter to delete one Pbx + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__pbxClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Pbx. + * @param {pbxUpdateArgs} args - Arguments to update one Pbx. + * @example + * // Update one Pbx + * const pbx = await prisma.pbx.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__pbxClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Pbxes. + * @param {pbxDeleteManyArgs} args - Arguments to filter Pbxes to delete. + * @example + * // Delete a few Pbxes + * const { count } = await prisma.pbx.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Pbxes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {pbxUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Pbxes + * const pbx = await prisma.pbx.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Pbx. + * @param {pbxUpsertArgs} args - Arguments to update or create a Pbx. + * @example + * // Update or create a Pbx + * const pbx = await prisma.pbx.upsert({ + * create: { + * // ... data to create a Pbx + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Pbx we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__pbxClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Pbxes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {pbxCountArgs} args - Arguments to filter Pbxes to count. + * @example + * // Count the number of Pbxes + * const count = await prisma.pbx.count({ + * where: { + * // ... the filter for the Pbxes 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 Pbx. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PbxAggregateArgs} 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 Pbx. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {pbxGroupByArgs} 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 pbxGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: pbxGroupByArgs['orderBy'] } + : { orderBy?: pbxGroupByArgs['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 ? GetPbxGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the pbx model + */ +readonly fields: pbxFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for pbx. + * 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__pbxClient 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 pbx model + */ +export interface pbxFieldRefs { + readonly id: Prisma.FieldRef<"pbx", 'Int'> + readonly account_id: Prisma.FieldRef<"pbx", 'Int'> + readonly delivery_id: Prisma.FieldRef<"pbx", 'Int'> + readonly service_id: Prisma.FieldRef<"pbx", 'Int'> + readonly phone: Prisma.FieldRef<"pbx", 'String'> + readonly name: Prisma.FieldRef<"pbx", 'String'> + readonly password: Prisma.FieldRef<"pbx", 'String'> + readonly vm_password: Prisma.FieldRef<"pbx", 'String'> + readonly has_vm: Prisma.FieldRef<"pbx", 'Int'> + readonly vm_email: Prisma.FieldRef<"pbx", 'String'> + readonly keep_msg: Prisma.FieldRef<"pbx", 'Int'> + readonly vm_disk_quota: Prisma.FieldRef<"pbx", 'Int'> + readonly int_code: Prisma.FieldRef<"pbx", 'String'> + readonly language: Prisma.FieldRef<"pbx", 'String'> + readonly call_911: Prisma.FieldRef<"pbx", 'String'> + readonly max_calls: Prisma.FieldRef<"pbx", 'Int'> + readonly call_timeout: Prisma.FieldRef<"pbx", 'Int'> + readonly user_context: Prisma.FieldRef<"pbx", 'String'> + readonly country_whitelist: Prisma.FieldRef<"pbx", 'String'> + readonly date_origin: Prisma.FieldRef<"pbx", 'BigInt'> + readonly date_update: Prisma.FieldRef<"pbx", 'BigInt'> + readonly update_by: Prisma.FieldRef<"pbx", 'Int'> +} + + +// Custom InputTypes +/** + * pbx findUnique + */ +export type pbxFindUniqueArgs = { + /** + * Select specific fields to fetch from the pbx + */ + select?: Prisma.pbxSelect | null + /** + * Omit specific fields from the pbx + */ + omit?: Prisma.pbxOmit | null + /** + * Filter, which pbx to fetch. + */ + where: Prisma.pbxWhereUniqueInput +} + +/** + * pbx findUniqueOrThrow + */ +export type pbxFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the pbx + */ + select?: Prisma.pbxSelect | null + /** + * Omit specific fields from the pbx + */ + omit?: Prisma.pbxOmit | null + /** + * Filter, which pbx to fetch. + */ + where: Prisma.pbxWhereUniqueInput +} + +/** + * pbx findFirst + */ +export type pbxFindFirstArgs = { + /** + * Select specific fields to fetch from the pbx + */ + select?: Prisma.pbxSelect | null + /** + * Omit specific fields from the pbx + */ + omit?: Prisma.pbxOmit | null + /** + * Filter, which pbx to fetch. + */ + where?: Prisma.pbxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbxes to fetch. + */ + orderBy?: Prisma.pbxOrderByWithRelationInput | Prisma.pbxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for pbxes. + */ + cursor?: Prisma.pbxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbxes 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` pbxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of pbxes. + */ + distinct?: Prisma.PbxScalarFieldEnum | Prisma.PbxScalarFieldEnum[] +} + +/** + * pbx findFirstOrThrow + */ +export type pbxFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the pbx + */ + select?: Prisma.pbxSelect | null + /** + * Omit specific fields from the pbx + */ + omit?: Prisma.pbxOmit | null + /** + * Filter, which pbx to fetch. + */ + where?: Prisma.pbxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbxes to fetch. + */ + orderBy?: Prisma.pbxOrderByWithRelationInput | Prisma.pbxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for pbxes. + */ + cursor?: Prisma.pbxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbxes 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` pbxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of pbxes. + */ + distinct?: Prisma.PbxScalarFieldEnum | Prisma.PbxScalarFieldEnum[] +} + +/** + * pbx findMany + */ +export type pbxFindManyArgs = { + /** + * Select specific fields to fetch from the pbx + */ + select?: Prisma.pbxSelect | null + /** + * Omit specific fields from the pbx + */ + omit?: Prisma.pbxOmit | null + /** + * Filter, which pbxes to fetch. + */ + where?: Prisma.pbxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbxes to fetch. + */ + orderBy?: Prisma.pbxOrderByWithRelationInput | Prisma.pbxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing pbxes. + */ + cursor?: Prisma.pbxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbxes 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` pbxes. + */ + skip?: number + distinct?: Prisma.PbxScalarFieldEnum | Prisma.PbxScalarFieldEnum[] +} + +/** + * pbx create + */ +export type pbxCreateArgs = { + /** + * Select specific fields to fetch from the pbx + */ + select?: Prisma.pbxSelect | null + /** + * Omit specific fields from the pbx + */ + omit?: Prisma.pbxOmit | null + /** + * The data needed to create a pbx. + */ + data: Prisma.XOR +} + +/** + * pbx createMany + */ +export type pbxCreateManyArgs = { + /** + * The data used to create many pbxes. + */ + data: Prisma.pbxCreateManyInput | Prisma.pbxCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * pbx update + */ +export type pbxUpdateArgs = { + /** + * Select specific fields to fetch from the pbx + */ + select?: Prisma.pbxSelect | null + /** + * Omit specific fields from the pbx + */ + omit?: Prisma.pbxOmit | null + /** + * The data needed to update a pbx. + */ + data: Prisma.XOR + /** + * Choose, which pbx to update. + */ + where: Prisma.pbxWhereUniqueInput +} + +/** + * pbx updateMany + */ +export type pbxUpdateManyArgs = { + /** + * The data used to update pbxes. + */ + data: Prisma.XOR + /** + * Filter which pbxes to update + */ + where?: Prisma.pbxWhereInput + /** + * Limit how many pbxes to update. + */ + limit?: number +} + +/** + * pbx upsert + */ +export type pbxUpsertArgs = { + /** + * Select specific fields to fetch from the pbx + */ + select?: Prisma.pbxSelect | null + /** + * Omit specific fields from the pbx + */ + omit?: Prisma.pbxOmit | null + /** + * The filter to search for the pbx to update in case it exists. + */ + where: Prisma.pbxWhereUniqueInput + /** + * In case the pbx found by the `where` argument doesn't exist, create a new pbx with this data. + */ + create: Prisma.XOR + /** + * In case the pbx was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * pbx delete + */ +export type pbxDeleteArgs = { + /** + * Select specific fields to fetch from the pbx + */ + select?: Prisma.pbxSelect | null + /** + * Omit specific fields from the pbx + */ + omit?: Prisma.pbxOmit | null + /** + * Filter which pbx to delete. + */ + where: Prisma.pbxWhereUniqueInput +} + +/** + * pbx deleteMany + */ +export type pbxDeleteManyArgs = { + /** + * Filter which pbxes to delete + */ + where?: Prisma.pbxWhereInput + /** + * Limit how many pbxes to delete. + */ + limit?: number +} + +/** + * pbx without action + */ +export type pbxDefaultArgs = { + /** + * Select specific fields to fetch from the pbx + */ + select?: Prisma.pbxSelect | null + /** + * Omit specific fields from the pbx + */ + omit?: Prisma.pbxOmit | null +} diff --git a/prisma/generated/mariadb/models/pbx_app.ts b/prisma/generated/mariadb/models/pbx_app.ts new file mode 100644 index 0000000..b57cf20 --- /dev/null +++ b/prisma/generated/mariadb/models/pbx_app.ts @@ -0,0 +1,1207 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `pbx_app` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model pbx_app + * + */ +export type pbx_appModel = runtime.Types.Result.DefaultSelection + +export type AggregatePbx_app = { + _count: Pbx_appCountAggregateOutputType | null + _avg: Pbx_appAvgAggregateOutputType | null + _sum: Pbx_appSumAggregateOutputType | null + _min: Pbx_appMinAggregateOutputType | null + _max: Pbx_appMaxAggregateOutputType | null +} + +export type Pbx_appAvgAggregateOutputType = { + id: number | null + pbx_id: number | null + date_origin: number | null + date_update: number | null + update_by: number | null +} + +export type Pbx_appSumAggregateOutputType = { + id: number | null + pbx_id: number | null + date_origin: bigint | null + date_update: bigint | null + update_by: number | null +} + +export type Pbx_appMinAggregateOutputType = { + id: number | null + pbx_id: number | null + username: string | null + mac: string | null + app: string | null + note: string | null + date_origin: bigint | null + date_update: bigint | null + update_by: number | null +} + +export type Pbx_appMaxAggregateOutputType = { + id: number | null + pbx_id: number | null + username: string | null + mac: string | null + app: string | null + note: string | null + date_origin: bigint | null + date_update: bigint | null + update_by: number | null +} + +export type Pbx_appCountAggregateOutputType = { + id: number + pbx_id: number + username: number + mac: number + app: number + note: number + date_origin: number + date_update: number + update_by: number + _all: number +} + + +export type Pbx_appAvgAggregateInputType = { + id?: true + pbx_id?: true + date_origin?: true + date_update?: true + update_by?: true +} + +export type Pbx_appSumAggregateInputType = { + id?: true + pbx_id?: true + date_origin?: true + date_update?: true + update_by?: true +} + +export type Pbx_appMinAggregateInputType = { + id?: true + pbx_id?: true + username?: true + mac?: true + app?: true + note?: true + date_origin?: true + date_update?: true + update_by?: true +} + +export type Pbx_appMaxAggregateInputType = { + id?: true + pbx_id?: true + username?: true + mac?: true + app?: true + note?: true + date_origin?: true + date_update?: true + update_by?: true +} + +export type Pbx_appCountAggregateInputType = { + id?: true + pbx_id?: true + username?: true + mac?: true + app?: true + note?: true + date_origin?: true + date_update?: true + update_by?: true + _all?: true +} + +export type Pbx_appAggregateArgs = { + /** + * Filter which pbx_app to aggregate. + */ + where?: Prisma.pbx_appWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_apps to fetch. + */ + orderBy?: Prisma.pbx_appOrderByWithRelationInput | Prisma.pbx_appOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.pbx_appWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_apps 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` pbx_apps. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned pbx_apps + **/ + _count?: true | Pbx_appCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Pbx_appAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Pbx_appSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Pbx_appMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Pbx_appMaxAggregateInputType +} + +export type GetPbx_appAggregateType = { + [P in keyof T & keyof AggregatePbx_app]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type pbx_appGroupByArgs = { + where?: Prisma.pbx_appWhereInput + orderBy?: Prisma.pbx_appOrderByWithAggregationInput | Prisma.pbx_appOrderByWithAggregationInput[] + by: Prisma.Pbx_appScalarFieldEnum[] | Prisma.Pbx_appScalarFieldEnum + having?: Prisma.pbx_appScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Pbx_appCountAggregateInputType | true + _avg?: Pbx_appAvgAggregateInputType + _sum?: Pbx_appSumAggregateInputType + _min?: Pbx_appMinAggregateInputType + _max?: Pbx_appMaxAggregateInputType +} + +export type Pbx_appGroupByOutputType = { + id: number + pbx_id: number + username: string + mac: string + app: string + note: string + date_origin: bigint + date_update: bigint + update_by: number | null + _count: Pbx_appCountAggregateOutputType | null + _avg: Pbx_appAvgAggregateOutputType | null + _sum: Pbx_appSumAggregateOutputType | null + _min: Pbx_appMinAggregateOutputType | null + _max: Pbx_appMaxAggregateOutputType | null +} + +type GetPbx_appGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Pbx_appGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type pbx_appWhereInput = { + AND?: Prisma.pbx_appWhereInput | Prisma.pbx_appWhereInput[] + OR?: Prisma.pbx_appWhereInput[] + NOT?: Prisma.pbx_appWhereInput | Prisma.pbx_appWhereInput[] + id?: Prisma.IntFilter<"pbx_app"> | number + pbx_id?: Prisma.IntFilter<"pbx_app"> | number + username?: Prisma.StringFilter<"pbx_app"> | string + mac?: Prisma.StringFilter<"pbx_app"> | string + app?: Prisma.StringFilter<"pbx_app"> | string + note?: Prisma.StringFilter<"pbx_app"> | string + date_origin?: Prisma.BigIntFilter<"pbx_app"> | bigint | number + date_update?: Prisma.BigIntFilter<"pbx_app"> | bigint | number + update_by?: Prisma.IntNullableFilter<"pbx_app"> | number | null +} + +export type pbx_appOrderByWithRelationInput = { + id?: Prisma.SortOrder + pbx_id?: Prisma.SortOrder + username?: Prisma.SortOrder + mac?: Prisma.SortOrder + app?: Prisma.SortOrder + note?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.pbx_appOrderByRelevanceInput +} + +export type pbx_appWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.pbx_appWhereInput | Prisma.pbx_appWhereInput[] + OR?: Prisma.pbx_appWhereInput[] + NOT?: Prisma.pbx_appWhereInput | Prisma.pbx_appWhereInput[] + pbx_id?: Prisma.IntFilter<"pbx_app"> | number + username?: Prisma.StringFilter<"pbx_app"> | string + mac?: Prisma.StringFilter<"pbx_app"> | string + app?: Prisma.StringFilter<"pbx_app"> | string + note?: Prisma.StringFilter<"pbx_app"> | string + date_origin?: Prisma.BigIntFilter<"pbx_app"> | bigint | number + date_update?: Prisma.BigIntFilter<"pbx_app"> | bigint | number + update_by?: Prisma.IntNullableFilter<"pbx_app"> | number | null +}, "id"> + +export type pbx_appOrderByWithAggregationInput = { + id?: Prisma.SortOrder + pbx_id?: Prisma.SortOrder + username?: Prisma.SortOrder + mac?: Prisma.SortOrder + app?: Prisma.SortOrder + note?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.pbx_appCountOrderByAggregateInput + _avg?: Prisma.pbx_appAvgOrderByAggregateInput + _max?: Prisma.pbx_appMaxOrderByAggregateInput + _min?: Prisma.pbx_appMinOrderByAggregateInput + _sum?: Prisma.pbx_appSumOrderByAggregateInput +} + +export type pbx_appScalarWhereWithAggregatesInput = { + AND?: Prisma.pbx_appScalarWhereWithAggregatesInput | Prisma.pbx_appScalarWhereWithAggregatesInput[] + OR?: Prisma.pbx_appScalarWhereWithAggregatesInput[] + NOT?: Prisma.pbx_appScalarWhereWithAggregatesInput | Prisma.pbx_appScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"pbx_app"> | number + pbx_id?: Prisma.IntWithAggregatesFilter<"pbx_app"> | number + username?: Prisma.StringWithAggregatesFilter<"pbx_app"> | string + mac?: Prisma.StringWithAggregatesFilter<"pbx_app"> | string + app?: Prisma.StringWithAggregatesFilter<"pbx_app"> | string + note?: Prisma.StringWithAggregatesFilter<"pbx_app"> | string + date_origin?: Prisma.BigIntWithAggregatesFilter<"pbx_app"> | bigint | number + date_update?: Prisma.BigIntWithAggregatesFilter<"pbx_app"> | bigint | number + update_by?: Prisma.IntNullableWithAggregatesFilter<"pbx_app"> | number | null +} + +export type pbx_appCreateInput = { + pbx_id: number + username: string + mac: string + app?: string + note: string + date_origin: bigint | number + date_update: bigint | number + update_by?: number | null +} + +export type pbx_appUncheckedCreateInput = { + id?: number + pbx_id: number + username: string + mac: string + app?: string + note: string + date_origin: bigint | number + date_update: bigint | number + update_by?: number | null +} + +export type pbx_appUpdateInput = { + pbx_id?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + mac?: Prisma.StringFieldUpdateOperationsInput | string + app?: Prisma.StringFieldUpdateOperationsInput | string + note?: Prisma.StringFieldUpdateOperationsInput | string + date_origin?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + update_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type pbx_appUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + pbx_id?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + mac?: Prisma.StringFieldUpdateOperationsInput | string + app?: Prisma.StringFieldUpdateOperationsInput | string + note?: Prisma.StringFieldUpdateOperationsInput | string + date_origin?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + update_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type pbx_appCreateManyInput = { + id?: number + pbx_id: number + username: string + mac: string + app?: string + note: string + date_origin: bigint | number + date_update: bigint | number + update_by?: number | null +} + +export type pbx_appUpdateManyMutationInput = { + pbx_id?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + mac?: Prisma.StringFieldUpdateOperationsInput | string + app?: Prisma.StringFieldUpdateOperationsInput | string + note?: Prisma.StringFieldUpdateOperationsInput | string + date_origin?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + update_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type pbx_appUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + pbx_id?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + mac?: Prisma.StringFieldUpdateOperationsInput | string + app?: Prisma.StringFieldUpdateOperationsInput | string + note?: Prisma.StringFieldUpdateOperationsInput | string + date_origin?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + update_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type pbx_appOrderByRelevanceInput = { + fields: Prisma.pbx_appOrderByRelevanceFieldEnum | Prisma.pbx_appOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type pbx_appCountOrderByAggregateInput = { + id?: Prisma.SortOrder + pbx_id?: Prisma.SortOrder + username?: Prisma.SortOrder + mac?: Prisma.SortOrder + app?: Prisma.SortOrder + note?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + +export type pbx_appAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + pbx_id?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + +export type pbx_appMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + pbx_id?: Prisma.SortOrder + username?: Prisma.SortOrder + mac?: Prisma.SortOrder + app?: Prisma.SortOrder + note?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + +export type pbx_appMinOrderByAggregateInput = { + id?: Prisma.SortOrder + pbx_id?: Prisma.SortOrder + username?: Prisma.SortOrder + mac?: Prisma.SortOrder + app?: Prisma.SortOrder + note?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + +export type pbx_appSumOrderByAggregateInput = { + id?: Prisma.SortOrder + pbx_id?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + + + +export type pbx_appSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + pbx_id?: boolean + username?: boolean + mac?: boolean + app?: boolean + note?: boolean + date_origin?: boolean + date_update?: boolean + update_by?: boolean +}, ExtArgs["result"]["pbx_app"]> + + + +export type pbx_appSelectScalar = { + id?: boolean + pbx_id?: boolean + username?: boolean + mac?: boolean + app?: boolean + note?: boolean + date_origin?: boolean + date_update?: boolean + update_by?: boolean +} + +export type pbx_appOmit = runtime.Types.Extensions.GetOmit<"id" | "pbx_id" | "username" | "mac" | "app" | "note" | "date_origin" | "date_update" | "update_by", ExtArgs["result"]["pbx_app"]> + +export type $pbx_appPayload = { + name: "pbx_app" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + pbx_id: number + username: string + mac: string + app: string + note: string + date_origin: bigint + date_update: bigint + update_by: number | null + }, ExtArgs["result"]["pbx_app"]> + composites: {} +} + +export type pbx_appGetPayload = runtime.Types.Result.GetResult + +export type pbx_appCountArgs = + Omit & { + select?: Pbx_appCountAggregateInputType | true + } + +export interface pbx_appDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['pbx_app'], meta: { name: 'pbx_app' } } + /** + * Find zero or one Pbx_app that matches the filter. + * @param {pbx_appFindUniqueArgs} args - Arguments to find a Pbx_app + * @example + * // Get one Pbx_app + * const pbx_app = await prisma.pbx_app.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_appClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Pbx_app that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {pbx_appFindUniqueOrThrowArgs} args - Arguments to find a Pbx_app + * @example + * // Get one Pbx_app + * const pbx_app = await prisma.pbx_app.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_appClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Pbx_app 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 {pbx_appFindFirstArgs} args - Arguments to find a Pbx_app + * @example + * // Get one Pbx_app + * const pbx_app = await prisma.pbx_app.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__pbx_appClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Pbx_app 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 {pbx_appFindFirstOrThrowArgs} args - Arguments to find a Pbx_app + * @example + * // Get one Pbx_app + * const pbx_app = await prisma.pbx_app.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__pbx_appClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Pbx_apps 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 {pbx_appFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Pbx_apps + * const pbx_apps = await prisma.pbx_app.findMany() + * + * // Get first 10 Pbx_apps + * const pbx_apps = await prisma.pbx_app.findMany({ take: 10 }) + * + * // Only select the `id` + * const pbx_appWithIdOnly = await prisma.pbx_app.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Pbx_app. + * @param {pbx_appCreateArgs} args - Arguments to create a Pbx_app. + * @example + * // Create one Pbx_app + * const Pbx_app = await prisma.pbx_app.create({ + * data: { + * // ... data to create a Pbx_app + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_appClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Pbx_apps. + * @param {pbx_appCreateManyArgs} args - Arguments to create many Pbx_apps. + * @example + * // Create many Pbx_apps + * const pbx_app = await prisma.pbx_app.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Pbx_app. + * @param {pbx_appDeleteArgs} args - Arguments to delete one Pbx_app. + * @example + * // Delete one Pbx_app + * const Pbx_app = await prisma.pbx_app.delete({ + * where: { + * // ... filter to delete one Pbx_app + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_appClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Pbx_app. + * @param {pbx_appUpdateArgs} args - Arguments to update one Pbx_app. + * @example + * // Update one Pbx_app + * const pbx_app = await prisma.pbx_app.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_appClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Pbx_apps. + * @param {pbx_appDeleteManyArgs} args - Arguments to filter Pbx_apps to delete. + * @example + * // Delete a few Pbx_apps + * const { count } = await prisma.pbx_app.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Pbx_apps. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {pbx_appUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Pbx_apps + * const pbx_app = await prisma.pbx_app.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Pbx_app. + * @param {pbx_appUpsertArgs} args - Arguments to update or create a Pbx_app. + * @example + * // Update or create a Pbx_app + * const pbx_app = await prisma.pbx_app.upsert({ + * create: { + * // ... data to create a Pbx_app + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Pbx_app we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_appClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Pbx_apps. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {pbx_appCountArgs} args - Arguments to filter Pbx_apps to count. + * @example + * // Count the number of Pbx_apps + * const count = await prisma.pbx_app.count({ + * where: { + * // ... the filter for the Pbx_apps 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 Pbx_app. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Pbx_appAggregateArgs} 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 Pbx_app. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {pbx_appGroupByArgs} 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 pbx_appGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: pbx_appGroupByArgs['orderBy'] } + : { orderBy?: pbx_appGroupByArgs['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 ? GetPbx_appGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the pbx_app model + */ +readonly fields: pbx_appFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for pbx_app. + * 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__pbx_appClient 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 pbx_app model + */ +export interface pbx_appFieldRefs { + readonly id: Prisma.FieldRef<"pbx_app", 'Int'> + readonly pbx_id: Prisma.FieldRef<"pbx_app", 'Int'> + readonly username: Prisma.FieldRef<"pbx_app", 'String'> + readonly mac: Prisma.FieldRef<"pbx_app", 'String'> + readonly app: Prisma.FieldRef<"pbx_app", 'String'> + readonly note: Prisma.FieldRef<"pbx_app", 'String'> + readonly date_origin: Prisma.FieldRef<"pbx_app", 'BigInt'> + readonly date_update: Prisma.FieldRef<"pbx_app", 'BigInt'> + readonly update_by: Prisma.FieldRef<"pbx_app", 'Int'> +} + + +// Custom InputTypes +/** + * pbx_app findUnique + */ +export type pbx_appFindUniqueArgs = { + /** + * Select specific fields to fetch from the pbx_app + */ + select?: Prisma.pbx_appSelect | null + /** + * Omit specific fields from the pbx_app + */ + omit?: Prisma.pbx_appOmit | null + /** + * Filter, which pbx_app to fetch. + */ + where: Prisma.pbx_appWhereUniqueInput +} + +/** + * pbx_app findUniqueOrThrow + */ +export type pbx_appFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the pbx_app + */ + select?: Prisma.pbx_appSelect | null + /** + * Omit specific fields from the pbx_app + */ + omit?: Prisma.pbx_appOmit | null + /** + * Filter, which pbx_app to fetch. + */ + where: Prisma.pbx_appWhereUniqueInput +} + +/** + * pbx_app findFirst + */ +export type pbx_appFindFirstArgs = { + /** + * Select specific fields to fetch from the pbx_app + */ + select?: Prisma.pbx_appSelect | null + /** + * Omit specific fields from the pbx_app + */ + omit?: Prisma.pbx_appOmit | null + /** + * Filter, which pbx_app to fetch. + */ + where?: Prisma.pbx_appWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_apps to fetch. + */ + orderBy?: Prisma.pbx_appOrderByWithRelationInput | Prisma.pbx_appOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for pbx_apps. + */ + cursor?: Prisma.pbx_appWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_apps 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` pbx_apps. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of pbx_apps. + */ + distinct?: Prisma.Pbx_appScalarFieldEnum | Prisma.Pbx_appScalarFieldEnum[] +} + +/** + * pbx_app findFirstOrThrow + */ +export type pbx_appFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the pbx_app + */ + select?: Prisma.pbx_appSelect | null + /** + * Omit specific fields from the pbx_app + */ + omit?: Prisma.pbx_appOmit | null + /** + * Filter, which pbx_app to fetch. + */ + where?: Prisma.pbx_appWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_apps to fetch. + */ + orderBy?: Prisma.pbx_appOrderByWithRelationInput | Prisma.pbx_appOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for pbx_apps. + */ + cursor?: Prisma.pbx_appWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_apps 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` pbx_apps. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of pbx_apps. + */ + distinct?: Prisma.Pbx_appScalarFieldEnum | Prisma.Pbx_appScalarFieldEnum[] +} + +/** + * pbx_app findMany + */ +export type pbx_appFindManyArgs = { + /** + * Select specific fields to fetch from the pbx_app + */ + select?: Prisma.pbx_appSelect | null + /** + * Omit specific fields from the pbx_app + */ + omit?: Prisma.pbx_appOmit | null + /** + * Filter, which pbx_apps to fetch. + */ + where?: Prisma.pbx_appWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_apps to fetch. + */ + orderBy?: Prisma.pbx_appOrderByWithRelationInput | Prisma.pbx_appOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing pbx_apps. + */ + cursor?: Prisma.pbx_appWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_apps 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` pbx_apps. + */ + skip?: number + distinct?: Prisma.Pbx_appScalarFieldEnum | Prisma.Pbx_appScalarFieldEnum[] +} + +/** + * pbx_app create + */ +export type pbx_appCreateArgs = { + /** + * Select specific fields to fetch from the pbx_app + */ + select?: Prisma.pbx_appSelect | null + /** + * Omit specific fields from the pbx_app + */ + omit?: Prisma.pbx_appOmit | null + /** + * The data needed to create a pbx_app. + */ + data: Prisma.XOR +} + +/** + * pbx_app createMany + */ +export type pbx_appCreateManyArgs = { + /** + * The data used to create many pbx_apps. + */ + data: Prisma.pbx_appCreateManyInput | Prisma.pbx_appCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * pbx_app update + */ +export type pbx_appUpdateArgs = { + /** + * Select specific fields to fetch from the pbx_app + */ + select?: Prisma.pbx_appSelect | null + /** + * Omit specific fields from the pbx_app + */ + omit?: Prisma.pbx_appOmit | null + /** + * The data needed to update a pbx_app. + */ + data: Prisma.XOR + /** + * Choose, which pbx_app to update. + */ + where: Prisma.pbx_appWhereUniqueInput +} + +/** + * pbx_app updateMany + */ +export type pbx_appUpdateManyArgs = { + /** + * The data used to update pbx_apps. + */ + data: Prisma.XOR + /** + * Filter which pbx_apps to update + */ + where?: Prisma.pbx_appWhereInput + /** + * Limit how many pbx_apps to update. + */ + limit?: number +} + +/** + * pbx_app upsert + */ +export type pbx_appUpsertArgs = { + /** + * Select specific fields to fetch from the pbx_app + */ + select?: Prisma.pbx_appSelect | null + /** + * Omit specific fields from the pbx_app + */ + omit?: Prisma.pbx_appOmit | null + /** + * The filter to search for the pbx_app to update in case it exists. + */ + where: Prisma.pbx_appWhereUniqueInput + /** + * In case the pbx_app found by the `where` argument doesn't exist, create a new pbx_app with this data. + */ + create: Prisma.XOR + /** + * In case the pbx_app was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * pbx_app delete + */ +export type pbx_appDeleteArgs = { + /** + * Select specific fields to fetch from the pbx_app + */ + select?: Prisma.pbx_appSelect | null + /** + * Omit specific fields from the pbx_app + */ + omit?: Prisma.pbx_appOmit | null + /** + * Filter which pbx_app to delete. + */ + where: Prisma.pbx_appWhereUniqueInput +} + +/** + * pbx_app deleteMany + */ +export type pbx_appDeleteManyArgs = { + /** + * Filter which pbx_apps to delete + */ + where?: Prisma.pbx_appWhereInput + /** + * Limit how many pbx_apps to delete. + */ + limit?: number +} + +/** + * pbx_app without action + */ +export type pbx_appDefaultArgs = { + /** + * Select specific fields to fetch from the pbx_app + */ + select?: Prisma.pbx_appSelect | null + /** + * Omit specific fields from the pbx_app + */ + omit?: Prisma.pbx_appOmit | null +} diff --git a/prisma/generated/mariadb/models/pbx_com.ts b/prisma/generated/mariadb/models/pbx_com.ts new file mode 100644 index 0000000..ba9eebe --- /dev/null +++ b/prisma/generated/mariadb/models/pbx_com.ts @@ -0,0 +1,1473 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `pbx_com` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model pbx_com + * + */ +export type pbx_comModel = runtime.Types.Result.DefaultSelection + +export type AggregatePbx_com = { + _count: Pbx_comCountAggregateOutputType | null + _avg: Pbx_comAvgAggregateOutputType | null + _sum: Pbx_comSumAggregateOutputType | null + _min: Pbx_comMinAggregateOutputType | null + _max: Pbx_comMaxAggregateOutputType | null +} + +export type Pbx_comAvgAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + max_calls: number | null + update_by: number | null +} + +export type Pbx_comSumAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + max_calls: number | null + update_by: number | null +} + +export type Pbx_comMinAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + phone: string | null + name: string | null + failover: string | null + auth_method: string | null + password: string | null + ip: string | null + int_code: string | null + country_whitelist: string | null + language: string | null + call_911: string | null + max_calls: number | null + user_context: string | null + date_origin: string | null + date_update: string | null + update_by: number | null +} + +export type Pbx_comMaxAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + phone: string | null + name: string | null + failover: string | null + auth_method: string | null + password: string | null + ip: string | null + int_code: string | null + country_whitelist: string | null + language: string | null + call_911: string | null + max_calls: number | null + user_context: string | null + date_origin: string | null + date_update: string | null + update_by: number | null +} + +export type Pbx_comCountAggregateOutputType = { + id: number + account_id: number + delivery_id: number + service_id: number + phone: number + name: number + failover: number + auth_method: number + password: number + ip: number + int_code: number + country_whitelist: number + language: number + call_911: number + max_calls: number + user_context: number + date_origin: number + date_update: number + update_by: number + _all: number +} + + +export type Pbx_comAvgAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + max_calls?: true + update_by?: true +} + +export type Pbx_comSumAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + max_calls?: true + update_by?: true +} + +export type Pbx_comMinAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + phone?: true + name?: true + failover?: true + auth_method?: true + password?: true + ip?: true + int_code?: true + country_whitelist?: true + language?: true + call_911?: true + max_calls?: true + user_context?: true + date_origin?: true + date_update?: true + update_by?: true +} + +export type Pbx_comMaxAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + phone?: true + name?: true + failover?: true + auth_method?: true + password?: true + ip?: true + int_code?: true + country_whitelist?: true + language?: true + call_911?: true + max_calls?: true + user_context?: true + date_origin?: true + date_update?: true + update_by?: true +} + +export type Pbx_comCountAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + phone?: true + name?: true + failover?: true + auth_method?: true + password?: true + ip?: true + int_code?: true + country_whitelist?: true + language?: true + call_911?: true + max_calls?: true + user_context?: true + date_origin?: true + date_update?: true + update_by?: true + _all?: true +} + +export type Pbx_comAggregateArgs = { + /** + * Filter which pbx_com to aggregate. + */ + where?: Prisma.pbx_comWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_coms to fetch. + */ + orderBy?: Prisma.pbx_comOrderByWithRelationInput | Prisma.pbx_comOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.pbx_comWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_coms 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` pbx_coms. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned pbx_coms + **/ + _count?: true | Pbx_comCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Pbx_comAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Pbx_comSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Pbx_comMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Pbx_comMaxAggregateInputType +} + +export type GetPbx_comAggregateType = { + [P in keyof T & keyof AggregatePbx_com]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type pbx_comGroupByArgs = { + where?: Prisma.pbx_comWhereInput + orderBy?: Prisma.pbx_comOrderByWithAggregationInput | Prisma.pbx_comOrderByWithAggregationInput[] + by: Prisma.Pbx_comScalarFieldEnum[] | Prisma.Pbx_comScalarFieldEnum + having?: Prisma.pbx_comScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Pbx_comCountAggregateInputType | true + _avg?: Pbx_comAvgAggregateInputType + _sum?: Pbx_comSumAggregateInputType + _min?: Pbx_comMinAggregateInputType + _max?: Pbx_comMaxAggregateInputType +} + +export type Pbx_comGroupByOutputType = { + id: number + account_id: number + delivery_id: number + service_id: number + phone: string + name: string + failover: string + auth_method: string + password: string + ip: string + int_code: string + country_whitelist: string + language: string + call_911: string + max_calls: number + user_context: string + date_origin: string + date_update: string + update_by: number + _count: Pbx_comCountAggregateOutputType | null + _avg: Pbx_comAvgAggregateOutputType | null + _sum: Pbx_comSumAggregateOutputType | null + _min: Pbx_comMinAggregateOutputType | null + _max: Pbx_comMaxAggregateOutputType | null +} + +type GetPbx_comGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Pbx_comGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type pbx_comWhereInput = { + AND?: Prisma.pbx_comWhereInput | Prisma.pbx_comWhereInput[] + OR?: Prisma.pbx_comWhereInput[] + NOT?: Prisma.pbx_comWhereInput | Prisma.pbx_comWhereInput[] + id?: Prisma.IntFilter<"pbx_com"> | number + account_id?: Prisma.IntFilter<"pbx_com"> | number + delivery_id?: Prisma.IntFilter<"pbx_com"> | number + service_id?: Prisma.IntFilter<"pbx_com"> | number + phone?: Prisma.StringFilter<"pbx_com"> | string + name?: Prisma.StringFilter<"pbx_com"> | string + failover?: Prisma.StringFilter<"pbx_com"> | string + auth_method?: Prisma.StringFilter<"pbx_com"> | string + password?: Prisma.StringFilter<"pbx_com"> | string + ip?: Prisma.StringFilter<"pbx_com"> | string + int_code?: Prisma.StringFilter<"pbx_com"> | string + country_whitelist?: Prisma.StringFilter<"pbx_com"> | string + language?: Prisma.StringFilter<"pbx_com"> | string + call_911?: Prisma.StringFilter<"pbx_com"> | string + max_calls?: Prisma.IntFilter<"pbx_com"> | number + user_context?: Prisma.StringFilter<"pbx_com"> | string + date_origin?: Prisma.StringFilter<"pbx_com"> | string + date_update?: Prisma.StringFilter<"pbx_com"> | string + update_by?: Prisma.IntFilter<"pbx_com"> | number +} + +export type pbx_comOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + name?: Prisma.SortOrder + failover?: Prisma.SortOrder + auth_method?: Prisma.SortOrder + password?: Prisma.SortOrder + ip?: Prisma.SortOrder + int_code?: Prisma.SortOrder + country_whitelist?: Prisma.SortOrder + language?: Prisma.SortOrder + call_911?: Prisma.SortOrder + max_calls?: Prisma.SortOrder + user_context?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrder + _relevance?: Prisma.pbx_comOrderByRelevanceInput +} + +export type pbx_comWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.pbx_comWhereInput | Prisma.pbx_comWhereInput[] + OR?: Prisma.pbx_comWhereInput[] + NOT?: Prisma.pbx_comWhereInput | Prisma.pbx_comWhereInput[] + account_id?: Prisma.IntFilter<"pbx_com"> | number + delivery_id?: Prisma.IntFilter<"pbx_com"> | number + service_id?: Prisma.IntFilter<"pbx_com"> | number + phone?: Prisma.StringFilter<"pbx_com"> | string + name?: Prisma.StringFilter<"pbx_com"> | string + failover?: Prisma.StringFilter<"pbx_com"> | string + auth_method?: Prisma.StringFilter<"pbx_com"> | string + password?: Prisma.StringFilter<"pbx_com"> | string + ip?: Prisma.StringFilter<"pbx_com"> | string + int_code?: Prisma.StringFilter<"pbx_com"> | string + country_whitelist?: Prisma.StringFilter<"pbx_com"> | string + language?: Prisma.StringFilter<"pbx_com"> | string + call_911?: Prisma.StringFilter<"pbx_com"> | string + max_calls?: Prisma.IntFilter<"pbx_com"> | number + user_context?: Prisma.StringFilter<"pbx_com"> | string + date_origin?: Prisma.StringFilter<"pbx_com"> | string + date_update?: Prisma.StringFilter<"pbx_com"> | string + update_by?: Prisma.IntFilter<"pbx_com"> | number +}, "id"> + +export type pbx_comOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + name?: Prisma.SortOrder + failover?: Prisma.SortOrder + auth_method?: Prisma.SortOrder + password?: Prisma.SortOrder + ip?: Prisma.SortOrder + int_code?: Prisma.SortOrder + country_whitelist?: Prisma.SortOrder + language?: Prisma.SortOrder + call_911?: Prisma.SortOrder + max_calls?: Prisma.SortOrder + user_context?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrder + _count?: Prisma.pbx_comCountOrderByAggregateInput + _avg?: Prisma.pbx_comAvgOrderByAggregateInput + _max?: Prisma.pbx_comMaxOrderByAggregateInput + _min?: Prisma.pbx_comMinOrderByAggregateInput + _sum?: Prisma.pbx_comSumOrderByAggregateInput +} + +export type pbx_comScalarWhereWithAggregatesInput = { + AND?: Prisma.pbx_comScalarWhereWithAggregatesInput | Prisma.pbx_comScalarWhereWithAggregatesInput[] + OR?: Prisma.pbx_comScalarWhereWithAggregatesInput[] + NOT?: Prisma.pbx_comScalarWhereWithAggregatesInput | Prisma.pbx_comScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"pbx_com"> | number + account_id?: Prisma.IntWithAggregatesFilter<"pbx_com"> | number + delivery_id?: Prisma.IntWithAggregatesFilter<"pbx_com"> | number + service_id?: Prisma.IntWithAggregatesFilter<"pbx_com"> | number + phone?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string + name?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string + failover?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string + auth_method?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string + password?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string + ip?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string + int_code?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string + country_whitelist?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string + language?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string + call_911?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string + max_calls?: Prisma.IntWithAggregatesFilter<"pbx_com"> | number + user_context?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string + date_origin?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string + date_update?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string + update_by?: Prisma.IntWithAggregatesFilter<"pbx_com"> | number +} + +export type pbx_comCreateInput = { + account_id: number + delivery_id: number + service_id: number + phone: string + name: string + failover: string + auth_method?: string + password: string + ip: string + int_code: string + country_whitelist: string + language: string + call_911: string + max_calls: number + user_context: string + date_origin: string + date_update: string + update_by: number +} + +export type pbx_comUncheckedCreateInput = { + id?: number + account_id: number + delivery_id: number + service_id: number + phone: string + name: string + failover: string + auth_method?: string + password: string + ip: string + int_code: string + country_whitelist: string + language: string + call_911: string + max_calls: number + user_context: string + date_origin: string + date_update: string + update_by: number +} + +export type pbx_comUpdateInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + failover?: Prisma.StringFieldUpdateOperationsInput | string + auth_method?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + ip?: Prisma.StringFieldUpdateOperationsInput | string + int_code?: Prisma.StringFieldUpdateOperationsInput | string + country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string + language?: Prisma.StringFieldUpdateOperationsInput | string + call_911?: Prisma.StringFieldUpdateOperationsInput | string + max_calls?: Prisma.IntFieldUpdateOperationsInput | number + user_context?: Prisma.StringFieldUpdateOperationsInput | string + date_origin?: Prisma.StringFieldUpdateOperationsInput | string + date_update?: Prisma.StringFieldUpdateOperationsInput | string + update_by?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type pbx_comUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + failover?: Prisma.StringFieldUpdateOperationsInput | string + auth_method?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + ip?: Prisma.StringFieldUpdateOperationsInput | string + int_code?: Prisma.StringFieldUpdateOperationsInput | string + country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string + language?: Prisma.StringFieldUpdateOperationsInput | string + call_911?: Prisma.StringFieldUpdateOperationsInput | string + max_calls?: Prisma.IntFieldUpdateOperationsInput | number + user_context?: Prisma.StringFieldUpdateOperationsInput | string + date_origin?: Prisma.StringFieldUpdateOperationsInput | string + date_update?: Prisma.StringFieldUpdateOperationsInput | string + update_by?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type pbx_comCreateManyInput = { + id?: number + account_id: number + delivery_id: number + service_id: number + phone: string + name: string + failover: string + auth_method?: string + password: string + ip: string + int_code: string + country_whitelist: string + language: string + call_911: string + max_calls: number + user_context: string + date_origin: string + date_update: string + update_by: number +} + +export type pbx_comUpdateManyMutationInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + failover?: Prisma.StringFieldUpdateOperationsInput | string + auth_method?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + ip?: Prisma.StringFieldUpdateOperationsInput | string + int_code?: Prisma.StringFieldUpdateOperationsInput | string + country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string + language?: Prisma.StringFieldUpdateOperationsInput | string + call_911?: Prisma.StringFieldUpdateOperationsInput | string + max_calls?: Prisma.IntFieldUpdateOperationsInput | number + user_context?: Prisma.StringFieldUpdateOperationsInput | string + date_origin?: Prisma.StringFieldUpdateOperationsInput | string + date_update?: Prisma.StringFieldUpdateOperationsInput | string + update_by?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type pbx_comUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + name?: Prisma.StringFieldUpdateOperationsInput | string + failover?: Prisma.StringFieldUpdateOperationsInput | string + auth_method?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + ip?: Prisma.StringFieldUpdateOperationsInput | string + int_code?: Prisma.StringFieldUpdateOperationsInput | string + country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string + language?: Prisma.StringFieldUpdateOperationsInput | string + call_911?: Prisma.StringFieldUpdateOperationsInput | string + max_calls?: Prisma.IntFieldUpdateOperationsInput | number + user_context?: Prisma.StringFieldUpdateOperationsInput | string + date_origin?: Prisma.StringFieldUpdateOperationsInput | string + date_update?: Prisma.StringFieldUpdateOperationsInput | string + update_by?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type pbx_comOrderByRelevanceInput = { + fields: Prisma.pbx_comOrderByRelevanceFieldEnum | Prisma.pbx_comOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type pbx_comCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + name?: Prisma.SortOrder + failover?: Prisma.SortOrder + auth_method?: Prisma.SortOrder + password?: Prisma.SortOrder + ip?: Prisma.SortOrder + int_code?: Prisma.SortOrder + country_whitelist?: Prisma.SortOrder + language?: Prisma.SortOrder + call_911?: Prisma.SortOrder + max_calls?: Prisma.SortOrder + user_context?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + +export type pbx_comAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + max_calls?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + +export type pbx_comMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + name?: Prisma.SortOrder + failover?: Prisma.SortOrder + auth_method?: Prisma.SortOrder + password?: Prisma.SortOrder + ip?: Prisma.SortOrder + int_code?: Prisma.SortOrder + country_whitelist?: Prisma.SortOrder + language?: Prisma.SortOrder + call_911?: Prisma.SortOrder + max_calls?: Prisma.SortOrder + user_context?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + +export type pbx_comMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + name?: Prisma.SortOrder + failover?: Prisma.SortOrder + auth_method?: Prisma.SortOrder + password?: Prisma.SortOrder + ip?: Prisma.SortOrder + int_code?: Prisma.SortOrder + country_whitelist?: Prisma.SortOrder + language?: Prisma.SortOrder + call_911?: Prisma.SortOrder + max_calls?: Prisma.SortOrder + user_context?: Prisma.SortOrder + date_origin?: Prisma.SortOrder + date_update?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + +export type pbx_comSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + max_calls?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + + + +export type pbx_comSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + delivery_id?: boolean + service_id?: boolean + phone?: boolean + name?: boolean + failover?: boolean + auth_method?: boolean + password?: boolean + ip?: boolean + int_code?: boolean + country_whitelist?: boolean + language?: boolean + call_911?: boolean + max_calls?: boolean + user_context?: boolean + date_origin?: boolean + date_update?: boolean + update_by?: boolean +}, ExtArgs["result"]["pbx_com"]> + + + +export type pbx_comSelectScalar = { + id?: boolean + account_id?: boolean + delivery_id?: boolean + service_id?: boolean + phone?: boolean + name?: boolean + failover?: boolean + auth_method?: boolean + password?: boolean + ip?: boolean + int_code?: boolean + country_whitelist?: boolean + language?: boolean + call_911?: boolean + max_calls?: boolean + user_context?: boolean + date_origin?: boolean + date_update?: boolean + update_by?: boolean +} + +export type pbx_comOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "delivery_id" | "service_id" | "phone" | "name" | "failover" | "auth_method" | "password" | "ip" | "int_code" | "country_whitelist" | "language" | "call_911" | "max_calls" | "user_context" | "date_origin" | "date_update" | "update_by", ExtArgs["result"]["pbx_com"]> + +export type $pbx_comPayload = { + name: "pbx_com" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: number + delivery_id: number + service_id: number + phone: string + name: string + failover: string + auth_method: string + password: string + ip: string + int_code: string + country_whitelist: string + language: string + call_911: string + max_calls: number + user_context: string + date_origin: string + date_update: string + update_by: number + }, ExtArgs["result"]["pbx_com"]> + composites: {} +} + +export type pbx_comGetPayload = runtime.Types.Result.GetResult + +export type pbx_comCountArgs = + Omit & { + select?: Pbx_comCountAggregateInputType | true + } + +export interface pbx_comDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['pbx_com'], meta: { name: 'pbx_com' } } + /** + * Find zero or one Pbx_com that matches the filter. + * @param {pbx_comFindUniqueArgs} args - Arguments to find a Pbx_com + * @example + * // Get one Pbx_com + * const pbx_com = await prisma.pbx_com.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_comClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Pbx_com that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {pbx_comFindUniqueOrThrowArgs} args - Arguments to find a Pbx_com + * @example + * // Get one Pbx_com + * const pbx_com = await prisma.pbx_com.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_comClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Pbx_com 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 {pbx_comFindFirstArgs} args - Arguments to find a Pbx_com + * @example + * // Get one Pbx_com + * const pbx_com = await prisma.pbx_com.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__pbx_comClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Pbx_com 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 {pbx_comFindFirstOrThrowArgs} args - Arguments to find a Pbx_com + * @example + * // Get one Pbx_com + * const pbx_com = await prisma.pbx_com.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__pbx_comClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Pbx_coms 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 {pbx_comFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Pbx_coms + * const pbx_coms = await prisma.pbx_com.findMany() + * + * // Get first 10 Pbx_coms + * const pbx_coms = await prisma.pbx_com.findMany({ take: 10 }) + * + * // Only select the `id` + * const pbx_comWithIdOnly = await prisma.pbx_com.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Pbx_com. + * @param {pbx_comCreateArgs} args - Arguments to create a Pbx_com. + * @example + * // Create one Pbx_com + * const Pbx_com = await prisma.pbx_com.create({ + * data: { + * // ... data to create a Pbx_com + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_comClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Pbx_coms. + * @param {pbx_comCreateManyArgs} args - Arguments to create many Pbx_coms. + * @example + * // Create many Pbx_coms + * const pbx_com = await prisma.pbx_com.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Pbx_com. + * @param {pbx_comDeleteArgs} args - Arguments to delete one Pbx_com. + * @example + * // Delete one Pbx_com + * const Pbx_com = await prisma.pbx_com.delete({ + * where: { + * // ... filter to delete one Pbx_com + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_comClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Pbx_com. + * @param {pbx_comUpdateArgs} args - Arguments to update one Pbx_com. + * @example + * // Update one Pbx_com + * const pbx_com = await prisma.pbx_com.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_comClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Pbx_coms. + * @param {pbx_comDeleteManyArgs} args - Arguments to filter Pbx_coms to delete. + * @example + * // Delete a few Pbx_coms + * const { count } = await prisma.pbx_com.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Pbx_coms. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {pbx_comUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Pbx_coms + * const pbx_com = await prisma.pbx_com.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Pbx_com. + * @param {pbx_comUpsertArgs} args - Arguments to update or create a Pbx_com. + * @example + * // Update or create a Pbx_com + * const pbx_com = await prisma.pbx_com.upsert({ + * create: { + * // ... data to create a Pbx_com + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Pbx_com we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_comClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Pbx_coms. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {pbx_comCountArgs} args - Arguments to filter Pbx_coms to count. + * @example + * // Count the number of Pbx_coms + * const count = await prisma.pbx_com.count({ + * where: { + * // ... the filter for the Pbx_coms 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 Pbx_com. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Pbx_comAggregateArgs} 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 Pbx_com. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {pbx_comGroupByArgs} 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 pbx_comGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: pbx_comGroupByArgs['orderBy'] } + : { orderBy?: pbx_comGroupByArgs['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 ? GetPbx_comGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the pbx_com model + */ +readonly fields: pbx_comFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for pbx_com. + * 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__pbx_comClient 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 pbx_com model + */ +export interface pbx_comFieldRefs { + readonly id: Prisma.FieldRef<"pbx_com", 'Int'> + readonly account_id: Prisma.FieldRef<"pbx_com", 'Int'> + readonly delivery_id: Prisma.FieldRef<"pbx_com", 'Int'> + readonly service_id: Prisma.FieldRef<"pbx_com", 'Int'> + readonly phone: Prisma.FieldRef<"pbx_com", 'String'> + readonly name: Prisma.FieldRef<"pbx_com", 'String'> + readonly failover: Prisma.FieldRef<"pbx_com", 'String'> + readonly auth_method: Prisma.FieldRef<"pbx_com", 'String'> + readonly password: Prisma.FieldRef<"pbx_com", 'String'> + readonly ip: Prisma.FieldRef<"pbx_com", 'String'> + readonly int_code: Prisma.FieldRef<"pbx_com", 'String'> + readonly country_whitelist: Prisma.FieldRef<"pbx_com", 'String'> + readonly language: Prisma.FieldRef<"pbx_com", 'String'> + readonly call_911: Prisma.FieldRef<"pbx_com", 'String'> + readonly max_calls: Prisma.FieldRef<"pbx_com", 'Int'> + readonly user_context: Prisma.FieldRef<"pbx_com", 'String'> + readonly date_origin: Prisma.FieldRef<"pbx_com", 'String'> + readonly date_update: Prisma.FieldRef<"pbx_com", 'String'> + readonly update_by: Prisma.FieldRef<"pbx_com", 'Int'> +} + + +// Custom InputTypes +/** + * pbx_com findUnique + */ +export type pbx_comFindUniqueArgs = { + /** + * Select specific fields to fetch from the pbx_com + */ + select?: Prisma.pbx_comSelect | null + /** + * Omit specific fields from the pbx_com + */ + omit?: Prisma.pbx_comOmit | null + /** + * Filter, which pbx_com to fetch. + */ + where: Prisma.pbx_comWhereUniqueInput +} + +/** + * pbx_com findUniqueOrThrow + */ +export type pbx_comFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the pbx_com + */ + select?: Prisma.pbx_comSelect | null + /** + * Omit specific fields from the pbx_com + */ + omit?: Prisma.pbx_comOmit | null + /** + * Filter, which pbx_com to fetch. + */ + where: Prisma.pbx_comWhereUniqueInput +} + +/** + * pbx_com findFirst + */ +export type pbx_comFindFirstArgs = { + /** + * Select specific fields to fetch from the pbx_com + */ + select?: Prisma.pbx_comSelect | null + /** + * Omit specific fields from the pbx_com + */ + omit?: Prisma.pbx_comOmit | null + /** + * Filter, which pbx_com to fetch. + */ + where?: Prisma.pbx_comWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_coms to fetch. + */ + orderBy?: Prisma.pbx_comOrderByWithRelationInput | Prisma.pbx_comOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for pbx_coms. + */ + cursor?: Prisma.pbx_comWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_coms 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` pbx_coms. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of pbx_coms. + */ + distinct?: Prisma.Pbx_comScalarFieldEnum | Prisma.Pbx_comScalarFieldEnum[] +} + +/** + * pbx_com findFirstOrThrow + */ +export type pbx_comFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the pbx_com + */ + select?: Prisma.pbx_comSelect | null + /** + * Omit specific fields from the pbx_com + */ + omit?: Prisma.pbx_comOmit | null + /** + * Filter, which pbx_com to fetch. + */ + where?: Prisma.pbx_comWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_coms to fetch. + */ + orderBy?: Prisma.pbx_comOrderByWithRelationInput | Prisma.pbx_comOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for pbx_coms. + */ + cursor?: Prisma.pbx_comWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_coms 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` pbx_coms. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of pbx_coms. + */ + distinct?: Prisma.Pbx_comScalarFieldEnum | Prisma.Pbx_comScalarFieldEnum[] +} + +/** + * pbx_com findMany + */ +export type pbx_comFindManyArgs = { + /** + * Select specific fields to fetch from the pbx_com + */ + select?: Prisma.pbx_comSelect | null + /** + * Omit specific fields from the pbx_com + */ + omit?: Prisma.pbx_comOmit | null + /** + * Filter, which pbx_coms to fetch. + */ + where?: Prisma.pbx_comWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_coms to fetch. + */ + orderBy?: Prisma.pbx_comOrderByWithRelationInput | Prisma.pbx_comOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing pbx_coms. + */ + cursor?: Prisma.pbx_comWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_coms 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` pbx_coms. + */ + skip?: number + distinct?: Prisma.Pbx_comScalarFieldEnum | Prisma.Pbx_comScalarFieldEnum[] +} + +/** + * pbx_com create + */ +export type pbx_comCreateArgs = { + /** + * Select specific fields to fetch from the pbx_com + */ + select?: Prisma.pbx_comSelect | null + /** + * Omit specific fields from the pbx_com + */ + omit?: Prisma.pbx_comOmit | null + /** + * The data needed to create a pbx_com. + */ + data: Prisma.XOR +} + +/** + * pbx_com createMany + */ +export type pbx_comCreateManyArgs = { + /** + * The data used to create many pbx_coms. + */ + data: Prisma.pbx_comCreateManyInput | Prisma.pbx_comCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * pbx_com update + */ +export type pbx_comUpdateArgs = { + /** + * Select specific fields to fetch from the pbx_com + */ + select?: Prisma.pbx_comSelect | null + /** + * Omit specific fields from the pbx_com + */ + omit?: Prisma.pbx_comOmit | null + /** + * The data needed to update a pbx_com. + */ + data: Prisma.XOR + /** + * Choose, which pbx_com to update. + */ + where: Prisma.pbx_comWhereUniqueInput +} + +/** + * pbx_com updateMany + */ +export type pbx_comUpdateManyArgs = { + /** + * The data used to update pbx_coms. + */ + data: Prisma.XOR + /** + * Filter which pbx_coms to update + */ + where?: Prisma.pbx_comWhereInput + /** + * Limit how many pbx_coms to update. + */ + limit?: number +} + +/** + * pbx_com upsert + */ +export type pbx_comUpsertArgs = { + /** + * Select specific fields to fetch from the pbx_com + */ + select?: Prisma.pbx_comSelect | null + /** + * Omit specific fields from the pbx_com + */ + omit?: Prisma.pbx_comOmit | null + /** + * The filter to search for the pbx_com to update in case it exists. + */ + where: Prisma.pbx_comWhereUniqueInput + /** + * In case the pbx_com found by the `where` argument doesn't exist, create a new pbx_com with this data. + */ + create: Prisma.XOR + /** + * In case the pbx_com was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * pbx_com delete + */ +export type pbx_comDeleteArgs = { + /** + * Select specific fields to fetch from the pbx_com + */ + select?: Prisma.pbx_comSelect | null + /** + * Omit specific fields from the pbx_com + */ + omit?: Prisma.pbx_comOmit | null + /** + * Filter which pbx_com to delete. + */ + where: Prisma.pbx_comWhereUniqueInput +} + +/** + * pbx_com deleteMany + */ +export type pbx_comDeleteManyArgs = { + /** + * Filter which pbx_coms to delete + */ + where?: Prisma.pbx_comWhereInput + /** + * Limit how many pbx_coms to delete. + */ + limit?: number +} + +/** + * pbx_com without action + */ +export type pbx_comDefaultArgs = { + /** + * Select specific fields to fetch from the pbx_com + */ + select?: Prisma.pbx_comSelect | null + /** + * Omit specific fields from the pbx_com + */ + omit?: Prisma.pbx_comOmit | null +} diff --git a/prisma/generated/mariadb/models/pbx_com_wl.ts b/prisma/generated/mariadb/models/pbx_com_wl.ts new file mode 100644 index 0000000..f3fad4c --- /dev/null +++ b/prisma/generated/mariadb/models/pbx_com_wl.ts @@ -0,0 +1,1027 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `pbx_com_wl` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model pbx_com_wl + * + */ +export type pbx_com_wlModel = runtime.Types.Result.DefaultSelection + +export type AggregatePbx_com_wl = { + _count: Pbx_com_wlCountAggregateOutputType | null + _avg: Pbx_com_wlAvgAggregateOutputType | null + _sum: Pbx_com_wlSumAggregateOutputType | null + _min: Pbx_com_wlMinAggregateOutputType | null + _max: Pbx_com_wlMaxAggregateOutputType | null +} + +export type Pbx_com_wlAvgAggregateOutputType = { + id: number | null +} + +export type Pbx_com_wlSumAggregateOutputType = { + id: number | null +} + +export type Pbx_com_wlMinAggregateOutputType = { + id: number | null + phone: string | null + country_whitelist: string | null +} + +export type Pbx_com_wlMaxAggregateOutputType = { + id: number | null + phone: string | null + country_whitelist: string | null +} + +export type Pbx_com_wlCountAggregateOutputType = { + id: number + phone: number + country_whitelist: number + _all: number +} + + +export type Pbx_com_wlAvgAggregateInputType = { + id?: true +} + +export type Pbx_com_wlSumAggregateInputType = { + id?: true +} + +export type Pbx_com_wlMinAggregateInputType = { + id?: true + phone?: true + country_whitelist?: true +} + +export type Pbx_com_wlMaxAggregateInputType = { + id?: true + phone?: true + country_whitelist?: true +} + +export type Pbx_com_wlCountAggregateInputType = { + id?: true + phone?: true + country_whitelist?: true + _all?: true +} + +export type Pbx_com_wlAggregateArgs = { + /** + * Filter which pbx_com_wl to aggregate. + */ + where?: Prisma.pbx_com_wlWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_com_wls to fetch. + */ + orderBy?: Prisma.pbx_com_wlOrderByWithRelationInput | Prisma.pbx_com_wlOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.pbx_com_wlWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_com_wls 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` pbx_com_wls. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned pbx_com_wls + **/ + _count?: true | Pbx_com_wlCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Pbx_com_wlAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Pbx_com_wlSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Pbx_com_wlMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Pbx_com_wlMaxAggregateInputType +} + +export type GetPbx_com_wlAggregateType = { + [P in keyof T & keyof AggregatePbx_com_wl]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type pbx_com_wlGroupByArgs = { + where?: Prisma.pbx_com_wlWhereInput + orderBy?: Prisma.pbx_com_wlOrderByWithAggregationInput | Prisma.pbx_com_wlOrderByWithAggregationInput[] + by: Prisma.Pbx_com_wlScalarFieldEnum[] | Prisma.Pbx_com_wlScalarFieldEnum + having?: Prisma.pbx_com_wlScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Pbx_com_wlCountAggregateInputType | true + _avg?: Pbx_com_wlAvgAggregateInputType + _sum?: Pbx_com_wlSumAggregateInputType + _min?: Pbx_com_wlMinAggregateInputType + _max?: Pbx_com_wlMaxAggregateInputType +} + +export type Pbx_com_wlGroupByOutputType = { + id: number + phone: string + country_whitelist: string + _count: Pbx_com_wlCountAggregateOutputType | null + _avg: Pbx_com_wlAvgAggregateOutputType | null + _sum: Pbx_com_wlSumAggregateOutputType | null + _min: Pbx_com_wlMinAggregateOutputType | null + _max: Pbx_com_wlMaxAggregateOutputType | null +} + +type GetPbx_com_wlGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Pbx_com_wlGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type pbx_com_wlWhereInput = { + AND?: Prisma.pbx_com_wlWhereInput | Prisma.pbx_com_wlWhereInput[] + OR?: Prisma.pbx_com_wlWhereInput[] + NOT?: Prisma.pbx_com_wlWhereInput | Prisma.pbx_com_wlWhereInput[] + id?: Prisma.IntFilter<"pbx_com_wl"> | number + phone?: Prisma.StringFilter<"pbx_com_wl"> | string + country_whitelist?: Prisma.StringFilter<"pbx_com_wl"> | string +} + +export type pbx_com_wlOrderByWithRelationInput = { + id?: Prisma.SortOrder + phone?: Prisma.SortOrder + country_whitelist?: Prisma.SortOrder + _relevance?: Prisma.pbx_com_wlOrderByRelevanceInput +} + +export type pbx_com_wlWhereUniqueInput = Prisma.AtLeast<{ + id?: number + phone?: string + AND?: Prisma.pbx_com_wlWhereInput | Prisma.pbx_com_wlWhereInput[] + OR?: Prisma.pbx_com_wlWhereInput[] + NOT?: Prisma.pbx_com_wlWhereInput | Prisma.pbx_com_wlWhereInput[] + country_whitelist?: Prisma.StringFilter<"pbx_com_wl"> | string +}, "id" | "phone"> + +export type pbx_com_wlOrderByWithAggregationInput = { + id?: Prisma.SortOrder + phone?: Prisma.SortOrder + country_whitelist?: Prisma.SortOrder + _count?: Prisma.pbx_com_wlCountOrderByAggregateInput + _avg?: Prisma.pbx_com_wlAvgOrderByAggregateInput + _max?: Prisma.pbx_com_wlMaxOrderByAggregateInput + _min?: Prisma.pbx_com_wlMinOrderByAggregateInput + _sum?: Prisma.pbx_com_wlSumOrderByAggregateInput +} + +export type pbx_com_wlScalarWhereWithAggregatesInput = { + AND?: Prisma.pbx_com_wlScalarWhereWithAggregatesInput | Prisma.pbx_com_wlScalarWhereWithAggregatesInput[] + OR?: Prisma.pbx_com_wlScalarWhereWithAggregatesInput[] + NOT?: Prisma.pbx_com_wlScalarWhereWithAggregatesInput | Prisma.pbx_com_wlScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"pbx_com_wl"> | number + phone?: Prisma.StringWithAggregatesFilter<"pbx_com_wl"> | string + country_whitelist?: Prisma.StringWithAggregatesFilter<"pbx_com_wl"> | string +} + +export type pbx_com_wlCreateInput = { + phone: string + country_whitelist: string +} + +export type pbx_com_wlUncheckedCreateInput = { + id?: number + phone: string + country_whitelist: string +} + +export type pbx_com_wlUpdateInput = { + phone?: Prisma.StringFieldUpdateOperationsInput | string + country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type pbx_com_wlUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type pbx_com_wlCreateManyInput = { + id?: number + phone: string + country_whitelist: string +} + +export type pbx_com_wlUpdateManyMutationInput = { + phone?: Prisma.StringFieldUpdateOperationsInput | string + country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type pbx_com_wlUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type pbx_com_wlOrderByRelevanceInput = { + fields: Prisma.pbx_com_wlOrderByRelevanceFieldEnum | Prisma.pbx_com_wlOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type pbx_com_wlCountOrderByAggregateInput = { + id?: Prisma.SortOrder + phone?: Prisma.SortOrder + country_whitelist?: Prisma.SortOrder +} + +export type pbx_com_wlAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type pbx_com_wlMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + phone?: Prisma.SortOrder + country_whitelist?: Prisma.SortOrder +} + +export type pbx_com_wlMinOrderByAggregateInput = { + id?: Prisma.SortOrder + phone?: Prisma.SortOrder + country_whitelist?: Prisma.SortOrder +} + +export type pbx_com_wlSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type pbx_com_wlSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + phone?: boolean + country_whitelist?: boolean +}, ExtArgs["result"]["pbx_com_wl"]> + + + +export type pbx_com_wlSelectScalar = { + id?: boolean + phone?: boolean + country_whitelist?: boolean +} + +export type pbx_com_wlOmit = runtime.Types.Extensions.GetOmit<"id" | "phone" | "country_whitelist", ExtArgs["result"]["pbx_com_wl"]> + +export type $pbx_com_wlPayload = { + name: "pbx_com_wl" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + phone: string + country_whitelist: string + }, ExtArgs["result"]["pbx_com_wl"]> + composites: {} +} + +export type pbx_com_wlGetPayload = runtime.Types.Result.GetResult + +export type pbx_com_wlCountArgs = + Omit & { + select?: Pbx_com_wlCountAggregateInputType | true + } + +export interface pbx_com_wlDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['pbx_com_wl'], meta: { name: 'pbx_com_wl' } } + /** + * Find zero or one Pbx_com_wl that matches the filter. + * @param {pbx_com_wlFindUniqueArgs} args - Arguments to find a Pbx_com_wl + * @example + * // Get one Pbx_com_wl + * const pbx_com_wl = await prisma.pbx_com_wl.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_com_wlClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Pbx_com_wl that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {pbx_com_wlFindUniqueOrThrowArgs} args - Arguments to find a Pbx_com_wl + * @example + * // Get one Pbx_com_wl + * const pbx_com_wl = await prisma.pbx_com_wl.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_com_wlClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Pbx_com_wl 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 {pbx_com_wlFindFirstArgs} args - Arguments to find a Pbx_com_wl + * @example + * // Get one Pbx_com_wl + * const pbx_com_wl = await prisma.pbx_com_wl.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__pbx_com_wlClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Pbx_com_wl 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 {pbx_com_wlFindFirstOrThrowArgs} args - Arguments to find a Pbx_com_wl + * @example + * // Get one Pbx_com_wl + * const pbx_com_wl = await prisma.pbx_com_wl.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__pbx_com_wlClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Pbx_com_wls 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 {pbx_com_wlFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Pbx_com_wls + * const pbx_com_wls = await prisma.pbx_com_wl.findMany() + * + * // Get first 10 Pbx_com_wls + * const pbx_com_wls = await prisma.pbx_com_wl.findMany({ take: 10 }) + * + * // Only select the `id` + * const pbx_com_wlWithIdOnly = await prisma.pbx_com_wl.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Pbx_com_wl. + * @param {pbx_com_wlCreateArgs} args - Arguments to create a Pbx_com_wl. + * @example + * // Create one Pbx_com_wl + * const Pbx_com_wl = await prisma.pbx_com_wl.create({ + * data: { + * // ... data to create a Pbx_com_wl + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_com_wlClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Pbx_com_wls. + * @param {pbx_com_wlCreateManyArgs} args - Arguments to create many Pbx_com_wls. + * @example + * // Create many Pbx_com_wls + * const pbx_com_wl = await prisma.pbx_com_wl.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Pbx_com_wl. + * @param {pbx_com_wlDeleteArgs} args - Arguments to delete one Pbx_com_wl. + * @example + * // Delete one Pbx_com_wl + * const Pbx_com_wl = await prisma.pbx_com_wl.delete({ + * where: { + * // ... filter to delete one Pbx_com_wl + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_com_wlClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Pbx_com_wl. + * @param {pbx_com_wlUpdateArgs} args - Arguments to update one Pbx_com_wl. + * @example + * // Update one Pbx_com_wl + * const pbx_com_wl = await prisma.pbx_com_wl.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_com_wlClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Pbx_com_wls. + * @param {pbx_com_wlDeleteManyArgs} args - Arguments to filter Pbx_com_wls to delete. + * @example + * // Delete a few Pbx_com_wls + * const { count } = await prisma.pbx_com_wl.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Pbx_com_wls. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {pbx_com_wlUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Pbx_com_wls + * const pbx_com_wl = await prisma.pbx_com_wl.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Pbx_com_wl. + * @param {pbx_com_wlUpsertArgs} args - Arguments to update or create a Pbx_com_wl. + * @example + * // Update or create a Pbx_com_wl + * const pbx_com_wl = await prisma.pbx_com_wl.upsert({ + * create: { + * // ... data to create a Pbx_com_wl + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Pbx_com_wl we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_com_wlClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Pbx_com_wls. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {pbx_com_wlCountArgs} args - Arguments to filter Pbx_com_wls to count. + * @example + * // Count the number of Pbx_com_wls + * const count = await prisma.pbx_com_wl.count({ + * where: { + * // ... the filter for the Pbx_com_wls 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 Pbx_com_wl. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Pbx_com_wlAggregateArgs} 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 Pbx_com_wl. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {pbx_com_wlGroupByArgs} 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 pbx_com_wlGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: pbx_com_wlGroupByArgs['orderBy'] } + : { orderBy?: pbx_com_wlGroupByArgs['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 ? GetPbx_com_wlGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the pbx_com_wl model + */ +readonly fields: pbx_com_wlFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for pbx_com_wl. + * 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__pbx_com_wlClient 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 pbx_com_wl model + */ +export interface pbx_com_wlFieldRefs { + readonly id: Prisma.FieldRef<"pbx_com_wl", 'Int'> + readonly phone: Prisma.FieldRef<"pbx_com_wl", 'String'> + readonly country_whitelist: Prisma.FieldRef<"pbx_com_wl", 'String'> +} + + +// Custom InputTypes +/** + * pbx_com_wl findUnique + */ +export type pbx_com_wlFindUniqueArgs = { + /** + * Select specific fields to fetch from the pbx_com_wl + */ + select?: Prisma.pbx_com_wlSelect | null + /** + * Omit specific fields from the pbx_com_wl + */ + omit?: Prisma.pbx_com_wlOmit | null + /** + * Filter, which pbx_com_wl to fetch. + */ + where: Prisma.pbx_com_wlWhereUniqueInput +} + +/** + * pbx_com_wl findUniqueOrThrow + */ +export type pbx_com_wlFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the pbx_com_wl + */ + select?: Prisma.pbx_com_wlSelect | null + /** + * Omit specific fields from the pbx_com_wl + */ + omit?: Prisma.pbx_com_wlOmit | null + /** + * Filter, which pbx_com_wl to fetch. + */ + where: Prisma.pbx_com_wlWhereUniqueInput +} + +/** + * pbx_com_wl findFirst + */ +export type pbx_com_wlFindFirstArgs = { + /** + * Select specific fields to fetch from the pbx_com_wl + */ + select?: Prisma.pbx_com_wlSelect | null + /** + * Omit specific fields from the pbx_com_wl + */ + omit?: Prisma.pbx_com_wlOmit | null + /** + * Filter, which pbx_com_wl to fetch. + */ + where?: Prisma.pbx_com_wlWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_com_wls to fetch. + */ + orderBy?: Prisma.pbx_com_wlOrderByWithRelationInput | Prisma.pbx_com_wlOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for pbx_com_wls. + */ + cursor?: Prisma.pbx_com_wlWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_com_wls 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` pbx_com_wls. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of pbx_com_wls. + */ + distinct?: Prisma.Pbx_com_wlScalarFieldEnum | Prisma.Pbx_com_wlScalarFieldEnum[] +} + +/** + * pbx_com_wl findFirstOrThrow + */ +export type pbx_com_wlFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the pbx_com_wl + */ + select?: Prisma.pbx_com_wlSelect | null + /** + * Omit specific fields from the pbx_com_wl + */ + omit?: Prisma.pbx_com_wlOmit | null + /** + * Filter, which pbx_com_wl to fetch. + */ + where?: Prisma.pbx_com_wlWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_com_wls to fetch. + */ + orderBy?: Prisma.pbx_com_wlOrderByWithRelationInput | Prisma.pbx_com_wlOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for pbx_com_wls. + */ + cursor?: Prisma.pbx_com_wlWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_com_wls 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` pbx_com_wls. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of pbx_com_wls. + */ + distinct?: Prisma.Pbx_com_wlScalarFieldEnum | Prisma.Pbx_com_wlScalarFieldEnum[] +} + +/** + * pbx_com_wl findMany + */ +export type pbx_com_wlFindManyArgs = { + /** + * Select specific fields to fetch from the pbx_com_wl + */ + select?: Prisma.pbx_com_wlSelect | null + /** + * Omit specific fields from the pbx_com_wl + */ + omit?: Prisma.pbx_com_wlOmit | null + /** + * Filter, which pbx_com_wls to fetch. + */ + where?: Prisma.pbx_com_wlWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_com_wls to fetch. + */ + orderBy?: Prisma.pbx_com_wlOrderByWithRelationInput | Prisma.pbx_com_wlOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing pbx_com_wls. + */ + cursor?: Prisma.pbx_com_wlWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_com_wls 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` pbx_com_wls. + */ + skip?: number + distinct?: Prisma.Pbx_com_wlScalarFieldEnum | Prisma.Pbx_com_wlScalarFieldEnum[] +} + +/** + * pbx_com_wl create + */ +export type pbx_com_wlCreateArgs = { + /** + * Select specific fields to fetch from the pbx_com_wl + */ + select?: Prisma.pbx_com_wlSelect | null + /** + * Omit specific fields from the pbx_com_wl + */ + omit?: Prisma.pbx_com_wlOmit | null + /** + * The data needed to create a pbx_com_wl. + */ + data: Prisma.XOR +} + +/** + * pbx_com_wl createMany + */ +export type pbx_com_wlCreateManyArgs = { + /** + * The data used to create many pbx_com_wls. + */ + data: Prisma.pbx_com_wlCreateManyInput | Prisma.pbx_com_wlCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * pbx_com_wl update + */ +export type pbx_com_wlUpdateArgs = { + /** + * Select specific fields to fetch from the pbx_com_wl + */ + select?: Prisma.pbx_com_wlSelect | null + /** + * Omit specific fields from the pbx_com_wl + */ + omit?: Prisma.pbx_com_wlOmit | null + /** + * The data needed to update a pbx_com_wl. + */ + data: Prisma.XOR + /** + * Choose, which pbx_com_wl to update. + */ + where: Prisma.pbx_com_wlWhereUniqueInput +} + +/** + * pbx_com_wl updateMany + */ +export type pbx_com_wlUpdateManyArgs = { + /** + * The data used to update pbx_com_wls. + */ + data: Prisma.XOR + /** + * Filter which pbx_com_wls to update + */ + where?: Prisma.pbx_com_wlWhereInput + /** + * Limit how many pbx_com_wls to update. + */ + limit?: number +} + +/** + * pbx_com_wl upsert + */ +export type pbx_com_wlUpsertArgs = { + /** + * Select specific fields to fetch from the pbx_com_wl + */ + select?: Prisma.pbx_com_wlSelect | null + /** + * Omit specific fields from the pbx_com_wl + */ + omit?: Prisma.pbx_com_wlOmit | null + /** + * The filter to search for the pbx_com_wl to update in case it exists. + */ + where: Prisma.pbx_com_wlWhereUniqueInput + /** + * In case the pbx_com_wl found by the `where` argument doesn't exist, create a new pbx_com_wl with this data. + */ + create: Prisma.XOR + /** + * In case the pbx_com_wl was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * pbx_com_wl delete + */ +export type pbx_com_wlDeleteArgs = { + /** + * Select specific fields to fetch from the pbx_com_wl + */ + select?: Prisma.pbx_com_wlSelect | null + /** + * Omit specific fields from the pbx_com_wl + */ + omit?: Prisma.pbx_com_wlOmit | null + /** + * Filter which pbx_com_wl to delete. + */ + where: Prisma.pbx_com_wlWhereUniqueInput +} + +/** + * pbx_com_wl deleteMany + */ +export type pbx_com_wlDeleteManyArgs = { + /** + * Filter which pbx_com_wls to delete + */ + where?: Prisma.pbx_com_wlWhereInput + /** + * Limit how many pbx_com_wls to delete. + */ + limit?: number +} + +/** + * pbx_com_wl without action + */ +export type pbx_com_wlDefaultArgs = { + /** + * Select specific fields to fetch from the pbx_com_wl + */ + select?: Prisma.pbx_com_wlSelect | null + /** + * Omit specific fields from the pbx_com_wl + */ + omit?: Prisma.pbx_com_wlOmit | null +} diff --git a/prisma/generated/mariadb/models/pbx_fax.ts b/prisma/generated/mariadb/models/pbx_fax.ts new file mode 100644 index 0000000..3063a0c --- /dev/null +++ b/prisma/generated/mariadb/models/pbx_fax.ts @@ -0,0 +1,1085 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `pbx_fax` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model pbx_fax + * + */ +export type pbx_faxModel = runtime.Types.Result.DefaultSelection + +export type AggregatePbx_fax = { + _count: Pbx_faxCountAggregateOutputType | null + _avg: Pbx_faxAvgAggregateOutputType | null + _sum: Pbx_faxSumAggregateOutputType | null + _min: Pbx_faxMinAggregateOutputType | null + _max: Pbx_faxMaxAggregateOutputType | null +} + +export type Pbx_faxAvgAggregateOutputType = { + id: number | null + service_id: number | null +} + +export type Pbx_faxSumAggregateOutputType = { + id: number | null + service_id: number | null +} + +export type Pbx_faxMinAggregateOutputType = { + id: number | null + number: string | null + email: string | null + description: string | null + service_id: number | null +} + +export type Pbx_faxMaxAggregateOutputType = { + id: number | null + number: string | null + email: string | null + description: string | null + service_id: number | null +} + +export type Pbx_faxCountAggregateOutputType = { + id: number + number: number + email: number + description: number + service_id: number + _all: number +} + + +export type Pbx_faxAvgAggregateInputType = { + id?: true + service_id?: true +} + +export type Pbx_faxSumAggregateInputType = { + id?: true + service_id?: true +} + +export type Pbx_faxMinAggregateInputType = { + id?: true + number?: true + email?: true + description?: true + service_id?: true +} + +export type Pbx_faxMaxAggregateInputType = { + id?: true + number?: true + email?: true + description?: true + service_id?: true +} + +export type Pbx_faxCountAggregateInputType = { + id?: true + number?: true + email?: true + description?: true + service_id?: true + _all?: true +} + +export type Pbx_faxAggregateArgs = { + /** + * Filter which pbx_fax to aggregate. + */ + where?: Prisma.pbx_faxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_faxes to fetch. + */ + orderBy?: Prisma.pbx_faxOrderByWithRelationInput | Prisma.pbx_faxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.pbx_faxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_faxes 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` pbx_faxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned pbx_faxes + **/ + _count?: true | Pbx_faxCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Pbx_faxAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Pbx_faxSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Pbx_faxMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Pbx_faxMaxAggregateInputType +} + +export type GetPbx_faxAggregateType = { + [P in keyof T & keyof AggregatePbx_fax]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type pbx_faxGroupByArgs = { + where?: Prisma.pbx_faxWhereInput + orderBy?: Prisma.pbx_faxOrderByWithAggregationInput | Prisma.pbx_faxOrderByWithAggregationInput[] + by: Prisma.Pbx_faxScalarFieldEnum[] | Prisma.Pbx_faxScalarFieldEnum + having?: Prisma.pbx_faxScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Pbx_faxCountAggregateInputType | true + _avg?: Pbx_faxAvgAggregateInputType + _sum?: Pbx_faxSumAggregateInputType + _min?: Pbx_faxMinAggregateInputType + _max?: Pbx_faxMaxAggregateInputType +} + +export type Pbx_faxGroupByOutputType = { + id: number + number: string + email: string + description: string | null + service_id: number + _count: Pbx_faxCountAggregateOutputType | null + _avg: Pbx_faxAvgAggregateOutputType | null + _sum: Pbx_faxSumAggregateOutputType | null + _min: Pbx_faxMinAggregateOutputType | null + _max: Pbx_faxMaxAggregateOutputType | null +} + +type GetPbx_faxGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Pbx_faxGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type pbx_faxWhereInput = { + AND?: Prisma.pbx_faxWhereInput | Prisma.pbx_faxWhereInput[] + OR?: Prisma.pbx_faxWhereInput[] + NOT?: Prisma.pbx_faxWhereInput | Prisma.pbx_faxWhereInput[] + id?: Prisma.IntFilter<"pbx_fax"> | number + number?: Prisma.StringFilter<"pbx_fax"> | string + email?: Prisma.StringFilter<"pbx_fax"> | string + description?: Prisma.StringNullableFilter<"pbx_fax"> | string | null + service_id?: Prisma.IntFilter<"pbx_fax"> | number +} + +export type pbx_faxOrderByWithRelationInput = { + id?: Prisma.SortOrder + number?: Prisma.SortOrder + email?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + service_id?: Prisma.SortOrder + _relevance?: Prisma.pbx_faxOrderByRelevanceInput +} + +export type pbx_faxWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.pbx_faxWhereInput | Prisma.pbx_faxWhereInput[] + OR?: Prisma.pbx_faxWhereInput[] + NOT?: Prisma.pbx_faxWhereInput | Prisma.pbx_faxWhereInput[] + number?: Prisma.StringFilter<"pbx_fax"> | string + email?: Prisma.StringFilter<"pbx_fax"> | string + description?: Prisma.StringNullableFilter<"pbx_fax"> | string | null + service_id?: Prisma.IntFilter<"pbx_fax"> | number +}, "id"> + +export type pbx_faxOrderByWithAggregationInput = { + id?: Prisma.SortOrder + number?: Prisma.SortOrder + email?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + service_id?: Prisma.SortOrder + _count?: Prisma.pbx_faxCountOrderByAggregateInput + _avg?: Prisma.pbx_faxAvgOrderByAggregateInput + _max?: Prisma.pbx_faxMaxOrderByAggregateInput + _min?: Prisma.pbx_faxMinOrderByAggregateInput + _sum?: Prisma.pbx_faxSumOrderByAggregateInput +} + +export type pbx_faxScalarWhereWithAggregatesInput = { + AND?: Prisma.pbx_faxScalarWhereWithAggregatesInput | Prisma.pbx_faxScalarWhereWithAggregatesInput[] + OR?: Prisma.pbx_faxScalarWhereWithAggregatesInput[] + NOT?: Prisma.pbx_faxScalarWhereWithAggregatesInput | Prisma.pbx_faxScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"pbx_fax"> | number + number?: Prisma.StringWithAggregatesFilter<"pbx_fax"> | string + email?: Prisma.StringWithAggregatesFilter<"pbx_fax"> | string + description?: Prisma.StringNullableWithAggregatesFilter<"pbx_fax"> | string | null + service_id?: Prisma.IntWithAggregatesFilter<"pbx_fax"> | number +} + +export type pbx_faxCreateInput = { + number: string + email: string + description?: string | null + service_id?: number +} + +export type pbx_faxUncheckedCreateInput = { + id?: number + number: string + email: string + description?: string | null + service_id?: number +} + +export type pbx_faxUpdateInput = { + number?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + service_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type pbx_faxUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + number?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + service_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type pbx_faxCreateManyInput = { + id?: number + number: string + email: string + description?: string | null + service_id?: number +} + +export type pbx_faxUpdateManyMutationInput = { + number?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + service_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type pbx_faxUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + number?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + service_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type pbx_faxOrderByRelevanceInput = { + fields: Prisma.pbx_faxOrderByRelevanceFieldEnum | Prisma.pbx_faxOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type pbx_faxCountOrderByAggregateInput = { + id?: Prisma.SortOrder + number?: Prisma.SortOrder + email?: Prisma.SortOrder + description?: Prisma.SortOrder + service_id?: Prisma.SortOrder +} + +export type pbx_faxAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder +} + +export type pbx_faxMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + number?: Prisma.SortOrder + email?: Prisma.SortOrder + description?: Prisma.SortOrder + service_id?: Prisma.SortOrder +} + +export type pbx_faxMinOrderByAggregateInput = { + id?: Prisma.SortOrder + number?: Prisma.SortOrder + email?: Prisma.SortOrder + description?: Prisma.SortOrder + service_id?: Prisma.SortOrder +} + +export type pbx_faxSumOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder +} + + + +export type pbx_faxSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + number?: boolean + email?: boolean + description?: boolean + service_id?: boolean +}, ExtArgs["result"]["pbx_fax"]> + + + +export type pbx_faxSelectScalar = { + id?: boolean + number?: boolean + email?: boolean + description?: boolean + service_id?: boolean +} + +export type pbx_faxOmit = runtime.Types.Extensions.GetOmit<"id" | "number" | "email" | "description" | "service_id", ExtArgs["result"]["pbx_fax"]> + +export type $pbx_faxPayload = { + name: "pbx_fax" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + number: string + email: string + description: string | null + service_id: number + }, ExtArgs["result"]["pbx_fax"]> + composites: {} +} + +export type pbx_faxGetPayload = runtime.Types.Result.GetResult + +export type pbx_faxCountArgs = + Omit & { + select?: Pbx_faxCountAggregateInputType | true + } + +export interface pbx_faxDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['pbx_fax'], meta: { name: 'pbx_fax' } } + /** + * Find zero or one Pbx_fax that matches the filter. + * @param {pbx_faxFindUniqueArgs} args - Arguments to find a Pbx_fax + * @example + * // Get one Pbx_fax + * const pbx_fax = await prisma.pbx_fax.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_faxClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Pbx_fax that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {pbx_faxFindUniqueOrThrowArgs} args - Arguments to find a Pbx_fax + * @example + * // Get one Pbx_fax + * const pbx_fax = await prisma.pbx_fax.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_faxClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Pbx_fax 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 {pbx_faxFindFirstArgs} args - Arguments to find a Pbx_fax + * @example + * // Get one Pbx_fax + * const pbx_fax = await prisma.pbx_fax.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__pbx_faxClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Pbx_fax 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 {pbx_faxFindFirstOrThrowArgs} args - Arguments to find a Pbx_fax + * @example + * // Get one Pbx_fax + * const pbx_fax = await prisma.pbx_fax.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__pbx_faxClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Pbx_faxes 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 {pbx_faxFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Pbx_faxes + * const pbx_faxes = await prisma.pbx_fax.findMany() + * + * // Get first 10 Pbx_faxes + * const pbx_faxes = await prisma.pbx_fax.findMany({ take: 10 }) + * + * // Only select the `id` + * const pbx_faxWithIdOnly = await prisma.pbx_fax.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Pbx_fax. + * @param {pbx_faxCreateArgs} args - Arguments to create a Pbx_fax. + * @example + * // Create one Pbx_fax + * const Pbx_fax = await prisma.pbx_fax.create({ + * data: { + * // ... data to create a Pbx_fax + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_faxClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Pbx_faxes. + * @param {pbx_faxCreateManyArgs} args - Arguments to create many Pbx_faxes. + * @example + * // Create many Pbx_faxes + * const pbx_fax = await prisma.pbx_fax.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Pbx_fax. + * @param {pbx_faxDeleteArgs} args - Arguments to delete one Pbx_fax. + * @example + * // Delete one Pbx_fax + * const Pbx_fax = await prisma.pbx_fax.delete({ + * where: { + * // ... filter to delete one Pbx_fax + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_faxClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Pbx_fax. + * @param {pbx_faxUpdateArgs} args - Arguments to update one Pbx_fax. + * @example + * // Update one Pbx_fax + * const pbx_fax = await prisma.pbx_fax.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_faxClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Pbx_faxes. + * @param {pbx_faxDeleteManyArgs} args - Arguments to filter Pbx_faxes to delete. + * @example + * // Delete a few Pbx_faxes + * const { count } = await prisma.pbx_fax.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Pbx_faxes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {pbx_faxUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Pbx_faxes + * const pbx_fax = await prisma.pbx_fax.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Pbx_fax. + * @param {pbx_faxUpsertArgs} args - Arguments to update or create a Pbx_fax. + * @example + * // Update or create a Pbx_fax + * const pbx_fax = await prisma.pbx_fax.upsert({ + * create: { + * // ... data to create a Pbx_fax + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Pbx_fax we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__pbx_faxClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Pbx_faxes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {pbx_faxCountArgs} args - Arguments to filter Pbx_faxes to count. + * @example + * // Count the number of Pbx_faxes + * const count = await prisma.pbx_fax.count({ + * where: { + * // ... the filter for the Pbx_faxes 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 Pbx_fax. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Pbx_faxAggregateArgs} 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 Pbx_fax. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {pbx_faxGroupByArgs} 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 pbx_faxGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: pbx_faxGroupByArgs['orderBy'] } + : { orderBy?: pbx_faxGroupByArgs['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 ? GetPbx_faxGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the pbx_fax model + */ +readonly fields: pbx_faxFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for pbx_fax. + * 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__pbx_faxClient 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 pbx_fax model + */ +export interface pbx_faxFieldRefs { + readonly id: Prisma.FieldRef<"pbx_fax", 'Int'> + readonly number: Prisma.FieldRef<"pbx_fax", 'String'> + readonly email: Prisma.FieldRef<"pbx_fax", 'String'> + readonly description: Prisma.FieldRef<"pbx_fax", 'String'> + readonly service_id: Prisma.FieldRef<"pbx_fax", 'Int'> +} + + +// Custom InputTypes +/** + * pbx_fax findUnique + */ +export type pbx_faxFindUniqueArgs = { + /** + * Select specific fields to fetch from the pbx_fax + */ + select?: Prisma.pbx_faxSelect | null + /** + * Omit specific fields from the pbx_fax + */ + omit?: Prisma.pbx_faxOmit | null + /** + * Filter, which pbx_fax to fetch. + */ + where: Prisma.pbx_faxWhereUniqueInput +} + +/** + * pbx_fax findUniqueOrThrow + */ +export type pbx_faxFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the pbx_fax + */ + select?: Prisma.pbx_faxSelect | null + /** + * Omit specific fields from the pbx_fax + */ + omit?: Prisma.pbx_faxOmit | null + /** + * Filter, which pbx_fax to fetch. + */ + where: Prisma.pbx_faxWhereUniqueInput +} + +/** + * pbx_fax findFirst + */ +export type pbx_faxFindFirstArgs = { + /** + * Select specific fields to fetch from the pbx_fax + */ + select?: Prisma.pbx_faxSelect | null + /** + * Omit specific fields from the pbx_fax + */ + omit?: Prisma.pbx_faxOmit | null + /** + * Filter, which pbx_fax to fetch. + */ + where?: Prisma.pbx_faxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_faxes to fetch. + */ + orderBy?: Prisma.pbx_faxOrderByWithRelationInput | Prisma.pbx_faxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for pbx_faxes. + */ + cursor?: Prisma.pbx_faxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_faxes 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` pbx_faxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of pbx_faxes. + */ + distinct?: Prisma.Pbx_faxScalarFieldEnum | Prisma.Pbx_faxScalarFieldEnum[] +} + +/** + * pbx_fax findFirstOrThrow + */ +export type pbx_faxFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the pbx_fax + */ + select?: Prisma.pbx_faxSelect | null + /** + * Omit specific fields from the pbx_fax + */ + omit?: Prisma.pbx_faxOmit | null + /** + * Filter, which pbx_fax to fetch. + */ + where?: Prisma.pbx_faxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_faxes to fetch. + */ + orderBy?: Prisma.pbx_faxOrderByWithRelationInput | Prisma.pbx_faxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for pbx_faxes. + */ + cursor?: Prisma.pbx_faxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_faxes 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` pbx_faxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of pbx_faxes. + */ + distinct?: Prisma.Pbx_faxScalarFieldEnum | Prisma.Pbx_faxScalarFieldEnum[] +} + +/** + * pbx_fax findMany + */ +export type pbx_faxFindManyArgs = { + /** + * Select specific fields to fetch from the pbx_fax + */ + select?: Prisma.pbx_faxSelect | null + /** + * Omit specific fields from the pbx_fax + */ + omit?: Prisma.pbx_faxOmit | null + /** + * Filter, which pbx_faxes to fetch. + */ + where?: Prisma.pbx_faxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of pbx_faxes to fetch. + */ + orderBy?: Prisma.pbx_faxOrderByWithRelationInput | Prisma.pbx_faxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing pbx_faxes. + */ + cursor?: Prisma.pbx_faxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` pbx_faxes 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` pbx_faxes. + */ + skip?: number + distinct?: Prisma.Pbx_faxScalarFieldEnum | Prisma.Pbx_faxScalarFieldEnum[] +} + +/** + * pbx_fax create + */ +export type pbx_faxCreateArgs = { + /** + * Select specific fields to fetch from the pbx_fax + */ + select?: Prisma.pbx_faxSelect | null + /** + * Omit specific fields from the pbx_fax + */ + omit?: Prisma.pbx_faxOmit | null + /** + * The data needed to create a pbx_fax. + */ + data: Prisma.XOR +} + +/** + * pbx_fax createMany + */ +export type pbx_faxCreateManyArgs = { + /** + * The data used to create many pbx_faxes. + */ + data: Prisma.pbx_faxCreateManyInput | Prisma.pbx_faxCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * pbx_fax update + */ +export type pbx_faxUpdateArgs = { + /** + * Select specific fields to fetch from the pbx_fax + */ + select?: Prisma.pbx_faxSelect | null + /** + * Omit specific fields from the pbx_fax + */ + omit?: Prisma.pbx_faxOmit | null + /** + * The data needed to update a pbx_fax. + */ + data: Prisma.XOR + /** + * Choose, which pbx_fax to update. + */ + where: Prisma.pbx_faxWhereUniqueInput +} + +/** + * pbx_fax updateMany + */ +export type pbx_faxUpdateManyArgs = { + /** + * The data used to update pbx_faxes. + */ + data: Prisma.XOR + /** + * Filter which pbx_faxes to update + */ + where?: Prisma.pbx_faxWhereInput + /** + * Limit how many pbx_faxes to update. + */ + limit?: number +} + +/** + * pbx_fax upsert + */ +export type pbx_faxUpsertArgs = { + /** + * Select specific fields to fetch from the pbx_fax + */ + select?: Prisma.pbx_faxSelect | null + /** + * Omit specific fields from the pbx_fax + */ + omit?: Prisma.pbx_faxOmit | null + /** + * The filter to search for the pbx_fax to update in case it exists. + */ + where: Prisma.pbx_faxWhereUniqueInput + /** + * In case the pbx_fax found by the `where` argument doesn't exist, create a new pbx_fax with this data. + */ + create: Prisma.XOR + /** + * In case the pbx_fax was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * pbx_fax delete + */ +export type pbx_faxDeleteArgs = { + /** + * Select specific fields to fetch from the pbx_fax + */ + select?: Prisma.pbx_faxSelect | null + /** + * Omit specific fields from the pbx_fax + */ + omit?: Prisma.pbx_faxOmit | null + /** + * Filter which pbx_fax to delete. + */ + where: Prisma.pbx_faxWhereUniqueInput +} + +/** + * pbx_fax deleteMany + */ +export type pbx_faxDeleteManyArgs = { + /** + * Filter which pbx_faxes to delete + */ + where?: Prisma.pbx_faxWhereInput + /** + * Limit how many pbx_faxes to delete. + */ + limit?: number +} + +/** + * pbx_fax without action + */ +export type pbx_faxDefaultArgs = { + /** + * Select specific fields to fetch from the pbx_fax + */ + select?: Prisma.pbx_faxSelect | null + /** + * Omit specific fields from the pbx_fax + */ + omit?: Prisma.pbx_faxOmit | null +} diff --git a/prisma/generated/mariadb/models/phone.ts b/prisma/generated/mariadb/models/phone.ts new file mode 100644 index 0000000..ba0c33f --- /dev/null +++ b/prisma/generated/mariadb/models/phone.ts @@ -0,0 +1,1085 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `phone` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model phone + * + */ +export type phoneModel = runtime.Types.Result.DefaultSelection + +export type AggregatePhone = { + _count: PhoneCountAggregateOutputType | null + _avg: PhoneAvgAggregateOutputType | null + _sum: PhoneSumAggregateOutputType | null + _min: PhoneMinAggregateOutputType | null + _max: PhoneMaxAggregateOutputType | null +} + +export type PhoneAvgAggregateOutputType = { + id: number | null + service_id: number | null +} + +export type PhoneSumAggregateOutputType = { + id: number | null + service_id: number | null +} + +export type PhoneMinAggregateOutputType = { + id: number | null + service_id: number | null + phone_num: string | null + note: string | null + fournisseur: string | null +} + +export type PhoneMaxAggregateOutputType = { + id: number | null + service_id: number | null + phone_num: string | null + note: string | null + fournisseur: string | null +} + +export type PhoneCountAggregateOutputType = { + id: number + service_id: number + phone_num: number + note: number + fournisseur: number + _all: number +} + + +export type PhoneAvgAggregateInputType = { + id?: true + service_id?: true +} + +export type PhoneSumAggregateInputType = { + id?: true + service_id?: true +} + +export type PhoneMinAggregateInputType = { + id?: true + service_id?: true + phone_num?: true + note?: true + fournisseur?: true +} + +export type PhoneMaxAggregateInputType = { + id?: true + service_id?: true + phone_num?: true + note?: true + fournisseur?: true +} + +export type PhoneCountAggregateInputType = { + id?: true + service_id?: true + phone_num?: true + note?: true + fournisseur?: true + _all?: true +} + +export type PhoneAggregateArgs = { + /** + * Filter which phone to aggregate. + */ + where?: Prisma.phoneWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phones to fetch. + */ + orderBy?: Prisma.phoneOrderByWithRelationInput | Prisma.phoneOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.phoneWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phones 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` phones. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned phones + **/ + _count?: true | PhoneCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: PhoneAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: PhoneSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: PhoneMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: PhoneMaxAggregateInputType +} + +export type GetPhoneAggregateType = { + [P in keyof T & keyof AggregatePhone]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type phoneGroupByArgs = { + where?: Prisma.phoneWhereInput + orderBy?: Prisma.phoneOrderByWithAggregationInput | Prisma.phoneOrderByWithAggregationInput[] + by: Prisma.PhoneScalarFieldEnum[] | Prisma.PhoneScalarFieldEnum + having?: Prisma.phoneScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: PhoneCountAggregateInputType | true + _avg?: PhoneAvgAggregateInputType + _sum?: PhoneSumAggregateInputType + _min?: PhoneMinAggregateInputType + _max?: PhoneMaxAggregateInputType +} + +export type PhoneGroupByOutputType = { + id: number + service_id: number + phone_num: string + note: string | null + fournisseur: string | null + _count: PhoneCountAggregateOutputType | null + _avg: PhoneAvgAggregateOutputType | null + _sum: PhoneSumAggregateOutputType | null + _min: PhoneMinAggregateOutputType | null + _max: PhoneMaxAggregateOutputType | null +} + +type GetPhoneGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof PhoneGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type phoneWhereInput = { + AND?: Prisma.phoneWhereInput | Prisma.phoneWhereInput[] + OR?: Prisma.phoneWhereInput[] + NOT?: Prisma.phoneWhereInput | Prisma.phoneWhereInput[] + id?: Prisma.IntFilter<"phone"> | number + service_id?: Prisma.IntFilter<"phone"> | number + phone_num?: Prisma.StringFilter<"phone"> | string + note?: Prisma.StringNullableFilter<"phone"> | string | null + fournisseur?: Prisma.StringNullableFilter<"phone"> | string | null +} + +export type phoneOrderByWithRelationInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone_num?: Prisma.SortOrder + note?: Prisma.SortOrderInput | Prisma.SortOrder + fournisseur?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.phoneOrderByRelevanceInput +} + +export type phoneWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.phoneWhereInput | Prisma.phoneWhereInput[] + OR?: Prisma.phoneWhereInput[] + NOT?: Prisma.phoneWhereInput | Prisma.phoneWhereInput[] + service_id?: Prisma.IntFilter<"phone"> | number + phone_num?: Prisma.StringFilter<"phone"> | string + note?: Prisma.StringNullableFilter<"phone"> | string | null + fournisseur?: Prisma.StringNullableFilter<"phone"> | string | null +}, "id"> + +export type phoneOrderByWithAggregationInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone_num?: Prisma.SortOrder + note?: Prisma.SortOrderInput | Prisma.SortOrder + fournisseur?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.phoneCountOrderByAggregateInput + _avg?: Prisma.phoneAvgOrderByAggregateInput + _max?: Prisma.phoneMaxOrderByAggregateInput + _min?: Prisma.phoneMinOrderByAggregateInput + _sum?: Prisma.phoneSumOrderByAggregateInput +} + +export type phoneScalarWhereWithAggregatesInput = { + AND?: Prisma.phoneScalarWhereWithAggregatesInput | Prisma.phoneScalarWhereWithAggregatesInput[] + OR?: Prisma.phoneScalarWhereWithAggregatesInput[] + NOT?: Prisma.phoneScalarWhereWithAggregatesInput | Prisma.phoneScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"phone"> | number + service_id?: Prisma.IntWithAggregatesFilter<"phone"> | number + phone_num?: Prisma.StringWithAggregatesFilter<"phone"> | string + note?: Prisma.StringNullableWithAggregatesFilter<"phone"> | string | null + fournisseur?: Prisma.StringNullableWithAggregatesFilter<"phone"> | string | null +} + +export type phoneCreateInput = { + service_id: number + phone_num: string + note?: string | null + fournisseur?: string | null +} + +export type phoneUncheckedCreateInput = { + id?: number + service_id: number + phone_num: string + note?: string | null + fournisseur?: string | null +} + +export type phoneUpdateInput = { + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone_num?: Prisma.StringFieldUpdateOperationsInput | string + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type phoneUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone_num?: Prisma.StringFieldUpdateOperationsInput | string + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type phoneCreateManyInput = { + id?: number + service_id: number + phone_num: string + note?: string | null + fournisseur?: string | null +} + +export type phoneUpdateManyMutationInput = { + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone_num?: Prisma.StringFieldUpdateOperationsInput | string + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type phoneUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone_num?: Prisma.StringFieldUpdateOperationsInput | string + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type phoneOrderByRelevanceInput = { + fields: Prisma.phoneOrderByRelevanceFieldEnum | Prisma.phoneOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type phoneCountOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone_num?: Prisma.SortOrder + note?: Prisma.SortOrder + fournisseur?: Prisma.SortOrder +} + +export type phoneAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder +} + +export type phoneMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone_num?: Prisma.SortOrder + note?: Prisma.SortOrder + fournisseur?: Prisma.SortOrder +} + +export type phoneMinOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone_num?: Prisma.SortOrder + note?: Prisma.SortOrder + fournisseur?: Prisma.SortOrder +} + +export type phoneSumOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder +} + + + +export type phoneSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + service_id?: boolean + phone_num?: boolean + note?: boolean + fournisseur?: boolean +}, ExtArgs["result"]["phone"]> + + + +export type phoneSelectScalar = { + id?: boolean + service_id?: boolean + phone_num?: boolean + note?: boolean + fournisseur?: boolean +} + +export type phoneOmit = runtime.Types.Extensions.GetOmit<"id" | "service_id" | "phone_num" | "note" | "fournisseur", ExtArgs["result"]["phone"]> + +export type $phonePayload = { + name: "phone" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + service_id: number + phone_num: string + note: string | null + fournisseur: string | null + }, ExtArgs["result"]["phone"]> + composites: {} +} + +export type phoneGetPayload = runtime.Types.Result.GetResult + +export type phoneCountArgs = + Omit & { + select?: PhoneCountAggregateInputType | true + } + +export interface phoneDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['phone'], meta: { name: 'phone' } } + /** + * Find zero or one Phone that matches the filter. + * @param {phoneFindUniqueArgs} args - Arguments to find a Phone + * @example + * // Get one Phone + * const phone = await prisma.phone.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Phone that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {phoneFindUniqueOrThrowArgs} args - Arguments to find a Phone + * @example + * // Get one Phone + * const phone = await prisma.phone.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phone 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 {phoneFindFirstArgs} args - Arguments to find a Phone + * @example + * // Get one Phone + * const phone = await prisma.phone.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phone 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 {phoneFindFirstOrThrowArgs} args - Arguments to find a Phone + * @example + * // Get one Phone + * const phone = await prisma.phone.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Phones 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 {phoneFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Phones + * const phones = await prisma.phone.findMany() + * + * // Get first 10 Phones + * const phones = await prisma.phone.findMany({ take: 10 }) + * + * // Only select the `id` + * const phoneWithIdOnly = await prisma.phone.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Phone. + * @param {phoneCreateArgs} args - Arguments to create a Phone. + * @example + * // Create one Phone + * const Phone = await prisma.phone.create({ + * data: { + * // ... data to create a Phone + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Phones. + * @param {phoneCreateManyArgs} args - Arguments to create many Phones. + * @example + * // Create many Phones + * const phone = await prisma.phone.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Phone. + * @param {phoneDeleteArgs} args - Arguments to delete one Phone. + * @example + * // Delete one Phone + * const Phone = await prisma.phone.delete({ + * where: { + * // ... filter to delete one Phone + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Phone. + * @param {phoneUpdateArgs} args - Arguments to update one Phone. + * @example + * // Update one Phone + * const phone = await prisma.phone.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Phones. + * @param {phoneDeleteManyArgs} args - Arguments to filter Phones to delete. + * @example + * // Delete a few Phones + * const { count } = await prisma.phone.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Phones. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phoneUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Phones + * const phone = await prisma.phone.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Phone. + * @param {phoneUpsertArgs} args - Arguments to update or create a Phone. + * @example + * // Update or create a Phone + * const phone = await prisma.phone.upsert({ + * create: { + * // ... data to create a Phone + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Phone we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__phoneClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Phones. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phoneCountArgs} args - Arguments to filter Phones to count. + * @example + * // Count the number of Phones + * const count = await prisma.phone.count({ + * where: { + * // ... the filter for the Phones 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 Phone. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PhoneAggregateArgs} 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 Phone. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phoneGroupByArgs} 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 phoneGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: phoneGroupByArgs['orderBy'] } + : { orderBy?: phoneGroupByArgs['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 ? GetPhoneGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the phone model + */ +readonly fields: phoneFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for phone. + * 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__phoneClient 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 phone model + */ +export interface phoneFieldRefs { + readonly id: Prisma.FieldRef<"phone", 'Int'> + readonly service_id: Prisma.FieldRef<"phone", 'Int'> + readonly phone_num: Prisma.FieldRef<"phone", 'String'> + readonly note: Prisma.FieldRef<"phone", 'String'> + readonly fournisseur: Prisma.FieldRef<"phone", 'String'> +} + + +// Custom InputTypes +/** + * phone findUnique + */ +export type phoneFindUniqueArgs = { + /** + * Select specific fields to fetch from the phone + */ + select?: Prisma.phoneSelect | null + /** + * Omit specific fields from the phone + */ + omit?: Prisma.phoneOmit | null + /** + * Filter, which phone to fetch. + */ + where: Prisma.phoneWhereUniqueInput +} + +/** + * phone findUniqueOrThrow + */ +export type phoneFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the phone + */ + select?: Prisma.phoneSelect | null + /** + * Omit specific fields from the phone + */ + omit?: Prisma.phoneOmit | null + /** + * Filter, which phone to fetch. + */ + where: Prisma.phoneWhereUniqueInput +} + +/** + * phone findFirst + */ +export type phoneFindFirstArgs = { + /** + * Select specific fields to fetch from the phone + */ + select?: Prisma.phoneSelect | null + /** + * Omit specific fields from the phone + */ + omit?: Prisma.phoneOmit | null + /** + * Filter, which phone to fetch. + */ + where?: Prisma.phoneWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phones to fetch. + */ + orderBy?: Prisma.phoneOrderByWithRelationInput | Prisma.phoneOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phones. + */ + cursor?: Prisma.phoneWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phones 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` phones. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phones. + */ + distinct?: Prisma.PhoneScalarFieldEnum | Prisma.PhoneScalarFieldEnum[] +} + +/** + * phone findFirstOrThrow + */ +export type phoneFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the phone + */ + select?: Prisma.phoneSelect | null + /** + * Omit specific fields from the phone + */ + omit?: Prisma.phoneOmit | null + /** + * Filter, which phone to fetch. + */ + where?: Prisma.phoneWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phones to fetch. + */ + orderBy?: Prisma.phoneOrderByWithRelationInput | Prisma.phoneOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phones. + */ + cursor?: Prisma.phoneWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phones 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` phones. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phones. + */ + distinct?: Prisma.PhoneScalarFieldEnum | Prisma.PhoneScalarFieldEnum[] +} + +/** + * phone findMany + */ +export type phoneFindManyArgs = { + /** + * Select specific fields to fetch from the phone + */ + select?: Prisma.phoneSelect | null + /** + * Omit specific fields from the phone + */ + omit?: Prisma.phoneOmit | null + /** + * Filter, which phones to fetch. + */ + where?: Prisma.phoneWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phones to fetch. + */ + orderBy?: Prisma.phoneOrderByWithRelationInput | Prisma.phoneOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing phones. + */ + cursor?: Prisma.phoneWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phones 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` phones. + */ + skip?: number + distinct?: Prisma.PhoneScalarFieldEnum | Prisma.PhoneScalarFieldEnum[] +} + +/** + * phone create + */ +export type phoneCreateArgs = { + /** + * Select specific fields to fetch from the phone + */ + select?: Prisma.phoneSelect | null + /** + * Omit specific fields from the phone + */ + omit?: Prisma.phoneOmit | null + /** + * The data needed to create a phone. + */ + data: Prisma.XOR +} + +/** + * phone createMany + */ +export type phoneCreateManyArgs = { + /** + * The data used to create many phones. + */ + data: Prisma.phoneCreateManyInput | Prisma.phoneCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * phone update + */ +export type phoneUpdateArgs = { + /** + * Select specific fields to fetch from the phone + */ + select?: Prisma.phoneSelect | null + /** + * Omit specific fields from the phone + */ + omit?: Prisma.phoneOmit | null + /** + * The data needed to update a phone. + */ + data: Prisma.XOR + /** + * Choose, which phone to update. + */ + where: Prisma.phoneWhereUniqueInput +} + +/** + * phone updateMany + */ +export type phoneUpdateManyArgs = { + /** + * The data used to update phones. + */ + data: Prisma.XOR + /** + * Filter which phones to update + */ + where?: Prisma.phoneWhereInput + /** + * Limit how many phones to update. + */ + limit?: number +} + +/** + * phone upsert + */ +export type phoneUpsertArgs = { + /** + * Select specific fields to fetch from the phone + */ + select?: Prisma.phoneSelect | null + /** + * Omit specific fields from the phone + */ + omit?: Prisma.phoneOmit | null + /** + * The filter to search for the phone to update in case it exists. + */ + where: Prisma.phoneWhereUniqueInput + /** + * In case the phone found by the `where` argument doesn't exist, create a new phone with this data. + */ + create: Prisma.XOR + /** + * In case the phone was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * phone delete + */ +export type phoneDeleteArgs = { + /** + * Select specific fields to fetch from the phone + */ + select?: Prisma.phoneSelect | null + /** + * Omit specific fields from the phone + */ + omit?: Prisma.phoneOmit | null + /** + * Filter which phone to delete. + */ + where: Prisma.phoneWhereUniqueInput +} + +/** + * phone deleteMany + */ +export type phoneDeleteManyArgs = { + /** + * Filter which phones to delete + */ + where?: Prisma.phoneWhereInput + /** + * Limit how many phones to delete. + */ + limit?: number +} + +/** + * phone without action + */ +export type phoneDefaultArgs = { + /** + * Select specific fields to fetch from the phone + */ + select?: Prisma.phoneSelect | null + /** + * Omit specific fields from the phone + */ + omit?: Prisma.phoneOmit | null +} diff --git a/prisma/generated/mariadb/models/phone_addr.ts b/prisma/generated/mariadb/models/phone_addr.ts new file mode 100644 index 0000000..136daea --- /dev/null +++ b/prisma/generated/mariadb/models/phone_addr.ts @@ -0,0 +1,1349 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `phone_addr` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model phone_addr + * + */ +export type phone_addrModel = runtime.Types.Result.DefaultSelection + +export type AggregatePhone_addr = { + _count: Phone_addrCountAggregateOutputType | null + _avg: Phone_addrAvgAggregateOutputType | null + _sum: Phone_addrSumAggregateOutputType | null + _min: Phone_addrMinAggregateOutputType | null + _max: Phone_addrMaxAggregateOutputType | null +} + +export type Phone_addrAvgAggregateOutputType = { + id: number | null + account_id: number | null +} + +export type Phone_addrSumAggregateOutputType = { + id: number | null + account_id: number | null +} + +export type Phone_addrMinAggregateOutputType = { + id: number | null + account_id: number | null + phone: string | null + street_number: string | null + apt: string | null + street_name: string | null + city: string | null + state: string | null + zip: string | null + first_name: string | null + last_name: string | null + info: string | null + enhanced_capable: $Enums.phone_addr_enhanced_capable | null + code_cauca: string | null + class_service: string | null +} + +export type Phone_addrMaxAggregateOutputType = { + id: number | null + account_id: number | null + phone: string | null + street_number: string | null + apt: string | null + street_name: string | null + city: string | null + state: string | null + zip: string | null + first_name: string | null + last_name: string | null + info: string | null + enhanced_capable: $Enums.phone_addr_enhanced_capable | null + code_cauca: string | null + class_service: string | null +} + +export type Phone_addrCountAggregateOutputType = { + id: number + account_id: number + phone: number + street_number: number + apt: number + street_name: number + city: number + state: number + zip: number + first_name: number + last_name: number + info: number + enhanced_capable: number + code_cauca: number + class_service: number + _all: number +} + + +export type Phone_addrAvgAggregateInputType = { + id?: true + account_id?: true +} + +export type Phone_addrSumAggregateInputType = { + id?: true + account_id?: true +} + +export type Phone_addrMinAggregateInputType = { + id?: true + account_id?: true + phone?: true + street_number?: true + apt?: true + street_name?: true + city?: true + state?: true + zip?: true + first_name?: true + last_name?: true + info?: true + enhanced_capable?: true + code_cauca?: true + class_service?: true +} + +export type Phone_addrMaxAggregateInputType = { + id?: true + account_id?: true + phone?: true + street_number?: true + apt?: true + street_name?: true + city?: true + state?: true + zip?: true + first_name?: true + last_name?: true + info?: true + enhanced_capable?: true + code_cauca?: true + class_service?: true +} + +export type Phone_addrCountAggregateInputType = { + id?: true + account_id?: true + phone?: true + street_number?: true + apt?: true + street_name?: true + city?: true + state?: true + zip?: true + first_name?: true + last_name?: true + info?: true + enhanced_capable?: true + code_cauca?: true + class_service?: true + _all?: true +} + +export type Phone_addrAggregateArgs = { + /** + * Filter which phone_addr to aggregate. + */ + where?: Prisma.phone_addrWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_addrs to fetch. + */ + orderBy?: Prisma.phone_addrOrderByWithRelationInput | Prisma.phone_addrOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.phone_addrWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_addrs 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` phone_addrs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned phone_addrs + **/ + _count?: true | Phone_addrCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Phone_addrAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Phone_addrSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Phone_addrMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Phone_addrMaxAggregateInputType +} + +export type GetPhone_addrAggregateType = { + [P in keyof T & keyof AggregatePhone_addr]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type phone_addrGroupByArgs = { + where?: Prisma.phone_addrWhereInput + orderBy?: Prisma.phone_addrOrderByWithAggregationInput | Prisma.phone_addrOrderByWithAggregationInput[] + by: Prisma.Phone_addrScalarFieldEnum[] | Prisma.Phone_addrScalarFieldEnum + having?: Prisma.phone_addrScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Phone_addrCountAggregateInputType | true + _avg?: Phone_addrAvgAggregateInputType + _sum?: Phone_addrSumAggregateInputType + _min?: Phone_addrMinAggregateInputType + _max?: Phone_addrMaxAggregateInputType +} + +export type Phone_addrGroupByOutputType = { + id: number + account_id: number + phone: string + street_number: string + apt: string + street_name: string + city: string + state: string + zip: string + first_name: string + last_name: string + info: string + enhanced_capable: $Enums.phone_addr_enhanced_capable + code_cauca: string | null + class_service: string + _count: Phone_addrCountAggregateOutputType | null + _avg: Phone_addrAvgAggregateOutputType | null + _sum: Phone_addrSumAggregateOutputType | null + _min: Phone_addrMinAggregateOutputType | null + _max: Phone_addrMaxAggregateOutputType | null +} + +type GetPhone_addrGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Phone_addrGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type phone_addrWhereInput = { + AND?: Prisma.phone_addrWhereInput | Prisma.phone_addrWhereInput[] + OR?: Prisma.phone_addrWhereInput[] + NOT?: Prisma.phone_addrWhereInput | Prisma.phone_addrWhereInput[] + id?: Prisma.IntFilter<"phone_addr"> | number + account_id?: Prisma.IntFilter<"phone_addr"> | number + phone?: Prisma.StringFilter<"phone_addr"> | string + street_number?: Prisma.StringFilter<"phone_addr"> | string + apt?: Prisma.StringFilter<"phone_addr"> | string + street_name?: Prisma.StringFilter<"phone_addr"> | string + city?: Prisma.StringFilter<"phone_addr"> | string + state?: Prisma.StringFilter<"phone_addr"> | string + zip?: Prisma.StringFilter<"phone_addr"> | string + first_name?: Prisma.StringFilter<"phone_addr"> | string + last_name?: Prisma.StringFilter<"phone_addr"> | string + info?: Prisma.StringFilter<"phone_addr"> | string + enhanced_capable?: Prisma.Enumphone_addr_enhanced_capableFilter<"phone_addr"> | $Enums.phone_addr_enhanced_capable + code_cauca?: Prisma.StringNullableFilter<"phone_addr"> | string | null + class_service?: Prisma.StringFilter<"phone_addr"> | string +} + +export type phone_addrOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + street_number?: Prisma.SortOrder + apt?: Prisma.SortOrder + street_name?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + info?: Prisma.SortOrder + enhanced_capable?: Prisma.SortOrder + code_cauca?: Prisma.SortOrderInput | Prisma.SortOrder + class_service?: Prisma.SortOrder + _relevance?: Prisma.phone_addrOrderByRelevanceInput +} + +export type phone_addrWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.phone_addrWhereInput | Prisma.phone_addrWhereInput[] + OR?: Prisma.phone_addrWhereInput[] + NOT?: Prisma.phone_addrWhereInput | Prisma.phone_addrWhereInput[] + account_id?: Prisma.IntFilter<"phone_addr"> | number + phone?: Prisma.StringFilter<"phone_addr"> | string + street_number?: Prisma.StringFilter<"phone_addr"> | string + apt?: Prisma.StringFilter<"phone_addr"> | string + street_name?: Prisma.StringFilter<"phone_addr"> | string + city?: Prisma.StringFilter<"phone_addr"> | string + state?: Prisma.StringFilter<"phone_addr"> | string + zip?: Prisma.StringFilter<"phone_addr"> | string + first_name?: Prisma.StringFilter<"phone_addr"> | string + last_name?: Prisma.StringFilter<"phone_addr"> | string + info?: Prisma.StringFilter<"phone_addr"> | string + enhanced_capable?: Prisma.Enumphone_addr_enhanced_capableFilter<"phone_addr"> | $Enums.phone_addr_enhanced_capable + code_cauca?: Prisma.StringNullableFilter<"phone_addr"> | string | null + class_service?: Prisma.StringFilter<"phone_addr"> | string +}, "id"> + +export type phone_addrOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + street_number?: Prisma.SortOrder + apt?: Prisma.SortOrder + street_name?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + info?: Prisma.SortOrder + enhanced_capable?: Prisma.SortOrder + code_cauca?: Prisma.SortOrderInput | Prisma.SortOrder + class_service?: Prisma.SortOrder + _count?: Prisma.phone_addrCountOrderByAggregateInput + _avg?: Prisma.phone_addrAvgOrderByAggregateInput + _max?: Prisma.phone_addrMaxOrderByAggregateInput + _min?: Prisma.phone_addrMinOrderByAggregateInput + _sum?: Prisma.phone_addrSumOrderByAggregateInput +} + +export type phone_addrScalarWhereWithAggregatesInput = { + AND?: Prisma.phone_addrScalarWhereWithAggregatesInput | Prisma.phone_addrScalarWhereWithAggregatesInput[] + OR?: Prisma.phone_addrScalarWhereWithAggregatesInput[] + NOT?: Prisma.phone_addrScalarWhereWithAggregatesInput | Prisma.phone_addrScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"phone_addr"> | number + account_id?: Prisma.IntWithAggregatesFilter<"phone_addr"> | number + phone?: Prisma.StringWithAggregatesFilter<"phone_addr"> | string + street_number?: Prisma.StringWithAggregatesFilter<"phone_addr"> | string + apt?: Prisma.StringWithAggregatesFilter<"phone_addr"> | string + street_name?: Prisma.StringWithAggregatesFilter<"phone_addr"> | string + city?: Prisma.StringWithAggregatesFilter<"phone_addr"> | string + state?: Prisma.StringWithAggregatesFilter<"phone_addr"> | string + zip?: Prisma.StringWithAggregatesFilter<"phone_addr"> | string + first_name?: Prisma.StringWithAggregatesFilter<"phone_addr"> | string + last_name?: Prisma.StringWithAggregatesFilter<"phone_addr"> | string + info?: Prisma.StringWithAggregatesFilter<"phone_addr"> | string + enhanced_capable?: Prisma.Enumphone_addr_enhanced_capableWithAggregatesFilter<"phone_addr"> | $Enums.phone_addr_enhanced_capable + code_cauca?: Prisma.StringNullableWithAggregatesFilter<"phone_addr"> | string | null + class_service?: Prisma.StringWithAggregatesFilter<"phone_addr"> | string +} + +export type phone_addrCreateInput = { + account_id: number + phone: string + street_number: string + apt: string + street_name: string + city: string + state: string + zip: string + first_name: string + last_name: string + info: string + enhanced_capable?: $Enums.phone_addr_enhanced_capable + code_cauca?: string | null + class_service?: string +} + +export type phone_addrUncheckedCreateInput = { + id?: number + account_id: number + phone: string + street_number: string + apt: string + street_name: string + city: string + state: string + zip: string + first_name: string + last_name: string + info: string + enhanced_capable?: $Enums.phone_addr_enhanced_capable + code_cauca?: string | null + class_service?: string +} + +export type phone_addrUpdateInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + street_number?: Prisma.StringFieldUpdateOperationsInput | string + apt?: Prisma.StringFieldUpdateOperationsInput | string + street_name?: Prisma.StringFieldUpdateOperationsInput | string + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + info?: Prisma.StringFieldUpdateOperationsInput | string + enhanced_capable?: Prisma.Enumphone_addr_enhanced_capableFieldUpdateOperationsInput | $Enums.phone_addr_enhanced_capable + code_cauca?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + class_service?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type phone_addrUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + street_number?: Prisma.StringFieldUpdateOperationsInput | string + apt?: Prisma.StringFieldUpdateOperationsInput | string + street_name?: Prisma.StringFieldUpdateOperationsInput | string + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + info?: Prisma.StringFieldUpdateOperationsInput | string + enhanced_capable?: Prisma.Enumphone_addr_enhanced_capableFieldUpdateOperationsInput | $Enums.phone_addr_enhanced_capable + code_cauca?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + class_service?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type phone_addrCreateManyInput = { + id?: number + account_id: number + phone: string + street_number: string + apt: string + street_name: string + city: string + state: string + zip: string + first_name: string + last_name: string + info: string + enhanced_capable?: $Enums.phone_addr_enhanced_capable + code_cauca?: string | null + class_service?: string +} + +export type phone_addrUpdateManyMutationInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + street_number?: Prisma.StringFieldUpdateOperationsInput | string + apt?: Prisma.StringFieldUpdateOperationsInput | string + street_name?: Prisma.StringFieldUpdateOperationsInput | string + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + info?: Prisma.StringFieldUpdateOperationsInput | string + enhanced_capable?: Prisma.Enumphone_addr_enhanced_capableFieldUpdateOperationsInput | $Enums.phone_addr_enhanced_capable + code_cauca?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + class_service?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type phone_addrUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + street_number?: Prisma.StringFieldUpdateOperationsInput | string + apt?: Prisma.StringFieldUpdateOperationsInput | string + street_name?: Prisma.StringFieldUpdateOperationsInput | string + city?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.StringFieldUpdateOperationsInput | string + zip?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + info?: Prisma.StringFieldUpdateOperationsInput | string + enhanced_capable?: Prisma.Enumphone_addr_enhanced_capableFieldUpdateOperationsInput | $Enums.phone_addr_enhanced_capable + code_cauca?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + class_service?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type phone_addrOrderByRelevanceInput = { + fields: Prisma.phone_addrOrderByRelevanceFieldEnum | Prisma.phone_addrOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type phone_addrCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + street_number?: Prisma.SortOrder + apt?: Prisma.SortOrder + street_name?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + info?: Prisma.SortOrder + enhanced_capable?: Prisma.SortOrder + code_cauca?: Prisma.SortOrder + class_service?: Prisma.SortOrder +} + +export type phone_addrAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder +} + +export type phone_addrMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + street_number?: Prisma.SortOrder + apt?: Prisma.SortOrder + street_name?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + info?: Prisma.SortOrder + enhanced_capable?: Prisma.SortOrder + code_cauca?: Prisma.SortOrder + class_service?: Prisma.SortOrder +} + +export type phone_addrMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + street_number?: Prisma.SortOrder + apt?: Prisma.SortOrder + street_name?: Prisma.SortOrder + city?: Prisma.SortOrder + state?: Prisma.SortOrder + zip?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + info?: Prisma.SortOrder + enhanced_capable?: Prisma.SortOrder + code_cauca?: Prisma.SortOrder + class_service?: Prisma.SortOrder +} + +export type phone_addrSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder +} + +export type Enumphone_addr_enhanced_capableFieldUpdateOperationsInput = { + set?: $Enums.phone_addr_enhanced_capable +} + + + +export type phone_addrSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + phone?: boolean + street_number?: boolean + apt?: boolean + street_name?: boolean + city?: boolean + state?: boolean + zip?: boolean + first_name?: boolean + last_name?: boolean + info?: boolean + enhanced_capable?: boolean + code_cauca?: boolean + class_service?: boolean +}, ExtArgs["result"]["phone_addr"]> + + + +export type phone_addrSelectScalar = { + id?: boolean + account_id?: boolean + phone?: boolean + street_number?: boolean + apt?: boolean + street_name?: boolean + city?: boolean + state?: boolean + zip?: boolean + first_name?: boolean + last_name?: boolean + info?: boolean + enhanced_capable?: boolean + code_cauca?: boolean + class_service?: boolean +} + +export type phone_addrOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "phone" | "street_number" | "apt" | "street_name" | "city" | "state" | "zip" | "first_name" | "last_name" | "info" | "enhanced_capable" | "code_cauca" | "class_service", ExtArgs["result"]["phone_addr"]> + +export type $phone_addrPayload = { + name: "phone_addr" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: number + phone: string + street_number: string + apt: string + street_name: string + city: string + state: string + zip: string + first_name: string + last_name: string + info: string + enhanced_capable: $Enums.phone_addr_enhanced_capable + code_cauca: string | null + class_service: string + }, ExtArgs["result"]["phone_addr"]> + composites: {} +} + +export type phone_addrGetPayload = runtime.Types.Result.GetResult + +export type phone_addrCountArgs = + Omit & { + select?: Phone_addrCountAggregateInputType | true + } + +export interface phone_addrDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['phone_addr'], meta: { name: 'phone_addr' } } + /** + * Find zero or one Phone_addr that matches the filter. + * @param {phone_addrFindUniqueArgs} args - Arguments to find a Phone_addr + * @example + * // Get one Phone_addr + * const phone_addr = await prisma.phone_addr.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__phone_addrClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Phone_addr that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {phone_addrFindUniqueOrThrowArgs} args - Arguments to find a Phone_addr + * @example + * // Get one Phone_addr + * const phone_addr = await prisma.phone_addr.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__phone_addrClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phone_addr 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 {phone_addrFindFirstArgs} args - Arguments to find a Phone_addr + * @example + * // Get one Phone_addr + * const phone_addr = await prisma.phone_addr.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__phone_addrClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phone_addr 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 {phone_addrFindFirstOrThrowArgs} args - Arguments to find a Phone_addr + * @example + * // Get one Phone_addr + * const phone_addr = await prisma.phone_addr.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__phone_addrClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Phone_addrs 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 {phone_addrFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Phone_addrs + * const phone_addrs = await prisma.phone_addr.findMany() + * + * // Get first 10 Phone_addrs + * const phone_addrs = await prisma.phone_addr.findMany({ take: 10 }) + * + * // Only select the `id` + * const phone_addrWithIdOnly = await prisma.phone_addr.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Phone_addr. + * @param {phone_addrCreateArgs} args - Arguments to create a Phone_addr. + * @example + * // Create one Phone_addr + * const Phone_addr = await prisma.phone_addr.create({ + * data: { + * // ... data to create a Phone_addr + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__phone_addrClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Phone_addrs. + * @param {phone_addrCreateManyArgs} args - Arguments to create many Phone_addrs. + * @example + * // Create many Phone_addrs + * const phone_addr = await prisma.phone_addr.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Phone_addr. + * @param {phone_addrDeleteArgs} args - Arguments to delete one Phone_addr. + * @example + * // Delete one Phone_addr + * const Phone_addr = await prisma.phone_addr.delete({ + * where: { + * // ... filter to delete one Phone_addr + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__phone_addrClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Phone_addr. + * @param {phone_addrUpdateArgs} args - Arguments to update one Phone_addr. + * @example + * // Update one Phone_addr + * const phone_addr = await prisma.phone_addr.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__phone_addrClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Phone_addrs. + * @param {phone_addrDeleteManyArgs} args - Arguments to filter Phone_addrs to delete. + * @example + * // Delete a few Phone_addrs + * const { count } = await prisma.phone_addr.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Phone_addrs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phone_addrUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Phone_addrs + * const phone_addr = await prisma.phone_addr.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Phone_addr. + * @param {phone_addrUpsertArgs} args - Arguments to update or create a Phone_addr. + * @example + * // Update or create a Phone_addr + * const phone_addr = await prisma.phone_addr.upsert({ + * create: { + * // ... data to create a Phone_addr + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Phone_addr we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__phone_addrClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Phone_addrs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phone_addrCountArgs} args - Arguments to filter Phone_addrs to count. + * @example + * // Count the number of Phone_addrs + * const count = await prisma.phone_addr.count({ + * where: { + * // ... the filter for the Phone_addrs 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 Phone_addr. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Phone_addrAggregateArgs} 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 Phone_addr. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phone_addrGroupByArgs} 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 phone_addrGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: phone_addrGroupByArgs['orderBy'] } + : { orderBy?: phone_addrGroupByArgs['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 ? GetPhone_addrGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the phone_addr model + */ +readonly fields: phone_addrFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for phone_addr. + * 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__phone_addrClient 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 phone_addr model + */ +export interface phone_addrFieldRefs { + readonly id: Prisma.FieldRef<"phone_addr", 'Int'> + readonly account_id: Prisma.FieldRef<"phone_addr", 'Int'> + readonly phone: Prisma.FieldRef<"phone_addr", 'String'> + readonly street_number: Prisma.FieldRef<"phone_addr", 'String'> + readonly apt: Prisma.FieldRef<"phone_addr", 'String'> + readonly street_name: Prisma.FieldRef<"phone_addr", 'String'> + readonly city: Prisma.FieldRef<"phone_addr", 'String'> + readonly state: Prisma.FieldRef<"phone_addr", 'String'> + readonly zip: Prisma.FieldRef<"phone_addr", 'String'> + readonly first_name: Prisma.FieldRef<"phone_addr", 'String'> + readonly last_name: Prisma.FieldRef<"phone_addr", 'String'> + readonly info: Prisma.FieldRef<"phone_addr", 'String'> + readonly enhanced_capable: Prisma.FieldRef<"phone_addr", 'phone_addr_enhanced_capable'> + readonly code_cauca: Prisma.FieldRef<"phone_addr", 'String'> + readonly class_service: Prisma.FieldRef<"phone_addr", 'String'> +} + + +// Custom InputTypes +/** + * phone_addr findUnique + */ +export type phone_addrFindUniqueArgs = { + /** + * Select specific fields to fetch from the phone_addr + */ + select?: Prisma.phone_addrSelect | null + /** + * Omit specific fields from the phone_addr + */ + omit?: Prisma.phone_addrOmit | null + /** + * Filter, which phone_addr to fetch. + */ + where: Prisma.phone_addrWhereUniqueInput +} + +/** + * phone_addr findUniqueOrThrow + */ +export type phone_addrFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the phone_addr + */ + select?: Prisma.phone_addrSelect | null + /** + * Omit specific fields from the phone_addr + */ + omit?: Prisma.phone_addrOmit | null + /** + * Filter, which phone_addr to fetch. + */ + where: Prisma.phone_addrWhereUniqueInput +} + +/** + * phone_addr findFirst + */ +export type phone_addrFindFirstArgs = { + /** + * Select specific fields to fetch from the phone_addr + */ + select?: Prisma.phone_addrSelect | null + /** + * Omit specific fields from the phone_addr + */ + omit?: Prisma.phone_addrOmit | null + /** + * Filter, which phone_addr to fetch. + */ + where?: Prisma.phone_addrWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_addrs to fetch. + */ + orderBy?: Prisma.phone_addrOrderByWithRelationInput | Prisma.phone_addrOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phone_addrs. + */ + cursor?: Prisma.phone_addrWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_addrs 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` phone_addrs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phone_addrs. + */ + distinct?: Prisma.Phone_addrScalarFieldEnum | Prisma.Phone_addrScalarFieldEnum[] +} + +/** + * phone_addr findFirstOrThrow + */ +export type phone_addrFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the phone_addr + */ + select?: Prisma.phone_addrSelect | null + /** + * Omit specific fields from the phone_addr + */ + omit?: Prisma.phone_addrOmit | null + /** + * Filter, which phone_addr to fetch. + */ + where?: Prisma.phone_addrWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_addrs to fetch. + */ + orderBy?: Prisma.phone_addrOrderByWithRelationInput | Prisma.phone_addrOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phone_addrs. + */ + cursor?: Prisma.phone_addrWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_addrs 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` phone_addrs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phone_addrs. + */ + distinct?: Prisma.Phone_addrScalarFieldEnum | Prisma.Phone_addrScalarFieldEnum[] +} + +/** + * phone_addr findMany + */ +export type phone_addrFindManyArgs = { + /** + * Select specific fields to fetch from the phone_addr + */ + select?: Prisma.phone_addrSelect | null + /** + * Omit specific fields from the phone_addr + */ + omit?: Prisma.phone_addrOmit | null + /** + * Filter, which phone_addrs to fetch. + */ + where?: Prisma.phone_addrWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_addrs to fetch. + */ + orderBy?: Prisma.phone_addrOrderByWithRelationInput | Prisma.phone_addrOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing phone_addrs. + */ + cursor?: Prisma.phone_addrWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_addrs 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` phone_addrs. + */ + skip?: number + distinct?: Prisma.Phone_addrScalarFieldEnum | Prisma.Phone_addrScalarFieldEnum[] +} + +/** + * phone_addr create + */ +export type phone_addrCreateArgs = { + /** + * Select specific fields to fetch from the phone_addr + */ + select?: Prisma.phone_addrSelect | null + /** + * Omit specific fields from the phone_addr + */ + omit?: Prisma.phone_addrOmit | null + /** + * The data needed to create a phone_addr. + */ + data: Prisma.XOR +} + +/** + * phone_addr createMany + */ +export type phone_addrCreateManyArgs = { + /** + * The data used to create many phone_addrs. + */ + data: Prisma.phone_addrCreateManyInput | Prisma.phone_addrCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * phone_addr update + */ +export type phone_addrUpdateArgs = { + /** + * Select specific fields to fetch from the phone_addr + */ + select?: Prisma.phone_addrSelect | null + /** + * Omit specific fields from the phone_addr + */ + omit?: Prisma.phone_addrOmit | null + /** + * The data needed to update a phone_addr. + */ + data: Prisma.XOR + /** + * Choose, which phone_addr to update. + */ + where: Prisma.phone_addrWhereUniqueInput +} + +/** + * phone_addr updateMany + */ +export type phone_addrUpdateManyArgs = { + /** + * The data used to update phone_addrs. + */ + data: Prisma.XOR + /** + * Filter which phone_addrs to update + */ + where?: Prisma.phone_addrWhereInput + /** + * Limit how many phone_addrs to update. + */ + limit?: number +} + +/** + * phone_addr upsert + */ +export type phone_addrUpsertArgs = { + /** + * Select specific fields to fetch from the phone_addr + */ + select?: Prisma.phone_addrSelect | null + /** + * Omit specific fields from the phone_addr + */ + omit?: Prisma.phone_addrOmit | null + /** + * The filter to search for the phone_addr to update in case it exists. + */ + where: Prisma.phone_addrWhereUniqueInput + /** + * In case the phone_addr found by the `where` argument doesn't exist, create a new phone_addr with this data. + */ + create: Prisma.XOR + /** + * In case the phone_addr was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * phone_addr delete + */ +export type phone_addrDeleteArgs = { + /** + * Select specific fields to fetch from the phone_addr + */ + select?: Prisma.phone_addrSelect | null + /** + * Omit specific fields from the phone_addr + */ + omit?: Prisma.phone_addrOmit | null + /** + * Filter which phone_addr to delete. + */ + where: Prisma.phone_addrWhereUniqueInput +} + +/** + * phone_addr deleteMany + */ +export type phone_addrDeleteManyArgs = { + /** + * Filter which phone_addrs to delete + */ + where?: Prisma.phone_addrWhereInput + /** + * Limit how many phone_addrs to delete. + */ + limit?: number +} + +/** + * phone_addr without action + */ +export type phone_addrDefaultArgs = { + /** + * Select specific fields to fetch from the phone_addr + */ + select?: Prisma.phone_addrSelect | null + /** + * Omit specific fields from the phone_addr + */ + omit?: Prisma.phone_addrOmit | null +} diff --git a/prisma/generated/mariadb/models/phone_comwave.ts b/prisma/generated/mariadb/models/phone_comwave.ts new file mode 100644 index 0000000..b24c0a3 --- /dev/null +++ b/prisma/generated/mariadb/models/phone_comwave.ts @@ -0,0 +1,1175 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `phone_comwave` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model phone_comwave + * + */ +export type phone_comwaveModel = runtime.Types.Result.DefaultSelection + +export type AggregatePhone_comwave = { + _count: Phone_comwaveCountAggregateOutputType | null + _avg: Phone_comwaveAvgAggregateOutputType | null + _sum: Phone_comwaveSumAggregateOutputType | null + _min: Phone_comwaveMinAggregateOutputType | null + _max: Phone_comwaveMaxAggregateOutputType | null +} + +export type Phone_comwaveAvgAggregateOutputType = { + id: number | null + account_id: number | null + service_id: number | null + requestId: number | null +} + +export type Phone_comwaveSumAggregateOutputType = { + id: number | null + account_id: bigint | null + service_id: bigint | null + requestId: number | null +} + +export type Phone_comwaveMinAggregateOutputType = { + id: number | null + account_id: bigint | null + service_id: bigint | null + requestId: number | null + phoneNumber: string | null + status: string | null + date: string | null + reason: string | null +} + +export type Phone_comwaveMaxAggregateOutputType = { + id: number | null + account_id: bigint | null + service_id: bigint | null + requestId: number | null + phoneNumber: string | null + status: string | null + date: string | null + reason: string | null +} + +export type Phone_comwaveCountAggregateOutputType = { + id: number + account_id: number + service_id: number + requestId: number + phoneNumber: number + status: number + date: number + reason: number + _all: number +} + + +export type Phone_comwaveAvgAggregateInputType = { + id?: true + account_id?: true + service_id?: true + requestId?: true +} + +export type Phone_comwaveSumAggregateInputType = { + id?: true + account_id?: true + service_id?: true + requestId?: true +} + +export type Phone_comwaveMinAggregateInputType = { + id?: true + account_id?: true + service_id?: true + requestId?: true + phoneNumber?: true + status?: true + date?: true + reason?: true +} + +export type Phone_comwaveMaxAggregateInputType = { + id?: true + account_id?: true + service_id?: true + requestId?: true + phoneNumber?: true + status?: true + date?: true + reason?: true +} + +export type Phone_comwaveCountAggregateInputType = { + id?: true + account_id?: true + service_id?: true + requestId?: true + phoneNumber?: true + status?: true + date?: true + reason?: true + _all?: true +} + +export type Phone_comwaveAggregateArgs = { + /** + * Filter which phone_comwave to aggregate. + */ + where?: Prisma.phone_comwaveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_comwaves to fetch. + */ + orderBy?: Prisma.phone_comwaveOrderByWithRelationInput | Prisma.phone_comwaveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.phone_comwaveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_comwaves 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` phone_comwaves. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned phone_comwaves + **/ + _count?: true | Phone_comwaveCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Phone_comwaveAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Phone_comwaveSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Phone_comwaveMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Phone_comwaveMaxAggregateInputType +} + +export type GetPhone_comwaveAggregateType = { + [P in keyof T & keyof AggregatePhone_comwave]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type phone_comwaveGroupByArgs = { + where?: Prisma.phone_comwaveWhereInput + orderBy?: Prisma.phone_comwaveOrderByWithAggregationInput | Prisma.phone_comwaveOrderByWithAggregationInput[] + by: Prisma.Phone_comwaveScalarFieldEnum[] | Prisma.Phone_comwaveScalarFieldEnum + having?: Prisma.phone_comwaveScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Phone_comwaveCountAggregateInputType | true + _avg?: Phone_comwaveAvgAggregateInputType + _sum?: Phone_comwaveSumAggregateInputType + _min?: Phone_comwaveMinAggregateInputType + _max?: Phone_comwaveMaxAggregateInputType +} + +export type Phone_comwaveGroupByOutputType = { + id: number + account_id: bigint | null + service_id: bigint | null + requestId: number + phoneNumber: string + status: string + date: string | null + reason: string | null + _count: Phone_comwaveCountAggregateOutputType | null + _avg: Phone_comwaveAvgAggregateOutputType | null + _sum: Phone_comwaveSumAggregateOutputType | null + _min: Phone_comwaveMinAggregateOutputType | null + _max: Phone_comwaveMaxAggregateOutputType | null +} + +type GetPhone_comwaveGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Phone_comwaveGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type phone_comwaveWhereInput = { + AND?: Prisma.phone_comwaveWhereInput | Prisma.phone_comwaveWhereInput[] + OR?: Prisma.phone_comwaveWhereInput[] + NOT?: Prisma.phone_comwaveWhereInput | Prisma.phone_comwaveWhereInput[] + id?: Prisma.IntFilter<"phone_comwave"> | number + account_id?: Prisma.BigIntNullableFilter<"phone_comwave"> | bigint | number | null + service_id?: Prisma.BigIntNullableFilter<"phone_comwave"> | bigint | number | null + requestId?: Prisma.IntFilter<"phone_comwave"> | number + phoneNumber?: Prisma.StringFilter<"phone_comwave"> | string + status?: Prisma.StringFilter<"phone_comwave"> | string + date?: Prisma.StringNullableFilter<"phone_comwave"> | string | null + reason?: Prisma.StringNullableFilter<"phone_comwave"> | string | null +} + +export type phone_comwaveOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + service_id?: Prisma.SortOrderInput | Prisma.SortOrder + requestId?: Prisma.SortOrder + phoneNumber?: Prisma.SortOrder + status?: Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + reason?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.phone_comwaveOrderByRelevanceInput +} + +export type phone_comwaveWhereUniqueInput = Prisma.AtLeast<{ + id?: number + requestId?: number + AND?: Prisma.phone_comwaveWhereInput | Prisma.phone_comwaveWhereInput[] + OR?: Prisma.phone_comwaveWhereInput[] + NOT?: Prisma.phone_comwaveWhereInput | Prisma.phone_comwaveWhereInput[] + account_id?: Prisma.BigIntNullableFilter<"phone_comwave"> | bigint | number | null + service_id?: Prisma.BigIntNullableFilter<"phone_comwave"> | bigint | number | null + phoneNumber?: Prisma.StringFilter<"phone_comwave"> | string + status?: Prisma.StringFilter<"phone_comwave"> | string + date?: Prisma.StringNullableFilter<"phone_comwave"> | string | null + reason?: Prisma.StringNullableFilter<"phone_comwave"> | string | null +}, "id" | "requestId"> + +export type phone_comwaveOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + service_id?: Prisma.SortOrderInput | Prisma.SortOrder + requestId?: Prisma.SortOrder + phoneNumber?: Prisma.SortOrder + status?: Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + reason?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.phone_comwaveCountOrderByAggregateInput + _avg?: Prisma.phone_comwaveAvgOrderByAggregateInput + _max?: Prisma.phone_comwaveMaxOrderByAggregateInput + _min?: Prisma.phone_comwaveMinOrderByAggregateInput + _sum?: Prisma.phone_comwaveSumOrderByAggregateInput +} + +export type phone_comwaveScalarWhereWithAggregatesInput = { + AND?: Prisma.phone_comwaveScalarWhereWithAggregatesInput | Prisma.phone_comwaveScalarWhereWithAggregatesInput[] + OR?: Prisma.phone_comwaveScalarWhereWithAggregatesInput[] + NOT?: Prisma.phone_comwaveScalarWhereWithAggregatesInput | Prisma.phone_comwaveScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"phone_comwave"> | number + account_id?: Prisma.BigIntNullableWithAggregatesFilter<"phone_comwave"> | bigint | number | null + service_id?: Prisma.BigIntNullableWithAggregatesFilter<"phone_comwave"> | bigint | number | null + requestId?: Prisma.IntWithAggregatesFilter<"phone_comwave"> | number + phoneNumber?: Prisma.StringWithAggregatesFilter<"phone_comwave"> | string + status?: Prisma.StringWithAggregatesFilter<"phone_comwave"> | string + date?: Prisma.StringNullableWithAggregatesFilter<"phone_comwave"> | string | null + reason?: Prisma.StringNullableWithAggregatesFilter<"phone_comwave"> | string | null +} + +export type phone_comwaveCreateInput = { + account_id?: bigint | number | null + service_id?: bigint | number | null + requestId: number + phoneNumber: string + status?: string + date?: string | null + reason?: string | null +} + +export type phone_comwaveUncheckedCreateInput = { + id?: number + account_id?: bigint | number | null + service_id?: bigint | number | null + requestId: number + phoneNumber: string + status?: string + date?: string | null + reason?: string | null +} + +export type phone_comwaveUpdateInput = { + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + requestId?: Prisma.IntFieldUpdateOperationsInput | number + phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type phone_comwaveUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + requestId?: Prisma.IntFieldUpdateOperationsInput | number + phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type phone_comwaveCreateManyInput = { + id?: number + account_id?: bigint | number | null + service_id?: bigint | number | null + requestId: number + phoneNumber: string + status?: string + date?: string | null + reason?: string | null +} + +export type phone_comwaveUpdateManyMutationInput = { + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + requestId?: Prisma.IntFieldUpdateOperationsInput | number + phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type phone_comwaveUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + requestId?: Prisma.IntFieldUpdateOperationsInput | number + phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type phone_comwaveOrderByRelevanceInput = { + fields: Prisma.phone_comwaveOrderByRelevanceFieldEnum | Prisma.phone_comwaveOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type phone_comwaveCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + requestId?: Prisma.SortOrder + phoneNumber?: Prisma.SortOrder + status?: Prisma.SortOrder + date?: Prisma.SortOrder + reason?: Prisma.SortOrder +} + +export type phone_comwaveAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + requestId?: Prisma.SortOrder +} + +export type phone_comwaveMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + requestId?: Prisma.SortOrder + phoneNumber?: Prisma.SortOrder + status?: Prisma.SortOrder + date?: Prisma.SortOrder + reason?: Prisma.SortOrder +} + +export type phone_comwaveMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + requestId?: Prisma.SortOrder + phoneNumber?: Prisma.SortOrder + status?: Prisma.SortOrder + date?: Prisma.SortOrder + reason?: Prisma.SortOrder +} + +export type phone_comwaveSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + requestId?: Prisma.SortOrder +} + + + +export type phone_comwaveSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + service_id?: boolean + requestId?: boolean + phoneNumber?: boolean + status?: boolean + date?: boolean + reason?: boolean +}, ExtArgs["result"]["phone_comwave"]> + + + +export type phone_comwaveSelectScalar = { + id?: boolean + account_id?: boolean + service_id?: boolean + requestId?: boolean + phoneNumber?: boolean + status?: boolean + date?: boolean + reason?: boolean +} + +export type phone_comwaveOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "service_id" | "requestId" | "phoneNumber" | "status" | "date" | "reason", ExtArgs["result"]["phone_comwave"]> + +export type $phone_comwavePayload = { + name: "phone_comwave" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: bigint | null + service_id: bigint | null + requestId: number + phoneNumber: string + status: string + date: string | null + reason: string | null + }, ExtArgs["result"]["phone_comwave"]> + composites: {} +} + +export type phone_comwaveGetPayload = runtime.Types.Result.GetResult + +export type phone_comwaveCountArgs = + Omit & { + select?: Phone_comwaveCountAggregateInputType | true + } + +export interface phone_comwaveDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['phone_comwave'], meta: { name: 'phone_comwave' } } + /** + * Find zero or one Phone_comwave that matches the filter. + * @param {phone_comwaveFindUniqueArgs} args - Arguments to find a Phone_comwave + * @example + * // Get one Phone_comwave + * const phone_comwave = await prisma.phone_comwave.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__phone_comwaveClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Phone_comwave that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {phone_comwaveFindUniqueOrThrowArgs} args - Arguments to find a Phone_comwave + * @example + * // Get one Phone_comwave + * const phone_comwave = await prisma.phone_comwave.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__phone_comwaveClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phone_comwave 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 {phone_comwaveFindFirstArgs} args - Arguments to find a Phone_comwave + * @example + * // Get one Phone_comwave + * const phone_comwave = await prisma.phone_comwave.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__phone_comwaveClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phone_comwave 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 {phone_comwaveFindFirstOrThrowArgs} args - Arguments to find a Phone_comwave + * @example + * // Get one Phone_comwave + * const phone_comwave = await prisma.phone_comwave.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__phone_comwaveClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Phone_comwaves 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 {phone_comwaveFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Phone_comwaves + * const phone_comwaves = await prisma.phone_comwave.findMany() + * + * // Get first 10 Phone_comwaves + * const phone_comwaves = await prisma.phone_comwave.findMany({ take: 10 }) + * + * // Only select the `id` + * const phone_comwaveWithIdOnly = await prisma.phone_comwave.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Phone_comwave. + * @param {phone_comwaveCreateArgs} args - Arguments to create a Phone_comwave. + * @example + * // Create one Phone_comwave + * const Phone_comwave = await prisma.phone_comwave.create({ + * data: { + * // ... data to create a Phone_comwave + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__phone_comwaveClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Phone_comwaves. + * @param {phone_comwaveCreateManyArgs} args - Arguments to create many Phone_comwaves. + * @example + * // Create many Phone_comwaves + * const phone_comwave = await prisma.phone_comwave.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Phone_comwave. + * @param {phone_comwaveDeleteArgs} args - Arguments to delete one Phone_comwave. + * @example + * // Delete one Phone_comwave + * const Phone_comwave = await prisma.phone_comwave.delete({ + * where: { + * // ... filter to delete one Phone_comwave + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__phone_comwaveClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Phone_comwave. + * @param {phone_comwaveUpdateArgs} args - Arguments to update one Phone_comwave. + * @example + * // Update one Phone_comwave + * const phone_comwave = await prisma.phone_comwave.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__phone_comwaveClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Phone_comwaves. + * @param {phone_comwaveDeleteManyArgs} args - Arguments to filter Phone_comwaves to delete. + * @example + * // Delete a few Phone_comwaves + * const { count } = await prisma.phone_comwave.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Phone_comwaves. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phone_comwaveUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Phone_comwaves + * const phone_comwave = await prisma.phone_comwave.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Phone_comwave. + * @param {phone_comwaveUpsertArgs} args - Arguments to update or create a Phone_comwave. + * @example + * // Update or create a Phone_comwave + * const phone_comwave = await prisma.phone_comwave.upsert({ + * create: { + * // ... data to create a Phone_comwave + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Phone_comwave we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__phone_comwaveClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Phone_comwaves. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phone_comwaveCountArgs} args - Arguments to filter Phone_comwaves to count. + * @example + * // Count the number of Phone_comwaves + * const count = await prisma.phone_comwave.count({ + * where: { + * // ... the filter for the Phone_comwaves 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 Phone_comwave. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Phone_comwaveAggregateArgs} 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 Phone_comwave. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phone_comwaveGroupByArgs} 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 phone_comwaveGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: phone_comwaveGroupByArgs['orderBy'] } + : { orderBy?: phone_comwaveGroupByArgs['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 ? GetPhone_comwaveGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the phone_comwave model + */ +readonly fields: phone_comwaveFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for phone_comwave. + * 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__phone_comwaveClient 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 phone_comwave model + */ +export interface phone_comwaveFieldRefs { + readonly id: Prisma.FieldRef<"phone_comwave", 'Int'> + readonly account_id: Prisma.FieldRef<"phone_comwave", 'BigInt'> + readonly service_id: Prisma.FieldRef<"phone_comwave", 'BigInt'> + readonly requestId: Prisma.FieldRef<"phone_comwave", 'Int'> + readonly phoneNumber: Prisma.FieldRef<"phone_comwave", 'String'> + readonly status: Prisma.FieldRef<"phone_comwave", 'String'> + readonly date: Prisma.FieldRef<"phone_comwave", 'String'> + readonly reason: Prisma.FieldRef<"phone_comwave", 'String'> +} + + +// Custom InputTypes +/** + * phone_comwave findUnique + */ +export type phone_comwaveFindUniqueArgs = { + /** + * Select specific fields to fetch from the phone_comwave + */ + select?: Prisma.phone_comwaveSelect | null + /** + * Omit specific fields from the phone_comwave + */ + omit?: Prisma.phone_comwaveOmit | null + /** + * Filter, which phone_comwave to fetch. + */ + where: Prisma.phone_comwaveWhereUniqueInput +} + +/** + * phone_comwave findUniqueOrThrow + */ +export type phone_comwaveFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the phone_comwave + */ + select?: Prisma.phone_comwaveSelect | null + /** + * Omit specific fields from the phone_comwave + */ + omit?: Prisma.phone_comwaveOmit | null + /** + * Filter, which phone_comwave to fetch. + */ + where: Prisma.phone_comwaveWhereUniqueInput +} + +/** + * phone_comwave findFirst + */ +export type phone_comwaveFindFirstArgs = { + /** + * Select specific fields to fetch from the phone_comwave + */ + select?: Prisma.phone_comwaveSelect | null + /** + * Omit specific fields from the phone_comwave + */ + omit?: Prisma.phone_comwaveOmit | null + /** + * Filter, which phone_comwave to fetch. + */ + where?: Prisma.phone_comwaveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_comwaves to fetch. + */ + orderBy?: Prisma.phone_comwaveOrderByWithRelationInput | Prisma.phone_comwaveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phone_comwaves. + */ + cursor?: Prisma.phone_comwaveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_comwaves 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` phone_comwaves. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phone_comwaves. + */ + distinct?: Prisma.Phone_comwaveScalarFieldEnum | Prisma.Phone_comwaveScalarFieldEnum[] +} + +/** + * phone_comwave findFirstOrThrow + */ +export type phone_comwaveFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the phone_comwave + */ + select?: Prisma.phone_comwaveSelect | null + /** + * Omit specific fields from the phone_comwave + */ + omit?: Prisma.phone_comwaveOmit | null + /** + * Filter, which phone_comwave to fetch. + */ + where?: Prisma.phone_comwaveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_comwaves to fetch. + */ + orderBy?: Prisma.phone_comwaveOrderByWithRelationInput | Prisma.phone_comwaveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phone_comwaves. + */ + cursor?: Prisma.phone_comwaveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_comwaves 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` phone_comwaves. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phone_comwaves. + */ + distinct?: Prisma.Phone_comwaveScalarFieldEnum | Prisma.Phone_comwaveScalarFieldEnum[] +} + +/** + * phone_comwave findMany + */ +export type phone_comwaveFindManyArgs = { + /** + * Select specific fields to fetch from the phone_comwave + */ + select?: Prisma.phone_comwaveSelect | null + /** + * Omit specific fields from the phone_comwave + */ + omit?: Prisma.phone_comwaveOmit | null + /** + * Filter, which phone_comwaves to fetch. + */ + where?: Prisma.phone_comwaveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_comwaves to fetch. + */ + orderBy?: Prisma.phone_comwaveOrderByWithRelationInput | Prisma.phone_comwaveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing phone_comwaves. + */ + cursor?: Prisma.phone_comwaveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_comwaves 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` phone_comwaves. + */ + skip?: number + distinct?: Prisma.Phone_comwaveScalarFieldEnum | Prisma.Phone_comwaveScalarFieldEnum[] +} + +/** + * phone_comwave create + */ +export type phone_comwaveCreateArgs = { + /** + * Select specific fields to fetch from the phone_comwave + */ + select?: Prisma.phone_comwaveSelect | null + /** + * Omit specific fields from the phone_comwave + */ + omit?: Prisma.phone_comwaveOmit | null + /** + * The data needed to create a phone_comwave. + */ + data: Prisma.XOR +} + +/** + * phone_comwave createMany + */ +export type phone_comwaveCreateManyArgs = { + /** + * The data used to create many phone_comwaves. + */ + data: Prisma.phone_comwaveCreateManyInput | Prisma.phone_comwaveCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * phone_comwave update + */ +export type phone_comwaveUpdateArgs = { + /** + * Select specific fields to fetch from the phone_comwave + */ + select?: Prisma.phone_comwaveSelect | null + /** + * Omit specific fields from the phone_comwave + */ + omit?: Prisma.phone_comwaveOmit | null + /** + * The data needed to update a phone_comwave. + */ + data: Prisma.XOR + /** + * Choose, which phone_comwave to update. + */ + where: Prisma.phone_comwaveWhereUniqueInput +} + +/** + * phone_comwave updateMany + */ +export type phone_comwaveUpdateManyArgs = { + /** + * The data used to update phone_comwaves. + */ + data: Prisma.XOR + /** + * Filter which phone_comwaves to update + */ + where?: Prisma.phone_comwaveWhereInput + /** + * Limit how many phone_comwaves to update. + */ + limit?: number +} + +/** + * phone_comwave upsert + */ +export type phone_comwaveUpsertArgs = { + /** + * Select specific fields to fetch from the phone_comwave + */ + select?: Prisma.phone_comwaveSelect | null + /** + * Omit specific fields from the phone_comwave + */ + omit?: Prisma.phone_comwaveOmit | null + /** + * The filter to search for the phone_comwave to update in case it exists. + */ + where: Prisma.phone_comwaveWhereUniqueInput + /** + * In case the phone_comwave found by the `where` argument doesn't exist, create a new phone_comwave with this data. + */ + create: Prisma.XOR + /** + * In case the phone_comwave was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * phone_comwave delete + */ +export type phone_comwaveDeleteArgs = { + /** + * Select specific fields to fetch from the phone_comwave + */ + select?: Prisma.phone_comwaveSelect | null + /** + * Omit specific fields from the phone_comwave + */ + omit?: Prisma.phone_comwaveOmit | null + /** + * Filter which phone_comwave to delete. + */ + where: Prisma.phone_comwaveWhereUniqueInput +} + +/** + * phone_comwave deleteMany + */ +export type phone_comwaveDeleteManyArgs = { + /** + * Filter which phone_comwaves to delete + */ + where?: Prisma.phone_comwaveWhereInput + /** + * Limit how many phone_comwaves to delete. + */ + limit?: number +} + +/** + * phone_comwave without action + */ +export type phone_comwaveDefaultArgs = { + /** + * Select specific fields to fetch from the phone_comwave + */ + select?: Prisma.phone_comwaveSelect | null + /** + * Omit specific fields from the phone_comwave + */ + omit?: Prisma.phone_comwaveOmit | null +} diff --git a/prisma/generated/mariadb/models/phone_note.ts b/prisma/generated/mariadb/models/phone_note.ts new file mode 100644 index 0000000..30c45a2 --- /dev/null +++ b/prisma/generated/mariadb/models/phone_note.ts @@ -0,0 +1,1079 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `phone_note` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model phone_note + * + */ +export type phone_noteModel = runtime.Types.Result.DefaultSelection + +export type AggregatePhone_note = { + _count: Phone_noteCountAggregateOutputType | null + _avg: Phone_noteAvgAggregateOutputType | null + _sum: Phone_noteSumAggregateOutputType | null + _min: Phone_noteMinAggregateOutputType | null + _max: Phone_noteMaxAggregateOutputType | null +} + +export type Phone_noteAvgAggregateOutputType = { + id: number | null +} + +export type Phone_noteSumAggregateOutputType = { + id: number | null +} + +export type Phone_noteMinAggregateOutputType = { + id: number | null + phone: string | null + rate_center: string | null + fournisseur: string | null + note: string | null +} + +export type Phone_noteMaxAggregateOutputType = { + id: number | null + phone: string | null + rate_center: string | null + fournisseur: string | null + note: string | null +} + +export type Phone_noteCountAggregateOutputType = { + id: number + phone: number + rate_center: number + fournisseur: number + note: number + _all: number +} + + +export type Phone_noteAvgAggregateInputType = { + id?: true +} + +export type Phone_noteSumAggregateInputType = { + id?: true +} + +export type Phone_noteMinAggregateInputType = { + id?: true + phone?: true + rate_center?: true + fournisseur?: true + note?: true +} + +export type Phone_noteMaxAggregateInputType = { + id?: true + phone?: true + rate_center?: true + fournisseur?: true + note?: true +} + +export type Phone_noteCountAggregateInputType = { + id?: true + phone?: true + rate_center?: true + fournisseur?: true + note?: true + _all?: true +} + +export type Phone_noteAggregateArgs = { + /** + * Filter which phone_note to aggregate. + */ + where?: Prisma.phone_noteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_notes to fetch. + */ + orderBy?: Prisma.phone_noteOrderByWithRelationInput | Prisma.phone_noteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.phone_noteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_notes 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` phone_notes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned phone_notes + **/ + _count?: true | Phone_noteCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Phone_noteAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Phone_noteSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Phone_noteMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Phone_noteMaxAggregateInputType +} + +export type GetPhone_noteAggregateType = { + [P in keyof T & keyof AggregatePhone_note]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type phone_noteGroupByArgs = { + where?: Prisma.phone_noteWhereInput + orderBy?: Prisma.phone_noteOrderByWithAggregationInput | Prisma.phone_noteOrderByWithAggregationInput[] + by: Prisma.Phone_noteScalarFieldEnum[] | Prisma.Phone_noteScalarFieldEnum + having?: Prisma.phone_noteScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Phone_noteCountAggregateInputType | true + _avg?: Phone_noteAvgAggregateInputType + _sum?: Phone_noteSumAggregateInputType + _min?: Phone_noteMinAggregateInputType + _max?: Phone_noteMaxAggregateInputType +} + +export type Phone_noteGroupByOutputType = { + id: number + phone: string + rate_center: string | null + fournisseur: string + note: string | null + _count: Phone_noteCountAggregateOutputType | null + _avg: Phone_noteAvgAggregateOutputType | null + _sum: Phone_noteSumAggregateOutputType | null + _min: Phone_noteMinAggregateOutputType | null + _max: Phone_noteMaxAggregateOutputType | null +} + +type GetPhone_noteGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Phone_noteGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type phone_noteWhereInput = { + AND?: Prisma.phone_noteWhereInput | Prisma.phone_noteWhereInput[] + OR?: Prisma.phone_noteWhereInput[] + NOT?: Prisma.phone_noteWhereInput | Prisma.phone_noteWhereInput[] + id?: Prisma.IntFilter<"phone_note"> | number + phone?: Prisma.StringFilter<"phone_note"> | string + rate_center?: Prisma.StringNullableFilter<"phone_note"> | string | null + fournisseur?: Prisma.StringFilter<"phone_note"> | string + note?: Prisma.StringNullableFilter<"phone_note"> | string | null +} + +export type phone_noteOrderByWithRelationInput = { + id?: Prisma.SortOrder + phone?: Prisma.SortOrder + rate_center?: Prisma.SortOrderInput | Prisma.SortOrder + fournisseur?: Prisma.SortOrder + note?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.phone_noteOrderByRelevanceInput +} + +export type phone_noteWhereUniqueInput = Prisma.AtLeast<{ + id?: number + phone?: string + AND?: Prisma.phone_noteWhereInput | Prisma.phone_noteWhereInput[] + OR?: Prisma.phone_noteWhereInput[] + NOT?: Prisma.phone_noteWhereInput | Prisma.phone_noteWhereInput[] + rate_center?: Prisma.StringNullableFilter<"phone_note"> | string | null + fournisseur?: Prisma.StringFilter<"phone_note"> | string + note?: Prisma.StringNullableFilter<"phone_note"> | string | null +}, "id" | "phone"> + +export type phone_noteOrderByWithAggregationInput = { + id?: Prisma.SortOrder + phone?: Prisma.SortOrder + rate_center?: Prisma.SortOrderInput | Prisma.SortOrder + fournisseur?: Prisma.SortOrder + note?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.phone_noteCountOrderByAggregateInput + _avg?: Prisma.phone_noteAvgOrderByAggregateInput + _max?: Prisma.phone_noteMaxOrderByAggregateInput + _min?: Prisma.phone_noteMinOrderByAggregateInput + _sum?: Prisma.phone_noteSumOrderByAggregateInput +} + +export type phone_noteScalarWhereWithAggregatesInput = { + AND?: Prisma.phone_noteScalarWhereWithAggregatesInput | Prisma.phone_noteScalarWhereWithAggregatesInput[] + OR?: Prisma.phone_noteScalarWhereWithAggregatesInput[] + NOT?: Prisma.phone_noteScalarWhereWithAggregatesInput | Prisma.phone_noteScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"phone_note"> | number + phone?: Prisma.StringWithAggregatesFilter<"phone_note"> | string + rate_center?: Prisma.StringNullableWithAggregatesFilter<"phone_note"> | string | null + fournisseur?: Prisma.StringWithAggregatesFilter<"phone_note"> | string + note?: Prisma.StringNullableWithAggregatesFilter<"phone_note"> | string | null +} + +export type phone_noteCreateInput = { + phone: string + rate_center?: string | null + fournisseur?: string + note?: string | null +} + +export type phone_noteUncheckedCreateInput = { + id?: number + phone: string + rate_center?: string | null + fournisseur?: string + note?: string | null +} + +export type phone_noteUpdateInput = { + phone?: Prisma.StringFieldUpdateOperationsInput | string + rate_center?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fournisseur?: Prisma.StringFieldUpdateOperationsInput | string + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type phone_noteUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + rate_center?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fournisseur?: Prisma.StringFieldUpdateOperationsInput | string + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type phone_noteCreateManyInput = { + id?: number + phone: string + rate_center?: string | null + fournisseur?: string + note?: string | null +} + +export type phone_noteUpdateManyMutationInput = { + phone?: Prisma.StringFieldUpdateOperationsInput | string + rate_center?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fournisseur?: Prisma.StringFieldUpdateOperationsInput | string + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type phone_noteUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + rate_center?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fournisseur?: Prisma.StringFieldUpdateOperationsInput | string + note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type phone_noteOrderByRelevanceInput = { + fields: Prisma.phone_noteOrderByRelevanceFieldEnum | Prisma.phone_noteOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type phone_noteCountOrderByAggregateInput = { + id?: Prisma.SortOrder + phone?: Prisma.SortOrder + rate_center?: Prisma.SortOrder + fournisseur?: Prisma.SortOrder + note?: Prisma.SortOrder +} + +export type phone_noteAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type phone_noteMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + phone?: Prisma.SortOrder + rate_center?: Prisma.SortOrder + fournisseur?: Prisma.SortOrder + note?: Prisma.SortOrder +} + +export type phone_noteMinOrderByAggregateInput = { + id?: Prisma.SortOrder + phone?: Prisma.SortOrder + rate_center?: Prisma.SortOrder + fournisseur?: Prisma.SortOrder + note?: Prisma.SortOrder +} + +export type phone_noteSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type phone_noteSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + phone?: boolean + rate_center?: boolean + fournisseur?: boolean + note?: boolean +}, ExtArgs["result"]["phone_note"]> + + + +export type phone_noteSelectScalar = { + id?: boolean + phone?: boolean + rate_center?: boolean + fournisseur?: boolean + note?: boolean +} + +export type phone_noteOmit = runtime.Types.Extensions.GetOmit<"id" | "phone" | "rate_center" | "fournisseur" | "note", ExtArgs["result"]["phone_note"]> + +export type $phone_notePayload = { + name: "phone_note" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + phone: string + rate_center: string | null + fournisseur: string + note: string | null + }, ExtArgs["result"]["phone_note"]> + composites: {} +} + +export type phone_noteGetPayload = runtime.Types.Result.GetResult + +export type phone_noteCountArgs = + Omit & { + select?: Phone_noteCountAggregateInputType | true + } + +export interface phone_noteDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['phone_note'], meta: { name: 'phone_note' } } + /** + * Find zero or one Phone_note that matches the filter. + * @param {phone_noteFindUniqueArgs} args - Arguments to find a Phone_note + * @example + * // Get one Phone_note + * const phone_note = await prisma.phone_note.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__phone_noteClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Phone_note that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {phone_noteFindUniqueOrThrowArgs} args - Arguments to find a Phone_note + * @example + * // Get one Phone_note + * const phone_note = await prisma.phone_note.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__phone_noteClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phone_note 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 {phone_noteFindFirstArgs} args - Arguments to find a Phone_note + * @example + * // Get one Phone_note + * const phone_note = await prisma.phone_note.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__phone_noteClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phone_note 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 {phone_noteFindFirstOrThrowArgs} args - Arguments to find a Phone_note + * @example + * // Get one Phone_note + * const phone_note = await prisma.phone_note.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__phone_noteClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Phone_notes 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 {phone_noteFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Phone_notes + * const phone_notes = await prisma.phone_note.findMany() + * + * // Get first 10 Phone_notes + * const phone_notes = await prisma.phone_note.findMany({ take: 10 }) + * + * // Only select the `id` + * const phone_noteWithIdOnly = await prisma.phone_note.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Phone_note. + * @param {phone_noteCreateArgs} args - Arguments to create a Phone_note. + * @example + * // Create one Phone_note + * const Phone_note = await prisma.phone_note.create({ + * data: { + * // ... data to create a Phone_note + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__phone_noteClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Phone_notes. + * @param {phone_noteCreateManyArgs} args - Arguments to create many Phone_notes. + * @example + * // Create many Phone_notes + * const phone_note = await prisma.phone_note.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Phone_note. + * @param {phone_noteDeleteArgs} args - Arguments to delete one Phone_note. + * @example + * // Delete one Phone_note + * const Phone_note = await prisma.phone_note.delete({ + * where: { + * // ... filter to delete one Phone_note + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__phone_noteClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Phone_note. + * @param {phone_noteUpdateArgs} args - Arguments to update one Phone_note. + * @example + * // Update one Phone_note + * const phone_note = await prisma.phone_note.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__phone_noteClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Phone_notes. + * @param {phone_noteDeleteManyArgs} args - Arguments to filter Phone_notes to delete. + * @example + * // Delete a few Phone_notes + * const { count } = await prisma.phone_note.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Phone_notes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phone_noteUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Phone_notes + * const phone_note = await prisma.phone_note.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Phone_note. + * @param {phone_noteUpsertArgs} args - Arguments to update or create a Phone_note. + * @example + * // Update or create a Phone_note + * const phone_note = await prisma.phone_note.upsert({ + * create: { + * // ... data to create a Phone_note + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Phone_note we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__phone_noteClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Phone_notes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phone_noteCountArgs} args - Arguments to filter Phone_notes to count. + * @example + * // Count the number of Phone_notes + * const count = await prisma.phone_note.count({ + * where: { + * // ... the filter for the Phone_notes 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 Phone_note. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Phone_noteAggregateArgs} 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 Phone_note. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phone_noteGroupByArgs} 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 phone_noteGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: phone_noteGroupByArgs['orderBy'] } + : { orderBy?: phone_noteGroupByArgs['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 ? GetPhone_noteGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the phone_note model + */ +readonly fields: phone_noteFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for phone_note. + * 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__phone_noteClient 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 phone_note model + */ +export interface phone_noteFieldRefs { + readonly id: Prisma.FieldRef<"phone_note", 'Int'> + readonly phone: Prisma.FieldRef<"phone_note", 'String'> + readonly rate_center: Prisma.FieldRef<"phone_note", 'String'> + readonly fournisseur: Prisma.FieldRef<"phone_note", 'String'> + readonly note: Prisma.FieldRef<"phone_note", 'String'> +} + + +// Custom InputTypes +/** + * phone_note findUnique + */ +export type phone_noteFindUniqueArgs = { + /** + * Select specific fields to fetch from the phone_note + */ + select?: Prisma.phone_noteSelect | null + /** + * Omit specific fields from the phone_note + */ + omit?: Prisma.phone_noteOmit | null + /** + * Filter, which phone_note to fetch. + */ + where: Prisma.phone_noteWhereUniqueInput +} + +/** + * phone_note findUniqueOrThrow + */ +export type phone_noteFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the phone_note + */ + select?: Prisma.phone_noteSelect | null + /** + * Omit specific fields from the phone_note + */ + omit?: Prisma.phone_noteOmit | null + /** + * Filter, which phone_note to fetch. + */ + where: Prisma.phone_noteWhereUniqueInput +} + +/** + * phone_note findFirst + */ +export type phone_noteFindFirstArgs = { + /** + * Select specific fields to fetch from the phone_note + */ + select?: Prisma.phone_noteSelect | null + /** + * Omit specific fields from the phone_note + */ + omit?: Prisma.phone_noteOmit | null + /** + * Filter, which phone_note to fetch. + */ + where?: Prisma.phone_noteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_notes to fetch. + */ + orderBy?: Prisma.phone_noteOrderByWithRelationInput | Prisma.phone_noteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phone_notes. + */ + cursor?: Prisma.phone_noteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_notes 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` phone_notes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phone_notes. + */ + distinct?: Prisma.Phone_noteScalarFieldEnum | Prisma.Phone_noteScalarFieldEnum[] +} + +/** + * phone_note findFirstOrThrow + */ +export type phone_noteFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the phone_note + */ + select?: Prisma.phone_noteSelect | null + /** + * Omit specific fields from the phone_note + */ + omit?: Prisma.phone_noteOmit | null + /** + * Filter, which phone_note to fetch. + */ + where?: Prisma.phone_noteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_notes to fetch. + */ + orderBy?: Prisma.phone_noteOrderByWithRelationInput | Prisma.phone_noteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phone_notes. + */ + cursor?: Prisma.phone_noteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_notes 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` phone_notes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phone_notes. + */ + distinct?: Prisma.Phone_noteScalarFieldEnum | Prisma.Phone_noteScalarFieldEnum[] +} + +/** + * phone_note findMany + */ +export type phone_noteFindManyArgs = { + /** + * Select specific fields to fetch from the phone_note + */ + select?: Prisma.phone_noteSelect | null + /** + * Omit specific fields from the phone_note + */ + omit?: Prisma.phone_noteOmit | null + /** + * Filter, which phone_notes to fetch. + */ + where?: Prisma.phone_noteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_notes to fetch. + */ + orderBy?: Prisma.phone_noteOrderByWithRelationInput | Prisma.phone_noteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing phone_notes. + */ + cursor?: Prisma.phone_noteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_notes 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` phone_notes. + */ + skip?: number + distinct?: Prisma.Phone_noteScalarFieldEnum | Prisma.Phone_noteScalarFieldEnum[] +} + +/** + * phone_note create + */ +export type phone_noteCreateArgs = { + /** + * Select specific fields to fetch from the phone_note + */ + select?: Prisma.phone_noteSelect | null + /** + * Omit specific fields from the phone_note + */ + omit?: Prisma.phone_noteOmit | null + /** + * The data needed to create a phone_note. + */ + data: Prisma.XOR +} + +/** + * phone_note createMany + */ +export type phone_noteCreateManyArgs = { + /** + * The data used to create many phone_notes. + */ + data: Prisma.phone_noteCreateManyInput | Prisma.phone_noteCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * phone_note update + */ +export type phone_noteUpdateArgs = { + /** + * Select specific fields to fetch from the phone_note + */ + select?: Prisma.phone_noteSelect | null + /** + * Omit specific fields from the phone_note + */ + omit?: Prisma.phone_noteOmit | null + /** + * The data needed to update a phone_note. + */ + data: Prisma.XOR + /** + * Choose, which phone_note to update. + */ + where: Prisma.phone_noteWhereUniqueInput +} + +/** + * phone_note updateMany + */ +export type phone_noteUpdateManyArgs = { + /** + * The data used to update phone_notes. + */ + data: Prisma.XOR + /** + * Filter which phone_notes to update + */ + where?: Prisma.phone_noteWhereInput + /** + * Limit how many phone_notes to update. + */ + limit?: number +} + +/** + * phone_note upsert + */ +export type phone_noteUpsertArgs = { + /** + * Select specific fields to fetch from the phone_note + */ + select?: Prisma.phone_noteSelect | null + /** + * Omit specific fields from the phone_note + */ + omit?: Prisma.phone_noteOmit | null + /** + * The filter to search for the phone_note to update in case it exists. + */ + where: Prisma.phone_noteWhereUniqueInput + /** + * In case the phone_note found by the `where` argument doesn't exist, create a new phone_note with this data. + */ + create: Prisma.XOR + /** + * In case the phone_note was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * phone_note delete + */ +export type phone_noteDeleteArgs = { + /** + * Select specific fields to fetch from the phone_note + */ + select?: Prisma.phone_noteSelect | null + /** + * Omit specific fields from the phone_note + */ + omit?: Prisma.phone_noteOmit | null + /** + * Filter which phone_note to delete. + */ + where: Prisma.phone_noteWhereUniqueInput +} + +/** + * phone_note deleteMany + */ +export type phone_noteDeleteManyArgs = { + /** + * Filter which phone_notes to delete + */ + where?: Prisma.phone_noteWhereInput + /** + * Limit how many phone_notes to delete. + */ + limit?: number +} + +/** + * phone_note without action + */ +export type phone_noteDefaultArgs = { + /** + * Select specific fields to fetch from the phone_note + */ + select?: Prisma.phone_noteSelect | null + /** + * Omit specific fields from the phone_note + */ + omit?: Prisma.phone_noteOmit | null +} diff --git a/prisma/generated/mariadb/models/phone_provisioning.ts b/prisma/generated/mariadb/models/phone_provisioning.ts new file mode 100644 index 0000000..027203a --- /dev/null +++ b/prisma/generated/mariadb/models/phone_provisioning.ts @@ -0,0 +1,1265 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `phone_provisioning` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model phone_provisioning + * + */ +export type phone_provisioningModel = runtime.Types.Result.DefaultSelection + +export type AggregatePhone_provisioning = { + _count: Phone_provisioningCountAggregateOutputType | null + _avg: Phone_provisioningAvgAggregateOutputType | null + _sum: Phone_provisioningSumAggregateOutputType | null + _min: Phone_provisioningMinAggregateOutputType | null + _max: Phone_provisioningMaxAggregateOutputType | null +} + +export type Phone_provisioningAvgAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + date_orig: number | null + date_update: number | null +} + +export type Phone_provisioningSumAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + date_orig: bigint | null + date_update: bigint | null +} + +export type Phone_provisioningMinAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + phone: string | null + app: string | null + mac: string | null + password: string | null + internationnal: string | null + date_orig: bigint | null + date_update: bigint | null +} + +export type Phone_provisioningMaxAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + service_id: number | null + phone: string | null + app: string | null + mac: string | null + password: string | null + internationnal: string | null + date_orig: bigint | null + date_update: bigint | null +} + +export type Phone_provisioningCountAggregateOutputType = { + id: number + account_id: number + delivery_id: number + service_id: number + phone: number + app: number + mac: number + password: number + internationnal: number + date_orig: number + date_update: number + _all: number +} + + +export type Phone_provisioningAvgAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + date_orig?: true + date_update?: true +} + +export type Phone_provisioningSumAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + date_orig?: true + date_update?: true +} + +export type Phone_provisioningMinAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + phone?: true + app?: true + mac?: true + password?: true + internationnal?: true + date_orig?: true + date_update?: true +} + +export type Phone_provisioningMaxAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + phone?: true + app?: true + mac?: true + password?: true + internationnal?: true + date_orig?: true + date_update?: true +} + +export type Phone_provisioningCountAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + service_id?: true + phone?: true + app?: true + mac?: true + password?: true + internationnal?: true + date_orig?: true + date_update?: true + _all?: true +} + +export type Phone_provisioningAggregateArgs = { + /** + * Filter which phone_provisioning to aggregate. + */ + where?: Prisma.phone_provisioningWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_provisionings to fetch. + */ + orderBy?: Prisma.phone_provisioningOrderByWithRelationInput | Prisma.phone_provisioningOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.phone_provisioningWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_provisionings 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` phone_provisionings. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned phone_provisionings + **/ + _count?: true | Phone_provisioningCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Phone_provisioningAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Phone_provisioningSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Phone_provisioningMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Phone_provisioningMaxAggregateInputType +} + +export type GetPhone_provisioningAggregateType = { + [P in keyof T & keyof AggregatePhone_provisioning]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type phone_provisioningGroupByArgs = { + where?: Prisma.phone_provisioningWhereInput + orderBy?: Prisma.phone_provisioningOrderByWithAggregationInput | Prisma.phone_provisioningOrderByWithAggregationInput[] + by: Prisma.Phone_provisioningScalarFieldEnum[] | Prisma.Phone_provisioningScalarFieldEnum + having?: Prisma.phone_provisioningScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Phone_provisioningCountAggregateInputType | true + _avg?: Phone_provisioningAvgAggregateInputType + _sum?: Phone_provisioningSumAggregateInputType + _min?: Phone_provisioningMinAggregateInputType + _max?: Phone_provisioningMaxAggregateInputType +} + +export type Phone_provisioningGroupByOutputType = { + id: number + account_id: number + delivery_id: number + service_id: number + phone: string + app: string + mac: string + password: string + internationnal: string | null + date_orig: bigint + date_update: bigint + _count: Phone_provisioningCountAggregateOutputType | null + _avg: Phone_provisioningAvgAggregateOutputType | null + _sum: Phone_provisioningSumAggregateOutputType | null + _min: Phone_provisioningMinAggregateOutputType | null + _max: Phone_provisioningMaxAggregateOutputType | null +} + +type GetPhone_provisioningGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Phone_provisioningGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type phone_provisioningWhereInput = { + AND?: Prisma.phone_provisioningWhereInput | Prisma.phone_provisioningWhereInput[] + OR?: Prisma.phone_provisioningWhereInput[] + NOT?: Prisma.phone_provisioningWhereInput | Prisma.phone_provisioningWhereInput[] + id?: Prisma.IntFilter<"phone_provisioning"> | number + account_id?: Prisma.IntFilter<"phone_provisioning"> | number + delivery_id?: Prisma.IntFilter<"phone_provisioning"> | number + service_id?: Prisma.IntFilter<"phone_provisioning"> | number + phone?: Prisma.StringFilter<"phone_provisioning"> | string + app?: Prisma.StringFilter<"phone_provisioning"> | string + mac?: Prisma.StringFilter<"phone_provisioning"> | string + password?: Prisma.StringFilter<"phone_provisioning"> | string + internationnal?: Prisma.StringNullableFilter<"phone_provisioning"> | string | null + date_orig?: Prisma.BigIntFilter<"phone_provisioning"> | bigint | number + date_update?: Prisma.BigIntFilter<"phone_provisioning"> | bigint | number +} + +export type phone_provisioningOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + app?: Prisma.SortOrder + mac?: Prisma.SortOrder + password?: Prisma.SortOrder + internationnal?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_update?: Prisma.SortOrder + _relevance?: Prisma.phone_provisioningOrderByRelevanceInput +} + +export type phone_provisioningWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.phone_provisioningWhereInput | Prisma.phone_provisioningWhereInput[] + OR?: Prisma.phone_provisioningWhereInput[] + NOT?: Prisma.phone_provisioningWhereInput | Prisma.phone_provisioningWhereInput[] + account_id?: Prisma.IntFilter<"phone_provisioning"> | number + delivery_id?: Prisma.IntFilter<"phone_provisioning"> | number + service_id?: Prisma.IntFilter<"phone_provisioning"> | number + phone?: Prisma.StringFilter<"phone_provisioning"> | string + app?: Prisma.StringFilter<"phone_provisioning"> | string + mac?: Prisma.StringFilter<"phone_provisioning"> | string + password?: Prisma.StringFilter<"phone_provisioning"> | string + internationnal?: Prisma.StringNullableFilter<"phone_provisioning"> | string | null + date_orig?: Prisma.BigIntFilter<"phone_provisioning"> | bigint | number + date_update?: Prisma.BigIntFilter<"phone_provisioning"> | bigint | number +}, "id"> + +export type phone_provisioningOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + app?: Prisma.SortOrder + mac?: Prisma.SortOrder + password?: Prisma.SortOrder + internationnal?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_update?: Prisma.SortOrder + _count?: Prisma.phone_provisioningCountOrderByAggregateInput + _avg?: Prisma.phone_provisioningAvgOrderByAggregateInput + _max?: Prisma.phone_provisioningMaxOrderByAggregateInput + _min?: Prisma.phone_provisioningMinOrderByAggregateInput + _sum?: Prisma.phone_provisioningSumOrderByAggregateInput +} + +export type phone_provisioningScalarWhereWithAggregatesInput = { + AND?: Prisma.phone_provisioningScalarWhereWithAggregatesInput | Prisma.phone_provisioningScalarWhereWithAggregatesInput[] + OR?: Prisma.phone_provisioningScalarWhereWithAggregatesInput[] + NOT?: Prisma.phone_provisioningScalarWhereWithAggregatesInput | Prisma.phone_provisioningScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"phone_provisioning"> | number + account_id?: Prisma.IntWithAggregatesFilter<"phone_provisioning"> | number + delivery_id?: Prisma.IntWithAggregatesFilter<"phone_provisioning"> | number + service_id?: Prisma.IntWithAggregatesFilter<"phone_provisioning"> | number + phone?: Prisma.StringWithAggregatesFilter<"phone_provisioning"> | string + app?: Prisma.StringWithAggregatesFilter<"phone_provisioning"> | string + mac?: Prisma.StringWithAggregatesFilter<"phone_provisioning"> | string + password?: Prisma.StringWithAggregatesFilter<"phone_provisioning"> | string + internationnal?: Prisma.StringNullableWithAggregatesFilter<"phone_provisioning"> | string | null + date_orig?: Prisma.BigIntWithAggregatesFilter<"phone_provisioning"> | bigint | number + date_update?: Prisma.BigIntWithAggregatesFilter<"phone_provisioning"> | bigint | number +} + +export type phone_provisioningCreateInput = { + account_id: number + delivery_id: number + service_id: number + phone: string + app: string + mac: string + password: string + internationnal?: string | null + date_orig: bigint | number + date_update: bigint | number +} + +export type phone_provisioningUncheckedCreateInput = { + id?: number + account_id: number + delivery_id: number + service_id: number + phone: string + app: string + mac: string + password: string + internationnal?: string | null + date_orig: bigint | number + date_update: bigint | number +} + +export type phone_provisioningUpdateInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + app?: Prisma.StringFieldUpdateOperationsInput | string + mac?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + internationnal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type phone_provisioningUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + app?: Prisma.StringFieldUpdateOperationsInput | string + mac?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + internationnal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type phone_provisioningCreateManyInput = { + id?: number + account_id: number + delivery_id: number + service_id: number + phone: string + app: string + mac: string + password: string + internationnal?: string | null + date_orig: bigint | number + date_update: bigint | number +} + +export type phone_provisioningUpdateManyMutationInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + app?: Prisma.StringFieldUpdateOperationsInput | string + mac?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + internationnal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type phone_provisioningUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + phone?: Prisma.StringFieldUpdateOperationsInput | string + app?: Prisma.StringFieldUpdateOperationsInput | string + mac?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + internationnal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type phone_provisioningOrderByRelevanceInput = { + fields: Prisma.phone_provisioningOrderByRelevanceFieldEnum | Prisma.phone_provisioningOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type phone_provisioningCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + app?: Prisma.SortOrder + mac?: Prisma.SortOrder + password?: Prisma.SortOrder + internationnal?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_update?: Prisma.SortOrder +} + +export type phone_provisioningAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_update?: Prisma.SortOrder +} + +export type phone_provisioningMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + app?: Prisma.SortOrder + mac?: Prisma.SortOrder + password?: Prisma.SortOrder + internationnal?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_update?: Prisma.SortOrder +} + +export type phone_provisioningMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + phone?: Prisma.SortOrder + app?: Prisma.SortOrder + mac?: Prisma.SortOrder + password?: Prisma.SortOrder + internationnal?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_update?: Prisma.SortOrder +} + +export type phone_provisioningSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_update?: Prisma.SortOrder +} + + + +export type phone_provisioningSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + delivery_id?: boolean + service_id?: boolean + phone?: boolean + app?: boolean + mac?: boolean + password?: boolean + internationnal?: boolean + date_orig?: boolean + date_update?: boolean +}, ExtArgs["result"]["phone_provisioning"]> + + + +export type phone_provisioningSelectScalar = { + id?: boolean + account_id?: boolean + delivery_id?: boolean + service_id?: boolean + phone?: boolean + app?: boolean + mac?: boolean + password?: boolean + internationnal?: boolean + date_orig?: boolean + date_update?: boolean +} + +export type phone_provisioningOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "delivery_id" | "service_id" | "phone" | "app" | "mac" | "password" | "internationnal" | "date_orig" | "date_update", ExtArgs["result"]["phone_provisioning"]> + +export type $phone_provisioningPayload = { + name: "phone_provisioning" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: number + delivery_id: number + service_id: number + phone: string + app: string + mac: string + password: string + internationnal: string | null + date_orig: bigint + date_update: bigint + }, ExtArgs["result"]["phone_provisioning"]> + composites: {} +} + +export type phone_provisioningGetPayload = runtime.Types.Result.GetResult + +export type phone_provisioningCountArgs = + Omit & { + select?: Phone_provisioningCountAggregateInputType | true + } + +export interface phone_provisioningDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['phone_provisioning'], meta: { name: 'phone_provisioning' } } + /** + * Find zero or one Phone_provisioning that matches the filter. + * @param {phone_provisioningFindUniqueArgs} args - Arguments to find a Phone_provisioning + * @example + * // Get one Phone_provisioning + * const phone_provisioning = await prisma.phone_provisioning.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Phone_provisioning that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {phone_provisioningFindUniqueOrThrowArgs} args - Arguments to find a Phone_provisioning + * @example + * // Get one Phone_provisioning + * const phone_provisioning = await prisma.phone_provisioning.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phone_provisioning 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 {phone_provisioningFindFirstArgs} args - Arguments to find a Phone_provisioning + * @example + * // Get one Phone_provisioning + * const phone_provisioning = await prisma.phone_provisioning.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phone_provisioning 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 {phone_provisioningFindFirstOrThrowArgs} args - Arguments to find a Phone_provisioning + * @example + * // Get one Phone_provisioning + * const phone_provisioning = await prisma.phone_provisioning.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Phone_provisionings 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 {phone_provisioningFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Phone_provisionings + * const phone_provisionings = await prisma.phone_provisioning.findMany() + * + * // Get first 10 Phone_provisionings + * const phone_provisionings = await prisma.phone_provisioning.findMany({ take: 10 }) + * + * // Only select the `id` + * const phone_provisioningWithIdOnly = await prisma.phone_provisioning.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Phone_provisioning. + * @param {phone_provisioningCreateArgs} args - Arguments to create a Phone_provisioning. + * @example + * // Create one Phone_provisioning + * const Phone_provisioning = await prisma.phone_provisioning.create({ + * data: { + * // ... data to create a Phone_provisioning + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Phone_provisionings. + * @param {phone_provisioningCreateManyArgs} args - Arguments to create many Phone_provisionings. + * @example + * // Create many Phone_provisionings + * const phone_provisioning = await prisma.phone_provisioning.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Phone_provisioning. + * @param {phone_provisioningDeleteArgs} args - Arguments to delete one Phone_provisioning. + * @example + * // Delete one Phone_provisioning + * const Phone_provisioning = await prisma.phone_provisioning.delete({ + * where: { + * // ... filter to delete one Phone_provisioning + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Phone_provisioning. + * @param {phone_provisioningUpdateArgs} args - Arguments to update one Phone_provisioning. + * @example + * // Update one Phone_provisioning + * const phone_provisioning = await prisma.phone_provisioning.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Phone_provisionings. + * @param {phone_provisioningDeleteManyArgs} args - Arguments to filter Phone_provisionings to delete. + * @example + * // Delete a few Phone_provisionings + * const { count } = await prisma.phone_provisioning.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Phone_provisionings. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phone_provisioningUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Phone_provisionings + * const phone_provisioning = await prisma.phone_provisioning.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Phone_provisioning. + * @param {phone_provisioningUpsertArgs} args - Arguments to update or create a Phone_provisioning. + * @example + * // Update or create a Phone_provisioning + * const phone_provisioning = await prisma.phone_provisioning.upsert({ + * create: { + * // ... data to create a Phone_provisioning + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Phone_provisioning we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Phone_provisionings. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phone_provisioningCountArgs} args - Arguments to filter Phone_provisionings to count. + * @example + * // Count the number of Phone_provisionings + * const count = await prisma.phone_provisioning.count({ + * where: { + * // ... the filter for the Phone_provisionings 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 Phone_provisioning. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Phone_provisioningAggregateArgs} 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 Phone_provisioning. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phone_provisioningGroupByArgs} 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 phone_provisioningGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: phone_provisioningGroupByArgs['orderBy'] } + : { orderBy?: phone_provisioningGroupByArgs['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 ? GetPhone_provisioningGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the phone_provisioning model + */ +readonly fields: phone_provisioningFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for phone_provisioning. + * 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__phone_provisioningClient 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 phone_provisioning model + */ +export interface phone_provisioningFieldRefs { + readonly id: Prisma.FieldRef<"phone_provisioning", 'Int'> + readonly account_id: Prisma.FieldRef<"phone_provisioning", 'Int'> + readonly delivery_id: Prisma.FieldRef<"phone_provisioning", 'Int'> + readonly service_id: Prisma.FieldRef<"phone_provisioning", 'Int'> + readonly phone: Prisma.FieldRef<"phone_provisioning", 'String'> + readonly app: Prisma.FieldRef<"phone_provisioning", 'String'> + readonly mac: Prisma.FieldRef<"phone_provisioning", 'String'> + readonly password: Prisma.FieldRef<"phone_provisioning", 'String'> + readonly internationnal: Prisma.FieldRef<"phone_provisioning", 'String'> + readonly date_orig: Prisma.FieldRef<"phone_provisioning", 'BigInt'> + readonly date_update: Prisma.FieldRef<"phone_provisioning", 'BigInt'> +} + + +// Custom InputTypes +/** + * phone_provisioning findUnique + */ +export type phone_provisioningFindUniqueArgs = { + /** + * Select specific fields to fetch from the phone_provisioning + */ + select?: Prisma.phone_provisioningSelect | null + /** + * Omit specific fields from the phone_provisioning + */ + omit?: Prisma.phone_provisioningOmit | null + /** + * Filter, which phone_provisioning to fetch. + */ + where: Prisma.phone_provisioningWhereUniqueInput +} + +/** + * phone_provisioning findUniqueOrThrow + */ +export type phone_provisioningFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the phone_provisioning + */ + select?: Prisma.phone_provisioningSelect | null + /** + * Omit specific fields from the phone_provisioning + */ + omit?: Prisma.phone_provisioningOmit | null + /** + * Filter, which phone_provisioning to fetch. + */ + where: Prisma.phone_provisioningWhereUniqueInput +} + +/** + * phone_provisioning findFirst + */ +export type phone_provisioningFindFirstArgs = { + /** + * Select specific fields to fetch from the phone_provisioning + */ + select?: Prisma.phone_provisioningSelect | null + /** + * Omit specific fields from the phone_provisioning + */ + omit?: Prisma.phone_provisioningOmit | null + /** + * Filter, which phone_provisioning to fetch. + */ + where?: Prisma.phone_provisioningWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_provisionings to fetch. + */ + orderBy?: Prisma.phone_provisioningOrderByWithRelationInput | Prisma.phone_provisioningOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phone_provisionings. + */ + cursor?: Prisma.phone_provisioningWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_provisionings 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` phone_provisionings. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phone_provisionings. + */ + distinct?: Prisma.Phone_provisioningScalarFieldEnum | Prisma.Phone_provisioningScalarFieldEnum[] +} + +/** + * phone_provisioning findFirstOrThrow + */ +export type phone_provisioningFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the phone_provisioning + */ + select?: Prisma.phone_provisioningSelect | null + /** + * Omit specific fields from the phone_provisioning + */ + omit?: Prisma.phone_provisioningOmit | null + /** + * Filter, which phone_provisioning to fetch. + */ + where?: Prisma.phone_provisioningWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_provisionings to fetch. + */ + orderBy?: Prisma.phone_provisioningOrderByWithRelationInput | Prisma.phone_provisioningOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phone_provisionings. + */ + cursor?: Prisma.phone_provisioningWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_provisionings 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` phone_provisionings. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phone_provisionings. + */ + distinct?: Prisma.Phone_provisioningScalarFieldEnum | Prisma.Phone_provisioningScalarFieldEnum[] +} + +/** + * phone_provisioning findMany + */ +export type phone_provisioningFindManyArgs = { + /** + * Select specific fields to fetch from the phone_provisioning + */ + select?: Prisma.phone_provisioningSelect | null + /** + * Omit specific fields from the phone_provisioning + */ + omit?: Prisma.phone_provisioningOmit | null + /** + * Filter, which phone_provisionings to fetch. + */ + where?: Prisma.phone_provisioningWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phone_provisionings to fetch. + */ + orderBy?: Prisma.phone_provisioningOrderByWithRelationInput | Prisma.phone_provisioningOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing phone_provisionings. + */ + cursor?: Prisma.phone_provisioningWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phone_provisionings 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` phone_provisionings. + */ + skip?: number + distinct?: Prisma.Phone_provisioningScalarFieldEnum | Prisma.Phone_provisioningScalarFieldEnum[] +} + +/** + * phone_provisioning create + */ +export type phone_provisioningCreateArgs = { + /** + * Select specific fields to fetch from the phone_provisioning + */ + select?: Prisma.phone_provisioningSelect | null + /** + * Omit specific fields from the phone_provisioning + */ + omit?: Prisma.phone_provisioningOmit | null + /** + * The data needed to create a phone_provisioning. + */ + data: Prisma.XOR +} + +/** + * phone_provisioning createMany + */ +export type phone_provisioningCreateManyArgs = { + /** + * The data used to create many phone_provisionings. + */ + data: Prisma.phone_provisioningCreateManyInput | Prisma.phone_provisioningCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * phone_provisioning update + */ +export type phone_provisioningUpdateArgs = { + /** + * Select specific fields to fetch from the phone_provisioning + */ + select?: Prisma.phone_provisioningSelect | null + /** + * Omit specific fields from the phone_provisioning + */ + omit?: Prisma.phone_provisioningOmit | null + /** + * The data needed to update a phone_provisioning. + */ + data: Prisma.XOR + /** + * Choose, which phone_provisioning to update. + */ + where: Prisma.phone_provisioningWhereUniqueInput +} + +/** + * phone_provisioning updateMany + */ +export type phone_provisioningUpdateManyArgs = { + /** + * The data used to update phone_provisionings. + */ + data: Prisma.XOR + /** + * Filter which phone_provisionings to update + */ + where?: Prisma.phone_provisioningWhereInput + /** + * Limit how many phone_provisionings to update. + */ + limit?: number +} + +/** + * phone_provisioning upsert + */ +export type phone_provisioningUpsertArgs = { + /** + * Select specific fields to fetch from the phone_provisioning + */ + select?: Prisma.phone_provisioningSelect | null + /** + * Omit specific fields from the phone_provisioning + */ + omit?: Prisma.phone_provisioningOmit | null + /** + * The filter to search for the phone_provisioning to update in case it exists. + */ + where: Prisma.phone_provisioningWhereUniqueInput + /** + * In case the phone_provisioning found by the `where` argument doesn't exist, create a new phone_provisioning with this data. + */ + create: Prisma.XOR + /** + * In case the phone_provisioning was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * phone_provisioning delete + */ +export type phone_provisioningDeleteArgs = { + /** + * Select specific fields to fetch from the phone_provisioning + */ + select?: Prisma.phone_provisioningSelect | null + /** + * Omit specific fields from the phone_provisioning + */ + omit?: Prisma.phone_provisioningOmit | null + /** + * Filter which phone_provisioning to delete. + */ + where: Prisma.phone_provisioningWhereUniqueInput +} + +/** + * phone_provisioning deleteMany + */ +export type phone_provisioningDeleteManyArgs = { + /** + * Filter which phone_provisionings to delete + */ + where?: Prisma.phone_provisioningWhereInput + /** + * Limit how many phone_provisionings to delete. + */ + limit?: number +} + +/** + * phone_provisioning without action + */ +export type phone_provisioningDefaultArgs = { + /** + * Select specific fields to fetch from the phone_provisioning + */ + select?: Prisma.phone_provisioningSelect | null + /** + * Omit specific fields from the phone_provisioning + */ + omit?: Prisma.phone_provisioningOmit | null +} diff --git a/prisma/generated/mariadb/models/phonecall_channel.ts b/prisma/generated/mariadb/models/phonecall_channel.ts new file mode 100644 index 0000000..1859abf --- /dev/null +++ b/prisma/generated/mariadb/models/phonecall_channel.ts @@ -0,0 +1,1160 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `phonecall_channel` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model phonecall_channel + * + */ +export type phonecall_channelModel = runtime.Types.Result.DefaultSelection + +export type AggregatePhonecall_channel = { + _count: Phonecall_channelCountAggregateOutputType | null + _avg: Phonecall_channelAvgAggregateOutputType | null + _sum: Phonecall_channelSumAggregateOutputType | null + _min: Phonecall_channelMinAggregateOutputType | null + _max: Phonecall_channelMaxAggregateOutputType | null +} + +export type Phonecall_channelAvgAggregateOutputType = { + id: number | null + timestamp: number | null + max_tinktell: number | null + max_outgoing_thinktell: number | null + max_comwave: number | null + max_outgoing_comwave: number | null + max_total: number | null +} + +export type Phonecall_channelSumAggregateOutputType = { + id: number | null + timestamp: bigint | null + max_tinktell: number | null + max_outgoing_thinktell: number | null + max_comwave: number | null + max_outgoing_comwave: number | null + max_total: number | null +} + +export type Phonecall_channelMinAggregateOutputType = { + id: number | null + timestamp: bigint | null + max_tinktell: number | null + max_outgoing_thinktell: number | null + max_comwave: number | null + max_outgoing_comwave: number | null + max_total: number | null +} + +export type Phonecall_channelMaxAggregateOutputType = { + id: number | null + timestamp: bigint | null + max_tinktell: number | null + max_outgoing_thinktell: number | null + max_comwave: number | null + max_outgoing_comwave: number | null + max_total: number | null +} + +export type Phonecall_channelCountAggregateOutputType = { + id: number + timestamp: number + max_tinktell: number + max_outgoing_thinktell: number + max_comwave: number + max_outgoing_comwave: number + max_total: number + _all: number +} + + +export type Phonecall_channelAvgAggregateInputType = { + id?: true + timestamp?: true + max_tinktell?: true + max_outgoing_thinktell?: true + max_comwave?: true + max_outgoing_comwave?: true + max_total?: true +} + +export type Phonecall_channelSumAggregateInputType = { + id?: true + timestamp?: true + max_tinktell?: true + max_outgoing_thinktell?: true + max_comwave?: true + max_outgoing_comwave?: true + max_total?: true +} + +export type Phonecall_channelMinAggregateInputType = { + id?: true + timestamp?: true + max_tinktell?: true + max_outgoing_thinktell?: true + max_comwave?: true + max_outgoing_comwave?: true + max_total?: true +} + +export type Phonecall_channelMaxAggregateInputType = { + id?: true + timestamp?: true + max_tinktell?: true + max_outgoing_thinktell?: true + max_comwave?: true + max_outgoing_comwave?: true + max_total?: true +} + +export type Phonecall_channelCountAggregateInputType = { + id?: true + timestamp?: true + max_tinktell?: true + max_outgoing_thinktell?: true + max_comwave?: true + max_outgoing_comwave?: true + max_total?: true + _all?: true +} + +export type Phonecall_channelAggregateArgs = { + /** + * Filter which phonecall_channel to aggregate. + */ + where?: Prisma.phonecall_channelWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phonecall_channels to fetch. + */ + orderBy?: Prisma.phonecall_channelOrderByWithRelationInput | Prisma.phonecall_channelOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.phonecall_channelWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phonecall_channels 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` phonecall_channels. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned phonecall_channels + **/ + _count?: true | Phonecall_channelCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Phonecall_channelAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Phonecall_channelSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Phonecall_channelMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Phonecall_channelMaxAggregateInputType +} + +export type GetPhonecall_channelAggregateType = { + [P in keyof T & keyof AggregatePhonecall_channel]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type phonecall_channelGroupByArgs = { + where?: Prisma.phonecall_channelWhereInput + orderBy?: Prisma.phonecall_channelOrderByWithAggregationInput | Prisma.phonecall_channelOrderByWithAggregationInput[] + by: Prisma.Phonecall_channelScalarFieldEnum[] | Prisma.Phonecall_channelScalarFieldEnum + having?: Prisma.phonecall_channelScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Phonecall_channelCountAggregateInputType | true + _avg?: Phonecall_channelAvgAggregateInputType + _sum?: Phonecall_channelSumAggregateInputType + _min?: Phonecall_channelMinAggregateInputType + _max?: Phonecall_channelMaxAggregateInputType +} + +export type Phonecall_channelGroupByOutputType = { + id: number + timestamp: bigint + max_tinktell: number + max_outgoing_thinktell: number + max_comwave: number + max_outgoing_comwave: number + max_total: number + _count: Phonecall_channelCountAggregateOutputType | null + _avg: Phonecall_channelAvgAggregateOutputType | null + _sum: Phonecall_channelSumAggregateOutputType | null + _min: Phonecall_channelMinAggregateOutputType | null + _max: Phonecall_channelMaxAggregateOutputType | null +} + +type GetPhonecall_channelGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Phonecall_channelGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type phonecall_channelWhereInput = { + AND?: Prisma.phonecall_channelWhereInput | Prisma.phonecall_channelWhereInput[] + OR?: Prisma.phonecall_channelWhereInput[] + NOT?: Prisma.phonecall_channelWhereInput | Prisma.phonecall_channelWhereInput[] + id?: Prisma.IntFilter<"phonecall_channel"> | number + timestamp?: Prisma.BigIntFilter<"phonecall_channel"> | bigint | number + max_tinktell?: Prisma.IntFilter<"phonecall_channel"> | number + max_outgoing_thinktell?: Prisma.IntFilter<"phonecall_channel"> | number + max_comwave?: Prisma.IntFilter<"phonecall_channel"> | number + max_outgoing_comwave?: Prisma.IntFilter<"phonecall_channel"> | number + max_total?: Prisma.IntFilter<"phonecall_channel"> | number +} + +export type phonecall_channelOrderByWithRelationInput = { + id?: Prisma.SortOrder + timestamp?: Prisma.SortOrder + max_tinktell?: Prisma.SortOrder + max_outgoing_thinktell?: Prisma.SortOrder + max_comwave?: Prisma.SortOrder + max_outgoing_comwave?: Prisma.SortOrder + max_total?: Prisma.SortOrder +} + +export type phonecall_channelWhereUniqueInput = Prisma.AtLeast<{ + id?: number + timestamp?: bigint | number + AND?: Prisma.phonecall_channelWhereInput | Prisma.phonecall_channelWhereInput[] + OR?: Prisma.phonecall_channelWhereInput[] + NOT?: Prisma.phonecall_channelWhereInput | Prisma.phonecall_channelWhereInput[] + max_tinktell?: Prisma.IntFilter<"phonecall_channel"> | number + max_outgoing_thinktell?: Prisma.IntFilter<"phonecall_channel"> | number + max_comwave?: Prisma.IntFilter<"phonecall_channel"> | number + max_outgoing_comwave?: Prisma.IntFilter<"phonecall_channel"> | number + max_total?: Prisma.IntFilter<"phonecall_channel"> | number +}, "id" | "timestamp"> + +export type phonecall_channelOrderByWithAggregationInput = { + id?: Prisma.SortOrder + timestamp?: Prisma.SortOrder + max_tinktell?: Prisma.SortOrder + max_outgoing_thinktell?: Prisma.SortOrder + max_comwave?: Prisma.SortOrder + max_outgoing_comwave?: Prisma.SortOrder + max_total?: Prisma.SortOrder + _count?: Prisma.phonecall_channelCountOrderByAggregateInput + _avg?: Prisma.phonecall_channelAvgOrderByAggregateInput + _max?: Prisma.phonecall_channelMaxOrderByAggregateInput + _min?: Prisma.phonecall_channelMinOrderByAggregateInput + _sum?: Prisma.phonecall_channelSumOrderByAggregateInput +} + +export type phonecall_channelScalarWhereWithAggregatesInput = { + AND?: Prisma.phonecall_channelScalarWhereWithAggregatesInput | Prisma.phonecall_channelScalarWhereWithAggregatesInput[] + OR?: Prisma.phonecall_channelScalarWhereWithAggregatesInput[] + NOT?: Prisma.phonecall_channelScalarWhereWithAggregatesInput | Prisma.phonecall_channelScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"phonecall_channel"> | number + timestamp?: Prisma.BigIntWithAggregatesFilter<"phonecall_channel"> | bigint | number + max_tinktell?: Prisma.IntWithAggregatesFilter<"phonecall_channel"> | number + max_outgoing_thinktell?: Prisma.IntWithAggregatesFilter<"phonecall_channel"> | number + max_comwave?: Prisma.IntWithAggregatesFilter<"phonecall_channel"> | number + max_outgoing_comwave?: Prisma.IntWithAggregatesFilter<"phonecall_channel"> | number + max_total?: Prisma.IntWithAggregatesFilter<"phonecall_channel"> | number +} + +export type phonecall_channelCreateInput = { + timestamp: bigint | number + max_tinktell?: number + max_outgoing_thinktell?: number + max_comwave?: number + max_outgoing_comwave?: number + max_total?: number +} + +export type phonecall_channelUncheckedCreateInput = { + id?: number + timestamp: bigint | number + max_tinktell?: number + max_outgoing_thinktell?: number + max_comwave?: number + max_outgoing_comwave?: number + max_total?: number +} + +export type phonecall_channelUpdateInput = { + timestamp?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + max_tinktell?: Prisma.IntFieldUpdateOperationsInput | number + max_outgoing_thinktell?: Prisma.IntFieldUpdateOperationsInput | number + max_comwave?: Prisma.IntFieldUpdateOperationsInput | number + max_outgoing_comwave?: Prisma.IntFieldUpdateOperationsInput | number + max_total?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type phonecall_channelUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timestamp?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + max_tinktell?: Prisma.IntFieldUpdateOperationsInput | number + max_outgoing_thinktell?: Prisma.IntFieldUpdateOperationsInput | number + max_comwave?: Prisma.IntFieldUpdateOperationsInput | number + max_outgoing_comwave?: Prisma.IntFieldUpdateOperationsInput | number + max_total?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type phonecall_channelCreateManyInput = { + id?: number + timestamp: bigint | number + max_tinktell?: number + max_outgoing_thinktell?: number + max_comwave?: number + max_outgoing_comwave?: number + max_total?: number +} + +export type phonecall_channelUpdateManyMutationInput = { + timestamp?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + max_tinktell?: Prisma.IntFieldUpdateOperationsInput | number + max_outgoing_thinktell?: Prisma.IntFieldUpdateOperationsInput | number + max_comwave?: Prisma.IntFieldUpdateOperationsInput | number + max_outgoing_comwave?: Prisma.IntFieldUpdateOperationsInput | number + max_total?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type phonecall_channelUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timestamp?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + max_tinktell?: Prisma.IntFieldUpdateOperationsInput | number + max_outgoing_thinktell?: Prisma.IntFieldUpdateOperationsInput | number + max_comwave?: Prisma.IntFieldUpdateOperationsInput | number + max_outgoing_comwave?: Prisma.IntFieldUpdateOperationsInput | number + max_total?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type phonecall_channelCountOrderByAggregateInput = { + id?: Prisma.SortOrder + timestamp?: Prisma.SortOrder + max_tinktell?: Prisma.SortOrder + max_outgoing_thinktell?: Prisma.SortOrder + max_comwave?: Prisma.SortOrder + max_outgoing_comwave?: Prisma.SortOrder + max_total?: Prisma.SortOrder +} + +export type phonecall_channelAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + timestamp?: Prisma.SortOrder + max_tinktell?: Prisma.SortOrder + max_outgoing_thinktell?: Prisma.SortOrder + max_comwave?: Prisma.SortOrder + max_outgoing_comwave?: Prisma.SortOrder + max_total?: Prisma.SortOrder +} + +export type phonecall_channelMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + timestamp?: Prisma.SortOrder + max_tinktell?: Prisma.SortOrder + max_outgoing_thinktell?: Prisma.SortOrder + max_comwave?: Prisma.SortOrder + max_outgoing_comwave?: Prisma.SortOrder + max_total?: Prisma.SortOrder +} + +export type phonecall_channelMinOrderByAggregateInput = { + id?: Prisma.SortOrder + timestamp?: Prisma.SortOrder + max_tinktell?: Prisma.SortOrder + max_outgoing_thinktell?: Prisma.SortOrder + max_comwave?: Prisma.SortOrder + max_outgoing_comwave?: Prisma.SortOrder + max_total?: Prisma.SortOrder +} + +export type phonecall_channelSumOrderByAggregateInput = { + id?: Prisma.SortOrder + timestamp?: Prisma.SortOrder + max_tinktell?: Prisma.SortOrder + max_outgoing_thinktell?: Prisma.SortOrder + max_comwave?: Prisma.SortOrder + max_outgoing_comwave?: Prisma.SortOrder + max_total?: Prisma.SortOrder +} + + + +export type phonecall_channelSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + timestamp?: boolean + max_tinktell?: boolean + max_outgoing_thinktell?: boolean + max_comwave?: boolean + max_outgoing_comwave?: boolean + max_total?: boolean +}, ExtArgs["result"]["phonecall_channel"]> + + + +export type phonecall_channelSelectScalar = { + id?: boolean + timestamp?: boolean + max_tinktell?: boolean + max_outgoing_thinktell?: boolean + max_comwave?: boolean + max_outgoing_comwave?: boolean + max_total?: boolean +} + +export type phonecall_channelOmit = runtime.Types.Extensions.GetOmit<"id" | "timestamp" | "max_tinktell" | "max_outgoing_thinktell" | "max_comwave" | "max_outgoing_comwave" | "max_total", ExtArgs["result"]["phonecall_channel"]> + +export type $phonecall_channelPayload = { + name: "phonecall_channel" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + timestamp: bigint + max_tinktell: number + max_outgoing_thinktell: number + max_comwave: number + max_outgoing_comwave: number + max_total: number + }, ExtArgs["result"]["phonecall_channel"]> + composites: {} +} + +export type phonecall_channelGetPayload = runtime.Types.Result.GetResult + +export type phonecall_channelCountArgs = + Omit & { + select?: Phonecall_channelCountAggregateInputType | true + } + +export interface phonecall_channelDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['phonecall_channel'], meta: { name: 'phonecall_channel' } } + /** + * Find zero or one Phonecall_channel that matches the filter. + * @param {phonecall_channelFindUniqueArgs} args - Arguments to find a Phonecall_channel + * @example + * // Get one Phonecall_channel + * const phonecall_channel = await prisma.phonecall_channel.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_channelClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Phonecall_channel that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {phonecall_channelFindUniqueOrThrowArgs} args - Arguments to find a Phonecall_channel + * @example + * // Get one Phonecall_channel + * const phonecall_channel = await prisma.phonecall_channel.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_channelClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phonecall_channel 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 {phonecall_channelFindFirstArgs} args - Arguments to find a Phonecall_channel + * @example + * // Get one Phonecall_channel + * const phonecall_channel = await prisma.phonecall_channel.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__phonecall_channelClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phonecall_channel 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 {phonecall_channelFindFirstOrThrowArgs} args - Arguments to find a Phonecall_channel + * @example + * // Get one Phonecall_channel + * const phonecall_channel = await prisma.phonecall_channel.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__phonecall_channelClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Phonecall_channels 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 {phonecall_channelFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Phonecall_channels + * const phonecall_channels = await prisma.phonecall_channel.findMany() + * + * // Get first 10 Phonecall_channels + * const phonecall_channels = await prisma.phonecall_channel.findMany({ take: 10 }) + * + * // Only select the `id` + * const phonecall_channelWithIdOnly = await prisma.phonecall_channel.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Phonecall_channel. + * @param {phonecall_channelCreateArgs} args - Arguments to create a Phonecall_channel. + * @example + * // Create one Phonecall_channel + * const Phonecall_channel = await prisma.phonecall_channel.create({ + * data: { + * // ... data to create a Phonecall_channel + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_channelClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Phonecall_channels. + * @param {phonecall_channelCreateManyArgs} args - Arguments to create many Phonecall_channels. + * @example + * // Create many Phonecall_channels + * const phonecall_channel = await prisma.phonecall_channel.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Phonecall_channel. + * @param {phonecall_channelDeleteArgs} args - Arguments to delete one Phonecall_channel. + * @example + * // Delete one Phonecall_channel + * const Phonecall_channel = await prisma.phonecall_channel.delete({ + * where: { + * // ... filter to delete one Phonecall_channel + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_channelClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Phonecall_channel. + * @param {phonecall_channelUpdateArgs} args - Arguments to update one Phonecall_channel. + * @example + * // Update one Phonecall_channel + * const phonecall_channel = await prisma.phonecall_channel.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_channelClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Phonecall_channels. + * @param {phonecall_channelDeleteManyArgs} args - Arguments to filter Phonecall_channels to delete. + * @example + * // Delete a few Phonecall_channels + * const { count } = await prisma.phonecall_channel.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Phonecall_channels. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phonecall_channelUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Phonecall_channels + * const phonecall_channel = await prisma.phonecall_channel.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Phonecall_channel. + * @param {phonecall_channelUpsertArgs} args - Arguments to update or create a Phonecall_channel. + * @example + * // Update or create a Phonecall_channel + * const phonecall_channel = await prisma.phonecall_channel.upsert({ + * create: { + * // ... data to create a Phonecall_channel + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Phonecall_channel we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_channelClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Phonecall_channels. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phonecall_channelCountArgs} args - Arguments to filter Phonecall_channels to count. + * @example + * // Count the number of Phonecall_channels + * const count = await prisma.phonecall_channel.count({ + * where: { + * // ... the filter for the Phonecall_channels 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 Phonecall_channel. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Phonecall_channelAggregateArgs} 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 Phonecall_channel. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phonecall_channelGroupByArgs} 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 phonecall_channelGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: phonecall_channelGroupByArgs['orderBy'] } + : { orderBy?: phonecall_channelGroupByArgs['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 ? GetPhonecall_channelGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the phonecall_channel model + */ +readonly fields: phonecall_channelFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for phonecall_channel. + * 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__phonecall_channelClient 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 phonecall_channel model + */ +export interface phonecall_channelFieldRefs { + readonly id: Prisma.FieldRef<"phonecall_channel", 'Int'> + readonly timestamp: Prisma.FieldRef<"phonecall_channel", 'BigInt'> + readonly max_tinktell: Prisma.FieldRef<"phonecall_channel", 'Int'> + readonly max_outgoing_thinktell: Prisma.FieldRef<"phonecall_channel", 'Int'> + readonly max_comwave: Prisma.FieldRef<"phonecall_channel", 'Int'> + readonly max_outgoing_comwave: Prisma.FieldRef<"phonecall_channel", 'Int'> + readonly max_total: Prisma.FieldRef<"phonecall_channel", 'Int'> +} + + +// Custom InputTypes +/** + * phonecall_channel findUnique + */ +export type phonecall_channelFindUniqueArgs = { + /** + * Select specific fields to fetch from the phonecall_channel + */ + select?: Prisma.phonecall_channelSelect | null + /** + * Omit specific fields from the phonecall_channel + */ + omit?: Prisma.phonecall_channelOmit | null + /** + * Filter, which phonecall_channel to fetch. + */ + where: Prisma.phonecall_channelWhereUniqueInput +} + +/** + * phonecall_channel findUniqueOrThrow + */ +export type phonecall_channelFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the phonecall_channel + */ + select?: Prisma.phonecall_channelSelect | null + /** + * Omit specific fields from the phonecall_channel + */ + omit?: Prisma.phonecall_channelOmit | null + /** + * Filter, which phonecall_channel to fetch. + */ + where: Prisma.phonecall_channelWhereUniqueInput +} + +/** + * phonecall_channel findFirst + */ +export type phonecall_channelFindFirstArgs = { + /** + * Select specific fields to fetch from the phonecall_channel + */ + select?: Prisma.phonecall_channelSelect | null + /** + * Omit specific fields from the phonecall_channel + */ + omit?: Prisma.phonecall_channelOmit | null + /** + * Filter, which phonecall_channel to fetch. + */ + where?: Prisma.phonecall_channelWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phonecall_channels to fetch. + */ + orderBy?: Prisma.phonecall_channelOrderByWithRelationInput | Prisma.phonecall_channelOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phonecall_channels. + */ + cursor?: Prisma.phonecall_channelWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phonecall_channels 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` phonecall_channels. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phonecall_channels. + */ + distinct?: Prisma.Phonecall_channelScalarFieldEnum | Prisma.Phonecall_channelScalarFieldEnum[] +} + +/** + * phonecall_channel findFirstOrThrow + */ +export type phonecall_channelFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the phonecall_channel + */ + select?: Prisma.phonecall_channelSelect | null + /** + * Omit specific fields from the phonecall_channel + */ + omit?: Prisma.phonecall_channelOmit | null + /** + * Filter, which phonecall_channel to fetch. + */ + where?: Prisma.phonecall_channelWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phonecall_channels to fetch. + */ + orderBy?: Prisma.phonecall_channelOrderByWithRelationInput | Prisma.phonecall_channelOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phonecall_channels. + */ + cursor?: Prisma.phonecall_channelWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phonecall_channels 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` phonecall_channels. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phonecall_channels. + */ + distinct?: Prisma.Phonecall_channelScalarFieldEnum | Prisma.Phonecall_channelScalarFieldEnum[] +} + +/** + * phonecall_channel findMany + */ +export type phonecall_channelFindManyArgs = { + /** + * Select specific fields to fetch from the phonecall_channel + */ + select?: Prisma.phonecall_channelSelect | null + /** + * Omit specific fields from the phonecall_channel + */ + omit?: Prisma.phonecall_channelOmit | null + /** + * Filter, which phonecall_channels to fetch. + */ + where?: Prisma.phonecall_channelWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phonecall_channels to fetch. + */ + orderBy?: Prisma.phonecall_channelOrderByWithRelationInput | Prisma.phonecall_channelOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing phonecall_channels. + */ + cursor?: Prisma.phonecall_channelWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phonecall_channels 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` phonecall_channels. + */ + skip?: number + distinct?: Prisma.Phonecall_channelScalarFieldEnum | Prisma.Phonecall_channelScalarFieldEnum[] +} + +/** + * phonecall_channel create + */ +export type phonecall_channelCreateArgs = { + /** + * Select specific fields to fetch from the phonecall_channel + */ + select?: Prisma.phonecall_channelSelect | null + /** + * Omit specific fields from the phonecall_channel + */ + omit?: Prisma.phonecall_channelOmit | null + /** + * The data needed to create a phonecall_channel. + */ + data: Prisma.XOR +} + +/** + * phonecall_channel createMany + */ +export type phonecall_channelCreateManyArgs = { + /** + * The data used to create many phonecall_channels. + */ + data: Prisma.phonecall_channelCreateManyInput | Prisma.phonecall_channelCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * phonecall_channel update + */ +export type phonecall_channelUpdateArgs = { + /** + * Select specific fields to fetch from the phonecall_channel + */ + select?: Prisma.phonecall_channelSelect | null + /** + * Omit specific fields from the phonecall_channel + */ + omit?: Prisma.phonecall_channelOmit | null + /** + * The data needed to update a phonecall_channel. + */ + data: Prisma.XOR + /** + * Choose, which phonecall_channel to update. + */ + where: Prisma.phonecall_channelWhereUniqueInput +} + +/** + * phonecall_channel updateMany + */ +export type phonecall_channelUpdateManyArgs = { + /** + * The data used to update phonecall_channels. + */ + data: Prisma.XOR + /** + * Filter which phonecall_channels to update + */ + where?: Prisma.phonecall_channelWhereInput + /** + * Limit how many phonecall_channels to update. + */ + limit?: number +} + +/** + * phonecall_channel upsert + */ +export type phonecall_channelUpsertArgs = { + /** + * Select specific fields to fetch from the phonecall_channel + */ + select?: Prisma.phonecall_channelSelect | null + /** + * Omit specific fields from the phonecall_channel + */ + omit?: Prisma.phonecall_channelOmit | null + /** + * The filter to search for the phonecall_channel to update in case it exists. + */ + where: Prisma.phonecall_channelWhereUniqueInput + /** + * In case the phonecall_channel found by the `where` argument doesn't exist, create a new phonecall_channel with this data. + */ + create: Prisma.XOR + /** + * In case the phonecall_channel was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * phonecall_channel delete + */ +export type phonecall_channelDeleteArgs = { + /** + * Select specific fields to fetch from the phonecall_channel + */ + select?: Prisma.phonecall_channelSelect | null + /** + * Omit specific fields from the phonecall_channel + */ + omit?: Prisma.phonecall_channelOmit | null + /** + * Filter which phonecall_channel to delete. + */ + where: Prisma.phonecall_channelWhereUniqueInput +} + +/** + * phonecall_channel deleteMany + */ +export type phonecall_channelDeleteManyArgs = { + /** + * Filter which phonecall_channels to delete + */ + where?: Prisma.phonecall_channelWhereInput + /** + * Limit how many phonecall_channels to delete. + */ + limit?: number +} + +/** + * phonecall_channel without action + */ +export type phonecall_channelDefaultArgs = { + /** + * Select specific fields to fetch from the phonecall_channel + */ + select?: Prisma.phonecall_channelSelect | null + /** + * Omit specific fields from the phonecall_channel + */ + omit?: Prisma.phonecall_channelOmit | null +} diff --git a/prisma/generated/mariadb/models/phonecall_log_2025.ts b/prisma/generated/mariadb/models/phonecall_log_2025.ts new file mode 100644 index 0000000..6a20b7a --- /dev/null +++ b/prisma/generated/mariadb/models/phonecall_log_2025.ts @@ -0,0 +1,1251 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `phonecall_log_2025` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model phonecall_log_2025 + * + */ +export type phonecall_log_2025Model = runtime.Types.Result.DefaultSelection + +export type AggregatePhonecall_log_2025 = { + _count: Phonecall_log_2025CountAggregateOutputType | null + _avg: Phonecall_log_2025AvgAggregateOutputType | null + _sum: Phonecall_log_2025SumAggregateOutputType | null + _min: Phonecall_log_2025MinAggregateOutputType | null + _max: Phonecall_log_2025MaxAggregateOutputType | null +} + +export type Phonecall_log_2025AvgAggregateOutputType = { + id: number | null + duration: number | null + billing: runtime.Decimal | null +} + +export type Phonecall_log_2025SumAggregateOutputType = { + id: number | null + duration: number | null + billing: runtime.Decimal | null +} + +export type Phonecall_log_2025MinAggregateOutputType = { + id: number | null + caller_id_name: string | null + caller_id_number: string | null + destination_number: string | null + start_stamp: Date | null + answer_stamp: Date | null + end_stamp: Date | null + duration: number | null + billing: runtime.Decimal | null + hangup_cause: string | null + uuid: string | null +} + +export type Phonecall_log_2025MaxAggregateOutputType = { + id: number | null + caller_id_name: string | null + caller_id_number: string | null + destination_number: string | null + start_stamp: Date | null + answer_stamp: Date | null + end_stamp: Date | null + duration: number | null + billing: runtime.Decimal | null + hangup_cause: string | null + uuid: string | null +} + +export type Phonecall_log_2025CountAggregateOutputType = { + id: number + caller_id_name: number + caller_id_number: number + destination_number: number + start_stamp: number + answer_stamp: number + end_stamp: number + duration: number + billing: number + hangup_cause: number + uuid: number + _all: number +} + + +export type Phonecall_log_2025AvgAggregateInputType = { + id?: true + duration?: true + billing?: true +} + +export type Phonecall_log_2025SumAggregateInputType = { + id?: true + duration?: true + billing?: true +} + +export type Phonecall_log_2025MinAggregateInputType = { + id?: true + caller_id_name?: true + caller_id_number?: true + destination_number?: true + start_stamp?: true + answer_stamp?: true + end_stamp?: true + duration?: true + billing?: true + hangup_cause?: true + uuid?: true +} + +export type Phonecall_log_2025MaxAggregateInputType = { + id?: true + caller_id_name?: true + caller_id_number?: true + destination_number?: true + start_stamp?: true + answer_stamp?: true + end_stamp?: true + duration?: true + billing?: true + hangup_cause?: true + uuid?: true +} + +export type Phonecall_log_2025CountAggregateInputType = { + id?: true + caller_id_name?: true + caller_id_number?: true + destination_number?: true + start_stamp?: true + answer_stamp?: true + end_stamp?: true + duration?: true + billing?: true + hangup_cause?: true + uuid?: true + _all?: true +} + +export type Phonecall_log_2025AggregateArgs = { + /** + * Filter which phonecall_log_2025 to aggregate. + */ + where?: Prisma.phonecall_log_2025WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phonecall_log_2025s to fetch. + */ + orderBy?: Prisma.phonecall_log_2025OrderByWithRelationInput | Prisma.phonecall_log_2025OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.phonecall_log_2025WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phonecall_log_2025s 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` phonecall_log_2025s. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned phonecall_log_2025s + **/ + _count?: true | Phonecall_log_2025CountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Phonecall_log_2025AvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Phonecall_log_2025SumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Phonecall_log_2025MinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Phonecall_log_2025MaxAggregateInputType +} + +export type GetPhonecall_log_2025AggregateType = { + [P in keyof T & keyof AggregatePhonecall_log_2025]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type phonecall_log_2025GroupByArgs = { + where?: Prisma.phonecall_log_2025WhereInput + orderBy?: Prisma.phonecall_log_2025OrderByWithAggregationInput | Prisma.phonecall_log_2025OrderByWithAggregationInput[] + by: Prisma.Phonecall_log_2025ScalarFieldEnum[] | Prisma.Phonecall_log_2025ScalarFieldEnum + having?: Prisma.phonecall_log_2025ScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Phonecall_log_2025CountAggregateInputType | true + _avg?: Phonecall_log_2025AvgAggregateInputType + _sum?: Phonecall_log_2025SumAggregateInputType + _min?: Phonecall_log_2025MinAggregateInputType + _max?: Phonecall_log_2025MaxAggregateInputType +} + +export type Phonecall_log_2025GroupByOutputType = { + id: number + caller_id_name: string + caller_id_number: string + destination_number: string + start_stamp: Date + answer_stamp: Date + end_stamp: Date + duration: number + billing: runtime.Decimal + hangup_cause: string + uuid: string + _count: Phonecall_log_2025CountAggregateOutputType | null + _avg: Phonecall_log_2025AvgAggregateOutputType | null + _sum: Phonecall_log_2025SumAggregateOutputType | null + _min: Phonecall_log_2025MinAggregateOutputType | null + _max: Phonecall_log_2025MaxAggregateOutputType | null +} + +type GetPhonecall_log_2025GroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Phonecall_log_2025GroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type phonecall_log_2025WhereInput = { + AND?: Prisma.phonecall_log_2025WhereInput | Prisma.phonecall_log_2025WhereInput[] + OR?: Prisma.phonecall_log_2025WhereInput[] + NOT?: Prisma.phonecall_log_2025WhereInput | Prisma.phonecall_log_2025WhereInput[] + id?: Prisma.IntFilter<"phonecall_log_2025"> | number + caller_id_name?: Prisma.StringFilter<"phonecall_log_2025"> | string + caller_id_number?: Prisma.StringFilter<"phonecall_log_2025"> | string + destination_number?: Prisma.StringFilter<"phonecall_log_2025"> | string + start_stamp?: Prisma.DateTimeFilter<"phonecall_log_2025"> | Date | string + answer_stamp?: Prisma.DateTimeFilter<"phonecall_log_2025"> | Date | string + end_stamp?: Prisma.DateTimeFilter<"phonecall_log_2025"> | Date | string + duration?: Prisma.IntFilter<"phonecall_log_2025"> | number + billing?: Prisma.DecimalFilter<"phonecall_log_2025"> | runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause?: Prisma.StringFilter<"phonecall_log_2025"> | string + uuid?: Prisma.StringFilter<"phonecall_log_2025"> | string +} + +export type phonecall_log_2025OrderByWithRelationInput = { + id?: Prisma.SortOrder + caller_id_name?: Prisma.SortOrder + caller_id_number?: Prisma.SortOrder + destination_number?: Prisma.SortOrder + start_stamp?: Prisma.SortOrder + answer_stamp?: Prisma.SortOrder + end_stamp?: Prisma.SortOrder + duration?: Prisma.SortOrder + billing?: Prisma.SortOrder + hangup_cause?: Prisma.SortOrder + uuid?: Prisma.SortOrder + _relevance?: Prisma.phonecall_log_2025OrderByRelevanceInput +} + +export type phonecall_log_2025WhereUniqueInput = Prisma.AtLeast<{ + id?: number + uuid?: string + AND?: Prisma.phonecall_log_2025WhereInput | Prisma.phonecall_log_2025WhereInput[] + OR?: Prisma.phonecall_log_2025WhereInput[] + NOT?: Prisma.phonecall_log_2025WhereInput | Prisma.phonecall_log_2025WhereInput[] + caller_id_name?: Prisma.StringFilter<"phonecall_log_2025"> | string + caller_id_number?: Prisma.StringFilter<"phonecall_log_2025"> | string + destination_number?: Prisma.StringFilter<"phonecall_log_2025"> | string + start_stamp?: Prisma.DateTimeFilter<"phonecall_log_2025"> | Date | string + answer_stamp?: Prisma.DateTimeFilter<"phonecall_log_2025"> | Date | string + end_stamp?: Prisma.DateTimeFilter<"phonecall_log_2025"> | Date | string + duration?: Prisma.IntFilter<"phonecall_log_2025"> | number + billing?: Prisma.DecimalFilter<"phonecall_log_2025"> | runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause?: Prisma.StringFilter<"phonecall_log_2025"> | string +}, "id" | "uuid"> + +export type phonecall_log_2025OrderByWithAggregationInput = { + id?: Prisma.SortOrder + caller_id_name?: Prisma.SortOrder + caller_id_number?: Prisma.SortOrder + destination_number?: Prisma.SortOrder + start_stamp?: Prisma.SortOrder + answer_stamp?: Prisma.SortOrder + end_stamp?: Prisma.SortOrder + duration?: Prisma.SortOrder + billing?: Prisma.SortOrder + hangup_cause?: Prisma.SortOrder + uuid?: Prisma.SortOrder + _count?: Prisma.phonecall_log_2025CountOrderByAggregateInput + _avg?: Prisma.phonecall_log_2025AvgOrderByAggregateInput + _max?: Prisma.phonecall_log_2025MaxOrderByAggregateInput + _min?: Prisma.phonecall_log_2025MinOrderByAggregateInput + _sum?: Prisma.phonecall_log_2025SumOrderByAggregateInput +} + +export type phonecall_log_2025ScalarWhereWithAggregatesInput = { + AND?: Prisma.phonecall_log_2025ScalarWhereWithAggregatesInput | Prisma.phonecall_log_2025ScalarWhereWithAggregatesInput[] + OR?: Prisma.phonecall_log_2025ScalarWhereWithAggregatesInput[] + NOT?: Prisma.phonecall_log_2025ScalarWhereWithAggregatesInput | Prisma.phonecall_log_2025ScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"phonecall_log_2025"> | number + caller_id_name?: Prisma.StringWithAggregatesFilter<"phonecall_log_2025"> | string + caller_id_number?: Prisma.StringWithAggregatesFilter<"phonecall_log_2025"> | string + destination_number?: Prisma.StringWithAggregatesFilter<"phonecall_log_2025"> | string + start_stamp?: Prisma.DateTimeWithAggregatesFilter<"phonecall_log_2025"> | Date | string + answer_stamp?: Prisma.DateTimeWithAggregatesFilter<"phonecall_log_2025"> | Date | string + end_stamp?: Prisma.DateTimeWithAggregatesFilter<"phonecall_log_2025"> | Date | string + duration?: Prisma.IntWithAggregatesFilter<"phonecall_log_2025"> | number + billing?: Prisma.DecimalWithAggregatesFilter<"phonecall_log_2025"> | runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause?: Prisma.StringWithAggregatesFilter<"phonecall_log_2025"> | string + uuid?: Prisma.StringWithAggregatesFilter<"phonecall_log_2025"> | string +} + +export type phonecall_log_2025CreateInput = { + caller_id_name: string + caller_id_number: string + destination_number: string + start_stamp: Date | string + answer_stamp: Date | string + end_stamp: Date | string + duration: number + billing?: runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause: string + uuid: string +} + +export type phonecall_log_2025UncheckedCreateInput = { + id?: number + caller_id_name: string + caller_id_number: string + destination_number: string + start_stamp: Date | string + answer_stamp: Date | string + end_stamp: Date | string + duration: number + billing?: runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause: string + uuid: string +} + +export type phonecall_log_2025UpdateInput = { + caller_id_name?: Prisma.StringFieldUpdateOperationsInput | string + caller_id_number?: Prisma.StringFieldUpdateOperationsInput | string + destination_number?: Prisma.StringFieldUpdateOperationsInput | string + start_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + answer_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + duration?: Prisma.IntFieldUpdateOperationsInput | number + billing?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause?: Prisma.StringFieldUpdateOperationsInput | string + uuid?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type phonecall_log_2025UncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + caller_id_name?: Prisma.StringFieldUpdateOperationsInput | string + caller_id_number?: Prisma.StringFieldUpdateOperationsInput | string + destination_number?: Prisma.StringFieldUpdateOperationsInput | string + start_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + answer_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + duration?: Prisma.IntFieldUpdateOperationsInput | number + billing?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause?: Prisma.StringFieldUpdateOperationsInput | string + uuid?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type phonecall_log_2025CreateManyInput = { + id?: number + caller_id_name: string + caller_id_number: string + destination_number: string + start_stamp: Date | string + answer_stamp: Date | string + end_stamp: Date | string + duration: number + billing?: runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause: string + uuid: string +} + +export type phonecall_log_2025UpdateManyMutationInput = { + caller_id_name?: Prisma.StringFieldUpdateOperationsInput | string + caller_id_number?: Prisma.StringFieldUpdateOperationsInput | string + destination_number?: Prisma.StringFieldUpdateOperationsInput | string + start_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + answer_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + duration?: Prisma.IntFieldUpdateOperationsInput | number + billing?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause?: Prisma.StringFieldUpdateOperationsInput | string + uuid?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type phonecall_log_2025UncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + caller_id_name?: Prisma.StringFieldUpdateOperationsInput | string + caller_id_number?: Prisma.StringFieldUpdateOperationsInput | string + destination_number?: Prisma.StringFieldUpdateOperationsInput | string + start_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + answer_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + duration?: Prisma.IntFieldUpdateOperationsInput | number + billing?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause?: Prisma.StringFieldUpdateOperationsInput | string + uuid?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type phonecall_log_2025OrderByRelevanceInput = { + fields: Prisma.phonecall_log_2025OrderByRelevanceFieldEnum | Prisma.phonecall_log_2025OrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type phonecall_log_2025CountOrderByAggregateInput = { + id?: Prisma.SortOrder + caller_id_name?: Prisma.SortOrder + caller_id_number?: Prisma.SortOrder + destination_number?: Prisma.SortOrder + start_stamp?: Prisma.SortOrder + answer_stamp?: Prisma.SortOrder + end_stamp?: Prisma.SortOrder + duration?: Prisma.SortOrder + billing?: Prisma.SortOrder + hangup_cause?: Prisma.SortOrder + uuid?: Prisma.SortOrder +} + +export type phonecall_log_2025AvgOrderByAggregateInput = { + id?: Prisma.SortOrder + duration?: Prisma.SortOrder + billing?: Prisma.SortOrder +} + +export type phonecall_log_2025MaxOrderByAggregateInput = { + id?: Prisma.SortOrder + caller_id_name?: Prisma.SortOrder + caller_id_number?: Prisma.SortOrder + destination_number?: Prisma.SortOrder + start_stamp?: Prisma.SortOrder + answer_stamp?: Prisma.SortOrder + end_stamp?: Prisma.SortOrder + duration?: Prisma.SortOrder + billing?: Prisma.SortOrder + hangup_cause?: Prisma.SortOrder + uuid?: Prisma.SortOrder +} + +export type phonecall_log_2025MinOrderByAggregateInput = { + id?: Prisma.SortOrder + caller_id_name?: Prisma.SortOrder + caller_id_number?: Prisma.SortOrder + destination_number?: Prisma.SortOrder + start_stamp?: Prisma.SortOrder + answer_stamp?: Prisma.SortOrder + end_stamp?: Prisma.SortOrder + duration?: Prisma.SortOrder + billing?: Prisma.SortOrder + hangup_cause?: Prisma.SortOrder + uuid?: Prisma.SortOrder +} + +export type phonecall_log_2025SumOrderByAggregateInput = { + id?: Prisma.SortOrder + duration?: Prisma.SortOrder + billing?: Prisma.SortOrder +} + +export type DateTimeFieldUpdateOperationsInput = { + set?: Date | string +} + + + +export type phonecall_log_2025Select = runtime.Types.Extensions.GetSelect<{ + id?: boolean + caller_id_name?: boolean + caller_id_number?: boolean + destination_number?: boolean + start_stamp?: boolean + answer_stamp?: boolean + end_stamp?: boolean + duration?: boolean + billing?: boolean + hangup_cause?: boolean + uuid?: boolean +}, ExtArgs["result"]["phonecall_log_2025"]> + + + +export type phonecall_log_2025SelectScalar = { + id?: boolean + caller_id_name?: boolean + caller_id_number?: boolean + destination_number?: boolean + start_stamp?: boolean + answer_stamp?: boolean + end_stamp?: boolean + duration?: boolean + billing?: boolean + hangup_cause?: boolean + uuid?: boolean +} + +export type phonecall_log_2025Omit = runtime.Types.Extensions.GetOmit<"id" | "caller_id_name" | "caller_id_number" | "destination_number" | "start_stamp" | "answer_stamp" | "end_stamp" | "duration" | "billing" | "hangup_cause" | "uuid", ExtArgs["result"]["phonecall_log_2025"]> + +export type $phonecall_log_2025Payload = { + name: "phonecall_log_2025" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + caller_id_name: string + caller_id_number: string + destination_number: string + start_stamp: Date + answer_stamp: Date + end_stamp: Date + duration: number + billing: runtime.Decimal + hangup_cause: string + uuid: string + }, ExtArgs["result"]["phonecall_log_2025"]> + composites: {} +} + +export type phonecall_log_2025GetPayload = runtime.Types.Result.GetResult + +export type phonecall_log_2025CountArgs = + Omit & { + select?: Phonecall_log_2025CountAggregateInputType | true + } + +export interface phonecall_log_2025Delegate { + [K: symbol]: { types: Prisma.TypeMap['model']['phonecall_log_2025'], meta: { name: 'phonecall_log_2025' } } + /** + * Find zero or one Phonecall_log_2025 that matches the filter. + * @param {phonecall_log_2025FindUniqueArgs} args - Arguments to find a Phonecall_log_2025 + * @example + * // Get one Phonecall_log_2025 + * const phonecall_log_2025 = await prisma.phonecall_log_2025.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2025Client, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Phonecall_log_2025 that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {phonecall_log_2025FindUniqueOrThrowArgs} args - Arguments to find a Phonecall_log_2025 + * @example + * // Get one Phonecall_log_2025 + * const phonecall_log_2025 = await prisma.phonecall_log_2025.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2025Client, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phonecall_log_2025 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 {phonecall_log_2025FindFirstArgs} args - Arguments to find a Phonecall_log_2025 + * @example + * // Get one Phonecall_log_2025 + * const phonecall_log_2025 = await prisma.phonecall_log_2025.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2025Client, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phonecall_log_2025 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 {phonecall_log_2025FindFirstOrThrowArgs} args - Arguments to find a Phonecall_log_2025 + * @example + * // Get one Phonecall_log_2025 + * const phonecall_log_2025 = await prisma.phonecall_log_2025.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2025Client, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Phonecall_log_2025s 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 {phonecall_log_2025FindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Phonecall_log_2025s + * const phonecall_log_2025s = await prisma.phonecall_log_2025.findMany() + * + * // Get first 10 Phonecall_log_2025s + * const phonecall_log_2025s = await prisma.phonecall_log_2025.findMany({ take: 10 }) + * + * // Only select the `id` + * const phonecall_log_2025WithIdOnly = await prisma.phonecall_log_2025.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Phonecall_log_2025. + * @param {phonecall_log_2025CreateArgs} args - Arguments to create a Phonecall_log_2025. + * @example + * // Create one Phonecall_log_2025 + * const Phonecall_log_2025 = await prisma.phonecall_log_2025.create({ + * data: { + * // ... data to create a Phonecall_log_2025 + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2025Client, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Phonecall_log_2025s. + * @param {phonecall_log_2025CreateManyArgs} args - Arguments to create many Phonecall_log_2025s. + * @example + * // Create many Phonecall_log_2025s + * const phonecall_log_2025 = await prisma.phonecall_log_2025.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Phonecall_log_2025. + * @param {phonecall_log_2025DeleteArgs} args - Arguments to delete one Phonecall_log_2025. + * @example + * // Delete one Phonecall_log_2025 + * const Phonecall_log_2025 = await prisma.phonecall_log_2025.delete({ + * where: { + * // ... filter to delete one Phonecall_log_2025 + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2025Client, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Phonecall_log_2025. + * @param {phonecall_log_2025UpdateArgs} args - Arguments to update one Phonecall_log_2025. + * @example + * // Update one Phonecall_log_2025 + * const phonecall_log_2025 = await prisma.phonecall_log_2025.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2025Client, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Phonecall_log_2025s. + * @param {phonecall_log_2025DeleteManyArgs} args - Arguments to filter Phonecall_log_2025s to delete. + * @example + * // Delete a few Phonecall_log_2025s + * const { count } = await prisma.phonecall_log_2025.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Phonecall_log_2025s. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phonecall_log_2025UpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Phonecall_log_2025s + * const phonecall_log_2025 = await prisma.phonecall_log_2025.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Phonecall_log_2025. + * @param {phonecall_log_2025UpsertArgs} args - Arguments to update or create a Phonecall_log_2025. + * @example + * // Update or create a Phonecall_log_2025 + * const phonecall_log_2025 = await prisma.phonecall_log_2025.upsert({ + * create: { + * // ... data to create a Phonecall_log_2025 + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Phonecall_log_2025 we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2025Client, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Phonecall_log_2025s. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phonecall_log_2025CountArgs} args - Arguments to filter Phonecall_log_2025s to count. + * @example + * // Count the number of Phonecall_log_2025s + * const count = await prisma.phonecall_log_2025.count({ + * where: { + * // ... the filter for the Phonecall_log_2025s 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 Phonecall_log_2025. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Phonecall_log_2025AggregateArgs} 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 Phonecall_log_2025. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phonecall_log_2025GroupByArgs} 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 phonecall_log_2025GroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: phonecall_log_2025GroupByArgs['orderBy'] } + : { orderBy?: phonecall_log_2025GroupByArgs['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 ? GetPhonecall_log_2025GroupByPayload : Prisma.PrismaPromise +/** + * Fields of the phonecall_log_2025 model + */ +readonly fields: phonecall_log_2025FieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for phonecall_log_2025. + * 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__phonecall_log_2025Client 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 phonecall_log_2025 model + */ +export interface phonecall_log_2025FieldRefs { + readonly id: Prisma.FieldRef<"phonecall_log_2025", 'Int'> + readonly caller_id_name: Prisma.FieldRef<"phonecall_log_2025", 'String'> + readonly caller_id_number: Prisma.FieldRef<"phonecall_log_2025", 'String'> + readonly destination_number: Prisma.FieldRef<"phonecall_log_2025", 'String'> + readonly start_stamp: Prisma.FieldRef<"phonecall_log_2025", 'DateTime'> + readonly answer_stamp: Prisma.FieldRef<"phonecall_log_2025", 'DateTime'> + readonly end_stamp: Prisma.FieldRef<"phonecall_log_2025", 'DateTime'> + readonly duration: Prisma.FieldRef<"phonecall_log_2025", 'Int'> + readonly billing: Prisma.FieldRef<"phonecall_log_2025", 'Decimal'> + readonly hangup_cause: Prisma.FieldRef<"phonecall_log_2025", 'String'> + readonly uuid: Prisma.FieldRef<"phonecall_log_2025", 'String'> +} + + +// Custom InputTypes +/** + * phonecall_log_2025 findUnique + */ +export type phonecall_log_2025FindUniqueArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2025 + */ + select?: Prisma.phonecall_log_2025Select | null + /** + * Omit specific fields from the phonecall_log_2025 + */ + omit?: Prisma.phonecall_log_2025Omit | null + /** + * Filter, which phonecall_log_2025 to fetch. + */ + where: Prisma.phonecall_log_2025WhereUniqueInput +} + +/** + * phonecall_log_2025 findUniqueOrThrow + */ +export type phonecall_log_2025FindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2025 + */ + select?: Prisma.phonecall_log_2025Select | null + /** + * Omit specific fields from the phonecall_log_2025 + */ + omit?: Prisma.phonecall_log_2025Omit | null + /** + * Filter, which phonecall_log_2025 to fetch. + */ + where: Prisma.phonecall_log_2025WhereUniqueInput +} + +/** + * phonecall_log_2025 findFirst + */ +export type phonecall_log_2025FindFirstArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2025 + */ + select?: Prisma.phonecall_log_2025Select | null + /** + * Omit specific fields from the phonecall_log_2025 + */ + omit?: Prisma.phonecall_log_2025Omit | null + /** + * Filter, which phonecall_log_2025 to fetch. + */ + where?: Prisma.phonecall_log_2025WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phonecall_log_2025s to fetch. + */ + orderBy?: Prisma.phonecall_log_2025OrderByWithRelationInput | Prisma.phonecall_log_2025OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phonecall_log_2025s. + */ + cursor?: Prisma.phonecall_log_2025WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phonecall_log_2025s 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` phonecall_log_2025s. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phonecall_log_2025s. + */ + distinct?: Prisma.Phonecall_log_2025ScalarFieldEnum | Prisma.Phonecall_log_2025ScalarFieldEnum[] +} + +/** + * phonecall_log_2025 findFirstOrThrow + */ +export type phonecall_log_2025FindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2025 + */ + select?: Prisma.phonecall_log_2025Select | null + /** + * Omit specific fields from the phonecall_log_2025 + */ + omit?: Prisma.phonecall_log_2025Omit | null + /** + * Filter, which phonecall_log_2025 to fetch. + */ + where?: Prisma.phonecall_log_2025WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phonecall_log_2025s to fetch. + */ + orderBy?: Prisma.phonecall_log_2025OrderByWithRelationInput | Prisma.phonecall_log_2025OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phonecall_log_2025s. + */ + cursor?: Prisma.phonecall_log_2025WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phonecall_log_2025s 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` phonecall_log_2025s. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phonecall_log_2025s. + */ + distinct?: Prisma.Phonecall_log_2025ScalarFieldEnum | Prisma.Phonecall_log_2025ScalarFieldEnum[] +} + +/** + * phonecall_log_2025 findMany + */ +export type phonecall_log_2025FindManyArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2025 + */ + select?: Prisma.phonecall_log_2025Select | null + /** + * Omit specific fields from the phonecall_log_2025 + */ + omit?: Prisma.phonecall_log_2025Omit | null + /** + * Filter, which phonecall_log_2025s to fetch. + */ + where?: Prisma.phonecall_log_2025WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phonecall_log_2025s to fetch. + */ + orderBy?: Prisma.phonecall_log_2025OrderByWithRelationInput | Prisma.phonecall_log_2025OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing phonecall_log_2025s. + */ + cursor?: Prisma.phonecall_log_2025WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phonecall_log_2025s 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` phonecall_log_2025s. + */ + skip?: number + distinct?: Prisma.Phonecall_log_2025ScalarFieldEnum | Prisma.Phonecall_log_2025ScalarFieldEnum[] +} + +/** + * phonecall_log_2025 create + */ +export type phonecall_log_2025CreateArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2025 + */ + select?: Prisma.phonecall_log_2025Select | null + /** + * Omit specific fields from the phonecall_log_2025 + */ + omit?: Prisma.phonecall_log_2025Omit | null + /** + * The data needed to create a phonecall_log_2025. + */ + data: Prisma.XOR +} + +/** + * phonecall_log_2025 createMany + */ +export type phonecall_log_2025CreateManyArgs = { + /** + * The data used to create many phonecall_log_2025s. + */ + data: Prisma.phonecall_log_2025CreateManyInput | Prisma.phonecall_log_2025CreateManyInput[] + skipDuplicates?: boolean +} + +/** + * phonecall_log_2025 update + */ +export type phonecall_log_2025UpdateArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2025 + */ + select?: Prisma.phonecall_log_2025Select | null + /** + * Omit specific fields from the phonecall_log_2025 + */ + omit?: Prisma.phonecall_log_2025Omit | null + /** + * The data needed to update a phonecall_log_2025. + */ + data: Prisma.XOR + /** + * Choose, which phonecall_log_2025 to update. + */ + where: Prisma.phonecall_log_2025WhereUniqueInput +} + +/** + * phonecall_log_2025 updateMany + */ +export type phonecall_log_2025UpdateManyArgs = { + /** + * The data used to update phonecall_log_2025s. + */ + data: Prisma.XOR + /** + * Filter which phonecall_log_2025s to update + */ + where?: Prisma.phonecall_log_2025WhereInput + /** + * Limit how many phonecall_log_2025s to update. + */ + limit?: number +} + +/** + * phonecall_log_2025 upsert + */ +export type phonecall_log_2025UpsertArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2025 + */ + select?: Prisma.phonecall_log_2025Select | null + /** + * Omit specific fields from the phonecall_log_2025 + */ + omit?: Prisma.phonecall_log_2025Omit | null + /** + * The filter to search for the phonecall_log_2025 to update in case it exists. + */ + where: Prisma.phonecall_log_2025WhereUniqueInput + /** + * In case the phonecall_log_2025 found by the `where` argument doesn't exist, create a new phonecall_log_2025 with this data. + */ + create: Prisma.XOR + /** + * In case the phonecall_log_2025 was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * phonecall_log_2025 delete + */ +export type phonecall_log_2025DeleteArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2025 + */ + select?: Prisma.phonecall_log_2025Select | null + /** + * Omit specific fields from the phonecall_log_2025 + */ + omit?: Prisma.phonecall_log_2025Omit | null + /** + * Filter which phonecall_log_2025 to delete. + */ + where: Prisma.phonecall_log_2025WhereUniqueInput +} + +/** + * phonecall_log_2025 deleteMany + */ +export type phonecall_log_2025DeleteManyArgs = { + /** + * Filter which phonecall_log_2025s to delete + */ + where?: Prisma.phonecall_log_2025WhereInput + /** + * Limit how many phonecall_log_2025s to delete. + */ + limit?: number +} + +/** + * phonecall_log_2025 without action + */ +export type phonecall_log_2025DefaultArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2025 + */ + select?: Prisma.phonecall_log_2025Select | null + /** + * Omit specific fields from the phonecall_log_2025 + */ + omit?: Prisma.phonecall_log_2025Omit | null +} diff --git a/prisma/generated/mariadb/models/phonecall_log_2026.ts b/prisma/generated/mariadb/models/phonecall_log_2026.ts new file mode 100644 index 0000000..aaacce4 --- /dev/null +++ b/prisma/generated/mariadb/models/phonecall_log_2026.ts @@ -0,0 +1,1247 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `phonecall_log_2026` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model phonecall_log_2026 + * + */ +export type phonecall_log_2026Model = runtime.Types.Result.DefaultSelection + +export type AggregatePhonecall_log_2026 = { + _count: Phonecall_log_2026CountAggregateOutputType | null + _avg: Phonecall_log_2026AvgAggregateOutputType | null + _sum: Phonecall_log_2026SumAggregateOutputType | null + _min: Phonecall_log_2026MinAggregateOutputType | null + _max: Phonecall_log_2026MaxAggregateOutputType | null +} + +export type Phonecall_log_2026AvgAggregateOutputType = { + id: number | null + duration: number | null + billing: runtime.Decimal | null +} + +export type Phonecall_log_2026SumAggregateOutputType = { + id: number | null + duration: number | null + billing: runtime.Decimal | null +} + +export type Phonecall_log_2026MinAggregateOutputType = { + id: number | null + caller_id_name: string | null + caller_id_number: string | null + destination_number: string | null + start_stamp: Date | null + answer_stamp: Date | null + end_stamp: Date | null + duration: number | null + billing: runtime.Decimal | null + hangup_cause: string | null + uuid: string | null +} + +export type Phonecall_log_2026MaxAggregateOutputType = { + id: number | null + caller_id_name: string | null + caller_id_number: string | null + destination_number: string | null + start_stamp: Date | null + answer_stamp: Date | null + end_stamp: Date | null + duration: number | null + billing: runtime.Decimal | null + hangup_cause: string | null + uuid: string | null +} + +export type Phonecall_log_2026CountAggregateOutputType = { + id: number + caller_id_name: number + caller_id_number: number + destination_number: number + start_stamp: number + answer_stamp: number + end_stamp: number + duration: number + billing: number + hangup_cause: number + uuid: number + _all: number +} + + +export type Phonecall_log_2026AvgAggregateInputType = { + id?: true + duration?: true + billing?: true +} + +export type Phonecall_log_2026SumAggregateInputType = { + id?: true + duration?: true + billing?: true +} + +export type Phonecall_log_2026MinAggregateInputType = { + id?: true + caller_id_name?: true + caller_id_number?: true + destination_number?: true + start_stamp?: true + answer_stamp?: true + end_stamp?: true + duration?: true + billing?: true + hangup_cause?: true + uuid?: true +} + +export type Phonecall_log_2026MaxAggregateInputType = { + id?: true + caller_id_name?: true + caller_id_number?: true + destination_number?: true + start_stamp?: true + answer_stamp?: true + end_stamp?: true + duration?: true + billing?: true + hangup_cause?: true + uuid?: true +} + +export type Phonecall_log_2026CountAggregateInputType = { + id?: true + caller_id_name?: true + caller_id_number?: true + destination_number?: true + start_stamp?: true + answer_stamp?: true + end_stamp?: true + duration?: true + billing?: true + hangup_cause?: true + uuid?: true + _all?: true +} + +export type Phonecall_log_2026AggregateArgs = { + /** + * Filter which phonecall_log_2026 to aggregate. + */ + where?: Prisma.phonecall_log_2026WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phonecall_log_2026s to fetch. + */ + orderBy?: Prisma.phonecall_log_2026OrderByWithRelationInput | Prisma.phonecall_log_2026OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.phonecall_log_2026WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phonecall_log_2026s 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` phonecall_log_2026s. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned phonecall_log_2026s + **/ + _count?: true | Phonecall_log_2026CountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Phonecall_log_2026AvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Phonecall_log_2026SumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Phonecall_log_2026MinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Phonecall_log_2026MaxAggregateInputType +} + +export type GetPhonecall_log_2026AggregateType = { + [P in keyof T & keyof AggregatePhonecall_log_2026]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type phonecall_log_2026GroupByArgs = { + where?: Prisma.phonecall_log_2026WhereInput + orderBy?: Prisma.phonecall_log_2026OrderByWithAggregationInput | Prisma.phonecall_log_2026OrderByWithAggregationInput[] + by: Prisma.Phonecall_log_2026ScalarFieldEnum[] | Prisma.Phonecall_log_2026ScalarFieldEnum + having?: Prisma.phonecall_log_2026ScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Phonecall_log_2026CountAggregateInputType | true + _avg?: Phonecall_log_2026AvgAggregateInputType + _sum?: Phonecall_log_2026SumAggregateInputType + _min?: Phonecall_log_2026MinAggregateInputType + _max?: Phonecall_log_2026MaxAggregateInputType +} + +export type Phonecall_log_2026GroupByOutputType = { + id: number + caller_id_name: string + caller_id_number: string + destination_number: string + start_stamp: Date + answer_stamp: Date + end_stamp: Date + duration: number + billing: runtime.Decimal + hangup_cause: string + uuid: string + _count: Phonecall_log_2026CountAggregateOutputType | null + _avg: Phonecall_log_2026AvgAggregateOutputType | null + _sum: Phonecall_log_2026SumAggregateOutputType | null + _min: Phonecall_log_2026MinAggregateOutputType | null + _max: Phonecall_log_2026MaxAggregateOutputType | null +} + +type GetPhonecall_log_2026GroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Phonecall_log_2026GroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type phonecall_log_2026WhereInput = { + AND?: Prisma.phonecall_log_2026WhereInput | Prisma.phonecall_log_2026WhereInput[] + OR?: Prisma.phonecall_log_2026WhereInput[] + NOT?: Prisma.phonecall_log_2026WhereInput | Prisma.phonecall_log_2026WhereInput[] + id?: Prisma.IntFilter<"phonecall_log_2026"> | number + caller_id_name?: Prisma.StringFilter<"phonecall_log_2026"> | string + caller_id_number?: Prisma.StringFilter<"phonecall_log_2026"> | string + destination_number?: Prisma.StringFilter<"phonecall_log_2026"> | string + start_stamp?: Prisma.DateTimeFilter<"phonecall_log_2026"> | Date | string + answer_stamp?: Prisma.DateTimeFilter<"phonecall_log_2026"> | Date | string + end_stamp?: Prisma.DateTimeFilter<"phonecall_log_2026"> | Date | string + duration?: Prisma.IntFilter<"phonecall_log_2026"> | number + billing?: Prisma.DecimalFilter<"phonecall_log_2026"> | runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause?: Prisma.StringFilter<"phonecall_log_2026"> | string + uuid?: Prisma.StringFilter<"phonecall_log_2026"> | string +} + +export type phonecall_log_2026OrderByWithRelationInput = { + id?: Prisma.SortOrder + caller_id_name?: Prisma.SortOrder + caller_id_number?: Prisma.SortOrder + destination_number?: Prisma.SortOrder + start_stamp?: Prisma.SortOrder + answer_stamp?: Prisma.SortOrder + end_stamp?: Prisma.SortOrder + duration?: Prisma.SortOrder + billing?: Prisma.SortOrder + hangup_cause?: Prisma.SortOrder + uuid?: Prisma.SortOrder + _relevance?: Prisma.phonecall_log_2026OrderByRelevanceInput +} + +export type phonecall_log_2026WhereUniqueInput = Prisma.AtLeast<{ + id?: number + uuid?: string + AND?: Prisma.phonecall_log_2026WhereInput | Prisma.phonecall_log_2026WhereInput[] + OR?: Prisma.phonecall_log_2026WhereInput[] + NOT?: Prisma.phonecall_log_2026WhereInput | Prisma.phonecall_log_2026WhereInput[] + caller_id_name?: Prisma.StringFilter<"phonecall_log_2026"> | string + caller_id_number?: Prisma.StringFilter<"phonecall_log_2026"> | string + destination_number?: Prisma.StringFilter<"phonecall_log_2026"> | string + start_stamp?: Prisma.DateTimeFilter<"phonecall_log_2026"> | Date | string + answer_stamp?: Prisma.DateTimeFilter<"phonecall_log_2026"> | Date | string + end_stamp?: Prisma.DateTimeFilter<"phonecall_log_2026"> | Date | string + duration?: Prisma.IntFilter<"phonecall_log_2026"> | number + billing?: Prisma.DecimalFilter<"phonecall_log_2026"> | runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause?: Prisma.StringFilter<"phonecall_log_2026"> | string +}, "id" | "uuid"> + +export type phonecall_log_2026OrderByWithAggregationInput = { + id?: Prisma.SortOrder + caller_id_name?: Prisma.SortOrder + caller_id_number?: Prisma.SortOrder + destination_number?: Prisma.SortOrder + start_stamp?: Prisma.SortOrder + answer_stamp?: Prisma.SortOrder + end_stamp?: Prisma.SortOrder + duration?: Prisma.SortOrder + billing?: Prisma.SortOrder + hangup_cause?: Prisma.SortOrder + uuid?: Prisma.SortOrder + _count?: Prisma.phonecall_log_2026CountOrderByAggregateInput + _avg?: Prisma.phonecall_log_2026AvgOrderByAggregateInput + _max?: Prisma.phonecall_log_2026MaxOrderByAggregateInput + _min?: Prisma.phonecall_log_2026MinOrderByAggregateInput + _sum?: Prisma.phonecall_log_2026SumOrderByAggregateInput +} + +export type phonecall_log_2026ScalarWhereWithAggregatesInput = { + AND?: Prisma.phonecall_log_2026ScalarWhereWithAggregatesInput | Prisma.phonecall_log_2026ScalarWhereWithAggregatesInput[] + OR?: Prisma.phonecall_log_2026ScalarWhereWithAggregatesInput[] + NOT?: Prisma.phonecall_log_2026ScalarWhereWithAggregatesInput | Prisma.phonecall_log_2026ScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"phonecall_log_2026"> | number + caller_id_name?: Prisma.StringWithAggregatesFilter<"phonecall_log_2026"> | string + caller_id_number?: Prisma.StringWithAggregatesFilter<"phonecall_log_2026"> | string + destination_number?: Prisma.StringWithAggregatesFilter<"phonecall_log_2026"> | string + start_stamp?: Prisma.DateTimeWithAggregatesFilter<"phonecall_log_2026"> | Date | string + answer_stamp?: Prisma.DateTimeWithAggregatesFilter<"phonecall_log_2026"> | Date | string + end_stamp?: Prisma.DateTimeWithAggregatesFilter<"phonecall_log_2026"> | Date | string + duration?: Prisma.IntWithAggregatesFilter<"phonecall_log_2026"> | number + billing?: Prisma.DecimalWithAggregatesFilter<"phonecall_log_2026"> | runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause?: Prisma.StringWithAggregatesFilter<"phonecall_log_2026"> | string + uuid?: Prisma.StringWithAggregatesFilter<"phonecall_log_2026"> | string +} + +export type phonecall_log_2026CreateInput = { + caller_id_name: string + caller_id_number: string + destination_number: string + start_stamp: Date | string + answer_stamp: Date | string + end_stamp: Date | string + duration: number + billing?: runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause: string + uuid: string +} + +export type phonecall_log_2026UncheckedCreateInput = { + id?: number + caller_id_name: string + caller_id_number: string + destination_number: string + start_stamp: Date | string + answer_stamp: Date | string + end_stamp: Date | string + duration: number + billing?: runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause: string + uuid: string +} + +export type phonecall_log_2026UpdateInput = { + caller_id_name?: Prisma.StringFieldUpdateOperationsInput | string + caller_id_number?: Prisma.StringFieldUpdateOperationsInput | string + destination_number?: Prisma.StringFieldUpdateOperationsInput | string + start_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + answer_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + duration?: Prisma.IntFieldUpdateOperationsInput | number + billing?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause?: Prisma.StringFieldUpdateOperationsInput | string + uuid?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type phonecall_log_2026UncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + caller_id_name?: Prisma.StringFieldUpdateOperationsInput | string + caller_id_number?: Prisma.StringFieldUpdateOperationsInput | string + destination_number?: Prisma.StringFieldUpdateOperationsInput | string + start_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + answer_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + duration?: Prisma.IntFieldUpdateOperationsInput | number + billing?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause?: Prisma.StringFieldUpdateOperationsInput | string + uuid?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type phonecall_log_2026CreateManyInput = { + id?: number + caller_id_name: string + caller_id_number: string + destination_number: string + start_stamp: Date | string + answer_stamp: Date | string + end_stamp: Date | string + duration: number + billing?: runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause: string + uuid: string +} + +export type phonecall_log_2026UpdateManyMutationInput = { + caller_id_name?: Prisma.StringFieldUpdateOperationsInput | string + caller_id_number?: Prisma.StringFieldUpdateOperationsInput | string + destination_number?: Prisma.StringFieldUpdateOperationsInput | string + start_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + answer_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + duration?: Prisma.IntFieldUpdateOperationsInput | number + billing?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause?: Prisma.StringFieldUpdateOperationsInput | string + uuid?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type phonecall_log_2026UncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + caller_id_name?: Prisma.StringFieldUpdateOperationsInput | string + caller_id_number?: Prisma.StringFieldUpdateOperationsInput | string + destination_number?: Prisma.StringFieldUpdateOperationsInput | string + start_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + answer_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_stamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + duration?: Prisma.IntFieldUpdateOperationsInput | number + billing?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + hangup_cause?: Prisma.StringFieldUpdateOperationsInput | string + uuid?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type phonecall_log_2026OrderByRelevanceInput = { + fields: Prisma.phonecall_log_2026OrderByRelevanceFieldEnum | Prisma.phonecall_log_2026OrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type phonecall_log_2026CountOrderByAggregateInput = { + id?: Prisma.SortOrder + caller_id_name?: Prisma.SortOrder + caller_id_number?: Prisma.SortOrder + destination_number?: Prisma.SortOrder + start_stamp?: Prisma.SortOrder + answer_stamp?: Prisma.SortOrder + end_stamp?: Prisma.SortOrder + duration?: Prisma.SortOrder + billing?: Prisma.SortOrder + hangup_cause?: Prisma.SortOrder + uuid?: Prisma.SortOrder +} + +export type phonecall_log_2026AvgOrderByAggregateInput = { + id?: Prisma.SortOrder + duration?: Prisma.SortOrder + billing?: Prisma.SortOrder +} + +export type phonecall_log_2026MaxOrderByAggregateInput = { + id?: Prisma.SortOrder + caller_id_name?: Prisma.SortOrder + caller_id_number?: Prisma.SortOrder + destination_number?: Prisma.SortOrder + start_stamp?: Prisma.SortOrder + answer_stamp?: Prisma.SortOrder + end_stamp?: Prisma.SortOrder + duration?: Prisma.SortOrder + billing?: Prisma.SortOrder + hangup_cause?: Prisma.SortOrder + uuid?: Prisma.SortOrder +} + +export type phonecall_log_2026MinOrderByAggregateInput = { + id?: Prisma.SortOrder + caller_id_name?: Prisma.SortOrder + caller_id_number?: Prisma.SortOrder + destination_number?: Prisma.SortOrder + start_stamp?: Prisma.SortOrder + answer_stamp?: Prisma.SortOrder + end_stamp?: Prisma.SortOrder + duration?: Prisma.SortOrder + billing?: Prisma.SortOrder + hangup_cause?: Prisma.SortOrder + uuid?: Prisma.SortOrder +} + +export type phonecall_log_2026SumOrderByAggregateInput = { + id?: Prisma.SortOrder + duration?: Prisma.SortOrder + billing?: Prisma.SortOrder +} + + + +export type phonecall_log_2026Select = runtime.Types.Extensions.GetSelect<{ + id?: boolean + caller_id_name?: boolean + caller_id_number?: boolean + destination_number?: boolean + start_stamp?: boolean + answer_stamp?: boolean + end_stamp?: boolean + duration?: boolean + billing?: boolean + hangup_cause?: boolean + uuid?: boolean +}, ExtArgs["result"]["phonecall_log_2026"]> + + + +export type phonecall_log_2026SelectScalar = { + id?: boolean + caller_id_name?: boolean + caller_id_number?: boolean + destination_number?: boolean + start_stamp?: boolean + answer_stamp?: boolean + end_stamp?: boolean + duration?: boolean + billing?: boolean + hangup_cause?: boolean + uuid?: boolean +} + +export type phonecall_log_2026Omit = runtime.Types.Extensions.GetOmit<"id" | "caller_id_name" | "caller_id_number" | "destination_number" | "start_stamp" | "answer_stamp" | "end_stamp" | "duration" | "billing" | "hangup_cause" | "uuid", ExtArgs["result"]["phonecall_log_2026"]> + +export type $phonecall_log_2026Payload = { + name: "phonecall_log_2026" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + caller_id_name: string + caller_id_number: string + destination_number: string + start_stamp: Date + answer_stamp: Date + end_stamp: Date + duration: number + billing: runtime.Decimal + hangup_cause: string + uuid: string + }, ExtArgs["result"]["phonecall_log_2026"]> + composites: {} +} + +export type phonecall_log_2026GetPayload = runtime.Types.Result.GetResult + +export type phonecall_log_2026CountArgs = + Omit & { + select?: Phonecall_log_2026CountAggregateInputType | true + } + +export interface phonecall_log_2026Delegate { + [K: symbol]: { types: Prisma.TypeMap['model']['phonecall_log_2026'], meta: { name: 'phonecall_log_2026' } } + /** + * Find zero or one Phonecall_log_2026 that matches the filter. + * @param {phonecall_log_2026FindUniqueArgs} args - Arguments to find a Phonecall_log_2026 + * @example + * // Get one Phonecall_log_2026 + * const phonecall_log_2026 = await prisma.phonecall_log_2026.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2026Client, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Phonecall_log_2026 that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {phonecall_log_2026FindUniqueOrThrowArgs} args - Arguments to find a Phonecall_log_2026 + * @example + * // Get one Phonecall_log_2026 + * const phonecall_log_2026 = await prisma.phonecall_log_2026.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2026Client, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phonecall_log_2026 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 {phonecall_log_2026FindFirstArgs} args - Arguments to find a Phonecall_log_2026 + * @example + * // Get one Phonecall_log_2026 + * const phonecall_log_2026 = await prisma.phonecall_log_2026.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2026Client, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Phonecall_log_2026 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 {phonecall_log_2026FindFirstOrThrowArgs} args - Arguments to find a Phonecall_log_2026 + * @example + * // Get one Phonecall_log_2026 + * const phonecall_log_2026 = await prisma.phonecall_log_2026.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2026Client, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Phonecall_log_2026s 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 {phonecall_log_2026FindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Phonecall_log_2026s + * const phonecall_log_2026s = await prisma.phonecall_log_2026.findMany() + * + * // Get first 10 Phonecall_log_2026s + * const phonecall_log_2026s = await prisma.phonecall_log_2026.findMany({ take: 10 }) + * + * // Only select the `id` + * const phonecall_log_2026WithIdOnly = await prisma.phonecall_log_2026.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Phonecall_log_2026. + * @param {phonecall_log_2026CreateArgs} args - Arguments to create a Phonecall_log_2026. + * @example + * // Create one Phonecall_log_2026 + * const Phonecall_log_2026 = await prisma.phonecall_log_2026.create({ + * data: { + * // ... data to create a Phonecall_log_2026 + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2026Client, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Phonecall_log_2026s. + * @param {phonecall_log_2026CreateManyArgs} args - Arguments to create many Phonecall_log_2026s. + * @example + * // Create many Phonecall_log_2026s + * const phonecall_log_2026 = await prisma.phonecall_log_2026.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Phonecall_log_2026. + * @param {phonecall_log_2026DeleteArgs} args - Arguments to delete one Phonecall_log_2026. + * @example + * // Delete one Phonecall_log_2026 + * const Phonecall_log_2026 = await prisma.phonecall_log_2026.delete({ + * where: { + * // ... filter to delete one Phonecall_log_2026 + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2026Client, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Phonecall_log_2026. + * @param {phonecall_log_2026UpdateArgs} args - Arguments to update one Phonecall_log_2026. + * @example + * // Update one Phonecall_log_2026 + * const phonecall_log_2026 = await prisma.phonecall_log_2026.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2026Client, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Phonecall_log_2026s. + * @param {phonecall_log_2026DeleteManyArgs} args - Arguments to filter Phonecall_log_2026s to delete. + * @example + * // Delete a few Phonecall_log_2026s + * const { count } = await prisma.phonecall_log_2026.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Phonecall_log_2026s. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phonecall_log_2026UpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Phonecall_log_2026s + * const phonecall_log_2026 = await prisma.phonecall_log_2026.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Phonecall_log_2026. + * @param {phonecall_log_2026UpsertArgs} args - Arguments to update or create a Phonecall_log_2026. + * @example + * // Update or create a Phonecall_log_2026 + * const phonecall_log_2026 = await prisma.phonecall_log_2026.upsert({ + * create: { + * // ... data to create a Phonecall_log_2026 + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Phonecall_log_2026 we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__phonecall_log_2026Client, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Phonecall_log_2026s. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phonecall_log_2026CountArgs} args - Arguments to filter Phonecall_log_2026s to count. + * @example + * // Count the number of Phonecall_log_2026s + * const count = await prisma.phonecall_log_2026.count({ + * where: { + * // ... the filter for the Phonecall_log_2026s 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 Phonecall_log_2026. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Phonecall_log_2026AggregateArgs} 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 Phonecall_log_2026. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {phonecall_log_2026GroupByArgs} 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 phonecall_log_2026GroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: phonecall_log_2026GroupByArgs['orderBy'] } + : { orderBy?: phonecall_log_2026GroupByArgs['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 ? GetPhonecall_log_2026GroupByPayload : Prisma.PrismaPromise +/** + * Fields of the phonecall_log_2026 model + */ +readonly fields: phonecall_log_2026FieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for phonecall_log_2026. + * 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__phonecall_log_2026Client 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 phonecall_log_2026 model + */ +export interface phonecall_log_2026FieldRefs { + readonly id: Prisma.FieldRef<"phonecall_log_2026", 'Int'> + readonly caller_id_name: Prisma.FieldRef<"phonecall_log_2026", 'String'> + readonly caller_id_number: Prisma.FieldRef<"phonecall_log_2026", 'String'> + readonly destination_number: Prisma.FieldRef<"phonecall_log_2026", 'String'> + readonly start_stamp: Prisma.FieldRef<"phonecall_log_2026", 'DateTime'> + readonly answer_stamp: Prisma.FieldRef<"phonecall_log_2026", 'DateTime'> + readonly end_stamp: Prisma.FieldRef<"phonecall_log_2026", 'DateTime'> + readonly duration: Prisma.FieldRef<"phonecall_log_2026", 'Int'> + readonly billing: Prisma.FieldRef<"phonecall_log_2026", 'Decimal'> + readonly hangup_cause: Prisma.FieldRef<"phonecall_log_2026", 'String'> + readonly uuid: Prisma.FieldRef<"phonecall_log_2026", 'String'> +} + + +// Custom InputTypes +/** + * phonecall_log_2026 findUnique + */ +export type phonecall_log_2026FindUniqueArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2026 + */ + select?: Prisma.phonecall_log_2026Select | null + /** + * Omit specific fields from the phonecall_log_2026 + */ + omit?: Prisma.phonecall_log_2026Omit | null + /** + * Filter, which phonecall_log_2026 to fetch. + */ + where: Prisma.phonecall_log_2026WhereUniqueInput +} + +/** + * phonecall_log_2026 findUniqueOrThrow + */ +export type phonecall_log_2026FindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2026 + */ + select?: Prisma.phonecall_log_2026Select | null + /** + * Omit specific fields from the phonecall_log_2026 + */ + omit?: Prisma.phonecall_log_2026Omit | null + /** + * Filter, which phonecall_log_2026 to fetch. + */ + where: Prisma.phonecall_log_2026WhereUniqueInput +} + +/** + * phonecall_log_2026 findFirst + */ +export type phonecall_log_2026FindFirstArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2026 + */ + select?: Prisma.phonecall_log_2026Select | null + /** + * Omit specific fields from the phonecall_log_2026 + */ + omit?: Prisma.phonecall_log_2026Omit | null + /** + * Filter, which phonecall_log_2026 to fetch. + */ + where?: Prisma.phonecall_log_2026WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phonecall_log_2026s to fetch. + */ + orderBy?: Prisma.phonecall_log_2026OrderByWithRelationInput | Prisma.phonecall_log_2026OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phonecall_log_2026s. + */ + cursor?: Prisma.phonecall_log_2026WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phonecall_log_2026s 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` phonecall_log_2026s. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phonecall_log_2026s. + */ + distinct?: Prisma.Phonecall_log_2026ScalarFieldEnum | Prisma.Phonecall_log_2026ScalarFieldEnum[] +} + +/** + * phonecall_log_2026 findFirstOrThrow + */ +export type phonecall_log_2026FindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2026 + */ + select?: Prisma.phonecall_log_2026Select | null + /** + * Omit specific fields from the phonecall_log_2026 + */ + omit?: Prisma.phonecall_log_2026Omit | null + /** + * Filter, which phonecall_log_2026 to fetch. + */ + where?: Prisma.phonecall_log_2026WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phonecall_log_2026s to fetch. + */ + orderBy?: Prisma.phonecall_log_2026OrderByWithRelationInput | Prisma.phonecall_log_2026OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for phonecall_log_2026s. + */ + cursor?: Prisma.phonecall_log_2026WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phonecall_log_2026s 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` phonecall_log_2026s. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of phonecall_log_2026s. + */ + distinct?: Prisma.Phonecall_log_2026ScalarFieldEnum | Prisma.Phonecall_log_2026ScalarFieldEnum[] +} + +/** + * phonecall_log_2026 findMany + */ +export type phonecall_log_2026FindManyArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2026 + */ + select?: Prisma.phonecall_log_2026Select | null + /** + * Omit specific fields from the phonecall_log_2026 + */ + omit?: Prisma.phonecall_log_2026Omit | null + /** + * Filter, which phonecall_log_2026s to fetch. + */ + where?: Prisma.phonecall_log_2026WhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of phonecall_log_2026s to fetch. + */ + orderBy?: Prisma.phonecall_log_2026OrderByWithRelationInput | Prisma.phonecall_log_2026OrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing phonecall_log_2026s. + */ + cursor?: Prisma.phonecall_log_2026WhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` phonecall_log_2026s 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` phonecall_log_2026s. + */ + skip?: number + distinct?: Prisma.Phonecall_log_2026ScalarFieldEnum | Prisma.Phonecall_log_2026ScalarFieldEnum[] +} + +/** + * phonecall_log_2026 create + */ +export type phonecall_log_2026CreateArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2026 + */ + select?: Prisma.phonecall_log_2026Select | null + /** + * Omit specific fields from the phonecall_log_2026 + */ + omit?: Prisma.phonecall_log_2026Omit | null + /** + * The data needed to create a phonecall_log_2026. + */ + data: Prisma.XOR +} + +/** + * phonecall_log_2026 createMany + */ +export type phonecall_log_2026CreateManyArgs = { + /** + * The data used to create many phonecall_log_2026s. + */ + data: Prisma.phonecall_log_2026CreateManyInput | Prisma.phonecall_log_2026CreateManyInput[] + skipDuplicates?: boolean +} + +/** + * phonecall_log_2026 update + */ +export type phonecall_log_2026UpdateArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2026 + */ + select?: Prisma.phonecall_log_2026Select | null + /** + * Omit specific fields from the phonecall_log_2026 + */ + omit?: Prisma.phonecall_log_2026Omit | null + /** + * The data needed to update a phonecall_log_2026. + */ + data: Prisma.XOR + /** + * Choose, which phonecall_log_2026 to update. + */ + where: Prisma.phonecall_log_2026WhereUniqueInput +} + +/** + * phonecall_log_2026 updateMany + */ +export type phonecall_log_2026UpdateManyArgs = { + /** + * The data used to update phonecall_log_2026s. + */ + data: Prisma.XOR + /** + * Filter which phonecall_log_2026s to update + */ + where?: Prisma.phonecall_log_2026WhereInput + /** + * Limit how many phonecall_log_2026s to update. + */ + limit?: number +} + +/** + * phonecall_log_2026 upsert + */ +export type phonecall_log_2026UpsertArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2026 + */ + select?: Prisma.phonecall_log_2026Select | null + /** + * Omit specific fields from the phonecall_log_2026 + */ + omit?: Prisma.phonecall_log_2026Omit | null + /** + * The filter to search for the phonecall_log_2026 to update in case it exists. + */ + where: Prisma.phonecall_log_2026WhereUniqueInput + /** + * In case the phonecall_log_2026 found by the `where` argument doesn't exist, create a new phonecall_log_2026 with this data. + */ + create: Prisma.XOR + /** + * In case the phonecall_log_2026 was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * phonecall_log_2026 delete + */ +export type phonecall_log_2026DeleteArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2026 + */ + select?: Prisma.phonecall_log_2026Select | null + /** + * Omit specific fields from the phonecall_log_2026 + */ + omit?: Prisma.phonecall_log_2026Omit | null + /** + * Filter which phonecall_log_2026 to delete. + */ + where: Prisma.phonecall_log_2026WhereUniqueInput +} + +/** + * phonecall_log_2026 deleteMany + */ +export type phonecall_log_2026DeleteManyArgs = { + /** + * Filter which phonecall_log_2026s to delete + */ + where?: Prisma.phonecall_log_2026WhereInput + /** + * Limit how many phonecall_log_2026s to delete. + */ + limit?: number +} + +/** + * phonecall_log_2026 without action + */ +export type phonecall_log_2026DefaultArgs = { + /** + * Select specific fields to fetch from the phonecall_log_2026 + */ + select?: Prisma.phonecall_log_2026Select | null + /** + * Omit specific fields from the phonecall_log_2026 + */ + omit?: Prisma.phonecall_log_2026Omit | null +} diff --git a/prisma/generated/mariadb/models/product.ts b/prisma/generated/mariadb/models/product.ts new file mode 100644 index 0000000..29ed06b --- /dev/null +++ b/prisma/generated/mariadb/models/product.ts @@ -0,0 +1,1791 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `product` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model product + * + */ +export type productModel = runtime.Types.Result.DefaultSelection + +export type AggregateProduct = { + _count: ProductCountAggregateOutputType | null + _avg: ProductAvgAggregateOutputType | null + _sum: ProductSumAggregateOutputType | null + _min: ProductMinAggregateOutputType | null + _max: ProductMaxAggregateOutputType | null +} + +export type ProductAvgAggregateOutputType = { + id: number | null + date_orig: number | null + active: number | null + price: number | null + price_recurr_type: number | null + price_recurr_weekday: number | null + price_recurr_week: number | null + price_recurr_schedule: number | null + download_speed: number | null + upload_speed: number | null + night_package: number | null + quota_day: number | null + quota_night: number | null + category: number | null + uniq_charge: number | null + inv_threshold: number | null + inv_qte: number | null + list_tech: number | null + type: number | null + combo_ready: number | null +} + +export type ProductSumAggregateOutputType = { + id: number | null + date_orig: bigint | null + active: number | null + price: number | null + price_recurr_type: number | null + price_recurr_weekday: number | null + price_recurr_week: number | null + price_recurr_schedule: number | null + download_speed: bigint | null + upload_speed: bigint | null + night_package: number | null + quota_day: bigint | null + quota_night: bigint | null + category: number | null + uniq_charge: number | null + inv_threshold: number | null + inv_qte: number | null + list_tech: number | null + type: number | null + combo_ready: number | null +} + +export type ProductMinAggregateOutputType = { + id: number | null + date_orig: bigint | null + sku: string | null + active: number | null + price: number | null + price_recurr_type: number | null + price_recurr_weekday: number | null + price_recurr_week: number | null + price_recurr_schedule: number | null + download_speed: bigint | null + upload_speed: bigint | null + night_package: number | null + quota_day: bigint | null + quota_night: bigint | null + category: number | null + uniq_charge: number | null + commercial: boolean | null + portal_hidden: boolean | null + inv_keep: boolean | null + inv_tag: string | null + inv_threshold: number | null + inv_qte: number | null + emplacement: string | null + list_tech: number | null + type: number | null + combo_ready: number | null + fibre_lineprofile: string | null + fibre_serviceprofile: string | null +} + +export type ProductMaxAggregateOutputType = { + id: number | null + date_orig: bigint | null + sku: string | null + active: number | null + price: number | null + price_recurr_type: number | null + price_recurr_weekday: number | null + price_recurr_week: number | null + price_recurr_schedule: number | null + download_speed: bigint | null + upload_speed: bigint | null + night_package: number | null + quota_day: bigint | null + quota_night: bigint | null + category: number | null + uniq_charge: number | null + commercial: boolean | null + portal_hidden: boolean | null + inv_keep: boolean | null + inv_tag: string | null + inv_threshold: number | null + inv_qte: number | null + emplacement: string | null + list_tech: number | null + type: number | null + combo_ready: number | null + fibre_lineprofile: string | null + fibre_serviceprofile: string | null +} + +export type ProductCountAggregateOutputType = { + id: number + date_orig: number + sku: number + active: number + price: number + price_recurr_type: number + price_recurr_weekday: number + price_recurr_week: number + price_recurr_schedule: number + download_speed: number + upload_speed: number + night_package: number + quota_day: number + quota_night: number + category: number + uniq_charge: number + commercial: number + portal_hidden: number + inv_keep: number + inv_tag: number + inv_threshold: number + inv_qte: number + emplacement: number + list_tech: number + type: number + combo_ready: number + fibre_lineprofile: number + fibre_serviceprofile: number + _all: number +} + + +export type ProductAvgAggregateInputType = { + id?: true + date_orig?: true + active?: true + price?: true + price_recurr_type?: true + price_recurr_weekday?: true + price_recurr_week?: true + price_recurr_schedule?: true + download_speed?: true + upload_speed?: true + night_package?: true + quota_day?: true + quota_night?: true + category?: true + uniq_charge?: true + inv_threshold?: true + inv_qte?: true + list_tech?: true + type?: true + combo_ready?: true +} + +export type ProductSumAggregateInputType = { + id?: true + date_orig?: true + active?: true + price?: true + price_recurr_type?: true + price_recurr_weekday?: true + price_recurr_week?: true + price_recurr_schedule?: true + download_speed?: true + upload_speed?: true + night_package?: true + quota_day?: true + quota_night?: true + category?: true + uniq_charge?: true + inv_threshold?: true + inv_qte?: true + list_tech?: true + type?: true + combo_ready?: true +} + +export type ProductMinAggregateInputType = { + id?: true + date_orig?: true + sku?: true + active?: true + price?: true + price_recurr_type?: true + price_recurr_weekday?: true + price_recurr_week?: true + price_recurr_schedule?: true + download_speed?: true + upload_speed?: true + night_package?: true + quota_day?: true + quota_night?: true + category?: true + uniq_charge?: true + commercial?: true + portal_hidden?: true + inv_keep?: true + inv_tag?: true + inv_threshold?: true + inv_qte?: true + emplacement?: true + list_tech?: true + type?: true + combo_ready?: true + fibre_lineprofile?: true + fibre_serviceprofile?: true +} + +export type ProductMaxAggregateInputType = { + id?: true + date_orig?: true + sku?: true + active?: true + price?: true + price_recurr_type?: true + price_recurr_weekday?: true + price_recurr_week?: true + price_recurr_schedule?: true + download_speed?: true + upload_speed?: true + night_package?: true + quota_day?: true + quota_night?: true + category?: true + uniq_charge?: true + commercial?: true + portal_hidden?: true + inv_keep?: true + inv_tag?: true + inv_threshold?: true + inv_qte?: true + emplacement?: true + list_tech?: true + type?: true + combo_ready?: true + fibre_lineprofile?: true + fibre_serviceprofile?: true +} + +export type ProductCountAggregateInputType = { + id?: true + date_orig?: true + sku?: true + active?: true + price?: true + price_recurr_type?: true + price_recurr_weekday?: true + price_recurr_week?: true + price_recurr_schedule?: true + download_speed?: true + upload_speed?: true + night_package?: true + quota_day?: true + quota_night?: true + category?: true + uniq_charge?: true + commercial?: true + portal_hidden?: true + inv_keep?: true + inv_tag?: true + inv_threshold?: true + inv_qte?: true + emplacement?: true + list_tech?: true + type?: true + combo_ready?: true + fibre_lineprofile?: true + fibre_serviceprofile?: true + _all?: true +} + +export type ProductAggregateArgs = { + /** + * Filter which product to aggregate. + */ + where?: Prisma.productWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of products to fetch. + */ + orderBy?: Prisma.productOrderByWithRelationInput | Prisma.productOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.productWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` products 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` products. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned products + **/ + _count?: true | ProductCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ProductAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ProductSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ProductMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ProductMaxAggregateInputType +} + +export type GetProductAggregateType = { + [P in keyof T & keyof AggregateProduct]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type productGroupByArgs = { + where?: Prisma.productWhereInput + orderBy?: Prisma.productOrderByWithAggregationInput | Prisma.productOrderByWithAggregationInput[] + by: Prisma.ProductScalarFieldEnum[] | Prisma.ProductScalarFieldEnum + having?: Prisma.productScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ProductCountAggregateInputType | true + _avg?: ProductAvgAggregateInputType + _sum?: ProductSumAggregateInputType + _min?: ProductMinAggregateInputType + _max?: ProductMaxAggregateInputType +} + +export type ProductGroupByOutputType = { + id: number + date_orig: bigint | null + sku: string | null + active: number | null + price: number | null + price_recurr_type: number | null + price_recurr_weekday: number | null + price_recurr_week: number | null + price_recurr_schedule: number | null + download_speed: bigint | null + upload_speed: bigint | null + night_package: number + quota_day: bigint | null + quota_night: bigint | null + category: number | null + uniq_charge: number + commercial: boolean + portal_hidden: boolean + inv_keep: boolean + inv_tag: string | null + inv_threshold: number + inv_qte: number + emplacement: string + list_tech: number + type: number + combo_ready: number + fibre_lineprofile: string | null + fibre_serviceprofile: string | null + _count: ProductCountAggregateOutputType | null + _avg: ProductAvgAggregateOutputType | null + _sum: ProductSumAggregateOutputType | null + _min: ProductMinAggregateOutputType | null + _max: ProductMaxAggregateOutputType | null +} + +type GetProductGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ProductGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type productWhereInput = { + AND?: Prisma.productWhereInput | Prisma.productWhereInput[] + OR?: Prisma.productWhereInput[] + NOT?: Prisma.productWhereInput | Prisma.productWhereInput[] + id?: Prisma.IntFilter<"product"> | number + date_orig?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null + sku?: Prisma.StringNullableFilter<"product"> | string | null + active?: Prisma.IntNullableFilter<"product"> | number | null + price?: Prisma.FloatNullableFilter<"product"> | number | null + price_recurr_type?: Prisma.IntNullableFilter<"product"> | number | null + price_recurr_weekday?: Prisma.IntNullableFilter<"product"> | number | null + price_recurr_week?: Prisma.IntNullableFilter<"product"> | number | null + price_recurr_schedule?: Prisma.IntNullableFilter<"product"> | number | null + download_speed?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null + upload_speed?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null + night_package?: Prisma.IntFilter<"product"> | number + quota_day?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null + quota_night?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null + category?: Prisma.IntNullableFilter<"product"> | number | null + uniq_charge?: Prisma.IntFilter<"product"> | number + commercial?: Prisma.BoolFilter<"product"> | boolean + portal_hidden?: Prisma.BoolFilter<"product"> | boolean + inv_keep?: Prisma.BoolFilter<"product"> | boolean + inv_tag?: Prisma.StringNullableFilter<"product"> | string | null + inv_threshold?: Prisma.IntFilter<"product"> | number + inv_qte?: Prisma.IntFilter<"product"> | number + emplacement?: Prisma.StringFilter<"product"> | string + list_tech?: Prisma.IntFilter<"product"> | number + type?: Prisma.IntFilter<"product"> | number + combo_ready?: Prisma.IntFilter<"product"> | number + fibre_lineprofile?: Prisma.StringNullableFilter<"product"> | string | null + fibre_serviceprofile?: Prisma.StringNullableFilter<"product"> | string | null +} + +export type productOrderByWithRelationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + sku?: Prisma.SortOrderInput | Prisma.SortOrder + active?: Prisma.SortOrderInput | Prisma.SortOrder + price?: Prisma.SortOrderInput | Prisma.SortOrder + price_recurr_type?: Prisma.SortOrderInput | Prisma.SortOrder + price_recurr_weekday?: Prisma.SortOrderInput | Prisma.SortOrder + price_recurr_week?: Prisma.SortOrderInput | Prisma.SortOrder + price_recurr_schedule?: Prisma.SortOrderInput | Prisma.SortOrder + download_speed?: Prisma.SortOrderInput | Prisma.SortOrder + upload_speed?: Prisma.SortOrderInput | Prisma.SortOrder + night_package?: Prisma.SortOrder + quota_day?: Prisma.SortOrderInput | Prisma.SortOrder + quota_night?: Prisma.SortOrderInput | Prisma.SortOrder + category?: Prisma.SortOrderInput | Prisma.SortOrder + uniq_charge?: Prisma.SortOrder + commercial?: Prisma.SortOrder + portal_hidden?: Prisma.SortOrder + inv_keep?: Prisma.SortOrder + inv_tag?: Prisma.SortOrderInput | Prisma.SortOrder + inv_threshold?: Prisma.SortOrder + inv_qte?: Prisma.SortOrder + emplacement?: Prisma.SortOrder + list_tech?: Prisma.SortOrder + type?: Prisma.SortOrder + combo_ready?: Prisma.SortOrder + fibre_lineprofile?: Prisma.SortOrderInput | Prisma.SortOrder + fibre_serviceprofile?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.productOrderByRelevanceInput +} + +export type productWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.productWhereInput | Prisma.productWhereInput[] + OR?: Prisma.productWhereInput[] + NOT?: Prisma.productWhereInput | Prisma.productWhereInput[] + date_orig?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null + sku?: Prisma.StringNullableFilter<"product"> | string | null + active?: Prisma.IntNullableFilter<"product"> | number | null + price?: Prisma.FloatNullableFilter<"product"> | number | null + price_recurr_type?: Prisma.IntNullableFilter<"product"> | number | null + price_recurr_weekday?: Prisma.IntNullableFilter<"product"> | number | null + price_recurr_week?: Prisma.IntNullableFilter<"product"> | number | null + price_recurr_schedule?: Prisma.IntNullableFilter<"product"> | number | null + download_speed?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null + upload_speed?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null + night_package?: Prisma.IntFilter<"product"> | number + quota_day?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null + quota_night?: Prisma.BigIntNullableFilter<"product"> | bigint | number | null + category?: Prisma.IntNullableFilter<"product"> | number | null + uniq_charge?: Prisma.IntFilter<"product"> | number + commercial?: Prisma.BoolFilter<"product"> | boolean + portal_hidden?: Prisma.BoolFilter<"product"> | boolean + inv_keep?: Prisma.BoolFilter<"product"> | boolean + inv_tag?: Prisma.StringNullableFilter<"product"> | string | null + inv_threshold?: Prisma.IntFilter<"product"> | number + inv_qte?: Prisma.IntFilter<"product"> | number + emplacement?: Prisma.StringFilter<"product"> | string + list_tech?: Prisma.IntFilter<"product"> | number + type?: Prisma.IntFilter<"product"> | number + combo_ready?: Prisma.IntFilter<"product"> | number + fibre_lineprofile?: Prisma.StringNullableFilter<"product"> | string | null + fibre_serviceprofile?: Prisma.StringNullableFilter<"product"> | string | null +}, "id"> + +export type productOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + sku?: Prisma.SortOrderInput | Prisma.SortOrder + active?: Prisma.SortOrderInput | Prisma.SortOrder + price?: Prisma.SortOrderInput | Prisma.SortOrder + price_recurr_type?: Prisma.SortOrderInput | Prisma.SortOrder + price_recurr_weekday?: Prisma.SortOrderInput | Prisma.SortOrder + price_recurr_week?: Prisma.SortOrderInput | Prisma.SortOrder + price_recurr_schedule?: Prisma.SortOrderInput | Prisma.SortOrder + download_speed?: Prisma.SortOrderInput | Prisma.SortOrder + upload_speed?: Prisma.SortOrderInput | Prisma.SortOrder + night_package?: Prisma.SortOrder + quota_day?: Prisma.SortOrderInput | Prisma.SortOrder + quota_night?: Prisma.SortOrderInput | Prisma.SortOrder + category?: Prisma.SortOrderInput | Prisma.SortOrder + uniq_charge?: Prisma.SortOrder + commercial?: Prisma.SortOrder + portal_hidden?: Prisma.SortOrder + inv_keep?: Prisma.SortOrder + inv_tag?: Prisma.SortOrderInput | Prisma.SortOrder + inv_threshold?: Prisma.SortOrder + inv_qte?: Prisma.SortOrder + emplacement?: Prisma.SortOrder + list_tech?: Prisma.SortOrder + type?: Prisma.SortOrder + combo_ready?: Prisma.SortOrder + fibre_lineprofile?: Prisma.SortOrderInput | Prisma.SortOrder + fibre_serviceprofile?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.productCountOrderByAggregateInput + _avg?: Prisma.productAvgOrderByAggregateInput + _max?: Prisma.productMaxOrderByAggregateInput + _min?: Prisma.productMinOrderByAggregateInput + _sum?: Prisma.productSumOrderByAggregateInput +} + +export type productScalarWhereWithAggregatesInput = { + AND?: Prisma.productScalarWhereWithAggregatesInput | Prisma.productScalarWhereWithAggregatesInput[] + OR?: Prisma.productScalarWhereWithAggregatesInput[] + NOT?: Prisma.productScalarWhereWithAggregatesInput | Prisma.productScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"product"> | number + date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"product"> | bigint | number | null + sku?: Prisma.StringNullableWithAggregatesFilter<"product"> | string | null + active?: Prisma.IntNullableWithAggregatesFilter<"product"> | number | null + price?: Prisma.FloatNullableWithAggregatesFilter<"product"> | number | null + price_recurr_type?: Prisma.IntNullableWithAggregatesFilter<"product"> | number | null + price_recurr_weekday?: Prisma.IntNullableWithAggregatesFilter<"product"> | number | null + price_recurr_week?: Prisma.IntNullableWithAggregatesFilter<"product"> | number | null + price_recurr_schedule?: Prisma.IntNullableWithAggregatesFilter<"product"> | number | null + download_speed?: Prisma.BigIntNullableWithAggregatesFilter<"product"> | bigint | number | null + upload_speed?: Prisma.BigIntNullableWithAggregatesFilter<"product"> | bigint | number | null + night_package?: Prisma.IntWithAggregatesFilter<"product"> | number + quota_day?: Prisma.BigIntNullableWithAggregatesFilter<"product"> | bigint | number | null + quota_night?: Prisma.BigIntNullableWithAggregatesFilter<"product"> | bigint | number | null + category?: Prisma.IntNullableWithAggregatesFilter<"product"> | number | null + uniq_charge?: Prisma.IntWithAggregatesFilter<"product"> | number + commercial?: Prisma.BoolWithAggregatesFilter<"product"> | boolean + portal_hidden?: Prisma.BoolWithAggregatesFilter<"product"> | boolean + inv_keep?: Prisma.BoolWithAggregatesFilter<"product"> | boolean + inv_tag?: Prisma.StringNullableWithAggregatesFilter<"product"> | string | null + inv_threshold?: Prisma.IntWithAggregatesFilter<"product"> | number + inv_qte?: Prisma.IntWithAggregatesFilter<"product"> | number + emplacement?: Prisma.StringWithAggregatesFilter<"product"> | string + list_tech?: Prisma.IntWithAggregatesFilter<"product"> | number + type?: Prisma.IntWithAggregatesFilter<"product"> | number + combo_ready?: Prisma.IntWithAggregatesFilter<"product"> | number + fibre_lineprofile?: Prisma.StringNullableWithAggregatesFilter<"product"> | string | null + fibre_serviceprofile?: Prisma.StringNullableWithAggregatesFilter<"product"> | string | null +} + +export type productCreateInput = { + date_orig?: bigint | number | null + sku?: string | null + active?: number | null + price?: number | null + price_recurr_type?: number | null + price_recurr_weekday?: number | null + price_recurr_week?: number | null + price_recurr_schedule?: number | null + download_speed?: bigint | number | null + upload_speed?: bigint | number | null + night_package?: number + quota_day?: bigint | number | null + quota_night?: bigint | number | null + category?: number | null + uniq_charge?: number + commercial?: boolean + portal_hidden?: boolean + inv_keep?: boolean + inv_tag?: string | null + inv_threshold?: number + inv_qte?: number + emplacement?: string + list_tech?: number + type?: number + combo_ready?: number + fibre_lineprofile?: string | null + fibre_serviceprofile?: string | null +} + +export type productUncheckedCreateInput = { + id?: number + date_orig?: bigint | number | null + sku?: string | null + active?: number | null + price?: number | null + price_recurr_type?: number | null + price_recurr_weekday?: number | null + price_recurr_week?: number | null + price_recurr_schedule?: number | null + download_speed?: bigint | number | null + upload_speed?: bigint | number | null + night_package?: number + quota_day?: bigint | number | null + quota_night?: bigint | number | null + category?: number | null + uniq_charge?: number + commercial?: boolean + portal_hidden?: boolean + inv_keep?: boolean + inv_tag?: string | null + inv_threshold?: number + inv_qte?: number + emplacement?: string + list_tech?: number + type?: number + combo_ready?: number + fibre_lineprofile?: string | null + fibre_serviceprofile?: string | null +} + +export type productUpdateInput = { + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + active?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + price_recurr_type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price_recurr_weekday?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price_recurr_week?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price_recurr_schedule?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + night_package?: Prisma.IntFieldUpdateOperationsInput | number + quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + category?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + uniq_charge?: Prisma.IntFieldUpdateOperationsInput | number + commercial?: Prisma.BoolFieldUpdateOperationsInput | boolean + portal_hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean + inv_keep?: Prisma.BoolFieldUpdateOperationsInput | boolean + inv_tag?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + inv_threshold?: Prisma.IntFieldUpdateOperationsInput | number + inv_qte?: Prisma.IntFieldUpdateOperationsInput | number + emplacement?: Prisma.StringFieldUpdateOperationsInput | string + list_tech?: Prisma.IntFieldUpdateOperationsInput | number + type?: Prisma.IntFieldUpdateOperationsInput | number + combo_ready?: Prisma.IntFieldUpdateOperationsInput | number + fibre_lineprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fibre_serviceprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type productUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + active?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + price_recurr_type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price_recurr_weekday?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price_recurr_week?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price_recurr_schedule?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + night_package?: Prisma.IntFieldUpdateOperationsInput | number + quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + category?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + uniq_charge?: Prisma.IntFieldUpdateOperationsInput | number + commercial?: Prisma.BoolFieldUpdateOperationsInput | boolean + portal_hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean + inv_keep?: Prisma.BoolFieldUpdateOperationsInput | boolean + inv_tag?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + inv_threshold?: Prisma.IntFieldUpdateOperationsInput | number + inv_qte?: Prisma.IntFieldUpdateOperationsInput | number + emplacement?: Prisma.StringFieldUpdateOperationsInput | string + list_tech?: Prisma.IntFieldUpdateOperationsInput | number + type?: Prisma.IntFieldUpdateOperationsInput | number + combo_ready?: Prisma.IntFieldUpdateOperationsInput | number + fibre_lineprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fibre_serviceprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type productCreateManyInput = { + id?: number + date_orig?: bigint | number | null + sku?: string | null + active?: number | null + price?: number | null + price_recurr_type?: number | null + price_recurr_weekday?: number | null + price_recurr_week?: number | null + price_recurr_schedule?: number | null + download_speed?: bigint | number | null + upload_speed?: bigint | number | null + night_package?: number + quota_day?: bigint | number | null + quota_night?: bigint | number | null + category?: number | null + uniq_charge?: number + commercial?: boolean + portal_hidden?: boolean + inv_keep?: boolean + inv_tag?: string | null + inv_threshold?: number + inv_qte?: number + emplacement?: string + list_tech?: number + type?: number + combo_ready?: number + fibre_lineprofile?: string | null + fibre_serviceprofile?: string | null +} + +export type productUpdateManyMutationInput = { + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + active?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + price_recurr_type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price_recurr_weekday?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price_recurr_week?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price_recurr_schedule?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + night_package?: Prisma.IntFieldUpdateOperationsInput | number + quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + category?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + uniq_charge?: Prisma.IntFieldUpdateOperationsInput | number + commercial?: Prisma.BoolFieldUpdateOperationsInput | boolean + portal_hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean + inv_keep?: Prisma.BoolFieldUpdateOperationsInput | boolean + inv_tag?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + inv_threshold?: Prisma.IntFieldUpdateOperationsInput | number + inv_qte?: Prisma.IntFieldUpdateOperationsInput | number + emplacement?: Prisma.StringFieldUpdateOperationsInput | string + list_tech?: Prisma.IntFieldUpdateOperationsInput | number + type?: Prisma.IntFieldUpdateOperationsInput | number + combo_ready?: Prisma.IntFieldUpdateOperationsInput | number + fibre_lineprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fibre_serviceprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type productUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + active?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + price_recurr_type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price_recurr_weekday?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price_recurr_week?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + price_recurr_schedule?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + night_package?: Prisma.IntFieldUpdateOperationsInput | number + quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + category?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + uniq_charge?: Prisma.IntFieldUpdateOperationsInput | number + commercial?: Prisma.BoolFieldUpdateOperationsInput | boolean + portal_hidden?: Prisma.BoolFieldUpdateOperationsInput | boolean + inv_keep?: Prisma.BoolFieldUpdateOperationsInput | boolean + inv_tag?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + inv_threshold?: Prisma.IntFieldUpdateOperationsInput | number + inv_qte?: Prisma.IntFieldUpdateOperationsInput | number + emplacement?: Prisma.StringFieldUpdateOperationsInput | string + list_tech?: Prisma.IntFieldUpdateOperationsInput | number + type?: Prisma.IntFieldUpdateOperationsInput | number + combo_ready?: Prisma.IntFieldUpdateOperationsInput | number + fibre_lineprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fibre_serviceprofile?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type productOrderByRelevanceInput = { + fields: Prisma.productOrderByRelevanceFieldEnum | Prisma.productOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type productCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + sku?: Prisma.SortOrder + active?: Prisma.SortOrder + price?: Prisma.SortOrder + price_recurr_type?: Prisma.SortOrder + price_recurr_weekday?: Prisma.SortOrder + price_recurr_week?: Prisma.SortOrder + price_recurr_schedule?: Prisma.SortOrder + download_speed?: Prisma.SortOrder + upload_speed?: Prisma.SortOrder + night_package?: Prisma.SortOrder + quota_day?: Prisma.SortOrder + quota_night?: Prisma.SortOrder + category?: Prisma.SortOrder + uniq_charge?: Prisma.SortOrder + commercial?: Prisma.SortOrder + portal_hidden?: Prisma.SortOrder + inv_keep?: Prisma.SortOrder + inv_tag?: Prisma.SortOrder + inv_threshold?: Prisma.SortOrder + inv_qte?: Prisma.SortOrder + emplacement?: Prisma.SortOrder + list_tech?: Prisma.SortOrder + type?: Prisma.SortOrder + combo_ready?: Prisma.SortOrder + fibre_lineprofile?: Prisma.SortOrder + fibre_serviceprofile?: Prisma.SortOrder +} + +export type productAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + active?: Prisma.SortOrder + price?: Prisma.SortOrder + price_recurr_type?: Prisma.SortOrder + price_recurr_weekday?: Prisma.SortOrder + price_recurr_week?: Prisma.SortOrder + price_recurr_schedule?: Prisma.SortOrder + download_speed?: Prisma.SortOrder + upload_speed?: Prisma.SortOrder + night_package?: Prisma.SortOrder + quota_day?: Prisma.SortOrder + quota_night?: Prisma.SortOrder + category?: Prisma.SortOrder + uniq_charge?: Prisma.SortOrder + inv_threshold?: Prisma.SortOrder + inv_qte?: Prisma.SortOrder + list_tech?: Prisma.SortOrder + type?: Prisma.SortOrder + combo_ready?: Prisma.SortOrder +} + +export type productMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + sku?: Prisma.SortOrder + active?: Prisma.SortOrder + price?: Prisma.SortOrder + price_recurr_type?: Prisma.SortOrder + price_recurr_weekday?: Prisma.SortOrder + price_recurr_week?: Prisma.SortOrder + price_recurr_schedule?: Prisma.SortOrder + download_speed?: Prisma.SortOrder + upload_speed?: Prisma.SortOrder + night_package?: Prisma.SortOrder + quota_day?: Prisma.SortOrder + quota_night?: Prisma.SortOrder + category?: Prisma.SortOrder + uniq_charge?: Prisma.SortOrder + commercial?: Prisma.SortOrder + portal_hidden?: Prisma.SortOrder + inv_keep?: Prisma.SortOrder + inv_tag?: Prisma.SortOrder + inv_threshold?: Prisma.SortOrder + inv_qte?: Prisma.SortOrder + emplacement?: Prisma.SortOrder + list_tech?: Prisma.SortOrder + type?: Prisma.SortOrder + combo_ready?: Prisma.SortOrder + fibre_lineprofile?: Prisma.SortOrder + fibre_serviceprofile?: Prisma.SortOrder +} + +export type productMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + sku?: Prisma.SortOrder + active?: Prisma.SortOrder + price?: Prisma.SortOrder + price_recurr_type?: Prisma.SortOrder + price_recurr_weekday?: Prisma.SortOrder + price_recurr_week?: Prisma.SortOrder + price_recurr_schedule?: Prisma.SortOrder + download_speed?: Prisma.SortOrder + upload_speed?: Prisma.SortOrder + night_package?: Prisma.SortOrder + quota_day?: Prisma.SortOrder + quota_night?: Prisma.SortOrder + category?: Prisma.SortOrder + uniq_charge?: Prisma.SortOrder + commercial?: Prisma.SortOrder + portal_hidden?: Prisma.SortOrder + inv_keep?: Prisma.SortOrder + inv_tag?: Prisma.SortOrder + inv_threshold?: Prisma.SortOrder + inv_qte?: Prisma.SortOrder + emplacement?: Prisma.SortOrder + list_tech?: Prisma.SortOrder + type?: Prisma.SortOrder + combo_ready?: Prisma.SortOrder + fibre_lineprofile?: Prisma.SortOrder + fibre_serviceprofile?: Prisma.SortOrder +} + +export type productSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + active?: Prisma.SortOrder + price?: Prisma.SortOrder + price_recurr_type?: Prisma.SortOrder + price_recurr_weekday?: Prisma.SortOrder + price_recurr_week?: Prisma.SortOrder + price_recurr_schedule?: Prisma.SortOrder + download_speed?: Prisma.SortOrder + upload_speed?: Prisma.SortOrder + night_package?: Prisma.SortOrder + quota_day?: Prisma.SortOrder + quota_night?: Prisma.SortOrder + category?: Prisma.SortOrder + uniq_charge?: Prisma.SortOrder + inv_threshold?: Prisma.SortOrder + inv_qte?: Prisma.SortOrder + list_tech?: Prisma.SortOrder + type?: Prisma.SortOrder + combo_ready?: Prisma.SortOrder +} + + + +export type productSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date_orig?: boolean + sku?: boolean + active?: boolean + price?: boolean + price_recurr_type?: boolean + price_recurr_weekday?: boolean + price_recurr_week?: boolean + price_recurr_schedule?: boolean + download_speed?: boolean + upload_speed?: boolean + night_package?: boolean + quota_day?: boolean + quota_night?: boolean + category?: boolean + uniq_charge?: boolean + commercial?: boolean + portal_hidden?: boolean + inv_keep?: boolean + inv_tag?: boolean + inv_threshold?: boolean + inv_qte?: boolean + emplacement?: boolean + list_tech?: boolean + type?: boolean + combo_ready?: boolean + fibre_lineprofile?: boolean + fibre_serviceprofile?: boolean +}, ExtArgs["result"]["product"]> + + + +export type productSelectScalar = { + id?: boolean + date_orig?: boolean + sku?: boolean + active?: boolean + price?: boolean + price_recurr_type?: boolean + price_recurr_weekday?: boolean + price_recurr_week?: boolean + price_recurr_schedule?: boolean + download_speed?: boolean + upload_speed?: boolean + night_package?: boolean + quota_day?: boolean + quota_night?: boolean + category?: boolean + uniq_charge?: boolean + commercial?: boolean + portal_hidden?: boolean + inv_keep?: boolean + inv_tag?: boolean + inv_threshold?: boolean + inv_qte?: boolean + emplacement?: boolean + list_tech?: boolean + type?: boolean + combo_ready?: boolean + fibre_lineprofile?: boolean + fibre_serviceprofile?: boolean +} + +export type productOmit = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "sku" | "active" | "price" | "price_recurr_type" | "price_recurr_weekday" | "price_recurr_week" | "price_recurr_schedule" | "download_speed" | "upload_speed" | "night_package" | "quota_day" | "quota_night" | "category" | "uniq_charge" | "commercial" | "portal_hidden" | "inv_keep" | "inv_tag" | "inv_threshold" | "inv_qte" | "emplacement" | "list_tech" | "type" | "combo_ready" | "fibre_lineprofile" | "fibre_serviceprofile", ExtArgs["result"]["product"]> + +export type $productPayload = { + name: "product" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + date_orig: bigint | null + sku: string | null + active: number | null + price: number | null + price_recurr_type: number | null + price_recurr_weekday: number | null + price_recurr_week: number | null + price_recurr_schedule: number | null + download_speed: bigint | null + upload_speed: bigint | null + night_package: number + quota_day: bigint | null + quota_night: bigint | null + category: number | null + uniq_charge: number + commercial: boolean + portal_hidden: boolean + inv_keep: boolean + inv_tag: string | null + inv_threshold: number + inv_qte: number + emplacement: string + list_tech: number + type: number + combo_ready: number + fibre_lineprofile: string | null + fibre_serviceprofile: string | null + }, ExtArgs["result"]["product"]> + composites: {} +} + +export type productGetPayload = runtime.Types.Result.GetResult + +export type productCountArgs = + Omit & { + select?: ProductCountAggregateInputType | true + } + +export interface productDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['product'], meta: { name: 'product' } } + /** + * Find zero or one Product that matches the filter. + * @param {productFindUniqueArgs} args - Arguments to find a Product + * @example + * // Get one Product + * const product = await prisma.product.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__productClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Product that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {productFindUniqueOrThrowArgs} args - Arguments to find a Product + * @example + * // Get one Product + * const product = await prisma.product.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__productClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product 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 {productFindFirstArgs} args - Arguments to find a Product + * @example + * // Get one Product + * const product = await prisma.product.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__productClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product 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 {productFindFirstOrThrowArgs} args - Arguments to find a Product + * @example + * // Get one Product + * const product = await prisma.product.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__productClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Products 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 {productFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Products + * const products = await prisma.product.findMany() + * + * // Get first 10 Products + * const products = await prisma.product.findMany({ take: 10 }) + * + * // Only select the `id` + * const productWithIdOnly = await prisma.product.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Product. + * @param {productCreateArgs} args - Arguments to create a Product. + * @example + * // Create one Product + * const Product = await prisma.product.create({ + * data: { + * // ... data to create a Product + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__productClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Products. + * @param {productCreateManyArgs} args - Arguments to create many Products. + * @example + * // Create many Products + * const product = await prisma.product.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Product. + * @param {productDeleteArgs} args - Arguments to delete one Product. + * @example + * // Delete one Product + * const Product = await prisma.product.delete({ + * where: { + * // ... filter to delete one Product + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__productClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Product. + * @param {productUpdateArgs} args - Arguments to update one Product. + * @example + * // Update one Product + * const product = await prisma.product.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__productClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Products. + * @param {productDeleteManyArgs} args - Arguments to filter Products to delete. + * @example + * // Delete a few Products + * const { count } = await prisma.product.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Products. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {productUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Products + * const product = await prisma.product.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Product. + * @param {productUpsertArgs} args - Arguments to update or create a Product. + * @example + * // Update or create a Product + * const product = await prisma.product.upsert({ + * create: { + * // ... data to create a Product + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Product we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__productClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Products. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {productCountArgs} args - Arguments to filter Products to count. + * @example + * // Count the number of Products + * const count = await prisma.product.count({ + * where: { + * // ... the filter for the Products 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 Product. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProductAggregateArgs} 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 Product. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {productGroupByArgs} 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 productGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: productGroupByArgs['orderBy'] } + : { orderBy?: productGroupByArgs['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 ? GetProductGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the product model + */ +readonly fields: productFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for product. + * 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__productClient 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 product model + */ +export interface productFieldRefs { + readonly id: Prisma.FieldRef<"product", 'Int'> + readonly date_orig: Prisma.FieldRef<"product", 'BigInt'> + readonly sku: Prisma.FieldRef<"product", 'String'> + readonly active: Prisma.FieldRef<"product", 'Int'> + readonly price: Prisma.FieldRef<"product", 'Float'> + readonly price_recurr_type: Prisma.FieldRef<"product", 'Int'> + readonly price_recurr_weekday: Prisma.FieldRef<"product", 'Int'> + readonly price_recurr_week: Prisma.FieldRef<"product", 'Int'> + readonly price_recurr_schedule: Prisma.FieldRef<"product", 'Int'> + readonly download_speed: Prisma.FieldRef<"product", 'BigInt'> + readonly upload_speed: Prisma.FieldRef<"product", 'BigInt'> + readonly night_package: Prisma.FieldRef<"product", 'Int'> + readonly quota_day: Prisma.FieldRef<"product", 'BigInt'> + readonly quota_night: Prisma.FieldRef<"product", 'BigInt'> + readonly category: Prisma.FieldRef<"product", 'Int'> + readonly uniq_charge: Prisma.FieldRef<"product", 'Int'> + readonly commercial: Prisma.FieldRef<"product", 'Boolean'> + readonly portal_hidden: Prisma.FieldRef<"product", 'Boolean'> + readonly inv_keep: Prisma.FieldRef<"product", 'Boolean'> + readonly inv_tag: Prisma.FieldRef<"product", 'String'> + readonly inv_threshold: Prisma.FieldRef<"product", 'Int'> + readonly inv_qte: Prisma.FieldRef<"product", 'Int'> + readonly emplacement: Prisma.FieldRef<"product", 'String'> + readonly list_tech: Prisma.FieldRef<"product", 'Int'> + readonly type: Prisma.FieldRef<"product", 'Int'> + readonly combo_ready: Prisma.FieldRef<"product", 'Int'> + readonly fibre_lineprofile: Prisma.FieldRef<"product", 'String'> + readonly fibre_serviceprofile: Prisma.FieldRef<"product", 'String'> +} + + +// Custom InputTypes +/** + * product findUnique + */ +export type productFindUniqueArgs = { + /** + * Select specific fields to fetch from the product + */ + select?: Prisma.productSelect | null + /** + * Omit specific fields from the product + */ + omit?: Prisma.productOmit | null + /** + * Filter, which product to fetch. + */ + where: Prisma.productWhereUniqueInput +} + +/** + * product findUniqueOrThrow + */ +export type productFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the product + */ + select?: Prisma.productSelect | null + /** + * Omit specific fields from the product + */ + omit?: Prisma.productOmit | null + /** + * Filter, which product to fetch. + */ + where: Prisma.productWhereUniqueInput +} + +/** + * product findFirst + */ +export type productFindFirstArgs = { + /** + * Select specific fields to fetch from the product + */ + select?: Prisma.productSelect | null + /** + * Omit specific fields from the product + */ + omit?: Prisma.productOmit | null + /** + * Filter, which product to fetch. + */ + where?: Prisma.productWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of products to fetch. + */ + orderBy?: Prisma.productOrderByWithRelationInput | Prisma.productOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for products. + */ + cursor?: Prisma.productWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` products 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` products. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of products. + */ + distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[] +} + +/** + * product findFirstOrThrow + */ +export type productFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the product + */ + select?: Prisma.productSelect | null + /** + * Omit specific fields from the product + */ + omit?: Prisma.productOmit | null + /** + * Filter, which product to fetch. + */ + where?: Prisma.productWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of products to fetch. + */ + orderBy?: Prisma.productOrderByWithRelationInput | Prisma.productOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for products. + */ + cursor?: Prisma.productWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` products 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` products. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of products. + */ + distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[] +} + +/** + * product findMany + */ +export type productFindManyArgs = { + /** + * Select specific fields to fetch from the product + */ + select?: Prisma.productSelect | null + /** + * Omit specific fields from the product + */ + omit?: Prisma.productOmit | null + /** + * Filter, which products to fetch. + */ + where?: Prisma.productWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of products to fetch. + */ + orderBy?: Prisma.productOrderByWithRelationInput | Prisma.productOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing products. + */ + cursor?: Prisma.productWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` products 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` products. + */ + skip?: number + distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[] +} + +/** + * product create + */ +export type productCreateArgs = { + /** + * Select specific fields to fetch from the product + */ + select?: Prisma.productSelect | null + /** + * Omit specific fields from the product + */ + omit?: Prisma.productOmit | null + /** + * The data needed to create a product. + */ + data?: Prisma.XOR +} + +/** + * product createMany + */ +export type productCreateManyArgs = { + /** + * The data used to create many products. + */ + data: Prisma.productCreateManyInput | Prisma.productCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * product update + */ +export type productUpdateArgs = { + /** + * Select specific fields to fetch from the product + */ + select?: Prisma.productSelect | null + /** + * Omit specific fields from the product + */ + omit?: Prisma.productOmit | null + /** + * The data needed to update a product. + */ + data: Prisma.XOR + /** + * Choose, which product to update. + */ + where: Prisma.productWhereUniqueInput +} + +/** + * product updateMany + */ +export type productUpdateManyArgs = { + /** + * The data used to update products. + */ + data: Prisma.XOR + /** + * Filter which products to update + */ + where?: Prisma.productWhereInput + /** + * Limit how many products to update. + */ + limit?: number +} + +/** + * product upsert + */ +export type productUpsertArgs = { + /** + * Select specific fields to fetch from the product + */ + select?: Prisma.productSelect | null + /** + * Omit specific fields from the product + */ + omit?: Prisma.productOmit | null + /** + * The filter to search for the product to update in case it exists. + */ + where: Prisma.productWhereUniqueInput + /** + * In case the product found by the `where` argument doesn't exist, create a new product with this data. + */ + create: Prisma.XOR + /** + * In case the product was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * product delete + */ +export type productDeleteArgs = { + /** + * Select specific fields to fetch from the product + */ + select?: Prisma.productSelect | null + /** + * Omit specific fields from the product + */ + omit?: Prisma.productOmit | null + /** + * Filter which product to delete. + */ + where: Prisma.productWhereUniqueInput +} + +/** + * product deleteMany + */ +export type productDeleteManyArgs = { + /** + * Filter which products to delete + */ + where?: Prisma.productWhereInput + /** + * Limit how many products to delete. + */ + limit?: number +} + +/** + * product without action + */ +export type productDefaultArgs = { + /** + * Select specific fields to fetch from the product + */ + select?: Prisma.productSelect | null + /** + * Omit specific fields from the product + */ + omit?: Prisma.productOmit | null +} diff --git a/prisma/generated/mariadb/models/product_cat.ts b/prisma/generated/mariadb/models/product_cat.ts new file mode 100644 index 0000000..a870e68 --- /dev/null +++ b/prisma/generated/mariadb/models/product_cat.ts @@ -0,0 +1,1123 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `product_cat` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model product_cat + * + */ +export type product_catModel = runtime.Types.Result.DefaultSelection + +export type AggregateProduct_cat = { + _count: Product_catCountAggregateOutputType | null + _avg: Product_catAvgAggregateOutputType | null + _sum: Product_catSumAggregateOutputType | null + _min: Product_catMinAggregateOutputType | null + _max: Product_catMaxAggregateOutputType | null +} + +export type Product_catAvgAggregateOutputType = { + id: number | null + status: number | null + num_compte: number | null + combo_dispo: number | null +} + +export type Product_catSumAggregateOutputType = { + id: number | null + status: number | null + num_compte: bigint | null + combo_dispo: number | null +} + +export type Product_catMinAggregateOutputType = { + id: number | null + name: string | null + notes: string | null + status: number | null + num_compte: bigint | null + combo_dispo: number | null +} + +export type Product_catMaxAggregateOutputType = { + id: number | null + name: string | null + notes: string | null + status: number | null + num_compte: bigint | null + combo_dispo: number | null +} + +export type Product_catCountAggregateOutputType = { + id: number + name: number + notes: number + status: number + num_compte: number + combo_dispo: number + _all: number +} + + +export type Product_catAvgAggregateInputType = { + id?: true + status?: true + num_compte?: true + combo_dispo?: true +} + +export type Product_catSumAggregateInputType = { + id?: true + status?: true + num_compte?: true + combo_dispo?: true +} + +export type Product_catMinAggregateInputType = { + id?: true + name?: true + notes?: true + status?: true + num_compte?: true + combo_dispo?: true +} + +export type Product_catMaxAggregateInputType = { + id?: true + name?: true + notes?: true + status?: true + num_compte?: true + combo_dispo?: true +} + +export type Product_catCountAggregateInputType = { + id?: true + name?: true + notes?: true + status?: true + num_compte?: true + combo_dispo?: true + _all?: true +} + +export type Product_catAggregateArgs = { + /** + * Filter which product_cat to aggregate. + */ + where?: Prisma.product_catWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_cats to fetch. + */ + orderBy?: Prisma.product_catOrderByWithRelationInput | Prisma.product_catOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.product_catWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_cats 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` product_cats. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned product_cats + **/ + _count?: true | Product_catCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Product_catAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Product_catSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Product_catMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Product_catMaxAggregateInputType +} + +export type GetProduct_catAggregateType = { + [P in keyof T & keyof AggregateProduct_cat]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type product_catGroupByArgs = { + where?: Prisma.product_catWhereInput + orderBy?: Prisma.product_catOrderByWithAggregationInput | Prisma.product_catOrderByWithAggregationInput[] + by: Prisma.Product_catScalarFieldEnum[] | Prisma.Product_catScalarFieldEnum + having?: Prisma.product_catScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Product_catCountAggregateInputType | true + _avg?: Product_catAvgAggregateInputType + _sum?: Product_catSumAggregateInputType + _min?: Product_catMinAggregateInputType + _max?: Product_catMaxAggregateInputType +} + +export type Product_catGroupByOutputType = { + id: number + name: string | null + notes: string | null + status: number | null + num_compte: bigint | null + combo_dispo: number + _count: Product_catCountAggregateOutputType | null + _avg: Product_catAvgAggregateOutputType | null + _sum: Product_catSumAggregateOutputType | null + _min: Product_catMinAggregateOutputType | null + _max: Product_catMaxAggregateOutputType | null +} + +type GetProduct_catGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Product_catGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type product_catWhereInput = { + AND?: Prisma.product_catWhereInput | Prisma.product_catWhereInput[] + OR?: Prisma.product_catWhereInput[] + NOT?: Prisma.product_catWhereInput | Prisma.product_catWhereInput[] + id?: Prisma.IntFilter<"product_cat"> | number + name?: Prisma.StringNullableFilter<"product_cat"> | string | null + notes?: Prisma.StringNullableFilter<"product_cat"> | string | null + status?: Prisma.IntNullableFilter<"product_cat"> | number | null + num_compte?: Prisma.BigIntNullableFilter<"product_cat"> | bigint | number | null + combo_dispo?: Prisma.IntFilter<"product_cat"> | number +} + +export type product_catOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + num_compte?: Prisma.SortOrderInput | Prisma.SortOrder + combo_dispo?: Prisma.SortOrder + _relevance?: Prisma.product_catOrderByRelevanceInput +} + +export type product_catWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.product_catWhereInput | Prisma.product_catWhereInput[] + OR?: Prisma.product_catWhereInput[] + NOT?: Prisma.product_catWhereInput | Prisma.product_catWhereInput[] + name?: Prisma.StringNullableFilter<"product_cat"> | string | null + notes?: Prisma.StringNullableFilter<"product_cat"> | string | null + status?: Prisma.IntNullableFilter<"product_cat"> | number | null + num_compte?: Prisma.BigIntNullableFilter<"product_cat"> | bigint | number | null + combo_dispo?: Prisma.IntFilter<"product_cat"> | number +}, "id"> + +export type product_catOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + notes?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + num_compte?: Prisma.SortOrderInput | Prisma.SortOrder + combo_dispo?: Prisma.SortOrder + _count?: Prisma.product_catCountOrderByAggregateInput + _avg?: Prisma.product_catAvgOrderByAggregateInput + _max?: Prisma.product_catMaxOrderByAggregateInput + _min?: Prisma.product_catMinOrderByAggregateInput + _sum?: Prisma.product_catSumOrderByAggregateInput +} + +export type product_catScalarWhereWithAggregatesInput = { + AND?: Prisma.product_catScalarWhereWithAggregatesInput | Prisma.product_catScalarWhereWithAggregatesInput[] + OR?: Prisma.product_catScalarWhereWithAggregatesInput[] + NOT?: Prisma.product_catScalarWhereWithAggregatesInput | Prisma.product_catScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"product_cat"> | number + name?: Prisma.StringNullableWithAggregatesFilter<"product_cat"> | string | null + notes?: Prisma.StringNullableWithAggregatesFilter<"product_cat"> | string | null + status?: Prisma.IntNullableWithAggregatesFilter<"product_cat"> | number | null + num_compte?: Prisma.BigIntNullableWithAggregatesFilter<"product_cat"> | bigint | number | null + combo_dispo?: Prisma.IntWithAggregatesFilter<"product_cat"> | number +} + +export type product_catCreateInput = { + name?: string | null + notes?: string | null + status?: number | null + num_compte?: bigint | number | null + combo_dispo?: number +} + +export type product_catUncheckedCreateInput = { + id?: number + name?: string | null + notes?: string | null + status?: number | null + num_compte?: bigint | number | null + combo_dispo?: number +} + +export type product_catUpdateInput = { + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + combo_dispo?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type product_catUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + combo_dispo?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type product_catCreateManyInput = { + id?: number + name?: string | null + notes?: string | null + status?: number | null + num_compte?: bigint | number | null + combo_dispo?: number +} + +export type product_catUpdateManyMutationInput = { + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + combo_dispo?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type product_catUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + num_compte?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + combo_dispo?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type product_catOrderByRelevanceInput = { + fields: Prisma.product_catOrderByRelevanceFieldEnum | Prisma.product_catOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type product_catCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + notes?: Prisma.SortOrder + status?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + combo_dispo?: Prisma.SortOrder +} + +export type product_catAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + combo_dispo?: Prisma.SortOrder +} + +export type product_catMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + notes?: Prisma.SortOrder + status?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + combo_dispo?: Prisma.SortOrder +} + +export type product_catMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + notes?: Prisma.SortOrder + status?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + combo_dispo?: Prisma.SortOrder +} + +export type product_catSumOrderByAggregateInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder + num_compte?: Prisma.SortOrder + combo_dispo?: Prisma.SortOrder +} + + + +export type product_catSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + notes?: boolean + status?: boolean + num_compte?: boolean + combo_dispo?: boolean +}, ExtArgs["result"]["product_cat"]> + + + +export type product_catSelectScalar = { + id?: boolean + name?: boolean + notes?: boolean + status?: boolean + num_compte?: boolean + combo_dispo?: boolean +} + +export type product_catOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "notes" | "status" | "num_compte" | "combo_dispo", ExtArgs["result"]["product_cat"]> + +export type $product_catPayload = { + name: "product_cat" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name: string | null + notes: string | null + status: number | null + num_compte: bigint | null + combo_dispo: number + }, ExtArgs["result"]["product_cat"]> + composites: {} +} + +export type product_catGetPayload = runtime.Types.Result.GetResult + +export type product_catCountArgs = + Omit & { + select?: Product_catCountAggregateInputType | true + } + +export interface product_catDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['product_cat'], meta: { name: 'product_cat' } } + /** + * Find zero or one Product_cat that matches the filter. + * @param {product_catFindUniqueArgs} args - Arguments to find a Product_cat + * @example + * // Get one Product_cat + * const product_cat = await prisma.product_cat.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__product_catClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Product_cat that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {product_catFindUniqueOrThrowArgs} args - Arguments to find a Product_cat + * @example + * // Get one Product_cat + * const product_cat = await prisma.product_cat.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__product_catClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_cat 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 {product_catFindFirstArgs} args - Arguments to find a Product_cat + * @example + * // Get one Product_cat + * const product_cat = await prisma.product_cat.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__product_catClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_cat 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 {product_catFindFirstOrThrowArgs} args - Arguments to find a Product_cat + * @example + * // Get one Product_cat + * const product_cat = await prisma.product_cat.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__product_catClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Product_cats 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 {product_catFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Product_cats + * const product_cats = await prisma.product_cat.findMany() + * + * // Get first 10 Product_cats + * const product_cats = await prisma.product_cat.findMany({ take: 10 }) + * + * // Only select the `id` + * const product_catWithIdOnly = await prisma.product_cat.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Product_cat. + * @param {product_catCreateArgs} args - Arguments to create a Product_cat. + * @example + * // Create one Product_cat + * const Product_cat = await prisma.product_cat.create({ + * data: { + * // ... data to create a Product_cat + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__product_catClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Product_cats. + * @param {product_catCreateManyArgs} args - Arguments to create many Product_cats. + * @example + * // Create many Product_cats + * const product_cat = await prisma.product_cat.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Product_cat. + * @param {product_catDeleteArgs} args - Arguments to delete one Product_cat. + * @example + * // Delete one Product_cat + * const Product_cat = await prisma.product_cat.delete({ + * where: { + * // ... filter to delete one Product_cat + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__product_catClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Product_cat. + * @param {product_catUpdateArgs} args - Arguments to update one Product_cat. + * @example + * // Update one Product_cat + * const product_cat = await prisma.product_cat.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__product_catClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Product_cats. + * @param {product_catDeleteManyArgs} args - Arguments to filter Product_cats to delete. + * @example + * // Delete a few Product_cats + * const { count } = await prisma.product_cat.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Product_cats. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_catUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Product_cats + * const product_cat = await prisma.product_cat.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Product_cat. + * @param {product_catUpsertArgs} args - Arguments to update or create a Product_cat. + * @example + * // Update or create a Product_cat + * const product_cat = await prisma.product_cat.upsert({ + * create: { + * // ... data to create a Product_cat + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Product_cat we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__product_catClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Product_cats. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_catCountArgs} args - Arguments to filter Product_cats to count. + * @example + * // Count the number of Product_cats + * const count = await prisma.product_cat.count({ + * where: { + * // ... the filter for the Product_cats 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 Product_cat. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Product_catAggregateArgs} 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 Product_cat. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_catGroupByArgs} 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 product_catGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: product_catGroupByArgs['orderBy'] } + : { orderBy?: product_catGroupByArgs['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 ? GetProduct_catGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the product_cat model + */ +readonly fields: product_catFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for product_cat. + * 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__product_catClient 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 product_cat model + */ +export interface product_catFieldRefs { + readonly id: Prisma.FieldRef<"product_cat", 'Int'> + readonly name: Prisma.FieldRef<"product_cat", 'String'> + readonly notes: Prisma.FieldRef<"product_cat", 'String'> + readonly status: Prisma.FieldRef<"product_cat", 'Int'> + readonly num_compte: Prisma.FieldRef<"product_cat", 'BigInt'> + readonly combo_dispo: Prisma.FieldRef<"product_cat", 'Int'> +} + + +// Custom InputTypes +/** + * product_cat findUnique + */ +export type product_catFindUniqueArgs = { + /** + * Select specific fields to fetch from the product_cat + */ + select?: Prisma.product_catSelect | null + /** + * Omit specific fields from the product_cat + */ + omit?: Prisma.product_catOmit | null + /** + * Filter, which product_cat to fetch. + */ + where: Prisma.product_catWhereUniqueInput +} + +/** + * product_cat findUniqueOrThrow + */ +export type product_catFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the product_cat + */ + select?: Prisma.product_catSelect | null + /** + * Omit specific fields from the product_cat + */ + omit?: Prisma.product_catOmit | null + /** + * Filter, which product_cat to fetch. + */ + where: Prisma.product_catWhereUniqueInput +} + +/** + * product_cat findFirst + */ +export type product_catFindFirstArgs = { + /** + * Select specific fields to fetch from the product_cat + */ + select?: Prisma.product_catSelect | null + /** + * Omit specific fields from the product_cat + */ + omit?: Prisma.product_catOmit | null + /** + * Filter, which product_cat to fetch. + */ + where?: Prisma.product_catWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_cats to fetch. + */ + orderBy?: Prisma.product_catOrderByWithRelationInput | Prisma.product_catOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_cats. + */ + cursor?: Prisma.product_catWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_cats 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` product_cats. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_cats. + */ + distinct?: Prisma.Product_catScalarFieldEnum | Prisma.Product_catScalarFieldEnum[] +} + +/** + * product_cat findFirstOrThrow + */ +export type product_catFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the product_cat + */ + select?: Prisma.product_catSelect | null + /** + * Omit specific fields from the product_cat + */ + omit?: Prisma.product_catOmit | null + /** + * Filter, which product_cat to fetch. + */ + where?: Prisma.product_catWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_cats to fetch. + */ + orderBy?: Prisma.product_catOrderByWithRelationInput | Prisma.product_catOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_cats. + */ + cursor?: Prisma.product_catWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_cats 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` product_cats. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_cats. + */ + distinct?: Prisma.Product_catScalarFieldEnum | Prisma.Product_catScalarFieldEnum[] +} + +/** + * product_cat findMany + */ +export type product_catFindManyArgs = { + /** + * Select specific fields to fetch from the product_cat + */ + select?: Prisma.product_catSelect | null + /** + * Omit specific fields from the product_cat + */ + omit?: Prisma.product_catOmit | null + /** + * Filter, which product_cats to fetch. + */ + where?: Prisma.product_catWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_cats to fetch. + */ + orderBy?: Prisma.product_catOrderByWithRelationInput | Prisma.product_catOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing product_cats. + */ + cursor?: Prisma.product_catWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_cats 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` product_cats. + */ + skip?: number + distinct?: Prisma.Product_catScalarFieldEnum | Prisma.Product_catScalarFieldEnum[] +} + +/** + * product_cat create + */ +export type product_catCreateArgs = { + /** + * Select specific fields to fetch from the product_cat + */ + select?: Prisma.product_catSelect | null + /** + * Omit specific fields from the product_cat + */ + omit?: Prisma.product_catOmit | null + /** + * The data needed to create a product_cat. + */ + data?: Prisma.XOR +} + +/** + * product_cat createMany + */ +export type product_catCreateManyArgs = { + /** + * The data used to create many product_cats. + */ + data: Prisma.product_catCreateManyInput | Prisma.product_catCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * product_cat update + */ +export type product_catUpdateArgs = { + /** + * Select specific fields to fetch from the product_cat + */ + select?: Prisma.product_catSelect | null + /** + * Omit specific fields from the product_cat + */ + omit?: Prisma.product_catOmit | null + /** + * The data needed to update a product_cat. + */ + data: Prisma.XOR + /** + * Choose, which product_cat to update. + */ + where: Prisma.product_catWhereUniqueInput +} + +/** + * product_cat updateMany + */ +export type product_catUpdateManyArgs = { + /** + * The data used to update product_cats. + */ + data: Prisma.XOR + /** + * Filter which product_cats to update + */ + where?: Prisma.product_catWhereInput + /** + * Limit how many product_cats to update. + */ + limit?: number +} + +/** + * product_cat upsert + */ +export type product_catUpsertArgs = { + /** + * Select specific fields to fetch from the product_cat + */ + select?: Prisma.product_catSelect | null + /** + * Omit specific fields from the product_cat + */ + omit?: Prisma.product_catOmit | null + /** + * The filter to search for the product_cat to update in case it exists. + */ + where: Prisma.product_catWhereUniqueInput + /** + * In case the product_cat found by the `where` argument doesn't exist, create a new product_cat with this data. + */ + create: Prisma.XOR + /** + * In case the product_cat was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * product_cat delete + */ +export type product_catDeleteArgs = { + /** + * Select specific fields to fetch from the product_cat + */ + select?: Prisma.product_catSelect | null + /** + * Omit specific fields from the product_cat + */ + omit?: Prisma.product_catOmit | null + /** + * Filter which product_cat to delete. + */ + where: Prisma.product_catWhereUniqueInput +} + +/** + * product_cat deleteMany + */ +export type product_catDeleteManyArgs = { + /** + * Filter which product_cats to delete + */ + where?: Prisma.product_catWhereInput + /** + * Limit how many product_cats to delete. + */ + limit?: number +} + +/** + * product_cat without action + */ +export type product_catDefaultArgs = { + /** + * Select specific fields to fetch from the product_cat + */ + select?: Prisma.product_catSelect | null + /** + * Omit specific fields from the product_cat + */ + omit?: Prisma.product_catOmit | null +} diff --git a/prisma/generated/mariadb/models/product_format.ts b/prisma/generated/mariadb/models/product_format.ts new file mode 100644 index 0000000..8309429 --- /dev/null +++ b/prisma/generated/mariadb/models/product_format.ts @@ -0,0 +1,1120 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `product_format` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model product_format + * + */ +export type product_formatModel = runtime.Types.Result.DefaultSelection + +export type AggregateProduct_format = { + _count: Product_formatCountAggregateOutputType | null + _avg: Product_formatAvgAggregateOutputType | null + _sum: Product_formatSumAggregateOutputType | null + _min: Product_formatMinAggregateOutputType | null + _max: Product_formatMaxAggregateOutputType | null +} + +export type Product_formatAvgAggregateOutputType = { + id: number | null + date_orig: number | null + type: number | null +} + +export type Product_formatSumAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + type: number | null +} + +export type Product_formatMinAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + name: string | null + type: number | null + product_idx: string | null + description: string | null +} + +export type Product_formatMaxAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + name: string | null + type: number | null + product_idx: string | null + description: string | null +} + +export type Product_formatCountAggregateOutputType = { + id: number + date_orig: number + name: number + type: number + product_idx: number + description: number + _all: number +} + + +export type Product_formatAvgAggregateInputType = { + id?: true + date_orig?: true + type?: true +} + +export type Product_formatSumAggregateInputType = { + id?: true + date_orig?: true + type?: true +} + +export type Product_formatMinAggregateInputType = { + id?: true + date_orig?: true + name?: true + type?: true + product_idx?: true + description?: true +} + +export type Product_formatMaxAggregateInputType = { + id?: true + date_orig?: true + name?: true + type?: true + product_idx?: true + description?: true +} + +export type Product_formatCountAggregateInputType = { + id?: true + date_orig?: true + name?: true + type?: true + product_idx?: true + description?: true + _all?: true +} + +export type Product_formatAggregateArgs = { + /** + * Filter which product_format to aggregate. + */ + where?: Prisma.product_formatWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_formats to fetch. + */ + orderBy?: Prisma.product_formatOrderByWithRelationInput | Prisma.product_formatOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.product_formatWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_formats 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` product_formats. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned product_formats + **/ + _count?: true | Product_formatCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Product_formatAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Product_formatSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Product_formatMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Product_formatMaxAggregateInputType +} + +export type GetProduct_formatAggregateType = { + [P in keyof T & keyof AggregateProduct_format]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type product_formatGroupByArgs = { + where?: Prisma.product_formatWhereInput + orderBy?: Prisma.product_formatOrderByWithAggregationInput | Prisma.product_formatOrderByWithAggregationInput[] + by: Prisma.Product_formatScalarFieldEnum[] | Prisma.Product_formatScalarFieldEnum + having?: Prisma.product_formatScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Product_formatCountAggregateInputType | true + _avg?: Product_formatAvgAggregateInputType + _sum?: Product_formatSumAggregateInputType + _min?: Product_formatMinAggregateInputType + _max?: Product_formatMaxAggregateInputType +} + +export type Product_formatGroupByOutputType = { + id: bigint + date_orig: bigint | null + name: string | null + type: number | null + product_idx: string | null + description: string | null + _count: Product_formatCountAggregateOutputType | null + _avg: Product_formatAvgAggregateOutputType | null + _sum: Product_formatSumAggregateOutputType | null + _min: Product_formatMinAggregateOutputType | null + _max: Product_formatMaxAggregateOutputType | null +} + +type GetProduct_formatGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Product_formatGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type product_formatWhereInput = { + AND?: Prisma.product_formatWhereInput | Prisma.product_formatWhereInput[] + OR?: Prisma.product_formatWhereInput[] + NOT?: Prisma.product_formatWhereInput | Prisma.product_formatWhereInput[] + id?: Prisma.BigIntFilter<"product_format"> | bigint | number + date_orig?: Prisma.BigIntNullableFilter<"product_format"> | bigint | number | null + name?: Prisma.StringNullableFilter<"product_format"> | string | null + type?: Prisma.IntNullableFilter<"product_format"> | number | null + product_idx?: Prisma.StringNullableFilter<"product_format"> | string | null + description?: Prisma.StringNullableFilter<"product_format"> | string | null +} + +export type product_formatOrderByWithRelationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + product_idx?: Prisma.SortOrderInput | Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.product_formatOrderByRelevanceInput +} + +export type product_formatWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.product_formatWhereInput | Prisma.product_formatWhereInput[] + OR?: Prisma.product_formatWhereInput[] + NOT?: Prisma.product_formatWhereInput | Prisma.product_formatWhereInput[] + date_orig?: Prisma.BigIntNullableFilter<"product_format"> | bigint | number | null + name?: Prisma.StringNullableFilter<"product_format"> | string | null + type?: Prisma.IntNullableFilter<"product_format"> | number | null + product_idx?: Prisma.StringNullableFilter<"product_format"> | string | null + description?: Prisma.StringNullableFilter<"product_format"> | string | null +}, "id"> + +export type product_formatOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + product_idx?: Prisma.SortOrderInput | Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.product_formatCountOrderByAggregateInput + _avg?: Prisma.product_formatAvgOrderByAggregateInput + _max?: Prisma.product_formatMaxOrderByAggregateInput + _min?: Prisma.product_formatMinOrderByAggregateInput + _sum?: Prisma.product_formatSumOrderByAggregateInput +} + +export type product_formatScalarWhereWithAggregatesInput = { + AND?: Prisma.product_formatScalarWhereWithAggregatesInput | Prisma.product_formatScalarWhereWithAggregatesInput[] + OR?: Prisma.product_formatScalarWhereWithAggregatesInput[] + NOT?: Prisma.product_formatScalarWhereWithAggregatesInput | Prisma.product_formatScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"product_format"> | bigint | number + date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"product_format"> | bigint | number | null + name?: Prisma.StringNullableWithAggregatesFilter<"product_format"> | string | null + type?: Prisma.IntNullableWithAggregatesFilter<"product_format"> | number | null + product_idx?: Prisma.StringNullableWithAggregatesFilter<"product_format"> | string | null + description?: Prisma.StringNullableWithAggregatesFilter<"product_format"> | string | null +} + +export type product_formatCreateInput = { + id?: bigint | number + date_orig?: bigint | number | null + name?: string | null + type?: number | null + product_idx?: string | null + description?: string | null +} + +export type product_formatUncheckedCreateInput = { + id?: bigint | number + date_orig?: bigint | number | null + name?: string | null + type?: number | null + product_idx?: string | null + description?: string | null +} + +export type product_formatUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + product_idx?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type product_formatUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + product_idx?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type product_formatCreateManyInput = { + id?: bigint | number + date_orig?: bigint | number | null + name?: string | null + type?: number | null + product_idx?: string | null + description?: string | null +} + +export type product_formatUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + product_idx?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type product_formatUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + product_idx?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type product_formatOrderByRelevanceInput = { + fields: Prisma.product_formatOrderByRelevanceFieldEnum | Prisma.product_formatOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type product_formatCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + name?: Prisma.SortOrder + type?: Prisma.SortOrder + product_idx?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type product_formatAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + type?: Prisma.SortOrder +} + +export type product_formatMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + name?: Prisma.SortOrder + type?: Prisma.SortOrder + product_idx?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type product_formatMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + name?: Prisma.SortOrder + type?: Prisma.SortOrder + product_idx?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type product_formatSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + type?: Prisma.SortOrder +} + + + +export type product_formatSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date_orig?: boolean + name?: boolean + type?: boolean + product_idx?: boolean + description?: boolean +}, ExtArgs["result"]["product_format"]> + + + +export type product_formatSelectScalar = { + id?: boolean + date_orig?: boolean + name?: boolean + type?: boolean + product_idx?: boolean + description?: boolean +} + +export type product_formatOmit = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "name" | "type" | "product_idx" | "description", ExtArgs["result"]["product_format"]> + +export type $product_formatPayload = { + name: "product_format" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + date_orig: bigint | null + name: string | null + type: number | null + product_idx: string | null + description: string | null + }, ExtArgs["result"]["product_format"]> + composites: {} +} + +export type product_formatGetPayload = runtime.Types.Result.GetResult + +export type product_formatCountArgs = + Omit & { + select?: Product_formatCountAggregateInputType | true + } + +export interface product_formatDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['product_format'], meta: { name: 'product_format' } } + /** + * Find zero or one Product_format that matches the filter. + * @param {product_formatFindUniqueArgs} args - Arguments to find a Product_format + * @example + * // Get one Product_format + * const product_format = await prisma.product_format.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__product_formatClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Product_format that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {product_formatFindUniqueOrThrowArgs} args - Arguments to find a Product_format + * @example + * // Get one Product_format + * const product_format = await prisma.product_format.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__product_formatClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_format 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 {product_formatFindFirstArgs} args - Arguments to find a Product_format + * @example + * // Get one Product_format + * const product_format = await prisma.product_format.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__product_formatClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_format 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 {product_formatFindFirstOrThrowArgs} args - Arguments to find a Product_format + * @example + * // Get one Product_format + * const product_format = await prisma.product_format.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__product_formatClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Product_formats 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 {product_formatFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Product_formats + * const product_formats = await prisma.product_format.findMany() + * + * // Get first 10 Product_formats + * const product_formats = await prisma.product_format.findMany({ take: 10 }) + * + * // Only select the `id` + * const product_formatWithIdOnly = await prisma.product_format.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Product_format. + * @param {product_formatCreateArgs} args - Arguments to create a Product_format. + * @example + * // Create one Product_format + * const Product_format = await prisma.product_format.create({ + * data: { + * // ... data to create a Product_format + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__product_formatClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Product_formats. + * @param {product_formatCreateManyArgs} args - Arguments to create many Product_formats. + * @example + * // Create many Product_formats + * const product_format = await prisma.product_format.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Product_format. + * @param {product_formatDeleteArgs} args - Arguments to delete one Product_format. + * @example + * // Delete one Product_format + * const Product_format = await prisma.product_format.delete({ + * where: { + * // ... filter to delete one Product_format + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__product_formatClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Product_format. + * @param {product_formatUpdateArgs} args - Arguments to update one Product_format. + * @example + * // Update one Product_format + * const product_format = await prisma.product_format.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__product_formatClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Product_formats. + * @param {product_formatDeleteManyArgs} args - Arguments to filter Product_formats to delete. + * @example + * // Delete a few Product_formats + * const { count } = await prisma.product_format.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Product_formats. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_formatUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Product_formats + * const product_format = await prisma.product_format.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Product_format. + * @param {product_formatUpsertArgs} args - Arguments to update or create a Product_format. + * @example + * // Update or create a Product_format + * const product_format = await prisma.product_format.upsert({ + * create: { + * // ... data to create a Product_format + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Product_format we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__product_formatClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Product_formats. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_formatCountArgs} args - Arguments to filter Product_formats to count. + * @example + * // Count the number of Product_formats + * const count = await prisma.product_format.count({ + * where: { + * // ... the filter for the Product_formats 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 Product_format. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Product_formatAggregateArgs} 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 Product_format. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_formatGroupByArgs} 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 product_formatGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: product_formatGroupByArgs['orderBy'] } + : { orderBy?: product_formatGroupByArgs['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 ? GetProduct_formatGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the product_format model + */ +readonly fields: product_formatFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for product_format. + * 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__product_formatClient 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 product_format model + */ +export interface product_formatFieldRefs { + readonly id: Prisma.FieldRef<"product_format", 'BigInt'> + readonly date_orig: Prisma.FieldRef<"product_format", 'BigInt'> + readonly name: Prisma.FieldRef<"product_format", 'String'> + readonly type: Prisma.FieldRef<"product_format", 'Int'> + readonly product_idx: Prisma.FieldRef<"product_format", 'String'> + readonly description: Prisma.FieldRef<"product_format", 'String'> +} + + +// Custom InputTypes +/** + * product_format findUnique + */ +export type product_formatFindUniqueArgs = { + /** + * Select specific fields to fetch from the product_format + */ + select?: Prisma.product_formatSelect | null + /** + * Omit specific fields from the product_format + */ + omit?: Prisma.product_formatOmit | null + /** + * Filter, which product_format to fetch. + */ + where: Prisma.product_formatWhereUniqueInput +} + +/** + * product_format findUniqueOrThrow + */ +export type product_formatFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the product_format + */ + select?: Prisma.product_formatSelect | null + /** + * Omit specific fields from the product_format + */ + omit?: Prisma.product_formatOmit | null + /** + * Filter, which product_format to fetch. + */ + where: Prisma.product_formatWhereUniqueInput +} + +/** + * product_format findFirst + */ +export type product_formatFindFirstArgs = { + /** + * Select specific fields to fetch from the product_format + */ + select?: Prisma.product_formatSelect | null + /** + * Omit specific fields from the product_format + */ + omit?: Prisma.product_formatOmit | null + /** + * Filter, which product_format to fetch. + */ + where?: Prisma.product_formatWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_formats to fetch. + */ + orderBy?: Prisma.product_formatOrderByWithRelationInput | Prisma.product_formatOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_formats. + */ + cursor?: Prisma.product_formatWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_formats 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` product_formats. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_formats. + */ + distinct?: Prisma.Product_formatScalarFieldEnum | Prisma.Product_formatScalarFieldEnum[] +} + +/** + * product_format findFirstOrThrow + */ +export type product_formatFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the product_format + */ + select?: Prisma.product_formatSelect | null + /** + * Omit specific fields from the product_format + */ + omit?: Prisma.product_formatOmit | null + /** + * Filter, which product_format to fetch. + */ + where?: Prisma.product_formatWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_formats to fetch. + */ + orderBy?: Prisma.product_formatOrderByWithRelationInput | Prisma.product_formatOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_formats. + */ + cursor?: Prisma.product_formatWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_formats 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` product_formats. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_formats. + */ + distinct?: Prisma.Product_formatScalarFieldEnum | Prisma.Product_formatScalarFieldEnum[] +} + +/** + * product_format findMany + */ +export type product_formatFindManyArgs = { + /** + * Select specific fields to fetch from the product_format + */ + select?: Prisma.product_formatSelect | null + /** + * Omit specific fields from the product_format + */ + omit?: Prisma.product_formatOmit | null + /** + * Filter, which product_formats to fetch. + */ + where?: Prisma.product_formatWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_formats to fetch. + */ + orderBy?: Prisma.product_formatOrderByWithRelationInput | Prisma.product_formatOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing product_formats. + */ + cursor?: Prisma.product_formatWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_formats 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` product_formats. + */ + skip?: number + distinct?: Prisma.Product_formatScalarFieldEnum | Prisma.Product_formatScalarFieldEnum[] +} + +/** + * product_format create + */ +export type product_formatCreateArgs = { + /** + * Select specific fields to fetch from the product_format + */ + select?: Prisma.product_formatSelect | null + /** + * Omit specific fields from the product_format + */ + omit?: Prisma.product_formatOmit | null + /** + * The data needed to create a product_format. + */ + data?: Prisma.XOR +} + +/** + * product_format createMany + */ +export type product_formatCreateManyArgs = { + /** + * The data used to create many product_formats. + */ + data: Prisma.product_formatCreateManyInput | Prisma.product_formatCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * product_format update + */ +export type product_formatUpdateArgs = { + /** + * Select specific fields to fetch from the product_format + */ + select?: Prisma.product_formatSelect | null + /** + * Omit specific fields from the product_format + */ + omit?: Prisma.product_formatOmit | null + /** + * The data needed to update a product_format. + */ + data: Prisma.XOR + /** + * Choose, which product_format to update. + */ + where: Prisma.product_formatWhereUniqueInput +} + +/** + * product_format updateMany + */ +export type product_formatUpdateManyArgs = { + /** + * The data used to update product_formats. + */ + data: Prisma.XOR + /** + * Filter which product_formats to update + */ + where?: Prisma.product_formatWhereInput + /** + * Limit how many product_formats to update. + */ + limit?: number +} + +/** + * product_format upsert + */ +export type product_formatUpsertArgs = { + /** + * Select specific fields to fetch from the product_format + */ + select?: Prisma.product_formatSelect | null + /** + * Omit specific fields from the product_format + */ + omit?: Prisma.product_formatOmit | null + /** + * The filter to search for the product_format to update in case it exists. + */ + where: Prisma.product_formatWhereUniqueInput + /** + * In case the product_format found by the `where` argument doesn't exist, create a new product_format with this data. + */ + create: Prisma.XOR + /** + * In case the product_format was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * product_format delete + */ +export type product_formatDeleteArgs = { + /** + * Select specific fields to fetch from the product_format + */ + select?: Prisma.product_formatSelect | null + /** + * Omit specific fields from the product_format + */ + omit?: Prisma.product_formatOmit | null + /** + * Filter which product_format to delete. + */ + where: Prisma.product_formatWhereUniqueInput +} + +/** + * product_format deleteMany + */ +export type product_formatDeleteManyArgs = { + /** + * Filter which product_formats to delete + */ + where?: Prisma.product_formatWhereInput + /** + * Limit how many product_formats to delete. + */ + limit?: number +} + +/** + * product_format without action + */ +export type product_formatDefaultArgs = { + /** + * Select specific fields to fetch from the product_format + */ + select?: Prisma.product_formatSelect | null + /** + * Omit specific fields from the product_format + */ + omit?: Prisma.product_formatOmit | null +} diff --git a/prisma/generated/mariadb/models/product_fournisseur.ts b/prisma/generated/mariadb/models/product_fournisseur.ts new file mode 100644 index 0000000..b1c0b96 --- /dev/null +++ b/prisma/generated/mariadb/models/product_fournisseur.ts @@ -0,0 +1,1169 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `product_fournisseur` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model product_fournisseur + * + */ +export type product_fournisseurModel = runtime.Types.Result.DefaultSelection + +export type AggregateProduct_fournisseur = { + _count: Product_fournisseurCountAggregateOutputType | null + _avg: Product_fournisseurAvgAggregateOutputType | null + _sum: Product_fournisseurSumAggregateOutputType | null + _min: Product_fournisseurMinAggregateOutputType | null + _max: Product_fournisseurMaxAggregateOutputType | null +} + +export type Product_fournisseurAvgAggregateOutputType = { + id: number | null + product_id: number | null + prix_achat: number | null +} + +export type Product_fournisseurSumAggregateOutputType = { + id: number | null + product_id: number | null + prix_achat: number | null +} + +export type Product_fournisseurMinAggregateOutputType = { + id: number | null + product_id: number | null + nom_fournisseur: string | null + prix_us: boolean | null + prix_achat: number | null + prix_livr: string | null + delais_livr: string | null + comment: string | null +} + +export type Product_fournisseurMaxAggregateOutputType = { + id: number | null + product_id: number | null + nom_fournisseur: string | null + prix_us: boolean | null + prix_achat: number | null + prix_livr: string | null + delais_livr: string | null + comment: string | null +} + +export type Product_fournisseurCountAggregateOutputType = { + id: number + product_id: number + nom_fournisseur: number + prix_us: number + prix_achat: number + prix_livr: number + delais_livr: number + comment: number + _all: number +} + + +export type Product_fournisseurAvgAggregateInputType = { + id?: true + product_id?: true + prix_achat?: true +} + +export type Product_fournisseurSumAggregateInputType = { + id?: true + product_id?: true + prix_achat?: true +} + +export type Product_fournisseurMinAggregateInputType = { + id?: true + product_id?: true + nom_fournisseur?: true + prix_us?: true + prix_achat?: true + prix_livr?: true + delais_livr?: true + comment?: true +} + +export type Product_fournisseurMaxAggregateInputType = { + id?: true + product_id?: true + nom_fournisseur?: true + prix_us?: true + prix_achat?: true + prix_livr?: true + delais_livr?: true + comment?: true +} + +export type Product_fournisseurCountAggregateInputType = { + id?: true + product_id?: true + nom_fournisseur?: true + prix_us?: true + prix_achat?: true + prix_livr?: true + delais_livr?: true + comment?: true + _all?: true +} + +export type Product_fournisseurAggregateArgs = { + /** + * Filter which product_fournisseur to aggregate. + */ + where?: Prisma.product_fournisseurWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_fournisseurs to fetch. + */ + orderBy?: Prisma.product_fournisseurOrderByWithRelationInput | Prisma.product_fournisseurOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.product_fournisseurWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_fournisseurs 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` product_fournisseurs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned product_fournisseurs + **/ + _count?: true | Product_fournisseurCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Product_fournisseurAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Product_fournisseurSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Product_fournisseurMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Product_fournisseurMaxAggregateInputType +} + +export type GetProduct_fournisseurAggregateType = { + [P in keyof T & keyof AggregateProduct_fournisseur]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type product_fournisseurGroupByArgs = { + where?: Prisma.product_fournisseurWhereInput + orderBy?: Prisma.product_fournisseurOrderByWithAggregationInput | Prisma.product_fournisseurOrderByWithAggregationInput[] + by: Prisma.Product_fournisseurScalarFieldEnum[] | Prisma.Product_fournisseurScalarFieldEnum + having?: Prisma.product_fournisseurScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Product_fournisseurCountAggregateInputType | true + _avg?: Product_fournisseurAvgAggregateInputType + _sum?: Product_fournisseurSumAggregateInputType + _min?: Product_fournisseurMinAggregateInputType + _max?: Product_fournisseurMaxAggregateInputType +} + +export type Product_fournisseurGroupByOutputType = { + id: number + product_id: number + nom_fournisseur: string + prix_us: boolean + prix_achat: number + prix_livr: string + delais_livr: string + comment: string + _count: Product_fournisseurCountAggregateOutputType | null + _avg: Product_fournisseurAvgAggregateOutputType | null + _sum: Product_fournisseurSumAggregateOutputType | null + _min: Product_fournisseurMinAggregateOutputType | null + _max: Product_fournisseurMaxAggregateOutputType | null +} + +type GetProduct_fournisseurGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Product_fournisseurGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type product_fournisseurWhereInput = { + AND?: Prisma.product_fournisseurWhereInput | Prisma.product_fournisseurWhereInput[] + OR?: Prisma.product_fournisseurWhereInput[] + NOT?: Prisma.product_fournisseurWhereInput | Prisma.product_fournisseurWhereInput[] + id?: Prisma.IntFilter<"product_fournisseur"> | number + product_id?: Prisma.IntFilter<"product_fournisseur"> | number + nom_fournisseur?: Prisma.StringFilter<"product_fournisseur"> | string + prix_us?: Prisma.BoolFilter<"product_fournisseur"> | boolean + prix_achat?: Prisma.FloatFilter<"product_fournisseur"> | number + prix_livr?: Prisma.StringFilter<"product_fournisseur"> | string + delais_livr?: Prisma.StringFilter<"product_fournisseur"> | string + comment?: Prisma.StringFilter<"product_fournisseur"> | string +} + +export type product_fournisseurOrderByWithRelationInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + nom_fournisseur?: Prisma.SortOrder + prix_us?: Prisma.SortOrder + prix_achat?: Prisma.SortOrder + prix_livr?: Prisma.SortOrder + delais_livr?: Prisma.SortOrder + comment?: Prisma.SortOrder + _relevance?: Prisma.product_fournisseurOrderByRelevanceInput +} + +export type product_fournisseurWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.product_fournisseurWhereInput | Prisma.product_fournisseurWhereInput[] + OR?: Prisma.product_fournisseurWhereInput[] + NOT?: Prisma.product_fournisseurWhereInput | Prisma.product_fournisseurWhereInput[] + product_id?: Prisma.IntFilter<"product_fournisseur"> | number + nom_fournisseur?: Prisma.StringFilter<"product_fournisseur"> | string + prix_us?: Prisma.BoolFilter<"product_fournisseur"> | boolean + prix_achat?: Prisma.FloatFilter<"product_fournisseur"> | number + prix_livr?: Prisma.StringFilter<"product_fournisseur"> | string + delais_livr?: Prisma.StringFilter<"product_fournisseur"> | string + comment?: Prisma.StringFilter<"product_fournisseur"> | string +}, "id"> + +export type product_fournisseurOrderByWithAggregationInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + nom_fournisseur?: Prisma.SortOrder + prix_us?: Prisma.SortOrder + prix_achat?: Prisma.SortOrder + prix_livr?: Prisma.SortOrder + delais_livr?: Prisma.SortOrder + comment?: Prisma.SortOrder + _count?: Prisma.product_fournisseurCountOrderByAggregateInput + _avg?: Prisma.product_fournisseurAvgOrderByAggregateInput + _max?: Prisma.product_fournisseurMaxOrderByAggregateInput + _min?: Prisma.product_fournisseurMinOrderByAggregateInput + _sum?: Prisma.product_fournisseurSumOrderByAggregateInput +} + +export type product_fournisseurScalarWhereWithAggregatesInput = { + AND?: Prisma.product_fournisseurScalarWhereWithAggregatesInput | Prisma.product_fournisseurScalarWhereWithAggregatesInput[] + OR?: Prisma.product_fournisseurScalarWhereWithAggregatesInput[] + NOT?: Prisma.product_fournisseurScalarWhereWithAggregatesInput | Prisma.product_fournisseurScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"product_fournisseur"> | number + product_id?: Prisma.IntWithAggregatesFilter<"product_fournisseur"> | number + nom_fournisseur?: Prisma.StringWithAggregatesFilter<"product_fournisseur"> | string + prix_us?: Prisma.BoolWithAggregatesFilter<"product_fournisseur"> | boolean + prix_achat?: Prisma.FloatWithAggregatesFilter<"product_fournisseur"> | number + prix_livr?: Prisma.StringWithAggregatesFilter<"product_fournisseur"> | string + delais_livr?: Prisma.StringWithAggregatesFilter<"product_fournisseur"> | string + comment?: Prisma.StringWithAggregatesFilter<"product_fournisseur"> | string +} + +export type product_fournisseurCreateInput = { + product_id: number + nom_fournisseur: string + prix_us?: boolean + prix_achat?: number + prix_livr?: string + delais_livr?: string + comment?: string +} + +export type product_fournisseurUncheckedCreateInput = { + id?: number + product_id: number + nom_fournisseur: string + prix_us?: boolean + prix_achat?: number + prix_livr?: string + delais_livr?: string + comment?: string +} + +export type product_fournisseurUpdateInput = { + product_id?: Prisma.IntFieldUpdateOperationsInput | number + nom_fournisseur?: Prisma.StringFieldUpdateOperationsInput | string + prix_us?: Prisma.BoolFieldUpdateOperationsInput | boolean + prix_achat?: Prisma.FloatFieldUpdateOperationsInput | number + prix_livr?: Prisma.StringFieldUpdateOperationsInput | string + delais_livr?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type product_fournisseurUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.IntFieldUpdateOperationsInput | number + nom_fournisseur?: Prisma.StringFieldUpdateOperationsInput | string + prix_us?: Prisma.BoolFieldUpdateOperationsInput | boolean + prix_achat?: Prisma.FloatFieldUpdateOperationsInput | number + prix_livr?: Prisma.StringFieldUpdateOperationsInput | string + delais_livr?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type product_fournisseurCreateManyInput = { + id?: number + product_id: number + nom_fournisseur: string + prix_us?: boolean + prix_achat?: number + prix_livr?: string + delais_livr?: string + comment?: string +} + +export type product_fournisseurUpdateManyMutationInput = { + product_id?: Prisma.IntFieldUpdateOperationsInput | number + nom_fournisseur?: Prisma.StringFieldUpdateOperationsInput | string + prix_us?: Prisma.BoolFieldUpdateOperationsInput | boolean + prix_achat?: Prisma.FloatFieldUpdateOperationsInput | number + prix_livr?: Prisma.StringFieldUpdateOperationsInput | string + delais_livr?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type product_fournisseurUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.IntFieldUpdateOperationsInput | number + nom_fournisseur?: Prisma.StringFieldUpdateOperationsInput | string + prix_us?: Prisma.BoolFieldUpdateOperationsInput | boolean + prix_achat?: Prisma.FloatFieldUpdateOperationsInput | number + prix_livr?: Prisma.StringFieldUpdateOperationsInput | string + delais_livr?: Prisma.StringFieldUpdateOperationsInput | string + comment?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type product_fournisseurOrderByRelevanceInput = { + fields: Prisma.product_fournisseurOrderByRelevanceFieldEnum | Prisma.product_fournisseurOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type product_fournisseurCountOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + nom_fournisseur?: Prisma.SortOrder + prix_us?: Prisma.SortOrder + prix_achat?: Prisma.SortOrder + prix_livr?: Prisma.SortOrder + delais_livr?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type product_fournisseurAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + prix_achat?: Prisma.SortOrder +} + +export type product_fournisseurMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + nom_fournisseur?: Prisma.SortOrder + prix_us?: Prisma.SortOrder + prix_achat?: Prisma.SortOrder + prix_livr?: Prisma.SortOrder + delais_livr?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type product_fournisseurMinOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + nom_fournisseur?: Prisma.SortOrder + prix_us?: Prisma.SortOrder + prix_achat?: Prisma.SortOrder + prix_livr?: Prisma.SortOrder + delais_livr?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type product_fournisseurSumOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + prix_achat?: Prisma.SortOrder +} + + + +export type product_fournisseurSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + product_id?: boolean + nom_fournisseur?: boolean + prix_us?: boolean + prix_achat?: boolean + prix_livr?: boolean + delais_livr?: boolean + comment?: boolean +}, ExtArgs["result"]["product_fournisseur"]> + + + +export type product_fournisseurSelectScalar = { + id?: boolean + product_id?: boolean + nom_fournisseur?: boolean + prix_us?: boolean + prix_achat?: boolean + prix_livr?: boolean + delais_livr?: boolean + comment?: boolean +} + +export type product_fournisseurOmit = runtime.Types.Extensions.GetOmit<"id" | "product_id" | "nom_fournisseur" | "prix_us" | "prix_achat" | "prix_livr" | "delais_livr" | "comment", ExtArgs["result"]["product_fournisseur"]> + +export type $product_fournisseurPayload = { + name: "product_fournisseur" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + product_id: number + nom_fournisseur: string + prix_us: boolean + prix_achat: number + prix_livr: string + delais_livr: string + comment: string + }, ExtArgs["result"]["product_fournisseur"]> + composites: {} +} + +export type product_fournisseurGetPayload = runtime.Types.Result.GetResult + +export type product_fournisseurCountArgs = + Omit & { + select?: Product_fournisseurCountAggregateInputType | true + } + +export interface product_fournisseurDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['product_fournisseur'], meta: { name: 'product_fournisseur' } } + /** + * Find zero or one Product_fournisseur that matches the filter. + * @param {product_fournisseurFindUniqueArgs} args - Arguments to find a Product_fournisseur + * @example + * // Get one Product_fournisseur + * const product_fournisseur = await prisma.product_fournisseur.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__product_fournisseurClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Product_fournisseur that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {product_fournisseurFindUniqueOrThrowArgs} args - Arguments to find a Product_fournisseur + * @example + * // Get one Product_fournisseur + * const product_fournisseur = await prisma.product_fournisseur.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__product_fournisseurClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_fournisseur 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 {product_fournisseurFindFirstArgs} args - Arguments to find a Product_fournisseur + * @example + * // Get one Product_fournisseur + * const product_fournisseur = await prisma.product_fournisseur.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__product_fournisseurClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_fournisseur 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 {product_fournisseurFindFirstOrThrowArgs} args - Arguments to find a Product_fournisseur + * @example + * // Get one Product_fournisseur + * const product_fournisseur = await prisma.product_fournisseur.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__product_fournisseurClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Product_fournisseurs 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 {product_fournisseurFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Product_fournisseurs + * const product_fournisseurs = await prisma.product_fournisseur.findMany() + * + * // Get first 10 Product_fournisseurs + * const product_fournisseurs = await prisma.product_fournisseur.findMany({ take: 10 }) + * + * // Only select the `id` + * const product_fournisseurWithIdOnly = await prisma.product_fournisseur.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Product_fournisseur. + * @param {product_fournisseurCreateArgs} args - Arguments to create a Product_fournisseur. + * @example + * // Create one Product_fournisseur + * const Product_fournisseur = await prisma.product_fournisseur.create({ + * data: { + * // ... data to create a Product_fournisseur + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__product_fournisseurClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Product_fournisseurs. + * @param {product_fournisseurCreateManyArgs} args - Arguments to create many Product_fournisseurs. + * @example + * // Create many Product_fournisseurs + * const product_fournisseur = await prisma.product_fournisseur.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Product_fournisseur. + * @param {product_fournisseurDeleteArgs} args - Arguments to delete one Product_fournisseur. + * @example + * // Delete one Product_fournisseur + * const Product_fournisseur = await prisma.product_fournisseur.delete({ + * where: { + * // ... filter to delete one Product_fournisseur + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__product_fournisseurClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Product_fournisseur. + * @param {product_fournisseurUpdateArgs} args - Arguments to update one Product_fournisseur. + * @example + * // Update one Product_fournisseur + * const product_fournisseur = await prisma.product_fournisseur.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__product_fournisseurClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Product_fournisseurs. + * @param {product_fournisseurDeleteManyArgs} args - Arguments to filter Product_fournisseurs to delete. + * @example + * // Delete a few Product_fournisseurs + * const { count } = await prisma.product_fournisseur.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Product_fournisseurs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_fournisseurUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Product_fournisseurs + * const product_fournisseur = await prisma.product_fournisseur.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Product_fournisseur. + * @param {product_fournisseurUpsertArgs} args - Arguments to update or create a Product_fournisseur. + * @example + * // Update or create a Product_fournisseur + * const product_fournisseur = await prisma.product_fournisseur.upsert({ + * create: { + * // ... data to create a Product_fournisseur + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Product_fournisseur we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__product_fournisseurClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Product_fournisseurs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_fournisseurCountArgs} args - Arguments to filter Product_fournisseurs to count. + * @example + * // Count the number of Product_fournisseurs + * const count = await prisma.product_fournisseur.count({ + * where: { + * // ... the filter for the Product_fournisseurs 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 Product_fournisseur. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Product_fournisseurAggregateArgs} 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 Product_fournisseur. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_fournisseurGroupByArgs} 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 product_fournisseurGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: product_fournisseurGroupByArgs['orderBy'] } + : { orderBy?: product_fournisseurGroupByArgs['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 ? GetProduct_fournisseurGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the product_fournisseur model + */ +readonly fields: product_fournisseurFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for product_fournisseur. + * 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__product_fournisseurClient 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 product_fournisseur model + */ +export interface product_fournisseurFieldRefs { + readonly id: Prisma.FieldRef<"product_fournisseur", 'Int'> + readonly product_id: Prisma.FieldRef<"product_fournisseur", 'Int'> + readonly nom_fournisseur: Prisma.FieldRef<"product_fournisseur", 'String'> + readonly prix_us: Prisma.FieldRef<"product_fournisseur", 'Boolean'> + readonly prix_achat: Prisma.FieldRef<"product_fournisseur", 'Float'> + readonly prix_livr: Prisma.FieldRef<"product_fournisseur", 'String'> + readonly delais_livr: Prisma.FieldRef<"product_fournisseur", 'String'> + readonly comment: Prisma.FieldRef<"product_fournisseur", 'String'> +} + + +// Custom InputTypes +/** + * product_fournisseur findUnique + */ +export type product_fournisseurFindUniqueArgs = { + /** + * Select specific fields to fetch from the product_fournisseur + */ + select?: Prisma.product_fournisseurSelect | null + /** + * Omit specific fields from the product_fournisseur + */ + omit?: Prisma.product_fournisseurOmit | null + /** + * Filter, which product_fournisseur to fetch. + */ + where: Prisma.product_fournisseurWhereUniqueInput +} + +/** + * product_fournisseur findUniqueOrThrow + */ +export type product_fournisseurFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the product_fournisseur + */ + select?: Prisma.product_fournisseurSelect | null + /** + * Omit specific fields from the product_fournisseur + */ + omit?: Prisma.product_fournisseurOmit | null + /** + * Filter, which product_fournisseur to fetch. + */ + where: Prisma.product_fournisseurWhereUniqueInput +} + +/** + * product_fournisseur findFirst + */ +export type product_fournisseurFindFirstArgs = { + /** + * Select specific fields to fetch from the product_fournisseur + */ + select?: Prisma.product_fournisseurSelect | null + /** + * Omit specific fields from the product_fournisseur + */ + omit?: Prisma.product_fournisseurOmit | null + /** + * Filter, which product_fournisseur to fetch. + */ + where?: Prisma.product_fournisseurWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_fournisseurs to fetch. + */ + orderBy?: Prisma.product_fournisseurOrderByWithRelationInput | Prisma.product_fournisseurOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_fournisseurs. + */ + cursor?: Prisma.product_fournisseurWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_fournisseurs 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` product_fournisseurs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_fournisseurs. + */ + distinct?: Prisma.Product_fournisseurScalarFieldEnum | Prisma.Product_fournisseurScalarFieldEnum[] +} + +/** + * product_fournisseur findFirstOrThrow + */ +export type product_fournisseurFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the product_fournisseur + */ + select?: Prisma.product_fournisseurSelect | null + /** + * Omit specific fields from the product_fournisseur + */ + omit?: Prisma.product_fournisseurOmit | null + /** + * Filter, which product_fournisseur to fetch. + */ + where?: Prisma.product_fournisseurWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_fournisseurs to fetch. + */ + orderBy?: Prisma.product_fournisseurOrderByWithRelationInput | Prisma.product_fournisseurOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_fournisseurs. + */ + cursor?: Prisma.product_fournisseurWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_fournisseurs 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` product_fournisseurs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_fournisseurs. + */ + distinct?: Prisma.Product_fournisseurScalarFieldEnum | Prisma.Product_fournisseurScalarFieldEnum[] +} + +/** + * product_fournisseur findMany + */ +export type product_fournisseurFindManyArgs = { + /** + * Select specific fields to fetch from the product_fournisseur + */ + select?: Prisma.product_fournisseurSelect | null + /** + * Omit specific fields from the product_fournisseur + */ + omit?: Prisma.product_fournisseurOmit | null + /** + * Filter, which product_fournisseurs to fetch. + */ + where?: Prisma.product_fournisseurWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_fournisseurs to fetch. + */ + orderBy?: Prisma.product_fournisseurOrderByWithRelationInput | Prisma.product_fournisseurOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing product_fournisseurs. + */ + cursor?: Prisma.product_fournisseurWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_fournisseurs 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` product_fournisseurs. + */ + skip?: number + distinct?: Prisma.Product_fournisseurScalarFieldEnum | Prisma.Product_fournisseurScalarFieldEnum[] +} + +/** + * product_fournisseur create + */ +export type product_fournisseurCreateArgs = { + /** + * Select specific fields to fetch from the product_fournisseur + */ + select?: Prisma.product_fournisseurSelect | null + /** + * Omit specific fields from the product_fournisseur + */ + omit?: Prisma.product_fournisseurOmit | null + /** + * The data needed to create a product_fournisseur. + */ + data: Prisma.XOR +} + +/** + * product_fournisseur createMany + */ +export type product_fournisseurCreateManyArgs = { + /** + * The data used to create many product_fournisseurs. + */ + data: Prisma.product_fournisseurCreateManyInput | Prisma.product_fournisseurCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * product_fournisseur update + */ +export type product_fournisseurUpdateArgs = { + /** + * Select specific fields to fetch from the product_fournisseur + */ + select?: Prisma.product_fournisseurSelect | null + /** + * Omit specific fields from the product_fournisseur + */ + omit?: Prisma.product_fournisseurOmit | null + /** + * The data needed to update a product_fournisseur. + */ + data: Prisma.XOR + /** + * Choose, which product_fournisseur to update. + */ + where: Prisma.product_fournisseurWhereUniqueInput +} + +/** + * product_fournisseur updateMany + */ +export type product_fournisseurUpdateManyArgs = { + /** + * The data used to update product_fournisseurs. + */ + data: Prisma.XOR + /** + * Filter which product_fournisseurs to update + */ + where?: Prisma.product_fournisseurWhereInput + /** + * Limit how many product_fournisseurs to update. + */ + limit?: number +} + +/** + * product_fournisseur upsert + */ +export type product_fournisseurUpsertArgs = { + /** + * Select specific fields to fetch from the product_fournisseur + */ + select?: Prisma.product_fournisseurSelect | null + /** + * Omit specific fields from the product_fournisseur + */ + omit?: Prisma.product_fournisseurOmit | null + /** + * The filter to search for the product_fournisseur to update in case it exists. + */ + where: Prisma.product_fournisseurWhereUniqueInput + /** + * In case the product_fournisseur found by the `where` argument doesn't exist, create a new product_fournisseur with this data. + */ + create: Prisma.XOR + /** + * In case the product_fournisseur was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * product_fournisseur delete + */ +export type product_fournisseurDeleteArgs = { + /** + * Select specific fields to fetch from the product_fournisseur + */ + select?: Prisma.product_fournisseurSelect | null + /** + * Omit specific fields from the product_fournisseur + */ + omit?: Prisma.product_fournisseurOmit | null + /** + * Filter which product_fournisseur to delete. + */ + where: Prisma.product_fournisseurWhereUniqueInput +} + +/** + * product_fournisseur deleteMany + */ +export type product_fournisseurDeleteManyArgs = { + /** + * Filter which product_fournisseurs to delete + */ + where?: Prisma.product_fournisseurWhereInput + /** + * Limit how many product_fournisseurs to delete. + */ + limit?: number +} + +/** + * product_fournisseur without action + */ +export type product_fournisseurDefaultArgs = { + /** + * Select specific fields to fetch from the product_fournisseur + */ + select?: Prisma.product_fournisseurSelect | null + /** + * Omit specific fields from the product_fournisseur + */ + omit?: Prisma.product_fournisseurOmit | null +} diff --git a/prisma/generated/mariadb/models/product_profile.ts b/prisma/generated/mariadb/models/product_profile.ts new file mode 100644 index 0000000..95ecf94 --- /dev/null +++ b/prisma/generated/mariadb/models/product_profile.ts @@ -0,0 +1,1097 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `product_profile` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model product_profile + * + */ +export type product_profileModel = runtime.Types.Result.DefaultSelection + +export type AggregateProduct_profile = { + _count: Product_profileCountAggregateOutputType | null + _avg: Product_profileAvgAggregateOutputType | null + _sum: Product_profileSumAggregateOutputType | null + _min: Product_profileMinAggregateOutputType | null + _max: Product_profileMaxAggregateOutputType | null +} + +export type Product_profileAvgAggregateOutputType = { + id: number | null + product_id: number | null + line_profile: number | null + service_profile: number | null +} + +export type Product_profileSumAggregateOutputType = { + id: number | null + product_id: number | null + line_profile: number | null + service_profile: number | null +} + +export type Product_profileMinAggregateOutputType = { + id: number | null + product_id: number | null + device_type: string | null + line_profile: number | null + service_profile: number | null +} + +export type Product_profileMaxAggregateOutputType = { + id: number | null + product_id: number | null + device_type: string | null + line_profile: number | null + service_profile: number | null +} + +export type Product_profileCountAggregateOutputType = { + id: number + product_id: number + device_type: number + line_profile: number + service_profile: number + _all: number +} + + +export type Product_profileAvgAggregateInputType = { + id?: true + product_id?: true + line_profile?: true + service_profile?: true +} + +export type Product_profileSumAggregateInputType = { + id?: true + product_id?: true + line_profile?: true + service_profile?: true +} + +export type Product_profileMinAggregateInputType = { + id?: true + product_id?: true + device_type?: true + line_profile?: true + service_profile?: true +} + +export type Product_profileMaxAggregateInputType = { + id?: true + product_id?: true + device_type?: true + line_profile?: true + service_profile?: true +} + +export type Product_profileCountAggregateInputType = { + id?: true + product_id?: true + device_type?: true + line_profile?: true + service_profile?: true + _all?: true +} + +export type Product_profileAggregateArgs = { + /** + * Filter which product_profile to aggregate. + */ + where?: Prisma.product_profileWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_profiles to fetch. + */ + orderBy?: Prisma.product_profileOrderByWithRelationInput | Prisma.product_profileOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.product_profileWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_profiles 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` product_profiles. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned product_profiles + **/ + _count?: true | Product_profileCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Product_profileAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Product_profileSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Product_profileMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Product_profileMaxAggregateInputType +} + +export type GetProduct_profileAggregateType = { + [P in keyof T & keyof AggregateProduct_profile]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type product_profileGroupByArgs = { + where?: Prisma.product_profileWhereInput + orderBy?: Prisma.product_profileOrderByWithAggregationInput | Prisma.product_profileOrderByWithAggregationInput[] + by: Prisma.Product_profileScalarFieldEnum[] | Prisma.Product_profileScalarFieldEnum + having?: Prisma.product_profileScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Product_profileCountAggregateInputType | true + _avg?: Product_profileAvgAggregateInputType + _sum?: Product_profileSumAggregateInputType + _min?: Product_profileMinAggregateInputType + _max?: Product_profileMaxAggregateInputType +} + +export type Product_profileGroupByOutputType = { + id: number + product_id: number + device_type: string + line_profile: number + service_profile: number + _count: Product_profileCountAggregateOutputType | null + _avg: Product_profileAvgAggregateOutputType | null + _sum: Product_profileSumAggregateOutputType | null + _min: Product_profileMinAggregateOutputType | null + _max: Product_profileMaxAggregateOutputType | null +} + +type GetProduct_profileGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Product_profileGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type product_profileWhereInput = { + AND?: Prisma.product_profileWhereInput | Prisma.product_profileWhereInput[] + OR?: Prisma.product_profileWhereInput[] + NOT?: Prisma.product_profileWhereInput | Prisma.product_profileWhereInput[] + id?: Prisma.IntFilter<"product_profile"> | number + product_id?: Prisma.IntFilter<"product_profile"> | number + device_type?: Prisma.StringFilter<"product_profile"> | string + line_profile?: Prisma.IntFilter<"product_profile"> | number + service_profile?: Prisma.IntFilter<"product_profile"> | number +} + +export type product_profileOrderByWithRelationInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + device_type?: Prisma.SortOrder + line_profile?: Prisma.SortOrder + service_profile?: Prisma.SortOrder + _relevance?: Prisma.product_profileOrderByRelevanceInput +} + +export type product_profileWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.product_profileWhereInput | Prisma.product_profileWhereInput[] + OR?: Prisma.product_profileWhereInput[] + NOT?: Prisma.product_profileWhereInput | Prisma.product_profileWhereInput[] + product_id?: Prisma.IntFilter<"product_profile"> | number + device_type?: Prisma.StringFilter<"product_profile"> | string + line_profile?: Prisma.IntFilter<"product_profile"> | number + service_profile?: Prisma.IntFilter<"product_profile"> | number +}, "id"> + +export type product_profileOrderByWithAggregationInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + device_type?: Prisma.SortOrder + line_profile?: Prisma.SortOrder + service_profile?: Prisma.SortOrder + _count?: Prisma.product_profileCountOrderByAggregateInput + _avg?: Prisma.product_profileAvgOrderByAggregateInput + _max?: Prisma.product_profileMaxOrderByAggregateInput + _min?: Prisma.product_profileMinOrderByAggregateInput + _sum?: Prisma.product_profileSumOrderByAggregateInput +} + +export type product_profileScalarWhereWithAggregatesInput = { + AND?: Prisma.product_profileScalarWhereWithAggregatesInput | Prisma.product_profileScalarWhereWithAggregatesInput[] + OR?: Prisma.product_profileScalarWhereWithAggregatesInput[] + NOT?: Prisma.product_profileScalarWhereWithAggregatesInput | Prisma.product_profileScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"product_profile"> | number + product_id?: Prisma.IntWithAggregatesFilter<"product_profile"> | number + device_type?: Prisma.StringWithAggregatesFilter<"product_profile"> | string + line_profile?: Prisma.IntWithAggregatesFilter<"product_profile"> | number + service_profile?: Prisma.IntWithAggregatesFilter<"product_profile"> | number +} + +export type product_profileCreateInput = { + product_id: number + device_type: string + line_profile: number + service_profile: number +} + +export type product_profileUncheckedCreateInput = { + id?: number + product_id: number + device_type: string + line_profile: number + service_profile: number +} + +export type product_profileUpdateInput = { + product_id?: Prisma.IntFieldUpdateOperationsInput | number + device_type?: Prisma.StringFieldUpdateOperationsInput | string + line_profile?: Prisma.IntFieldUpdateOperationsInput | number + service_profile?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type product_profileUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.IntFieldUpdateOperationsInput | number + device_type?: Prisma.StringFieldUpdateOperationsInput | string + line_profile?: Prisma.IntFieldUpdateOperationsInput | number + service_profile?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type product_profileCreateManyInput = { + id?: number + product_id: number + device_type: string + line_profile: number + service_profile: number +} + +export type product_profileUpdateManyMutationInput = { + product_id?: Prisma.IntFieldUpdateOperationsInput | number + device_type?: Prisma.StringFieldUpdateOperationsInput | string + line_profile?: Prisma.IntFieldUpdateOperationsInput | number + service_profile?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type product_profileUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.IntFieldUpdateOperationsInput | number + device_type?: Prisma.StringFieldUpdateOperationsInput | string + line_profile?: Prisma.IntFieldUpdateOperationsInput | number + service_profile?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type product_profileOrderByRelevanceInput = { + fields: Prisma.product_profileOrderByRelevanceFieldEnum | Prisma.product_profileOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type product_profileCountOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + device_type?: Prisma.SortOrder + line_profile?: Prisma.SortOrder + service_profile?: Prisma.SortOrder +} + +export type product_profileAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + line_profile?: Prisma.SortOrder + service_profile?: Prisma.SortOrder +} + +export type product_profileMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + device_type?: Prisma.SortOrder + line_profile?: Prisma.SortOrder + service_profile?: Prisma.SortOrder +} + +export type product_profileMinOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + device_type?: Prisma.SortOrder + line_profile?: Prisma.SortOrder + service_profile?: Prisma.SortOrder +} + +export type product_profileSumOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + line_profile?: Prisma.SortOrder + service_profile?: Prisma.SortOrder +} + + + +export type product_profileSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + product_id?: boolean + device_type?: boolean + line_profile?: boolean + service_profile?: boolean +}, ExtArgs["result"]["product_profile"]> + + + +export type product_profileSelectScalar = { + id?: boolean + product_id?: boolean + device_type?: boolean + line_profile?: boolean + service_profile?: boolean +} + +export type product_profileOmit = runtime.Types.Extensions.GetOmit<"id" | "product_id" | "device_type" | "line_profile" | "service_profile", ExtArgs["result"]["product_profile"]> + +export type $product_profilePayload = { + name: "product_profile" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + product_id: number + device_type: string + line_profile: number + service_profile: number + }, ExtArgs["result"]["product_profile"]> + composites: {} +} + +export type product_profileGetPayload = runtime.Types.Result.GetResult + +export type product_profileCountArgs = + Omit & { + select?: Product_profileCountAggregateInputType | true + } + +export interface product_profileDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['product_profile'], meta: { name: 'product_profile' } } + /** + * Find zero or one Product_profile that matches the filter. + * @param {product_profileFindUniqueArgs} args - Arguments to find a Product_profile + * @example + * // Get one Product_profile + * const product_profile = await prisma.product_profile.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__product_profileClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Product_profile that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {product_profileFindUniqueOrThrowArgs} args - Arguments to find a Product_profile + * @example + * // Get one Product_profile + * const product_profile = await prisma.product_profile.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__product_profileClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_profile 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 {product_profileFindFirstArgs} args - Arguments to find a Product_profile + * @example + * // Get one Product_profile + * const product_profile = await prisma.product_profile.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__product_profileClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_profile 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 {product_profileFindFirstOrThrowArgs} args - Arguments to find a Product_profile + * @example + * // Get one Product_profile + * const product_profile = await prisma.product_profile.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__product_profileClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Product_profiles 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 {product_profileFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Product_profiles + * const product_profiles = await prisma.product_profile.findMany() + * + * // Get first 10 Product_profiles + * const product_profiles = await prisma.product_profile.findMany({ take: 10 }) + * + * // Only select the `id` + * const product_profileWithIdOnly = await prisma.product_profile.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Product_profile. + * @param {product_profileCreateArgs} args - Arguments to create a Product_profile. + * @example + * // Create one Product_profile + * const Product_profile = await prisma.product_profile.create({ + * data: { + * // ... data to create a Product_profile + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__product_profileClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Product_profiles. + * @param {product_profileCreateManyArgs} args - Arguments to create many Product_profiles. + * @example + * // Create many Product_profiles + * const product_profile = await prisma.product_profile.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Product_profile. + * @param {product_profileDeleteArgs} args - Arguments to delete one Product_profile. + * @example + * // Delete one Product_profile + * const Product_profile = await prisma.product_profile.delete({ + * where: { + * // ... filter to delete one Product_profile + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__product_profileClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Product_profile. + * @param {product_profileUpdateArgs} args - Arguments to update one Product_profile. + * @example + * // Update one Product_profile + * const product_profile = await prisma.product_profile.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__product_profileClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Product_profiles. + * @param {product_profileDeleteManyArgs} args - Arguments to filter Product_profiles to delete. + * @example + * // Delete a few Product_profiles + * const { count } = await prisma.product_profile.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Product_profiles. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_profileUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Product_profiles + * const product_profile = await prisma.product_profile.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Product_profile. + * @param {product_profileUpsertArgs} args - Arguments to update or create a Product_profile. + * @example + * // Update or create a Product_profile + * const product_profile = await prisma.product_profile.upsert({ + * create: { + * // ... data to create a Product_profile + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Product_profile we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__product_profileClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Product_profiles. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_profileCountArgs} args - Arguments to filter Product_profiles to count. + * @example + * // Count the number of Product_profiles + * const count = await prisma.product_profile.count({ + * where: { + * // ... the filter for the Product_profiles 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 Product_profile. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Product_profileAggregateArgs} 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 Product_profile. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_profileGroupByArgs} 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 product_profileGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: product_profileGroupByArgs['orderBy'] } + : { orderBy?: product_profileGroupByArgs['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 ? GetProduct_profileGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the product_profile model + */ +readonly fields: product_profileFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for product_profile. + * 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__product_profileClient 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 product_profile model + */ +export interface product_profileFieldRefs { + readonly id: Prisma.FieldRef<"product_profile", 'Int'> + readonly product_id: Prisma.FieldRef<"product_profile", 'Int'> + readonly device_type: Prisma.FieldRef<"product_profile", 'String'> + readonly line_profile: Prisma.FieldRef<"product_profile", 'Int'> + readonly service_profile: Prisma.FieldRef<"product_profile", 'Int'> +} + + +// Custom InputTypes +/** + * product_profile findUnique + */ +export type product_profileFindUniqueArgs = { + /** + * Select specific fields to fetch from the product_profile + */ + select?: Prisma.product_profileSelect | null + /** + * Omit specific fields from the product_profile + */ + omit?: Prisma.product_profileOmit | null + /** + * Filter, which product_profile to fetch. + */ + where: Prisma.product_profileWhereUniqueInput +} + +/** + * product_profile findUniqueOrThrow + */ +export type product_profileFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the product_profile + */ + select?: Prisma.product_profileSelect | null + /** + * Omit specific fields from the product_profile + */ + omit?: Prisma.product_profileOmit | null + /** + * Filter, which product_profile to fetch. + */ + where: Prisma.product_profileWhereUniqueInput +} + +/** + * product_profile findFirst + */ +export type product_profileFindFirstArgs = { + /** + * Select specific fields to fetch from the product_profile + */ + select?: Prisma.product_profileSelect | null + /** + * Omit specific fields from the product_profile + */ + omit?: Prisma.product_profileOmit | null + /** + * Filter, which product_profile to fetch. + */ + where?: Prisma.product_profileWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_profiles to fetch. + */ + orderBy?: Prisma.product_profileOrderByWithRelationInput | Prisma.product_profileOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_profiles. + */ + cursor?: Prisma.product_profileWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_profiles 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` product_profiles. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_profiles. + */ + distinct?: Prisma.Product_profileScalarFieldEnum | Prisma.Product_profileScalarFieldEnum[] +} + +/** + * product_profile findFirstOrThrow + */ +export type product_profileFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the product_profile + */ + select?: Prisma.product_profileSelect | null + /** + * Omit specific fields from the product_profile + */ + omit?: Prisma.product_profileOmit | null + /** + * Filter, which product_profile to fetch. + */ + where?: Prisma.product_profileWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_profiles to fetch. + */ + orderBy?: Prisma.product_profileOrderByWithRelationInput | Prisma.product_profileOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_profiles. + */ + cursor?: Prisma.product_profileWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_profiles 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` product_profiles. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_profiles. + */ + distinct?: Prisma.Product_profileScalarFieldEnum | Prisma.Product_profileScalarFieldEnum[] +} + +/** + * product_profile findMany + */ +export type product_profileFindManyArgs = { + /** + * Select specific fields to fetch from the product_profile + */ + select?: Prisma.product_profileSelect | null + /** + * Omit specific fields from the product_profile + */ + omit?: Prisma.product_profileOmit | null + /** + * Filter, which product_profiles to fetch. + */ + where?: Prisma.product_profileWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_profiles to fetch. + */ + orderBy?: Prisma.product_profileOrderByWithRelationInput | Prisma.product_profileOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing product_profiles. + */ + cursor?: Prisma.product_profileWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_profiles 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` product_profiles. + */ + skip?: number + distinct?: Prisma.Product_profileScalarFieldEnum | Prisma.Product_profileScalarFieldEnum[] +} + +/** + * product_profile create + */ +export type product_profileCreateArgs = { + /** + * Select specific fields to fetch from the product_profile + */ + select?: Prisma.product_profileSelect | null + /** + * Omit specific fields from the product_profile + */ + omit?: Prisma.product_profileOmit | null + /** + * The data needed to create a product_profile. + */ + data: Prisma.XOR +} + +/** + * product_profile createMany + */ +export type product_profileCreateManyArgs = { + /** + * The data used to create many product_profiles. + */ + data: Prisma.product_profileCreateManyInput | Prisma.product_profileCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * product_profile update + */ +export type product_profileUpdateArgs = { + /** + * Select specific fields to fetch from the product_profile + */ + select?: Prisma.product_profileSelect | null + /** + * Omit specific fields from the product_profile + */ + omit?: Prisma.product_profileOmit | null + /** + * The data needed to update a product_profile. + */ + data: Prisma.XOR + /** + * Choose, which product_profile to update. + */ + where: Prisma.product_profileWhereUniqueInput +} + +/** + * product_profile updateMany + */ +export type product_profileUpdateManyArgs = { + /** + * The data used to update product_profiles. + */ + data: Prisma.XOR + /** + * Filter which product_profiles to update + */ + where?: Prisma.product_profileWhereInput + /** + * Limit how many product_profiles to update. + */ + limit?: number +} + +/** + * product_profile upsert + */ +export type product_profileUpsertArgs = { + /** + * Select specific fields to fetch from the product_profile + */ + select?: Prisma.product_profileSelect | null + /** + * Omit specific fields from the product_profile + */ + omit?: Prisma.product_profileOmit | null + /** + * The filter to search for the product_profile to update in case it exists. + */ + where: Prisma.product_profileWhereUniqueInput + /** + * In case the product_profile found by the `where` argument doesn't exist, create a new product_profile with this data. + */ + create: Prisma.XOR + /** + * In case the product_profile was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * product_profile delete + */ +export type product_profileDeleteArgs = { + /** + * Select specific fields to fetch from the product_profile + */ + select?: Prisma.product_profileSelect | null + /** + * Omit specific fields from the product_profile + */ + omit?: Prisma.product_profileOmit | null + /** + * Filter which product_profile to delete. + */ + where: Prisma.product_profileWhereUniqueInput +} + +/** + * product_profile deleteMany + */ +export type product_profileDeleteManyArgs = { + /** + * Filter which product_profiles to delete + */ + where?: Prisma.product_profileWhereInput + /** + * Limit how many product_profiles to delete. + */ + limit?: number +} + +/** + * product_profile without action + */ +export type product_profileDefaultArgs = { + /** + * Select specific fields to fetch from the product_profile + */ + select?: Prisma.product_profileSelect | null + /** + * Omit specific fields from the product_profile + */ + omit?: Prisma.product_profileOmit | null +} diff --git a/prisma/generated/mariadb/models/product_speciaux.ts b/prisma/generated/mariadb/models/product_speciaux.ts new file mode 100644 index 0000000..20e7c56 --- /dev/null +++ b/prisma/generated/mariadb/models/product_speciaux.ts @@ -0,0 +1,1163 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `product_speciaux` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model product_speciaux + * + */ +export type product_speciauxModel = runtime.Types.Result.DefaultSelection + +export type AggregateProduct_speciaux = { + _count: Product_speciauxCountAggregateOutputType | null + _avg: Product_speciauxAvgAggregateOutputType | null + _sum: Product_speciauxSumAggregateOutputType | null + _min: Product_speciauxMinAggregateOutputType | null + _max: Product_speciauxMaxAggregateOutputType | null +} + +export type Product_speciauxAvgAggregateOutputType = { + id: number | null + product_zone_id: number | null + product_id: number | null + price: number | null + price_install: number | null + exp_timestamp: number | null + duree_contrat: number | null +} + +export type Product_speciauxSumAggregateOutputType = { + id: bigint | null + product_zone_id: bigint | null + product_id: bigint | null + price: number | null + price_install: number | null + exp_timestamp: bigint | null + duree_contrat: number | null +} + +export type Product_speciauxMinAggregateOutputType = { + id: bigint | null + product_zone_id: bigint | null + product_id: bigint | null + price: number | null + price_install: number | null + exp_timestamp: bigint | null + duree_contrat: number | null +} + +export type Product_speciauxMaxAggregateOutputType = { + id: bigint | null + product_zone_id: bigint | null + product_id: bigint | null + price: number | null + price_install: number | null + exp_timestamp: bigint | null + duree_contrat: number | null +} + +export type Product_speciauxCountAggregateOutputType = { + id: number + product_zone_id: number + product_id: number + price: number + price_install: number + exp_timestamp: number + duree_contrat: number + _all: number +} + + +export type Product_speciauxAvgAggregateInputType = { + id?: true + product_zone_id?: true + product_id?: true + price?: true + price_install?: true + exp_timestamp?: true + duree_contrat?: true +} + +export type Product_speciauxSumAggregateInputType = { + id?: true + product_zone_id?: true + product_id?: true + price?: true + price_install?: true + exp_timestamp?: true + duree_contrat?: true +} + +export type Product_speciauxMinAggregateInputType = { + id?: true + product_zone_id?: true + product_id?: true + price?: true + price_install?: true + exp_timestamp?: true + duree_contrat?: true +} + +export type Product_speciauxMaxAggregateInputType = { + id?: true + product_zone_id?: true + product_id?: true + price?: true + price_install?: true + exp_timestamp?: true + duree_contrat?: true +} + +export type Product_speciauxCountAggregateInputType = { + id?: true + product_zone_id?: true + product_id?: true + price?: true + price_install?: true + exp_timestamp?: true + duree_contrat?: true + _all?: true +} + +export type Product_speciauxAggregateArgs = { + /** + * Filter which product_speciaux to aggregate. + */ + where?: Prisma.product_speciauxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_speciauxes to fetch. + */ + orderBy?: Prisma.product_speciauxOrderByWithRelationInput | Prisma.product_speciauxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.product_speciauxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_speciauxes 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` product_speciauxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned product_speciauxes + **/ + _count?: true | Product_speciauxCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Product_speciauxAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Product_speciauxSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Product_speciauxMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Product_speciauxMaxAggregateInputType +} + +export type GetProduct_speciauxAggregateType = { + [P in keyof T & keyof AggregateProduct_speciaux]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type product_speciauxGroupByArgs = { + where?: Prisma.product_speciauxWhereInput + orderBy?: Prisma.product_speciauxOrderByWithAggregationInput | Prisma.product_speciauxOrderByWithAggregationInput[] + by: Prisma.Product_speciauxScalarFieldEnum[] | Prisma.Product_speciauxScalarFieldEnum + having?: Prisma.product_speciauxScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Product_speciauxCountAggregateInputType | true + _avg?: Product_speciauxAvgAggregateInputType + _sum?: Product_speciauxSumAggregateInputType + _min?: Product_speciauxMinAggregateInputType + _max?: Product_speciauxMaxAggregateInputType +} + +export type Product_speciauxGroupByOutputType = { + id: bigint + product_zone_id: bigint + product_id: bigint + price: number | null + price_install: number | null + exp_timestamp: bigint | null + duree_contrat: number | null + _count: Product_speciauxCountAggregateOutputType | null + _avg: Product_speciauxAvgAggregateOutputType | null + _sum: Product_speciauxSumAggregateOutputType | null + _min: Product_speciauxMinAggregateOutputType | null + _max: Product_speciauxMaxAggregateOutputType | null +} + +type GetProduct_speciauxGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Product_speciauxGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type product_speciauxWhereInput = { + AND?: Prisma.product_speciauxWhereInput | Prisma.product_speciauxWhereInput[] + OR?: Prisma.product_speciauxWhereInput[] + NOT?: Prisma.product_speciauxWhereInput | Prisma.product_speciauxWhereInput[] + id?: Prisma.BigIntFilter<"product_speciaux"> | bigint | number + product_zone_id?: Prisma.BigIntFilter<"product_speciaux"> | bigint | number + product_id?: Prisma.BigIntFilter<"product_speciaux"> | bigint | number + price?: Prisma.FloatNullableFilter<"product_speciaux"> | number | null + price_install?: Prisma.FloatNullableFilter<"product_speciaux"> | number | null + exp_timestamp?: Prisma.BigIntNullableFilter<"product_speciaux"> | bigint | number | null + duree_contrat?: Prisma.IntNullableFilter<"product_speciaux"> | number | null +} + +export type product_speciauxOrderByWithRelationInput = { + id?: Prisma.SortOrder + product_zone_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + price?: Prisma.SortOrderInput | Prisma.SortOrder + price_install?: Prisma.SortOrderInput | Prisma.SortOrder + exp_timestamp?: Prisma.SortOrderInput | Prisma.SortOrder + duree_contrat?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type product_speciauxWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.product_speciauxWhereInput | Prisma.product_speciauxWhereInput[] + OR?: Prisma.product_speciauxWhereInput[] + NOT?: Prisma.product_speciauxWhereInput | Prisma.product_speciauxWhereInput[] + product_zone_id?: Prisma.BigIntFilter<"product_speciaux"> | bigint | number + product_id?: Prisma.BigIntFilter<"product_speciaux"> | bigint | number + price?: Prisma.FloatNullableFilter<"product_speciaux"> | number | null + price_install?: Prisma.FloatNullableFilter<"product_speciaux"> | number | null + exp_timestamp?: Prisma.BigIntNullableFilter<"product_speciaux"> | bigint | number | null + duree_contrat?: Prisma.IntNullableFilter<"product_speciaux"> | number | null +}, "id"> + +export type product_speciauxOrderByWithAggregationInput = { + id?: Prisma.SortOrder + product_zone_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + price?: Prisma.SortOrderInput | Prisma.SortOrder + price_install?: Prisma.SortOrderInput | Prisma.SortOrder + exp_timestamp?: Prisma.SortOrderInput | Prisma.SortOrder + duree_contrat?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.product_speciauxCountOrderByAggregateInput + _avg?: Prisma.product_speciauxAvgOrderByAggregateInput + _max?: Prisma.product_speciauxMaxOrderByAggregateInput + _min?: Prisma.product_speciauxMinOrderByAggregateInput + _sum?: Prisma.product_speciauxSumOrderByAggregateInput +} + +export type product_speciauxScalarWhereWithAggregatesInput = { + AND?: Prisma.product_speciauxScalarWhereWithAggregatesInput | Prisma.product_speciauxScalarWhereWithAggregatesInput[] + OR?: Prisma.product_speciauxScalarWhereWithAggregatesInput[] + NOT?: Prisma.product_speciauxScalarWhereWithAggregatesInput | Prisma.product_speciauxScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"product_speciaux"> | bigint | number + product_zone_id?: Prisma.BigIntWithAggregatesFilter<"product_speciaux"> | bigint | number + product_id?: Prisma.BigIntWithAggregatesFilter<"product_speciaux"> | bigint | number + price?: Prisma.FloatNullableWithAggregatesFilter<"product_speciaux"> | number | null + price_install?: Prisma.FloatNullableWithAggregatesFilter<"product_speciaux"> | number | null + exp_timestamp?: Prisma.BigIntNullableWithAggregatesFilter<"product_speciaux"> | bigint | number | null + duree_contrat?: Prisma.IntNullableWithAggregatesFilter<"product_speciaux"> | number | null +} + +export type product_speciauxCreateInput = { + id?: bigint | number + product_zone_id: bigint | number + product_id: bigint | number + price?: number | null + price_install?: number | null + exp_timestamp?: bigint | number | null + duree_contrat?: number | null +} + +export type product_speciauxUncheckedCreateInput = { + id?: bigint | number + product_zone_id: bigint | number + product_id: bigint | number + price?: number | null + price_install?: number | null + exp_timestamp?: bigint | number | null + duree_contrat?: number | null +} + +export type product_speciauxUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + product_zone_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + product_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + price_install?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + exp_timestamp?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + duree_contrat?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type product_speciauxUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + product_zone_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + product_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + price_install?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + exp_timestamp?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + duree_contrat?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type product_speciauxCreateManyInput = { + id?: bigint | number + product_zone_id: bigint | number + product_id: bigint | number + price?: number | null + price_install?: number | null + exp_timestamp?: bigint | number | null + duree_contrat?: number | null +} + +export type product_speciauxUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + product_zone_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + product_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + price_install?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + exp_timestamp?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + duree_contrat?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type product_speciauxUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + product_zone_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + product_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + price_install?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + exp_timestamp?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + duree_contrat?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type product_speciauxCountOrderByAggregateInput = { + id?: Prisma.SortOrder + product_zone_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + price?: Prisma.SortOrder + price_install?: Prisma.SortOrder + exp_timestamp?: Prisma.SortOrder + duree_contrat?: Prisma.SortOrder +} + +export type product_speciauxAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + product_zone_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + price?: Prisma.SortOrder + price_install?: Prisma.SortOrder + exp_timestamp?: Prisma.SortOrder + duree_contrat?: Prisma.SortOrder +} + +export type product_speciauxMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + product_zone_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + price?: Prisma.SortOrder + price_install?: Prisma.SortOrder + exp_timestamp?: Prisma.SortOrder + duree_contrat?: Prisma.SortOrder +} + +export type product_speciauxMinOrderByAggregateInput = { + id?: Prisma.SortOrder + product_zone_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + price?: Prisma.SortOrder + price_install?: Prisma.SortOrder + exp_timestamp?: Prisma.SortOrder + duree_contrat?: Prisma.SortOrder +} + +export type product_speciauxSumOrderByAggregateInput = { + id?: Prisma.SortOrder + product_zone_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + price?: Prisma.SortOrder + price_install?: Prisma.SortOrder + exp_timestamp?: Prisma.SortOrder + duree_contrat?: Prisma.SortOrder +} + + + +export type product_speciauxSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + product_zone_id?: boolean + product_id?: boolean + price?: boolean + price_install?: boolean + exp_timestamp?: boolean + duree_contrat?: boolean +}, ExtArgs["result"]["product_speciaux"]> + + + +export type product_speciauxSelectScalar = { + id?: boolean + product_zone_id?: boolean + product_id?: boolean + price?: boolean + price_install?: boolean + exp_timestamp?: boolean + duree_contrat?: boolean +} + +export type product_speciauxOmit = runtime.Types.Extensions.GetOmit<"id" | "product_zone_id" | "product_id" | "price" | "price_install" | "exp_timestamp" | "duree_contrat", ExtArgs["result"]["product_speciaux"]> + +export type $product_speciauxPayload = { + name: "product_speciaux" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + product_zone_id: bigint + product_id: bigint + price: number | null + price_install: number | null + exp_timestamp: bigint | null + duree_contrat: number | null + }, ExtArgs["result"]["product_speciaux"]> + composites: {} +} + +export type product_speciauxGetPayload = runtime.Types.Result.GetResult + +export type product_speciauxCountArgs = + Omit & { + select?: Product_speciauxCountAggregateInputType | true + } + +export interface product_speciauxDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['product_speciaux'], meta: { name: 'product_speciaux' } } + /** + * Find zero or one Product_speciaux that matches the filter. + * @param {product_speciauxFindUniqueArgs} args - Arguments to find a Product_speciaux + * @example + * // Get one Product_speciaux + * const product_speciaux = await prisma.product_speciaux.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__product_speciauxClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Product_speciaux that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {product_speciauxFindUniqueOrThrowArgs} args - Arguments to find a Product_speciaux + * @example + * // Get one Product_speciaux + * const product_speciaux = await prisma.product_speciaux.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__product_speciauxClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_speciaux 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 {product_speciauxFindFirstArgs} args - Arguments to find a Product_speciaux + * @example + * // Get one Product_speciaux + * const product_speciaux = await prisma.product_speciaux.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__product_speciauxClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_speciaux 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 {product_speciauxFindFirstOrThrowArgs} args - Arguments to find a Product_speciaux + * @example + * // Get one Product_speciaux + * const product_speciaux = await prisma.product_speciaux.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__product_speciauxClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Product_speciauxes 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 {product_speciauxFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Product_speciauxes + * const product_speciauxes = await prisma.product_speciaux.findMany() + * + * // Get first 10 Product_speciauxes + * const product_speciauxes = await prisma.product_speciaux.findMany({ take: 10 }) + * + * // Only select the `id` + * const product_speciauxWithIdOnly = await prisma.product_speciaux.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Product_speciaux. + * @param {product_speciauxCreateArgs} args - Arguments to create a Product_speciaux. + * @example + * // Create one Product_speciaux + * const Product_speciaux = await prisma.product_speciaux.create({ + * data: { + * // ... data to create a Product_speciaux + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__product_speciauxClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Product_speciauxes. + * @param {product_speciauxCreateManyArgs} args - Arguments to create many Product_speciauxes. + * @example + * // Create many Product_speciauxes + * const product_speciaux = await prisma.product_speciaux.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Product_speciaux. + * @param {product_speciauxDeleteArgs} args - Arguments to delete one Product_speciaux. + * @example + * // Delete one Product_speciaux + * const Product_speciaux = await prisma.product_speciaux.delete({ + * where: { + * // ... filter to delete one Product_speciaux + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__product_speciauxClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Product_speciaux. + * @param {product_speciauxUpdateArgs} args - Arguments to update one Product_speciaux. + * @example + * // Update one Product_speciaux + * const product_speciaux = await prisma.product_speciaux.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__product_speciauxClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Product_speciauxes. + * @param {product_speciauxDeleteManyArgs} args - Arguments to filter Product_speciauxes to delete. + * @example + * // Delete a few Product_speciauxes + * const { count } = await prisma.product_speciaux.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Product_speciauxes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_speciauxUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Product_speciauxes + * const product_speciaux = await prisma.product_speciaux.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Product_speciaux. + * @param {product_speciauxUpsertArgs} args - Arguments to update or create a Product_speciaux. + * @example + * // Update or create a Product_speciaux + * const product_speciaux = await prisma.product_speciaux.upsert({ + * create: { + * // ... data to create a Product_speciaux + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Product_speciaux we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__product_speciauxClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Product_speciauxes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_speciauxCountArgs} args - Arguments to filter Product_speciauxes to count. + * @example + * // Count the number of Product_speciauxes + * const count = await prisma.product_speciaux.count({ + * where: { + * // ... the filter for the Product_speciauxes 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 Product_speciaux. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Product_speciauxAggregateArgs} 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 Product_speciaux. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_speciauxGroupByArgs} 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 product_speciauxGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: product_speciauxGroupByArgs['orderBy'] } + : { orderBy?: product_speciauxGroupByArgs['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 ? GetProduct_speciauxGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the product_speciaux model + */ +readonly fields: product_speciauxFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for product_speciaux. + * 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__product_speciauxClient 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 product_speciaux model + */ +export interface product_speciauxFieldRefs { + readonly id: Prisma.FieldRef<"product_speciaux", 'BigInt'> + readonly product_zone_id: Prisma.FieldRef<"product_speciaux", 'BigInt'> + readonly product_id: Prisma.FieldRef<"product_speciaux", 'BigInt'> + readonly price: Prisma.FieldRef<"product_speciaux", 'Float'> + readonly price_install: Prisma.FieldRef<"product_speciaux", 'Float'> + readonly exp_timestamp: Prisma.FieldRef<"product_speciaux", 'BigInt'> + readonly duree_contrat: Prisma.FieldRef<"product_speciaux", 'Int'> +} + + +// Custom InputTypes +/** + * product_speciaux findUnique + */ +export type product_speciauxFindUniqueArgs = { + /** + * Select specific fields to fetch from the product_speciaux + */ + select?: Prisma.product_speciauxSelect | null + /** + * Omit specific fields from the product_speciaux + */ + omit?: Prisma.product_speciauxOmit | null + /** + * Filter, which product_speciaux to fetch. + */ + where: Prisma.product_speciauxWhereUniqueInput +} + +/** + * product_speciaux findUniqueOrThrow + */ +export type product_speciauxFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the product_speciaux + */ + select?: Prisma.product_speciauxSelect | null + /** + * Omit specific fields from the product_speciaux + */ + omit?: Prisma.product_speciauxOmit | null + /** + * Filter, which product_speciaux to fetch. + */ + where: Prisma.product_speciauxWhereUniqueInput +} + +/** + * product_speciaux findFirst + */ +export type product_speciauxFindFirstArgs = { + /** + * Select specific fields to fetch from the product_speciaux + */ + select?: Prisma.product_speciauxSelect | null + /** + * Omit specific fields from the product_speciaux + */ + omit?: Prisma.product_speciauxOmit | null + /** + * Filter, which product_speciaux to fetch. + */ + where?: Prisma.product_speciauxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_speciauxes to fetch. + */ + orderBy?: Prisma.product_speciauxOrderByWithRelationInput | Prisma.product_speciauxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_speciauxes. + */ + cursor?: Prisma.product_speciauxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_speciauxes 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` product_speciauxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_speciauxes. + */ + distinct?: Prisma.Product_speciauxScalarFieldEnum | Prisma.Product_speciauxScalarFieldEnum[] +} + +/** + * product_speciaux findFirstOrThrow + */ +export type product_speciauxFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the product_speciaux + */ + select?: Prisma.product_speciauxSelect | null + /** + * Omit specific fields from the product_speciaux + */ + omit?: Prisma.product_speciauxOmit | null + /** + * Filter, which product_speciaux to fetch. + */ + where?: Prisma.product_speciauxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_speciauxes to fetch. + */ + orderBy?: Prisma.product_speciauxOrderByWithRelationInput | Prisma.product_speciauxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_speciauxes. + */ + cursor?: Prisma.product_speciauxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_speciauxes 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` product_speciauxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_speciauxes. + */ + distinct?: Prisma.Product_speciauxScalarFieldEnum | Prisma.Product_speciauxScalarFieldEnum[] +} + +/** + * product_speciaux findMany + */ +export type product_speciauxFindManyArgs = { + /** + * Select specific fields to fetch from the product_speciaux + */ + select?: Prisma.product_speciauxSelect | null + /** + * Omit specific fields from the product_speciaux + */ + omit?: Prisma.product_speciauxOmit | null + /** + * Filter, which product_speciauxes to fetch. + */ + where?: Prisma.product_speciauxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_speciauxes to fetch. + */ + orderBy?: Prisma.product_speciauxOrderByWithRelationInput | Prisma.product_speciauxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing product_speciauxes. + */ + cursor?: Prisma.product_speciauxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_speciauxes 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` product_speciauxes. + */ + skip?: number + distinct?: Prisma.Product_speciauxScalarFieldEnum | Prisma.Product_speciauxScalarFieldEnum[] +} + +/** + * product_speciaux create + */ +export type product_speciauxCreateArgs = { + /** + * Select specific fields to fetch from the product_speciaux + */ + select?: Prisma.product_speciauxSelect | null + /** + * Omit specific fields from the product_speciaux + */ + omit?: Prisma.product_speciauxOmit | null + /** + * The data needed to create a product_speciaux. + */ + data: Prisma.XOR +} + +/** + * product_speciaux createMany + */ +export type product_speciauxCreateManyArgs = { + /** + * The data used to create many product_speciauxes. + */ + data: Prisma.product_speciauxCreateManyInput | Prisma.product_speciauxCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * product_speciaux update + */ +export type product_speciauxUpdateArgs = { + /** + * Select specific fields to fetch from the product_speciaux + */ + select?: Prisma.product_speciauxSelect | null + /** + * Omit specific fields from the product_speciaux + */ + omit?: Prisma.product_speciauxOmit | null + /** + * The data needed to update a product_speciaux. + */ + data: Prisma.XOR + /** + * Choose, which product_speciaux to update. + */ + where: Prisma.product_speciauxWhereUniqueInput +} + +/** + * product_speciaux updateMany + */ +export type product_speciauxUpdateManyArgs = { + /** + * The data used to update product_speciauxes. + */ + data: Prisma.XOR + /** + * Filter which product_speciauxes to update + */ + where?: Prisma.product_speciauxWhereInput + /** + * Limit how many product_speciauxes to update. + */ + limit?: number +} + +/** + * product_speciaux upsert + */ +export type product_speciauxUpsertArgs = { + /** + * Select specific fields to fetch from the product_speciaux + */ + select?: Prisma.product_speciauxSelect | null + /** + * Omit specific fields from the product_speciaux + */ + omit?: Prisma.product_speciauxOmit | null + /** + * The filter to search for the product_speciaux to update in case it exists. + */ + where: Prisma.product_speciauxWhereUniqueInput + /** + * In case the product_speciaux found by the `where` argument doesn't exist, create a new product_speciaux with this data. + */ + create: Prisma.XOR + /** + * In case the product_speciaux was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * product_speciaux delete + */ +export type product_speciauxDeleteArgs = { + /** + * Select specific fields to fetch from the product_speciaux + */ + select?: Prisma.product_speciauxSelect | null + /** + * Omit specific fields from the product_speciaux + */ + omit?: Prisma.product_speciauxOmit | null + /** + * Filter which product_speciaux to delete. + */ + where: Prisma.product_speciauxWhereUniqueInput +} + +/** + * product_speciaux deleteMany + */ +export type product_speciauxDeleteManyArgs = { + /** + * Filter which product_speciauxes to delete + */ + where?: Prisma.product_speciauxWhereInput + /** + * Limit how many product_speciauxes to delete. + */ + limit?: number +} + +/** + * product_speciaux without action + */ +export type product_speciauxDefaultArgs = { + /** + * Select specific fields to fetch from the product_speciaux + */ + select?: Prisma.product_speciauxSelect | null + /** + * Omit specific fields from the product_speciaux + */ + omit?: Prisma.product_speciauxOmit | null +} diff --git a/prisma/generated/mariadb/models/product_translate.ts b/prisma/generated/mariadb/models/product_translate.ts new file mode 100644 index 0000000..c5b5468 --- /dev/null +++ b/prisma/generated/mariadb/models/product_translate.ts @@ -0,0 +1,1111 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `product_translate` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model product_translate + * + */ +export type product_translateModel = runtime.Types.Result.DefaultSelection + +export type AggregateProduct_translate = { + _count: Product_translateCountAggregateOutputType | null + _avg: Product_translateAvgAggregateOutputType | null + _sum: Product_translateSumAggregateOutputType | null + _min: Product_translateMinAggregateOutputType | null + _max: Product_translateMaxAggregateOutputType | null +} + +export type Product_translateAvgAggregateOutputType = { + id: number | null + product_id: number | null +} + +export type Product_translateSumAggregateOutputType = { + id: number | null + product_id: number | null +} + +export type Product_translateMinAggregateOutputType = { + id: number | null + product_id: number | null + language_id: string | null + name: string | null + description_short: string | null + description_full: string | null +} + +export type Product_translateMaxAggregateOutputType = { + id: number | null + product_id: number | null + language_id: string | null + name: string | null + description_short: string | null + description_full: string | null +} + +export type Product_translateCountAggregateOutputType = { + id: number + product_id: number + language_id: number + name: number + description_short: number + description_full: number + _all: number +} + + +export type Product_translateAvgAggregateInputType = { + id?: true + product_id?: true +} + +export type Product_translateSumAggregateInputType = { + id?: true + product_id?: true +} + +export type Product_translateMinAggregateInputType = { + id?: true + product_id?: true + language_id?: true + name?: true + description_short?: true + description_full?: true +} + +export type Product_translateMaxAggregateInputType = { + id?: true + product_id?: true + language_id?: true + name?: true + description_short?: true + description_full?: true +} + +export type Product_translateCountAggregateInputType = { + id?: true + product_id?: true + language_id?: true + name?: true + description_short?: true + description_full?: true + _all?: true +} + +export type Product_translateAggregateArgs = { + /** + * Filter which product_translate to aggregate. + */ + where?: Prisma.product_translateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_translates to fetch. + */ + orderBy?: Prisma.product_translateOrderByWithRelationInput | Prisma.product_translateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.product_translateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_translates 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` product_translates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned product_translates + **/ + _count?: true | Product_translateCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Product_translateAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Product_translateSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Product_translateMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Product_translateMaxAggregateInputType +} + +export type GetProduct_translateAggregateType = { + [P in keyof T & keyof AggregateProduct_translate]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type product_translateGroupByArgs = { + where?: Prisma.product_translateWhereInput + orderBy?: Prisma.product_translateOrderByWithAggregationInput | Prisma.product_translateOrderByWithAggregationInput[] + by: Prisma.Product_translateScalarFieldEnum[] | Prisma.Product_translateScalarFieldEnum + having?: Prisma.product_translateScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Product_translateCountAggregateInputType | true + _avg?: Product_translateAvgAggregateInputType + _sum?: Product_translateSumAggregateInputType + _min?: Product_translateMinAggregateInputType + _max?: Product_translateMaxAggregateInputType +} + +export type Product_translateGroupByOutputType = { + id: number + product_id: number | null + language_id: string | null + name: string | null + description_short: string | null + description_full: string | null + _count: Product_translateCountAggregateOutputType | null + _avg: Product_translateAvgAggregateOutputType | null + _sum: Product_translateSumAggregateOutputType | null + _min: Product_translateMinAggregateOutputType | null + _max: Product_translateMaxAggregateOutputType | null +} + +type GetProduct_translateGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Product_translateGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type product_translateWhereInput = { + AND?: Prisma.product_translateWhereInput | Prisma.product_translateWhereInput[] + OR?: Prisma.product_translateWhereInput[] + NOT?: Prisma.product_translateWhereInput | Prisma.product_translateWhereInput[] + id?: Prisma.IntFilter<"product_translate"> | number + product_id?: Prisma.IntNullableFilter<"product_translate"> | number | null + language_id?: Prisma.StringNullableFilter<"product_translate"> | string | null + name?: Prisma.StringNullableFilter<"product_translate"> | string | null + description_short?: Prisma.StringNullableFilter<"product_translate"> | string | null + description_full?: Prisma.StringNullableFilter<"product_translate"> | string | null +} + +export type product_translateOrderByWithRelationInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrderInput | Prisma.SortOrder + language_id?: Prisma.SortOrderInput | Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + description_short?: Prisma.SortOrderInput | Prisma.SortOrder + description_full?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.product_translateOrderByRelevanceInput +} + +export type product_translateWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.product_translateWhereInput | Prisma.product_translateWhereInput[] + OR?: Prisma.product_translateWhereInput[] + NOT?: Prisma.product_translateWhereInput | Prisma.product_translateWhereInput[] + product_id?: Prisma.IntNullableFilter<"product_translate"> | number | null + language_id?: Prisma.StringNullableFilter<"product_translate"> | string | null + name?: Prisma.StringNullableFilter<"product_translate"> | string | null + description_short?: Prisma.StringNullableFilter<"product_translate"> | string | null + description_full?: Prisma.StringNullableFilter<"product_translate"> | string | null +}, "id"> + +export type product_translateOrderByWithAggregationInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrderInput | Prisma.SortOrder + language_id?: Prisma.SortOrderInput | Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + description_short?: Prisma.SortOrderInput | Prisma.SortOrder + description_full?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.product_translateCountOrderByAggregateInput + _avg?: Prisma.product_translateAvgOrderByAggregateInput + _max?: Prisma.product_translateMaxOrderByAggregateInput + _min?: Prisma.product_translateMinOrderByAggregateInput + _sum?: Prisma.product_translateSumOrderByAggregateInput +} + +export type product_translateScalarWhereWithAggregatesInput = { + AND?: Prisma.product_translateScalarWhereWithAggregatesInput | Prisma.product_translateScalarWhereWithAggregatesInput[] + OR?: Prisma.product_translateScalarWhereWithAggregatesInput[] + NOT?: Prisma.product_translateScalarWhereWithAggregatesInput | Prisma.product_translateScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"product_translate"> | number + product_id?: Prisma.IntNullableWithAggregatesFilter<"product_translate"> | number | null + language_id?: Prisma.StringNullableWithAggregatesFilter<"product_translate"> | string | null + name?: Prisma.StringNullableWithAggregatesFilter<"product_translate"> | string | null + description_short?: Prisma.StringNullableWithAggregatesFilter<"product_translate"> | string | null + description_full?: Prisma.StringNullableWithAggregatesFilter<"product_translate"> | string | null +} + +export type product_translateCreateInput = { + product_id?: number | null + language_id?: string | null + name?: string | null + description_short?: string | null + description_full?: string | null +} + +export type product_translateUncheckedCreateInput = { + id?: number + product_id?: number | null + language_id?: string | null + name?: string | null + description_short?: string | null + description_full?: string | null +} + +export type product_translateUpdateInput = { + product_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + language_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description_short?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description_full?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type product_translateUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + language_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description_short?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description_full?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type product_translateCreateManyInput = { + id?: number + product_id?: number | null + language_id?: string | null + name?: string | null + description_short?: string | null + description_full?: string | null +} + +export type product_translateUpdateManyMutationInput = { + product_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + language_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description_short?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description_full?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type product_translateUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + language_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description_short?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description_full?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type product_translateOrderByRelevanceInput = { + fields: Prisma.product_translateOrderByRelevanceFieldEnum | Prisma.product_translateOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type product_translateCountOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + language_id?: Prisma.SortOrder + name?: Prisma.SortOrder + description_short?: Prisma.SortOrder + description_full?: Prisma.SortOrder +} + +export type product_translateAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder +} + +export type product_translateMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + language_id?: Prisma.SortOrder + name?: Prisma.SortOrder + description_short?: Prisma.SortOrder + description_full?: Prisma.SortOrder +} + +export type product_translateMinOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + language_id?: Prisma.SortOrder + name?: Prisma.SortOrder + description_short?: Prisma.SortOrder + description_full?: Prisma.SortOrder +} + +export type product_translateSumOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder +} + + + +export type product_translateSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + product_id?: boolean + language_id?: boolean + name?: boolean + description_short?: boolean + description_full?: boolean +}, ExtArgs["result"]["product_translate"]> + + + +export type product_translateSelectScalar = { + id?: boolean + product_id?: boolean + language_id?: boolean + name?: boolean + description_short?: boolean + description_full?: boolean +} + +export type product_translateOmit = runtime.Types.Extensions.GetOmit<"id" | "product_id" | "language_id" | "name" | "description_short" | "description_full", ExtArgs["result"]["product_translate"]> + +export type $product_translatePayload = { + name: "product_translate" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + product_id: number | null + language_id: string | null + name: string | null + description_short: string | null + description_full: string | null + }, ExtArgs["result"]["product_translate"]> + composites: {} +} + +export type product_translateGetPayload = runtime.Types.Result.GetResult + +export type product_translateCountArgs = + Omit & { + select?: Product_translateCountAggregateInputType | true + } + +export interface product_translateDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['product_translate'], meta: { name: 'product_translate' } } + /** + * Find zero or one Product_translate that matches the filter. + * @param {product_translateFindUniqueArgs} args - Arguments to find a Product_translate + * @example + * // Get one Product_translate + * const product_translate = await prisma.product_translate.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__product_translateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Product_translate that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {product_translateFindUniqueOrThrowArgs} args - Arguments to find a Product_translate + * @example + * // Get one Product_translate + * const product_translate = await prisma.product_translate.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__product_translateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_translate 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 {product_translateFindFirstArgs} args - Arguments to find a Product_translate + * @example + * // Get one Product_translate + * const product_translate = await prisma.product_translate.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__product_translateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_translate 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 {product_translateFindFirstOrThrowArgs} args - Arguments to find a Product_translate + * @example + * // Get one Product_translate + * const product_translate = await prisma.product_translate.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__product_translateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Product_translates 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 {product_translateFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Product_translates + * const product_translates = await prisma.product_translate.findMany() + * + * // Get first 10 Product_translates + * const product_translates = await prisma.product_translate.findMany({ take: 10 }) + * + * // Only select the `id` + * const product_translateWithIdOnly = await prisma.product_translate.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Product_translate. + * @param {product_translateCreateArgs} args - Arguments to create a Product_translate. + * @example + * // Create one Product_translate + * const Product_translate = await prisma.product_translate.create({ + * data: { + * // ... data to create a Product_translate + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__product_translateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Product_translates. + * @param {product_translateCreateManyArgs} args - Arguments to create many Product_translates. + * @example + * // Create many Product_translates + * const product_translate = await prisma.product_translate.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Product_translate. + * @param {product_translateDeleteArgs} args - Arguments to delete one Product_translate. + * @example + * // Delete one Product_translate + * const Product_translate = await prisma.product_translate.delete({ + * where: { + * // ... filter to delete one Product_translate + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__product_translateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Product_translate. + * @param {product_translateUpdateArgs} args - Arguments to update one Product_translate. + * @example + * // Update one Product_translate + * const product_translate = await prisma.product_translate.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__product_translateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Product_translates. + * @param {product_translateDeleteManyArgs} args - Arguments to filter Product_translates to delete. + * @example + * // Delete a few Product_translates + * const { count } = await prisma.product_translate.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Product_translates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_translateUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Product_translates + * const product_translate = await prisma.product_translate.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Product_translate. + * @param {product_translateUpsertArgs} args - Arguments to update or create a Product_translate. + * @example + * // Update or create a Product_translate + * const product_translate = await prisma.product_translate.upsert({ + * create: { + * // ... data to create a Product_translate + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Product_translate we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__product_translateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Product_translates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_translateCountArgs} args - Arguments to filter Product_translates to count. + * @example + * // Count the number of Product_translates + * const count = await prisma.product_translate.count({ + * where: { + * // ... the filter for the Product_translates 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 Product_translate. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Product_translateAggregateArgs} 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 Product_translate. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_translateGroupByArgs} 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 product_translateGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: product_translateGroupByArgs['orderBy'] } + : { orderBy?: product_translateGroupByArgs['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 ? GetProduct_translateGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the product_translate model + */ +readonly fields: product_translateFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for product_translate. + * 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__product_translateClient 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 product_translate model + */ +export interface product_translateFieldRefs { + readonly id: Prisma.FieldRef<"product_translate", 'Int'> + readonly product_id: Prisma.FieldRef<"product_translate", 'Int'> + readonly language_id: Prisma.FieldRef<"product_translate", 'String'> + readonly name: Prisma.FieldRef<"product_translate", 'String'> + readonly description_short: Prisma.FieldRef<"product_translate", 'String'> + readonly description_full: Prisma.FieldRef<"product_translate", 'String'> +} + + +// Custom InputTypes +/** + * product_translate findUnique + */ +export type product_translateFindUniqueArgs = { + /** + * Select specific fields to fetch from the product_translate + */ + select?: Prisma.product_translateSelect | null + /** + * Omit specific fields from the product_translate + */ + omit?: Prisma.product_translateOmit | null + /** + * Filter, which product_translate to fetch. + */ + where: Prisma.product_translateWhereUniqueInput +} + +/** + * product_translate findUniqueOrThrow + */ +export type product_translateFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the product_translate + */ + select?: Prisma.product_translateSelect | null + /** + * Omit specific fields from the product_translate + */ + omit?: Prisma.product_translateOmit | null + /** + * Filter, which product_translate to fetch. + */ + where: Prisma.product_translateWhereUniqueInput +} + +/** + * product_translate findFirst + */ +export type product_translateFindFirstArgs = { + /** + * Select specific fields to fetch from the product_translate + */ + select?: Prisma.product_translateSelect | null + /** + * Omit specific fields from the product_translate + */ + omit?: Prisma.product_translateOmit | null + /** + * Filter, which product_translate to fetch. + */ + where?: Prisma.product_translateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_translates to fetch. + */ + orderBy?: Prisma.product_translateOrderByWithRelationInput | Prisma.product_translateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_translates. + */ + cursor?: Prisma.product_translateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_translates 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` product_translates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_translates. + */ + distinct?: Prisma.Product_translateScalarFieldEnum | Prisma.Product_translateScalarFieldEnum[] +} + +/** + * product_translate findFirstOrThrow + */ +export type product_translateFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the product_translate + */ + select?: Prisma.product_translateSelect | null + /** + * Omit specific fields from the product_translate + */ + omit?: Prisma.product_translateOmit | null + /** + * Filter, which product_translate to fetch. + */ + where?: Prisma.product_translateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_translates to fetch. + */ + orderBy?: Prisma.product_translateOrderByWithRelationInput | Prisma.product_translateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_translates. + */ + cursor?: Prisma.product_translateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_translates 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` product_translates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_translates. + */ + distinct?: Prisma.Product_translateScalarFieldEnum | Prisma.Product_translateScalarFieldEnum[] +} + +/** + * product_translate findMany + */ +export type product_translateFindManyArgs = { + /** + * Select specific fields to fetch from the product_translate + */ + select?: Prisma.product_translateSelect | null + /** + * Omit specific fields from the product_translate + */ + omit?: Prisma.product_translateOmit | null + /** + * Filter, which product_translates to fetch. + */ + where?: Prisma.product_translateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_translates to fetch. + */ + orderBy?: Prisma.product_translateOrderByWithRelationInput | Prisma.product_translateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing product_translates. + */ + cursor?: Prisma.product_translateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_translates 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` product_translates. + */ + skip?: number + distinct?: Prisma.Product_translateScalarFieldEnum | Prisma.Product_translateScalarFieldEnum[] +} + +/** + * product_translate create + */ +export type product_translateCreateArgs = { + /** + * Select specific fields to fetch from the product_translate + */ + select?: Prisma.product_translateSelect | null + /** + * Omit specific fields from the product_translate + */ + omit?: Prisma.product_translateOmit | null + /** + * The data needed to create a product_translate. + */ + data?: Prisma.XOR +} + +/** + * product_translate createMany + */ +export type product_translateCreateManyArgs = { + /** + * The data used to create many product_translates. + */ + data: Prisma.product_translateCreateManyInput | Prisma.product_translateCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * product_translate update + */ +export type product_translateUpdateArgs = { + /** + * Select specific fields to fetch from the product_translate + */ + select?: Prisma.product_translateSelect | null + /** + * Omit specific fields from the product_translate + */ + omit?: Prisma.product_translateOmit | null + /** + * The data needed to update a product_translate. + */ + data: Prisma.XOR + /** + * Choose, which product_translate to update. + */ + where: Prisma.product_translateWhereUniqueInput +} + +/** + * product_translate updateMany + */ +export type product_translateUpdateManyArgs = { + /** + * The data used to update product_translates. + */ + data: Prisma.XOR + /** + * Filter which product_translates to update + */ + where?: Prisma.product_translateWhereInput + /** + * Limit how many product_translates to update. + */ + limit?: number +} + +/** + * product_translate upsert + */ +export type product_translateUpsertArgs = { + /** + * Select specific fields to fetch from the product_translate + */ + select?: Prisma.product_translateSelect | null + /** + * Omit specific fields from the product_translate + */ + omit?: Prisma.product_translateOmit | null + /** + * The filter to search for the product_translate to update in case it exists. + */ + where: Prisma.product_translateWhereUniqueInput + /** + * In case the product_translate found by the `where` argument doesn't exist, create a new product_translate with this data. + */ + create: Prisma.XOR + /** + * In case the product_translate was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * product_translate delete + */ +export type product_translateDeleteArgs = { + /** + * Select specific fields to fetch from the product_translate + */ + select?: Prisma.product_translateSelect | null + /** + * Omit specific fields from the product_translate + */ + omit?: Prisma.product_translateOmit | null + /** + * Filter which product_translate to delete. + */ + where: Prisma.product_translateWhereUniqueInput +} + +/** + * product_translate deleteMany + */ +export type product_translateDeleteManyArgs = { + /** + * Filter which product_translates to delete + */ + where?: Prisma.product_translateWhereInput + /** + * Limit how many product_translates to delete. + */ + limit?: number +} + +/** + * product_translate without action + */ +export type product_translateDefaultArgs = { + /** + * Select specific fields to fetch from the product_translate + */ + select?: Prisma.product_translateSelect | null + /** + * Omit specific fields from the product_translate + */ + omit?: Prisma.product_translateOmit | null +} diff --git a/prisma/generated/mariadb/models/product_zone.ts b/prisma/generated/mariadb/models/product_zone.ts new file mode 100644 index 0000000..cd3af63 --- /dev/null +++ b/prisma/generated/mariadb/models/product_zone.ts @@ -0,0 +1,1036 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `product_zone` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model product_zone + * + */ +export type product_zoneModel = runtime.Types.Result.DefaultSelection + +export type AggregateProduct_zone = { + _count: Product_zoneCountAggregateOutputType | null + _avg: Product_zoneAvgAggregateOutputType | null + _sum: Product_zoneSumAggregateOutputType | null + _min: Product_zoneMinAggregateOutputType | null + _max: Product_zoneMaxAggregateOutputType | null +} + +export type Product_zoneAvgAggregateOutputType = { + id: number | null + zoneNumber: number | null +} + +export type Product_zoneSumAggregateOutputType = { + id: bigint | null + zoneNumber: number | null +} + +export type Product_zoneMinAggregateOutputType = { + id: bigint | null + zoneNumber: number | null + description: string | null +} + +export type Product_zoneMaxAggregateOutputType = { + id: bigint | null + zoneNumber: number | null + description: string | null +} + +export type Product_zoneCountAggregateOutputType = { + id: number + zoneNumber: number + description: number + _all: number +} + + +export type Product_zoneAvgAggregateInputType = { + id?: true + zoneNumber?: true +} + +export type Product_zoneSumAggregateInputType = { + id?: true + zoneNumber?: true +} + +export type Product_zoneMinAggregateInputType = { + id?: true + zoneNumber?: true + description?: true +} + +export type Product_zoneMaxAggregateInputType = { + id?: true + zoneNumber?: true + description?: true +} + +export type Product_zoneCountAggregateInputType = { + id?: true + zoneNumber?: true + description?: true + _all?: true +} + +export type Product_zoneAggregateArgs = { + /** + * Filter which product_zone to aggregate. + */ + where?: Prisma.product_zoneWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_zones to fetch. + */ + orderBy?: Prisma.product_zoneOrderByWithRelationInput | Prisma.product_zoneOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.product_zoneWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_zones 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` product_zones. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned product_zones + **/ + _count?: true | Product_zoneCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Product_zoneAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Product_zoneSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Product_zoneMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Product_zoneMaxAggregateInputType +} + +export type GetProduct_zoneAggregateType = { + [P in keyof T & keyof AggregateProduct_zone]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type product_zoneGroupByArgs = { + where?: Prisma.product_zoneWhereInput + orderBy?: Prisma.product_zoneOrderByWithAggregationInput | Prisma.product_zoneOrderByWithAggregationInput[] + by: Prisma.Product_zoneScalarFieldEnum[] | Prisma.Product_zoneScalarFieldEnum + having?: Prisma.product_zoneScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Product_zoneCountAggregateInputType | true + _avg?: Product_zoneAvgAggregateInputType + _sum?: Product_zoneSumAggregateInputType + _min?: Product_zoneMinAggregateInputType + _max?: Product_zoneMaxAggregateInputType +} + +export type Product_zoneGroupByOutputType = { + id: bigint + zoneNumber: number + description: string | null + _count: Product_zoneCountAggregateOutputType | null + _avg: Product_zoneAvgAggregateOutputType | null + _sum: Product_zoneSumAggregateOutputType | null + _min: Product_zoneMinAggregateOutputType | null + _max: Product_zoneMaxAggregateOutputType | null +} + +type GetProduct_zoneGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Product_zoneGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type product_zoneWhereInput = { + AND?: Prisma.product_zoneWhereInput | Prisma.product_zoneWhereInput[] + OR?: Prisma.product_zoneWhereInput[] + NOT?: Prisma.product_zoneWhereInput | Prisma.product_zoneWhereInput[] + id?: Prisma.BigIntFilter<"product_zone"> | bigint | number + zoneNumber?: Prisma.IntFilter<"product_zone"> | number + description?: Prisma.StringNullableFilter<"product_zone"> | string | null +} + +export type product_zoneOrderByWithRelationInput = { + id?: Prisma.SortOrder + zoneNumber?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.product_zoneOrderByRelevanceInput +} + +export type product_zoneWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.product_zoneWhereInput | Prisma.product_zoneWhereInput[] + OR?: Prisma.product_zoneWhereInput[] + NOT?: Prisma.product_zoneWhereInput | Prisma.product_zoneWhereInput[] + zoneNumber?: Prisma.IntFilter<"product_zone"> | number + description?: Prisma.StringNullableFilter<"product_zone"> | string | null +}, "id"> + +export type product_zoneOrderByWithAggregationInput = { + id?: Prisma.SortOrder + zoneNumber?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.product_zoneCountOrderByAggregateInput + _avg?: Prisma.product_zoneAvgOrderByAggregateInput + _max?: Prisma.product_zoneMaxOrderByAggregateInput + _min?: Prisma.product_zoneMinOrderByAggregateInput + _sum?: Prisma.product_zoneSumOrderByAggregateInput +} + +export type product_zoneScalarWhereWithAggregatesInput = { + AND?: Prisma.product_zoneScalarWhereWithAggregatesInput | Prisma.product_zoneScalarWhereWithAggregatesInput[] + OR?: Prisma.product_zoneScalarWhereWithAggregatesInput[] + NOT?: Prisma.product_zoneScalarWhereWithAggregatesInput | Prisma.product_zoneScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"product_zone"> | bigint | number + zoneNumber?: Prisma.IntWithAggregatesFilter<"product_zone"> | number + description?: Prisma.StringNullableWithAggregatesFilter<"product_zone"> | string | null +} + +export type product_zoneCreateInput = { + id?: bigint | number + zoneNumber: number + description?: string | null +} + +export type product_zoneUncheckedCreateInput = { + id?: bigint | number + zoneNumber: number + description?: string | null +} + +export type product_zoneUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + zoneNumber?: Prisma.IntFieldUpdateOperationsInput | number + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type product_zoneUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + zoneNumber?: Prisma.IntFieldUpdateOperationsInput | number + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type product_zoneCreateManyInput = { + id?: bigint | number + zoneNumber: number + description?: string | null +} + +export type product_zoneUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + zoneNumber?: Prisma.IntFieldUpdateOperationsInput | number + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type product_zoneUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + zoneNumber?: Prisma.IntFieldUpdateOperationsInput | number + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type product_zoneOrderByRelevanceInput = { + fields: Prisma.product_zoneOrderByRelevanceFieldEnum | Prisma.product_zoneOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type product_zoneCountOrderByAggregateInput = { + id?: Prisma.SortOrder + zoneNumber?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type product_zoneAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + zoneNumber?: Prisma.SortOrder +} + +export type product_zoneMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + zoneNumber?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type product_zoneMinOrderByAggregateInput = { + id?: Prisma.SortOrder + zoneNumber?: Prisma.SortOrder + description?: Prisma.SortOrder +} + +export type product_zoneSumOrderByAggregateInput = { + id?: Prisma.SortOrder + zoneNumber?: Prisma.SortOrder +} + + + +export type product_zoneSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + zoneNumber?: boolean + description?: boolean +}, ExtArgs["result"]["product_zone"]> + + + +export type product_zoneSelectScalar = { + id?: boolean + zoneNumber?: boolean + description?: boolean +} + +export type product_zoneOmit = runtime.Types.Extensions.GetOmit<"id" | "zoneNumber" | "description", ExtArgs["result"]["product_zone"]> + +export type $product_zonePayload = { + name: "product_zone" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + zoneNumber: number + description: string | null + }, ExtArgs["result"]["product_zone"]> + composites: {} +} + +export type product_zoneGetPayload = runtime.Types.Result.GetResult + +export type product_zoneCountArgs = + Omit & { + select?: Product_zoneCountAggregateInputType | true + } + +export interface product_zoneDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['product_zone'], meta: { name: 'product_zone' } } + /** + * Find zero or one Product_zone that matches the filter. + * @param {product_zoneFindUniqueArgs} args - Arguments to find a Product_zone + * @example + * // Get one Product_zone + * const product_zone = await prisma.product_zone.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__product_zoneClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Product_zone that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {product_zoneFindUniqueOrThrowArgs} args - Arguments to find a Product_zone + * @example + * // Get one Product_zone + * const product_zone = await prisma.product_zone.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__product_zoneClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_zone 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 {product_zoneFindFirstArgs} args - Arguments to find a Product_zone + * @example + * // Get one Product_zone + * const product_zone = await prisma.product_zone.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__product_zoneClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_zone 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 {product_zoneFindFirstOrThrowArgs} args - Arguments to find a Product_zone + * @example + * // Get one Product_zone + * const product_zone = await prisma.product_zone.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__product_zoneClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Product_zones 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 {product_zoneFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Product_zones + * const product_zones = await prisma.product_zone.findMany() + * + * // Get first 10 Product_zones + * const product_zones = await prisma.product_zone.findMany({ take: 10 }) + * + * // Only select the `id` + * const product_zoneWithIdOnly = await prisma.product_zone.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Product_zone. + * @param {product_zoneCreateArgs} args - Arguments to create a Product_zone. + * @example + * // Create one Product_zone + * const Product_zone = await prisma.product_zone.create({ + * data: { + * // ... data to create a Product_zone + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__product_zoneClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Product_zones. + * @param {product_zoneCreateManyArgs} args - Arguments to create many Product_zones. + * @example + * // Create many Product_zones + * const product_zone = await prisma.product_zone.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Product_zone. + * @param {product_zoneDeleteArgs} args - Arguments to delete one Product_zone. + * @example + * // Delete one Product_zone + * const Product_zone = await prisma.product_zone.delete({ + * where: { + * // ... filter to delete one Product_zone + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__product_zoneClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Product_zone. + * @param {product_zoneUpdateArgs} args - Arguments to update one Product_zone. + * @example + * // Update one Product_zone + * const product_zone = await prisma.product_zone.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__product_zoneClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Product_zones. + * @param {product_zoneDeleteManyArgs} args - Arguments to filter Product_zones to delete. + * @example + * // Delete a few Product_zones + * const { count } = await prisma.product_zone.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Product_zones. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_zoneUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Product_zones + * const product_zone = await prisma.product_zone.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Product_zone. + * @param {product_zoneUpsertArgs} args - Arguments to update or create a Product_zone. + * @example + * // Update or create a Product_zone + * const product_zone = await prisma.product_zone.upsert({ + * create: { + * // ... data to create a Product_zone + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Product_zone we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__product_zoneClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Product_zones. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_zoneCountArgs} args - Arguments to filter Product_zones to count. + * @example + * // Count the number of Product_zones + * const count = await prisma.product_zone.count({ + * where: { + * // ... the filter for the Product_zones 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 Product_zone. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Product_zoneAggregateArgs} 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 Product_zone. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_zoneGroupByArgs} 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 product_zoneGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: product_zoneGroupByArgs['orderBy'] } + : { orderBy?: product_zoneGroupByArgs['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 ? GetProduct_zoneGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the product_zone model + */ +readonly fields: product_zoneFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for product_zone. + * 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__product_zoneClient 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 product_zone model + */ +export interface product_zoneFieldRefs { + readonly id: Prisma.FieldRef<"product_zone", 'BigInt'> + readonly zoneNumber: Prisma.FieldRef<"product_zone", 'Int'> + readonly description: Prisma.FieldRef<"product_zone", 'String'> +} + + +// Custom InputTypes +/** + * product_zone findUnique + */ +export type product_zoneFindUniqueArgs = { + /** + * Select specific fields to fetch from the product_zone + */ + select?: Prisma.product_zoneSelect | null + /** + * Omit specific fields from the product_zone + */ + omit?: Prisma.product_zoneOmit | null + /** + * Filter, which product_zone to fetch. + */ + where: Prisma.product_zoneWhereUniqueInput +} + +/** + * product_zone findUniqueOrThrow + */ +export type product_zoneFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the product_zone + */ + select?: Prisma.product_zoneSelect | null + /** + * Omit specific fields from the product_zone + */ + omit?: Prisma.product_zoneOmit | null + /** + * Filter, which product_zone to fetch. + */ + where: Prisma.product_zoneWhereUniqueInput +} + +/** + * product_zone findFirst + */ +export type product_zoneFindFirstArgs = { + /** + * Select specific fields to fetch from the product_zone + */ + select?: Prisma.product_zoneSelect | null + /** + * Omit specific fields from the product_zone + */ + omit?: Prisma.product_zoneOmit | null + /** + * Filter, which product_zone to fetch. + */ + where?: Prisma.product_zoneWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_zones to fetch. + */ + orderBy?: Prisma.product_zoneOrderByWithRelationInput | Prisma.product_zoneOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_zones. + */ + cursor?: Prisma.product_zoneWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_zones 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` product_zones. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_zones. + */ + distinct?: Prisma.Product_zoneScalarFieldEnum | Prisma.Product_zoneScalarFieldEnum[] +} + +/** + * product_zone findFirstOrThrow + */ +export type product_zoneFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the product_zone + */ + select?: Prisma.product_zoneSelect | null + /** + * Omit specific fields from the product_zone + */ + omit?: Prisma.product_zoneOmit | null + /** + * Filter, which product_zone to fetch. + */ + where?: Prisma.product_zoneWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_zones to fetch. + */ + orderBy?: Prisma.product_zoneOrderByWithRelationInput | Prisma.product_zoneOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_zones. + */ + cursor?: Prisma.product_zoneWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_zones 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` product_zones. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_zones. + */ + distinct?: Prisma.Product_zoneScalarFieldEnum | Prisma.Product_zoneScalarFieldEnum[] +} + +/** + * product_zone findMany + */ +export type product_zoneFindManyArgs = { + /** + * Select specific fields to fetch from the product_zone + */ + select?: Prisma.product_zoneSelect | null + /** + * Omit specific fields from the product_zone + */ + omit?: Prisma.product_zoneOmit | null + /** + * Filter, which product_zones to fetch. + */ + where?: Prisma.product_zoneWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_zones to fetch. + */ + orderBy?: Prisma.product_zoneOrderByWithRelationInput | Prisma.product_zoneOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing product_zones. + */ + cursor?: Prisma.product_zoneWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_zones 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` product_zones. + */ + skip?: number + distinct?: Prisma.Product_zoneScalarFieldEnum | Prisma.Product_zoneScalarFieldEnum[] +} + +/** + * product_zone create + */ +export type product_zoneCreateArgs = { + /** + * Select specific fields to fetch from the product_zone + */ + select?: Prisma.product_zoneSelect | null + /** + * Omit specific fields from the product_zone + */ + omit?: Prisma.product_zoneOmit | null + /** + * The data needed to create a product_zone. + */ + data: Prisma.XOR +} + +/** + * product_zone createMany + */ +export type product_zoneCreateManyArgs = { + /** + * The data used to create many product_zones. + */ + data: Prisma.product_zoneCreateManyInput | Prisma.product_zoneCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * product_zone update + */ +export type product_zoneUpdateArgs = { + /** + * Select specific fields to fetch from the product_zone + */ + select?: Prisma.product_zoneSelect | null + /** + * Omit specific fields from the product_zone + */ + omit?: Prisma.product_zoneOmit | null + /** + * The data needed to update a product_zone. + */ + data: Prisma.XOR + /** + * Choose, which product_zone to update. + */ + where: Prisma.product_zoneWhereUniqueInput +} + +/** + * product_zone updateMany + */ +export type product_zoneUpdateManyArgs = { + /** + * The data used to update product_zones. + */ + data: Prisma.XOR + /** + * Filter which product_zones to update + */ + where?: Prisma.product_zoneWhereInput + /** + * Limit how many product_zones to update. + */ + limit?: number +} + +/** + * product_zone upsert + */ +export type product_zoneUpsertArgs = { + /** + * Select specific fields to fetch from the product_zone + */ + select?: Prisma.product_zoneSelect | null + /** + * Omit specific fields from the product_zone + */ + omit?: Prisma.product_zoneOmit | null + /** + * The filter to search for the product_zone to update in case it exists. + */ + where: Prisma.product_zoneWhereUniqueInput + /** + * In case the product_zone found by the `where` argument doesn't exist, create a new product_zone with this data. + */ + create: Prisma.XOR + /** + * In case the product_zone was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * product_zone delete + */ +export type product_zoneDeleteArgs = { + /** + * Select specific fields to fetch from the product_zone + */ + select?: Prisma.product_zoneSelect | null + /** + * Omit specific fields from the product_zone + */ + omit?: Prisma.product_zoneOmit | null + /** + * Filter which product_zone to delete. + */ + where: Prisma.product_zoneWhereUniqueInput +} + +/** + * product_zone deleteMany + */ +export type product_zoneDeleteManyArgs = { + /** + * Filter which product_zones to delete + */ + where?: Prisma.product_zoneWhereInput + /** + * Limit how many product_zones to delete. + */ + limit?: number +} + +/** + * product_zone without action + */ +export type product_zoneDefaultArgs = { + /** + * Select specific fields to fetch from the product_zone + */ + select?: Prisma.product_zoneSelect | null + /** + * Omit specific fields from the product_zone + */ + omit?: Prisma.product_zoneOmit | null +} diff --git a/prisma/generated/mariadb/models/product_zone_placemarks.ts b/prisma/generated/mariadb/models/product_zone_placemarks.ts new file mode 100644 index 0000000..75fb721 --- /dev/null +++ b/prisma/generated/mariadb/models/product_zone_placemarks.ts @@ -0,0 +1,1035 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `product_zone_placemarks` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model product_zone_placemarks + * + */ +export type product_zone_placemarksModel = runtime.Types.Result.DefaultSelection + +export type AggregateProduct_zone_placemarks = { + _count: Product_zone_placemarksCountAggregateOutputType | null + _avg: Product_zone_placemarksAvgAggregateOutputType | null + _sum: Product_zone_placemarksSumAggregateOutputType | null + _min: Product_zone_placemarksMinAggregateOutputType | null + _max: Product_zone_placemarksMaxAggregateOutputType | null +} + +export type Product_zone_placemarksAvgAggregateOutputType = { + id: number | null + product_zone_id: number | null + placemarks_id: number | null +} + +export type Product_zone_placemarksSumAggregateOutputType = { + id: bigint | null + product_zone_id: bigint | null + placemarks_id: bigint | null +} + +export type Product_zone_placemarksMinAggregateOutputType = { + id: bigint | null + product_zone_id: bigint | null + placemarks_id: bigint | null +} + +export type Product_zone_placemarksMaxAggregateOutputType = { + id: bigint | null + product_zone_id: bigint | null + placemarks_id: bigint | null +} + +export type Product_zone_placemarksCountAggregateOutputType = { + id: number + product_zone_id: number + placemarks_id: number + _all: number +} + + +export type Product_zone_placemarksAvgAggregateInputType = { + id?: true + product_zone_id?: true + placemarks_id?: true +} + +export type Product_zone_placemarksSumAggregateInputType = { + id?: true + product_zone_id?: true + placemarks_id?: true +} + +export type Product_zone_placemarksMinAggregateInputType = { + id?: true + product_zone_id?: true + placemarks_id?: true +} + +export type Product_zone_placemarksMaxAggregateInputType = { + id?: true + product_zone_id?: true + placemarks_id?: true +} + +export type Product_zone_placemarksCountAggregateInputType = { + id?: true + product_zone_id?: true + placemarks_id?: true + _all?: true +} + +export type Product_zone_placemarksAggregateArgs = { + /** + * Filter which product_zone_placemarks to aggregate. + */ + where?: Prisma.product_zone_placemarksWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_zone_placemarks to fetch. + */ + orderBy?: Prisma.product_zone_placemarksOrderByWithRelationInput | Prisma.product_zone_placemarksOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.product_zone_placemarksWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_zone_placemarks 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` product_zone_placemarks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned product_zone_placemarks + **/ + _count?: true | Product_zone_placemarksCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Product_zone_placemarksAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Product_zone_placemarksSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Product_zone_placemarksMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Product_zone_placemarksMaxAggregateInputType +} + +export type GetProduct_zone_placemarksAggregateType = { + [P in keyof T & keyof AggregateProduct_zone_placemarks]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type product_zone_placemarksGroupByArgs = { + where?: Prisma.product_zone_placemarksWhereInput + orderBy?: Prisma.product_zone_placemarksOrderByWithAggregationInput | Prisma.product_zone_placemarksOrderByWithAggregationInput[] + by: Prisma.Product_zone_placemarksScalarFieldEnum[] | Prisma.Product_zone_placemarksScalarFieldEnum + having?: Prisma.product_zone_placemarksScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Product_zone_placemarksCountAggregateInputType | true + _avg?: Product_zone_placemarksAvgAggregateInputType + _sum?: Product_zone_placemarksSumAggregateInputType + _min?: Product_zone_placemarksMinAggregateInputType + _max?: Product_zone_placemarksMaxAggregateInputType +} + +export type Product_zone_placemarksGroupByOutputType = { + id: bigint + product_zone_id: bigint + placemarks_id: bigint + _count: Product_zone_placemarksCountAggregateOutputType | null + _avg: Product_zone_placemarksAvgAggregateOutputType | null + _sum: Product_zone_placemarksSumAggregateOutputType | null + _min: Product_zone_placemarksMinAggregateOutputType | null + _max: Product_zone_placemarksMaxAggregateOutputType | null +} + +type GetProduct_zone_placemarksGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Product_zone_placemarksGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type product_zone_placemarksWhereInput = { + AND?: Prisma.product_zone_placemarksWhereInput | Prisma.product_zone_placemarksWhereInput[] + OR?: Prisma.product_zone_placemarksWhereInput[] + NOT?: Prisma.product_zone_placemarksWhereInput | Prisma.product_zone_placemarksWhereInput[] + id?: Prisma.BigIntFilter<"product_zone_placemarks"> | bigint | number + product_zone_id?: Prisma.BigIntFilter<"product_zone_placemarks"> | bigint | number + placemarks_id?: Prisma.BigIntFilter<"product_zone_placemarks"> | bigint | number +} + +export type product_zone_placemarksOrderByWithRelationInput = { + id?: Prisma.SortOrder + product_zone_id?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder +} + +export type product_zone_placemarksWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.product_zone_placemarksWhereInput | Prisma.product_zone_placemarksWhereInput[] + OR?: Prisma.product_zone_placemarksWhereInput[] + NOT?: Prisma.product_zone_placemarksWhereInput | Prisma.product_zone_placemarksWhereInput[] + product_zone_id?: Prisma.BigIntFilter<"product_zone_placemarks"> | bigint | number + placemarks_id?: Prisma.BigIntFilter<"product_zone_placemarks"> | bigint | number +}, "id"> + +export type product_zone_placemarksOrderByWithAggregationInput = { + id?: Prisma.SortOrder + product_zone_id?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder + _count?: Prisma.product_zone_placemarksCountOrderByAggregateInput + _avg?: Prisma.product_zone_placemarksAvgOrderByAggregateInput + _max?: Prisma.product_zone_placemarksMaxOrderByAggregateInput + _min?: Prisma.product_zone_placemarksMinOrderByAggregateInput + _sum?: Prisma.product_zone_placemarksSumOrderByAggregateInput +} + +export type product_zone_placemarksScalarWhereWithAggregatesInput = { + AND?: Prisma.product_zone_placemarksScalarWhereWithAggregatesInput | Prisma.product_zone_placemarksScalarWhereWithAggregatesInput[] + OR?: Prisma.product_zone_placemarksScalarWhereWithAggregatesInput[] + NOT?: Prisma.product_zone_placemarksScalarWhereWithAggregatesInput | Prisma.product_zone_placemarksScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"product_zone_placemarks"> | bigint | number + product_zone_id?: Prisma.BigIntWithAggregatesFilter<"product_zone_placemarks"> | bigint | number + placemarks_id?: Prisma.BigIntWithAggregatesFilter<"product_zone_placemarks"> | bigint | number +} + +export type product_zone_placemarksCreateInput = { + id?: bigint | number + product_zone_id: bigint | number + placemarks_id: bigint | number +} + +export type product_zone_placemarksUncheckedCreateInput = { + id?: bigint | number + product_zone_id: bigint | number + placemarks_id: bigint | number +} + +export type product_zone_placemarksUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + product_zone_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + placemarks_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type product_zone_placemarksUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + product_zone_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + placemarks_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type product_zone_placemarksCreateManyInput = { + id?: bigint | number + product_zone_id: bigint | number + placemarks_id: bigint | number +} + +export type product_zone_placemarksUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + product_zone_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + placemarks_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type product_zone_placemarksUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + product_zone_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + placemarks_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type product_zone_placemarksCountOrderByAggregateInput = { + id?: Prisma.SortOrder + product_zone_id?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder +} + +export type product_zone_placemarksAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + product_zone_id?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder +} + +export type product_zone_placemarksMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + product_zone_id?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder +} + +export type product_zone_placemarksMinOrderByAggregateInput = { + id?: Prisma.SortOrder + product_zone_id?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder +} + +export type product_zone_placemarksSumOrderByAggregateInput = { + id?: Prisma.SortOrder + product_zone_id?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder +} + + + +export type product_zone_placemarksSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + product_zone_id?: boolean + placemarks_id?: boolean +}, ExtArgs["result"]["product_zone_placemarks"]> + + + +export type product_zone_placemarksSelectScalar = { + id?: boolean + product_zone_id?: boolean + placemarks_id?: boolean +} + +export type product_zone_placemarksOmit = runtime.Types.Extensions.GetOmit<"id" | "product_zone_id" | "placemarks_id", ExtArgs["result"]["product_zone_placemarks"]> + +export type $product_zone_placemarksPayload = { + name: "product_zone_placemarks" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + product_zone_id: bigint + placemarks_id: bigint + }, ExtArgs["result"]["product_zone_placemarks"]> + composites: {} +} + +export type product_zone_placemarksGetPayload = runtime.Types.Result.GetResult + +export type product_zone_placemarksCountArgs = + Omit & { + select?: Product_zone_placemarksCountAggregateInputType | true + } + +export interface product_zone_placemarksDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['product_zone_placemarks'], meta: { name: 'product_zone_placemarks' } } + /** + * Find zero or one Product_zone_placemarks that matches the filter. + * @param {product_zone_placemarksFindUniqueArgs} args - Arguments to find a Product_zone_placemarks + * @example + * // Get one Product_zone_placemarks + * const product_zone_placemarks = await prisma.product_zone_placemarks.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__product_zone_placemarksClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Product_zone_placemarks that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {product_zone_placemarksFindUniqueOrThrowArgs} args - Arguments to find a Product_zone_placemarks + * @example + * // Get one Product_zone_placemarks + * const product_zone_placemarks = await prisma.product_zone_placemarks.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__product_zone_placemarksClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_zone_placemarks 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 {product_zone_placemarksFindFirstArgs} args - Arguments to find a Product_zone_placemarks + * @example + * // Get one Product_zone_placemarks + * const product_zone_placemarks = await prisma.product_zone_placemarks.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__product_zone_placemarksClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Product_zone_placemarks 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 {product_zone_placemarksFindFirstOrThrowArgs} args - Arguments to find a Product_zone_placemarks + * @example + * // Get one Product_zone_placemarks + * const product_zone_placemarks = await prisma.product_zone_placemarks.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__product_zone_placemarksClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Product_zone_placemarks 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 {product_zone_placemarksFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Product_zone_placemarks + * const product_zone_placemarks = await prisma.product_zone_placemarks.findMany() + * + * // Get first 10 Product_zone_placemarks + * const product_zone_placemarks = await prisma.product_zone_placemarks.findMany({ take: 10 }) + * + * // Only select the `id` + * const product_zone_placemarksWithIdOnly = await prisma.product_zone_placemarks.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Product_zone_placemarks. + * @param {product_zone_placemarksCreateArgs} args - Arguments to create a Product_zone_placemarks. + * @example + * // Create one Product_zone_placemarks + * const Product_zone_placemarks = await prisma.product_zone_placemarks.create({ + * data: { + * // ... data to create a Product_zone_placemarks + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__product_zone_placemarksClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Product_zone_placemarks. + * @param {product_zone_placemarksCreateManyArgs} args - Arguments to create many Product_zone_placemarks. + * @example + * // Create many Product_zone_placemarks + * const product_zone_placemarks = await prisma.product_zone_placemarks.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Product_zone_placemarks. + * @param {product_zone_placemarksDeleteArgs} args - Arguments to delete one Product_zone_placemarks. + * @example + * // Delete one Product_zone_placemarks + * const Product_zone_placemarks = await prisma.product_zone_placemarks.delete({ + * where: { + * // ... filter to delete one Product_zone_placemarks + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__product_zone_placemarksClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Product_zone_placemarks. + * @param {product_zone_placemarksUpdateArgs} args - Arguments to update one Product_zone_placemarks. + * @example + * // Update one Product_zone_placemarks + * const product_zone_placemarks = await prisma.product_zone_placemarks.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__product_zone_placemarksClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Product_zone_placemarks. + * @param {product_zone_placemarksDeleteManyArgs} args - Arguments to filter Product_zone_placemarks to delete. + * @example + * // Delete a few Product_zone_placemarks + * const { count } = await prisma.product_zone_placemarks.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Product_zone_placemarks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_zone_placemarksUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Product_zone_placemarks + * const product_zone_placemarks = await prisma.product_zone_placemarks.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Product_zone_placemarks. + * @param {product_zone_placemarksUpsertArgs} args - Arguments to update or create a Product_zone_placemarks. + * @example + * // Update or create a Product_zone_placemarks + * const product_zone_placemarks = await prisma.product_zone_placemarks.upsert({ + * create: { + * // ... data to create a Product_zone_placemarks + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Product_zone_placemarks we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__product_zone_placemarksClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Product_zone_placemarks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_zone_placemarksCountArgs} args - Arguments to filter Product_zone_placemarks to count. + * @example + * // Count the number of Product_zone_placemarks + * const count = await prisma.product_zone_placemarks.count({ + * where: { + * // ... the filter for the Product_zone_placemarks 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 Product_zone_placemarks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Product_zone_placemarksAggregateArgs} 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 Product_zone_placemarks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {product_zone_placemarksGroupByArgs} 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 product_zone_placemarksGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: product_zone_placemarksGroupByArgs['orderBy'] } + : { orderBy?: product_zone_placemarksGroupByArgs['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 ? GetProduct_zone_placemarksGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the product_zone_placemarks model + */ +readonly fields: product_zone_placemarksFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for product_zone_placemarks. + * 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__product_zone_placemarksClient 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 product_zone_placemarks model + */ +export interface product_zone_placemarksFieldRefs { + readonly id: Prisma.FieldRef<"product_zone_placemarks", 'BigInt'> + readonly product_zone_id: Prisma.FieldRef<"product_zone_placemarks", 'BigInt'> + readonly placemarks_id: Prisma.FieldRef<"product_zone_placemarks", 'BigInt'> +} + + +// Custom InputTypes +/** + * product_zone_placemarks findUnique + */ +export type product_zone_placemarksFindUniqueArgs = { + /** + * Select specific fields to fetch from the product_zone_placemarks + */ + select?: Prisma.product_zone_placemarksSelect | null + /** + * Omit specific fields from the product_zone_placemarks + */ + omit?: Prisma.product_zone_placemarksOmit | null + /** + * Filter, which product_zone_placemarks to fetch. + */ + where: Prisma.product_zone_placemarksWhereUniqueInput +} + +/** + * product_zone_placemarks findUniqueOrThrow + */ +export type product_zone_placemarksFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the product_zone_placemarks + */ + select?: Prisma.product_zone_placemarksSelect | null + /** + * Omit specific fields from the product_zone_placemarks + */ + omit?: Prisma.product_zone_placemarksOmit | null + /** + * Filter, which product_zone_placemarks to fetch. + */ + where: Prisma.product_zone_placemarksWhereUniqueInput +} + +/** + * product_zone_placemarks findFirst + */ +export type product_zone_placemarksFindFirstArgs = { + /** + * Select specific fields to fetch from the product_zone_placemarks + */ + select?: Prisma.product_zone_placemarksSelect | null + /** + * Omit specific fields from the product_zone_placemarks + */ + omit?: Prisma.product_zone_placemarksOmit | null + /** + * Filter, which product_zone_placemarks to fetch. + */ + where?: Prisma.product_zone_placemarksWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_zone_placemarks to fetch. + */ + orderBy?: Prisma.product_zone_placemarksOrderByWithRelationInput | Prisma.product_zone_placemarksOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_zone_placemarks. + */ + cursor?: Prisma.product_zone_placemarksWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_zone_placemarks 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` product_zone_placemarks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_zone_placemarks. + */ + distinct?: Prisma.Product_zone_placemarksScalarFieldEnum | Prisma.Product_zone_placemarksScalarFieldEnum[] +} + +/** + * product_zone_placemarks findFirstOrThrow + */ +export type product_zone_placemarksFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the product_zone_placemarks + */ + select?: Prisma.product_zone_placemarksSelect | null + /** + * Omit specific fields from the product_zone_placemarks + */ + omit?: Prisma.product_zone_placemarksOmit | null + /** + * Filter, which product_zone_placemarks to fetch. + */ + where?: Prisma.product_zone_placemarksWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_zone_placemarks to fetch. + */ + orderBy?: Prisma.product_zone_placemarksOrderByWithRelationInput | Prisma.product_zone_placemarksOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for product_zone_placemarks. + */ + cursor?: Prisma.product_zone_placemarksWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_zone_placemarks 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` product_zone_placemarks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of product_zone_placemarks. + */ + distinct?: Prisma.Product_zone_placemarksScalarFieldEnum | Prisma.Product_zone_placemarksScalarFieldEnum[] +} + +/** + * product_zone_placemarks findMany + */ +export type product_zone_placemarksFindManyArgs = { + /** + * Select specific fields to fetch from the product_zone_placemarks + */ + select?: Prisma.product_zone_placemarksSelect | null + /** + * Omit specific fields from the product_zone_placemarks + */ + omit?: Prisma.product_zone_placemarksOmit | null + /** + * Filter, which product_zone_placemarks to fetch. + */ + where?: Prisma.product_zone_placemarksWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of product_zone_placemarks to fetch. + */ + orderBy?: Prisma.product_zone_placemarksOrderByWithRelationInput | Prisma.product_zone_placemarksOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing product_zone_placemarks. + */ + cursor?: Prisma.product_zone_placemarksWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` product_zone_placemarks 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` product_zone_placemarks. + */ + skip?: number + distinct?: Prisma.Product_zone_placemarksScalarFieldEnum | Prisma.Product_zone_placemarksScalarFieldEnum[] +} + +/** + * product_zone_placemarks create + */ +export type product_zone_placemarksCreateArgs = { + /** + * Select specific fields to fetch from the product_zone_placemarks + */ + select?: Prisma.product_zone_placemarksSelect | null + /** + * Omit specific fields from the product_zone_placemarks + */ + omit?: Prisma.product_zone_placemarksOmit | null + /** + * The data needed to create a product_zone_placemarks. + */ + data: Prisma.XOR +} + +/** + * product_zone_placemarks createMany + */ +export type product_zone_placemarksCreateManyArgs = { + /** + * The data used to create many product_zone_placemarks. + */ + data: Prisma.product_zone_placemarksCreateManyInput | Prisma.product_zone_placemarksCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * product_zone_placemarks update + */ +export type product_zone_placemarksUpdateArgs = { + /** + * Select specific fields to fetch from the product_zone_placemarks + */ + select?: Prisma.product_zone_placemarksSelect | null + /** + * Omit specific fields from the product_zone_placemarks + */ + omit?: Prisma.product_zone_placemarksOmit | null + /** + * The data needed to update a product_zone_placemarks. + */ + data: Prisma.XOR + /** + * Choose, which product_zone_placemarks to update. + */ + where: Prisma.product_zone_placemarksWhereUniqueInput +} + +/** + * product_zone_placemarks updateMany + */ +export type product_zone_placemarksUpdateManyArgs = { + /** + * The data used to update product_zone_placemarks. + */ + data: Prisma.XOR + /** + * Filter which product_zone_placemarks to update + */ + where?: Prisma.product_zone_placemarksWhereInput + /** + * Limit how many product_zone_placemarks to update. + */ + limit?: number +} + +/** + * product_zone_placemarks upsert + */ +export type product_zone_placemarksUpsertArgs = { + /** + * Select specific fields to fetch from the product_zone_placemarks + */ + select?: Prisma.product_zone_placemarksSelect | null + /** + * Omit specific fields from the product_zone_placemarks + */ + omit?: Prisma.product_zone_placemarksOmit | null + /** + * The filter to search for the product_zone_placemarks to update in case it exists. + */ + where: Prisma.product_zone_placemarksWhereUniqueInput + /** + * In case the product_zone_placemarks found by the `where` argument doesn't exist, create a new product_zone_placemarks with this data. + */ + create: Prisma.XOR + /** + * In case the product_zone_placemarks was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * product_zone_placemarks delete + */ +export type product_zone_placemarksDeleteArgs = { + /** + * Select specific fields to fetch from the product_zone_placemarks + */ + select?: Prisma.product_zone_placemarksSelect | null + /** + * Omit specific fields from the product_zone_placemarks + */ + omit?: Prisma.product_zone_placemarksOmit | null + /** + * Filter which product_zone_placemarks to delete. + */ + where: Prisma.product_zone_placemarksWhereUniqueInput +} + +/** + * product_zone_placemarks deleteMany + */ +export type product_zone_placemarksDeleteManyArgs = { + /** + * Filter which product_zone_placemarks to delete + */ + where?: Prisma.product_zone_placemarksWhereInput + /** + * Limit how many product_zone_placemarks to delete. + */ + limit?: number +} + +/** + * product_zone_placemarks without action + */ +export type product_zone_placemarksDefaultArgs = { + /** + * Select specific fields to fetch from the product_zone_placemarks + */ + select?: Prisma.product_zone_placemarksSelect | null + /** + * Omit specific fields from the product_zone_placemarks + */ + omit?: Prisma.product_zone_placemarksOmit | null +} diff --git a/prisma/generated/mariadb/models/project.ts b/prisma/generated/mariadb/models/project.ts new file mode 100644 index 0000000..07fd0e9 --- /dev/null +++ b/prisma/generated/mariadb/models/project.ts @@ -0,0 +1,1143 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `project` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model project + * + */ +export type projectModel = runtime.Types.Result.DefaultSelection + +export type AggregateProject = { + _count: ProjectCountAggregateOutputType | null + _avg: ProjectAvgAggregateOutputType | null + _sum: ProjectSumAggregateOutputType | null + _min: ProjectMinAggregateOutputType | null + _max: ProjectMaxAggregateOutputType | null +} + +export type ProjectAvgAggregateOutputType = { + id: number | null + date_start: number | null + date_end: number | null +} + +export type ProjectSumAggregateOutputType = { + id: number | null + date_start: bigint | null + date_end: bigint | null +} + +export type ProjectMinAggregateOutputType = { + id: number | null + name: string | null + status: string | null + desc: string | null + date_start: bigint | null + date_end: bigint | null + manager_name: string | null +} + +export type ProjectMaxAggregateOutputType = { + id: number | null + name: string | null + status: string | null + desc: string | null + date_start: bigint | null + date_end: bigint | null + manager_name: string | null +} + +export type ProjectCountAggregateOutputType = { + id: number + name: number + status: number + desc: number + date_start: number + date_end: number + manager_name: number + _all: number +} + + +export type ProjectAvgAggregateInputType = { + id?: true + date_start?: true + date_end?: true +} + +export type ProjectSumAggregateInputType = { + id?: true + date_start?: true + date_end?: true +} + +export type ProjectMinAggregateInputType = { + id?: true + name?: true + status?: true + desc?: true + date_start?: true + date_end?: true + manager_name?: true +} + +export type ProjectMaxAggregateInputType = { + id?: true + name?: true + status?: true + desc?: true + date_start?: true + date_end?: true + manager_name?: true +} + +export type ProjectCountAggregateInputType = { + id?: true + name?: true + status?: true + desc?: true + date_start?: true + date_end?: true + manager_name?: true + _all?: true +} + +export type ProjectAggregateArgs = { + /** + * Filter which project to aggregate. + */ + where?: Prisma.projectWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of projects to fetch. + */ + orderBy?: Prisma.projectOrderByWithRelationInput | Prisma.projectOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.projectWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` projects from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` projects. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned projects + **/ + _count?: true | ProjectCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ProjectAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ProjectSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ProjectMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ProjectMaxAggregateInputType +} + +export type GetProjectAggregateType = { + [P in keyof T & keyof AggregateProject]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type projectGroupByArgs = { + where?: Prisma.projectWhereInput + orderBy?: Prisma.projectOrderByWithAggregationInput | Prisma.projectOrderByWithAggregationInput[] + by: Prisma.ProjectScalarFieldEnum[] | Prisma.ProjectScalarFieldEnum + having?: Prisma.projectScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ProjectCountAggregateInputType | true + _avg?: ProjectAvgAggregateInputType + _sum?: ProjectSumAggregateInputType + _min?: ProjectMinAggregateInputType + _max?: ProjectMaxAggregateInputType +} + +export type ProjectGroupByOutputType = { + id: number + name: string + status: string + desc: string | null + date_start: bigint | null + date_end: bigint | null + manager_name: string | null + _count: ProjectCountAggregateOutputType | null + _avg: ProjectAvgAggregateOutputType | null + _sum: ProjectSumAggregateOutputType | null + _min: ProjectMinAggregateOutputType | null + _max: ProjectMaxAggregateOutputType | null +} + +type GetProjectGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ProjectGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type projectWhereInput = { + AND?: Prisma.projectWhereInput | Prisma.projectWhereInput[] + OR?: Prisma.projectWhereInput[] + NOT?: Prisma.projectWhereInput | Prisma.projectWhereInput[] + id?: Prisma.IntFilter<"project"> | number + name?: Prisma.StringFilter<"project"> | string + status?: Prisma.StringFilter<"project"> | string + desc?: Prisma.StringNullableFilter<"project"> | string | null + date_start?: Prisma.BigIntNullableFilter<"project"> | bigint | number | null + date_end?: Prisma.BigIntNullableFilter<"project"> | bigint | number | null + manager_name?: Prisma.StringNullableFilter<"project"> | string | null +} + +export type projectOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + status?: Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + date_start?: Prisma.SortOrderInput | Prisma.SortOrder + date_end?: Prisma.SortOrderInput | Prisma.SortOrder + manager_name?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.projectOrderByRelevanceInput +} + +export type projectWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.projectWhereInput | Prisma.projectWhereInput[] + OR?: Prisma.projectWhereInput[] + NOT?: Prisma.projectWhereInput | Prisma.projectWhereInput[] + name?: Prisma.StringFilter<"project"> | string + status?: Prisma.StringFilter<"project"> | string + desc?: Prisma.StringNullableFilter<"project"> | string | null + date_start?: Prisma.BigIntNullableFilter<"project"> | bigint | number | null + date_end?: Prisma.BigIntNullableFilter<"project"> | bigint | number | null + manager_name?: Prisma.StringNullableFilter<"project"> | string | null +}, "id"> + +export type projectOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + status?: Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + date_start?: Prisma.SortOrderInput | Prisma.SortOrder + date_end?: Prisma.SortOrderInput | Prisma.SortOrder + manager_name?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.projectCountOrderByAggregateInput + _avg?: Prisma.projectAvgOrderByAggregateInput + _max?: Prisma.projectMaxOrderByAggregateInput + _min?: Prisma.projectMinOrderByAggregateInput + _sum?: Prisma.projectSumOrderByAggregateInput +} + +export type projectScalarWhereWithAggregatesInput = { + AND?: Prisma.projectScalarWhereWithAggregatesInput | Prisma.projectScalarWhereWithAggregatesInput[] + OR?: Prisma.projectScalarWhereWithAggregatesInput[] + NOT?: Prisma.projectScalarWhereWithAggregatesInput | Prisma.projectScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"project"> | number + name?: Prisma.StringWithAggregatesFilter<"project"> | string + status?: Prisma.StringWithAggregatesFilter<"project"> | string + desc?: Prisma.StringNullableWithAggregatesFilter<"project"> | string | null + date_start?: Prisma.BigIntNullableWithAggregatesFilter<"project"> | bigint | number | null + date_end?: Prisma.BigIntNullableWithAggregatesFilter<"project"> | bigint | number | null + manager_name?: Prisma.StringNullableWithAggregatesFilter<"project"> | string | null +} + +export type projectCreateInput = { + name: string + status: string + desc?: string | null + date_start?: bigint | number | null + date_end?: bigint | number | null + manager_name?: string | null +} + +export type projectUncheckedCreateInput = { + id?: number + name: string + status: string + desc?: string | null + date_start?: bigint | number | null + date_end?: bigint | number | null + manager_name?: string | null +} + +export type projectUpdateInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_start?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_end?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + manager_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type projectUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_start?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_end?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + manager_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type projectCreateManyInput = { + id?: number + name: string + status: string + desc?: string | null + date_start?: bigint | number | null + date_end?: bigint | number | null + manager_name?: string | null +} + +export type projectUpdateManyMutationInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_start?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_end?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + manager_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type projectUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_start?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_end?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + manager_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type projectOrderByRelevanceInput = { + fields: Prisma.projectOrderByRelevanceFieldEnum | Prisma.projectOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type projectCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + status?: Prisma.SortOrder + desc?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder + manager_name?: Prisma.SortOrder +} + +export type projectAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder +} + +export type projectMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + status?: Prisma.SortOrder + desc?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder + manager_name?: Prisma.SortOrder +} + +export type projectMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + status?: Prisma.SortOrder + desc?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder + manager_name?: Prisma.SortOrder +} + +export type projectSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder +} + + + +export type projectSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + status?: boolean + desc?: boolean + date_start?: boolean + date_end?: boolean + manager_name?: boolean +}, ExtArgs["result"]["project"]> + + + +export type projectSelectScalar = { + id?: boolean + name?: boolean + status?: boolean + desc?: boolean + date_start?: boolean + date_end?: boolean + manager_name?: boolean +} + +export type projectOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "status" | "desc" | "date_start" | "date_end" | "manager_name", ExtArgs["result"]["project"]> + +export type $projectPayload = { + name: "project" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name: string + status: string + desc: string | null + date_start: bigint | null + date_end: bigint | null + manager_name: string | null + }, ExtArgs["result"]["project"]> + composites: {} +} + +export type projectGetPayload = runtime.Types.Result.GetResult + +export type projectCountArgs = + Omit & { + select?: ProjectCountAggregateInputType | true + } + +export interface projectDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['project'], meta: { name: 'project' } } + /** + * Find zero or one Project that matches the filter. + * @param {projectFindUniqueArgs} args - Arguments to find a Project + * @example + * // Get one Project + * const project = await prisma.project.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__projectClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Project that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {projectFindUniqueOrThrowArgs} args - Arguments to find a Project + * @example + * // Get one Project + * const project = await prisma.project.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__projectClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {projectFindFirstArgs} args - Arguments to find a Project + * @example + * // Get one Project + * const project = await prisma.project.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__projectClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {projectFindFirstOrThrowArgs} args - Arguments to find a Project + * @example + * // Get one Project + * const project = await prisma.project.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__projectClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Projects that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {projectFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Projects + * const projects = await prisma.project.findMany() + * + * // Get first 10 Projects + * const projects = await prisma.project.findMany({ take: 10 }) + * + * // Only select the `id` + * const projectWithIdOnly = await prisma.project.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Project. + * @param {projectCreateArgs} args - Arguments to create a Project. + * @example + * // Create one Project + * const Project = await prisma.project.create({ + * data: { + * // ... data to create a Project + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__projectClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Projects. + * @param {projectCreateManyArgs} args - Arguments to create many Projects. + * @example + * // Create many Projects + * const project = await prisma.project.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Project. + * @param {projectDeleteArgs} args - Arguments to delete one Project. + * @example + * // Delete one Project + * const Project = await prisma.project.delete({ + * where: { + * // ... filter to delete one Project + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__projectClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Project. + * @param {projectUpdateArgs} args - Arguments to update one Project. + * @example + * // Update one Project + * const project = await prisma.project.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__projectClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Projects. + * @param {projectDeleteManyArgs} args - Arguments to filter Projects to delete. + * @example + * // Delete a few Projects + * const { count } = await prisma.project.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Projects. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {projectUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Projects + * const project = await prisma.project.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Project. + * @param {projectUpsertArgs} args - Arguments to update or create a Project. + * @example + * // Update or create a Project + * const project = await prisma.project.upsert({ + * create: { + * // ... data to create a Project + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Project we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__projectClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Projects. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {projectCountArgs} args - Arguments to filter Projects to count. + * @example + * // Count the number of Projects + * const count = await prisma.project.count({ + * where: { + * // ... the filter for the Projects we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Project. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Project. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {projectGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends projectGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: projectGroupByArgs['orderBy'] } + : { orderBy?: projectGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetProjectGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the project model + */ +readonly fields: projectFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for project. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__projectClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + + + + +/** + * Fields of the project model + */ +export interface projectFieldRefs { + readonly id: Prisma.FieldRef<"project", 'Int'> + readonly name: Prisma.FieldRef<"project", 'String'> + readonly status: Prisma.FieldRef<"project", 'String'> + readonly desc: Prisma.FieldRef<"project", 'String'> + readonly date_start: Prisma.FieldRef<"project", 'BigInt'> + readonly date_end: Prisma.FieldRef<"project", 'BigInt'> + readonly manager_name: Prisma.FieldRef<"project", 'String'> +} + + +// Custom InputTypes +/** + * project findUnique + */ +export type projectFindUniqueArgs = { + /** + * Select specific fields to fetch from the project + */ + select?: Prisma.projectSelect | null + /** + * Omit specific fields from the project + */ + omit?: Prisma.projectOmit | null + /** + * Filter, which project to fetch. + */ + where: Prisma.projectWhereUniqueInput +} + +/** + * project findUniqueOrThrow + */ +export type projectFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the project + */ + select?: Prisma.projectSelect | null + /** + * Omit specific fields from the project + */ + omit?: Prisma.projectOmit | null + /** + * Filter, which project to fetch. + */ + where: Prisma.projectWhereUniqueInput +} + +/** + * project findFirst + */ +export type projectFindFirstArgs = { + /** + * Select specific fields to fetch from the project + */ + select?: Prisma.projectSelect | null + /** + * Omit specific fields from the project + */ + omit?: Prisma.projectOmit | null + /** + * Filter, which project to fetch. + */ + where?: Prisma.projectWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of projects to fetch. + */ + orderBy?: Prisma.projectOrderByWithRelationInput | Prisma.projectOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for projects. + */ + cursor?: Prisma.projectWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` projects from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` projects. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of projects. + */ + distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] +} + +/** + * project findFirstOrThrow + */ +export type projectFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the project + */ + select?: Prisma.projectSelect | null + /** + * Omit specific fields from the project + */ + omit?: Prisma.projectOmit | null + /** + * Filter, which project to fetch. + */ + where?: Prisma.projectWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of projects to fetch. + */ + orderBy?: Prisma.projectOrderByWithRelationInput | Prisma.projectOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for projects. + */ + cursor?: Prisma.projectWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` projects from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` projects. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of projects. + */ + distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] +} + +/** + * project findMany + */ +export type projectFindManyArgs = { + /** + * Select specific fields to fetch from the project + */ + select?: Prisma.projectSelect | null + /** + * Omit specific fields from the project + */ + omit?: Prisma.projectOmit | null + /** + * Filter, which projects to fetch. + */ + where?: Prisma.projectWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of projects to fetch. + */ + orderBy?: Prisma.projectOrderByWithRelationInput | Prisma.projectOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing projects. + */ + cursor?: Prisma.projectWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` projects from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` projects. + */ + skip?: number + distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] +} + +/** + * project create + */ +export type projectCreateArgs = { + /** + * Select specific fields to fetch from the project + */ + select?: Prisma.projectSelect | null + /** + * Omit specific fields from the project + */ + omit?: Prisma.projectOmit | null + /** + * The data needed to create a project. + */ + data: Prisma.XOR +} + +/** + * project createMany + */ +export type projectCreateManyArgs = { + /** + * The data used to create many projects. + */ + data: Prisma.projectCreateManyInput | Prisma.projectCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * project update + */ +export type projectUpdateArgs = { + /** + * Select specific fields to fetch from the project + */ + select?: Prisma.projectSelect | null + /** + * Omit specific fields from the project + */ + omit?: Prisma.projectOmit | null + /** + * The data needed to update a project. + */ + data: Prisma.XOR + /** + * Choose, which project to update. + */ + where: Prisma.projectWhereUniqueInput +} + +/** + * project updateMany + */ +export type projectUpdateManyArgs = { + /** + * The data used to update projects. + */ + data: Prisma.XOR + /** + * Filter which projects to update + */ + where?: Prisma.projectWhereInput + /** + * Limit how many projects to update. + */ + limit?: number +} + +/** + * project upsert + */ +export type projectUpsertArgs = { + /** + * Select specific fields to fetch from the project + */ + select?: Prisma.projectSelect | null + /** + * Omit specific fields from the project + */ + omit?: Prisma.projectOmit | null + /** + * The filter to search for the project to update in case it exists. + */ + where: Prisma.projectWhereUniqueInput + /** + * In case the project found by the `where` argument doesn't exist, create a new project with this data. + */ + create: Prisma.XOR + /** + * In case the project was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * project delete + */ +export type projectDeleteArgs = { + /** + * Select specific fields to fetch from the project + */ + select?: Prisma.projectSelect | null + /** + * Omit specific fields from the project + */ + omit?: Prisma.projectOmit | null + /** + * Filter which project to delete. + */ + where: Prisma.projectWhereUniqueInput +} + +/** + * project deleteMany + */ +export type projectDeleteManyArgs = { + /** + * Filter which projects to delete + */ + where?: Prisma.projectWhereInput + /** + * Limit how many projects to delete. + */ + limit?: number +} + +/** + * project without action + */ +export type projectDefaultArgs = { + /** + * Select specific fields to fetch from the project + */ + select?: Prisma.projectSelect | null + /** + * Omit specific fields from the project + */ + omit?: Prisma.projectOmit | null +} diff --git a/prisma/generated/mariadb/models/project_cmd.ts b/prisma/generated/mariadb/models/project_cmd.ts new file mode 100644 index 0000000..3a92d3c --- /dev/null +++ b/prisma/generated/mariadb/models/project_cmd.ts @@ -0,0 +1,1149 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `project_cmd` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model project_cmd + * + */ +export type project_cmdModel = runtime.Types.Result.DefaultSelection + +export type AggregateProject_cmd = { + _count: Project_cmdCountAggregateOutputType | null + _avg: Project_cmdAvgAggregateOutputType | null + _sum: Project_cmdSumAggregateOutputType | null + _min: Project_cmdMinAggregateOutputType | null + _max: Project_cmdMaxAggregateOutputType | null +} + +export type Project_cmdAvgAggregateOutputType = { + id: number | null + project_id: number | null + date: number | null + staff_id: number | null +} + +export type Project_cmdSumAggregateOutputType = { + id: number | null + project_id: number | null + date: bigint | null + staff_id: number | null +} + +export type Project_cmdMinAggregateOutputType = { + id: number | null + project_id: number | null + date: bigint | null + vendeur: string | null + no_cmd: string | null + po: string | null + staff_id: number | null +} + +export type Project_cmdMaxAggregateOutputType = { + id: number | null + project_id: number | null + date: bigint | null + vendeur: string | null + no_cmd: string | null + po: string | null + staff_id: number | null +} + +export type Project_cmdCountAggregateOutputType = { + id: number + project_id: number + date: number + vendeur: number + no_cmd: number + po: number + staff_id: number + _all: number +} + + +export type Project_cmdAvgAggregateInputType = { + id?: true + project_id?: true + date?: true + staff_id?: true +} + +export type Project_cmdSumAggregateInputType = { + id?: true + project_id?: true + date?: true + staff_id?: true +} + +export type Project_cmdMinAggregateInputType = { + id?: true + project_id?: true + date?: true + vendeur?: true + no_cmd?: true + po?: true + staff_id?: true +} + +export type Project_cmdMaxAggregateInputType = { + id?: true + project_id?: true + date?: true + vendeur?: true + no_cmd?: true + po?: true + staff_id?: true +} + +export type Project_cmdCountAggregateInputType = { + id?: true + project_id?: true + date?: true + vendeur?: true + no_cmd?: true + po?: true + staff_id?: true + _all?: true +} + +export type Project_cmdAggregateArgs = { + /** + * Filter which project_cmd to aggregate. + */ + where?: Prisma.project_cmdWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_cmds to fetch. + */ + orderBy?: Prisma.project_cmdOrderByWithRelationInput | Prisma.project_cmdOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.project_cmdWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_cmds 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` project_cmds. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned project_cmds + **/ + _count?: true | Project_cmdCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Project_cmdAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Project_cmdSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Project_cmdMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Project_cmdMaxAggregateInputType +} + +export type GetProject_cmdAggregateType = { + [P in keyof T & keyof AggregateProject_cmd]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type project_cmdGroupByArgs = { + where?: Prisma.project_cmdWhereInput + orderBy?: Prisma.project_cmdOrderByWithAggregationInput | Prisma.project_cmdOrderByWithAggregationInput[] + by: Prisma.Project_cmdScalarFieldEnum[] | Prisma.Project_cmdScalarFieldEnum + having?: Prisma.project_cmdScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Project_cmdCountAggregateInputType | true + _avg?: Project_cmdAvgAggregateInputType + _sum?: Project_cmdSumAggregateInputType + _min?: Project_cmdMinAggregateInputType + _max?: Project_cmdMaxAggregateInputType +} + +export type Project_cmdGroupByOutputType = { + id: number + project_id: number + date: bigint + vendeur: string | null + no_cmd: string | null + po: string | null + staff_id: number + _count: Project_cmdCountAggregateOutputType | null + _avg: Project_cmdAvgAggregateOutputType | null + _sum: Project_cmdSumAggregateOutputType | null + _min: Project_cmdMinAggregateOutputType | null + _max: Project_cmdMaxAggregateOutputType | null +} + +type GetProject_cmdGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Project_cmdGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type project_cmdWhereInput = { + AND?: Prisma.project_cmdWhereInput | Prisma.project_cmdWhereInput[] + OR?: Prisma.project_cmdWhereInput[] + NOT?: Prisma.project_cmdWhereInput | Prisma.project_cmdWhereInput[] + id?: Prisma.IntFilter<"project_cmd"> | number + project_id?: Prisma.IntFilter<"project_cmd"> | number + date?: Prisma.BigIntFilter<"project_cmd"> | bigint | number + vendeur?: Prisma.StringNullableFilter<"project_cmd"> | string | null + no_cmd?: Prisma.StringNullableFilter<"project_cmd"> | string | null + po?: Prisma.StringNullableFilter<"project_cmd"> | string | null + staff_id?: Prisma.IntFilter<"project_cmd"> | number +} + +export type project_cmdOrderByWithRelationInput = { + id?: Prisma.SortOrder + project_id?: Prisma.SortOrder + date?: Prisma.SortOrder + vendeur?: Prisma.SortOrderInput | Prisma.SortOrder + no_cmd?: Prisma.SortOrderInput | Prisma.SortOrder + po?: Prisma.SortOrderInput | Prisma.SortOrder + staff_id?: Prisma.SortOrder + _relevance?: Prisma.project_cmdOrderByRelevanceInput +} + +export type project_cmdWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.project_cmdWhereInput | Prisma.project_cmdWhereInput[] + OR?: Prisma.project_cmdWhereInput[] + NOT?: Prisma.project_cmdWhereInput | Prisma.project_cmdWhereInput[] + project_id?: Prisma.IntFilter<"project_cmd"> | number + date?: Prisma.BigIntFilter<"project_cmd"> | bigint | number + vendeur?: Prisma.StringNullableFilter<"project_cmd"> | string | null + no_cmd?: Prisma.StringNullableFilter<"project_cmd"> | string | null + po?: Prisma.StringNullableFilter<"project_cmd"> | string | null + staff_id?: Prisma.IntFilter<"project_cmd"> | number +}, "id"> + +export type project_cmdOrderByWithAggregationInput = { + id?: Prisma.SortOrder + project_id?: Prisma.SortOrder + date?: Prisma.SortOrder + vendeur?: Prisma.SortOrderInput | Prisma.SortOrder + no_cmd?: Prisma.SortOrderInput | Prisma.SortOrder + po?: Prisma.SortOrderInput | Prisma.SortOrder + staff_id?: Prisma.SortOrder + _count?: Prisma.project_cmdCountOrderByAggregateInput + _avg?: Prisma.project_cmdAvgOrderByAggregateInput + _max?: Prisma.project_cmdMaxOrderByAggregateInput + _min?: Prisma.project_cmdMinOrderByAggregateInput + _sum?: Prisma.project_cmdSumOrderByAggregateInput +} + +export type project_cmdScalarWhereWithAggregatesInput = { + AND?: Prisma.project_cmdScalarWhereWithAggregatesInput | Prisma.project_cmdScalarWhereWithAggregatesInput[] + OR?: Prisma.project_cmdScalarWhereWithAggregatesInput[] + NOT?: Prisma.project_cmdScalarWhereWithAggregatesInput | Prisma.project_cmdScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"project_cmd"> | number + project_id?: Prisma.IntWithAggregatesFilter<"project_cmd"> | number + date?: Prisma.BigIntWithAggregatesFilter<"project_cmd"> | bigint | number + vendeur?: Prisma.StringNullableWithAggregatesFilter<"project_cmd"> | string | null + no_cmd?: Prisma.StringNullableWithAggregatesFilter<"project_cmd"> | string | null + po?: Prisma.StringNullableWithAggregatesFilter<"project_cmd"> | string | null + staff_id?: Prisma.IntWithAggregatesFilter<"project_cmd"> | number +} + +export type project_cmdCreateInput = { + project_id: number + date: bigint | number + vendeur?: string | null + no_cmd?: string | null + po?: string | null + staff_id?: number +} + +export type project_cmdUncheckedCreateInput = { + id?: number + project_id: number + date: bigint | number + vendeur?: string | null + no_cmd?: string | null + po?: string | null + staff_id?: number +} + +export type project_cmdUpdateInput = { + project_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + vendeur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + no_cmd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + staff_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type project_cmdUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + project_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + vendeur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + no_cmd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + staff_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type project_cmdCreateManyInput = { + id?: number + project_id: number + date: bigint | number + vendeur?: string | null + no_cmd?: string | null + po?: string | null + staff_id?: number +} + +export type project_cmdUpdateManyMutationInput = { + project_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + vendeur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + no_cmd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + staff_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type project_cmdUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + project_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + vendeur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + no_cmd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + staff_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type project_cmdOrderByRelevanceInput = { + fields: Prisma.project_cmdOrderByRelevanceFieldEnum | Prisma.project_cmdOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type project_cmdCountOrderByAggregateInput = { + id?: Prisma.SortOrder + project_id?: Prisma.SortOrder + date?: Prisma.SortOrder + vendeur?: Prisma.SortOrder + no_cmd?: Prisma.SortOrder + po?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type project_cmdAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + project_id?: Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type project_cmdMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + project_id?: Prisma.SortOrder + date?: Prisma.SortOrder + vendeur?: Prisma.SortOrder + no_cmd?: Prisma.SortOrder + po?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type project_cmdMinOrderByAggregateInput = { + id?: Prisma.SortOrder + project_id?: Prisma.SortOrder + date?: Prisma.SortOrder + vendeur?: Prisma.SortOrder + no_cmd?: Prisma.SortOrder + po?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type project_cmdSumOrderByAggregateInput = { + id?: Prisma.SortOrder + project_id?: Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + + + +export type project_cmdSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + project_id?: boolean + date?: boolean + vendeur?: boolean + no_cmd?: boolean + po?: boolean + staff_id?: boolean +}, ExtArgs["result"]["project_cmd"]> + + + +export type project_cmdSelectScalar = { + id?: boolean + project_id?: boolean + date?: boolean + vendeur?: boolean + no_cmd?: boolean + po?: boolean + staff_id?: boolean +} + +export type project_cmdOmit = runtime.Types.Extensions.GetOmit<"id" | "project_id" | "date" | "vendeur" | "no_cmd" | "po" | "staff_id", ExtArgs["result"]["project_cmd"]> + +export type $project_cmdPayload = { + name: "project_cmd" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + project_id: number + date: bigint + vendeur: string | null + no_cmd: string | null + po: string | null + staff_id: number + }, ExtArgs["result"]["project_cmd"]> + composites: {} +} + +export type project_cmdGetPayload = runtime.Types.Result.GetResult + +export type project_cmdCountArgs = + Omit & { + select?: Project_cmdCountAggregateInputType | true + } + +export interface project_cmdDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['project_cmd'], meta: { name: 'project_cmd' } } + /** + * Find zero or one Project_cmd that matches the filter. + * @param {project_cmdFindUniqueArgs} args - Arguments to find a Project_cmd + * @example + * // Get one Project_cmd + * const project_cmd = await prisma.project_cmd.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__project_cmdClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Project_cmd that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {project_cmdFindUniqueOrThrowArgs} args - Arguments to find a Project_cmd + * @example + * // Get one Project_cmd + * const project_cmd = await prisma.project_cmd.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__project_cmdClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project_cmd 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 {project_cmdFindFirstArgs} args - Arguments to find a Project_cmd + * @example + * // Get one Project_cmd + * const project_cmd = await prisma.project_cmd.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__project_cmdClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project_cmd 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 {project_cmdFindFirstOrThrowArgs} args - Arguments to find a Project_cmd + * @example + * // Get one Project_cmd + * const project_cmd = await prisma.project_cmd.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__project_cmdClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Project_cmds 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 {project_cmdFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Project_cmds + * const project_cmds = await prisma.project_cmd.findMany() + * + * // Get first 10 Project_cmds + * const project_cmds = await prisma.project_cmd.findMany({ take: 10 }) + * + * // Only select the `id` + * const project_cmdWithIdOnly = await prisma.project_cmd.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Project_cmd. + * @param {project_cmdCreateArgs} args - Arguments to create a Project_cmd. + * @example + * // Create one Project_cmd + * const Project_cmd = await prisma.project_cmd.create({ + * data: { + * // ... data to create a Project_cmd + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__project_cmdClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Project_cmds. + * @param {project_cmdCreateManyArgs} args - Arguments to create many Project_cmds. + * @example + * // Create many Project_cmds + * const project_cmd = await prisma.project_cmd.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Project_cmd. + * @param {project_cmdDeleteArgs} args - Arguments to delete one Project_cmd. + * @example + * // Delete one Project_cmd + * const Project_cmd = await prisma.project_cmd.delete({ + * where: { + * // ... filter to delete one Project_cmd + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__project_cmdClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Project_cmd. + * @param {project_cmdUpdateArgs} args - Arguments to update one Project_cmd. + * @example + * // Update one Project_cmd + * const project_cmd = await prisma.project_cmd.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__project_cmdClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Project_cmds. + * @param {project_cmdDeleteManyArgs} args - Arguments to filter Project_cmds to delete. + * @example + * // Delete a few Project_cmds + * const { count } = await prisma.project_cmd.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Project_cmds. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_cmdUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Project_cmds + * const project_cmd = await prisma.project_cmd.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Project_cmd. + * @param {project_cmdUpsertArgs} args - Arguments to update or create a Project_cmd. + * @example + * // Update or create a Project_cmd + * const project_cmd = await prisma.project_cmd.upsert({ + * create: { + * // ... data to create a Project_cmd + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Project_cmd we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__project_cmdClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Project_cmds. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_cmdCountArgs} args - Arguments to filter Project_cmds to count. + * @example + * // Count the number of Project_cmds + * const count = await prisma.project_cmd.count({ + * where: { + * // ... the filter for the Project_cmds we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Project_cmd. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Project_cmdAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Project_cmd. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_cmdGroupByArgs} 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 project_cmdGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: project_cmdGroupByArgs['orderBy'] } + : { orderBy?: project_cmdGroupByArgs['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 ? GetProject_cmdGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the project_cmd model + */ +readonly fields: project_cmdFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for project_cmd. + * 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__project_cmdClient 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 project_cmd model + */ +export interface project_cmdFieldRefs { + readonly id: Prisma.FieldRef<"project_cmd", 'Int'> + readonly project_id: Prisma.FieldRef<"project_cmd", 'Int'> + readonly date: Prisma.FieldRef<"project_cmd", 'BigInt'> + readonly vendeur: Prisma.FieldRef<"project_cmd", 'String'> + readonly no_cmd: Prisma.FieldRef<"project_cmd", 'String'> + readonly po: Prisma.FieldRef<"project_cmd", 'String'> + readonly staff_id: Prisma.FieldRef<"project_cmd", 'Int'> +} + + +// Custom InputTypes +/** + * project_cmd findUnique + */ +export type project_cmdFindUniqueArgs = { + /** + * Select specific fields to fetch from the project_cmd + */ + select?: Prisma.project_cmdSelect | null + /** + * Omit specific fields from the project_cmd + */ + omit?: Prisma.project_cmdOmit | null + /** + * Filter, which project_cmd to fetch. + */ + where: Prisma.project_cmdWhereUniqueInput +} + +/** + * project_cmd findUniqueOrThrow + */ +export type project_cmdFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the project_cmd + */ + select?: Prisma.project_cmdSelect | null + /** + * Omit specific fields from the project_cmd + */ + omit?: Prisma.project_cmdOmit | null + /** + * Filter, which project_cmd to fetch. + */ + where: Prisma.project_cmdWhereUniqueInput +} + +/** + * project_cmd findFirst + */ +export type project_cmdFindFirstArgs = { + /** + * Select specific fields to fetch from the project_cmd + */ + select?: Prisma.project_cmdSelect | null + /** + * Omit specific fields from the project_cmd + */ + omit?: Prisma.project_cmdOmit | null + /** + * Filter, which project_cmd to fetch. + */ + where?: Prisma.project_cmdWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_cmds to fetch. + */ + orderBy?: Prisma.project_cmdOrderByWithRelationInput | Prisma.project_cmdOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for project_cmds. + */ + cursor?: Prisma.project_cmdWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_cmds 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` project_cmds. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of project_cmds. + */ + distinct?: Prisma.Project_cmdScalarFieldEnum | Prisma.Project_cmdScalarFieldEnum[] +} + +/** + * project_cmd findFirstOrThrow + */ +export type project_cmdFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the project_cmd + */ + select?: Prisma.project_cmdSelect | null + /** + * Omit specific fields from the project_cmd + */ + omit?: Prisma.project_cmdOmit | null + /** + * Filter, which project_cmd to fetch. + */ + where?: Prisma.project_cmdWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_cmds to fetch. + */ + orderBy?: Prisma.project_cmdOrderByWithRelationInput | Prisma.project_cmdOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for project_cmds. + */ + cursor?: Prisma.project_cmdWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_cmds 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` project_cmds. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of project_cmds. + */ + distinct?: Prisma.Project_cmdScalarFieldEnum | Prisma.Project_cmdScalarFieldEnum[] +} + +/** + * project_cmd findMany + */ +export type project_cmdFindManyArgs = { + /** + * Select specific fields to fetch from the project_cmd + */ + select?: Prisma.project_cmdSelect | null + /** + * Omit specific fields from the project_cmd + */ + omit?: Prisma.project_cmdOmit | null + /** + * Filter, which project_cmds to fetch. + */ + where?: Prisma.project_cmdWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_cmds to fetch. + */ + orderBy?: Prisma.project_cmdOrderByWithRelationInput | Prisma.project_cmdOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing project_cmds. + */ + cursor?: Prisma.project_cmdWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_cmds 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` project_cmds. + */ + skip?: number + distinct?: Prisma.Project_cmdScalarFieldEnum | Prisma.Project_cmdScalarFieldEnum[] +} + +/** + * project_cmd create + */ +export type project_cmdCreateArgs = { + /** + * Select specific fields to fetch from the project_cmd + */ + select?: Prisma.project_cmdSelect | null + /** + * Omit specific fields from the project_cmd + */ + omit?: Prisma.project_cmdOmit | null + /** + * The data needed to create a project_cmd. + */ + data: Prisma.XOR +} + +/** + * project_cmd createMany + */ +export type project_cmdCreateManyArgs = { + /** + * The data used to create many project_cmds. + */ + data: Prisma.project_cmdCreateManyInput | Prisma.project_cmdCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * project_cmd update + */ +export type project_cmdUpdateArgs = { + /** + * Select specific fields to fetch from the project_cmd + */ + select?: Prisma.project_cmdSelect | null + /** + * Omit specific fields from the project_cmd + */ + omit?: Prisma.project_cmdOmit | null + /** + * The data needed to update a project_cmd. + */ + data: Prisma.XOR + /** + * Choose, which project_cmd to update. + */ + where: Prisma.project_cmdWhereUniqueInput +} + +/** + * project_cmd updateMany + */ +export type project_cmdUpdateManyArgs = { + /** + * The data used to update project_cmds. + */ + data: Prisma.XOR + /** + * Filter which project_cmds to update + */ + where?: Prisma.project_cmdWhereInput + /** + * Limit how many project_cmds to update. + */ + limit?: number +} + +/** + * project_cmd upsert + */ +export type project_cmdUpsertArgs = { + /** + * Select specific fields to fetch from the project_cmd + */ + select?: Prisma.project_cmdSelect | null + /** + * Omit specific fields from the project_cmd + */ + omit?: Prisma.project_cmdOmit | null + /** + * The filter to search for the project_cmd to update in case it exists. + */ + where: Prisma.project_cmdWhereUniqueInput + /** + * In case the project_cmd found by the `where` argument doesn't exist, create a new project_cmd with this data. + */ + create: Prisma.XOR + /** + * In case the project_cmd was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * project_cmd delete + */ +export type project_cmdDeleteArgs = { + /** + * Select specific fields to fetch from the project_cmd + */ + select?: Prisma.project_cmdSelect | null + /** + * Omit specific fields from the project_cmd + */ + omit?: Prisma.project_cmdOmit | null + /** + * Filter which project_cmd to delete. + */ + where: Prisma.project_cmdWhereUniqueInput +} + +/** + * project_cmd deleteMany + */ +export type project_cmdDeleteManyArgs = { + /** + * Filter which project_cmds to delete + */ + where?: Prisma.project_cmdWhereInput + /** + * Limit how many project_cmds to delete. + */ + limit?: number +} + +/** + * project_cmd without action + */ +export type project_cmdDefaultArgs = { + /** + * Select specific fields to fetch from the project_cmd + */ + select?: Prisma.project_cmdSelect | null + /** + * Omit specific fields from the project_cmd + */ + omit?: Prisma.project_cmdOmit | null +} diff --git a/prisma/generated/mariadb/models/project_cmd_item.ts b/prisma/generated/mariadb/models/project_cmd_item.ts new file mode 100644 index 0000000..804a1d0 --- /dev/null +++ b/prisma/generated/mariadb/models/project_cmd_item.ts @@ -0,0 +1,1329 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `project_cmd_item` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model project_cmd_item + * + */ +export type project_cmd_itemModel = runtime.Types.Result.DefaultSelection + +export type AggregateProject_cmd_item = { + _count: Project_cmd_itemCountAggregateOutputType | null + _avg: Project_cmd_itemAvgAggregateOutputType | null + _sum: Project_cmd_itemSumAggregateOutputType | null + _min: Project_cmd_itemMinAggregateOutputType | null + _max: Project_cmd_itemMaxAggregateOutputType | null +} + +export type Project_cmd_itemAvgAggregateOutputType = { + id: number | null + cmd_id: number | null + product_id: number | null + qte: number | null + price: number | null + recu: number | null + qte_recu: number | null + status: number | null +} + +export type Project_cmd_itemSumAggregateOutputType = { + id: number | null + cmd_id: number | null + product_id: number | null + qte: number | null + price: number | null + recu: number | null + qte_recu: number | null + status: number | null +} + +export type Project_cmd_itemMinAggregateOutputType = { + id: number | null + cmd_id: number | null + product_id: number | null + desc: string | null + qte: number | null + price: number | null + usd: boolean | null + recu: number | null + qte_recu: number | null + date_recu: string | null + comment: string | null + eta: string | null + status: number | null +} + +export type Project_cmd_itemMaxAggregateOutputType = { + id: number | null + cmd_id: number | null + product_id: number | null + desc: string | null + qte: number | null + price: number | null + usd: boolean | null + recu: number | null + qte_recu: number | null + date_recu: string | null + comment: string | null + eta: string | null + status: number | null +} + +export type Project_cmd_itemCountAggregateOutputType = { + id: number + cmd_id: number + product_id: number + desc: number + qte: number + price: number + usd: number + recu: number + qte_recu: number + date_recu: number + comment: number + eta: number + status: number + _all: number +} + + +export type Project_cmd_itemAvgAggregateInputType = { + id?: true + cmd_id?: true + product_id?: true + qte?: true + price?: true + recu?: true + qte_recu?: true + status?: true +} + +export type Project_cmd_itemSumAggregateInputType = { + id?: true + cmd_id?: true + product_id?: true + qte?: true + price?: true + recu?: true + qte_recu?: true + status?: true +} + +export type Project_cmd_itemMinAggregateInputType = { + id?: true + cmd_id?: true + product_id?: true + desc?: true + qte?: true + price?: true + usd?: true + recu?: true + qte_recu?: true + date_recu?: true + comment?: true + eta?: true + status?: true +} + +export type Project_cmd_itemMaxAggregateInputType = { + id?: true + cmd_id?: true + product_id?: true + desc?: true + qte?: true + price?: true + usd?: true + recu?: true + qte_recu?: true + date_recu?: true + comment?: true + eta?: true + status?: true +} + +export type Project_cmd_itemCountAggregateInputType = { + id?: true + cmd_id?: true + product_id?: true + desc?: true + qte?: true + price?: true + usd?: true + recu?: true + qte_recu?: true + date_recu?: true + comment?: true + eta?: true + status?: true + _all?: true +} + +export type Project_cmd_itemAggregateArgs = { + /** + * Filter which project_cmd_item to aggregate. + */ + where?: Prisma.project_cmd_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_cmd_items to fetch. + */ + orderBy?: Prisma.project_cmd_itemOrderByWithRelationInput | Prisma.project_cmd_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.project_cmd_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_cmd_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` project_cmd_items. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned project_cmd_items + **/ + _count?: true | Project_cmd_itemCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Project_cmd_itemAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Project_cmd_itemSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Project_cmd_itemMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Project_cmd_itemMaxAggregateInputType +} + +export type GetProject_cmd_itemAggregateType = { + [P in keyof T & keyof AggregateProject_cmd_item]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type project_cmd_itemGroupByArgs = { + where?: Prisma.project_cmd_itemWhereInput + orderBy?: Prisma.project_cmd_itemOrderByWithAggregationInput | Prisma.project_cmd_itemOrderByWithAggregationInput[] + by: Prisma.Project_cmd_itemScalarFieldEnum[] | Prisma.Project_cmd_itemScalarFieldEnum + having?: Prisma.project_cmd_itemScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Project_cmd_itemCountAggregateInputType | true + _avg?: Project_cmd_itemAvgAggregateInputType + _sum?: Project_cmd_itemSumAggregateInputType + _min?: Project_cmd_itemMinAggregateInputType + _max?: Project_cmd_itemMaxAggregateInputType +} + +export type Project_cmd_itemGroupByOutputType = { + id: number + cmd_id: number + product_id: number + desc: string + qte: number + price: number + usd: boolean + recu: number + qte_recu: number + date_recu: string | null + comment: string | null + eta: string | null + status: number + _count: Project_cmd_itemCountAggregateOutputType | null + _avg: Project_cmd_itemAvgAggregateOutputType | null + _sum: Project_cmd_itemSumAggregateOutputType | null + _min: Project_cmd_itemMinAggregateOutputType | null + _max: Project_cmd_itemMaxAggregateOutputType | null +} + +type GetProject_cmd_itemGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Project_cmd_itemGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type project_cmd_itemWhereInput = { + AND?: Prisma.project_cmd_itemWhereInput | Prisma.project_cmd_itemWhereInput[] + OR?: Prisma.project_cmd_itemWhereInput[] + NOT?: Prisma.project_cmd_itemWhereInput | Prisma.project_cmd_itemWhereInput[] + id?: Prisma.IntFilter<"project_cmd_item"> | number + cmd_id?: Prisma.IntFilter<"project_cmd_item"> | number + product_id?: Prisma.IntFilter<"project_cmd_item"> | number + desc?: Prisma.StringFilter<"project_cmd_item"> | string + qte?: Prisma.FloatFilter<"project_cmd_item"> | number + price?: Prisma.FloatFilter<"project_cmd_item"> | number + usd?: Prisma.BoolFilter<"project_cmd_item"> | boolean + recu?: Prisma.IntFilter<"project_cmd_item"> | number + qte_recu?: Prisma.FloatFilter<"project_cmd_item"> | number + date_recu?: Prisma.StringNullableFilter<"project_cmd_item"> | string | null + comment?: Prisma.StringNullableFilter<"project_cmd_item"> | string | null + eta?: Prisma.StringNullableFilter<"project_cmd_item"> | string | null + status?: Prisma.IntFilter<"project_cmd_item"> | number +} + +export type project_cmd_itemOrderByWithRelationInput = { + id?: Prisma.SortOrder + cmd_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + desc?: Prisma.SortOrder + qte?: Prisma.SortOrder + price?: Prisma.SortOrder + usd?: Prisma.SortOrder + recu?: Prisma.SortOrder + qte_recu?: Prisma.SortOrder + date_recu?: Prisma.SortOrderInput | Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + eta?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrder + _relevance?: Prisma.project_cmd_itemOrderByRelevanceInput +} + +export type project_cmd_itemWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.project_cmd_itemWhereInput | Prisma.project_cmd_itemWhereInput[] + OR?: Prisma.project_cmd_itemWhereInput[] + NOT?: Prisma.project_cmd_itemWhereInput | Prisma.project_cmd_itemWhereInput[] + cmd_id?: Prisma.IntFilter<"project_cmd_item"> | number + product_id?: Prisma.IntFilter<"project_cmd_item"> | number + desc?: Prisma.StringFilter<"project_cmd_item"> | string + qte?: Prisma.FloatFilter<"project_cmd_item"> | number + price?: Prisma.FloatFilter<"project_cmd_item"> | number + usd?: Prisma.BoolFilter<"project_cmd_item"> | boolean + recu?: Prisma.IntFilter<"project_cmd_item"> | number + qte_recu?: Prisma.FloatFilter<"project_cmd_item"> | number + date_recu?: Prisma.StringNullableFilter<"project_cmd_item"> | string | null + comment?: Prisma.StringNullableFilter<"project_cmd_item"> | string | null + eta?: Prisma.StringNullableFilter<"project_cmd_item"> | string | null + status?: Prisma.IntFilter<"project_cmd_item"> | number +}, "id"> + +export type project_cmd_itemOrderByWithAggregationInput = { + id?: Prisma.SortOrder + cmd_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + desc?: Prisma.SortOrder + qte?: Prisma.SortOrder + price?: Prisma.SortOrder + usd?: Prisma.SortOrder + recu?: Prisma.SortOrder + qte_recu?: Prisma.SortOrder + date_recu?: Prisma.SortOrderInput | Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + eta?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrder + _count?: Prisma.project_cmd_itemCountOrderByAggregateInput + _avg?: Prisma.project_cmd_itemAvgOrderByAggregateInput + _max?: Prisma.project_cmd_itemMaxOrderByAggregateInput + _min?: Prisma.project_cmd_itemMinOrderByAggregateInput + _sum?: Prisma.project_cmd_itemSumOrderByAggregateInput +} + +export type project_cmd_itemScalarWhereWithAggregatesInput = { + AND?: Prisma.project_cmd_itemScalarWhereWithAggregatesInput | Prisma.project_cmd_itemScalarWhereWithAggregatesInput[] + OR?: Prisma.project_cmd_itemScalarWhereWithAggregatesInput[] + NOT?: Prisma.project_cmd_itemScalarWhereWithAggregatesInput | Prisma.project_cmd_itemScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"project_cmd_item"> | number + cmd_id?: Prisma.IntWithAggregatesFilter<"project_cmd_item"> | number + product_id?: Prisma.IntWithAggregatesFilter<"project_cmd_item"> | number + desc?: Prisma.StringWithAggregatesFilter<"project_cmd_item"> | string + qte?: Prisma.FloatWithAggregatesFilter<"project_cmd_item"> | number + price?: Prisma.FloatWithAggregatesFilter<"project_cmd_item"> | number + usd?: Prisma.BoolWithAggregatesFilter<"project_cmd_item"> | boolean + recu?: Prisma.IntWithAggregatesFilter<"project_cmd_item"> | number + qte_recu?: Prisma.FloatWithAggregatesFilter<"project_cmd_item"> | number + date_recu?: Prisma.StringNullableWithAggregatesFilter<"project_cmd_item"> | string | null + comment?: Prisma.StringNullableWithAggregatesFilter<"project_cmd_item"> | string | null + eta?: Prisma.StringNullableWithAggregatesFilter<"project_cmd_item"> | string | null + status?: Prisma.IntWithAggregatesFilter<"project_cmd_item"> | number +} + +export type project_cmd_itemCreateInput = { + cmd_id: number + product_id?: number + desc: string + qte: number + price: number + usd?: boolean + recu?: number + qte_recu?: number + date_recu?: string | null + comment?: string | null + eta?: string | null + status?: number +} + +export type project_cmd_itemUncheckedCreateInput = { + id?: number + cmd_id: number + product_id?: number + desc: string + qte: number + price: number + usd?: boolean + recu?: number + qte_recu?: number + date_recu?: string | null + comment?: string | null + eta?: string | null + status?: number +} + +export type project_cmd_itemUpdateInput = { + cmd_id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.IntFieldUpdateOperationsInput | number + desc?: Prisma.StringFieldUpdateOperationsInput | string + qte?: Prisma.FloatFieldUpdateOperationsInput | number + price?: Prisma.FloatFieldUpdateOperationsInput | number + usd?: Prisma.BoolFieldUpdateOperationsInput | boolean + recu?: Prisma.IntFieldUpdateOperationsInput | number + qte_recu?: Prisma.FloatFieldUpdateOperationsInput | number + date_recu?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + eta?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type project_cmd_itemUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + cmd_id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.IntFieldUpdateOperationsInput | number + desc?: Prisma.StringFieldUpdateOperationsInput | string + qte?: Prisma.FloatFieldUpdateOperationsInput | number + price?: Prisma.FloatFieldUpdateOperationsInput | number + usd?: Prisma.BoolFieldUpdateOperationsInput | boolean + recu?: Prisma.IntFieldUpdateOperationsInput | number + qte_recu?: Prisma.FloatFieldUpdateOperationsInput | number + date_recu?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + eta?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type project_cmd_itemCreateManyInput = { + id?: number + cmd_id: number + product_id?: number + desc: string + qte: number + price: number + usd?: boolean + recu?: number + qte_recu?: number + date_recu?: string | null + comment?: string | null + eta?: string | null + status?: number +} + +export type project_cmd_itemUpdateManyMutationInput = { + cmd_id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.IntFieldUpdateOperationsInput | number + desc?: Prisma.StringFieldUpdateOperationsInput | string + qte?: Prisma.FloatFieldUpdateOperationsInput | number + price?: Prisma.FloatFieldUpdateOperationsInput | number + usd?: Prisma.BoolFieldUpdateOperationsInput | boolean + recu?: Prisma.IntFieldUpdateOperationsInput | number + qte_recu?: Prisma.FloatFieldUpdateOperationsInput | number + date_recu?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + eta?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type project_cmd_itemUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + cmd_id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.IntFieldUpdateOperationsInput | number + desc?: Prisma.StringFieldUpdateOperationsInput | string + qte?: Prisma.FloatFieldUpdateOperationsInput | number + price?: Prisma.FloatFieldUpdateOperationsInput | number + usd?: Prisma.BoolFieldUpdateOperationsInput | boolean + recu?: Prisma.IntFieldUpdateOperationsInput | number + qte_recu?: Prisma.FloatFieldUpdateOperationsInput | number + date_recu?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + eta?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + status?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type project_cmd_itemOrderByRelevanceInput = { + fields: Prisma.project_cmd_itemOrderByRelevanceFieldEnum | Prisma.project_cmd_itemOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type project_cmd_itemCountOrderByAggregateInput = { + id?: Prisma.SortOrder + cmd_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + desc?: Prisma.SortOrder + qte?: Prisma.SortOrder + price?: Prisma.SortOrder + usd?: Prisma.SortOrder + recu?: Prisma.SortOrder + qte_recu?: Prisma.SortOrder + date_recu?: Prisma.SortOrder + comment?: Prisma.SortOrder + eta?: Prisma.SortOrder + status?: Prisma.SortOrder +} + +export type project_cmd_itemAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + cmd_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + qte?: Prisma.SortOrder + price?: Prisma.SortOrder + recu?: Prisma.SortOrder + qte_recu?: Prisma.SortOrder + status?: Prisma.SortOrder +} + +export type project_cmd_itemMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + cmd_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + desc?: Prisma.SortOrder + qte?: Prisma.SortOrder + price?: Prisma.SortOrder + usd?: Prisma.SortOrder + recu?: Prisma.SortOrder + qte_recu?: Prisma.SortOrder + date_recu?: Prisma.SortOrder + comment?: Prisma.SortOrder + eta?: Prisma.SortOrder + status?: Prisma.SortOrder +} + +export type project_cmd_itemMinOrderByAggregateInput = { + id?: Prisma.SortOrder + cmd_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + desc?: Prisma.SortOrder + qte?: Prisma.SortOrder + price?: Prisma.SortOrder + usd?: Prisma.SortOrder + recu?: Prisma.SortOrder + qte_recu?: Prisma.SortOrder + date_recu?: Prisma.SortOrder + comment?: Prisma.SortOrder + eta?: Prisma.SortOrder + status?: Prisma.SortOrder +} + +export type project_cmd_itemSumOrderByAggregateInput = { + id?: Prisma.SortOrder + cmd_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + qte?: Prisma.SortOrder + price?: Prisma.SortOrder + recu?: Prisma.SortOrder + qte_recu?: Prisma.SortOrder + status?: Prisma.SortOrder +} + + + +export type project_cmd_itemSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + cmd_id?: boolean + product_id?: boolean + desc?: boolean + qte?: boolean + price?: boolean + usd?: boolean + recu?: boolean + qte_recu?: boolean + date_recu?: boolean + comment?: boolean + eta?: boolean + status?: boolean +}, ExtArgs["result"]["project_cmd_item"]> + + + +export type project_cmd_itemSelectScalar = { + id?: boolean + cmd_id?: boolean + product_id?: boolean + desc?: boolean + qte?: boolean + price?: boolean + usd?: boolean + recu?: boolean + qte_recu?: boolean + date_recu?: boolean + comment?: boolean + eta?: boolean + status?: boolean +} + +export type project_cmd_itemOmit = runtime.Types.Extensions.GetOmit<"id" | "cmd_id" | "product_id" | "desc" | "qte" | "price" | "usd" | "recu" | "qte_recu" | "date_recu" | "comment" | "eta" | "status", ExtArgs["result"]["project_cmd_item"]> + +export type $project_cmd_itemPayload = { + name: "project_cmd_item" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + cmd_id: number + product_id: number + desc: string + qte: number + price: number + usd: boolean + recu: number + qte_recu: number + date_recu: string | null + comment: string | null + eta: string | null + status: number + }, ExtArgs["result"]["project_cmd_item"]> + composites: {} +} + +export type project_cmd_itemGetPayload = runtime.Types.Result.GetResult + +export type project_cmd_itemCountArgs = + Omit & { + select?: Project_cmd_itemCountAggregateInputType | true + } + +export interface project_cmd_itemDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['project_cmd_item'], meta: { name: 'project_cmd_item' } } + /** + * Find zero or one Project_cmd_item that matches the filter. + * @param {project_cmd_itemFindUniqueArgs} args - Arguments to find a Project_cmd_item + * @example + * // Get one Project_cmd_item + * const project_cmd_item = await prisma.project_cmd_item.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__project_cmd_itemClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Project_cmd_item that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {project_cmd_itemFindUniqueOrThrowArgs} args - Arguments to find a Project_cmd_item + * @example + * // Get one Project_cmd_item + * const project_cmd_item = await prisma.project_cmd_item.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__project_cmd_itemClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project_cmd_item that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_cmd_itemFindFirstArgs} args - Arguments to find a Project_cmd_item + * @example + * // Get one Project_cmd_item + * const project_cmd_item = await prisma.project_cmd_item.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__project_cmd_itemClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project_cmd_item that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_cmd_itemFindFirstOrThrowArgs} args - Arguments to find a Project_cmd_item + * @example + * // Get one Project_cmd_item + * const project_cmd_item = await prisma.project_cmd_item.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__project_cmd_itemClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Project_cmd_items that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_cmd_itemFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Project_cmd_items + * const project_cmd_items = await prisma.project_cmd_item.findMany() + * + * // Get first 10 Project_cmd_items + * const project_cmd_items = await prisma.project_cmd_item.findMany({ take: 10 }) + * + * // Only select the `id` + * const project_cmd_itemWithIdOnly = await prisma.project_cmd_item.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Project_cmd_item. + * @param {project_cmd_itemCreateArgs} args - Arguments to create a Project_cmd_item. + * @example + * // Create one Project_cmd_item + * const Project_cmd_item = await prisma.project_cmd_item.create({ + * data: { + * // ... data to create a Project_cmd_item + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__project_cmd_itemClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Project_cmd_items. + * @param {project_cmd_itemCreateManyArgs} args - Arguments to create many Project_cmd_items. + * @example + * // Create many Project_cmd_items + * const project_cmd_item = await prisma.project_cmd_item.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Project_cmd_item. + * @param {project_cmd_itemDeleteArgs} args - Arguments to delete one Project_cmd_item. + * @example + * // Delete one Project_cmd_item + * const Project_cmd_item = await prisma.project_cmd_item.delete({ + * where: { + * // ... filter to delete one Project_cmd_item + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__project_cmd_itemClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Project_cmd_item. + * @param {project_cmd_itemUpdateArgs} args - Arguments to update one Project_cmd_item. + * @example + * // Update one Project_cmd_item + * const project_cmd_item = await prisma.project_cmd_item.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__project_cmd_itemClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Project_cmd_items. + * @param {project_cmd_itemDeleteManyArgs} args - Arguments to filter Project_cmd_items to delete. + * @example + * // Delete a few Project_cmd_items + * const { count } = await prisma.project_cmd_item.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Project_cmd_items. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_cmd_itemUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Project_cmd_items + * const project_cmd_item = await prisma.project_cmd_item.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Project_cmd_item. + * @param {project_cmd_itemUpsertArgs} args - Arguments to update or create a Project_cmd_item. + * @example + * // Update or create a Project_cmd_item + * const project_cmd_item = await prisma.project_cmd_item.upsert({ + * create: { + * // ... data to create a Project_cmd_item + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Project_cmd_item we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__project_cmd_itemClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Project_cmd_items. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_cmd_itemCountArgs} args - Arguments to filter Project_cmd_items to count. + * @example + * // Count the number of Project_cmd_items + * const count = await prisma.project_cmd_item.count({ + * where: { + * // ... the filter for the Project_cmd_items we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Project_cmd_item. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Project_cmd_itemAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Project_cmd_item. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_cmd_itemGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends project_cmd_itemGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: project_cmd_itemGroupByArgs['orderBy'] } + : { orderBy?: project_cmd_itemGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetProject_cmd_itemGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the project_cmd_item model + */ +readonly fields: project_cmd_itemFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for project_cmd_item. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__project_cmd_itemClient 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 project_cmd_item model + */ +export interface project_cmd_itemFieldRefs { + readonly id: Prisma.FieldRef<"project_cmd_item", 'Int'> + readonly cmd_id: Prisma.FieldRef<"project_cmd_item", 'Int'> + readonly product_id: Prisma.FieldRef<"project_cmd_item", 'Int'> + readonly desc: Prisma.FieldRef<"project_cmd_item", 'String'> + readonly qte: Prisma.FieldRef<"project_cmd_item", 'Float'> + readonly price: Prisma.FieldRef<"project_cmd_item", 'Float'> + readonly usd: Prisma.FieldRef<"project_cmd_item", 'Boolean'> + readonly recu: Prisma.FieldRef<"project_cmd_item", 'Int'> + readonly qte_recu: Prisma.FieldRef<"project_cmd_item", 'Float'> + readonly date_recu: Prisma.FieldRef<"project_cmd_item", 'String'> + readonly comment: Prisma.FieldRef<"project_cmd_item", 'String'> + readonly eta: Prisma.FieldRef<"project_cmd_item", 'String'> + readonly status: Prisma.FieldRef<"project_cmd_item", 'Int'> +} + + +// Custom InputTypes +/** + * project_cmd_item findUnique + */ +export type project_cmd_itemFindUniqueArgs = { + /** + * Select specific fields to fetch from the project_cmd_item + */ + select?: Prisma.project_cmd_itemSelect | null + /** + * Omit specific fields from the project_cmd_item + */ + omit?: Prisma.project_cmd_itemOmit | null + /** + * Filter, which project_cmd_item to fetch. + */ + where: Prisma.project_cmd_itemWhereUniqueInput +} + +/** + * project_cmd_item findUniqueOrThrow + */ +export type project_cmd_itemFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the project_cmd_item + */ + select?: Prisma.project_cmd_itemSelect | null + /** + * Omit specific fields from the project_cmd_item + */ + omit?: Prisma.project_cmd_itemOmit | null + /** + * Filter, which project_cmd_item to fetch. + */ + where: Prisma.project_cmd_itemWhereUniqueInput +} + +/** + * project_cmd_item findFirst + */ +export type project_cmd_itemFindFirstArgs = { + /** + * Select specific fields to fetch from the project_cmd_item + */ + select?: Prisma.project_cmd_itemSelect | null + /** + * Omit specific fields from the project_cmd_item + */ + omit?: Prisma.project_cmd_itemOmit | null + /** + * Filter, which project_cmd_item to fetch. + */ + where?: Prisma.project_cmd_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_cmd_items to fetch. + */ + orderBy?: Prisma.project_cmd_itemOrderByWithRelationInput | Prisma.project_cmd_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for project_cmd_items. + */ + cursor?: Prisma.project_cmd_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_cmd_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` project_cmd_items. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of project_cmd_items. + */ + distinct?: Prisma.Project_cmd_itemScalarFieldEnum | Prisma.Project_cmd_itemScalarFieldEnum[] +} + +/** + * project_cmd_item findFirstOrThrow + */ +export type project_cmd_itemFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the project_cmd_item + */ + select?: Prisma.project_cmd_itemSelect | null + /** + * Omit specific fields from the project_cmd_item + */ + omit?: Prisma.project_cmd_itemOmit | null + /** + * Filter, which project_cmd_item to fetch. + */ + where?: Prisma.project_cmd_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_cmd_items to fetch. + */ + orderBy?: Prisma.project_cmd_itemOrderByWithRelationInput | Prisma.project_cmd_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for project_cmd_items. + */ + cursor?: Prisma.project_cmd_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_cmd_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` project_cmd_items. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of project_cmd_items. + */ + distinct?: Prisma.Project_cmd_itemScalarFieldEnum | Prisma.Project_cmd_itemScalarFieldEnum[] +} + +/** + * project_cmd_item findMany + */ +export type project_cmd_itemFindManyArgs = { + /** + * Select specific fields to fetch from the project_cmd_item + */ + select?: Prisma.project_cmd_itemSelect | null + /** + * Omit specific fields from the project_cmd_item + */ + omit?: Prisma.project_cmd_itemOmit | null + /** + * Filter, which project_cmd_items to fetch. + */ + where?: Prisma.project_cmd_itemWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_cmd_items to fetch. + */ + orderBy?: Prisma.project_cmd_itemOrderByWithRelationInput | Prisma.project_cmd_itemOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing project_cmd_items. + */ + cursor?: Prisma.project_cmd_itemWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_cmd_items from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` project_cmd_items. + */ + skip?: number + distinct?: Prisma.Project_cmd_itemScalarFieldEnum | Prisma.Project_cmd_itemScalarFieldEnum[] +} + +/** + * project_cmd_item create + */ +export type project_cmd_itemCreateArgs = { + /** + * Select specific fields to fetch from the project_cmd_item + */ + select?: Prisma.project_cmd_itemSelect | null + /** + * Omit specific fields from the project_cmd_item + */ + omit?: Prisma.project_cmd_itemOmit | null + /** + * The data needed to create a project_cmd_item. + */ + data: Prisma.XOR +} + +/** + * project_cmd_item createMany + */ +export type project_cmd_itemCreateManyArgs = { + /** + * The data used to create many project_cmd_items. + */ + data: Prisma.project_cmd_itemCreateManyInput | Prisma.project_cmd_itemCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * project_cmd_item update + */ +export type project_cmd_itemUpdateArgs = { + /** + * Select specific fields to fetch from the project_cmd_item + */ + select?: Prisma.project_cmd_itemSelect | null + /** + * Omit specific fields from the project_cmd_item + */ + omit?: Prisma.project_cmd_itemOmit | null + /** + * The data needed to update a project_cmd_item. + */ + data: Prisma.XOR + /** + * Choose, which project_cmd_item to update. + */ + where: Prisma.project_cmd_itemWhereUniqueInput +} + +/** + * project_cmd_item updateMany + */ +export type project_cmd_itemUpdateManyArgs = { + /** + * The data used to update project_cmd_items. + */ + data: Prisma.XOR + /** + * Filter which project_cmd_items to update + */ + where?: Prisma.project_cmd_itemWhereInput + /** + * Limit how many project_cmd_items to update. + */ + limit?: number +} + +/** + * project_cmd_item upsert + */ +export type project_cmd_itemUpsertArgs = { + /** + * Select specific fields to fetch from the project_cmd_item + */ + select?: Prisma.project_cmd_itemSelect | null + /** + * Omit specific fields from the project_cmd_item + */ + omit?: Prisma.project_cmd_itemOmit | null + /** + * The filter to search for the project_cmd_item to update in case it exists. + */ + where: Prisma.project_cmd_itemWhereUniqueInput + /** + * In case the project_cmd_item found by the `where` argument doesn't exist, create a new project_cmd_item with this data. + */ + create: Prisma.XOR + /** + * In case the project_cmd_item was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * project_cmd_item delete + */ +export type project_cmd_itemDeleteArgs = { + /** + * Select specific fields to fetch from the project_cmd_item + */ + select?: Prisma.project_cmd_itemSelect | null + /** + * Omit specific fields from the project_cmd_item + */ + omit?: Prisma.project_cmd_itemOmit | null + /** + * Filter which project_cmd_item to delete. + */ + where: Prisma.project_cmd_itemWhereUniqueInput +} + +/** + * project_cmd_item deleteMany + */ +export type project_cmd_itemDeleteManyArgs = { + /** + * Filter which project_cmd_items to delete + */ + where?: Prisma.project_cmd_itemWhereInput + /** + * Limit how many project_cmd_items to delete. + */ + limit?: number +} + +/** + * project_cmd_item without action + */ +export type project_cmd_itemDefaultArgs = { + /** + * Select specific fields to fetch from the project_cmd_item + */ + select?: Prisma.project_cmd_itemSelect | null + /** + * Omit specific fields from the project_cmd_item + */ + omit?: Prisma.project_cmd_itemOmit | null +} diff --git a/prisma/generated/mariadb/models/project_manager_cat.ts b/prisma/generated/mariadb/models/project_manager_cat.ts new file mode 100644 index 0000000..d063e09 --- /dev/null +++ b/prisma/generated/mariadb/models/project_manager_cat.ts @@ -0,0 +1,1085 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `project_manager_cat` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model project_manager_cat + * + */ +export type project_manager_catModel = runtime.Types.Result.DefaultSelection + +export type AggregateProject_manager_cat = { + _count: Project_manager_catCountAggregateOutputType | null + _avg: Project_manager_catAvgAggregateOutputType | null + _sum: Project_manager_catSumAggregateOutputType | null + _min: Project_manager_catMinAggregateOutputType | null + _max: Project_manager_catMaxAggregateOutputType | null +} + +export type Project_manager_catAvgAggregateOutputType = { + id: number | null + pos: number | null +} + +export type Project_manager_catSumAggregateOutputType = { + id: number | null + pos: number | null +} + +export type Project_manager_catMinAggregateOutputType = { + id: number | null + pos: number | null + name: string | null + color: string | null + text_color: string | null +} + +export type Project_manager_catMaxAggregateOutputType = { + id: number | null + pos: number | null + name: string | null + color: string | null + text_color: string | null +} + +export type Project_manager_catCountAggregateOutputType = { + id: number + pos: number + name: number + color: number + text_color: number + _all: number +} + + +export type Project_manager_catAvgAggregateInputType = { + id?: true + pos?: true +} + +export type Project_manager_catSumAggregateInputType = { + id?: true + pos?: true +} + +export type Project_manager_catMinAggregateInputType = { + id?: true + pos?: true + name?: true + color?: true + text_color?: true +} + +export type Project_manager_catMaxAggregateInputType = { + id?: true + pos?: true + name?: true + color?: true + text_color?: true +} + +export type Project_manager_catCountAggregateInputType = { + id?: true + pos?: true + name?: true + color?: true + text_color?: true + _all?: true +} + +export type Project_manager_catAggregateArgs = { + /** + * Filter which project_manager_cat to aggregate. + */ + where?: Prisma.project_manager_catWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_cats to fetch. + */ + orderBy?: Prisma.project_manager_catOrderByWithRelationInput | Prisma.project_manager_catOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.project_manager_catWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_cats 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` project_manager_cats. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned project_manager_cats + **/ + _count?: true | Project_manager_catCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Project_manager_catAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Project_manager_catSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Project_manager_catMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Project_manager_catMaxAggregateInputType +} + +export type GetProject_manager_catAggregateType = { + [P in keyof T & keyof AggregateProject_manager_cat]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type project_manager_catGroupByArgs = { + where?: Prisma.project_manager_catWhereInput + orderBy?: Prisma.project_manager_catOrderByWithAggregationInput | Prisma.project_manager_catOrderByWithAggregationInput[] + by: Prisma.Project_manager_catScalarFieldEnum[] | Prisma.Project_manager_catScalarFieldEnum + having?: Prisma.project_manager_catScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Project_manager_catCountAggregateInputType | true + _avg?: Project_manager_catAvgAggregateInputType + _sum?: Project_manager_catSumAggregateInputType + _min?: Project_manager_catMinAggregateInputType + _max?: Project_manager_catMaxAggregateInputType +} + +export type Project_manager_catGroupByOutputType = { + id: number + pos: number + name: string + color: string + text_color: string + _count: Project_manager_catCountAggregateOutputType | null + _avg: Project_manager_catAvgAggregateOutputType | null + _sum: Project_manager_catSumAggregateOutputType | null + _min: Project_manager_catMinAggregateOutputType | null + _max: Project_manager_catMaxAggregateOutputType | null +} + +type GetProject_manager_catGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Project_manager_catGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type project_manager_catWhereInput = { + AND?: Prisma.project_manager_catWhereInput | Prisma.project_manager_catWhereInput[] + OR?: Prisma.project_manager_catWhereInput[] + NOT?: Prisma.project_manager_catWhereInput | Prisma.project_manager_catWhereInput[] + id?: Prisma.IntFilter<"project_manager_cat"> | number + pos?: Prisma.IntFilter<"project_manager_cat"> | number + name?: Prisma.StringFilter<"project_manager_cat"> | string + color?: Prisma.StringFilter<"project_manager_cat"> | string + text_color?: Prisma.StringFilter<"project_manager_cat"> | string +} + +export type project_manager_catOrderByWithRelationInput = { + id?: Prisma.SortOrder + pos?: Prisma.SortOrder + name?: Prisma.SortOrder + color?: Prisma.SortOrder + text_color?: Prisma.SortOrder + _relevance?: Prisma.project_manager_catOrderByRelevanceInput +} + +export type project_manager_catWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.project_manager_catWhereInput | Prisma.project_manager_catWhereInput[] + OR?: Prisma.project_manager_catWhereInput[] + NOT?: Prisma.project_manager_catWhereInput | Prisma.project_manager_catWhereInput[] + pos?: Prisma.IntFilter<"project_manager_cat"> | number + name?: Prisma.StringFilter<"project_manager_cat"> | string + color?: Prisma.StringFilter<"project_manager_cat"> | string + text_color?: Prisma.StringFilter<"project_manager_cat"> | string +}, "id"> + +export type project_manager_catOrderByWithAggregationInput = { + id?: Prisma.SortOrder + pos?: Prisma.SortOrder + name?: Prisma.SortOrder + color?: Prisma.SortOrder + text_color?: Prisma.SortOrder + _count?: Prisma.project_manager_catCountOrderByAggregateInput + _avg?: Prisma.project_manager_catAvgOrderByAggregateInput + _max?: Prisma.project_manager_catMaxOrderByAggregateInput + _min?: Prisma.project_manager_catMinOrderByAggregateInput + _sum?: Prisma.project_manager_catSumOrderByAggregateInput +} + +export type project_manager_catScalarWhereWithAggregatesInput = { + AND?: Prisma.project_manager_catScalarWhereWithAggregatesInput | Prisma.project_manager_catScalarWhereWithAggregatesInput[] + OR?: Prisma.project_manager_catScalarWhereWithAggregatesInput[] + NOT?: Prisma.project_manager_catScalarWhereWithAggregatesInput | Prisma.project_manager_catScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"project_manager_cat"> | number + pos?: Prisma.IntWithAggregatesFilter<"project_manager_cat"> | number + name?: Prisma.StringWithAggregatesFilter<"project_manager_cat"> | string + color?: Prisma.StringWithAggregatesFilter<"project_manager_cat"> | string + text_color?: Prisma.StringWithAggregatesFilter<"project_manager_cat"> | string +} + +export type project_manager_catCreateInput = { + pos: number + name: string + color?: string + text_color?: string +} + +export type project_manager_catUncheckedCreateInput = { + id?: number + pos: number + name: string + color?: string + text_color?: string +} + +export type project_manager_catUpdateInput = { + pos?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + color?: Prisma.StringFieldUpdateOperationsInput | string + text_color?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type project_manager_catUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + pos?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + color?: Prisma.StringFieldUpdateOperationsInput | string + text_color?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type project_manager_catCreateManyInput = { + id?: number + pos: number + name: string + color?: string + text_color?: string +} + +export type project_manager_catUpdateManyMutationInput = { + pos?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + color?: Prisma.StringFieldUpdateOperationsInput | string + text_color?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type project_manager_catUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + pos?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + color?: Prisma.StringFieldUpdateOperationsInput | string + text_color?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type project_manager_catOrderByRelevanceInput = { + fields: Prisma.project_manager_catOrderByRelevanceFieldEnum | Prisma.project_manager_catOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type project_manager_catCountOrderByAggregateInput = { + id?: Prisma.SortOrder + pos?: Prisma.SortOrder + name?: Prisma.SortOrder + color?: Prisma.SortOrder + text_color?: Prisma.SortOrder +} + +export type project_manager_catAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + pos?: Prisma.SortOrder +} + +export type project_manager_catMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + pos?: Prisma.SortOrder + name?: Prisma.SortOrder + color?: Prisma.SortOrder + text_color?: Prisma.SortOrder +} + +export type project_manager_catMinOrderByAggregateInput = { + id?: Prisma.SortOrder + pos?: Prisma.SortOrder + name?: Prisma.SortOrder + color?: Prisma.SortOrder + text_color?: Prisma.SortOrder +} + +export type project_manager_catSumOrderByAggregateInput = { + id?: Prisma.SortOrder + pos?: Prisma.SortOrder +} + + + +export type project_manager_catSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + pos?: boolean + name?: boolean + color?: boolean + text_color?: boolean +}, ExtArgs["result"]["project_manager_cat"]> + + + +export type project_manager_catSelectScalar = { + id?: boolean + pos?: boolean + name?: boolean + color?: boolean + text_color?: boolean +} + +export type project_manager_catOmit = runtime.Types.Extensions.GetOmit<"id" | "pos" | "name" | "color" | "text_color", ExtArgs["result"]["project_manager_cat"]> + +export type $project_manager_catPayload = { + name: "project_manager_cat" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + pos: number + name: string + color: string + text_color: string + }, ExtArgs["result"]["project_manager_cat"]> + composites: {} +} + +export type project_manager_catGetPayload = runtime.Types.Result.GetResult + +export type project_manager_catCountArgs = + Omit & { + select?: Project_manager_catCountAggregateInputType | true + } + +export interface project_manager_catDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['project_manager_cat'], meta: { name: 'project_manager_cat' } } + /** + * Find zero or one Project_manager_cat that matches the filter. + * @param {project_manager_catFindUniqueArgs} args - Arguments to find a Project_manager_cat + * @example + * // Get one Project_manager_cat + * const project_manager_cat = await prisma.project_manager_cat.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_catClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Project_manager_cat that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {project_manager_catFindUniqueOrThrowArgs} args - Arguments to find a Project_manager_cat + * @example + * // Get one Project_manager_cat + * const project_manager_cat = await prisma.project_manager_cat.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_catClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project_manager_cat 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 {project_manager_catFindFirstArgs} args - Arguments to find a Project_manager_cat + * @example + * // Get one Project_manager_cat + * const project_manager_cat = await prisma.project_manager_cat.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__project_manager_catClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project_manager_cat 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 {project_manager_catFindFirstOrThrowArgs} args - Arguments to find a Project_manager_cat + * @example + * // Get one Project_manager_cat + * const project_manager_cat = await prisma.project_manager_cat.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__project_manager_catClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Project_manager_cats 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 {project_manager_catFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Project_manager_cats + * const project_manager_cats = await prisma.project_manager_cat.findMany() + * + * // Get first 10 Project_manager_cats + * const project_manager_cats = await prisma.project_manager_cat.findMany({ take: 10 }) + * + * // Only select the `id` + * const project_manager_catWithIdOnly = await prisma.project_manager_cat.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Project_manager_cat. + * @param {project_manager_catCreateArgs} args - Arguments to create a Project_manager_cat. + * @example + * // Create one Project_manager_cat + * const Project_manager_cat = await prisma.project_manager_cat.create({ + * data: { + * // ... data to create a Project_manager_cat + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_catClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Project_manager_cats. + * @param {project_manager_catCreateManyArgs} args - Arguments to create many Project_manager_cats. + * @example + * // Create many Project_manager_cats + * const project_manager_cat = await prisma.project_manager_cat.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Project_manager_cat. + * @param {project_manager_catDeleteArgs} args - Arguments to delete one Project_manager_cat. + * @example + * // Delete one Project_manager_cat + * const Project_manager_cat = await prisma.project_manager_cat.delete({ + * where: { + * // ... filter to delete one Project_manager_cat + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_catClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Project_manager_cat. + * @param {project_manager_catUpdateArgs} args - Arguments to update one Project_manager_cat. + * @example + * // Update one Project_manager_cat + * const project_manager_cat = await prisma.project_manager_cat.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_catClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Project_manager_cats. + * @param {project_manager_catDeleteManyArgs} args - Arguments to filter Project_manager_cats to delete. + * @example + * // Delete a few Project_manager_cats + * const { count } = await prisma.project_manager_cat.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Project_manager_cats. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_manager_catUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Project_manager_cats + * const project_manager_cat = await prisma.project_manager_cat.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Project_manager_cat. + * @param {project_manager_catUpsertArgs} args - Arguments to update or create a Project_manager_cat. + * @example + * // Update or create a Project_manager_cat + * const project_manager_cat = await prisma.project_manager_cat.upsert({ + * create: { + * // ... data to create a Project_manager_cat + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Project_manager_cat we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_catClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Project_manager_cats. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_manager_catCountArgs} args - Arguments to filter Project_manager_cats to count. + * @example + * // Count the number of Project_manager_cats + * const count = await prisma.project_manager_cat.count({ + * where: { + * // ... the filter for the Project_manager_cats we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Project_manager_cat. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Project_manager_catAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Project_manager_cat. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_manager_catGroupByArgs} 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 project_manager_catGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: project_manager_catGroupByArgs['orderBy'] } + : { orderBy?: project_manager_catGroupByArgs['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 ? GetProject_manager_catGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the project_manager_cat model + */ +readonly fields: project_manager_catFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for project_manager_cat. + * 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__project_manager_catClient 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 project_manager_cat model + */ +export interface project_manager_catFieldRefs { + readonly id: Prisma.FieldRef<"project_manager_cat", 'Int'> + readonly pos: Prisma.FieldRef<"project_manager_cat", 'Int'> + readonly name: Prisma.FieldRef<"project_manager_cat", 'String'> + readonly color: Prisma.FieldRef<"project_manager_cat", 'String'> + readonly text_color: Prisma.FieldRef<"project_manager_cat", 'String'> +} + + +// Custom InputTypes +/** + * project_manager_cat findUnique + */ +export type project_manager_catFindUniqueArgs = { + /** + * Select specific fields to fetch from the project_manager_cat + */ + select?: Prisma.project_manager_catSelect | null + /** + * Omit specific fields from the project_manager_cat + */ + omit?: Prisma.project_manager_catOmit | null + /** + * Filter, which project_manager_cat to fetch. + */ + where: Prisma.project_manager_catWhereUniqueInput +} + +/** + * project_manager_cat findUniqueOrThrow + */ +export type project_manager_catFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the project_manager_cat + */ + select?: Prisma.project_manager_catSelect | null + /** + * Omit specific fields from the project_manager_cat + */ + omit?: Prisma.project_manager_catOmit | null + /** + * Filter, which project_manager_cat to fetch. + */ + where: Prisma.project_manager_catWhereUniqueInput +} + +/** + * project_manager_cat findFirst + */ +export type project_manager_catFindFirstArgs = { + /** + * Select specific fields to fetch from the project_manager_cat + */ + select?: Prisma.project_manager_catSelect | null + /** + * Omit specific fields from the project_manager_cat + */ + omit?: Prisma.project_manager_catOmit | null + /** + * Filter, which project_manager_cat to fetch. + */ + where?: Prisma.project_manager_catWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_cats to fetch. + */ + orderBy?: Prisma.project_manager_catOrderByWithRelationInput | Prisma.project_manager_catOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for project_manager_cats. + */ + cursor?: Prisma.project_manager_catWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_cats 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` project_manager_cats. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of project_manager_cats. + */ + distinct?: Prisma.Project_manager_catScalarFieldEnum | Prisma.Project_manager_catScalarFieldEnum[] +} + +/** + * project_manager_cat findFirstOrThrow + */ +export type project_manager_catFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the project_manager_cat + */ + select?: Prisma.project_manager_catSelect | null + /** + * Omit specific fields from the project_manager_cat + */ + omit?: Prisma.project_manager_catOmit | null + /** + * Filter, which project_manager_cat to fetch. + */ + where?: Prisma.project_manager_catWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_cats to fetch. + */ + orderBy?: Prisma.project_manager_catOrderByWithRelationInput | Prisma.project_manager_catOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for project_manager_cats. + */ + cursor?: Prisma.project_manager_catWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_cats 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` project_manager_cats. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of project_manager_cats. + */ + distinct?: Prisma.Project_manager_catScalarFieldEnum | Prisma.Project_manager_catScalarFieldEnum[] +} + +/** + * project_manager_cat findMany + */ +export type project_manager_catFindManyArgs = { + /** + * Select specific fields to fetch from the project_manager_cat + */ + select?: Prisma.project_manager_catSelect | null + /** + * Omit specific fields from the project_manager_cat + */ + omit?: Prisma.project_manager_catOmit | null + /** + * Filter, which project_manager_cats to fetch. + */ + where?: Prisma.project_manager_catWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_cats to fetch. + */ + orderBy?: Prisma.project_manager_catOrderByWithRelationInput | Prisma.project_manager_catOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing project_manager_cats. + */ + cursor?: Prisma.project_manager_catWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_cats 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` project_manager_cats. + */ + skip?: number + distinct?: Prisma.Project_manager_catScalarFieldEnum | Prisma.Project_manager_catScalarFieldEnum[] +} + +/** + * project_manager_cat create + */ +export type project_manager_catCreateArgs = { + /** + * Select specific fields to fetch from the project_manager_cat + */ + select?: Prisma.project_manager_catSelect | null + /** + * Omit specific fields from the project_manager_cat + */ + omit?: Prisma.project_manager_catOmit | null + /** + * The data needed to create a project_manager_cat. + */ + data: Prisma.XOR +} + +/** + * project_manager_cat createMany + */ +export type project_manager_catCreateManyArgs = { + /** + * The data used to create many project_manager_cats. + */ + data: Prisma.project_manager_catCreateManyInput | Prisma.project_manager_catCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * project_manager_cat update + */ +export type project_manager_catUpdateArgs = { + /** + * Select specific fields to fetch from the project_manager_cat + */ + select?: Prisma.project_manager_catSelect | null + /** + * Omit specific fields from the project_manager_cat + */ + omit?: Prisma.project_manager_catOmit | null + /** + * The data needed to update a project_manager_cat. + */ + data: Prisma.XOR + /** + * Choose, which project_manager_cat to update. + */ + where: Prisma.project_manager_catWhereUniqueInput +} + +/** + * project_manager_cat updateMany + */ +export type project_manager_catUpdateManyArgs = { + /** + * The data used to update project_manager_cats. + */ + data: Prisma.XOR + /** + * Filter which project_manager_cats to update + */ + where?: Prisma.project_manager_catWhereInput + /** + * Limit how many project_manager_cats to update. + */ + limit?: number +} + +/** + * project_manager_cat upsert + */ +export type project_manager_catUpsertArgs = { + /** + * Select specific fields to fetch from the project_manager_cat + */ + select?: Prisma.project_manager_catSelect | null + /** + * Omit specific fields from the project_manager_cat + */ + omit?: Prisma.project_manager_catOmit | null + /** + * The filter to search for the project_manager_cat to update in case it exists. + */ + where: Prisma.project_manager_catWhereUniqueInput + /** + * In case the project_manager_cat found by the `where` argument doesn't exist, create a new project_manager_cat with this data. + */ + create: Prisma.XOR + /** + * In case the project_manager_cat was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * project_manager_cat delete + */ +export type project_manager_catDeleteArgs = { + /** + * Select specific fields to fetch from the project_manager_cat + */ + select?: Prisma.project_manager_catSelect | null + /** + * Omit specific fields from the project_manager_cat + */ + omit?: Prisma.project_manager_catOmit | null + /** + * Filter which project_manager_cat to delete. + */ + where: Prisma.project_manager_catWhereUniqueInput +} + +/** + * project_manager_cat deleteMany + */ +export type project_manager_catDeleteManyArgs = { + /** + * Filter which project_manager_cats to delete + */ + where?: Prisma.project_manager_catWhereInput + /** + * Limit how many project_manager_cats to delete. + */ + limit?: number +} + +/** + * project_manager_cat without action + */ +export type project_manager_catDefaultArgs = { + /** + * Select specific fields to fetch from the project_manager_cat + */ + select?: Prisma.project_manager_catSelect | null + /** + * Omit specific fields from the project_manager_cat + */ + omit?: Prisma.project_manager_catOmit | null +} diff --git a/prisma/generated/mariadb/models/project_manager_checklist.ts b/prisma/generated/mariadb/models/project_manager_checklist.ts new file mode 100644 index 0000000..5e10f3f --- /dev/null +++ b/prisma/generated/mariadb/models/project_manager_checklist.ts @@ -0,0 +1,1129 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `project_manager_checklist` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model project_manager_checklist + * + */ +export type project_manager_checklistModel = runtime.Types.Result.DefaultSelection + +export type AggregateProject_manager_checklist = { + _count: Project_manager_checklistCountAggregateOutputType | null + _avg: Project_manager_checklistAvgAggregateOutputType | null + _sum: Project_manager_checklistSumAggregateOutputType | null + _min: Project_manager_checklistMinAggregateOutputType | null + _max: Project_manager_checklistMaxAggregateOutputType | null +} + +export type Project_manager_checklistAvgAggregateOutputType = { + id: number | null + task_id: number | null + ticket_id: number | null + poids: number | null + done: number | null +} + +export type Project_manager_checklistSumAggregateOutputType = { + id: number | null + task_id: number | null + ticket_id: number | null + poids: number | null + done: number | null +} + +export type Project_manager_checklistMinAggregateOutputType = { + id: number | null + task_id: number | null + ticket_id: number | null + desc: string | null + poids: number | null + done: number | null +} + +export type Project_manager_checklistMaxAggregateOutputType = { + id: number | null + task_id: number | null + ticket_id: number | null + desc: string | null + poids: number | null + done: number | null +} + +export type Project_manager_checklistCountAggregateOutputType = { + id: number + task_id: number + ticket_id: number + desc: number + poids: number + done: number + _all: number +} + + +export type Project_manager_checklistAvgAggregateInputType = { + id?: true + task_id?: true + ticket_id?: true + poids?: true + done?: true +} + +export type Project_manager_checklistSumAggregateInputType = { + id?: true + task_id?: true + ticket_id?: true + poids?: true + done?: true +} + +export type Project_manager_checklistMinAggregateInputType = { + id?: true + task_id?: true + ticket_id?: true + desc?: true + poids?: true + done?: true +} + +export type Project_manager_checklistMaxAggregateInputType = { + id?: true + task_id?: true + ticket_id?: true + desc?: true + poids?: true + done?: true +} + +export type Project_manager_checklistCountAggregateInputType = { + id?: true + task_id?: true + ticket_id?: true + desc?: true + poids?: true + done?: true + _all?: true +} + +export type Project_manager_checklistAggregateArgs = { + /** + * Filter which project_manager_checklist to aggregate. + */ + where?: Prisma.project_manager_checklistWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_checklists to fetch. + */ + orderBy?: Prisma.project_manager_checklistOrderByWithRelationInput | Prisma.project_manager_checklistOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.project_manager_checklistWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_checklists 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` project_manager_checklists. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned project_manager_checklists + **/ + _count?: true | Project_manager_checklistCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Project_manager_checklistAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Project_manager_checklistSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Project_manager_checklistMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Project_manager_checklistMaxAggregateInputType +} + +export type GetProject_manager_checklistAggregateType = { + [P in keyof T & keyof AggregateProject_manager_checklist]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type project_manager_checklistGroupByArgs = { + where?: Prisma.project_manager_checklistWhereInput + orderBy?: Prisma.project_manager_checklistOrderByWithAggregationInput | Prisma.project_manager_checklistOrderByWithAggregationInput[] + by: Prisma.Project_manager_checklistScalarFieldEnum[] | Prisma.Project_manager_checklistScalarFieldEnum + having?: Prisma.project_manager_checklistScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Project_manager_checklistCountAggregateInputType | true + _avg?: Project_manager_checklistAvgAggregateInputType + _sum?: Project_manager_checklistSumAggregateInputType + _min?: Project_manager_checklistMinAggregateInputType + _max?: Project_manager_checklistMaxAggregateInputType +} + +export type Project_manager_checklistGroupByOutputType = { + id: number + task_id: number + ticket_id: number + desc: string + poids: number + done: number + _count: Project_manager_checklistCountAggregateOutputType | null + _avg: Project_manager_checklistAvgAggregateOutputType | null + _sum: Project_manager_checklistSumAggregateOutputType | null + _min: Project_manager_checklistMinAggregateOutputType | null + _max: Project_manager_checklistMaxAggregateOutputType | null +} + +type GetProject_manager_checklistGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Project_manager_checklistGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type project_manager_checklistWhereInput = { + AND?: Prisma.project_manager_checklistWhereInput | Prisma.project_manager_checklistWhereInput[] + OR?: Prisma.project_manager_checklistWhereInput[] + NOT?: Prisma.project_manager_checklistWhereInput | Prisma.project_manager_checklistWhereInput[] + id?: Prisma.IntFilter<"project_manager_checklist"> | number + task_id?: Prisma.IntFilter<"project_manager_checklist"> | number + ticket_id?: Prisma.IntFilter<"project_manager_checklist"> | number + desc?: Prisma.StringFilter<"project_manager_checklist"> | string + poids?: Prisma.IntFilter<"project_manager_checklist"> | number + done?: Prisma.IntFilter<"project_manager_checklist"> | number +} + +export type project_manager_checklistOrderByWithRelationInput = { + id?: Prisma.SortOrder + task_id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + desc?: Prisma.SortOrder + poids?: Prisma.SortOrder + done?: Prisma.SortOrder + _relevance?: Prisma.project_manager_checklistOrderByRelevanceInput +} + +export type project_manager_checklistWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.project_manager_checklistWhereInput | Prisma.project_manager_checklistWhereInput[] + OR?: Prisma.project_manager_checklistWhereInput[] + NOT?: Prisma.project_manager_checklistWhereInput | Prisma.project_manager_checklistWhereInput[] + task_id?: Prisma.IntFilter<"project_manager_checklist"> | number + ticket_id?: Prisma.IntFilter<"project_manager_checklist"> | number + desc?: Prisma.StringFilter<"project_manager_checklist"> | string + poids?: Prisma.IntFilter<"project_manager_checklist"> | number + done?: Prisma.IntFilter<"project_manager_checklist"> | number +}, "id"> + +export type project_manager_checklistOrderByWithAggregationInput = { + id?: Prisma.SortOrder + task_id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + desc?: Prisma.SortOrder + poids?: Prisma.SortOrder + done?: Prisma.SortOrder + _count?: Prisma.project_manager_checklistCountOrderByAggregateInput + _avg?: Prisma.project_manager_checklistAvgOrderByAggregateInput + _max?: Prisma.project_manager_checklistMaxOrderByAggregateInput + _min?: Prisma.project_manager_checklistMinOrderByAggregateInput + _sum?: Prisma.project_manager_checklistSumOrderByAggregateInput +} + +export type project_manager_checklistScalarWhereWithAggregatesInput = { + AND?: Prisma.project_manager_checklistScalarWhereWithAggregatesInput | Prisma.project_manager_checklistScalarWhereWithAggregatesInput[] + OR?: Prisma.project_manager_checklistScalarWhereWithAggregatesInput[] + NOT?: Prisma.project_manager_checklistScalarWhereWithAggregatesInput | Prisma.project_manager_checklistScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"project_manager_checklist"> | number + task_id?: Prisma.IntWithAggregatesFilter<"project_manager_checklist"> | number + ticket_id?: Prisma.IntWithAggregatesFilter<"project_manager_checklist"> | number + desc?: Prisma.StringWithAggregatesFilter<"project_manager_checklist"> | string + poids?: Prisma.IntWithAggregatesFilter<"project_manager_checklist"> | number + done?: Prisma.IntWithAggregatesFilter<"project_manager_checklist"> | number +} + +export type project_manager_checklistCreateInput = { + task_id: number + ticket_id: number + desc: string + poids?: number + done?: number +} + +export type project_manager_checklistUncheckedCreateInput = { + id?: number + task_id: number + ticket_id: number + desc: string + poids?: number + done?: number +} + +export type project_manager_checklistUpdateInput = { + task_id?: Prisma.IntFieldUpdateOperationsInput | number + ticket_id?: Prisma.IntFieldUpdateOperationsInput | number + desc?: Prisma.StringFieldUpdateOperationsInput | string + poids?: Prisma.IntFieldUpdateOperationsInput | number + done?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type project_manager_checklistUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + task_id?: Prisma.IntFieldUpdateOperationsInput | number + ticket_id?: Prisma.IntFieldUpdateOperationsInput | number + desc?: Prisma.StringFieldUpdateOperationsInput | string + poids?: Prisma.IntFieldUpdateOperationsInput | number + done?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type project_manager_checklistCreateManyInput = { + id?: number + task_id: number + ticket_id: number + desc: string + poids?: number + done?: number +} + +export type project_manager_checklistUpdateManyMutationInput = { + task_id?: Prisma.IntFieldUpdateOperationsInput | number + ticket_id?: Prisma.IntFieldUpdateOperationsInput | number + desc?: Prisma.StringFieldUpdateOperationsInput | string + poids?: Prisma.IntFieldUpdateOperationsInput | number + done?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type project_manager_checklistUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + task_id?: Prisma.IntFieldUpdateOperationsInput | number + ticket_id?: Prisma.IntFieldUpdateOperationsInput | number + desc?: Prisma.StringFieldUpdateOperationsInput | string + poids?: Prisma.IntFieldUpdateOperationsInput | number + done?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type project_manager_checklistOrderByRelevanceInput = { + fields: Prisma.project_manager_checklistOrderByRelevanceFieldEnum | Prisma.project_manager_checklistOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type project_manager_checklistCountOrderByAggregateInput = { + id?: Prisma.SortOrder + task_id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + desc?: Prisma.SortOrder + poids?: Prisma.SortOrder + done?: Prisma.SortOrder +} + +export type project_manager_checklistAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + task_id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + poids?: Prisma.SortOrder + done?: Prisma.SortOrder +} + +export type project_manager_checklistMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + task_id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + desc?: Prisma.SortOrder + poids?: Prisma.SortOrder + done?: Prisma.SortOrder +} + +export type project_manager_checklistMinOrderByAggregateInput = { + id?: Prisma.SortOrder + task_id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + desc?: Prisma.SortOrder + poids?: Prisma.SortOrder + done?: Prisma.SortOrder +} + +export type project_manager_checklistSumOrderByAggregateInput = { + id?: Prisma.SortOrder + task_id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + poids?: Prisma.SortOrder + done?: Prisma.SortOrder +} + + + +export type project_manager_checklistSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + task_id?: boolean + ticket_id?: boolean + desc?: boolean + poids?: boolean + done?: boolean +}, ExtArgs["result"]["project_manager_checklist"]> + + + +export type project_manager_checklistSelectScalar = { + id?: boolean + task_id?: boolean + ticket_id?: boolean + desc?: boolean + poids?: boolean + done?: boolean +} + +export type project_manager_checklistOmit = runtime.Types.Extensions.GetOmit<"id" | "task_id" | "ticket_id" | "desc" | "poids" | "done", ExtArgs["result"]["project_manager_checklist"]> + +export type $project_manager_checklistPayload = { + name: "project_manager_checklist" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + task_id: number + ticket_id: number + desc: string + poids: number + done: number + }, ExtArgs["result"]["project_manager_checklist"]> + composites: {} +} + +export type project_manager_checklistGetPayload = runtime.Types.Result.GetResult + +export type project_manager_checklistCountArgs = + Omit & { + select?: Project_manager_checklistCountAggregateInputType | true + } + +export interface project_manager_checklistDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['project_manager_checklist'], meta: { name: 'project_manager_checklist' } } + /** + * Find zero or one Project_manager_checklist that matches the filter. + * @param {project_manager_checklistFindUniqueArgs} args - Arguments to find a Project_manager_checklist + * @example + * // Get one Project_manager_checklist + * const project_manager_checklist = await prisma.project_manager_checklist.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_checklistClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Project_manager_checklist that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {project_manager_checklistFindUniqueOrThrowArgs} args - Arguments to find a Project_manager_checklist + * @example + * // Get one Project_manager_checklist + * const project_manager_checklist = await prisma.project_manager_checklist.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_checklistClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project_manager_checklist 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 {project_manager_checklistFindFirstArgs} args - Arguments to find a Project_manager_checklist + * @example + * // Get one Project_manager_checklist + * const project_manager_checklist = await prisma.project_manager_checklist.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__project_manager_checklistClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project_manager_checklist 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 {project_manager_checklistFindFirstOrThrowArgs} args - Arguments to find a Project_manager_checklist + * @example + * // Get one Project_manager_checklist + * const project_manager_checklist = await prisma.project_manager_checklist.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__project_manager_checklistClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Project_manager_checklists 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 {project_manager_checklistFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Project_manager_checklists + * const project_manager_checklists = await prisma.project_manager_checklist.findMany() + * + * // Get first 10 Project_manager_checklists + * const project_manager_checklists = await prisma.project_manager_checklist.findMany({ take: 10 }) + * + * // Only select the `id` + * const project_manager_checklistWithIdOnly = await prisma.project_manager_checklist.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Project_manager_checklist. + * @param {project_manager_checklistCreateArgs} args - Arguments to create a Project_manager_checklist. + * @example + * // Create one Project_manager_checklist + * const Project_manager_checklist = await prisma.project_manager_checklist.create({ + * data: { + * // ... data to create a Project_manager_checklist + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_checklistClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Project_manager_checklists. + * @param {project_manager_checklistCreateManyArgs} args - Arguments to create many Project_manager_checklists. + * @example + * // Create many Project_manager_checklists + * const project_manager_checklist = await prisma.project_manager_checklist.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Project_manager_checklist. + * @param {project_manager_checklistDeleteArgs} args - Arguments to delete one Project_manager_checklist. + * @example + * // Delete one Project_manager_checklist + * const Project_manager_checklist = await prisma.project_manager_checklist.delete({ + * where: { + * // ... filter to delete one Project_manager_checklist + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_checklistClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Project_manager_checklist. + * @param {project_manager_checklistUpdateArgs} args - Arguments to update one Project_manager_checklist. + * @example + * // Update one Project_manager_checklist + * const project_manager_checklist = await prisma.project_manager_checklist.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_checklistClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Project_manager_checklists. + * @param {project_manager_checklistDeleteManyArgs} args - Arguments to filter Project_manager_checklists to delete. + * @example + * // Delete a few Project_manager_checklists + * const { count } = await prisma.project_manager_checklist.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Project_manager_checklists. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_manager_checklistUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Project_manager_checklists + * const project_manager_checklist = await prisma.project_manager_checklist.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Project_manager_checklist. + * @param {project_manager_checklistUpsertArgs} args - Arguments to update or create a Project_manager_checklist. + * @example + * // Update or create a Project_manager_checklist + * const project_manager_checklist = await prisma.project_manager_checklist.upsert({ + * create: { + * // ... data to create a Project_manager_checklist + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Project_manager_checklist we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_checklistClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Project_manager_checklists. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_manager_checklistCountArgs} args - Arguments to filter Project_manager_checklists to count. + * @example + * // Count the number of Project_manager_checklists + * const count = await prisma.project_manager_checklist.count({ + * where: { + * // ... the filter for the Project_manager_checklists we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Project_manager_checklist. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Project_manager_checklistAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Project_manager_checklist. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_manager_checklistGroupByArgs} 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 project_manager_checklistGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: project_manager_checklistGroupByArgs['orderBy'] } + : { orderBy?: project_manager_checklistGroupByArgs['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 ? GetProject_manager_checklistGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the project_manager_checklist model + */ +readonly fields: project_manager_checklistFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for project_manager_checklist. + * 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__project_manager_checklistClient 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 project_manager_checklist model + */ +export interface project_manager_checklistFieldRefs { + readonly id: Prisma.FieldRef<"project_manager_checklist", 'Int'> + readonly task_id: Prisma.FieldRef<"project_manager_checklist", 'Int'> + readonly ticket_id: Prisma.FieldRef<"project_manager_checklist", 'Int'> + readonly desc: Prisma.FieldRef<"project_manager_checklist", 'String'> + readonly poids: Prisma.FieldRef<"project_manager_checklist", 'Int'> + readonly done: Prisma.FieldRef<"project_manager_checklist", 'Int'> +} + + +// Custom InputTypes +/** + * project_manager_checklist findUnique + */ +export type project_manager_checklistFindUniqueArgs = { + /** + * Select specific fields to fetch from the project_manager_checklist + */ + select?: Prisma.project_manager_checklistSelect | null + /** + * Omit specific fields from the project_manager_checklist + */ + omit?: Prisma.project_manager_checklistOmit | null + /** + * Filter, which project_manager_checklist to fetch. + */ + where: Prisma.project_manager_checklistWhereUniqueInput +} + +/** + * project_manager_checklist findUniqueOrThrow + */ +export type project_manager_checklistFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the project_manager_checklist + */ + select?: Prisma.project_manager_checklistSelect | null + /** + * Omit specific fields from the project_manager_checklist + */ + omit?: Prisma.project_manager_checklistOmit | null + /** + * Filter, which project_manager_checklist to fetch. + */ + where: Prisma.project_manager_checklistWhereUniqueInput +} + +/** + * project_manager_checklist findFirst + */ +export type project_manager_checklistFindFirstArgs = { + /** + * Select specific fields to fetch from the project_manager_checklist + */ + select?: Prisma.project_manager_checklistSelect | null + /** + * Omit specific fields from the project_manager_checklist + */ + omit?: Prisma.project_manager_checklistOmit | null + /** + * Filter, which project_manager_checklist to fetch. + */ + where?: Prisma.project_manager_checklistWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_checklists to fetch. + */ + orderBy?: Prisma.project_manager_checklistOrderByWithRelationInput | Prisma.project_manager_checklistOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for project_manager_checklists. + */ + cursor?: Prisma.project_manager_checklistWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_checklists 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` project_manager_checklists. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of project_manager_checklists. + */ + distinct?: Prisma.Project_manager_checklistScalarFieldEnum | Prisma.Project_manager_checklistScalarFieldEnum[] +} + +/** + * project_manager_checklist findFirstOrThrow + */ +export type project_manager_checklistFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the project_manager_checklist + */ + select?: Prisma.project_manager_checklistSelect | null + /** + * Omit specific fields from the project_manager_checklist + */ + omit?: Prisma.project_manager_checklistOmit | null + /** + * Filter, which project_manager_checklist to fetch. + */ + where?: Prisma.project_manager_checklistWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_checklists to fetch. + */ + orderBy?: Prisma.project_manager_checklistOrderByWithRelationInput | Prisma.project_manager_checklistOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for project_manager_checklists. + */ + cursor?: Prisma.project_manager_checklistWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_checklists 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` project_manager_checklists. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of project_manager_checklists. + */ + distinct?: Prisma.Project_manager_checklistScalarFieldEnum | Prisma.Project_manager_checklistScalarFieldEnum[] +} + +/** + * project_manager_checklist findMany + */ +export type project_manager_checklistFindManyArgs = { + /** + * Select specific fields to fetch from the project_manager_checklist + */ + select?: Prisma.project_manager_checklistSelect | null + /** + * Omit specific fields from the project_manager_checklist + */ + omit?: Prisma.project_manager_checklistOmit | null + /** + * Filter, which project_manager_checklists to fetch. + */ + where?: Prisma.project_manager_checklistWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_checklists to fetch. + */ + orderBy?: Prisma.project_manager_checklistOrderByWithRelationInput | Prisma.project_manager_checklistOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing project_manager_checklists. + */ + cursor?: Prisma.project_manager_checklistWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_checklists 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` project_manager_checklists. + */ + skip?: number + distinct?: Prisma.Project_manager_checklistScalarFieldEnum | Prisma.Project_manager_checklistScalarFieldEnum[] +} + +/** + * project_manager_checklist create + */ +export type project_manager_checklistCreateArgs = { + /** + * Select specific fields to fetch from the project_manager_checklist + */ + select?: Prisma.project_manager_checklistSelect | null + /** + * Omit specific fields from the project_manager_checklist + */ + omit?: Prisma.project_manager_checklistOmit | null + /** + * The data needed to create a project_manager_checklist. + */ + data: Prisma.XOR +} + +/** + * project_manager_checklist createMany + */ +export type project_manager_checklistCreateManyArgs = { + /** + * The data used to create many project_manager_checklists. + */ + data: Prisma.project_manager_checklistCreateManyInput | Prisma.project_manager_checklistCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * project_manager_checklist update + */ +export type project_manager_checklistUpdateArgs = { + /** + * Select specific fields to fetch from the project_manager_checklist + */ + select?: Prisma.project_manager_checklistSelect | null + /** + * Omit specific fields from the project_manager_checklist + */ + omit?: Prisma.project_manager_checklistOmit | null + /** + * The data needed to update a project_manager_checklist. + */ + data: Prisma.XOR + /** + * Choose, which project_manager_checklist to update. + */ + where: Prisma.project_manager_checklistWhereUniqueInput +} + +/** + * project_manager_checklist updateMany + */ +export type project_manager_checklistUpdateManyArgs = { + /** + * The data used to update project_manager_checklists. + */ + data: Prisma.XOR + /** + * Filter which project_manager_checklists to update + */ + where?: Prisma.project_manager_checklistWhereInput + /** + * Limit how many project_manager_checklists to update. + */ + limit?: number +} + +/** + * project_manager_checklist upsert + */ +export type project_manager_checklistUpsertArgs = { + /** + * Select specific fields to fetch from the project_manager_checklist + */ + select?: Prisma.project_manager_checklistSelect | null + /** + * Omit specific fields from the project_manager_checklist + */ + omit?: Prisma.project_manager_checklistOmit | null + /** + * The filter to search for the project_manager_checklist to update in case it exists. + */ + where: Prisma.project_manager_checklistWhereUniqueInput + /** + * In case the project_manager_checklist found by the `where` argument doesn't exist, create a new project_manager_checklist with this data. + */ + create: Prisma.XOR + /** + * In case the project_manager_checklist was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * project_manager_checklist delete + */ +export type project_manager_checklistDeleteArgs = { + /** + * Select specific fields to fetch from the project_manager_checklist + */ + select?: Prisma.project_manager_checklistSelect | null + /** + * Omit specific fields from the project_manager_checklist + */ + omit?: Prisma.project_manager_checklistOmit | null + /** + * Filter which project_manager_checklist to delete. + */ + where: Prisma.project_manager_checklistWhereUniqueInput +} + +/** + * project_manager_checklist deleteMany + */ +export type project_manager_checklistDeleteManyArgs = { + /** + * Filter which project_manager_checklists to delete + */ + where?: Prisma.project_manager_checklistWhereInput + /** + * Limit how many project_manager_checklists to delete. + */ + limit?: number +} + +/** + * project_manager_checklist without action + */ +export type project_manager_checklistDefaultArgs = { + /** + * Select specific fields to fetch from the project_manager_checklist + */ + select?: Prisma.project_manager_checklistSelect | null + /** + * Omit specific fields from the project_manager_checklist + */ + omit?: Prisma.project_manager_checklistOmit | null +} diff --git a/prisma/generated/mariadb/models/project_manager_comment.ts b/prisma/generated/mariadb/models/project_manager_comment.ts new file mode 100644 index 0000000..195f2ab --- /dev/null +++ b/prisma/generated/mariadb/models/project_manager_comment.ts @@ -0,0 +1,1117 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `project_manager_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" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model project_manager_comment + * + */ +export type project_manager_commentModel = runtime.Types.Result.DefaultSelection + +export type AggregateProject_manager_comment = { + _count: Project_manager_commentCountAggregateOutputType | null + _avg: Project_manager_commentAvgAggregateOutputType | null + _sum: Project_manager_commentSumAggregateOutputType | null + _min: Project_manager_commentMinAggregateOutputType | null + _max: Project_manager_commentMaxAggregateOutputType | null +} + +export type Project_manager_commentAvgAggregateOutputType = { + id: number | null + task_id: number | null + staff_id: number | null +} + +export type Project_manager_commentSumAggregateOutputType = { + id: number | null + task_id: number | null + staff_id: number | null +} + +export type Project_manager_commentMinAggregateOutputType = { + id: number | null + task_id: number | null + comment: string | null + staff_id: number | null + date: string | null + unread: string | null +} + +export type Project_manager_commentMaxAggregateOutputType = { + id: number | null + task_id: number | null + comment: string | null + staff_id: number | null + date: string | null + unread: string | null +} + +export type Project_manager_commentCountAggregateOutputType = { + id: number + task_id: number + comment: number + staff_id: number + date: number + unread: number + _all: number +} + + +export type Project_manager_commentAvgAggregateInputType = { + id?: true + task_id?: true + staff_id?: true +} + +export type Project_manager_commentSumAggregateInputType = { + id?: true + task_id?: true + staff_id?: true +} + +export type Project_manager_commentMinAggregateInputType = { + id?: true + task_id?: true + comment?: true + staff_id?: true + date?: true + unread?: true +} + +export type Project_manager_commentMaxAggregateInputType = { + id?: true + task_id?: true + comment?: true + staff_id?: true + date?: true + unread?: true +} + +export type Project_manager_commentCountAggregateInputType = { + id?: true + task_id?: true + comment?: true + staff_id?: true + date?: true + unread?: true + _all?: true +} + +export type Project_manager_commentAggregateArgs = { + /** + * Filter which project_manager_comment to aggregate. + */ + where?: Prisma.project_manager_commentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_comments to fetch. + */ + orderBy?: Prisma.project_manager_commentOrderByWithRelationInput | Prisma.project_manager_commentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.project_manager_commentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_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` project_manager_comments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned project_manager_comments + **/ + _count?: true | Project_manager_commentCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Project_manager_commentAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Project_manager_commentSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Project_manager_commentMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Project_manager_commentMaxAggregateInputType +} + +export type GetProject_manager_commentAggregateType = { + [P in keyof T & keyof AggregateProject_manager_comment]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type project_manager_commentGroupByArgs = { + where?: Prisma.project_manager_commentWhereInput + orderBy?: Prisma.project_manager_commentOrderByWithAggregationInput | Prisma.project_manager_commentOrderByWithAggregationInput[] + by: Prisma.Project_manager_commentScalarFieldEnum[] | Prisma.Project_manager_commentScalarFieldEnum + having?: Prisma.project_manager_commentScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Project_manager_commentCountAggregateInputType | true + _avg?: Project_manager_commentAvgAggregateInputType + _sum?: Project_manager_commentSumAggregateInputType + _min?: Project_manager_commentMinAggregateInputType + _max?: Project_manager_commentMaxAggregateInputType +} + +export type Project_manager_commentGroupByOutputType = { + id: number + task_id: number + comment: string + staff_id: number + date: string + unread: string + _count: Project_manager_commentCountAggregateOutputType | null + _avg: Project_manager_commentAvgAggregateOutputType | null + _sum: Project_manager_commentSumAggregateOutputType | null + _min: Project_manager_commentMinAggregateOutputType | null + _max: Project_manager_commentMaxAggregateOutputType | null +} + +type GetProject_manager_commentGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Project_manager_commentGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type project_manager_commentWhereInput = { + AND?: Prisma.project_manager_commentWhereInput | Prisma.project_manager_commentWhereInput[] + OR?: Prisma.project_manager_commentWhereInput[] + NOT?: Prisma.project_manager_commentWhereInput | Prisma.project_manager_commentWhereInput[] + id?: Prisma.IntFilter<"project_manager_comment"> | number + task_id?: Prisma.IntFilter<"project_manager_comment"> | number + comment?: Prisma.StringFilter<"project_manager_comment"> | string + staff_id?: Prisma.IntFilter<"project_manager_comment"> | number + date?: Prisma.StringFilter<"project_manager_comment"> | string + unread?: Prisma.StringFilter<"project_manager_comment"> | string +} + +export type project_manager_commentOrderByWithRelationInput = { + id?: Prisma.SortOrder + task_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date?: Prisma.SortOrder + unread?: Prisma.SortOrder + _relevance?: Prisma.project_manager_commentOrderByRelevanceInput +} + +export type project_manager_commentWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.project_manager_commentWhereInput | Prisma.project_manager_commentWhereInput[] + OR?: Prisma.project_manager_commentWhereInput[] + NOT?: Prisma.project_manager_commentWhereInput | Prisma.project_manager_commentWhereInput[] + task_id?: Prisma.IntFilter<"project_manager_comment"> | number + comment?: Prisma.StringFilter<"project_manager_comment"> | string + staff_id?: Prisma.IntFilter<"project_manager_comment"> | number + date?: Prisma.StringFilter<"project_manager_comment"> | string + unread?: Prisma.StringFilter<"project_manager_comment"> | string +}, "id"> + +export type project_manager_commentOrderByWithAggregationInput = { + id?: Prisma.SortOrder + task_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date?: Prisma.SortOrder + unread?: Prisma.SortOrder + _count?: Prisma.project_manager_commentCountOrderByAggregateInput + _avg?: Prisma.project_manager_commentAvgOrderByAggregateInput + _max?: Prisma.project_manager_commentMaxOrderByAggregateInput + _min?: Prisma.project_manager_commentMinOrderByAggregateInput + _sum?: Prisma.project_manager_commentSumOrderByAggregateInput +} + +export type project_manager_commentScalarWhereWithAggregatesInput = { + AND?: Prisma.project_manager_commentScalarWhereWithAggregatesInput | Prisma.project_manager_commentScalarWhereWithAggregatesInput[] + OR?: Prisma.project_manager_commentScalarWhereWithAggregatesInput[] + NOT?: Prisma.project_manager_commentScalarWhereWithAggregatesInput | Prisma.project_manager_commentScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"project_manager_comment"> | number + task_id?: Prisma.IntWithAggregatesFilter<"project_manager_comment"> | number + comment?: Prisma.StringWithAggregatesFilter<"project_manager_comment"> | string + staff_id?: Prisma.IntWithAggregatesFilter<"project_manager_comment"> | number + date?: Prisma.StringWithAggregatesFilter<"project_manager_comment"> | string + unread?: Prisma.StringWithAggregatesFilter<"project_manager_comment"> | string +} + +export type project_manager_commentCreateInput = { + task_id: number + comment: string + staff_id: number + date: string + unread: string +} + +export type project_manager_commentUncheckedCreateInput = { + id?: number + task_id: number + comment: string + staff_id: number + date: string + unread: string +} + +export type project_manager_commentUpdateInput = { + task_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.StringFieldUpdateOperationsInput | string + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.StringFieldUpdateOperationsInput | string + unread?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type project_manager_commentUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + task_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.StringFieldUpdateOperationsInput | string + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.StringFieldUpdateOperationsInput | string + unread?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type project_manager_commentCreateManyInput = { + id?: number + task_id: number + comment: string + staff_id: number + date: string + unread: string +} + +export type project_manager_commentUpdateManyMutationInput = { + task_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.StringFieldUpdateOperationsInput | string + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.StringFieldUpdateOperationsInput | string + unread?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type project_manager_commentUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + task_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.StringFieldUpdateOperationsInput | string + staff_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.StringFieldUpdateOperationsInput | string + unread?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type project_manager_commentOrderByRelevanceInput = { + fields: Prisma.project_manager_commentOrderByRelevanceFieldEnum | Prisma.project_manager_commentOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type project_manager_commentCountOrderByAggregateInput = { + id?: Prisma.SortOrder + task_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date?: Prisma.SortOrder + unread?: Prisma.SortOrder +} + +export type project_manager_commentAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + task_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type project_manager_commentMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + task_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date?: Prisma.SortOrder + unread?: Prisma.SortOrder +} + +export type project_manager_commentMinOrderByAggregateInput = { + id?: Prisma.SortOrder + task_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date?: Prisma.SortOrder + unread?: Prisma.SortOrder +} + +export type project_manager_commentSumOrderByAggregateInput = { + id?: Prisma.SortOrder + task_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + + + +export type project_manager_commentSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + task_id?: boolean + comment?: boolean + staff_id?: boolean + date?: boolean + unread?: boolean +}, ExtArgs["result"]["project_manager_comment"]> + + + +export type project_manager_commentSelectScalar = { + id?: boolean + task_id?: boolean + comment?: boolean + staff_id?: boolean + date?: boolean + unread?: boolean +} + +export type project_manager_commentOmit = runtime.Types.Extensions.GetOmit<"id" | "task_id" | "comment" | "staff_id" | "date" | "unread", ExtArgs["result"]["project_manager_comment"]> + +export type $project_manager_commentPayload = { + name: "project_manager_comment" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + task_id: number + comment: string + staff_id: number + date: string + unread: string + }, ExtArgs["result"]["project_manager_comment"]> + composites: {} +} + +export type project_manager_commentGetPayload = runtime.Types.Result.GetResult + +export type project_manager_commentCountArgs = + Omit & { + select?: Project_manager_commentCountAggregateInputType | true + } + +export interface project_manager_commentDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['project_manager_comment'], meta: { name: 'project_manager_comment' } } + /** + * Find zero or one Project_manager_comment that matches the filter. + * @param {project_manager_commentFindUniqueArgs} args - Arguments to find a Project_manager_comment + * @example + * // Get one Project_manager_comment + * const project_manager_comment = await prisma.project_manager_comment.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_commentClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Project_manager_comment that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {project_manager_commentFindUniqueOrThrowArgs} args - Arguments to find a Project_manager_comment + * @example + * // Get one Project_manager_comment + * const project_manager_comment = await prisma.project_manager_comment.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_commentClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project_manager_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 {project_manager_commentFindFirstArgs} args - Arguments to find a Project_manager_comment + * @example + * // Get one Project_manager_comment + * const project_manager_comment = await prisma.project_manager_comment.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__project_manager_commentClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project_manager_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 {project_manager_commentFindFirstOrThrowArgs} args - Arguments to find a Project_manager_comment + * @example + * // Get one Project_manager_comment + * const project_manager_comment = await prisma.project_manager_comment.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__project_manager_commentClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Project_manager_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 {project_manager_commentFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Project_manager_comments + * const project_manager_comments = await prisma.project_manager_comment.findMany() + * + * // Get first 10 Project_manager_comments + * const project_manager_comments = await prisma.project_manager_comment.findMany({ take: 10 }) + * + * // Only select the `id` + * const project_manager_commentWithIdOnly = await prisma.project_manager_comment.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Project_manager_comment. + * @param {project_manager_commentCreateArgs} args - Arguments to create a Project_manager_comment. + * @example + * // Create one Project_manager_comment + * const Project_manager_comment = await prisma.project_manager_comment.create({ + * data: { + * // ... data to create a Project_manager_comment + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_commentClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Project_manager_comments. + * @param {project_manager_commentCreateManyArgs} args - Arguments to create many Project_manager_comments. + * @example + * // Create many Project_manager_comments + * const project_manager_comment = await prisma.project_manager_comment.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Project_manager_comment. + * @param {project_manager_commentDeleteArgs} args - Arguments to delete one Project_manager_comment. + * @example + * // Delete one Project_manager_comment + * const Project_manager_comment = await prisma.project_manager_comment.delete({ + * where: { + * // ... filter to delete one Project_manager_comment + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_commentClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Project_manager_comment. + * @param {project_manager_commentUpdateArgs} args - Arguments to update one Project_manager_comment. + * @example + * // Update one Project_manager_comment + * const project_manager_comment = await prisma.project_manager_comment.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_commentClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Project_manager_comments. + * @param {project_manager_commentDeleteManyArgs} args - Arguments to filter Project_manager_comments to delete. + * @example + * // Delete a few Project_manager_comments + * const { count } = await prisma.project_manager_comment.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Project_manager_comments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_manager_commentUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Project_manager_comments + * const project_manager_comment = await prisma.project_manager_comment.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Project_manager_comment. + * @param {project_manager_commentUpsertArgs} args - Arguments to update or create a Project_manager_comment. + * @example + * // Update or create a Project_manager_comment + * const project_manager_comment = await prisma.project_manager_comment.upsert({ + * create: { + * // ... data to create a Project_manager_comment + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Project_manager_comment we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_commentClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Project_manager_comments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_manager_commentCountArgs} args - Arguments to filter Project_manager_comments to count. + * @example + * // Count the number of Project_manager_comments + * const count = await prisma.project_manager_comment.count({ + * where: { + * // ... the filter for the Project_manager_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 Project_manager_comment. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Project_manager_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 Project_manager_comment. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_manager_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 project_manager_commentGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: project_manager_commentGroupByArgs['orderBy'] } + : { orderBy?: project_manager_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 ? GetProject_manager_commentGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the project_manager_comment model + */ +readonly fields: project_manager_commentFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for project_manager_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__project_manager_commentClient 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 project_manager_comment model + */ +export interface project_manager_commentFieldRefs { + readonly id: Prisma.FieldRef<"project_manager_comment", 'Int'> + readonly task_id: Prisma.FieldRef<"project_manager_comment", 'Int'> + readonly comment: Prisma.FieldRef<"project_manager_comment", 'String'> + readonly staff_id: Prisma.FieldRef<"project_manager_comment", 'Int'> + readonly date: Prisma.FieldRef<"project_manager_comment", 'String'> + readonly unread: Prisma.FieldRef<"project_manager_comment", 'String'> +} + + +// Custom InputTypes +/** + * project_manager_comment findUnique + */ +export type project_manager_commentFindUniqueArgs = { + /** + * Select specific fields to fetch from the project_manager_comment + */ + select?: Prisma.project_manager_commentSelect | null + /** + * Omit specific fields from the project_manager_comment + */ + omit?: Prisma.project_manager_commentOmit | null + /** + * Filter, which project_manager_comment to fetch. + */ + where: Prisma.project_manager_commentWhereUniqueInput +} + +/** + * project_manager_comment findUniqueOrThrow + */ +export type project_manager_commentFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the project_manager_comment + */ + select?: Prisma.project_manager_commentSelect | null + /** + * Omit specific fields from the project_manager_comment + */ + omit?: Prisma.project_manager_commentOmit | null + /** + * Filter, which project_manager_comment to fetch. + */ + where: Prisma.project_manager_commentWhereUniqueInput +} + +/** + * project_manager_comment findFirst + */ +export type project_manager_commentFindFirstArgs = { + /** + * Select specific fields to fetch from the project_manager_comment + */ + select?: Prisma.project_manager_commentSelect | null + /** + * Omit specific fields from the project_manager_comment + */ + omit?: Prisma.project_manager_commentOmit | null + /** + * Filter, which project_manager_comment to fetch. + */ + where?: Prisma.project_manager_commentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_comments to fetch. + */ + orderBy?: Prisma.project_manager_commentOrderByWithRelationInput | Prisma.project_manager_commentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for project_manager_comments. + */ + cursor?: Prisma.project_manager_commentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_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` project_manager_comments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of project_manager_comments. + */ + distinct?: Prisma.Project_manager_commentScalarFieldEnum | Prisma.Project_manager_commentScalarFieldEnum[] +} + +/** + * project_manager_comment findFirstOrThrow + */ +export type project_manager_commentFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the project_manager_comment + */ + select?: Prisma.project_manager_commentSelect | null + /** + * Omit specific fields from the project_manager_comment + */ + omit?: Prisma.project_manager_commentOmit | null + /** + * Filter, which project_manager_comment to fetch. + */ + where?: Prisma.project_manager_commentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_comments to fetch. + */ + orderBy?: Prisma.project_manager_commentOrderByWithRelationInput | Prisma.project_manager_commentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for project_manager_comments. + */ + cursor?: Prisma.project_manager_commentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_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` project_manager_comments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of project_manager_comments. + */ + distinct?: Prisma.Project_manager_commentScalarFieldEnum | Prisma.Project_manager_commentScalarFieldEnum[] +} + +/** + * project_manager_comment findMany + */ +export type project_manager_commentFindManyArgs = { + /** + * Select specific fields to fetch from the project_manager_comment + */ + select?: Prisma.project_manager_commentSelect | null + /** + * Omit specific fields from the project_manager_comment + */ + omit?: Prisma.project_manager_commentOmit | null + /** + * Filter, which project_manager_comments to fetch. + */ + where?: Prisma.project_manager_commentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_comments to fetch. + */ + orderBy?: Prisma.project_manager_commentOrderByWithRelationInput | Prisma.project_manager_commentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing project_manager_comments. + */ + cursor?: Prisma.project_manager_commentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_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` project_manager_comments. + */ + skip?: number + distinct?: Prisma.Project_manager_commentScalarFieldEnum | Prisma.Project_manager_commentScalarFieldEnum[] +} + +/** + * project_manager_comment create + */ +export type project_manager_commentCreateArgs = { + /** + * Select specific fields to fetch from the project_manager_comment + */ + select?: Prisma.project_manager_commentSelect | null + /** + * Omit specific fields from the project_manager_comment + */ + omit?: Prisma.project_manager_commentOmit | null + /** + * The data needed to create a project_manager_comment. + */ + data: Prisma.XOR +} + +/** + * project_manager_comment createMany + */ +export type project_manager_commentCreateManyArgs = { + /** + * The data used to create many project_manager_comments. + */ + data: Prisma.project_manager_commentCreateManyInput | Prisma.project_manager_commentCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * project_manager_comment update + */ +export type project_manager_commentUpdateArgs = { + /** + * Select specific fields to fetch from the project_manager_comment + */ + select?: Prisma.project_manager_commentSelect | null + /** + * Omit specific fields from the project_manager_comment + */ + omit?: Prisma.project_manager_commentOmit | null + /** + * The data needed to update a project_manager_comment. + */ + data: Prisma.XOR + /** + * Choose, which project_manager_comment to update. + */ + where: Prisma.project_manager_commentWhereUniqueInput +} + +/** + * project_manager_comment updateMany + */ +export type project_manager_commentUpdateManyArgs = { + /** + * The data used to update project_manager_comments. + */ + data: Prisma.XOR + /** + * Filter which project_manager_comments to update + */ + where?: Prisma.project_manager_commentWhereInput + /** + * Limit how many project_manager_comments to update. + */ + limit?: number +} + +/** + * project_manager_comment upsert + */ +export type project_manager_commentUpsertArgs = { + /** + * Select specific fields to fetch from the project_manager_comment + */ + select?: Prisma.project_manager_commentSelect | null + /** + * Omit specific fields from the project_manager_comment + */ + omit?: Prisma.project_manager_commentOmit | null + /** + * The filter to search for the project_manager_comment to update in case it exists. + */ + where: Prisma.project_manager_commentWhereUniqueInput + /** + * In case the project_manager_comment found by the `where` argument doesn't exist, create a new project_manager_comment with this data. + */ + create: Prisma.XOR + /** + * In case the project_manager_comment was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * project_manager_comment delete + */ +export type project_manager_commentDeleteArgs = { + /** + * Select specific fields to fetch from the project_manager_comment + */ + select?: Prisma.project_manager_commentSelect | null + /** + * Omit specific fields from the project_manager_comment + */ + omit?: Prisma.project_manager_commentOmit | null + /** + * Filter which project_manager_comment to delete. + */ + where: Prisma.project_manager_commentWhereUniqueInput +} + +/** + * project_manager_comment deleteMany + */ +export type project_manager_commentDeleteManyArgs = { + /** + * Filter which project_manager_comments to delete + */ + where?: Prisma.project_manager_commentWhereInput + /** + * Limit how many project_manager_comments to delete. + */ + limit?: number +} + +/** + * project_manager_comment without action + */ +export type project_manager_commentDefaultArgs = { + /** + * Select specific fields to fetch from the project_manager_comment + */ + select?: Prisma.project_manager_commentSelect | null + /** + * Omit specific fields from the project_manager_comment + */ + omit?: Prisma.project_manager_commentOmit | null +} diff --git a/prisma/generated/mariadb/models/project_manager_task.ts b/prisma/generated/mariadb/models/project_manager_task.ts new file mode 100644 index 0000000..d1b1682 --- /dev/null +++ b/prisma/generated/mariadb/models/project_manager_task.ts @@ -0,0 +1,1421 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `project_manager_task` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model project_manager_task + * + */ +export type project_manager_taskModel = runtime.Types.Result.DefaultSelection + +export type AggregateProject_manager_task = { + _count: Project_manager_taskCountAggregateOutputType | null + _avg: Project_manager_taskAvgAggregateOutputType | null + _sum: Project_manager_taskSumAggregateOutputType | null + _min: Project_manager_taskMinAggregateOutputType | null + _max: Project_manager_taskMaxAggregateOutputType | null +} + +export type Project_manager_taskAvgAggregateOutputType = { + id: number | null + category_id: number | null + pos: number | null + deadline_watch: number | null + priority: number | null + create_by: number | null +} + +export type Project_manager_taskSumAggregateOutputType = { + id: number | null + category_id: number | null + pos: number | null + deadline_watch: number | null + priority: number | null + create_by: number | null +} + +export type Project_manager_taskMinAggregateOutputType = { + id: number | null + category_id: number | null + pos: number | null + titre: string | null + color: string | null + text_color: string | null + desc: string | null + ticket_id: string | null + date_start: string | null + date_deadline: string | null + deadline_watch: number | null + assign_staff: string | null + priority: number | null + done: boolean | null + create_by: number | null + date_creation: string | null + date_update: string | null +} + +export type Project_manager_taskMaxAggregateOutputType = { + id: number | null + category_id: number | null + pos: number | null + titre: string | null + color: string | null + text_color: string | null + desc: string | null + ticket_id: string | null + date_start: string | null + date_deadline: string | null + deadline_watch: number | null + assign_staff: string | null + priority: number | null + done: boolean | null + create_by: number | null + date_creation: string | null + date_update: string | null +} + +export type Project_manager_taskCountAggregateOutputType = { + id: number + category_id: number + pos: number + titre: number + color: number + text_color: number + desc: number + ticket_id: number + date_start: number + date_deadline: number + deadline_watch: number + assign_staff: number + priority: number + done: number + create_by: number + date_creation: number + date_update: number + _all: number +} + + +export type Project_manager_taskAvgAggregateInputType = { + id?: true + category_id?: true + pos?: true + deadline_watch?: true + priority?: true + create_by?: true +} + +export type Project_manager_taskSumAggregateInputType = { + id?: true + category_id?: true + pos?: true + deadline_watch?: true + priority?: true + create_by?: true +} + +export type Project_manager_taskMinAggregateInputType = { + id?: true + category_id?: true + pos?: true + titre?: true + color?: true + text_color?: true + desc?: true + ticket_id?: true + date_start?: true + date_deadline?: true + deadline_watch?: true + assign_staff?: true + priority?: true + done?: true + create_by?: true + date_creation?: true + date_update?: true +} + +export type Project_manager_taskMaxAggregateInputType = { + id?: true + category_id?: true + pos?: true + titre?: true + color?: true + text_color?: true + desc?: true + ticket_id?: true + date_start?: true + date_deadline?: true + deadline_watch?: true + assign_staff?: true + priority?: true + done?: true + create_by?: true + date_creation?: true + date_update?: true +} + +export type Project_manager_taskCountAggregateInputType = { + id?: true + category_id?: true + pos?: true + titre?: true + color?: true + text_color?: true + desc?: true + ticket_id?: true + date_start?: true + date_deadline?: true + deadline_watch?: true + assign_staff?: true + priority?: true + done?: true + create_by?: true + date_creation?: true + date_update?: true + _all?: true +} + +export type Project_manager_taskAggregateArgs = { + /** + * Filter which project_manager_task to aggregate. + */ + where?: Prisma.project_manager_taskWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_tasks to fetch. + */ + orderBy?: Prisma.project_manager_taskOrderByWithRelationInput | Prisma.project_manager_taskOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.project_manager_taskWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_tasks 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` project_manager_tasks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned project_manager_tasks + **/ + _count?: true | Project_manager_taskCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Project_manager_taskAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Project_manager_taskSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Project_manager_taskMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Project_manager_taskMaxAggregateInputType +} + +export type GetProject_manager_taskAggregateType = { + [P in keyof T & keyof AggregateProject_manager_task]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type project_manager_taskGroupByArgs = { + where?: Prisma.project_manager_taskWhereInput + orderBy?: Prisma.project_manager_taskOrderByWithAggregationInput | Prisma.project_manager_taskOrderByWithAggregationInput[] + by: Prisma.Project_manager_taskScalarFieldEnum[] | Prisma.Project_manager_taskScalarFieldEnum + having?: Prisma.project_manager_taskScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Project_manager_taskCountAggregateInputType | true + _avg?: Project_manager_taskAvgAggregateInputType + _sum?: Project_manager_taskSumAggregateInputType + _min?: Project_manager_taskMinAggregateInputType + _max?: Project_manager_taskMaxAggregateInputType +} + +export type Project_manager_taskGroupByOutputType = { + id: number + category_id: number + pos: number + titre: string + color: string + text_color: string + desc: string + ticket_id: string | null + date_start: string | null + date_deadline: string | null + deadline_watch: number + assign_staff: string | null + priority: number + done: boolean + create_by: number + date_creation: string | null + date_update: string | null + _count: Project_manager_taskCountAggregateOutputType | null + _avg: Project_manager_taskAvgAggregateOutputType | null + _sum: Project_manager_taskSumAggregateOutputType | null + _min: Project_manager_taskMinAggregateOutputType | null + _max: Project_manager_taskMaxAggregateOutputType | null +} + +type GetProject_manager_taskGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Project_manager_taskGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type project_manager_taskWhereInput = { + AND?: Prisma.project_manager_taskWhereInput | Prisma.project_manager_taskWhereInput[] + OR?: Prisma.project_manager_taskWhereInput[] + NOT?: Prisma.project_manager_taskWhereInput | Prisma.project_manager_taskWhereInput[] + id?: Prisma.IntFilter<"project_manager_task"> | number + category_id?: Prisma.IntFilter<"project_manager_task"> | number + pos?: Prisma.IntFilter<"project_manager_task"> | number + titre?: Prisma.StringFilter<"project_manager_task"> | string + color?: Prisma.StringFilter<"project_manager_task"> | string + text_color?: Prisma.StringFilter<"project_manager_task"> | string + desc?: Prisma.StringFilter<"project_manager_task"> | string + ticket_id?: Prisma.StringNullableFilter<"project_manager_task"> | string | null + date_start?: Prisma.StringNullableFilter<"project_manager_task"> | string | null + date_deadline?: Prisma.StringNullableFilter<"project_manager_task"> | string | null + deadline_watch?: Prisma.IntFilter<"project_manager_task"> | number + assign_staff?: Prisma.StringNullableFilter<"project_manager_task"> | string | null + priority?: Prisma.IntFilter<"project_manager_task"> | number + done?: Prisma.BoolFilter<"project_manager_task"> | boolean + create_by?: Prisma.IntFilter<"project_manager_task"> | number + date_creation?: Prisma.StringNullableFilter<"project_manager_task"> | string | null + date_update?: Prisma.StringNullableFilter<"project_manager_task"> | string | null +} + +export type project_manager_taskOrderByWithRelationInput = { + id?: Prisma.SortOrder + category_id?: Prisma.SortOrder + pos?: Prisma.SortOrder + titre?: Prisma.SortOrder + color?: Prisma.SortOrder + text_color?: Prisma.SortOrder + desc?: Prisma.SortOrder + ticket_id?: Prisma.SortOrderInput | Prisma.SortOrder + date_start?: Prisma.SortOrderInput | Prisma.SortOrder + date_deadline?: Prisma.SortOrderInput | Prisma.SortOrder + deadline_watch?: Prisma.SortOrder + assign_staff?: Prisma.SortOrderInput | Prisma.SortOrder + priority?: Prisma.SortOrder + done?: Prisma.SortOrder + create_by?: Prisma.SortOrder + date_creation?: Prisma.SortOrderInput | Prisma.SortOrder + date_update?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.project_manager_taskOrderByRelevanceInput +} + +export type project_manager_taskWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.project_manager_taskWhereInput | Prisma.project_manager_taskWhereInput[] + OR?: Prisma.project_manager_taskWhereInput[] + NOT?: Prisma.project_manager_taskWhereInput | Prisma.project_manager_taskWhereInput[] + category_id?: Prisma.IntFilter<"project_manager_task"> | number + pos?: Prisma.IntFilter<"project_manager_task"> | number + titre?: Prisma.StringFilter<"project_manager_task"> | string + color?: Prisma.StringFilter<"project_manager_task"> | string + text_color?: Prisma.StringFilter<"project_manager_task"> | string + desc?: Prisma.StringFilter<"project_manager_task"> | string + ticket_id?: Prisma.StringNullableFilter<"project_manager_task"> | string | null + date_start?: Prisma.StringNullableFilter<"project_manager_task"> | string | null + date_deadline?: Prisma.StringNullableFilter<"project_manager_task"> | string | null + deadline_watch?: Prisma.IntFilter<"project_manager_task"> | number + assign_staff?: Prisma.StringNullableFilter<"project_manager_task"> | string | null + priority?: Prisma.IntFilter<"project_manager_task"> | number + done?: Prisma.BoolFilter<"project_manager_task"> | boolean + create_by?: Prisma.IntFilter<"project_manager_task"> | number + date_creation?: Prisma.StringNullableFilter<"project_manager_task"> | string | null + date_update?: Prisma.StringNullableFilter<"project_manager_task"> | string | null +}, "id"> + +export type project_manager_taskOrderByWithAggregationInput = { + id?: Prisma.SortOrder + category_id?: Prisma.SortOrder + pos?: Prisma.SortOrder + titre?: Prisma.SortOrder + color?: Prisma.SortOrder + text_color?: Prisma.SortOrder + desc?: Prisma.SortOrder + ticket_id?: Prisma.SortOrderInput | Prisma.SortOrder + date_start?: Prisma.SortOrderInput | Prisma.SortOrder + date_deadline?: Prisma.SortOrderInput | Prisma.SortOrder + deadline_watch?: Prisma.SortOrder + assign_staff?: Prisma.SortOrderInput | Prisma.SortOrder + priority?: Prisma.SortOrder + done?: Prisma.SortOrder + create_by?: Prisma.SortOrder + date_creation?: Prisma.SortOrderInput | Prisma.SortOrder + date_update?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.project_manager_taskCountOrderByAggregateInput + _avg?: Prisma.project_manager_taskAvgOrderByAggregateInput + _max?: Prisma.project_manager_taskMaxOrderByAggregateInput + _min?: Prisma.project_manager_taskMinOrderByAggregateInput + _sum?: Prisma.project_manager_taskSumOrderByAggregateInput +} + +export type project_manager_taskScalarWhereWithAggregatesInput = { + AND?: Prisma.project_manager_taskScalarWhereWithAggregatesInput | Prisma.project_manager_taskScalarWhereWithAggregatesInput[] + OR?: Prisma.project_manager_taskScalarWhereWithAggregatesInput[] + NOT?: Prisma.project_manager_taskScalarWhereWithAggregatesInput | Prisma.project_manager_taskScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"project_manager_task"> | number + category_id?: Prisma.IntWithAggregatesFilter<"project_manager_task"> | number + pos?: Prisma.IntWithAggregatesFilter<"project_manager_task"> | number + titre?: Prisma.StringWithAggregatesFilter<"project_manager_task"> | string + color?: Prisma.StringWithAggregatesFilter<"project_manager_task"> | string + text_color?: Prisma.StringWithAggregatesFilter<"project_manager_task"> | string + desc?: Prisma.StringWithAggregatesFilter<"project_manager_task"> | string + ticket_id?: Prisma.StringNullableWithAggregatesFilter<"project_manager_task"> | string | null + date_start?: Prisma.StringNullableWithAggregatesFilter<"project_manager_task"> | string | null + date_deadline?: Prisma.StringNullableWithAggregatesFilter<"project_manager_task"> | string | null + deadline_watch?: Prisma.IntWithAggregatesFilter<"project_manager_task"> | number + assign_staff?: Prisma.StringNullableWithAggregatesFilter<"project_manager_task"> | string | null + priority?: Prisma.IntWithAggregatesFilter<"project_manager_task"> | number + done?: Prisma.BoolWithAggregatesFilter<"project_manager_task"> | boolean + create_by?: Prisma.IntWithAggregatesFilter<"project_manager_task"> | number + date_creation?: Prisma.StringNullableWithAggregatesFilter<"project_manager_task"> | string | null + date_update?: Prisma.StringNullableWithAggregatesFilter<"project_manager_task"> | string | null +} + +export type project_manager_taskCreateInput = { + category_id: number + pos: number + titre: string + color?: string + text_color?: string + desc: string + ticket_id?: string | null + date_start?: string | null + date_deadline?: string | null + deadline_watch?: number + assign_staff?: string | null + priority?: number + done?: boolean + create_by: number + date_creation?: string | null + date_update?: string | null +} + +export type project_manager_taskUncheckedCreateInput = { + id?: number + category_id: number + pos: number + titre: string + color?: string + text_color?: string + desc: string + ticket_id?: string | null + date_start?: string | null + date_deadline?: string | null + deadline_watch?: number + assign_staff?: string | null + priority?: number + done?: boolean + create_by: number + date_creation?: string | null + date_update?: string | null +} + +export type project_manager_taskUpdateInput = { + category_id?: Prisma.IntFieldUpdateOperationsInput | number + pos?: Prisma.IntFieldUpdateOperationsInput | number + titre?: Prisma.StringFieldUpdateOperationsInput | string + color?: Prisma.StringFieldUpdateOperationsInput | string + text_color?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.StringFieldUpdateOperationsInput | string + ticket_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_start?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_deadline?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deadline_watch?: Prisma.IntFieldUpdateOperationsInput | number + assign_staff?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + priority?: Prisma.IntFieldUpdateOperationsInput | number + done?: Prisma.BoolFieldUpdateOperationsInput | boolean + create_by?: Prisma.IntFieldUpdateOperationsInput | number + date_creation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_update?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type project_manager_taskUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + category_id?: Prisma.IntFieldUpdateOperationsInput | number + pos?: Prisma.IntFieldUpdateOperationsInput | number + titre?: Prisma.StringFieldUpdateOperationsInput | string + color?: Prisma.StringFieldUpdateOperationsInput | string + text_color?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.StringFieldUpdateOperationsInput | string + ticket_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_start?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_deadline?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deadline_watch?: Prisma.IntFieldUpdateOperationsInput | number + assign_staff?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + priority?: Prisma.IntFieldUpdateOperationsInput | number + done?: Prisma.BoolFieldUpdateOperationsInput | boolean + create_by?: Prisma.IntFieldUpdateOperationsInput | number + date_creation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_update?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type project_manager_taskCreateManyInput = { + id?: number + category_id: number + pos: number + titre: string + color?: string + text_color?: string + desc: string + ticket_id?: string | null + date_start?: string | null + date_deadline?: string | null + deadline_watch?: number + assign_staff?: string | null + priority?: number + done?: boolean + create_by: number + date_creation?: string | null + date_update?: string | null +} + +export type project_manager_taskUpdateManyMutationInput = { + category_id?: Prisma.IntFieldUpdateOperationsInput | number + pos?: Prisma.IntFieldUpdateOperationsInput | number + titre?: Prisma.StringFieldUpdateOperationsInput | string + color?: Prisma.StringFieldUpdateOperationsInput | string + text_color?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.StringFieldUpdateOperationsInput | string + ticket_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_start?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_deadline?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deadline_watch?: Prisma.IntFieldUpdateOperationsInput | number + assign_staff?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + priority?: Prisma.IntFieldUpdateOperationsInput | number + done?: Prisma.BoolFieldUpdateOperationsInput | boolean + create_by?: Prisma.IntFieldUpdateOperationsInput | number + date_creation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_update?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type project_manager_taskUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + category_id?: Prisma.IntFieldUpdateOperationsInput | number + pos?: Prisma.IntFieldUpdateOperationsInput | number + titre?: Prisma.StringFieldUpdateOperationsInput | string + color?: Prisma.StringFieldUpdateOperationsInput | string + text_color?: Prisma.StringFieldUpdateOperationsInput | string + desc?: Prisma.StringFieldUpdateOperationsInput | string + ticket_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_start?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_deadline?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + deadline_watch?: Prisma.IntFieldUpdateOperationsInput | number + assign_staff?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + priority?: Prisma.IntFieldUpdateOperationsInput | number + done?: Prisma.BoolFieldUpdateOperationsInput | boolean + create_by?: Prisma.IntFieldUpdateOperationsInput | number + date_creation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_update?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type project_manager_taskOrderByRelevanceInput = { + fields: Prisma.project_manager_taskOrderByRelevanceFieldEnum | Prisma.project_manager_taskOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type project_manager_taskCountOrderByAggregateInput = { + id?: Prisma.SortOrder + category_id?: Prisma.SortOrder + pos?: Prisma.SortOrder + titre?: Prisma.SortOrder + color?: Prisma.SortOrder + text_color?: Prisma.SortOrder + desc?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_deadline?: Prisma.SortOrder + deadline_watch?: Prisma.SortOrder + assign_staff?: Prisma.SortOrder + priority?: Prisma.SortOrder + done?: Prisma.SortOrder + create_by?: Prisma.SortOrder + date_creation?: Prisma.SortOrder + date_update?: Prisma.SortOrder +} + +export type project_manager_taskAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + category_id?: Prisma.SortOrder + pos?: Prisma.SortOrder + deadline_watch?: Prisma.SortOrder + priority?: Prisma.SortOrder + create_by?: Prisma.SortOrder +} + +export type project_manager_taskMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + category_id?: Prisma.SortOrder + pos?: Prisma.SortOrder + titre?: Prisma.SortOrder + color?: Prisma.SortOrder + text_color?: Prisma.SortOrder + desc?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_deadline?: Prisma.SortOrder + deadline_watch?: Prisma.SortOrder + assign_staff?: Prisma.SortOrder + priority?: Prisma.SortOrder + done?: Prisma.SortOrder + create_by?: Prisma.SortOrder + date_creation?: Prisma.SortOrder + date_update?: Prisma.SortOrder +} + +export type project_manager_taskMinOrderByAggregateInput = { + id?: Prisma.SortOrder + category_id?: Prisma.SortOrder + pos?: Prisma.SortOrder + titre?: Prisma.SortOrder + color?: Prisma.SortOrder + text_color?: Prisma.SortOrder + desc?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_deadline?: Prisma.SortOrder + deadline_watch?: Prisma.SortOrder + assign_staff?: Prisma.SortOrder + priority?: Prisma.SortOrder + done?: Prisma.SortOrder + create_by?: Prisma.SortOrder + date_creation?: Prisma.SortOrder + date_update?: Prisma.SortOrder +} + +export type project_manager_taskSumOrderByAggregateInput = { + id?: Prisma.SortOrder + category_id?: Prisma.SortOrder + pos?: Prisma.SortOrder + deadline_watch?: Prisma.SortOrder + priority?: Prisma.SortOrder + create_by?: Prisma.SortOrder +} + + + +export type project_manager_taskSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + category_id?: boolean + pos?: boolean + titre?: boolean + color?: boolean + text_color?: boolean + desc?: boolean + ticket_id?: boolean + date_start?: boolean + date_deadline?: boolean + deadline_watch?: boolean + assign_staff?: boolean + priority?: boolean + done?: boolean + create_by?: boolean + date_creation?: boolean + date_update?: boolean +}, ExtArgs["result"]["project_manager_task"]> + + + +export type project_manager_taskSelectScalar = { + id?: boolean + category_id?: boolean + pos?: boolean + titre?: boolean + color?: boolean + text_color?: boolean + desc?: boolean + ticket_id?: boolean + date_start?: boolean + date_deadline?: boolean + deadline_watch?: boolean + assign_staff?: boolean + priority?: boolean + done?: boolean + create_by?: boolean + date_creation?: boolean + date_update?: boolean +} + +export type project_manager_taskOmit = runtime.Types.Extensions.GetOmit<"id" | "category_id" | "pos" | "titre" | "color" | "text_color" | "desc" | "ticket_id" | "date_start" | "date_deadline" | "deadline_watch" | "assign_staff" | "priority" | "done" | "create_by" | "date_creation" | "date_update", ExtArgs["result"]["project_manager_task"]> + +export type $project_manager_taskPayload = { + name: "project_manager_task" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + category_id: number + pos: number + titre: string + color: string + text_color: string + desc: string + ticket_id: string | null + date_start: string | null + date_deadline: string | null + deadline_watch: number + assign_staff: string | null + priority: number + done: boolean + create_by: number + date_creation: string | null + date_update: string | null + }, ExtArgs["result"]["project_manager_task"]> + composites: {} +} + +export type project_manager_taskGetPayload = runtime.Types.Result.GetResult + +export type project_manager_taskCountArgs = + Omit & { + select?: Project_manager_taskCountAggregateInputType | true + } + +export interface project_manager_taskDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['project_manager_task'], meta: { name: 'project_manager_task' } } + /** + * Find zero or one Project_manager_task that matches the filter. + * @param {project_manager_taskFindUniqueArgs} args - Arguments to find a Project_manager_task + * @example + * // Get one Project_manager_task + * const project_manager_task = await prisma.project_manager_task.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_taskClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Project_manager_task that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {project_manager_taskFindUniqueOrThrowArgs} args - Arguments to find a Project_manager_task + * @example + * // Get one Project_manager_task + * const project_manager_task = await prisma.project_manager_task.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_taskClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project_manager_task 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 {project_manager_taskFindFirstArgs} args - Arguments to find a Project_manager_task + * @example + * // Get one Project_manager_task + * const project_manager_task = await prisma.project_manager_task.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__project_manager_taskClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project_manager_task 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 {project_manager_taskFindFirstOrThrowArgs} args - Arguments to find a Project_manager_task + * @example + * // Get one Project_manager_task + * const project_manager_task = await prisma.project_manager_task.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__project_manager_taskClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Project_manager_tasks 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 {project_manager_taskFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Project_manager_tasks + * const project_manager_tasks = await prisma.project_manager_task.findMany() + * + * // Get first 10 Project_manager_tasks + * const project_manager_tasks = await prisma.project_manager_task.findMany({ take: 10 }) + * + * // Only select the `id` + * const project_manager_taskWithIdOnly = await prisma.project_manager_task.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Project_manager_task. + * @param {project_manager_taskCreateArgs} args - Arguments to create a Project_manager_task. + * @example + * // Create one Project_manager_task + * const Project_manager_task = await prisma.project_manager_task.create({ + * data: { + * // ... data to create a Project_manager_task + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_taskClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Project_manager_tasks. + * @param {project_manager_taskCreateManyArgs} args - Arguments to create many Project_manager_tasks. + * @example + * // Create many Project_manager_tasks + * const project_manager_task = await prisma.project_manager_task.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Project_manager_task. + * @param {project_manager_taskDeleteArgs} args - Arguments to delete one Project_manager_task. + * @example + * // Delete one Project_manager_task + * const Project_manager_task = await prisma.project_manager_task.delete({ + * where: { + * // ... filter to delete one Project_manager_task + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_taskClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Project_manager_task. + * @param {project_manager_taskUpdateArgs} args - Arguments to update one Project_manager_task. + * @example + * // Update one Project_manager_task + * const project_manager_task = await prisma.project_manager_task.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_taskClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Project_manager_tasks. + * @param {project_manager_taskDeleteManyArgs} args - Arguments to filter Project_manager_tasks to delete. + * @example + * // Delete a few Project_manager_tasks + * const { count } = await prisma.project_manager_task.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Project_manager_tasks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_manager_taskUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Project_manager_tasks + * const project_manager_task = await prisma.project_manager_task.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Project_manager_task. + * @param {project_manager_taskUpsertArgs} args - Arguments to update or create a Project_manager_task. + * @example + * // Update or create a Project_manager_task + * const project_manager_task = await prisma.project_manager_task.upsert({ + * create: { + * // ... data to create a Project_manager_task + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Project_manager_task we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__project_manager_taskClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Project_manager_tasks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_manager_taskCountArgs} args - Arguments to filter Project_manager_tasks to count. + * @example + * // Count the number of Project_manager_tasks + * const count = await prisma.project_manager_task.count({ + * where: { + * // ... the filter for the Project_manager_tasks we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Project_manager_task. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Project_manager_taskAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Project_manager_task. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {project_manager_taskGroupByArgs} 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 project_manager_taskGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: project_manager_taskGroupByArgs['orderBy'] } + : { orderBy?: project_manager_taskGroupByArgs['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 ? GetProject_manager_taskGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the project_manager_task model + */ +readonly fields: project_manager_taskFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for project_manager_task. + * 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__project_manager_taskClient 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 project_manager_task model + */ +export interface project_manager_taskFieldRefs { + readonly id: Prisma.FieldRef<"project_manager_task", 'Int'> + readonly category_id: Prisma.FieldRef<"project_manager_task", 'Int'> + readonly pos: Prisma.FieldRef<"project_manager_task", 'Int'> + readonly titre: Prisma.FieldRef<"project_manager_task", 'String'> + readonly color: Prisma.FieldRef<"project_manager_task", 'String'> + readonly text_color: Prisma.FieldRef<"project_manager_task", 'String'> + readonly desc: Prisma.FieldRef<"project_manager_task", 'String'> + readonly ticket_id: Prisma.FieldRef<"project_manager_task", 'String'> + readonly date_start: Prisma.FieldRef<"project_manager_task", 'String'> + readonly date_deadline: Prisma.FieldRef<"project_manager_task", 'String'> + readonly deadline_watch: Prisma.FieldRef<"project_manager_task", 'Int'> + readonly assign_staff: Prisma.FieldRef<"project_manager_task", 'String'> + readonly priority: Prisma.FieldRef<"project_manager_task", 'Int'> + readonly done: Prisma.FieldRef<"project_manager_task", 'Boolean'> + readonly create_by: Prisma.FieldRef<"project_manager_task", 'Int'> + readonly date_creation: Prisma.FieldRef<"project_manager_task", 'String'> + readonly date_update: Prisma.FieldRef<"project_manager_task", 'String'> +} + + +// Custom InputTypes +/** + * project_manager_task findUnique + */ +export type project_manager_taskFindUniqueArgs = { + /** + * Select specific fields to fetch from the project_manager_task + */ + select?: Prisma.project_manager_taskSelect | null + /** + * Omit specific fields from the project_manager_task + */ + omit?: Prisma.project_manager_taskOmit | null + /** + * Filter, which project_manager_task to fetch. + */ + where: Prisma.project_manager_taskWhereUniqueInput +} + +/** + * project_manager_task findUniqueOrThrow + */ +export type project_manager_taskFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the project_manager_task + */ + select?: Prisma.project_manager_taskSelect | null + /** + * Omit specific fields from the project_manager_task + */ + omit?: Prisma.project_manager_taskOmit | null + /** + * Filter, which project_manager_task to fetch. + */ + where: Prisma.project_manager_taskWhereUniqueInput +} + +/** + * project_manager_task findFirst + */ +export type project_manager_taskFindFirstArgs = { + /** + * Select specific fields to fetch from the project_manager_task + */ + select?: Prisma.project_manager_taskSelect | null + /** + * Omit specific fields from the project_manager_task + */ + omit?: Prisma.project_manager_taskOmit | null + /** + * Filter, which project_manager_task to fetch. + */ + where?: Prisma.project_manager_taskWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_tasks to fetch. + */ + orderBy?: Prisma.project_manager_taskOrderByWithRelationInput | Prisma.project_manager_taskOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for project_manager_tasks. + */ + cursor?: Prisma.project_manager_taskWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_tasks 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` project_manager_tasks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of project_manager_tasks. + */ + distinct?: Prisma.Project_manager_taskScalarFieldEnum | Prisma.Project_manager_taskScalarFieldEnum[] +} + +/** + * project_manager_task findFirstOrThrow + */ +export type project_manager_taskFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the project_manager_task + */ + select?: Prisma.project_manager_taskSelect | null + /** + * Omit specific fields from the project_manager_task + */ + omit?: Prisma.project_manager_taskOmit | null + /** + * Filter, which project_manager_task to fetch. + */ + where?: Prisma.project_manager_taskWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_tasks to fetch. + */ + orderBy?: Prisma.project_manager_taskOrderByWithRelationInput | Prisma.project_manager_taskOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for project_manager_tasks. + */ + cursor?: Prisma.project_manager_taskWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_tasks 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` project_manager_tasks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of project_manager_tasks. + */ + distinct?: Prisma.Project_manager_taskScalarFieldEnum | Prisma.Project_manager_taskScalarFieldEnum[] +} + +/** + * project_manager_task findMany + */ +export type project_manager_taskFindManyArgs = { + /** + * Select specific fields to fetch from the project_manager_task + */ + select?: Prisma.project_manager_taskSelect | null + /** + * Omit specific fields from the project_manager_task + */ + omit?: Prisma.project_manager_taskOmit | null + /** + * Filter, which project_manager_tasks to fetch. + */ + where?: Prisma.project_manager_taskWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of project_manager_tasks to fetch. + */ + orderBy?: Prisma.project_manager_taskOrderByWithRelationInput | Prisma.project_manager_taskOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing project_manager_tasks. + */ + cursor?: Prisma.project_manager_taskWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` project_manager_tasks 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` project_manager_tasks. + */ + skip?: number + distinct?: Prisma.Project_manager_taskScalarFieldEnum | Prisma.Project_manager_taskScalarFieldEnum[] +} + +/** + * project_manager_task create + */ +export type project_manager_taskCreateArgs = { + /** + * Select specific fields to fetch from the project_manager_task + */ + select?: Prisma.project_manager_taskSelect | null + /** + * Omit specific fields from the project_manager_task + */ + omit?: Prisma.project_manager_taskOmit | null + /** + * The data needed to create a project_manager_task. + */ + data: Prisma.XOR +} + +/** + * project_manager_task createMany + */ +export type project_manager_taskCreateManyArgs = { + /** + * The data used to create many project_manager_tasks. + */ + data: Prisma.project_manager_taskCreateManyInput | Prisma.project_manager_taskCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * project_manager_task update + */ +export type project_manager_taskUpdateArgs = { + /** + * Select specific fields to fetch from the project_manager_task + */ + select?: Prisma.project_manager_taskSelect | null + /** + * Omit specific fields from the project_manager_task + */ + omit?: Prisma.project_manager_taskOmit | null + /** + * The data needed to update a project_manager_task. + */ + data: Prisma.XOR + /** + * Choose, which project_manager_task to update. + */ + where: Prisma.project_manager_taskWhereUniqueInput +} + +/** + * project_manager_task updateMany + */ +export type project_manager_taskUpdateManyArgs = { + /** + * The data used to update project_manager_tasks. + */ + data: Prisma.XOR + /** + * Filter which project_manager_tasks to update + */ + where?: Prisma.project_manager_taskWhereInput + /** + * Limit how many project_manager_tasks to update. + */ + limit?: number +} + +/** + * project_manager_task upsert + */ +export type project_manager_taskUpsertArgs = { + /** + * Select specific fields to fetch from the project_manager_task + */ + select?: Prisma.project_manager_taskSelect | null + /** + * Omit specific fields from the project_manager_task + */ + omit?: Prisma.project_manager_taskOmit | null + /** + * The filter to search for the project_manager_task to update in case it exists. + */ + where: Prisma.project_manager_taskWhereUniqueInput + /** + * In case the project_manager_task found by the `where` argument doesn't exist, create a new project_manager_task with this data. + */ + create: Prisma.XOR + /** + * In case the project_manager_task was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * project_manager_task delete + */ +export type project_manager_taskDeleteArgs = { + /** + * Select specific fields to fetch from the project_manager_task + */ + select?: Prisma.project_manager_taskSelect | null + /** + * Omit specific fields from the project_manager_task + */ + omit?: Prisma.project_manager_taskOmit | null + /** + * Filter which project_manager_task to delete. + */ + where: Prisma.project_manager_taskWhereUniqueInput +} + +/** + * project_manager_task deleteMany + */ +export type project_manager_taskDeleteManyArgs = { + /** + * Filter which project_manager_tasks to delete + */ + where?: Prisma.project_manager_taskWhereInput + /** + * Limit how many project_manager_tasks to delete. + */ + limit?: number +} + +/** + * project_manager_task without action + */ +export type project_manager_taskDefaultArgs = { + /** + * Select specific fields to fetch from the project_manager_task + */ + select?: Prisma.project_manager_taskSelect | null + /** + * Omit specific fields from the project_manager_task + */ + omit?: Prisma.project_manager_taskOmit | null +} diff --git a/prisma/generated/mariadb/models/promo.ts b/prisma/generated/mariadb/models/promo.ts new file mode 100644 index 0000000..5f53be0 --- /dev/null +++ b/prisma/generated/mariadb/models/promo.ts @@ -0,0 +1,1187 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `promo` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model promo + * + */ +export type promoModel = runtime.Types.Result.DefaultSelection + +export type AggregatePromo = { + _count: PromoCountAggregateOutputType | null + _avg: PromoAvgAggregateOutputType | null + _sum: PromoSumAggregateOutputType | null + _min: PromoMinAggregateOutputType | null + _max: PromoMaxAggregateOutputType | null +} + +export type PromoAvgAggregateOutputType = { + id: number | null + date_start: number | null + date_end: number | null + date_orig: number | null + visible_until: number | null + actif: number | null +} + +export type PromoSumAggregateOutputType = { + id: number | null + date_start: bigint | null + date_end: bigint | null + date_orig: bigint | null + visible_until: bigint | null + actif: number | null +} + +export type PromoMinAggregateOutputType = { + id: number | null + name: string | null + desc: string | null + date_start: bigint | null + date_end: bigint | null + date_orig: bigint | null + visible_until: bigint | null + actif: number | null +} + +export type PromoMaxAggregateOutputType = { + id: number | null + name: string | null + desc: string | null + date_start: bigint | null + date_end: bigint | null + date_orig: bigint | null + visible_until: bigint | null + actif: number | null +} + +export type PromoCountAggregateOutputType = { + id: number + name: number + desc: number + date_start: number + date_end: number + date_orig: number + visible_until: number + actif: number + _all: number +} + + +export type PromoAvgAggregateInputType = { + id?: true + date_start?: true + date_end?: true + date_orig?: true + visible_until?: true + actif?: true +} + +export type PromoSumAggregateInputType = { + id?: true + date_start?: true + date_end?: true + date_orig?: true + visible_until?: true + actif?: true +} + +export type PromoMinAggregateInputType = { + id?: true + name?: true + desc?: true + date_start?: true + date_end?: true + date_orig?: true + visible_until?: true + actif?: true +} + +export type PromoMaxAggregateInputType = { + id?: true + name?: true + desc?: true + date_start?: true + date_end?: true + date_orig?: true + visible_until?: true + actif?: true +} + +export type PromoCountAggregateInputType = { + id?: true + name?: true + desc?: true + date_start?: true + date_end?: true + date_orig?: true + visible_until?: true + actif?: true + _all?: true +} + +export type PromoAggregateArgs = { + /** + * Filter which promo to aggregate. + */ + where?: Prisma.promoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of promos to fetch. + */ + orderBy?: Prisma.promoOrderByWithRelationInput | Prisma.promoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.promoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` promos 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` promos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned promos + **/ + _count?: true | PromoCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: PromoAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: PromoSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: PromoMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: PromoMaxAggregateInputType +} + +export type GetPromoAggregateType = { + [P in keyof T & keyof AggregatePromo]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type promoGroupByArgs = { + where?: Prisma.promoWhereInput + orderBy?: Prisma.promoOrderByWithAggregationInput | Prisma.promoOrderByWithAggregationInput[] + by: Prisma.PromoScalarFieldEnum[] | Prisma.PromoScalarFieldEnum + having?: Prisma.promoScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: PromoCountAggregateInputType | true + _avg?: PromoAvgAggregateInputType + _sum?: PromoSumAggregateInputType + _min?: PromoMinAggregateInputType + _max?: PromoMaxAggregateInputType +} + +export type PromoGroupByOutputType = { + id: number + name: string | null + desc: string | null + date_start: bigint | null + date_end: bigint | null + date_orig: bigint | null + visible_until: bigint | null + actif: number + _count: PromoCountAggregateOutputType | null + _avg: PromoAvgAggregateOutputType | null + _sum: PromoSumAggregateOutputType | null + _min: PromoMinAggregateOutputType | null + _max: PromoMaxAggregateOutputType | null +} + +type GetPromoGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof PromoGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type promoWhereInput = { + AND?: Prisma.promoWhereInput | Prisma.promoWhereInput[] + OR?: Prisma.promoWhereInput[] + NOT?: Prisma.promoWhereInput | Prisma.promoWhereInput[] + id?: Prisma.IntFilter<"promo"> | number + name?: Prisma.StringNullableFilter<"promo"> | string | null + desc?: Prisma.StringNullableFilter<"promo"> | string | null + date_start?: Prisma.BigIntNullableFilter<"promo"> | bigint | number | null + date_end?: Prisma.BigIntNullableFilter<"promo"> | bigint | number | null + date_orig?: Prisma.BigIntNullableFilter<"promo"> | bigint | number | null + visible_until?: Prisma.BigIntNullableFilter<"promo"> | bigint | number | null + actif?: Prisma.IntFilter<"promo"> | number +} + +export type promoOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + date_start?: Prisma.SortOrderInput | Prisma.SortOrder + date_end?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + visible_until?: Prisma.SortOrderInput | Prisma.SortOrder + actif?: Prisma.SortOrder + _relevance?: Prisma.promoOrderByRelevanceInput +} + +export type promoWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.promoWhereInput | Prisma.promoWhereInput[] + OR?: Prisma.promoWhereInput[] + NOT?: Prisma.promoWhereInput | Prisma.promoWhereInput[] + name?: Prisma.StringNullableFilter<"promo"> | string | null + desc?: Prisma.StringNullableFilter<"promo"> | string | null + date_start?: Prisma.BigIntNullableFilter<"promo"> | bigint | number | null + date_end?: Prisma.BigIntNullableFilter<"promo"> | bigint | number | null + date_orig?: Prisma.BigIntNullableFilter<"promo"> | bigint | number | null + visible_until?: Prisma.BigIntNullableFilter<"promo"> | bigint | number | null + actif?: Prisma.IntFilter<"promo"> | number +}, "id"> + +export type promoOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + desc?: Prisma.SortOrderInput | Prisma.SortOrder + date_start?: Prisma.SortOrderInput | Prisma.SortOrder + date_end?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + visible_until?: Prisma.SortOrderInput | Prisma.SortOrder + actif?: Prisma.SortOrder + _count?: Prisma.promoCountOrderByAggregateInput + _avg?: Prisma.promoAvgOrderByAggregateInput + _max?: Prisma.promoMaxOrderByAggregateInput + _min?: Prisma.promoMinOrderByAggregateInput + _sum?: Prisma.promoSumOrderByAggregateInput +} + +export type promoScalarWhereWithAggregatesInput = { + AND?: Prisma.promoScalarWhereWithAggregatesInput | Prisma.promoScalarWhereWithAggregatesInput[] + OR?: Prisma.promoScalarWhereWithAggregatesInput[] + NOT?: Prisma.promoScalarWhereWithAggregatesInput | Prisma.promoScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"promo"> | number + name?: Prisma.StringNullableWithAggregatesFilter<"promo"> | string | null + desc?: Prisma.StringNullableWithAggregatesFilter<"promo"> | string | null + date_start?: Prisma.BigIntNullableWithAggregatesFilter<"promo"> | bigint | number | null + date_end?: Prisma.BigIntNullableWithAggregatesFilter<"promo"> | bigint | number | null + date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"promo"> | bigint | number | null + visible_until?: Prisma.BigIntNullableWithAggregatesFilter<"promo"> | bigint | number | null + actif?: Prisma.IntWithAggregatesFilter<"promo"> | number +} + +export type promoCreateInput = { + name?: string | null + desc?: string | null + date_start?: bigint | number | null + date_end?: bigint | number | null + date_orig?: bigint | number | null + visible_until?: bigint | number | null + actif?: number +} + +export type promoUncheckedCreateInput = { + id?: number + name?: string | null + desc?: string | null + date_start?: bigint | number | null + date_end?: bigint | number | null + date_orig?: bigint | number | null + visible_until?: bigint | number | null + actif?: number +} + +export type promoUpdateInput = { + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_start?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_end?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + visible_until?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + actif?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type promoUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_start?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_end?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + visible_until?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + actif?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type promoCreateManyInput = { + id?: number + name?: string | null + desc?: string | null + date_start?: bigint | number | null + date_end?: bigint | number | null + date_orig?: bigint | number | null + visible_until?: bigint | number | null + actif?: number +} + +export type promoUpdateManyMutationInput = { + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_start?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_end?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + visible_until?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + actif?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type promoUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_start?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_end?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + visible_until?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + actif?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type promoOrderByRelevanceInput = { + fields: Prisma.promoOrderByRelevanceFieldEnum | Prisma.promoOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type promoCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + desc?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + visible_until?: Prisma.SortOrder + actif?: Prisma.SortOrder +} + +export type promoAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + visible_until?: Prisma.SortOrder + actif?: Prisma.SortOrder +} + +export type promoMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + desc?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + visible_until?: Prisma.SortOrder + actif?: Prisma.SortOrder +} + +export type promoMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + desc?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + visible_until?: Prisma.SortOrder + actif?: Prisma.SortOrder +} + +export type promoSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date_start?: Prisma.SortOrder + date_end?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + visible_until?: Prisma.SortOrder + actif?: Prisma.SortOrder +} + + + +export type promoSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + desc?: boolean + date_start?: boolean + date_end?: boolean + date_orig?: boolean + visible_until?: boolean + actif?: boolean +}, ExtArgs["result"]["promo"]> + + + +export type promoSelectScalar = { + id?: boolean + name?: boolean + desc?: boolean + date_start?: boolean + date_end?: boolean + date_orig?: boolean + visible_until?: boolean + actif?: boolean +} + +export type promoOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "desc" | "date_start" | "date_end" | "date_orig" | "visible_until" | "actif", ExtArgs["result"]["promo"]> + +export type $promoPayload = { + name: "promo" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name: string | null + desc: string | null + date_start: bigint | null + date_end: bigint | null + date_orig: bigint | null + visible_until: bigint | null + actif: number + }, ExtArgs["result"]["promo"]> + composites: {} +} + +export type promoGetPayload = runtime.Types.Result.GetResult + +export type promoCountArgs = + Omit & { + select?: PromoCountAggregateInputType | true + } + +export interface promoDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['promo'], meta: { name: 'promo' } } + /** + * Find zero or one Promo that matches the filter. + * @param {promoFindUniqueArgs} args - Arguments to find a Promo + * @example + * // Get one Promo + * const promo = await prisma.promo.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__promoClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Promo that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {promoFindUniqueOrThrowArgs} args - Arguments to find a Promo + * @example + * // Get one Promo + * const promo = await prisma.promo.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__promoClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Promo 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 {promoFindFirstArgs} args - Arguments to find a Promo + * @example + * // Get one Promo + * const promo = await prisma.promo.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__promoClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Promo 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 {promoFindFirstOrThrowArgs} args - Arguments to find a Promo + * @example + * // Get one Promo + * const promo = await prisma.promo.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__promoClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Promos 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 {promoFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Promos + * const promos = await prisma.promo.findMany() + * + * // Get first 10 Promos + * const promos = await prisma.promo.findMany({ take: 10 }) + * + * // Only select the `id` + * const promoWithIdOnly = await prisma.promo.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Promo. + * @param {promoCreateArgs} args - Arguments to create a Promo. + * @example + * // Create one Promo + * const Promo = await prisma.promo.create({ + * data: { + * // ... data to create a Promo + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__promoClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Promos. + * @param {promoCreateManyArgs} args - Arguments to create many Promos. + * @example + * // Create many Promos + * const promo = await prisma.promo.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Promo. + * @param {promoDeleteArgs} args - Arguments to delete one Promo. + * @example + * // Delete one Promo + * const Promo = await prisma.promo.delete({ + * where: { + * // ... filter to delete one Promo + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__promoClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Promo. + * @param {promoUpdateArgs} args - Arguments to update one Promo. + * @example + * // Update one Promo + * const promo = await prisma.promo.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__promoClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Promos. + * @param {promoDeleteManyArgs} args - Arguments to filter Promos to delete. + * @example + * // Delete a few Promos + * const { count } = await prisma.promo.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Promos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {promoUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Promos + * const promo = await prisma.promo.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Promo. + * @param {promoUpsertArgs} args - Arguments to update or create a Promo. + * @example + * // Update or create a Promo + * const promo = await prisma.promo.upsert({ + * create: { + * // ... data to create a Promo + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Promo we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__promoClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Promos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {promoCountArgs} args - Arguments to filter Promos to count. + * @example + * // Count the number of Promos + * const count = await prisma.promo.count({ + * where: { + * // ... the filter for the Promos 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 Promo. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PromoAggregateArgs} 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 Promo. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {promoGroupByArgs} 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 promoGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: promoGroupByArgs['orderBy'] } + : { orderBy?: promoGroupByArgs['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 ? GetPromoGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the promo model + */ +readonly fields: promoFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for promo. + * 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__promoClient 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 promo model + */ +export interface promoFieldRefs { + readonly id: Prisma.FieldRef<"promo", 'Int'> + readonly name: Prisma.FieldRef<"promo", 'String'> + readonly desc: Prisma.FieldRef<"promo", 'String'> + readonly date_start: Prisma.FieldRef<"promo", 'BigInt'> + readonly date_end: Prisma.FieldRef<"promo", 'BigInt'> + readonly date_orig: Prisma.FieldRef<"promo", 'BigInt'> + readonly visible_until: Prisma.FieldRef<"promo", 'BigInt'> + readonly actif: Prisma.FieldRef<"promo", 'Int'> +} + + +// Custom InputTypes +/** + * promo findUnique + */ +export type promoFindUniqueArgs = { + /** + * Select specific fields to fetch from the promo + */ + select?: Prisma.promoSelect | null + /** + * Omit specific fields from the promo + */ + omit?: Prisma.promoOmit | null + /** + * Filter, which promo to fetch. + */ + where: Prisma.promoWhereUniqueInput +} + +/** + * promo findUniqueOrThrow + */ +export type promoFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the promo + */ + select?: Prisma.promoSelect | null + /** + * Omit specific fields from the promo + */ + omit?: Prisma.promoOmit | null + /** + * Filter, which promo to fetch. + */ + where: Prisma.promoWhereUniqueInput +} + +/** + * promo findFirst + */ +export type promoFindFirstArgs = { + /** + * Select specific fields to fetch from the promo + */ + select?: Prisma.promoSelect | null + /** + * Omit specific fields from the promo + */ + omit?: Prisma.promoOmit | null + /** + * Filter, which promo to fetch. + */ + where?: Prisma.promoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of promos to fetch. + */ + orderBy?: Prisma.promoOrderByWithRelationInput | Prisma.promoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for promos. + */ + cursor?: Prisma.promoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` promos 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` promos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of promos. + */ + distinct?: Prisma.PromoScalarFieldEnum | Prisma.PromoScalarFieldEnum[] +} + +/** + * promo findFirstOrThrow + */ +export type promoFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the promo + */ + select?: Prisma.promoSelect | null + /** + * Omit specific fields from the promo + */ + omit?: Prisma.promoOmit | null + /** + * Filter, which promo to fetch. + */ + where?: Prisma.promoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of promos to fetch. + */ + orderBy?: Prisma.promoOrderByWithRelationInput | Prisma.promoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for promos. + */ + cursor?: Prisma.promoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` promos 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` promos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of promos. + */ + distinct?: Prisma.PromoScalarFieldEnum | Prisma.PromoScalarFieldEnum[] +} + +/** + * promo findMany + */ +export type promoFindManyArgs = { + /** + * Select specific fields to fetch from the promo + */ + select?: Prisma.promoSelect | null + /** + * Omit specific fields from the promo + */ + omit?: Prisma.promoOmit | null + /** + * Filter, which promos to fetch. + */ + where?: Prisma.promoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of promos to fetch. + */ + orderBy?: Prisma.promoOrderByWithRelationInput | Prisma.promoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing promos. + */ + cursor?: Prisma.promoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` promos 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` promos. + */ + skip?: number + distinct?: Prisma.PromoScalarFieldEnum | Prisma.PromoScalarFieldEnum[] +} + +/** + * promo create + */ +export type promoCreateArgs = { + /** + * Select specific fields to fetch from the promo + */ + select?: Prisma.promoSelect | null + /** + * Omit specific fields from the promo + */ + omit?: Prisma.promoOmit | null + /** + * The data needed to create a promo. + */ + data?: Prisma.XOR +} + +/** + * promo createMany + */ +export type promoCreateManyArgs = { + /** + * The data used to create many promos. + */ + data: Prisma.promoCreateManyInput | Prisma.promoCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * promo update + */ +export type promoUpdateArgs = { + /** + * Select specific fields to fetch from the promo + */ + select?: Prisma.promoSelect | null + /** + * Omit specific fields from the promo + */ + omit?: Prisma.promoOmit | null + /** + * The data needed to update a promo. + */ + data: Prisma.XOR + /** + * Choose, which promo to update. + */ + where: Prisma.promoWhereUniqueInput +} + +/** + * promo updateMany + */ +export type promoUpdateManyArgs = { + /** + * The data used to update promos. + */ + data: Prisma.XOR + /** + * Filter which promos to update + */ + where?: Prisma.promoWhereInput + /** + * Limit how many promos to update. + */ + limit?: number +} + +/** + * promo upsert + */ +export type promoUpsertArgs = { + /** + * Select specific fields to fetch from the promo + */ + select?: Prisma.promoSelect | null + /** + * Omit specific fields from the promo + */ + omit?: Prisma.promoOmit | null + /** + * The filter to search for the promo to update in case it exists. + */ + where: Prisma.promoWhereUniqueInput + /** + * In case the promo found by the `where` argument doesn't exist, create a new promo with this data. + */ + create: Prisma.XOR + /** + * In case the promo was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * promo delete + */ +export type promoDeleteArgs = { + /** + * Select specific fields to fetch from the promo + */ + select?: Prisma.promoSelect | null + /** + * Omit specific fields from the promo + */ + omit?: Prisma.promoOmit | null + /** + * Filter which promo to delete. + */ + where: Prisma.promoWhereUniqueInput +} + +/** + * promo deleteMany + */ +export type promoDeleteManyArgs = { + /** + * Filter which promos to delete + */ + where?: Prisma.promoWhereInput + /** + * Limit how many promos to delete. + */ + limit?: number +} + +/** + * promo without action + */ +export type promoDefaultArgs = { + /** + * Select specific fields to fetch from the promo + */ + select?: Prisma.promoSelect | null + /** + * Omit specific fields from the promo + */ + omit?: Prisma.promoOmit | null +} diff --git a/prisma/generated/mariadb/models/service.ts b/prisma/generated/mariadb/models/service.ts new file mode 100644 index 0000000..eba2680 --- /dev/null +++ b/prisma/generated/mariadb/models/service.ts @@ -0,0 +1,1684 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `service` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model service + * + */ +export type serviceModel = runtime.Types.Result.DefaultSelection + +export type AggregateService = { + _count: ServiceCountAggregateOutputType | null + _avg: ServiceAvgAggregateOutputType | null + _sum: ServiceSumAggregateOutputType | null + _min: ServiceMinAggregateOutputType | null + _max: ServiceMaxAggregateOutputType | null +} + +export type ServiceAvgAggregateOutputType = { + id: number | null + date_orig: number | null + date_suspended: number | null + date_next_invoice: number | null + date_last_invoice: number | null + delivery_id: number | null + device_id: number | null + product_id: number | null + payment_recurrence: number | null + status: number | null + hijack: number | null + hijack_price: number | null + hijack_download_speed: number | null + hijack_upload_speed: number | null + hijack_quota_day: number | null + hijack_quota_night: number | null + date_end_contract: number | null + actif_until: number | null + forfait_internet: number | null +} + +export type ServiceSumAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + date_suspended: bigint | null + date_next_invoice: bigint | null + date_last_invoice: bigint | null + delivery_id: number | null + device_id: number | null + product_id: number | null + payment_recurrence: number | null + status: number | null + hijack: number | null + hijack_price: number | null + hijack_download_speed: bigint | null + hijack_upload_speed: bigint | null + hijack_quota_day: bigint | null + hijack_quota_night: bigint | null + date_end_contract: bigint | null + actif_until: bigint | null + forfait_internet: number | null +} + +export type ServiceMinAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + date_suspended: bigint | null + date_next_invoice: bigint | null + date_last_invoice: bigint | null + delivery_id: number | null + device_id: number | null + product_id: number | null + comment: string | null + payment_recurrence: number | null + status: number | null + hijack: number | null + hijack_price: number | null + hijack_desc: string | null + hijack_download_speed: bigint | null + hijack_upload_speed: bigint | null + hijack_quota_day: bigint | null + hijack_quota_night: bigint | null + date_end_contract: bigint | null + actif_until: bigint | null + forfait_internet: number | null + radius_user: string | null + radius_pwd: string | null + radius_conso: boolean | null +} + +export type ServiceMaxAggregateOutputType = { + id: bigint | null + date_orig: bigint | null + date_suspended: bigint | null + date_next_invoice: bigint | null + date_last_invoice: bigint | null + delivery_id: number | null + device_id: number | null + product_id: number | null + comment: string | null + payment_recurrence: number | null + status: number | null + hijack: number | null + hijack_price: number | null + hijack_desc: string | null + hijack_download_speed: bigint | null + hijack_upload_speed: bigint | null + hijack_quota_day: bigint | null + hijack_quota_night: bigint | null + date_end_contract: bigint | null + actif_until: bigint | null + forfait_internet: number | null + radius_user: string | null + radius_pwd: string | null + radius_conso: boolean | null +} + +export type ServiceCountAggregateOutputType = { + id: number + date_orig: number + date_suspended: number + date_next_invoice: number + date_last_invoice: number + delivery_id: number + device_id: number + product_id: number + comment: number + payment_recurrence: number + status: number + hijack: number + hijack_price: number + hijack_desc: number + hijack_download_speed: number + hijack_upload_speed: number + hijack_quota_day: number + hijack_quota_night: number + date_end_contract: number + actif_until: number + forfait_internet: number + radius_user: number + radius_pwd: number + radius_conso: number + _all: number +} + + +export type ServiceAvgAggregateInputType = { + id?: true + date_orig?: true + date_suspended?: true + date_next_invoice?: true + date_last_invoice?: true + delivery_id?: true + device_id?: true + product_id?: true + payment_recurrence?: true + status?: true + hijack?: true + hijack_price?: true + hijack_download_speed?: true + hijack_upload_speed?: true + hijack_quota_day?: true + hijack_quota_night?: true + date_end_contract?: true + actif_until?: true + forfait_internet?: true +} + +export type ServiceSumAggregateInputType = { + id?: true + date_orig?: true + date_suspended?: true + date_next_invoice?: true + date_last_invoice?: true + delivery_id?: true + device_id?: true + product_id?: true + payment_recurrence?: true + status?: true + hijack?: true + hijack_price?: true + hijack_download_speed?: true + hijack_upload_speed?: true + hijack_quota_day?: true + hijack_quota_night?: true + date_end_contract?: true + actif_until?: true + forfait_internet?: true +} + +export type ServiceMinAggregateInputType = { + id?: true + date_orig?: true + date_suspended?: true + date_next_invoice?: true + date_last_invoice?: true + delivery_id?: true + device_id?: true + product_id?: true + comment?: true + payment_recurrence?: true + status?: true + hijack?: true + hijack_price?: true + hijack_desc?: true + hijack_download_speed?: true + hijack_upload_speed?: true + hijack_quota_day?: true + hijack_quota_night?: true + date_end_contract?: true + actif_until?: true + forfait_internet?: true + radius_user?: true + radius_pwd?: true + radius_conso?: true +} + +export type ServiceMaxAggregateInputType = { + id?: true + date_orig?: true + date_suspended?: true + date_next_invoice?: true + date_last_invoice?: true + delivery_id?: true + device_id?: true + product_id?: true + comment?: true + payment_recurrence?: true + status?: true + hijack?: true + hijack_price?: true + hijack_desc?: true + hijack_download_speed?: true + hijack_upload_speed?: true + hijack_quota_day?: true + hijack_quota_night?: true + date_end_contract?: true + actif_until?: true + forfait_internet?: true + radius_user?: true + radius_pwd?: true + radius_conso?: true +} + +export type ServiceCountAggregateInputType = { + id?: true + date_orig?: true + date_suspended?: true + date_next_invoice?: true + date_last_invoice?: true + delivery_id?: true + device_id?: true + product_id?: true + comment?: true + payment_recurrence?: true + status?: true + hijack?: true + hijack_price?: true + hijack_desc?: true + hijack_download_speed?: true + hijack_upload_speed?: true + hijack_quota_day?: true + hijack_quota_night?: true + date_end_contract?: true + actif_until?: true + forfait_internet?: true + radius_user?: true + radius_pwd?: true + radius_conso?: true + _all?: true +} + +export type ServiceAggregateArgs = { + /** + * Filter which service to aggregate. + */ + where?: Prisma.serviceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of services to fetch. + */ + orderBy?: Prisma.serviceOrderByWithRelationInput | Prisma.serviceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.serviceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` services 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` services. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned services + **/ + _count?: true | ServiceCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ServiceAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ServiceSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ServiceMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ServiceMaxAggregateInputType +} + +export type GetServiceAggregateType = { + [P in keyof T & keyof AggregateService]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type serviceGroupByArgs = { + where?: Prisma.serviceWhereInput + orderBy?: Prisma.serviceOrderByWithAggregationInput | Prisma.serviceOrderByWithAggregationInput[] + by: Prisma.ServiceScalarFieldEnum[] | Prisma.ServiceScalarFieldEnum + having?: Prisma.serviceScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ServiceCountAggregateInputType | true + _avg?: ServiceAvgAggregateInputType + _sum?: ServiceSumAggregateInputType + _min?: ServiceMinAggregateInputType + _max?: ServiceMaxAggregateInputType +} + +export type ServiceGroupByOutputType = { + id: bigint + date_orig: bigint | null + date_suspended: bigint | null + date_next_invoice: bigint | null + date_last_invoice: bigint | null + delivery_id: number | null + device_id: number + product_id: number | null + comment: string | null + payment_recurrence: number | null + status: number | null + hijack: number + hijack_price: number + hijack_desc: string | null + hijack_download_speed: bigint | null + hijack_upload_speed: bigint | null + hijack_quota_day: bigint | null + hijack_quota_night: bigint | null + date_end_contract: bigint | null + actif_until: bigint | null + forfait_internet: number + radius_user: string + radius_pwd: string + radius_conso: boolean + _count: ServiceCountAggregateOutputType | null + _avg: ServiceAvgAggregateOutputType | null + _sum: ServiceSumAggregateOutputType | null + _min: ServiceMinAggregateOutputType | null + _max: ServiceMaxAggregateOutputType | null +} + +type GetServiceGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ServiceGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type serviceWhereInput = { + AND?: Prisma.serviceWhereInput | Prisma.serviceWhereInput[] + OR?: Prisma.serviceWhereInput[] + NOT?: Prisma.serviceWhereInput | Prisma.serviceWhereInput[] + id?: Prisma.BigIntFilter<"service"> | bigint | number + date_orig?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + date_suspended?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + date_next_invoice?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + date_last_invoice?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + delivery_id?: Prisma.IntNullableFilter<"service"> | number | null + device_id?: Prisma.IntFilter<"service"> | number + product_id?: Prisma.IntNullableFilter<"service"> | number | null + comment?: Prisma.StringNullableFilter<"service"> | string | null + payment_recurrence?: Prisma.IntNullableFilter<"service"> | number | null + status?: Prisma.IntNullableFilter<"service"> | number | null + hijack?: Prisma.IntFilter<"service"> | number + hijack_price?: Prisma.FloatFilter<"service"> | number + hijack_desc?: Prisma.StringNullableFilter<"service"> | string | null + hijack_download_speed?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + hijack_upload_speed?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + hijack_quota_day?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + hijack_quota_night?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + date_end_contract?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + actif_until?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + forfait_internet?: Prisma.IntFilter<"service"> | number + radius_user?: Prisma.StringFilter<"service"> | string + radius_pwd?: Prisma.StringFilter<"service"> | string + radius_conso?: Prisma.BoolFilter<"service"> | boolean +} + +export type serviceOrderByWithRelationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + date_suspended?: Prisma.SortOrderInput | Prisma.SortOrder + date_next_invoice?: Prisma.SortOrderInput | Prisma.SortOrder + date_last_invoice?: Prisma.SortOrderInput | Prisma.SortOrder + delivery_id?: Prisma.SortOrderInput | Prisma.SortOrder + device_id?: Prisma.SortOrder + product_id?: Prisma.SortOrderInput | Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + payment_recurrence?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + hijack?: Prisma.SortOrder + hijack_price?: Prisma.SortOrder + hijack_desc?: Prisma.SortOrderInput | Prisma.SortOrder + hijack_download_speed?: Prisma.SortOrderInput | Prisma.SortOrder + hijack_upload_speed?: Prisma.SortOrderInput | Prisma.SortOrder + hijack_quota_day?: Prisma.SortOrderInput | Prisma.SortOrder + hijack_quota_night?: Prisma.SortOrderInput | Prisma.SortOrder + date_end_contract?: Prisma.SortOrderInput | Prisma.SortOrder + actif_until?: Prisma.SortOrderInput | Prisma.SortOrder + forfait_internet?: Prisma.SortOrder + radius_user?: Prisma.SortOrder + radius_pwd?: Prisma.SortOrder + radius_conso?: Prisma.SortOrder + _relevance?: Prisma.serviceOrderByRelevanceInput +} + +export type serviceWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.serviceWhereInput | Prisma.serviceWhereInput[] + OR?: Prisma.serviceWhereInput[] + NOT?: Prisma.serviceWhereInput | Prisma.serviceWhereInput[] + date_orig?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + date_suspended?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + date_next_invoice?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + date_last_invoice?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + delivery_id?: Prisma.IntNullableFilter<"service"> | number | null + device_id?: Prisma.IntFilter<"service"> | number + product_id?: Prisma.IntNullableFilter<"service"> | number | null + comment?: Prisma.StringNullableFilter<"service"> | string | null + payment_recurrence?: Prisma.IntNullableFilter<"service"> | number | null + status?: Prisma.IntNullableFilter<"service"> | number | null + hijack?: Prisma.IntFilter<"service"> | number + hijack_price?: Prisma.FloatFilter<"service"> | number + hijack_desc?: Prisma.StringNullableFilter<"service"> | string | null + hijack_download_speed?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + hijack_upload_speed?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + hijack_quota_day?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + hijack_quota_night?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + date_end_contract?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + actif_until?: Prisma.BigIntNullableFilter<"service"> | bigint | number | null + forfait_internet?: Prisma.IntFilter<"service"> | number + radius_user?: Prisma.StringFilter<"service"> | string + radius_pwd?: Prisma.StringFilter<"service"> | string + radius_conso?: Prisma.BoolFilter<"service"> | boolean +}, "id"> + +export type serviceOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + date_suspended?: Prisma.SortOrderInput | Prisma.SortOrder + date_next_invoice?: Prisma.SortOrderInput | Prisma.SortOrder + date_last_invoice?: Prisma.SortOrderInput | Prisma.SortOrder + delivery_id?: Prisma.SortOrderInput | Prisma.SortOrder + device_id?: Prisma.SortOrder + product_id?: Prisma.SortOrderInput | Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + payment_recurrence?: Prisma.SortOrderInput | Prisma.SortOrder + status?: Prisma.SortOrderInput | Prisma.SortOrder + hijack?: Prisma.SortOrder + hijack_price?: Prisma.SortOrder + hijack_desc?: Prisma.SortOrderInput | Prisma.SortOrder + hijack_download_speed?: Prisma.SortOrderInput | Prisma.SortOrder + hijack_upload_speed?: Prisma.SortOrderInput | Prisma.SortOrder + hijack_quota_day?: Prisma.SortOrderInput | Prisma.SortOrder + hijack_quota_night?: Prisma.SortOrderInput | Prisma.SortOrder + date_end_contract?: Prisma.SortOrderInput | Prisma.SortOrder + actif_until?: Prisma.SortOrderInput | Prisma.SortOrder + forfait_internet?: Prisma.SortOrder + radius_user?: Prisma.SortOrder + radius_pwd?: Prisma.SortOrder + radius_conso?: Prisma.SortOrder + _count?: Prisma.serviceCountOrderByAggregateInput + _avg?: Prisma.serviceAvgOrderByAggregateInput + _max?: Prisma.serviceMaxOrderByAggregateInput + _min?: Prisma.serviceMinOrderByAggregateInput + _sum?: Prisma.serviceSumOrderByAggregateInput +} + +export type serviceScalarWhereWithAggregatesInput = { + AND?: Prisma.serviceScalarWhereWithAggregatesInput | Prisma.serviceScalarWhereWithAggregatesInput[] + OR?: Prisma.serviceScalarWhereWithAggregatesInput[] + NOT?: Prisma.serviceScalarWhereWithAggregatesInput | Prisma.serviceScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"service"> | bigint | number + date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null + date_suspended?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null + date_next_invoice?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null + date_last_invoice?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null + delivery_id?: Prisma.IntNullableWithAggregatesFilter<"service"> | number | null + device_id?: Prisma.IntWithAggregatesFilter<"service"> | number + product_id?: Prisma.IntNullableWithAggregatesFilter<"service"> | number | null + comment?: Prisma.StringNullableWithAggregatesFilter<"service"> | string | null + payment_recurrence?: Prisma.IntNullableWithAggregatesFilter<"service"> | number | null + status?: Prisma.IntNullableWithAggregatesFilter<"service"> | number | null + hijack?: Prisma.IntWithAggregatesFilter<"service"> | number + hijack_price?: Prisma.FloatWithAggregatesFilter<"service"> | number + hijack_desc?: Prisma.StringNullableWithAggregatesFilter<"service"> | string | null + hijack_download_speed?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null + hijack_upload_speed?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null + hijack_quota_day?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null + hijack_quota_night?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null + date_end_contract?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null + actif_until?: Prisma.BigIntNullableWithAggregatesFilter<"service"> | bigint | number | null + forfait_internet?: Prisma.IntWithAggregatesFilter<"service"> | number + radius_user?: Prisma.StringWithAggregatesFilter<"service"> | string + radius_pwd?: Prisma.StringWithAggregatesFilter<"service"> | string + radius_conso?: Prisma.BoolWithAggregatesFilter<"service"> | boolean +} + +export type serviceCreateInput = { + id?: bigint | number + date_orig?: bigint | number | null + date_suspended?: bigint | number | null + date_next_invoice?: bigint | number | null + date_last_invoice?: bigint | number | null + delivery_id?: number | null + device_id?: number + product_id?: number | null + comment?: string | null + payment_recurrence?: number | null + status?: number | null + hijack?: number + hijack_price?: number + hijack_desc?: string | null + hijack_download_speed?: bigint | number | null + hijack_upload_speed?: bigint | number | null + hijack_quota_day?: bigint | number | null + hijack_quota_night?: bigint | number | null + date_end_contract?: bigint | number | null + actif_until?: bigint | number | null + forfait_internet?: number + radius_user: string + radius_pwd: string + radius_conso?: boolean +} + +export type serviceUncheckedCreateInput = { + id?: bigint | number + date_orig?: bigint | number | null + date_suspended?: bigint | number | null + date_next_invoice?: bigint | number | null + date_last_invoice?: bigint | number | null + delivery_id?: number | null + device_id?: number + product_id?: number | null + comment?: string | null + payment_recurrence?: number | null + status?: number | null + hijack?: number + hijack_price?: number + hijack_desc?: string | null + hijack_download_speed?: bigint | number | null + hijack_upload_speed?: bigint | number | null + hijack_quota_day?: bigint | number | null + hijack_quota_night?: bigint | number | null + date_end_contract?: bigint | number | null + actif_until?: bigint | number | null + forfait_internet?: number + radius_user: string + radius_pwd: string + radius_conso?: boolean +} + +export type serviceUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_suspended?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_next_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_last_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + delivery_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + device_id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + payment_recurrence?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + hijack?: Prisma.IntFieldUpdateOperationsInput | number + hijack_price?: Prisma.FloatFieldUpdateOperationsInput | number + hijack_desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + hijack_download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + hijack_upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + hijack_quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + hijack_quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_end_contract?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + actif_until?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + forfait_internet?: Prisma.IntFieldUpdateOperationsInput | number + radius_user?: Prisma.StringFieldUpdateOperationsInput | string + radius_pwd?: Prisma.StringFieldUpdateOperationsInput | string + radius_conso?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type serviceUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_suspended?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_next_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_last_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + delivery_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + device_id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + payment_recurrence?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + hijack?: Prisma.IntFieldUpdateOperationsInput | number + hijack_price?: Prisma.FloatFieldUpdateOperationsInput | number + hijack_desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + hijack_download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + hijack_upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + hijack_quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + hijack_quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_end_contract?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + actif_until?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + forfait_internet?: Prisma.IntFieldUpdateOperationsInput | number + radius_user?: Prisma.StringFieldUpdateOperationsInput | string + radius_pwd?: Prisma.StringFieldUpdateOperationsInput | string + radius_conso?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type serviceCreateManyInput = { + id?: bigint | number + date_orig?: bigint | number | null + date_suspended?: bigint | number | null + date_next_invoice?: bigint | number | null + date_last_invoice?: bigint | number | null + delivery_id?: number | null + device_id?: number + product_id?: number | null + comment?: string | null + payment_recurrence?: number | null + status?: number | null + hijack?: number + hijack_price?: number + hijack_desc?: string | null + hijack_download_speed?: bigint | number | null + hijack_upload_speed?: bigint | number | null + hijack_quota_day?: bigint | number | null + hijack_quota_night?: bigint | number | null + date_end_contract?: bigint | number | null + actif_until?: bigint | number | null + forfait_internet?: number + radius_user: string + radius_pwd: string + radius_conso?: boolean +} + +export type serviceUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_suspended?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_next_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_last_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + delivery_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + device_id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + payment_recurrence?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + hijack?: Prisma.IntFieldUpdateOperationsInput | number + hijack_price?: Prisma.FloatFieldUpdateOperationsInput | number + hijack_desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + hijack_download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + hijack_upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + hijack_quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + hijack_quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_end_contract?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + actif_until?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + forfait_internet?: Prisma.IntFieldUpdateOperationsInput | number + radius_user?: Prisma.StringFieldUpdateOperationsInput | string + radius_pwd?: Prisma.StringFieldUpdateOperationsInput | string + radius_conso?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type serviceUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_suspended?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_next_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_last_invoice?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + delivery_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + device_id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + payment_recurrence?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + hijack?: Prisma.IntFieldUpdateOperationsInput | number + hijack_price?: Prisma.FloatFieldUpdateOperationsInput | number + hijack_desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + hijack_download_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + hijack_upload_speed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + hijack_quota_day?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + hijack_quota_night?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_end_contract?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + actif_until?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + forfait_internet?: Prisma.IntFieldUpdateOperationsInput | number + radius_user?: Prisma.StringFieldUpdateOperationsInput | string + radius_pwd?: Prisma.StringFieldUpdateOperationsInput | string + radius_conso?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type serviceOrderByRelevanceInput = { + fields: Prisma.serviceOrderByRelevanceFieldEnum | Prisma.serviceOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type serviceCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_suspended?: Prisma.SortOrder + date_next_invoice?: Prisma.SortOrder + date_last_invoice?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + device_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + payment_recurrence?: Prisma.SortOrder + status?: Prisma.SortOrder + hijack?: Prisma.SortOrder + hijack_price?: Prisma.SortOrder + hijack_desc?: Prisma.SortOrder + hijack_download_speed?: Prisma.SortOrder + hijack_upload_speed?: Prisma.SortOrder + hijack_quota_day?: Prisma.SortOrder + hijack_quota_night?: Prisma.SortOrder + date_end_contract?: Prisma.SortOrder + actif_until?: Prisma.SortOrder + forfait_internet?: Prisma.SortOrder + radius_user?: Prisma.SortOrder + radius_pwd?: Prisma.SortOrder + radius_conso?: Prisma.SortOrder +} + +export type serviceAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_suspended?: Prisma.SortOrder + date_next_invoice?: Prisma.SortOrder + date_last_invoice?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + device_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + payment_recurrence?: Prisma.SortOrder + status?: Prisma.SortOrder + hijack?: Prisma.SortOrder + hijack_price?: Prisma.SortOrder + hijack_download_speed?: Prisma.SortOrder + hijack_upload_speed?: Prisma.SortOrder + hijack_quota_day?: Prisma.SortOrder + hijack_quota_night?: Prisma.SortOrder + date_end_contract?: Prisma.SortOrder + actif_until?: Prisma.SortOrder + forfait_internet?: Prisma.SortOrder +} + +export type serviceMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_suspended?: Prisma.SortOrder + date_next_invoice?: Prisma.SortOrder + date_last_invoice?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + device_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + payment_recurrence?: Prisma.SortOrder + status?: Prisma.SortOrder + hijack?: Prisma.SortOrder + hijack_price?: Prisma.SortOrder + hijack_desc?: Prisma.SortOrder + hijack_download_speed?: Prisma.SortOrder + hijack_upload_speed?: Prisma.SortOrder + hijack_quota_day?: Prisma.SortOrder + hijack_quota_night?: Prisma.SortOrder + date_end_contract?: Prisma.SortOrder + actif_until?: Prisma.SortOrder + forfait_internet?: Prisma.SortOrder + radius_user?: Prisma.SortOrder + radius_pwd?: Prisma.SortOrder + radius_conso?: Prisma.SortOrder +} + +export type serviceMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_suspended?: Prisma.SortOrder + date_next_invoice?: Prisma.SortOrder + date_last_invoice?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + device_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + payment_recurrence?: Prisma.SortOrder + status?: Prisma.SortOrder + hijack?: Prisma.SortOrder + hijack_price?: Prisma.SortOrder + hijack_desc?: Prisma.SortOrder + hijack_download_speed?: Prisma.SortOrder + hijack_upload_speed?: Prisma.SortOrder + hijack_quota_day?: Prisma.SortOrder + hijack_quota_night?: Prisma.SortOrder + date_end_contract?: Prisma.SortOrder + actif_until?: Prisma.SortOrder + forfait_internet?: Prisma.SortOrder + radius_user?: Prisma.SortOrder + radius_pwd?: Prisma.SortOrder + radius_conso?: Prisma.SortOrder +} + +export type serviceSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + date_suspended?: Prisma.SortOrder + date_next_invoice?: Prisma.SortOrder + date_last_invoice?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + device_id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + payment_recurrence?: Prisma.SortOrder + status?: Prisma.SortOrder + hijack?: Prisma.SortOrder + hijack_price?: Prisma.SortOrder + hijack_download_speed?: Prisma.SortOrder + hijack_upload_speed?: Prisma.SortOrder + hijack_quota_day?: Prisma.SortOrder + hijack_quota_night?: Prisma.SortOrder + date_end_contract?: Prisma.SortOrder + actif_until?: Prisma.SortOrder + forfait_internet?: Prisma.SortOrder +} + + + +export type serviceSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date_orig?: boolean + date_suspended?: boolean + date_next_invoice?: boolean + date_last_invoice?: boolean + delivery_id?: boolean + device_id?: boolean + product_id?: boolean + comment?: boolean + payment_recurrence?: boolean + status?: boolean + hijack?: boolean + hijack_price?: boolean + hijack_desc?: boolean + hijack_download_speed?: boolean + hijack_upload_speed?: boolean + hijack_quota_day?: boolean + hijack_quota_night?: boolean + date_end_contract?: boolean + actif_until?: boolean + forfait_internet?: boolean + radius_user?: boolean + radius_pwd?: boolean + radius_conso?: boolean +}, ExtArgs["result"]["service"]> + + + +export type serviceSelectScalar = { + id?: boolean + date_orig?: boolean + date_suspended?: boolean + date_next_invoice?: boolean + date_last_invoice?: boolean + delivery_id?: boolean + device_id?: boolean + product_id?: boolean + comment?: boolean + payment_recurrence?: boolean + status?: boolean + hijack?: boolean + hijack_price?: boolean + hijack_desc?: boolean + hijack_download_speed?: boolean + hijack_upload_speed?: boolean + hijack_quota_day?: boolean + hijack_quota_night?: boolean + date_end_contract?: boolean + actif_until?: boolean + forfait_internet?: boolean + radius_user?: boolean + radius_pwd?: boolean + radius_conso?: boolean +} + +export type serviceOmit = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "date_suspended" | "date_next_invoice" | "date_last_invoice" | "delivery_id" | "device_id" | "product_id" | "comment" | "payment_recurrence" | "status" | "hijack" | "hijack_price" | "hijack_desc" | "hijack_download_speed" | "hijack_upload_speed" | "hijack_quota_day" | "hijack_quota_night" | "date_end_contract" | "actif_until" | "forfait_internet" | "radius_user" | "radius_pwd" | "radius_conso", ExtArgs["result"]["service"]> + +export type $servicePayload = { + name: "service" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + date_orig: bigint | null + date_suspended: bigint | null + date_next_invoice: bigint | null + date_last_invoice: bigint | null + delivery_id: number | null + device_id: number + product_id: number | null + comment: string | null + payment_recurrence: number | null + status: number | null + hijack: number + hijack_price: number + hijack_desc: string | null + hijack_download_speed: bigint | null + hijack_upload_speed: bigint | null + hijack_quota_day: bigint | null + hijack_quota_night: bigint | null + date_end_contract: bigint | null + actif_until: bigint | null + forfait_internet: number + radius_user: string + radius_pwd: string + radius_conso: boolean + }, ExtArgs["result"]["service"]> + composites: {} +} + +export type serviceGetPayload = runtime.Types.Result.GetResult + +export type serviceCountArgs = + Omit & { + select?: ServiceCountAggregateInputType | true + } + +export interface serviceDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['service'], meta: { name: 'service' } } + /** + * Find zero or one Service that matches the filter. + * @param {serviceFindUniqueArgs} args - Arguments to find a Service + * @example + * // Get one Service + * const service = await prisma.service.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__serviceClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Service that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {serviceFindUniqueOrThrowArgs} args - Arguments to find a Service + * @example + * // Get one Service + * const service = await prisma.service.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__serviceClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Service 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 {serviceFindFirstArgs} args - Arguments to find a Service + * @example + * // Get one Service + * const service = await prisma.service.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__serviceClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Service 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 {serviceFindFirstOrThrowArgs} args - Arguments to find a Service + * @example + * // Get one Service + * const service = await prisma.service.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__serviceClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Services 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 {serviceFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Services + * const services = await prisma.service.findMany() + * + * // Get first 10 Services + * const services = await prisma.service.findMany({ take: 10 }) + * + * // Only select the `id` + * const serviceWithIdOnly = await prisma.service.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Service. + * @param {serviceCreateArgs} args - Arguments to create a Service. + * @example + * // Create one Service + * const Service = await prisma.service.create({ + * data: { + * // ... data to create a Service + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__serviceClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Services. + * @param {serviceCreateManyArgs} args - Arguments to create many Services. + * @example + * // Create many Services + * const service = await prisma.service.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Service. + * @param {serviceDeleteArgs} args - Arguments to delete one Service. + * @example + * // Delete one Service + * const Service = await prisma.service.delete({ + * where: { + * // ... filter to delete one Service + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__serviceClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Service. + * @param {serviceUpdateArgs} args - Arguments to update one Service. + * @example + * // Update one Service + * const service = await prisma.service.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__serviceClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Services. + * @param {serviceDeleteManyArgs} args - Arguments to filter Services to delete. + * @example + * // Delete a few Services + * const { count } = await prisma.service.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Services. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {serviceUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Services + * const service = await prisma.service.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Service. + * @param {serviceUpsertArgs} args - Arguments to update or create a Service. + * @example + * // Update or create a Service + * const service = await prisma.service.upsert({ + * create: { + * // ... data to create a Service + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Service we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__serviceClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Services. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {serviceCountArgs} args - Arguments to filter Services to count. + * @example + * // Count the number of Services + * const count = await prisma.service.count({ + * where: { + * // ... the filter for the Services 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 Service. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ServiceAggregateArgs} 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 Service. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {serviceGroupByArgs} 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 serviceGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: serviceGroupByArgs['orderBy'] } + : { orderBy?: serviceGroupByArgs['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 ? GetServiceGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the service model + */ +readonly fields: serviceFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for service. + * 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__serviceClient 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 service model + */ +export interface serviceFieldRefs { + readonly id: Prisma.FieldRef<"service", 'BigInt'> + readonly date_orig: Prisma.FieldRef<"service", 'BigInt'> + readonly date_suspended: Prisma.FieldRef<"service", 'BigInt'> + readonly date_next_invoice: Prisma.FieldRef<"service", 'BigInt'> + readonly date_last_invoice: Prisma.FieldRef<"service", 'BigInt'> + readonly delivery_id: Prisma.FieldRef<"service", 'Int'> + readonly device_id: Prisma.FieldRef<"service", 'Int'> + readonly product_id: Prisma.FieldRef<"service", 'Int'> + readonly comment: Prisma.FieldRef<"service", 'String'> + readonly payment_recurrence: Prisma.FieldRef<"service", 'Int'> + readonly status: Prisma.FieldRef<"service", 'Int'> + readonly hijack: Prisma.FieldRef<"service", 'Int'> + readonly hijack_price: Prisma.FieldRef<"service", 'Float'> + readonly hijack_desc: Prisma.FieldRef<"service", 'String'> + readonly hijack_download_speed: Prisma.FieldRef<"service", 'BigInt'> + readonly hijack_upload_speed: Prisma.FieldRef<"service", 'BigInt'> + readonly hijack_quota_day: Prisma.FieldRef<"service", 'BigInt'> + readonly hijack_quota_night: Prisma.FieldRef<"service", 'BigInt'> + readonly date_end_contract: Prisma.FieldRef<"service", 'BigInt'> + readonly actif_until: Prisma.FieldRef<"service", 'BigInt'> + readonly forfait_internet: Prisma.FieldRef<"service", 'Int'> + readonly radius_user: Prisma.FieldRef<"service", 'String'> + readonly radius_pwd: Prisma.FieldRef<"service", 'String'> + readonly radius_conso: Prisma.FieldRef<"service", 'Boolean'> +} + + +// Custom InputTypes +/** + * service findUnique + */ +export type serviceFindUniqueArgs = { + /** + * Select specific fields to fetch from the service + */ + select?: Prisma.serviceSelect | null + /** + * Omit specific fields from the service + */ + omit?: Prisma.serviceOmit | null + /** + * Filter, which service to fetch. + */ + where: Prisma.serviceWhereUniqueInput +} + +/** + * service findUniqueOrThrow + */ +export type serviceFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the service + */ + select?: Prisma.serviceSelect | null + /** + * Omit specific fields from the service + */ + omit?: Prisma.serviceOmit | null + /** + * Filter, which service to fetch. + */ + where: Prisma.serviceWhereUniqueInput +} + +/** + * service findFirst + */ +export type serviceFindFirstArgs = { + /** + * Select specific fields to fetch from the service + */ + select?: Prisma.serviceSelect | null + /** + * Omit specific fields from the service + */ + omit?: Prisma.serviceOmit | null + /** + * Filter, which service to fetch. + */ + where?: Prisma.serviceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of services to fetch. + */ + orderBy?: Prisma.serviceOrderByWithRelationInput | Prisma.serviceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for services. + */ + cursor?: Prisma.serviceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` services 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` services. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of services. + */ + distinct?: Prisma.ServiceScalarFieldEnum | Prisma.ServiceScalarFieldEnum[] +} + +/** + * service findFirstOrThrow + */ +export type serviceFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the service + */ + select?: Prisma.serviceSelect | null + /** + * Omit specific fields from the service + */ + omit?: Prisma.serviceOmit | null + /** + * Filter, which service to fetch. + */ + where?: Prisma.serviceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of services to fetch. + */ + orderBy?: Prisma.serviceOrderByWithRelationInput | Prisma.serviceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for services. + */ + cursor?: Prisma.serviceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` services 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` services. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of services. + */ + distinct?: Prisma.ServiceScalarFieldEnum | Prisma.ServiceScalarFieldEnum[] +} + +/** + * service findMany + */ +export type serviceFindManyArgs = { + /** + * Select specific fields to fetch from the service + */ + select?: Prisma.serviceSelect | null + /** + * Omit specific fields from the service + */ + omit?: Prisma.serviceOmit | null + /** + * Filter, which services to fetch. + */ + where?: Prisma.serviceWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of services to fetch. + */ + orderBy?: Prisma.serviceOrderByWithRelationInput | Prisma.serviceOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing services. + */ + cursor?: Prisma.serviceWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` services 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` services. + */ + skip?: number + distinct?: Prisma.ServiceScalarFieldEnum | Prisma.ServiceScalarFieldEnum[] +} + +/** + * service create + */ +export type serviceCreateArgs = { + /** + * Select specific fields to fetch from the service + */ + select?: Prisma.serviceSelect | null + /** + * Omit specific fields from the service + */ + omit?: Prisma.serviceOmit | null + /** + * The data needed to create a service. + */ + data: Prisma.XOR +} + +/** + * service createMany + */ +export type serviceCreateManyArgs = { + /** + * The data used to create many services. + */ + data: Prisma.serviceCreateManyInput | Prisma.serviceCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * service update + */ +export type serviceUpdateArgs = { + /** + * Select specific fields to fetch from the service + */ + select?: Prisma.serviceSelect | null + /** + * Omit specific fields from the service + */ + omit?: Prisma.serviceOmit | null + /** + * The data needed to update a service. + */ + data: Prisma.XOR + /** + * Choose, which service to update. + */ + where: Prisma.serviceWhereUniqueInput +} + +/** + * service updateMany + */ +export type serviceUpdateManyArgs = { + /** + * The data used to update services. + */ + data: Prisma.XOR + /** + * Filter which services to update + */ + where?: Prisma.serviceWhereInput + /** + * Limit how many services to update. + */ + limit?: number +} + +/** + * service upsert + */ +export type serviceUpsertArgs = { + /** + * Select specific fields to fetch from the service + */ + select?: Prisma.serviceSelect | null + /** + * Omit specific fields from the service + */ + omit?: Prisma.serviceOmit | null + /** + * The filter to search for the service to update in case it exists. + */ + where: Prisma.serviceWhereUniqueInput + /** + * In case the service found by the `where` argument doesn't exist, create a new service with this data. + */ + create: Prisma.XOR + /** + * In case the service was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * service delete + */ +export type serviceDeleteArgs = { + /** + * Select specific fields to fetch from the service + */ + select?: Prisma.serviceSelect | null + /** + * Omit specific fields from the service + */ + omit?: Prisma.serviceOmit | null + /** + * Filter which service to delete. + */ + where: Prisma.serviceWhereUniqueInput +} + +/** + * service deleteMany + */ +export type serviceDeleteManyArgs = { + /** + * Filter which services to delete + */ + where?: Prisma.serviceWhereInput + /** + * Limit how many services to delete. + */ + limit?: number +} + +/** + * service without action + */ +export type serviceDefaultArgs = { + /** + * Select specific fields to fetch from the service + */ + select?: Prisma.serviceSelect | null + /** + * Omit specific fields from the service + */ + omit?: Prisma.serviceOmit | null +} diff --git a/prisma/generated/mariadb/models/service_snapshot.ts b/prisma/generated/mariadb/models/service_snapshot.ts new file mode 100644 index 0000000..6697cb3 --- /dev/null +++ b/prisma/generated/mariadb/models/service_snapshot.ts @@ -0,0 +1,1128 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `service_snapshot` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model service_snapshot + * + */ +export type service_snapshotModel = runtime.Types.Result.DefaultSelection + +export type AggregateService_snapshot = { + _count: Service_snapshotCountAggregateOutputType | null + _avg: Service_snapshotAvgAggregateOutputType | null + _sum: Service_snapshotSumAggregateOutputType | null + _min: Service_snapshotMinAggregateOutputType | null + _max: Service_snapshotMaxAggregateOutputType | null +} + +export type Service_snapshotAvgAggregateOutputType = { + id: number | null + date: number | null + account_id: number | null + service_id: number | null + quota_day: number | null + quota_night: number | null +} + +export type Service_snapshotSumAggregateOutputType = { + id: number | null + date: bigint | null + account_id: number | null + service_id: number | null + quota_day: bigint | null + quota_night: bigint | null +} + +export type Service_snapshotMinAggregateOutputType = { + id: number | null + date: bigint | null + account_id: number | null + service_id: number | null + quota_day: bigint | null + quota_night: bigint | null +} + +export type Service_snapshotMaxAggregateOutputType = { + id: number | null + date: bigint | null + account_id: number | null + service_id: number | null + quota_day: bigint | null + quota_night: bigint | null +} + +export type Service_snapshotCountAggregateOutputType = { + id: number + date: number + account_id: number + service_id: number + quota_day: number + quota_night: number + _all: number +} + + +export type Service_snapshotAvgAggregateInputType = { + id?: true + date?: true + account_id?: true + service_id?: true + quota_day?: true + quota_night?: true +} + +export type Service_snapshotSumAggregateInputType = { + id?: true + date?: true + account_id?: true + service_id?: true + quota_day?: true + quota_night?: true +} + +export type Service_snapshotMinAggregateInputType = { + id?: true + date?: true + account_id?: true + service_id?: true + quota_day?: true + quota_night?: true +} + +export type Service_snapshotMaxAggregateInputType = { + id?: true + date?: true + account_id?: true + service_id?: true + quota_day?: true + quota_night?: true +} + +export type Service_snapshotCountAggregateInputType = { + id?: true + date?: true + account_id?: true + service_id?: true + quota_day?: true + quota_night?: true + _all?: true +} + +export type Service_snapshotAggregateArgs = { + /** + * Filter which service_snapshot to aggregate. + */ + where?: Prisma.service_snapshotWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of service_snapshots to fetch. + */ + orderBy?: Prisma.service_snapshotOrderByWithRelationInput | Prisma.service_snapshotOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.service_snapshotWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` service_snapshots 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` service_snapshots. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned service_snapshots + **/ + _count?: true | Service_snapshotCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Service_snapshotAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Service_snapshotSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Service_snapshotMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Service_snapshotMaxAggregateInputType +} + +export type GetService_snapshotAggregateType = { + [P in keyof T & keyof AggregateService_snapshot]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type service_snapshotGroupByArgs = { + where?: Prisma.service_snapshotWhereInput + orderBy?: Prisma.service_snapshotOrderByWithAggregationInput | Prisma.service_snapshotOrderByWithAggregationInput[] + by: Prisma.Service_snapshotScalarFieldEnum[] | Prisma.Service_snapshotScalarFieldEnum + having?: Prisma.service_snapshotScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Service_snapshotCountAggregateInputType | true + _avg?: Service_snapshotAvgAggregateInputType + _sum?: Service_snapshotSumAggregateInputType + _min?: Service_snapshotMinAggregateInputType + _max?: Service_snapshotMaxAggregateInputType +} + +export type Service_snapshotGroupByOutputType = { + id: number + date: bigint + account_id: number + service_id: number + quota_day: bigint + quota_night: bigint + _count: Service_snapshotCountAggregateOutputType | null + _avg: Service_snapshotAvgAggregateOutputType | null + _sum: Service_snapshotSumAggregateOutputType | null + _min: Service_snapshotMinAggregateOutputType | null + _max: Service_snapshotMaxAggregateOutputType | null +} + +type GetService_snapshotGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Service_snapshotGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type service_snapshotWhereInput = { + AND?: Prisma.service_snapshotWhereInput | Prisma.service_snapshotWhereInput[] + OR?: Prisma.service_snapshotWhereInput[] + NOT?: Prisma.service_snapshotWhereInput | Prisma.service_snapshotWhereInput[] + id?: Prisma.IntFilter<"service_snapshot"> | number + date?: Prisma.BigIntFilter<"service_snapshot"> | bigint | number + account_id?: Prisma.IntFilter<"service_snapshot"> | number + service_id?: Prisma.IntFilter<"service_snapshot"> | number + quota_day?: Prisma.BigIntFilter<"service_snapshot"> | bigint | number + quota_night?: Prisma.BigIntFilter<"service_snapshot"> | bigint | number +} + +export type service_snapshotOrderByWithRelationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + quota_day?: Prisma.SortOrder + quota_night?: Prisma.SortOrder +} + +export type service_snapshotWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.service_snapshotWhereInput | Prisma.service_snapshotWhereInput[] + OR?: Prisma.service_snapshotWhereInput[] + NOT?: Prisma.service_snapshotWhereInput | Prisma.service_snapshotWhereInput[] + date?: Prisma.BigIntFilter<"service_snapshot"> | bigint | number + account_id?: Prisma.IntFilter<"service_snapshot"> | number + service_id?: Prisma.IntFilter<"service_snapshot"> | number + quota_day?: Prisma.BigIntFilter<"service_snapshot"> | bigint | number + quota_night?: Prisma.BigIntFilter<"service_snapshot"> | bigint | number +}, "id"> + +export type service_snapshotOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + quota_day?: Prisma.SortOrder + quota_night?: Prisma.SortOrder + _count?: Prisma.service_snapshotCountOrderByAggregateInput + _avg?: Prisma.service_snapshotAvgOrderByAggregateInput + _max?: Prisma.service_snapshotMaxOrderByAggregateInput + _min?: Prisma.service_snapshotMinOrderByAggregateInput + _sum?: Prisma.service_snapshotSumOrderByAggregateInput +} + +export type service_snapshotScalarWhereWithAggregatesInput = { + AND?: Prisma.service_snapshotScalarWhereWithAggregatesInput | Prisma.service_snapshotScalarWhereWithAggregatesInput[] + OR?: Prisma.service_snapshotScalarWhereWithAggregatesInput[] + NOT?: Prisma.service_snapshotScalarWhereWithAggregatesInput | Prisma.service_snapshotScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"service_snapshot"> | number + date?: Prisma.BigIntWithAggregatesFilter<"service_snapshot"> | bigint | number + account_id?: Prisma.IntWithAggregatesFilter<"service_snapshot"> | number + service_id?: Prisma.IntWithAggregatesFilter<"service_snapshot"> | number + quota_day?: Prisma.BigIntWithAggregatesFilter<"service_snapshot"> | bigint | number + quota_night?: Prisma.BigIntWithAggregatesFilter<"service_snapshot"> | bigint | number +} + +export type service_snapshotCreateInput = { + date: bigint | number + account_id: number + service_id: number + quota_day?: bigint | number + quota_night?: bigint | number +} + +export type service_snapshotUncheckedCreateInput = { + id?: number + date: bigint | number + account_id: number + service_id: number + quota_day?: bigint | number + quota_night?: bigint | number +} + +export type service_snapshotUpdateInput = { + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + quota_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + quota_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type service_snapshotUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + quota_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + quota_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type service_snapshotCreateManyInput = { + id?: number + date: bigint | number + account_id: number + service_id: number + quota_day?: bigint | number + quota_night?: bigint | number +} + +export type service_snapshotUpdateManyMutationInput = { + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + quota_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + quota_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type service_snapshotUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + quota_day?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + quota_night?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type service_snapshotCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + quota_day?: Prisma.SortOrder + quota_night?: Prisma.SortOrder +} + +export type service_snapshotAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + quota_day?: Prisma.SortOrder + quota_night?: Prisma.SortOrder +} + +export type service_snapshotMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + quota_day?: Prisma.SortOrder + quota_night?: Prisma.SortOrder +} + +export type service_snapshotMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + quota_day?: Prisma.SortOrder + quota_night?: Prisma.SortOrder +} + +export type service_snapshotSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + account_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + quota_day?: Prisma.SortOrder + quota_night?: Prisma.SortOrder +} + + + +export type service_snapshotSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date?: boolean + account_id?: boolean + service_id?: boolean + quota_day?: boolean + quota_night?: boolean +}, ExtArgs["result"]["service_snapshot"]> + + + +export type service_snapshotSelectScalar = { + id?: boolean + date?: boolean + account_id?: boolean + service_id?: boolean + quota_day?: boolean + quota_night?: boolean +} + +export type service_snapshotOmit = runtime.Types.Extensions.GetOmit<"id" | "date" | "account_id" | "service_id" | "quota_day" | "quota_night", ExtArgs["result"]["service_snapshot"]> + +export type $service_snapshotPayload = { + name: "service_snapshot" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + date: bigint + account_id: number + service_id: number + quota_day: bigint + quota_night: bigint + }, ExtArgs["result"]["service_snapshot"]> + composites: {} +} + +export type service_snapshotGetPayload = runtime.Types.Result.GetResult + +export type service_snapshotCountArgs = + Omit & { + select?: Service_snapshotCountAggregateInputType | true + } + +export interface service_snapshotDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['service_snapshot'], meta: { name: 'service_snapshot' } } + /** + * Find zero or one Service_snapshot that matches the filter. + * @param {service_snapshotFindUniqueArgs} args - Arguments to find a Service_snapshot + * @example + * // Get one Service_snapshot + * const service_snapshot = await prisma.service_snapshot.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Service_snapshot that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {service_snapshotFindUniqueOrThrowArgs} args - Arguments to find a Service_snapshot + * @example + * // Get one Service_snapshot + * const service_snapshot = await prisma.service_snapshot.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Service_snapshot 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 {service_snapshotFindFirstArgs} args - Arguments to find a Service_snapshot + * @example + * // Get one Service_snapshot + * const service_snapshot = await prisma.service_snapshot.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Service_snapshot 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 {service_snapshotFindFirstOrThrowArgs} args - Arguments to find a Service_snapshot + * @example + * // Get one Service_snapshot + * const service_snapshot = await prisma.service_snapshot.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Service_snapshots 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 {service_snapshotFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Service_snapshots + * const service_snapshots = await prisma.service_snapshot.findMany() + * + * // Get first 10 Service_snapshots + * const service_snapshots = await prisma.service_snapshot.findMany({ take: 10 }) + * + * // Only select the `id` + * const service_snapshotWithIdOnly = await prisma.service_snapshot.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Service_snapshot. + * @param {service_snapshotCreateArgs} args - Arguments to create a Service_snapshot. + * @example + * // Create one Service_snapshot + * const Service_snapshot = await prisma.service_snapshot.create({ + * data: { + * // ... data to create a Service_snapshot + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Service_snapshots. + * @param {service_snapshotCreateManyArgs} args - Arguments to create many Service_snapshots. + * @example + * // Create many Service_snapshots + * const service_snapshot = await prisma.service_snapshot.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Service_snapshot. + * @param {service_snapshotDeleteArgs} args - Arguments to delete one Service_snapshot. + * @example + * // Delete one Service_snapshot + * const Service_snapshot = await prisma.service_snapshot.delete({ + * where: { + * // ... filter to delete one Service_snapshot + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Service_snapshot. + * @param {service_snapshotUpdateArgs} args - Arguments to update one Service_snapshot. + * @example + * // Update one Service_snapshot + * const service_snapshot = await prisma.service_snapshot.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Service_snapshots. + * @param {service_snapshotDeleteManyArgs} args - Arguments to filter Service_snapshots to delete. + * @example + * // Delete a few Service_snapshots + * const { count } = await prisma.service_snapshot.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Service_snapshots. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {service_snapshotUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Service_snapshots + * const service_snapshot = await prisma.service_snapshot.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Service_snapshot. + * @param {service_snapshotUpsertArgs} args - Arguments to update or create a Service_snapshot. + * @example + * // Update or create a Service_snapshot + * const service_snapshot = await prisma.service_snapshot.upsert({ + * create: { + * // ... data to create a Service_snapshot + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Service_snapshot we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__service_snapshotClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Service_snapshots. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {service_snapshotCountArgs} args - Arguments to filter Service_snapshots to count. + * @example + * // Count the number of Service_snapshots + * const count = await prisma.service_snapshot.count({ + * where: { + * // ... the filter for the Service_snapshots 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 Service_snapshot. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Service_snapshotAggregateArgs} 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 Service_snapshot. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {service_snapshotGroupByArgs} 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 service_snapshotGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: service_snapshotGroupByArgs['orderBy'] } + : { orderBy?: service_snapshotGroupByArgs['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 ? GetService_snapshotGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the service_snapshot model + */ +readonly fields: service_snapshotFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for service_snapshot. + * 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__service_snapshotClient 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 service_snapshot model + */ +export interface service_snapshotFieldRefs { + readonly id: Prisma.FieldRef<"service_snapshot", 'Int'> + readonly date: Prisma.FieldRef<"service_snapshot", 'BigInt'> + readonly account_id: Prisma.FieldRef<"service_snapshot", 'Int'> + readonly service_id: Prisma.FieldRef<"service_snapshot", 'Int'> + readonly quota_day: Prisma.FieldRef<"service_snapshot", 'BigInt'> + readonly quota_night: Prisma.FieldRef<"service_snapshot", 'BigInt'> +} + + +// Custom InputTypes +/** + * service_snapshot findUnique + */ +export type service_snapshotFindUniqueArgs = { + /** + * Select specific fields to fetch from the service_snapshot + */ + select?: Prisma.service_snapshotSelect | null + /** + * Omit specific fields from the service_snapshot + */ + omit?: Prisma.service_snapshotOmit | null + /** + * Filter, which service_snapshot to fetch. + */ + where: Prisma.service_snapshotWhereUniqueInput +} + +/** + * service_snapshot findUniqueOrThrow + */ +export type service_snapshotFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the service_snapshot + */ + select?: Prisma.service_snapshotSelect | null + /** + * Omit specific fields from the service_snapshot + */ + omit?: Prisma.service_snapshotOmit | null + /** + * Filter, which service_snapshot to fetch. + */ + where: Prisma.service_snapshotWhereUniqueInput +} + +/** + * service_snapshot findFirst + */ +export type service_snapshotFindFirstArgs = { + /** + * Select specific fields to fetch from the service_snapshot + */ + select?: Prisma.service_snapshotSelect | null + /** + * Omit specific fields from the service_snapshot + */ + omit?: Prisma.service_snapshotOmit | null + /** + * Filter, which service_snapshot to fetch. + */ + where?: Prisma.service_snapshotWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of service_snapshots to fetch. + */ + orderBy?: Prisma.service_snapshotOrderByWithRelationInput | Prisma.service_snapshotOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for service_snapshots. + */ + cursor?: Prisma.service_snapshotWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` service_snapshots 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` service_snapshots. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of service_snapshots. + */ + distinct?: Prisma.Service_snapshotScalarFieldEnum | Prisma.Service_snapshotScalarFieldEnum[] +} + +/** + * service_snapshot findFirstOrThrow + */ +export type service_snapshotFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the service_snapshot + */ + select?: Prisma.service_snapshotSelect | null + /** + * Omit specific fields from the service_snapshot + */ + omit?: Prisma.service_snapshotOmit | null + /** + * Filter, which service_snapshot to fetch. + */ + where?: Prisma.service_snapshotWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of service_snapshots to fetch. + */ + orderBy?: Prisma.service_snapshotOrderByWithRelationInput | Prisma.service_snapshotOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for service_snapshots. + */ + cursor?: Prisma.service_snapshotWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` service_snapshots 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` service_snapshots. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of service_snapshots. + */ + distinct?: Prisma.Service_snapshotScalarFieldEnum | Prisma.Service_snapshotScalarFieldEnum[] +} + +/** + * service_snapshot findMany + */ +export type service_snapshotFindManyArgs = { + /** + * Select specific fields to fetch from the service_snapshot + */ + select?: Prisma.service_snapshotSelect | null + /** + * Omit specific fields from the service_snapshot + */ + omit?: Prisma.service_snapshotOmit | null + /** + * Filter, which service_snapshots to fetch. + */ + where?: Prisma.service_snapshotWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of service_snapshots to fetch. + */ + orderBy?: Prisma.service_snapshotOrderByWithRelationInput | Prisma.service_snapshotOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing service_snapshots. + */ + cursor?: Prisma.service_snapshotWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` service_snapshots 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` service_snapshots. + */ + skip?: number + distinct?: Prisma.Service_snapshotScalarFieldEnum | Prisma.Service_snapshotScalarFieldEnum[] +} + +/** + * service_snapshot create + */ +export type service_snapshotCreateArgs = { + /** + * Select specific fields to fetch from the service_snapshot + */ + select?: Prisma.service_snapshotSelect | null + /** + * Omit specific fields from the service_snapshot + */ + omit?: Prisma.service_snapshotOmit | null + /** + * The data needed to create a service_snapshot. + */ + data: Prisma.XOR +} + +/** + * service_snapshot createMany + */ +export type service_snapshotCreateManyArgs = { + /** + * The data used to create many service_snapshots. + */ + data: Prisma.service_snapshotCreateManyInput | Prisma.service_snapshotCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * service_snapshot update + */ +export type service_snapshotUpdateArgs = { + /** + * Select specific fields to fetch from the service_snapshot + */ + select?: Prisma.service_snapshotSelect | null + /** + * Omit specific fields from the service_snapshot + */ + omit?: Prisma.service_snapshotOmit | null + /** + * The data needed to update a service_snapshot. + */ + data: Prisma.XOR + /** + * Choose, which service_snapshot to update. + */ + where: Prisma.service_snapshotWhereUniqueInput +} + +/** + * service_snapshot updateMany + */ +export type service_snapshotUpdateManyArgs = { + /** + * The data used to update service_snapshots. + */ + data: Prisma.XOR + /** + * Filter which service_snapshots to update + */ + where?: Prisma.service_snapshotWhereInput + /** + * Limit how many service_snapshots to update. + */ + limit?: number +} + +/** + * service_snapshot upsert + */ +export type service_snapshotUpsertArgs = { + /** + * Select specific fields to fetch from the service_snapshot + */ + select?: Prisma.service_snapshotSelect | null + /** + * Omit specific fields from the service_snapshot + */ + omit?: Prisma.service_snapshotOmit | null + /** + * The filter to search for the service_snapshot to update in case it exists. + */ + where: Prisma.service_snapshotWhereUniqueInput + /** + * In case the service_snapshot found by the `where` argument doesn't exist, create a new service_snapshot with this data. + */ + create: Prisma.XOR + /** + * In case the service_snapshot was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * service_snapshot delete + */ +export type service_snapshotDeleteArgs = { + /** + * Select specific fields to fetch from the service_snapshot + */ + select?: Prisma.service_snapshotSelect | null + /** + * Omit specific fields from the service_snapshot + */ + omit?: Prisma.service_snapshotOmit | null + /** + * Filter which service_snapshot to delete. + */ + where: Prisma.service_snapshotWhereUniqueInput +} + +/** + * service_snapshot deleteMany + */ +export type service_snapshotDeleteManyArgs = { + /** + * Filter which service_snapshots to delete + */ + where?: Prisma.service_snapshotWhereInput + /** + * Limit how many service_snapshots to delete. + */ + limit?: number +} + +/** + * service_snapshot without action + */ +export type service_snapshotDefaultArgs = { + /** + * Select specific fields to fetch from the service_snapshot + */ + select?: Prisma.service_snapshotSelect | null + /** + * Omit specific fields from the service_snapshot + */ + omit?: Prisma.service_snapshotOmit | null +} diff --git a/prisma/generated/mariadb/models/sommaire_porte.ts b/prisma/generated/mariadb/models/sommaire_porte.ts new file mode 100644 index 0000000..648a601 --- /dev/null +++ b/prisma/generated/mariadb/models/sommaire_porte.ts @@ -0,0 +1,1259 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `sommaire_porte` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model sommaire_porte + * + */ +export type sommaire_porteModel = runtime.Types.Result.DefaultSelection + +export type AggregateSommaire_porte = { + _count: Sommaire_porteCountAggregateOutputType | null + _avg: Sommaire_porteAvgAggregateOutputType | null + _sum: Sommaire_porteSumAggregateOutputType | null + _min: Sommaire_porteMinAggregateOutputType | null + _max: Sommaire_porteMaxAggregateOutputType | null +} + +export type Sommaire_porteAvgAggregateOutputType = { + id: number | null + fibre_id: number | null + contest_adresse: number | null + new_adresse: number | null + placemarks_id: number | null +} + +export type Sommaire_porteSumAggregateOutputType = { + id: number | null + fibre_id: number | null + contest_adresse: number | null + new_adresse: number | null + placemarks_id: bigint | null +} + +export type Sommaire_porteMinAggregateOutputType = { + id: number | null + fibre_id: number | null + id_adresse: string | null + id_subvention: string | null + adresse_subvention: string | null + ville_subvention: string | null + latitude: string | null + longitude: string | null + contest_adresse: number | null + new_adresse: number | null + placemarks_id: bigint | null +} + +export type Sommaire_porteMaxAggregateOutputType = { + id: number | null + fibre_id: number | null + id_adresse: string | null + id_subvention: string | null + adresse_subvention: string | null + ville_subvention: string | null + latitude: string | null + longitude: string | null + contest_adresse: number | null + new_adresse: number | null + placemarks_id: bigint | null +} + +export type Sommaire_porteCountAggregateOutputType = { + id: number + fibre_id: number + id_adresse: number + id_subvention: number + adresse_subvention: number + ville_subvention: number + latitude: number + longitude: number + contest_adresse: number + new_adresse: number + placemarks_id: number + _all: number +} + + +export type Sommaire_porteAvgAggregateInputType = { + id?: true + fibre_id?: true + contest_adresse?: true + new_adresse?: true + placemarks_id?: true +} + +export type Sommaire_porteSumAggregateInputType = { + id?: true + fibre_id?: true + contest_adresse?: true + new_adresse?: true + placemarks_id?: true +} + +export type Sommaire_porteMinAggregateInputType = { + id?: true + fibre_id?: true + id_adresse?: true + id_subvention?: true + adresse_subvention?: true + ville_subvention?: true + latitude?: true + longitude?: true + contest_adresse?: true + new_adresse?: true + placemarks_id?: true +} + +export type Sommaire_porteMaxAggregateInputType = { + id?: true + fibre_id?: true + id_adresse?: true + id_subvention?: true + adresse_subvention?: true + ville_subvention?: true + latitude?: true + longitude?: true + contest_adresse?: true + new_adresse?: true + placemarks_id?: true +} + +export type Sommaire_porteCountAggregateInputType = { + id?: true + fibre_id?: true + id_adresse?: true + id_subvention?: true + adresse_subvention?: true + ville_subvention?: true + latitude?: true + longitude?: true + contest_adresse?: true + new_adresse?: true + placemarks_id?: true + _all?: true +} + +export type Sommaire_porteAggregateArgs = { + /** + * Filter which sommaire_porte to aggregate. + */ + where?: Prisma.sommaire_porteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of sommaire_portes to fetch. + */ + orderBy?: Prisma.sommaire_porteOrderByWithRelationInput | Prisma.sommaire_porteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.sommaire_porteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` sommaire_portes 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` sommaire_portes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned sommaire_portes + **/ + _count?: true | Sommaire_porteCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Sommaire_porteAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Sommaire_porteSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Sommaire_porteMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Sommaire_porteMaxAggregateInputType +} + +export type GetSommaire_porteAggregateType = { + [P in keyof T & keyof AggregateSommaire_porte]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type sommaire_porteGroupByArgs = { + where?: Prisma.sommaire_porteWhereInput + orderBy?: Prisma.sommaire_porteOrderByWithAggregationInput | Prisma.sommaire_porteOrderByWithAggregationInput[] + by: Prisma.Sommaire_porteScalarFieldEnum[] | Prisma.Sommaire_porteScalarFieldEnum + having?: Prisma.sommaire_porteScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Sommaire_porteCountAggregateInputType | true + _avg?: Sommaire_porteAvgAggregateInputType + _sum?: Sommaire_porteSumAggregateInputType + _min?: Sommaire_porteMinAggregateInputType + _max?: Sommaire_porteMaxAggregateInputType +} + +export type Sommaire_porteGroupByOutputType = { + id: number + fibre_id: number + id_adresse: string + id_subvention: string + adresse_subvention: string + ville_subvention: string + latitude: string + longitude: string + contest_adresse: number + new_adresse: number + placemarks_id: bigint + _count: Sommaire_porteCountAggregateOutputType | null + _avg: Sommaire_porteAvgAggregateOutputType | null + _sum: Sommaire_porteSumAggregateOutputType | null + _min: Sommaire_porteMinAggregateOutputType | null + _max: Sommaire_porteMaxAggregateOutputType | null +} + +type GetSommaire_porteGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Sommaire_porteGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type sommaire_porteWhereInput = { + AND?: Prisma.sommaire_porteWhereInput | Prisma.sommaire_porteWhereInput[] + OR?: Prisma.sommaire_porteWhereInput[] + NOT?: Prisma.sommaire_porteWhereInput | Prisma.sommaire_porteWhereInput[] + id?: Prisma.IntFilter<"sommaire_porte"> | number + fibre_id?: Prisma.IntFilter<"sommaire_porte"> | number + id_adresse?: Prisma.StringFilter<"sommaire_porte"> | string + id_subvention?: Prisma.StringFilter<"sommaire_porte"> | string + adresse_subvention?: Prisma.StringFilter<"sommaire_porte"> | string + ville_subvention?: Prisma.StringFilter<"sommaire_porte"> | string + latitude?: Prisma.StringFilter<"sommaire_porte"> | string + longitude?: Prisma.StringFilter<"sommaire_porte"> | string + contest_adresse?: Prisma.IntFilter<"sommaire_porte"> | number + new_adresse?: Prisma.IntFilter<"sommaire_porte"> | number + placemarks_id?: Prisma.BigIntFilter<"sommaire_porte"> | bigint | number +} + +export type sommaire_porteOrderByWithRelationInput = { + id?: Prisma.SortOrder + fibre_id?: Prisma.SortOrder + id_adresse?: Prisma.SortOrder + id_subvention?: Prisma.SortOrder + adresse_subvention?: Prisma.SortOrder + ville_subvention?: Prisma.SortOrder + latitude?: Prisma.SortOrder + longitude?: Prisma.SortOrder + contest_adresse?: Prisma.SortOrder + new_adresse?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder + _relevance?: Prisma.sommaire_porteOrderByRelevanceInput +} + +export type sommaire_porteWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.sommaire_porteWhereInput | Prisma.sommaire_porteWhereInput[] + OR?: Prisma.sommaire_porteWhereInput[] + NOT?: Prisma.sommaire_porteWhereInput | Prisma.sommaire_porteWhereInput[] + fibre_id?: Prisma.IntFilter<"sommaire_porte"> | number + id_adresse?: Prisma.StringFilter<"sommaire_porte"> | string + id_subvention?: Prisma.StringFilter<"sommaire_porte"> | string + adresse_subvention?: Prisma.StringFilter<"sommaire_porte"> | string + ville_subvention?: Prisma.StringFilter<"sommaire_porte"> | string + latitude?: Prisma.StringFilter<"sommaire_porte"> | string + longitude?: Prisma.StringFilter<"sommaire_porte"> | string + contest_adresse?: Prisma.IntFilter<"sommaire_porte"> | number + new_adresse?: Prisma.IntFilter<"sommaire_porte"> | number + placemarks_id?: Prisma.BigIntFilter<"sommaire_porte"> | bigint | number +}, "id"> + +export type sommaire_porteOrderByWithAggregationInput = { + id?: Prisma.SortOrder + fibre_id?: Prisma.SortOrder + id_adresse?: Prisma.SortOrder + id_subvention?: Prisma.SortOrder + adresse_subvention?: Prisma.SortOrder + ville_subvention?: Prisma.SortOrder + latitude?: Prisma.SortOrder + longitude?: Prisma.SortOrder + contest_adresse?: Prisma.SortOrder + new_adresse?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder + _count?: Prisma.sommaire_porteCountOrderByAggregateInput + _avg?: Prisma.sommaire_porteAvgOrderByAggregateInput + _max?: Prisma.sommaire_porteMaxOrderByAggregateInput + _min?: Prisma.sommaire_porteMinOrderByAggregateInput + _sum?: Prisma.sommaire_porteSumOrderByAggregateInput +} + +export type sommaire_porteScalarWhereWithAggregatesInput = { + AND?: Prisma.sommaire_porteScalarWhereWithAggregatesInput | Prisma.sommaire_porteScalarWhereWithAggregatesInput[] + OR?: Prisma.sommaire_porteScalarWhereWithAggregatesInput[] + NOT?: Prisma.sommaire_porteScalarWhereWithAggregatesInput | Prisma.sommaire_porteScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"sommaire_porte"> | number + fibre_id?: Prisma.IntWithAggregatesFilter<"sommaire_porte"> | number + id_adresse?: Prisma.StringWithAggregatesFilter<"sommaire_porte"> | string + id_subvention?: Prisma.StringWithAggregatesFilter<"sommaire_porte"> | string + adresse_subvention?: Prisma.StringWithAggregatesFilter<"sommaire_porte"> | string + ville_subvention?: Prisma.StringWithAggregatesFilter<"sommaire_porte"> | string + latitude?: Prisma.StringWithAggregatesFilter<"sommaire_porte"> | string + longitude?: Prisma.StringWithAggregatesFilter<"sommaire_porte"> | string + contest_adresse?: Prisma.IntWithAggregatesFilter<"sommaire_porte"> | number + new_adresse?: Prisma.IntWithAggregatesFilter<"sommaire_porte"> | number + placemarks_id?: Prisma.BigIntWithAggregatesFilter<"sommaire_porte"> | bigint | number +} + +export type sommaire_porteCreateInput = { + fibre_id?: number + id_adresse: string + id_subvention: string + adresse_subvention: string + ville_subvention: string + latitude: string + longitude: string + contest_adresse?: number + new_adresse?: number + placemarks_id: bigint | number +} + +export type sommaire_porteUncheckedCreateInput = { + id?: number + fibre_id?: number + id_adresse: string + id_subvention: string + adresse_subvention: string + ville_subvention: string + latitude: string + longitude: string + contest_adresse?: number + new_adresse?: number + placemarks_id: bigint | number +} + +export type sommaire_porteUpdateInput = { + fibre_id?: Prisma.IntFieldUpdateOperationsInput | number + id_adresse?: Prisma.StringFieldUpdateOperationsInput | string + id_subvention?: Prisma.StringFieldUpdateOperationsInput | string + adresse_subvention?: Prisma.StringFieldUpdateOperationsInput | string + ville_subvention?: Prisma.StringFieldUpdateOperationsInput | string + latitude?: Prisma.StringFieldUpdateOperationsInput | string + longitude?: Prisma.StringFieldUpdateOperationsInput | string + contest_adresse?: Prisma.IntFieldUpdateOperationsInput | number + new_adresse?: Prisma.IntFieldUpdateOperationsInput | number + placemarks_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type sommaire_porteUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + fibre_id?: Prisma.IntFieldUpdateOperationsInput | number + id_adresse?: Prisma.StringFieldUpdateOperationsInput | string + id_subvention?: Prisma.StringFieldUpdateOperationsInput | string + adresse_subvention?: Prisma.StringFieldUpdateOperationsInput | string + ville_subvention?: Prisma.StringFieldUpdateOperationsInput | string + latitude?: Prisma.StringFieldUpdateOperationsInput | string + longitude?: Prisma.StringFieldUpdateOperationsInput | string + contest_adresse?: Prisma.IntFieldUpdateOperationsInput | number + new_adresse?: Prisma.IntFieldUpdateOperationsInput | number + placemarks_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type sommaire_porteCreateManyInput = { + id?: number + fibre_id?: number + id_adresse: string + id_subvention: string + adresse_subvention: string + ville_subvention: string + latitude: string + longitude: string + contest_adresse?: number + new_adresse?: number + placemarks_id: bigint | number +} + +export type sommaire_porteUpdateManyMutationInput = { + fibre_id?: Prisma.IntFieldUpdateOperationsInput | number + id_adresse?: Prisma.StringFieldUpdateOperationsInput | string + id_subvention?: Prisma.StringFieldUpdateOperationsInput | string + adresse_subvention?: Prisma.StringFieldUpdateOperationsInput | string + ville_subvention?: Prisma.StringFieldUpdateOperationsInput | string + latitude?: Prisma.StringFieldUpdateOperationsInput | string + longitude?: Prisma.StringFieldUpdateOperationsInput | string + contest_adresse?: Prisma.IntFieldUpdateOperationsInput | number + new_adresse?: Prisma.IntFieldUpdateOperationsInput | number + placemarks_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type sommaire_porteUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + fibre_id?: Prisma.IntFieldUpdateOperationsInput | number + id_adresse?: Prisma.StringFieldUpdateOperationsInput | string + id_subvention?: Prisma.StringFieldUpdateOperationsInput | string + adresse_subvention?: Prisma.StringFieldUpdateOperationsInput | string + ville_subvention?: Prisma.StringFieldUpdateOperationsInput | string + latitude?: Prisma.StringFieldUpdateOperationsInput | string + longitude?: Prisma.StringFieldUpdateOperationsInput | string + contest_adresse?: Prisma.IntFieldUpdateOperationsInput | number + new_adresse?: Prisma.IntFieldUpdateOperationsInput | number + placemarks_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number +} + +export type sommaire_porteOrderByRelevanceInput = { + fields: Prisma.sommaire_porteOrderByRelevanceFieldEnum | Prisma.sommaire_porteOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type sommaire_porteCountOrderByAggregateInput = { + id?: Prisma.SortOrder + fibre_id?: Prisma.SortOrder + id_adresse?: Prisma.SortOrder + id_subvention?: Prisma.SortOrder + adresse_subvention?: Prisma.SortOrder + ville_subvention?: Prisma.SortOrder + latitude?: Prisma.SortOrder + longitude?: Prisma.SortOrder + contest_adresse?: Prisma.SortOrder + new_adresse?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder +} + +export type sommaire_porteAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + fibre_id?: Prisma.SortOrder + contest_adresse?: Prisma.SortOrder + new_adresse?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder +} + +export type sommaire_porteMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + fibre_id?: Prisma.SortOrder + id_adresse?: Prisma.SortOrder + id_subvention?: Prisma.SortOrder + adresse_subvention?: Prisma.SortOrder + ville_subvention?: Prisma.SortOrder + latitude?: Prisma.SortOrder + longitude?: Prisma.SortOrder + contest_adresse?: Prisma.SortOrder + new_adresse?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder +} + +export type sommaire_porteMinOrderByAggregateInput = { + id?: Prisma.SortOrder + fibre_id?: Prisma.SortOrder + id_adresse?: Prisma.SortOrder + id_subvention?: Prisma.SortOrder + adresse_subvention?: Prisma.SortOrder + ville_subvention?: Prisma.SortOrder + latitude?: Prisma.SortOrder + longitude?: Prisma.SortOrder + contest_adresse?: Prisma.SortOrder + new_adresse?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder +} + +export type sommaire_porteSumOrderByAggregateInput = { + id?: Prisma.SortOrder + fibre_id?: Prisma.SortOrder + contest_adresse?: Prisma.SortOrder + new_adresse?: Prisma.SortOrder + placemarks_id?: Prisma.SortOrder +} + + + +export type sommaire_porteSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + fibre_id?: boolean + id_adresse?: boolean + id_subvention?: boolean + adresse_subvention?: boolean + ville_subvention?: boolean + latitude?: boolean + longitude?: boolean + contest_adresse?: boolean + new_adresse?: boolean + placemarks_id?: boolean +}, ExtArgs["result"]["sommaire_porte"]> + + + +export type sommaire_porteSelectScalar = { + id?: boolean + fibre_id?: boolean + id_adresse?: boolean + id_subvention?: boolean + adresse_subvention?: boolean + ville_subvention?: boolean + latitude?: boolean + longitude?: boolean + contest_adresse?: boolean + new_adresse?: boolean + placemarks_id?: boolean +} + +export type sommaire_porteOmit = runtime.Types.Extensions.GetOmit<"id" | "fibre_id" | "id_adresse" | "id_subvention" | "adresse_subvention" | "ville_subvention" | "latitude" | "longitude" | "contest_adresse" | "new_adresse" | "placemarks_id", ExtArgs["result"]["sommaire_porte"]> + +export type $sommaire_portePayload = { + name: "sommaire_porte" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + fibre_id: number + id_adresse: string + id_subvention: string + adresse_subvention: string + ville_subvention: string + latitude: string + longitude: string + contest_adresse: number + new_adresse: number + placemarks_id: bigint + }, ExtArgs["result"]["sommaire_porte"]> + composites: {} +} + +export type sommaire_porteGetPayload = runtime.Types.Result.GetResult + +export type sommaire_porteCountArgs = + Omit & { + select?: Sommaire_porteCountAggregateInputType | true + } + +export interface sommaire_porteDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['sommaire_porte'], meta: { name: 'sommaire_porte' } } + /** + * Find zero or one Sommaire_porte that matches the filter. + * @param {sommaire_porteFindUniqueArgs} args - Arguments to find a Sommaire_porte + * @example + * // Get one Sommaire_porte + * const sommaire_porte = await prisma.sommaire_porte.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__sommaire_porteClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Sommaire_porte that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {sommaire_porteFindUniqueOrThrowArgs} args - Arguments to find a Sommaire_porte + * @example + * // Get one Sommaire_porte + * const sommaire_porte = await prisma.sommaire_porte.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__sommaire_porteClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Sommaire_porte 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 {sommaire_porteFindFirstArgs} args - Arguments to find a Sommaire_porte + * @example + * // Get one Sommaire_porte + * const sommaire_porte = await prisma.sommaire_porte.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__sommaire_porteClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Sommaire_porte 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 {sommaire_porteFindFirstOrThrowArgs} args - Arguments to find a Sommaire_porte + * @example + * // Get one Sommaire_porte + * const sommaire_porte = await prisma.sommaire_porte.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__sommaire_porteClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Sommaire_portes 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 {sommaire_porteFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Sommaire_portes + * const sommaire_portes = await prisma.sommaire_porte.findMany() + * + * // Get first 10 Sommaire_portes + * const sommaire_portes = await prisma.sommaire_porte.findMany({ take: 10 }) + * + * // Only select the `id` + * const sommaire_porteWithIdOnly = await prisma.sommaire_porte.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Sommaire_porte. + * @param {sommaire_porteCreateArgs} args - Arguments to create a Sommaire_porte. + * @example + * // Create one Sommaire_porte + * const Sommaire_porte = await prisma.sommaire_porte.create({ + * data: { + * // ... data to create a Sommaire_porte + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__sommaire_porteClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Sommaire_portes. + * @param {sommaire_porteCreateManyArgs} args - Arguments to create many Sommaire_portes. + * @example + * // Create many Sommaire_portes + * const sommaire_porte = await prisma.sommaire_porte.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Sommaire_porte. + * @param {sommaire_porteDeleteArgs} args - Arguments to delete one Sommaire_porte. + * @example + * // Delete one Sommaire_porte + * const Sommaire_porte = await prisma.sommaire_porte.delete({ + * where: { + * // ... filter to delete one Sommaire_porte + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__sommaire_porteClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Sommaire_porte. + * @param {sommaire_porteUpdateArgs} args - Arguments to update one Sommaire_porte. + * @example + * // Update one Sommaire_porte + * const sommaire_porte = await prisma.sommaire_porte.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__sommaire_porteClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Sommaire_portes. + * @param {sommaire_porteDeleteManyArgs} args - Arguments to filter Sommaire_portes to delete. + * @example + * // Delete a few Sommaire_portes + * const { count } = await prisma.sommaire_porte.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Sommaire_portes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {sommaire_porteUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Sommaire_portes + * const sommaire_porte = await prisma.sommaire_porte.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Sommaire_porte. + * @param {sommaire_porteUpsertArgs} args - Arguments to update or create a Sommaire_porte. + * @example + * // Update or create a Sommaire_porte + * const sommaire_porte = await prisma.sommaire_porte.upsert({ + * create: { + * // ... data to create a Sommaire_porte + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Sommaire_porte we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__sommaire_porteClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Sommaire_portes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {sommaire_porteCountArgs} args - Arguments to filter Sommaire_portes to count. + * @example + * // Count the number of Sommaire_portes + * const count = await prisma.sommaire_porte.count({ + * where: { + * // ... the filter for the Sommaire_portes 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 Sommaire_porte. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Sommaire_porteAggregateArgs} 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 Sommaire_porte. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {sommaire_porteGroupByArgs} 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 sommaire_porteGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: sommaire_porteGroupByArgs['orderBy'] } + : { orderBy?: sommaire_porteGroupByArgs['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 ? GetSommaire_porteGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the sommaire_porte model + */ +readonly fields: sommaire_porteFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for sommaire_porte. + * 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__sommaire_porteClient 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 sommaire_porte model + */ +export interface sommaire_porteFieldRefs { + readonly id: Prisma.FieldRef<"sommaire_porte", 'Int'> + readonly fibre_id: Prisma.FieldRef<"sommaire_porte", 'Int'> + readonly id_adresse: Prisma.FieldRef<"sommaire_porte", 'String'> + readonly id_subvention: Prisma.FieldRef<"sommaire_porte", 'String'> + readonly adresse_subvention: Prisma.FieldRef<"sommaire_porte", 'String'> + readonly ville_subvention: Prisma.FieldRef<"sommaire_porte", 'String'> + readonly latitude: Prisma.FieldRef<"sommaire_porte", 'String'> + readonly longitude: Prisma.FieldRef<"sommaire_porte", 'String'> + readonly contest_adresse: Prisma.FieldRef<"sommaire_porte", 'Int'> + readonly new_adresse: Prisma.FieldRef<"sommaire_porte", 'Int'> + readonly placemarks_id: Prisma.FieldRef<"sommaire_porte", 'BigInt'> +} + + +// Custom InputTypes +/** + * sommaire_porte findUnique + */ +export type sommaire_porteFindUniqueArgs = { + /** + * Select specific fields to fetch from the sommaire_porte + */ + select?: Prisma.sommaire_porteSelect | null + /** + * Omit specific fields from the sommaire_porte + */ + omit?: Prisma.sommaire_porteOmit | null + /** + * Filter, which sommaire_porte to fetch. + */ + where: Prisma.sommaire_porteWhereUniqueInput +} + +/** + * sommaire_porte findUniqueOrThrow + */ +export type sommaire_porteFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the sommaire_porte + */ + select?: Prisma.sommaire_porteSelect | null + /** + * Omit specific fields from the sommaire_porte + */ + omit?: Prisma.sommaire_porteOmit | null + /** + * Filter, which sommaire_porte to fetch. + */ + where: Prisma.sommaire_porteWhereUniqueInput +} + +/** + * sommaire_porte findFirst + */ +export type sommaire_porteFindFirstArgs = { + /** + * Select specific fields to fetch from the sommaire_porte + */ + select?: Prisma.sommaire_porteSelect | null + /** + * Omit specific fields from the sommaire_porte + */ + omit?: Prisma.sommaire_porteOmit | null + /** + * Filter, which sommaire_porte to fetch. + */ + where?: Prisma.sommaire_porteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of sommaire_portes to fetch. + */ + orderBy?: Prisma.sommaire_porteOrderByWithRelationInput | Prisma.sommaire_porteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for sommaire_portes. + */ + cursor?: Prisma.sommaire_porteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` sommaire_portes 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` sommaire_portes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of sommaire_portes. + */ + distinct?: Prisma.Sommaire_porteScalarFieldEnum | Prisma.Sommaire_porteScalarFieldEnum[] +} + +/** + * sommaire_porte findFirstOrThrow + */ +export type sommaire_porteFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the sommaire_porte + */ + select?: Prisma.sommaire_porteSelect | null + /** + * Omit specific fields from the sommaire_porte + */ + omit?: Prisma.sommaire_porteOmit | null + /** + * Filter, which sommaire_porte to fetch. + */ + where?: Prisma.sommaire_porteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of sommaire_portes to fetch. + */ + orderBy?: Prisma.sommaire_porteOrderByWithRelationInput | Prisma.sommaire_porteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for sommaire_portes. + */ + cursor?: Prisma.sommaire_porteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` sommaire_portes 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` sommaire_portes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of sommaire_portes. + */ + distinct?: Prisma.Sommaire_porteScalarFieldEnum | Prisma.Sommaire_porteScalarFieldEnum[] +} + +/** + * sommaire_porte findMany + */ +export type sommaire_porteFindManyArgs = { + /** + * Select specific fields to fetch from the sommaire_porte + */ + select?: Prisma.sommaire_porteSelect | null + /** + * Omit specific fields from the sommaire_porte + */ + omit?: Prisma.sommaire_porteOmit | null + /** + * Filter, which sommaire_portes to fetch. + */ + where?: Prisma.sommaire_porteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of sommaire_portes to fetch. + */ + orderBy?: Prisma.sommaire_porteOrderByWithRelationInput | Prisma.sommaire_porteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing sommaire_portes. + */ + cursor?: Prisma.sommaire_porteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` sommaire_portes 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` sommaire_portes. + */ + skip?: number + distinct?: Prisma.Sommaire_porteScalarFieldEnum | Prisma.Sommaire_porteScalarFieldEnum[] +} + +/** + * sommaire_porte create + */ +export type sommaire_porteCreateArgs = { + /** + * Select specific fields to fetch from the sommaire_porte + */ + select?: Prisma.sommaire_porteSelect | null + /** + * Omit specific fields from the sommaire_porte + */ + omit?: Prisma.sommaire_porteOmit | null + /** + * The data needed to create a sommaire_porte. + */ + data: Prisma.XOR +} + +/** + * sommaire_porte createMany + */ +export type sommaire_porteCreateManyArgs = { + /** + * The data used to create many sommaire_portes. + */ + data: Prisma.sommaire_porteCreateManyInput | Prisma.sommaire_porteCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * sommaire_porte update + */ +export type sommaire_porteUpdateArgs = { + /** + * Select specific fields to fetch from the sommaire_porte + */ + select?: Prisma.sommaire_porteSelect | null + /** + * Omit specific fields from the sommaire_porte + */ + omit?: Prisma.sommaire_porteOmit | null + /** + * The data needed to update a sommaire_porte. + */ + data: Prisma.XOR + /** + * Choose, which sommaire_porte to update. + */ + where: Prisma.sommaire_porteWhereUniqueInput +} + +/** + * sommaire_porte updateMany + */ +export type sommaire_porteUpdateManyArgs = { + /** + * The data used to update sommaire_portes. + */ + data: Prisma.XOR + /** + * Filter which sommaire_portes to update + */ + where?: Prisma.sommaire_porteWhereInput + /** + * Limit how many sommaire_portes to update. + */ + limit?: number +} + +/** + * sommaire_porte upsert + */ +export type sommaire_porteUpsertArgs = { + /** + * Select specific fields to fetch from the sommaire_porte + */ + select?: Prisma.sommaire_porteSelect | null + /** + * Omit specific fields from the sommaire_porte + */ + omit?: Prisma.sommaire_porteOmit | null + /** + * The filter to search for the sommaire_porte to update in case it exists. + */ + where: Prisma.sommaire_porteWhereUniqueInput + /** + * In case the sommaire_porte found by the `where` argument doesn't exist, create a new sommaire_porte with this data. + */ + create: Prisma.XOR + /** + * In case the sommaire_porte was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * sommaire_porte delete + */ +export type sommaire_porteDeleteArgs = { + /** + * Select specific fields to fetch from the sommaire_porte + */ + select?: Prisma.sommaire_porteSelect | null + /** + * Omit specific fields from the sommaire_porte + */ + omit?: Prisma.sommaire_porteOmit | null + /** + * Filter which sommaire_porte to delete. + */ + where: Prisma.sommaire_porteWhereUniqueInput +} + +/** + * sommaire_porte deleteMany + */ +export type sommaire_porteDeleteManyArgs = { + /** + * Filter which sommaire_portes to delete + */ + where?: Prisma.sommaire_porteWhereInput + /** + * Limit how many sommaire_portes to delete. + */ + limit?: number +} + +/** + * sommaire_porte without action + */ +export type sommaire_porteDefaultArgs = { + /** + * Select specific fields to fetch from the sommaire_porte + */ + select?: Prisma.sommaire_porteSelect | null + /** + * Omit specific fields from the sommaire_porte + */ + omit?: Prisma.sommaire_porteOmit | null +} diff --git a/prisma/generated/mariadb/models/soumission.ts b/prisma/generated/mariadb/models/soumission.ts new file mode 100644 index 0000000..599aa53 --- /dev/null +++ b/prisma/generated/mariadb/models/soumission.ts @@ -0,0 +1,1195 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `soumission` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model soumission + * + */ +export type soumissionModel = runtime.Types.Result.DefaultSelection + +export type AggregateSoumission = { + _count: SoumissionCountAggregateOutputType | null + _avg: SoumissionAvgAggregateOutputType | null + _sum: SoumissionSumAggregateOutputType | null + _min: SoumissionMinAggregateOutputType | null + _max: SoumissionMaxAggregateOutputType | null +} + +export type SoumissionAvgAggregateOutputType = { + id: number | null + account_id: number | null + tax: number | null +} + +export type SoumissionSumAggregateOutputType = { + id: number | null + account_id: bigint | null + tax: number | null +} + +export type SoumissionMinAggregateOutputType = { + id: number | null + account_id: bigint | null + name: string | null + po: string | null + date: string | null + tax: number | null + materiel: string | null + mensuel: string | null + text: string | null +} + +export type SoumissionMaxAggregateOutputType = { + id: number | null + account_id: bigint | null + name: string | null + po: string | null + date: string | null + tax: number | null + materiel: string | null + mensuel: string | null + text: string | null +} + +export type SoumissionCountAggregateOutputType = { + id: number + account_id: number + name: number + po: number + date: number + tax: number + materiel: number + mensuel: number + text: number + _all: number +} + + +export type SoumissionAvgAggregateInputType = { + id?: true + account_id?: true + tax?: true +} + +export type SoumissionSumAggregateInputType = { + id?: true + account_id?: true + tax?: true +} + +export type SoumissionMinAggregateInputType = { + id?: true + account_id?: true + name?: true + po?: true + date?: true + tax?: true + materiel?: true + mensuel?: true + text?: true +} + +export type SoumissionMaxAggregateInputType = { + id?: true + account_id?: true + name?: true + po?: true + date?: true + tax?: true + materiel?: true + mensuel?: true + text?: true +} + +export type SoumissionCountAggregateInputType = { + id?: true + account_id?: true + name?: true + po?: true + date?: true + tax?: true + materiel?: true + mensuel?: true + text?: true + _all?: true +} + +export type SoumissionAggregateArgs = { + /** + * Filter which soumission to aggregate. + */ + where?: Prisma.soumissionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of soumissions to fetch. + */ + orderBy?: Prisma.soumissionOrderByWithRelationInput | Prisma.soumissionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.soumissionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` soumissions 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` soumissions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned soumissions + **/ + _count?: true | SoumissionCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: SoumissionAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: SoumissionSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: SoumissionMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: SoumissionMaxAggregateInputType +} + +export type GetSoumissionAggregateType = { + [P in keyof T & keyof AggregateSoumission]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type soumissionGroupByArgs = { + where?: Prisma.soumissionWhereInput + orderBy?: Prisma.soumissionOrderByWithAggregationInput | Prisma.soumissionOrderByWithAggregationInput[] + by: Prisma.SoumissionScalarFieldEnum[] | Prisma.SoumissionScalarFieldEnum + having?: Prisma.soumissionScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: SoumissionCountAggregateInputType | true + _avg?: SoumissionAvgAggregateInputType + _sum?: SoumissionSumAggregateInputType + _min?: SoumissionMinAggregateInputType + _max?: SoumissionMaxAggregateInputType +} + +export type SoumissionGroupByOutputType = { + id: number + account_id: bigint + name: string + po: string | null + date: string + tax: number + materiel: string | null + mensuel: string | null + text: string | null + _count: SoumissionCountAggregateOutputType | null + _avg: SoumissionAvgAggregateOutputType | null + _sum: SoumissionSumAggregateOutputType | null + _min: SoumissionMinAggregateOutputType | null + _max: SoumissionMaxAggregateOutputType | null +} + +type GetSoumissionGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof SoumissionGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type soumissionWhereInput = { + AND?: Prisma.soumissionWhereInput | Prisma.soumissionWhereInput[] + OR?: Prisma.soumissionWhereInput[] + NOT?: Prisma.soumissionWhereInput | Prisma.soumissionWhereInput[] + id?: Prisma.IntFilter<"soumission"> | number + account_id?: Prisma.BigIntFilter<"soumission"> | bigint | number + name?: Prisma.StringFilter<"soumission"> | string + po?: Prisma.StringNullableFilter<"soumission"> | string | null + date?: Prisma.StringFilter<"soumission"> | string + tax?: Prisma.IntFilter<"soumission"> | number + materiel?: Prisma.StringNullableFilter<"soumission"> | string | null + mensuel?: Prisma.StringNullableFilter<"soumission"> | string | null + text?: Prisma.StringNullableFilter<"soumission"> | string | null +} + +export type soumissionOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + po?: Prisma.SortOrderInput | Prisma.SortOrder + date?: Prisma.SortOrder + tax?: Prisma.SortOrder + materiel?: Prisma.SortOrderInput | Prisma.SortOrder + mensuel?: Prisma.SortOrderInput | Prisma.SortOrder + text?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.soumissionOrderByRelevanceInput +} + +export type soumissionWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.soumissionWhereInput | Prisma.soumissionWhereInput[] + OR?: Prisma.soumissionWhereInput[] + NOT?: Prisma.soumissionWhereInput | Prisma.soumissionWhereInput[] + account_id?: Prisma.BigIntFilter<"soumission"> | bigint | number + name?: Prisma.StringFilter<"soumission"> | string + po?: Prisma.StringNullableFilter<"soumission"> | string | null + date?: Prisma.StringFilter<"soumission"> | string + tax?: Prisma.IntFilter<"soumission"> | number + materiel?: Prisma.StringNullableFilter<"soumission"> | string | null + mensuel?: Prisma.StringNullableFilter<"soumission"> | string | null + text?: Prisma.StringNullableFilter<"soumission"> | string | null +}, "id"> + +export type soumissionOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + po?: Prisma.SortOrderInput | Prisma.SortOrder + date?: Prisma.SortOrder + tax?: Prisma.SortOrder + materiel?: Prisma.SortOrderInput | Prisma.SortOrder + mensuel?: Prisma.SortOrderInput | Prisma.SortOrder + text?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.soumissionCountOrderByAggregateInput + _avg?: Prisma.soumissionAvgOrderByAggregateInput + _max?: Prisma.soumissionMaxOrderByAggregateInput + _min?: Prisma.soumissionMinOrderByAggregateInput + _sum?: Prisma.soumissionSumOrderByAggregateInput +} + +export type soumissionScalarWhereWithAggregatesInput = { + AND?: Prisma.soumissionScalarWhereWithAggregatesInput | Prisma.soumissionScalarWhereWithAggregatesInput[] + OR?: Prisma.soumissionScalarWhereWithAggregatesInput[] + NOT?: Prisma.soumissionScalarWhereWithAggregatesInput | Prisma.soumissionScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"soumission"> | number + account_id?: Prisma.BigIntWithAggregatesFilter<"soumission"> | bigint | number + name?: Prisma.StringWithAggregatesFilter<"soumission"> | string + po?: Prisma.StringNullableWithAggregatesFilter<"soumission"> | string | null + date?: Prisma.StringWithAggregatesFilter<"soumission"> | string + tax?: Prisma.IntWithAggregatesFilter<"soumission"> | number + materiel?: Prisma.StringNullableWithAggregatesFilter<"soumission"> | string | null + mensuel?: Prisma.StringNullableWithAggregatesFilter<"soumission"> | string | null + text?: Prisma.StringNullableWithAggregatesFilter<"soumission"> | string | null +} + +export type soumissionCreateInput = { + account_id: bigint | number + name: string + po?: string | null + date: string + tax: number + materiel?: string | null + mensuel?: string | null + text?: string | null +} + +export type soumissionUncheckedCreateInput = { + id?: number + account_id: bigint | number + name: string + po?: string | null + date: string + tax: number + materiel?: string | null + mensuel?: string | null + text?: string | null +} + +export type soumissionUpdateInput = { + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + name?: Prisma.StringFieldUpdateOperationsInput | string + po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.StringFieldUpdateOperationsInput | string + tax?: Prisma.IntFieldUpdateOperationsInput | number + materiel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mensuel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + text?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type soumissionUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + name?: Prisma.StringFieldUpdateOperationsInput | string + po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.StringFieldUpdateOperationsInput | string + tax?: Prisma.IntFieldUpdateOperationsInput | number + materiel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mensuel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + text?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type soumissionCreateManyInput = { + id?: number + account_id: bigint | number + name: string + po?: string | null + date: string + tax: number + materiel?: string | null + mensuel?: string | null + text?: string | null +} + +export type soumissionUpdateManyMutationInput = { + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + name?: Prisma.StringFieldUpdateOperationsInput | string + po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.StringFieldUpdateOperationsInput | string + tax?: Prisma.IntFieldUpdateOperationsInput | number + materiel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mensuel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + text?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type soumissionUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + name?: Prisma.StringFieldUpdateOperationsInput | string + po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date?: Prisma.StringFieldUpdateOperationsInput | string + tax?: Prisma.IntFieldUpdateOperationsInput | number + materiel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mensuel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + text?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type soumissionOrderByRelevanceInput = { + fields: Prisma.soumissionOrderByRelevanceFieldEnum | Prisma.soumissionOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type soumissionCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + po?: Prisma.SortOrder + date?: Prisma.SortOrder + tax?: Prisma.SortOrder + materiel?: Prisma.SortOrder + mensuel?: Prisma.SortOrder + text?: Prisma.SortOrder +} + +export type soumissionAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + tax?: Prisma.SortOrder +} + +export type soumissionMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + po?: Prisma.SortOrder + date?: Prisma.SortOrder + tax?: Prisma.SortOrder + materiel?: Prisma.SortOrder + mensuel?: Prisma.SortOrder + text?: Prisma.SortOrder +} + +export type soumissionMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + po?: Prisma.SortOrder + date?: Prisma.SortOrder + tax?: Prisma.SortOrder + materiel?: Prisma.SortOrder + mensuel?: Prisma.SortOrder + text?: Prisma.SortOrder +} + +export type soumissionSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + tax?: Prisma.SortOrder +} + + + +export type soumissionSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + name?: boolean + po?: boolean + date?: boolean + tax?: boolean + materiel?: boolean + mensuel?: boolean + text?: boolean +}, ExtArgs["result"]["soumission"]> + + + +export type soumissionSelectScalar = { + id?: boolean + account_id?: boolean + name?: boolean + po?: boolean + date?: boolean + tax?: boolean + materiel?: boolean + mensuel?: boolean + text?: boolean +} + +export type soumissionOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "name" | "po" | "date" | "tax" | "materiel" | "mensuel" | "text", ExtArgs["result"]["soumission"]> + +export type $soumissionPayload = { + name: "soumission" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: bigint + name: string + po: string | null + date: string + tax: number + materiel: string | null + mensuel: string | null + text: string | null + }, ExtArgs["result"]["soumission"]> + composites: {} +} + +export type soumissionGetPayload = runtime.Types.Result.GetResult + +export type soumissionCountArgs = + Omit & { + select?: SoumissionCountAggregateInputType | true + } + +export interface soumissionDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['soumission'], meta: { name: 'soumission' } } + /** + * Find zero or one Soumission that matches the filter. + * @param {soumissionFindUniqueArgs} args - Arguments to find a Soumission + * @example + * // Get one Soumission + * const soumission = await prisma.soumission.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__soumissionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Soumission that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {soumissionFindUniqueOrThrowArgs} args - Arguments to find a Soumission + * @example + * // Get one Soumission + * const soumission = await prisma.soumission.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__soumissionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Soumission 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 {soumissionFindFirstArgs} args - Arguments to find a Soumission + * @example + * // Get one Soumission + * const soumission = await prisma.soumission.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__soumissionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Soumission 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 {soumissionFindFirstOrThrowArgs} args - Arguments to find a Soumission + * @example + * // Get one Soumission + * const soumission = await prisma.soumission.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__soumissionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Soumissions 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 {soumissionFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Soumissions + * const soumissions = await prisma.soumission.findMany() + * + * // Get first 10 Soumissions + * const soumissions = await prisma.soumission.findMany({ take: 10 }) + * + * // Only select the `id` + * const soumissionWithIdOnly = await prisma.soumission.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Soumission. + * @param {soumissionCreateArgs} args - Arguments to create a Soumission. + * @example + * // Create one Soumission + * const Soumission = await prisma.soumission.create({ + * data: { + * // ... data to create a Soumission + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__soumissionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Soumissions. + * @param {soumissionCreateManyArgs} args - Arguments to create many Soumissions. + * @example + * // Create many Soumissions + * const soumission = await prisma.soumission.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Soumission. + * @param {soumissionDeleteArgs} args - Arguments to delete one Soumission. + * @example + * // Delete one Soumission + * const Soumission = await prisma.soumission.delete({ + * where: { + * // ... filter to delete one Soumission + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__soumissionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Soumission. + * @param {soumissionUpdateArgs} args - Arguments to update one Soumission. + * @example + * // Update one Soumission + * const soumission = await prisma.soumission.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__soumissionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Soumissions. + * @param {soumissionDeleteManyArgs} args - Arguments to filter Soumissions to delete. + * @example + * // Delete a few Soumissions + * const { count } = await prisma.soumission.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Soumissions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {soumissionUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Soumissions + * const soumission = await prisma.soumission.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Soumission. + * @param {soumissionUpsertArgs} args - Arguments to update or create a Soumission. + * @example + * // Update or create a Soumission + * const soumission = await prisma.soumission.upsert({ + * create: { + * // ... data to create a Soumission + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Soumission we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__soumissionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Soumissions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {soumissionCountArgs} args - Arguments to filter Soumissions to count. + * @example + * // Count the number of Soumissions + * const count = await prisma.soumission.count({ + * where: { + * // ... the filter for the Soumissions 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 Soumission. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SoumissionAggregateArgs} 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 Soumission. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {soumissionGroupByArgs} 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 soumissionGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: soumissionGroupByArgs['orderBy'] } + : { orderBy?: soumissionGroupByArgs['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 ? GetSoumissionGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the soumission model + */ +readonly fields: soumissionFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for soumission. + * 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__soumissionClient 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 soumission model + */ +export interface soumissionFieldRefs { + readonly id: Prisma.FieldRef<"soumission", 'Int'> + readonly account_id: Prisma.FieldRef<"soumission", 'BigInt'> + readonly name: Prisma.FieldRef<"soumission", 'String'> + readonly po: Prisma.FieldRef<"soumission", 'String'> + readonly date: Prisma.FieldRef<"soumission", 'String'> + readonly tax: Prisma.FieldRef<"soumission", 'Int'> + readonly materiel: Prisma.FieldRef<"soumission", 'String'> + readonly mensuel: Prisma.FieldRef<"soumission", 'String'> + readonly text: Prisma.FieldRef<"soumission", 'String'> +} + + +// Custom InputTypes +/** + * soumission findUnique + */ +export type soumissionFindUniqueArgs = { + /** + * Select specific fields to fetch from the soumission + */ + select?: Prisma.soumissionSelect | null + /** + * Omit specific fields from the soumission + */ + omit?: Prisma.soumissionOmit | null + /** + * Filter, which soumission to fetch. + */ + where: Prisma.soumissionWhereUniqueInput +} + +/** + * soumission findUniqueOrThrow + */ +export type soumissionFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the soumission + */ + select?: Prisma.soumissionSelect | null + /** + * Omit specific fields from the soumission + */ + omit?: Prisma.soumissionOmit | null + /** + * Filter, which soumission to fetch. + */ + where: Prisma.soumissionWhereUniqueInput +} + +/** + * soumission findFirst + */ +export type soumissionFindFirstArgs = { + /** + * Select specific fields to fetch from the soumission + */ + select?: Prisma.soumissionSelect | null + /** + * Omit specific fields from the soumission + */ + omit?: Prisma.soumissionOmit | null + /** + * Filter, which soumission to fetch. + */ + where?: Prisma.soumissionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of soumissions to fetch. + */ + orderBy?: Prisma.soumissionOrderByWithRelationInput | Prisma.soumissionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for soumissions. + */ + cursor?: Prisma.soumissionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` soumissions 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` soumissions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of soumissions. + */ + distinct?: Prisma.SoumissionScalarFieldEnum | Prisma.SoumissionScalarFieldEnum[] +} + +/** + * soumission findFirstOrThrow + */ +export type soumissionFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the soumission + */ + select?: Prisma.soumissionSelect | null + /** + * Omit specific fields from the soumission + */ + omit?: Prisma.soumissionOmit | null + /** + * Filter, which soumission to fetch. + */ + where?: Prisma.soumissionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of soumissions to fetch. + */ + orderBy?: Prisma.soumissionOrderByWithRelationInput | Prisma.soumissionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for soumissions. + */ + cursor?: Prisma.soumissionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` soumissions 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` soumissions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of soumissions. + */ + distinct?: Prisma.SoumissionScalarFieldEnum | Prisma.SoumissionScalarFieldEnum[] +} + +/** + * soumission findMany + */ +export type soumissionFindManyArgs = { + /** + * Select specific fields to fetch from the soumission + */ + select?: Prisma.soumissionSelect | null + /** + * Omit specific fields from the soumission + */ + omit?: Prisma.soumissionOmit | null + /** + * Filter, which soumissions to fetch. + */ + where?: Prisma.soumissionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of soumissions to fetch. + */ + orderBy?: Prisma.soumissionOrderByWithRelationInput | Prisma.soumissionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing soumissions. + */ + cursor?: Prisma.soumissionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` soumissions 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` soumissions. + */ + skip?: number + distinct?: Prisma.SoumissionScalarFieldEnum | Prisma.SoumissionScalarFieldEnum[] +} + +/** + * soumission create + */ +export type soumissionCreateArgs = { + /** + * Select specific fields to fetch from the soumission + */ + select?: Prisma.soumissionSelect | null + /** + * Omit specific fields from the soumission + */ + omit?: Prisma.soumissionOmit | null + /** + * The data needed to create a soumission. + */ + data: Prisma.XOR +} + +/** + * soumission createMany + */ +export type soumissionCreateManyArgs = { + /** + * The data used to create many soumissions. + */ + data: Prisma.soumissionCreateManyInput | Prisma.soumissionCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * soumission update + */ +export type soumissionUpdateArgs = { + /** + * Select specific fields to fetch from the soumission + */ + select?: Prisma.soumissionSelect | null + /** + * Omit specific fields from the soumission + */ + omit?: Prisma.soumissionOmit | null + /** + * The data needed to update a soumission. + */ + data: Prisma.XOR + /** + * Choose, which soumission to update. + */ + where: Prisma.soumissionWhereUniqueInput +} + +/** + * soumission updateMany + */ +export type soumissionUpdateManyArgs = { + /** + * The data used to update soumissions. + */ + data: Prisma.XOR + /** + * Filter which soumissions to update + */ + where?: Prisma.soumissionWhereInput + /** + * Limit how many soumissions to update. + */ + limit?: number +} + +/** + * soumission upsert + */ +export type soumissionUpsertArgs = { + /** + * Select specific fields to fetch from the soumission + */ + select?: Prisma.soumissionSelect | null + /** + * Omit specific fields from the soumission + */ + omit?: Prisma.soumissionOmit | null + /** + * The filter to search for the soumission to update in case it exists. + */ + where: Prisma.soumissionWhereUniqueInput + /** + * In case the soumission found by the `where` argument doesn't exist, create a new soumission with this data. + */ + create: Prisma.XOR + /** + * In case the soumission was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * soumission delete + */ +export type soumissionDeleteArgs = { + /** + * Select specific fields to fetch from the soumission + */ + select?: Prisma.soumissionSelect | null + /** + * Omit specific fields from the soumission + */ + omit?: Prisma.soumissionOmit | null + /** + * Filter which soumission to delete. + */ + where: Prisma.soumissionWhereUniqueInput +} + +/** + * soumission deleteMany + */ +export type soumissionDeleteManyArgs = { + /** + * Filter which soumissions to delete + */ + where?: Prisma.soumissionWhereInput + /** + * Limit how many soumissions to delete. + */ + limit?: number +} + +/** + * soumission without action + */ +export type soumissionDefaultArgs = { + /** + * Select specific fields to fetch from the soumission + */ + select?: Prisma.soumissionSelect | null + /** + * Omit specific fields from the soumission + */ + omit?: Prisma.soumissionOmit | null +} diff --git a/prisma/generated/mariadb/models/soumission_template.ts b/prisma/generated/mariadb/models/soumission_template.ts new file mode 100644 index 0000000..3559fcd --- /dev/null +++ b/prisma/generated/mariadb/models/soumission_template.ts @@ -0,0 +1,1053 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `soumission_template` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model soumission_template + * + */ +export type soumission_templateModel = runtime.Types.Result.DefaultSelection + +export type AggregateSoumission_template = { + _count: Soumission_templateCountAggregateOutputType | null + _avg: Soumission_templateAvgAggregateOutputType | null + _sum: Soumission_templateSumAggregateOutputType | null + _min: Soumission_templateMinAggregateOutputType | null + _max: Soumission_templateMaxAggregateOutputType | null +} + +export type Soumission_templateAvgAggregateOutputType = { + id: number | null +} + +export type Soumission_templateSumAggregateOutputType = { + id: number | null +} + +export type Soumission_templateMinAggregateOutputType = { + id: number | null + name: string | null + materiel: string | null + mensuel: string | null +} + +export type Soumission_templateMaxAggregateOutputType = { + id: number | null + name: string | null + materiel: string | null + mensuel: string | null +} + +export type Soumission_templateCountAggregateOutputType = { + id: number + name: number + materiel: number + mensuel: number + _all: number +} + + +export type Soumission_templateAvgAggregateInputType = { + id?: true +} + +export type Soumission_templateSumAggregateInputType = { + id?: true +} + +export type Soumission_templateMinAggregateInputType = { + id?: true + name?: true + materiel?: true + mensuel?: true +} + +export type Soumission_templateMaxAggregateInputType = { + id?: true + name?: true + materiel?: true + mensuel?: true +} + +export type Soumission_templateCountAggregateInputType = { + id?: true + name?: true + materiel?: true + mensuel?: true + _all?: true +} + +export type Soumission_templateAggregateArgs = { + /** + * Filter which soumission_template to aggregate. + */ + where?: Prisma.soumission_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of soumission_templates to fetch. + */ + orderBy?: Prisma.soumission_templateOrderByWithRelationInput | Prisma.soumission_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.soumission_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` soumission_templates 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` soumission_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned soumission_templates + **/ + _count?: true | Soumission_templateCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Soumission_templateAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Soumission_templateSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Soumission_templateMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Soumission_templateMaxAggregateInputType +} + +export type GetSoumission_templateAggregateType = { + [P in keyof T & keyof AggregateSoumission_template]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type soumission_templateGroupByArgs = { + where?: Prisma.soumission_templateWhereInput + orderBy?: Prisma.soumission_templateOrderByWithAggregationInput | Prisma.soumission_templateOrderByWithAggregationInput[] + by: Prisma.Soumission_templateScalarFieldEnum[] | Prisma.Soumission_templateScalarFieldEnum + having?: Prisma.soumission_templateScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Soumission_templateCountAggregateInputType | true + _avg?: Soumission_templateAvgAggregateInputType + _sum?: Soumission_templateSumAggregateInputType + _min?: Soumission_templateMinAggregateInputType + _max?: Soumission_templateMaxAggregateInputType +} + +export type Soumission_templateGroupByOutputType = { + id: number + name: string + materiel: string + mensuel: string + _count: Soumission_templateCountAggregateOutputType | null + _avg: Soumission_templateAvgAggregateOutputType | null + _sum: Soumission_templateSumAggregateOutputType | null + _min: Soumission_templateMinAggregateOutputType | null + _max: Soumission_templateMaxAggregateOutputType | null +} + +type GetSoumission_templateGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Soumission_templateGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type soumission_templateWhereInput = { + AND?: Prisma.soumission_templateWhereInput | Prisma.soumission_templateWhereInput[] + OR?: Prisma.soumission_templateWhereInput[] + NOT?: Prisma.soumission_templateWhereInput | Prisma.soumission_templateWhereInput[] + id?: Prisma.IntFilter<"soumission_template"> | number + name?: Prisma.StringFilter<"soumission_template"> | string + materiel?: Prisma.StringFilter<"soumission_template"> | string + mensuel?: Prisma.StringFilter<"soumission_template"> | string +} + +export type soumission_templateOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + materiel?: Prisma.SortOrder + mensuel?: Prisma.SortOrder + _relevance?: Prisma.soumission_templateOrderByRelevanceInput +} + +export type soumission_templateWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.soumission_templateWhereInput | Prisma.soumission_templateWhereInput[] + OR?: Prisma.soumission_templateWhereInput[] + NOT?: Prisma.soumission_templateWhereInput | Prisma.soumission_templateWhereInput[] + name?: Prisma.StringFilter<"soumission_template"> | string + materiel?: Prisma.StringFilter<"soumission_template"> | string + mensuel?: Prisma.StringFilter<"soumission_template"> | string +}, "id"> + +export type soumission_templateOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + materiel?: Prisma.SortOrder + mensuel?: Prisma.SortOrder + _count?: Prisma.soumission_templateCountOrderByAggregateInput + _avg?: Prisma.soumission_templateAvgOrderByAggregateInput + _max?: Prisma.soumission_templateMaxOrderByAggregateInput + _min?: Prisma.soumission_templateMinOrderByAggregateInput + _sum?: Prisma.soumission_templateSumOrderByAggregateInput +} + +export type soumission_templateScalarWhereWithAggregatesInput = { + AND?: Prisma.soumission_templateScalarWhereWithAggregatesInput | Prisma.soumission_templateScalarWhereWithAggregatesInput[] + OR?: Prisma.soumission_templateScalarWhereWithAggregatesInput[] + NOT?: Prisma.soumission_templateScalarWhereWithAggregatesInput | Prisma.soumission_templateScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"soumission_template"> | number + name?: Prisma.StringWithAggregatesFilter<"soumission_template"> | string + materiel?: Prisma.StringWithAggregatesFilter<"soumission_template"> | string + mensuel?: Prisma.StringWithAggregatesFilter<"soumission_template"> | string +} + +export type soumission_templateCreateInput = { + name: string + materiel: string + mensuel: string +} + +export type soumission_templateUncheckedCreateInput = { + id?: number + name: string + materiel: string + mensuel: string +} + +export type soumission_templateUpdateInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + materiel?: Prisma.StringFieldUpdateOperationsInput | string + mensuel?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type soumission_templateUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + materiel?: Prisma.StringFieldUpdateOperationsInput | string + mensuel?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type soumission_templateCreateManyInput = { + id?: number + name: string + materiel: string + mensuel: string +} + +export type soumission_templateUpdateManyMutationInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + materiel?: Prisma.StringFieldUpdateOperationsInput | string + mensuel?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type soumission_templateUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + materiel?: Prisma.StringFieldUpdateOperationsInput | string + mensuel?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type soumission_templateOrderByRelevanceInput = { + fields: Prisma.soumission_templateOrderByRelevanceFieldEnum | Prisma.soumission_templateOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type soumission_templateCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + materiel?: Prisma.SortOrder + mensuel?: Prisma.SortOrder +} + +export type soumission_templateAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type soumission_templateMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + materiel?: Prisma.SortOrder + mensuel?: Prisma.SortOrder +} + +export type soumission_templateMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + materiel?: Prisma.SortOrder + mensuel?: Prisma.SortOrder +} + +export type soumission_templateSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type soumission_templateSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + materiel?: boolean + mensuel?: boolean +}, ExtArgs["result"]["soumission_template"]> + + + +export type soumission_templateSelectScalar = { + id?: boolean + name?: boolean + materiel?: boolean + mensuel?: boolean +} + +export type soumission_templateOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "materiel" | "mensuel", ExtArgs["result"]["soumission_template"]> + +export type $soumission_templatePayload = { + name: "soumission_template" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name: string + materiel: string + mensuel: string + }, ExtArgs["result"]["soumission_template"]> + composites: {} +} + +export type soumission_templateGetPayload = runtime.Types.Result.GetResult + +export type soumission_templateCountArgs = + Omit & { + select?: Soumission_templateCountAggregateInputType | true + } + +export interface soumission_templateDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['soumission_template'], meta: { name: 'soumission_template' } } + /** + * Find zero or one Soumission_template that matches the filter. + * @param {soumission_templateFindUniqueArgs} args - Arguments to find a Soumission_template + * @example + * // Get one Soumission_template + * const soumission_template = await prisma.soumission_template.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__soumission_templateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Soumission_template that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {soumission_templateFindUniqueOrThrowArgs} args - Arguments to find a Soumission_template + * @example + * // Get one Soumission_template + * const soumission_template = await prisma.soumission_template.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__soumission_templateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Soumission_template 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 {soumission_templateFindFirstArgs} args - Arguments to find a Soumission_template + * @example + * // Get one Soumission_template + * const soumission_template = await prisma.soumission_template.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__soumission_templateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Soumission_template 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 {soumission_templateFindFirstOrThrowArgs} args - Arguments to find a Soumission_template + * @example + * // Get one Soumission_template + * const soumission_template = await prisma.soumission_template.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__soumission_templateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Soumission_templates 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 {soumission_templateFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Soumission_templates + * const soumission_templates = await prisma.soumission_template.findMany() + * + * // Get first 10 Soumission_templates + * const soumission_templates = await prisma.soumission_template.findMany({ take: 10 }) + * + * // Only select the `id` + * const soumission_templateWithIdOnly = await prisma.soumission_template.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Soumission_template. + * @param {soumission_templateCreateArgs} args - Arguments to create a Soumission_template. + * @example + * // Create one Soumission_template + * const Soumission_template = await prisma.soumission_template.create({ + * data: { + * // ... data to create a Soumission_template + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__soumission_templateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Soumission_templates. + * @param {soumission_templateCreateManyArgs} args - Arguments to create many Soumission_templates. + * @example + * // Create many Soumission_templates + * const soumission_template = await prisma.soumission_template.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Soumission_template. + * @param {soumission_templateDeleteArgs} args - Arguments to delete one Soumission_template. + * @example + * // Delete one Soumission_template + * const Soumission_template = await prisma.soumission_template.delete({ + * where: { + * // ... filter to delete one Soumission_template + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__soumission_templateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Soumission_template. + * @param {soumission_templateUpdateArgs} args - Arguments to update one Soumission_template. + * @example + * // Update one Soumission_template + * const soumission_template = await prisma.soumission_template.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__soumission_templateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Soumission_templates. + * @param {soumission_templateDeleteManyArgs} args - Arguments to filter Soumission_templates to delete. + * @example + * // Delete a few Soumission_templates + * const { count } = await prisma.soumission_template.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Soumission_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {soumission_templateUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Soumission_templates + * const soumission_template = await prisma.soumission_template.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Soumission_template. + * @param {soumission_templateUpsertArgs} args - Arguments to update or create a Soumission_template. + * @example + * // Update or create a Soumission_template + * const soumission_template = await prisma.soumission_template.upsert({ + * create: { + * // ... data to create a Soumission_template + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Soumission_template we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__soumission_templateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Soumission_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {soumission_templateCountArgs} args - Arguments to filter Soumission_templates to count. + * @example + * // Count the number of Soumission_templates + * const count = await prisma.soumission_template.count({ + * where: { + * // ... the filter for the Soumission_templates 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 Soumission_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Soumission_templateAggregateArgs} 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 Soumission_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {soumission_templateGroupByArgs} 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 soumission_templateGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: soumission_templateGroupByArgs['orderBy'] } + : { orderBy?: soumission_templateGroupByArgs['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 ? GetSoumission_templateGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the soumission_template model + */ +readonly fields: soumission_templateFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for soumission_template. + * 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__soumission_templateClient 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 soumission_template model + */ +export interface soumission_templateFieldRefs { + readonly id: Prisma.FieldRef<"soumission_template", 'Int'> + readonly name: Prisma.FieldRef<"soumission_template", 'String'> + readonly materiel: Prisma.FieldRef<"soumission_template", 'String'> + readonly mensuel: Prisma.FieldRef<"soumission_template", 'String'> +} + + +// Custom InputTypes +/** + * soumission_template findUnique + */ +export type soumission_templateFindUniqueArgs = { + /** + * Select specific fields to fetch from the soumission_template + */ + select?: Prisma.soumission_templateSelect | null + /** + * Omit specific fields from the soumission_template + */ + omit?: Prisma.soumission_templateOmit | null + /** + * Filter, which soumission_template to fetch. + */ + where: Prisma.soumission_templateWhereUniqueInput +} + +/** + * soumission_template findUniqueOrThrow + */ +export type soumission_templateFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the soumission_template + */ + select?: Prisma.soumission_templateSelect | null + /** + * Omit specific fields from the soumission_template + */ + omit?: Prisma.soumission_templateOmit | null + /** + * Filter, which soumission_template to fetch. + */ + where: Prisma.soumission_templateWhereUniqueInput +} + +/** + * soumission_template findFirst + */ +export type soumission_templateFindFirstArgs = { + /** + * Select specific fields to fetch from the soumission_template + */ + select?: Prisma.soumission_templateSelect | null + /** + * Omit specific fields from the soumission_template + */ + omit?: Prisma.soumission_templateOmit | null + /** + * Filter, which soumission_template to fetch. + */ + where?: Prisma.soumission_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of soumission_templates to fetch. + */ + orderBy?: Prisma.soumission_templateOrderByWithRelationInput | Prisma.soumission_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for soumission_templates. + */ + cursor?: Prisma.soumission_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` soumission_templates 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` soumission_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of soumission_templates. + */ + distinct?: Prisma.Soumission_templateScalarFieldEnum | Prisma.Soumission_templateScalarFieldEnum[] +} + +/** + * soumission_template findFirstOrThrow + */ +export type soumission_templateFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the soumission_template + */ + select?: Prisma.soumission_templateSelect | null + /** + * Omit specific fields from the soumission_template + */ + omit?: Prisma.soumission_templateOmit | null + /** + * Filter, which soumission_template to fetch. + */ + where?: Prisma.soumission_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of soumission_templates to fetch. + */ + orderBy?: Prisma.soumission_templateOrderByWithRelationInput | Prisma.soumission_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for soumission_templates. + */ + cursor?: Prisma.soumission_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` soumission_templates 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` soumission_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of soumission_templates. + */ + distinct?: Prisma.Soumission_templateScalarFieldEnum | Prisma.Soumission_templateScalarFieldEnum[] +} + +/** + * soumission_template findMany + */ +export type soumission_templateFindManyArgs = { + /** + * Select specific fields to fetch from the soumission_template + */ + select?: Prisma.soumission_templateSelect | null + /** + * Omit specific fields from the soumission_template + */ + omit?: Prisma.soumission_templateOmit | null + /** + * Filter, which soumission_templates to fetch. + */ + where?: Prisma.soumission_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of soumission_templates to fetch. + */ + orderBy?: Prisma.soumission_templateOrderByWithRelationInput | Prisma.soumission_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing soumission_templates. + */ + cursor?: Prisma.soumission_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` soumission_templates 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` soumission_templates. + */ + skip?: number + distinct?: Prisma.Soumission_templateScalarFieldEnum | Prisma.Soumission_templateScalarFieldEnum[] +} + +/** + * soumission_template create + */ +export type soumission_templateCreateArgs = { + /** + * Select specific fields to fetch from the soumission_template + */ + select?: Prisma.soumission_templateSelect | null + /** + * Omit specific fields from the soumission_template + */ + omit?: Prisma.soumission_templateOmit | null + /** + * The data needed to create a soumission_template. + */ + data: Prisma.XOR +} + +/** + * soumission_template createMany + */ +export type soumission_templateCreateManyArgs = { + /** + * The data used to create many soumission_templates. + */ + data: Prisma.soumission_templateCreateManyInput | Prisma.soumission_templateCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * soumission_template update + */ +export type soumission_templateUpdateArgs = { + /** + * Select specific fields to fetch from the soumission_template + */ + select?: Prisma.soumission_templateSelect | null + /** + * Omit specific fields from the soumission_template + */ + omit?: Prisma.soumission_templateOmit | null + /** + * The data needed to update a soumission_template. + */ + data: Prisma.XOR + /** + * Choose, which soumission_template to update. + */ + where: Prisma.soumission_templateWhereUniqueInput +} + +/** + * soumission_template updateMany + */ +export type soumission_templateUpdateManyArgs = { + /** + * The data used to update soumission_templates. + */ + data: Prisma.XOR + /** + * Filter which soumission_templates to update + */ + where?: Prisma.soumission_templateWhereInput + /** + * Limit how many soumission_templates to update. + */ + limit?: number +} + +/** + * soumission_template upsert + */ +export type soumission_templateUpsertArgs = { + /** + * Select specific fields to fetch from the soumission_template + */ + select?: Prisma.soumission_templateSelect | null + /** + * Omit specific fields from the soumission_template + */ + omit?: Prisma.soumission_templateOmit | null + /** + * The filter to search for the soumission_template to update in case it exists. + */ + where: Prisma.soumission_templateWhereUniqueInput + /** + * In case the soumission_template found by the `where` argument doesn't exist, create a new soumission_template with this data. + */ + create: Prisma.XOR + /** + * In case the soumission_template was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * soumission_template delete + */ +export type soumission_templateDeleteArgs = { + /** + * Select specific fields to fetch from the soumission_template + */ + select?: Prisma.soumission_templateSelect | null + /** + * Omit specific fields from the soumission_template + */ + omit?: Prisma.soumission_templateOmit | null + /** + * Filter which soumission_template to delete. + */ + where: Prisma.soumission_templateWhereUniqueInput +} + +/** + * soumission_template deleteMany + */ +export type soumission_templateDeleteManyArgs = { + /** + * Filter which soumission_templates to delete + */ + where?: Prisma.soumission_templateWhereInput + /** + * Limit how many soumission_templates to delete. + */ + limit?: number +} + +/** + * soumission_template without action + */ +export type soumission_templateDefaultArgs = { + /** + * Select specific fields to fetch from the soumission_template + */ + select?: Prisma.soumission_templateSelect | null + /** + * Omit specific fields from the soumission_template + */ + omit?: Prisma.soumission_templateOmit | null +} diff --git a/prisma/generated/mariadb/models/staff.ts b/prisma/generated/mariadb/models/staff.ts new file mode 100644 index 0000000..bb59cf4 --- /dev/null +++ b/prisma/generated/mariadb/models/staff.ts @@ -0,0 +1,1539 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `staff` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model staff + * + */ +export type staffModel = runtime.Types.Result.DefaultSelection + +export type AggregateStaff = { + _count: StaffCountAggregateOutputType | null + _avg: StaffAvgAggregateOutputType | null + _sum: StaffSumAggregateOutputType | null + _min: StaffMinAggregateOutputType | null + _max: StaffMaxAggregateOutputType | null +} + +export type StaffAvgAggregateOutputType = { + id: number | null + status: number | null + matricule_desjardins: number | null + ldap_id: number | null +} + +export type StaffSumAggregateOutputType = { + id: number | null + status: number | null + matricule_desjardins: number | null + ldap_id: number | null +} + +export type StaffMinAggregateOutputType = { + id: number | null + status: number | null + username: string | null + password: string | null + vpn: string | null + first_name: string | null + last_name: string | null + email: string | null + ext: string | null + cell: string | null + gpin: string | null + rights: string | null + date_embauche: string | null + fete: string | null + supp: string | null + group_ad: string | null + dept_list: string | null + notification: string | null + darkmode: boolean | null + matricule_desjardins: number | null + compagnie_desjardins: string | null + ldap_id: number | null +} + +export type StaffMaxAggregateOutputType = { + id: number | null + status: number | null + username: string | null + password: string | null + vpn: string | null + first_name: string | null + last_name: string | null + email: string | null + ext: string | null + cell: string | null + gpin: string | null + rights: string | null + date_embauche: string | null + fete: string | null + supp: string | null + group_ad: string | null + dept_list: string | null + notification: string | null + darkmode: boolean | null + matricule_desjardins: number | null + compagnie_desjardins: string | null + ldap_id: number | null +} + +export type StaffCountAggregateOutputType = { + id: number + status: number + username: number + password: number + vpn: number + first_name: number + last_name: number + email: number + ext: number + cell: number + gpin: number + rights: number + date_embauche: number + fete: number + supp: number + group_ad: number + dept_list: number + notification: number + darkmode: number + matricule_desjardins: number + compagnie_desjardins: number + ldap_id: number + _all: number +} + + +export type StaffAvgAggregateInputType = { + id?: true + status?: true + matricule_desjardins?: true + ldap_id?: true +} + +export type StaffSumAggregateInputType = { + id?: true + status?: true + matricule_desjardins?: true + ldap_id?: true +} + +export type StaffMinAggregateInputType = { + id?: true + status?: true + username?: true + password?: true + vpn?: true + first_name?: true + last_name?: true + email?: true + ext?: true + cell?: true + gpin?: true + rights?: true + date_embauche?: true + fete?: true + supp?: true + group_ad?: true + dept_list?: true + notification?: true + darkmode?: true + matricule_desjardins?: true + compagnie_desjardins?: true + ldap_id?: true +} + +export type StaffMaxAggregateInputType = { + id?: true + status?: true + username?: true + password?: true + vpn?: true + first_name?: true + last_name?: true + email?: true + ext?: true + cell?: true + gpin?: true + rights?: true + date_embauche?: true + fete?: true + supp?: true + group_ad?: true + dept_list?: true + notification?: true + darkmode?: true + matricule_desjardins?: true + compagnie_desjardins?: true + ldap_id?: true +} + +export type StaffCountAggregateInputType = { + id?: true + status?: true + username?: true + password?: true + vpn?: true + first_name?: true + last_name?: true + email?: true + ext?: true + cell?: true + gpin?: true + rights?: true + date_embauche?: true + fete?: true + supp?: true + group_ad?: true + dept_list?: true + notification?: true + darkmode?: true + matricule_desjardins?: true + compagnie_desjardins?: true + ldap_id?: true + _all?: true +} + +export type StaffAggregateArgs = { + /** + * Filter which staff to aggregate. + */ + where?: Prisma.staffWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of staff to fetch. + */ + orderBy?: Prisma.staffOrderByWithRelationInput | Prisma.staffOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.staffWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` staff 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` staff. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned staff + **/ + _count?: true | StaffCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: StaffAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: StaffSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: StaffMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: StaffMaxAggregateInputType +} + +export type GetStaffAggregateType = { + [P in keyof T & keyof AggregateStaff]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type staffGroupByArgs = { + where?: Prisma.staffWhereInput + orderBy?: Prisma.staffOrderByWithAggregationInput | Prisma.staffOrderByWithAggregationInput[] + by: Prisma.StaffScalarFieldEnum[] | Prisma.StaffScalarFieldEnum + having?: Prisma.staffScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: StaffCountAggregateInputType | true + _avg?: StaffAvgAggregateInputType + _sum?: StaffSumAggregateInputType + _min?: StaffMinAggregateInputType + _max?: StaffMaxAggregateInputType +} + +export type StaffGroupByOutputType = { + id: number + status: number + username: string + password: string + vpn: string + first_name: string + last_name: string + email: string + ext: string + cell: string + gpin: string | null + rights: string + date_embauche: string | null + fete: string | null + supp: string | null + group_ad: string + dept_list: string + notification: string + darkmode: boolean + matricule_desjardins: number | null + compagnie_desjardins: string | null + ldap_id: number | null + _count: StaffCountAggregateOutputType | null + _avg: StaffAvgAggregateOutputType | null + _sum: StaffSumAggregateOutputType | null + _min: StaffMinAggregateOutputType | null + _max: StaffMaxAggregateOutputType | null +} + +type GetStaffGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof StaffGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type staffWhereInput = { + AND?: Prisma.staffWhereInput | Prisma.staffWhereInput[] + OR?: Prisma.staffWhereInput[] + NOT?: Prisma.staffWhereInput | Prisma.staffWhereInput[] + id?: Prisma.IntFilter<"staff"> | number + status?: Prisma.IntFilter<"staff"> | number + username?: Prisma.StringFilter<"staff"> | string + password?: Prisma.StringFilter<"staff"> | string + vpn?: Prisma.StringFilter<"staff"> | string + first_name?: Prisma.StringFilter<"staff"> | string + last_name?: Prisma.StringFilter<"staff"> | string + email?: Prisma.StringFilter<"staff"> | string + ext?: Prisma.StringFilter<"staff"> | string + cell?: Prisma.StringFilter<"staff"> | string + gpin?: Prisma.StringNullableFilter<"staff"> | string | null + rights?: Prisma.StringFilter<"staff"> | string + date_embauche?: Prisma.StringNullableFilter<"staff"> | string | null + fete?: Prisma.StringNullableFilter<"staff"> | string | null + supp?: Prisma.StringNullableFilter<"staff"> | string | null + group_ad?: Prisma.StringFilter<"staff"> | string + dept_list?: Prisma.StringFilter<"staff"> | string + notification?: Prisma.StringFilter<"staff"> | string + darkmode?: Prisma.BoolFilter<"staff"> | boolean + matricule_desjardins?: Prisma.IntNullableFilter<"staff"> | number | null + compagnie_desjardins?: Prisma.StringNullableFilter<"staff"> | string | null + ldap_id?: Prisma.IntNullableFilter<"staff"> | number | null +} + +export type staffOrderByWithRelationInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + vpn?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + email?: Prisma.SortOrder + ext?: Prisma.SortOrder + cell?: Prisma.SortOrder + gpin?: Prisma.SortOrderInput | Prisma.SortOrder + rights?: Prisma.SortOrder + date_embauche?: Prisma.SortOrderInput | Prisma.SortOrder + fete?: Prisma.SortOrderInput | Prisma.SortOrder + supp?: Prisma.SortOrderInput | Prisma.SortOrder + group_ad?: Prisma.SortOrder + dept_list?: Prisma.SortOrder + notification?: Prisma.SortOrder + darkmode?: Prisma.SortOrder + matricule_desjardins?: Prisma.SortOrderInput | Prisma.SortOrder + compagnie_desjardins?: Prisma.SortOrderInput | Prisma.SortOrder + ldap_id?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.staffOrderByRelevanceInput +} + +export type staffWhereUniqueInput = Prisma.AtLeast<{ + id?: number + username?: string + AND?: Prisma.staffWhereInput | Prisma.staffWhereInput[] + OR?: Prisma.staffWhereInput[] + NOT?: Prisma.staffWhereInput | Prisma.staffWhereInput[] + status?: Prisma.IntFilter<"staff"> | number + password?: Prisma.StringFilter<"staff"> | string + vpn?: Prisma.StringFilter<"staff"> | string + first_name?: Prisma.StringFilter<"staff"> | string + last_name?: Prisma.StringFilter<"staff"> | string + email?: Prisma.StringFilter<"staff"> | string + ext?: Prisma.StringFilter<"staff"> | string + cell?: Prisma.StringFilter<"staff"> | string + gpin?: Prisma.StringNullableFilter<"staff"> | string | null + rights?: Prisma.StringFilter<"staff"> | string + date_embauche?: Prisma.StringNullableFilter<"staff"> | string | null + fete?: Prisma.StringNullableFilter<"staff"> | string | null + supp?: Prisma.StringNullableFilter<"staff"> | string | null + group_ad?: Prisma.StringFilter<"staff"> | string + dept_list?: Prisma.StringFilter<"staff"> | string + notification?: Prisma.StringFilter<"staff"> | string + darkmode?: Prisma.BoolFilter<"staff"> | boolean + matricule_desjardins?: Prisma.IntNullableFilter<"staff"> | number | null + compagnie_desjardins?: Prisma.StringNullableFilter<"staff"> | string | null + ldap_id?: Prisma.IntNullableFilter<"staff"> | number | null +}, "id" | "username"> + +export type staffOrderByWithAggregationInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + vpn?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + email?: Prisma.SortOrder + ext?: Prisma.SortOrder + cell?: Prisma.SortOrder + gpin?: Prisma.SortOrderInput | Prisma.SortOrder + rights?: Prisma.SortOrder + date_embauche?: Prisma.SortOrderInput | Prisma.SortOrder + fete?: Prisma.SortOrderInput | Prisma.SortOrder + supp?: Prisma.SortOrderInput | Prisma.SortOrder + group_ad?: Prisma.SortOrder + dept_list?: Prisma.SortOrder + notification?: Prisma.SortOrder + darkmode?: Prisma.SortOrder + matricule_desjardins?: Prisma.SortOrderInput | Prisma.SortOrder + compagnie_desjardins?: Prisma.SortOrderInput | Prisma.SortOrder + ldap_id?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.staffCountOrderByAggregateInput + _avg?: Prisma.staffAvgOrderByAggregateInput + _max?: Prisma.staffMaxOrderByAggregateInput + _min?: Prisma.staffMinOrderByAggregateInput + _sum?: Prisma.staffSumOrderByAggregateInput +} + +export type staffScalarWhereWithAggregatesInput = { + AND?: Prisma.staffScalarWhereWithAggregatesInput | Prisma.staffScalarWhereWithAggregatesInput[] + OR?: Prisma.staffScalarWhereWithAggregatesInput[] + NOT?: Prisma.staffScalarWhereWithAggregatesInput | Prisma.staffScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"staff"> | number + status?: Prisma.IntWithAggregatesFilter<"staff"> | number + username?: Prisma.StringWithAggregatesFilter<"staff"> | string + password?: Prisma.StringWithAggregatesFilter<"staff"> | string + vpn?: Prisma.StringWithAggregatesFilter<"staff"> | string + first_name?: Prisma.StringWithAggregatesFilter<"staff"> | string + last_name?: Prisma.StringWithAggregatesFilter<"staff"> | string + email?: Prisma.StringWithAggregatesFilter<"staff"> | string + ext?: Prisma.StringWithAggregatesFilter<"staff"> | string + cell?: Prisma.StringWithAggregatesFilter<"staff"> | string + gpin?: Prisma.StringNullableWithAggregatesFilter<"staff"> | string | null + rights?: Prisma.StringWithAggregatesFilter<"staff"> | string + date_embauche?: Prisma.StringNullableWithAggregatesFilter<"staff"> | string | null + fete?: Prisma.StringNullableWithAggregatesFilter<"staff"> | string | null + supp?: Prisma.StringNullableWithAggregatesFilter<"staff"> | string | null + group_ad?: Prisma.StringWithAggregatesFilter<"staff"> | string + dept_list?: Prisma.StringWithAggregatesFilter<"staff"> | string + notification?: Prisma.StringWithAggregatesFilter<"staff"> | string + darkmode?: Prisma.BoolWithAggregatesFilter<"staff"> | boolean + matricule_desjardins?: Prisma.IntNullableWithAggregatesFilter<"staff"> | number | null + compagnie_desjardins?: Prisma.StringNullableWithAggregatesFilter<"staff"> | string | null + ldap_id?: Prisma.IntNullableWithAggregatesFilter<"staff"> | number | null +} + +export type staffCreateInput = { + status: number + username: string + password: string + vpn: string + first_name: string + last_name: string + email: string + ext: string + cell: string + gpin?: string | null + rights: string + date_embauche?: string | null + fete?: string | null + supp?: string | null + group_ad?: string + dept_list: string + notification: string + darkmode?: boolean + matricule_desjardins?: number | null + compagnie_desjardins?: string | null + ldap_id?: number | null +} + +export type staffUncheckedCreateInput = { + id?: number + status: number + username: string + password: string + vpn: string + first_name: string + last_name: string + email: string + ext: string + cell: string + gpin?: string | null + rights: string + date_embauche?: string | null + fete?: string | null + supp?: string | null + group_ad?: string + dept_list: string + notification: string + darkmode?: boolean + matricule_desjardins?: number | null + compagnie_desjardins?: string | null + ldap_id?: number | null +} + +export type staffUpdateInput = { + status?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + vpn?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + ext?: Prisma.StringFieldUpdateOperationsInput | string + cell?: Prisma.StringFieldUpdateOperationsInput | string + gpin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + rights?: Prisma.StringFieldUpdateOperationsInput | string + date_embauche?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fete?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + supp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + group_ad?: Prisma.StringFieldUpdateOperationsInput | string + dept_list?: Prisma.StringFieldUpdateOperationsInput | string + notification?: Prisma.StringFieldUpdateOperationsInput | string + darkmode?: Prisma.BoolFieldUpdateOperationsInput | boolean + matricule_desjardins?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + compagnie_desjardins?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ldap_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type staffUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + vpn?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + ext?: Prisma.StringFieldUpdateOperationsInput | string + cell?: Prisma.StringFieldUpdateOperationsInput | string + gpin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + rights?: Prisma.StringFieldUpdateOperationsInput | string + date_embauche?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fete?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + supp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + group_ad?: Prisma.StringFieldUpdateOperationsInput | string + dept_list?: Prisma.StringFieldUpdateOperationsInput | string + notification?: Prisma.StringFieldUpdateOperationsInput | string + darkmode?: Prisma.BoolFieldUpdateOperationsInput | boolean + matricule_desjardins?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + compagnie_desjardins?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ldap_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type staffCreateManyInput = { + id?: number + status: number + username: string + password: string + vpn: string + first_name: string + last_name: string + email: string + ext: string + cell: string + gpin?: string | null + rights: string + date_embauche?: string | null + fete?: string | null + supp?: string | null + group_ad?: string + dept_list: string + notification: string + darkmode?: boolean + matricule_desjardins?: number | null + compagnie_desjardins?: string | null + ldap_id?: number | null +} + +export type staffUpdateManyMutationInput = { + status?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + vpn?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + ext?: Prisma.StringFieldUpdateOperationsInput | string + cell?: Prisma.StringFieldUpdateOperationsInput | string + gpin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + rights?: Prisma.StringFieldUpdateOperationsInput | string + date_embauche?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fete?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + supp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + group_ad?: Prisma.StringFieldUpdateOperationsInput | string + dept_list?: Prisma.StringFieldUpdateOperationsInput | string + notification?: Prisma.StringFieldUpdateOperationsInput | string + darkmode?: Prisma.BoolFieldUpdateOperationsInput | boolean + matricule_desjardins?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + compagnie_desjardins?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ldap_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type staffUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + vpn?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + ext?: Prisma.StringFieldUpdateOperationsInput | string + cell?: Prisma.StringFieldUpdateOperationsInput | string + gpin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + rights?: Prisma.StringFieldUpdateOperationsInput | string + date_embauche?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + fete?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + supp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + group_ad?: Prisma.StringFieldUpdateOperationsInput | string + dept_list?: Prisma.StringFieldUpdateOperationsInput | string + notification?: Prisma.StringFieldUpdateOperationsInput | string + darkmode?: Prisma.BoolFieldUpdateOperationsInput | boolean + matricule_desjardins?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + compagnie_desjardins?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + ldap_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type staffOrderByRelevanceInput = { + fields: Prisma.staffOrderByRelevanceFieldEnum | Prisma.staffOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type staffCountOrderByAggregateInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + vpn?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + email?: Prisma.SortOrder + ext?: Prisma.SortOrder + cell?: Prisma.SortOrder + gpin?: Prisma.SortOrder + rights?: Prisma.SortOrder + date_embauche?: Prisma.SortOrder + fete?: Prisma.SortOrder + supp?: Prisma.SortOrder + group_ad?: Prisma.SortOrder + dept_list?: Prisma.SortOrder + notification?: Prisma.SortOrder + darkmode?: Prisma.SortOrder + matricule_desjardins?: Prisma.SortOrder + compagnie_desjardins?: Prisma.SortOrder + ldap_id?: Prisma.SortOrder +} + +export type staffAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder + matricule_desjardins?: Prisma.SortOrder + ldap_id?: Prisma.SortOrder +} + +export type staffMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + vpn?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + email?: Prisma.SortOrder + ext?: Prisma.SortOrder + cell?: Prisma.SortOrder + gpin?: Prisma.SortOrder + rights?: Prisma.SortOrder + date_embauche?: Prisma.SortOrder + fete?: Prisma.SortOrder + supp?: Prisma.SortOrder + group_ad?: Prisma.SortOrder + dept_list?: Prisma.SortOrder + notification?: Prisma.SortOrder + darkmode?: Prisma.SortOrder + matricule_desjardins?: Prisma.SortOrder + compagnie_desjardins?: Prisma.SortOrder + ldap_id?: Prisma.SortOrder +} + +export type staffMinOrderByAggregateInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + vpn?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + email?: Prisma.SortOrder + ext?: Prisma.SortOrder + cell?: Prisma.SortOrder + gpin?: Prisma.SortOrder + rights?: Prisma.SortOrder + date_embauche?: Prisma.SortOrder + fete?: Prisma.SortOrder + supp?: Prisma.SortOrder + group_ad?: Prisma.SortOrder + dept_list?: Prisma.SortOrder + notification?: Prisma.SortOrder + darkmode?: Prisma.SortOrder + matricule_desjardins?: Prisma.SortOrder + compagnie_desjardins?: Prisma.SortOrder + ldap_id?: Prisma.SortOrder +} + +export type staffSumOrderByAggregateInput = { + id?: Prisma.SortOrder + status?: Prisma.SortOrder + matricule_desjardins?: Prisma.SortOrder + ldap_id?: Prisma.SortOrder +} + + + +export type staffSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + status?: boolean + username?: boolean + password?: boolean + vpn?: boolean + first_name?: boolean + last_name?: boolean + email?: boolean + ext?: boolean + cell?: boolean + gpin?: boolean + rights?: boolean + date_embauche?: boolean + fete?: boolean + supp?: boolean + group_ad?: boolean + dept_list?: boolean + notification?: boolean + darkmode?: boolean + matricule_desjardins?: boolean + compagnie_desjardins?: boolean + ldap_id?: boolean +}, ExtArgs["result"]["staff"]> + + + +export type staffSelectScalar = { + id?: boolean + status?: boolean + username?: boolean + password?: boolean + vpn?: boolean + first_name?: boolean + last_name?: boolean + email?: boolean + ext?: boolean + cell?: boolean + gpin?: boolean + rights?: boolean + date_embauche?: boolean + fete?: boolean + supp?: boolean + group_ad?: boolean + dept_list?: boolean + notification?: boolean + darkmode?: boolean + matricule_desjardins?: boolean + compagnie_desjardins?: boolean + ldap_id?: boolean +} + +export type staffOmit = runtime.Types.Extensions.GetOmit<"id" | "status" | "username" | "password" | "vpn" | "first_name" | "last_name" | "email" | "ext" | "cell" | "gpin" | "rights" | "date_embauche" | "fete" | "supp" | "group_ad" | "dept_list" | "notification" | "darkmode" | "matricule_desjardins" | "compagnie_desjardins" | "ldap_id", ExtArgs["result"]["staff"]> + +export type $staffPayload = { + name: "staff" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + status: number + username: string + password: string + vpn: string + first_name: string + last_name: string + email: string + ext: string + cell: string + gpin: string | null + rights: string + date_embauche: string | null + fete: string | null + supp: string | null + group_ad: string + dept_list: string + notification: string + darkmode: boolean + matricule_desjardins: number | null + compagnie_desjardins: string | null + ldap_id: number | null + }, ExtArgs["result"]["staff"]> + composites: {} +} + +export type staffGetPayload = runtime.Types.Result.GetResult + +export type staffCountArgs = + Omit & { + select?: StaffCountAggregateInputType | true + } + +export interface staffDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['staff'], meta: { name: 'staff' } } + /** + * Find zero or one Staff that matches the filter. + * @param {staffFindUniqueArgs} args - Arguments to find a Staff + * @example + * // Get one Staff + * const staff = await prisma.staff.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Staff that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {staffFindUniqueOrThrowArgs} args - Arguments to find a Staff + * @example + * // Get one Staff + * const staff = await prisma.staff.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Staff 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 {staffFindFirstArgs} args - Arguments to find a Staff + * @example + * // Get one Staff + * const staff = await prisma.staff.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Staff 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 {staffFindFirstOrThrowArgs} args - Arguments to find a Staff + * @example + * // Get one Staff + * const staff = await prisma.staff.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Staff 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 {staffFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Staff + * const staff = await prisma.staff.findMany() + * + * // Get first 10 Staff + * const staff = await prisma.staff.findMany({ take: 10 }) + * + * // Only select the `id` + * const staffWithIdOnly = await prisma.staff.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Staff. + * @param {staffCreateArgs} args - Arguments to create a Staff. + * @example + * // Create one Staff + * const Staff = await prisma.staff.create({ + * data: { + * // ... data to create a Staff + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Staff. + * @param {staffCreateManyArgs} args - Arguments to create many Staff. + * @example + * // Create many Staff + * const staff = await prisma.staff.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Staff. + * @param {staffDeleteArgs} args - Arguments to delete one Staff. + * @example + * // Delete one Staff + * const Staff = await prisma.staff.delete({ + * where: { + * // ... filter to delete one Staff + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Staff. + * @param {staffUpdateArgs} args - Arguments to update one Staff. + * @example + * // Update one Staff + * const staff = await prisma.staff.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Staff. + * @param {staffDeleteManyArgs} args - Arguments to filter Staff to delete. + * @example + * // Delete a few Staff + * const { count } = await prisma.staff.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Staff. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {staffUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Staff + * const staff = await prisma.staff.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Staff. + * @param {staffUpsertArgs} args - Arguments to update or create a Staff. + * @example + * // Update or create a Staff + * const staff = await prisma.staff.upsert({ + * create: { + * // ... data to create a Staff + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Staff we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__staffClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Staff. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {staffCountArgs} args - Arguments to filter Staff to count. + * @example + * // Count the number of Staff + * const count = await prisma.staff.count({ + * where: { + * // ... the filter for the Staff 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 Staff. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StaffAggregateArgs} 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 Staff. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {staffGroupByArgs} 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 staffGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: staffGroupByArgs['orderBy'] } + : { orderBy?: staffGroupByArgs['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 ? GetStaffGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the staff model + */ +readonly fields: staffFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for staff. + * 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__staffClient 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 staff model + */ +export interface staffFieldRefs { + readonly id: Prisma.FieldRef<"staff", 'Int'> + readonly status: Prisma.FieldRef<"staff", 'Int'> + readonly username: Prisma.FieldRef<"staff", 'String'> + readonly password: Prisma.FieldRef<"staff", 'String'> + readonly vpn: Prisma.FieldRef<"staff", 'String'> + readonly first_name: Prisma.FieldRef<"staff", 'String'> + readonly last_name: Prisma.FieldRef<"staff", 'String'> + readonly email: Prisma.FieldRef<"staff", 'String'> + readonly ext: Prisma.FieldRef<"staff", 'String'> + readonly cell: Prisma.FieldRef<"staff", 'String'> + readonly gpin: Prisma.FieldRef<"staff", 'String'> + readonly rights: Prisma.FieldRef<"staff", 'String'> + readonly date_embauche: Prisma.FieldRef<"staff", 'String'> + readonly fete: Prisma.FieldRef<"staff", 'String'> + readonly supp: Prisma.FieldRef<"staff", 'String'> + readonly group_ad: Prisma.FieldRef<"staff", 'String'> + readonly dept_list: Prisma.FieldRef<"staff", 'String'> + readonly notification: Prisma.FieldRef<"staff", 'String'> + readonly darkmode: Prisma.FieldRef<"staff", 'Boolean'> + readonly matricule_desjardins: Prisma.FieldRef<"staff", 'Int'> + readonly compagnie_desjardins: Prisma.FieldRef<"staff", 'String'> + readonly ldap_id: Prisma.FieldRef<"staff", 'Int'> +} + + +// Custom InputTypes +/** + * staff findUnique + */ +export type staffFindUniqueArgs = { + /** + * Select specific fields to fetch from the staff + */ + select?: Prisma.staffSelect | null + /** + * Omit specific fields from the staff + */ + omit?: Prisma.staffOmit | null + /** + * Filter, which staff to fetch. + */ + where: Prisma.staffWhereUniqueInput +} + +/** + * staff findUniqueOrThrow + */ +export type staffFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the staff + */ + select?: Prisma.staffSelect | null + /** + * Omit specific fields from the staff + */ + omit?: Prisma.staffOmit | null + /** + * Filter, which staff to fetch. + */ + where: Prisma.staffWhereUniqueInput +} + +/** + * staff findFirst + */ +export type staffFindFirstArgs = { + /** + * Select specific fields to fetch from the staff + */ + select?: Prisma.staffSelect | null + /** + * Omit specific fields from the staff + */ + omit?: Prisma.staffOmit | null + /** + * Filter, which staff to fetch. + */ + where?: Prisma.staffWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of staff to fetch. + */ + orderBy?: Prisma.staffOrderByWithRelationInput | Prisma.staffOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for staff. + */ + cursor?: Prisma.staffWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` staff 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` staff. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of staff. + */ + distinct?: Prisma.StaffScalarFieldEnum | Prisma.StaffScalarFieldEnum[] +} + +/** + * staff findFirstOrThrow + */ +export type staffFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the staff + */ + select?: Prisma.staffSelect | null + /** + * Omit specific fields from the staff + */ + omit?: Prisma.staffOmit | null + /** + * Filter, which staff to fetch. + */ + where?: Prisma.staffWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of staff to fetch. + */ + orderBy?: Prisma.staffOrderByWithRelationInput | Prisma.staffOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for staff. + */ + cursor?: Prisma.staffWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` staff 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` staff. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of staff. + */ + distinct?: Prisma.StaffScalarFieldEnum | Prisma.StaffScalarFieldEnum[] +} + +/** + * staff findMany + */ +export type staffFindManyArgs = { + /** + * Select specific fields to fetch from the staff + */ + select?: Prisma.staffSelect | null + /** + * Omit specific fields from the staff + */ + omit?: Prisma.staffOmit | null + /** + * Filter, which staff to fetch. + */ + where?: Prisma.staffWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of staff to fetch. + */ + orderBy?: Prisma.staffOrderByWithRelationInput | Prisma.staffOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing staff. + */ + cursor?: Prisma.staffWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` staff 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` staff. + */ + skip?: number + distinct?: Prisma.StaffScalarFieldEnum | Prisma.StaffScalarFieldEnum[] +} + +/** + * staff create + */ +export type staffCreateArgs = { + /** + * Select specific fields to fetch from the staff + */ + select?: Prisma.staffSelect | null + /** + * Omit specific fields from the staff + */ + omit?: Prisma.staffOmit | null + /** + * The data needed to create a staff. + */ + data: Prisma.XOR +} + +/** + * staff createMany + */ +export type staffCreateManyArgs = { + /** + * The data used to create many staff. + */ + data: Prisma.staffCreateManyInput | Prisma.staffCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * staff update + */ +export type staffUpdateArgs = { + /** + * Select specific fields to fetch from the staff + */ + select?: Prisma.staffSelect | null + /** + * Omit specific fields from the staff + */ + omit?: Prisma.staffOmit | null + /** + * The data needed to update a staff. + */ + data: Prisma.XOR + /** + * Choose, which staff to update. + */ + where: Prisma.staffWhereUniqueInput +} + +/** + * staff updateMany + */ +export type staffUpdateManyArgs = { + /** + * The data used to update staff. + */ + data: Prisma.XOR + /** + * Filter which staff to update + */ + where?: Prisma.staffWhereInput + /** + * Limit how many staff to update. + */ + limit?: number +} + +/** + * staff upsert + */ +export type staffUpsertArgs = { + /** + * Select specific fields to fetch from the staff + */ + select?: Prisma.staffSelect | null + /** + * Omit specific fields from the staff + */ + omit?: Prisma.staffOmit | null + /** + * The filter to search for the staff to update in case it exists. + */ + where: Prisma.staffWhereUniqueInput + /** + * In case the staff found by the `where` argument doesn't exist, create a new staff with this data. + */ + create: Prisma.XOR + /** + * In case the staff was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * staff delete + */ +export type staffDeleteArgs = { + /** + * Select specific fields to fetch from the staff + */ + select?: Prisma.staffSelect | null + /** + * Omit specific fields from the staff + */ + omit?: Prisma.staffOmit | null + /** + * Filter which staff to delete. + */ + where: Prisma.staffWhereUniqueInput +} + +/** + * staff deleteMany + */ +export type staffDeleteManyArgs = { + /** + * Filter which staff to delete + */ + where?: Prisma.staffWhereInput + /** + * Limit how many staff to delete. + */ + limit?: number +} + +/** + * staff without action + */ +export type staffDefaultArgs = { + /** + * Select specific fields to fetch from the staff + */ + select?: Prisma.staffSelect | null + /** + * Omit specific fields from the staff + */ + omit?: Prisma.staffOmit | null +} diff --git a/prisma/generated/mariadb/models/staff_dispo.ts b/prisma/generated/mariadb/models/staff_dispo.ts new file mode 100644 index 0000000..e6ced55 --- /dev/null +++ b/prisma/generated/mariadb/models/staff_dispo.ts @@ -0,0 +1,1032 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `staff_dispo` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model staff_dispo + * + */ +export type staff_dispoModel = runtime.Types.Result.DefaultSelection + +export type AggregateStaff_dispo = { + _count: Staff_dispoCountAggregateOutputType | null + _avg: Staff_dispoAvgAggregateOutputType | null + _sum: Staff_dispoSumAggregateOutputType | null + _min: Staff_dispoMinAggregateOutputType | null + _max: Staff_dispoMaxAggregateOutputType | null +} + +export type Staff_dispoAvgAggregateOutputType = { + id: number | null + day_num: number | null + staff_id: number | null +} + +export type Staff_dispoSumAggregateOutputType = { + id: number | null + day_num: number | null + staff_id: number | null +} + +export type Staff_dispoMinAggregateOutputType = { + id: number | null + day_num: number | null + staff_id: number | null +} + +export type Staff_dispoMaxAggregateOutputType = { + id: number | null + day_num: number | null + staff_id: number | null +} + +export type Staff_dispoCountAggregateOutputType = { + id: number + day_num: number + staff_id: number + _all: number +} + + +export type Staff_dispoAvgAggregateInputType = { + id?: true + day_num?: true + staff_id?: true +} + +export type Staff_dispoSumAggregateInputType = { + id?: true + day_num?: true + staff_id?: true +} + +export type Staff_dispoMinAggregateInputType = { + id?: true + day_num?: true + staff_id?: true +} + +export type Staff_dispoMaxAggregateInputType = { + id?: true + day_num?: true + staff_id?: true +} + +export type Staff_dispoCountAggregateInputType = { + id?: true + day_num?: true + staff_id?: true + _all?: true +} + +export type Staff_dispoAggregateArgs = { + /** + * Filter which staff_dispo to aggregate. + */ + where?: Prisma.staff_dispoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of staff_dispos to fetch. + */ + orderBy?: Prisma.staff_dispoOrderByWithRelationInput | Prisma.staff_dispoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.staff_dispoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` staff_dispos 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` staff_dispos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned staff_dispos + **/ + _count?: true | Staff_dispoCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Staff_dispoAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Staff_dispoSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Staff_dispoMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Staff_dispoMaxAggregateInputType +} + +export type GetStaff_dispoAggregateType = { + [P in keyof T & keyof AggregateStaff_dispo]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type staff_dispoGroupByArgs = { + where?: Prisma.staff_dispoWhereInput + orderBy?: Prisma.staff_dispoOrderByWithAggregationInput | Prisma.staff_dispoOrderByWithAggregationInput[] + by: Prisma.Staff_dispoScalarFieldEnum[] | Prisma.Staff_dispoScalarFieldEnum + having?: Prisma.staff_dispoScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Staff_dispoCountAggregateInputType | true + _avg?: Staff_dispoAvgAggregateInputType + _sum?: Staff_dispoSumAggregateInputType + _min?: Staff_dispoMinAggregateInputType + _max?: Staff_dispoMaxAggregateInputType +} + +export type Staff_dispoGroupByOutputType = { + id: number + day_num: number + staff_id: number | null + _count: Staff_dispoCountAggregateOutputType | null + _avg: Staff_dispoAvgAggregateOutputType | null + _sum: Staff_dispoSumAggregateOutputType | null + _min: Staff_dispoMinAggregateOutputType | null + _max: Staff_dispoMaxAggregateOutputType | null +} + +type GetStaff_dispoGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Staff_dispoGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type staff_dispoWhereInput = { + AND?: Prisma.staff_dispoWhereInput | Prisma.staff_dispoWhereInput[] + OR?: Prisma.staff_dispoWhereInput[] + NOT?: Prisma.staff_dispoWhereInput | Prisma.staff_dispoWhereInput[] + id?: Prisma.IntFilter<"staff_dispo"> | number + day_num?: Prisma.IntFilter<"staff_dispo"> | number + staff_id?: Prisma.IntNullableFilter<"staff_dispo"> | number | null +} + +export type staff_dispoOrderByWithRelationInput = { + id?: Prisma.SortOrder + day_num?: Prisma.SortOrder + staff_id?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type staff_dispoWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.staff_dispoWhereInput | Prisma.staff_dispoWhereInput[] + OR?: Prisma.staff_dispoWhereInput[] + NOT?: Prisma.staff_dispoWhereInput | Prisma.staff_dispoWhereInput[] + day_num?: Prisma.IntFilter<"staff_dispo"> | number + staff_id?: Prisma.IntNullableFilter<"staff_dispo"> | number | null +}, "id"> + +export type staff_dispoOrderByWithAggregationInput = { + id?: Prisma.SortOrder + day_num?: Prisma.SortOrder + staff_id?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.staff_dispoCountOrderByAggregateInput + _avg?: Prisma.staff_dispoAvgOrderByAggregateInput + _max?: Prisma.staff_dispoMaxOrderByAggregateInput + _min?: Prisma.staff_dispoMinOrderByAggregateInput + _sum?: Prisma.staff_dispoSumOrderByAggregateInput +} + +export type staff_dispoScalarWhereWithAggregatesInput = { + AND?: Prisma.staff_dispoScalarWhereWithAggregatesInput | Prisma.staff_dispoScalarWhereWithAggregatesInput[] + OR?: Prisma.staff_dispoScalarWhereWithAggregatesInput[] + NOT?: Prisma.staff_dispoScalarWhereWithAggregatesInput | Prisma.staff_dispoScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"staff_dispo"> | number + day_num?: Prisma.IntWithAggregatesFilter<"staff_dispo"> | number + staff_id?: Prisma.IntNullableWithAggregatesFilter<"staff_dispo"> | number | null +} + +export type staff_dispoCreateInput = { + day_num: number + staff_id?: number | null +} + +export type staff_dispoUncheckedCreateInput = { + id?: number + day_num: number + staff_id?: number | null +} + +export type staff_dispoUpdateInput = { + day_num?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type staff_dispoUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + day_num?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type staff_dispoCreateManyInput = { + id?: number + day_num: number + staff_id?: number | null +} + +export type staff_dispoUpdateManyMutationInput = { + day_num?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type staff_dispoUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + day_num?: Prisma.IntFieldUpdateOperationsInput | number + staff_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type staff_dispoCountOrderByAggregateInput = { + id?: Prisma.SortOrder + day_num?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type staff_dispoAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + day_num?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type staff_dispoMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + day_num?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type staff_dispoMinOrderByAggregateInput = { + id?: Prisma.SortOrder + day_num?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type staff_dispoSumOrderByAggregateInput = { + id?: Prisma.SortOrder + day_num?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + + + +export type staff_dispoSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + day_num?: boolean + staff_id?: boolean +}, ExtArgs["result"]["staff_dispo"]> + + + +export type staff_dispoSelectScalar = { + id?: boolean + day_num?: boolean + staff_id?: boolean +} + +export type staff_dispoOmit = runtime.Types.Extensions.GetOmit<"id" | "day_num" | "staff_id", ExtArgs["result"]["staff_dispo"]> + +export type $staff_dispoPayload = { + name: "staff_dispo" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + day_num: number + staff_id: number | null + }, ExtArgs["result"]["staff_dispo"]> + composites: {} +} + +export type staff_dispoGetPayload = runtime.Types.Result.GetResult + +export type staff_dispoCountArgs = + Omit & { + select?: Staff_dispoCountAggregateInputType | true + } + +export interface staff_dispoDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['staff_dispo'], meta: { name: 'staff_dispo' } } + /** + * Find zero or one Staff_dispo that matches the filter. + * @param {staff_dispoFindUniqueArgs} args - Arguments to find a Staff_dispo + * @example + * // Get one Staff_dispo + * const staff_dispo = await prisma.staff_dispo.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__staff_dispoClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Staff_dispo that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {staff_dispoFindUniqueOrThrowArgs} args - Arguments to find a Staff_dispo + * @example + * // Get one Staff_dispo + * const staff_dispo = await prisma.staff_dispo.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__staff_dispoClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Staff_dispo 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 {staff_dispoFindFirstArgs} args - Arguments to find a Staff_dispo + * @example + * // Get one Staff_dispo + * const staff_dispo = await prisma.staff_dispo.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__staff_dispoClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Staff_dispo 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 {staff_dispoFindFirstOrThrowArgs} args - Arguments to find a Staff_dispo + * @example + * // Get one Staff_dispo + * const staff_dispo = await prisma.staff_dispo.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__staff_dispoClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Staff_dispos 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 {staff_dispoFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Staff_dispos + * const staff_dispos = await prisma.staff_dispo.findMany() + * + * // Get first 10 Staff_dispos + * const staff_dispos = await prisma.staff_dispo.findMany({ take: 10 }) + * + * // Only select the `id` + * const staff_dispoWithIdOnly = await prisma.staff_dispo.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Staff_dispo. + * @param {staff_dispoCreateArgs} args - Arguments to create a Staff_dispo. + * @example + * // Create one Staff_dispo + * const Staff_dispo = await prisma.staff_dispo.create({ + * data: { + * // ... data to create a Staff_dispo + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__staff_dispoClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Staff_dispos. + * @param {staff_dispoCreateManyArgs} args - Arguments to create many Staff_dispos. + * @example + * // Create many Staff_dispos + * const staff_dispo = await prisma.staff_dispo.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Staff_dispo. + * @param {staff_dispoDeleteArgs} args - Arguments to delete one Staff_dispo. + * @example + * // Delete one Staff_dispo + * const Staff_dispo = await prisma.staff_dispo.delete({ + * where: { + * // ... filter to delete one Staff_dispo + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__staff_dispoClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Staff_dispo. + * @param {staff_dispoUpdateArgs} args - Arguments to update one Staff_dispo. + * @example + * // Update one Staff_dispo + * const staff_dispo = await prisma.staff_dispo.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__staff_dispoClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Staff_dispos. + * @param {staff_dispoDeleteManyArgs} args - Arguments to filter Staff_dispos to delete. + * @example + * // Delete a few Staff_dispos + * const { count } = await prisma.staff_dispo.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Staff_dispos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {staff_dispoUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Staff_dispos + * const staff_dispo = await prisma.staff_dispo.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Staff_dispo. + * @param {staff_dispoUpsertArgs} args - Arguments to update or create a Staff_dispo. + * @example + * // Update or create a Staff_dispo + * const staff_dispo = await prisma.staff_dispo.upsert({ + * create: { + * // ... data to create a Staff_dispo + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Staff_dispo we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__staff_dispoClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Staff_dispos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {staff_dispoCountArgs} args - Arguments to filter Staff_dispos to count. + * @example + * // Count the number of Staff_dispos + * const count = await prisma.staff_dispo.count({ + * where: { + * // ... the filter for the Staff_dispos 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 Staff_dispo. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Staff_dispoAggregateArgs} 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 Staff_dispo. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {staff_dispoGroupByArgs} 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 staff_dispoGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: staff_dispoGroupByArgs['orderBy'] } + : { orderBy?: staff_dispoGroupByArgs['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 ? GetStaff_dispoGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the staff_dispo model + */ +readonly fields: staff_dispoFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for staff_dispo. + * 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__staff_dispoClient 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 staff_dispo model + */ +export interface staff_dispoFieldRefs { + readonly id: Prisma.FieldRef<"staff_dispo", 'Int'> + readonly day_num: Prisma.FieldRef<"staff_dispo", 'Int'> + readonly staff_id: Prisma.FieldRef<"staff_dispo", 'Int'> +} + + +// Custom InputTypes +/** + * staff_dispo findUnique + */ +export type staff_dispoFindUniqueArgs = { + /** + * Select specific fields to fetch from the staff_dispo + */ + select?: Prisma.staff_dispoSelect | null + /** + * Omit specific fields from the staff_dispo + */ + omit?: Prisma.staff_dispoOmit | null + /** + * Filter, which staff_dispo to fetch. + */ + where: Prisma.staff_dispoWhereUniqueInput +} + +/** + * staff_dispo findUniqueOrThrow + */ +export type staff_dispoFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the staff_dispo + */ + select?: Prisma.staff_dispoSelect | null + /** + * Omit specific fields from the staff_dispo + */ + omit?: Prisma.staff_dispoOmit | null + /** + * Filter, which staff_dispo to fetch. + */ + where: Prisma.staff_dispoWhereUniqueInput +} + +/** + * staff_dispo findFirst + */ +export type staff_dispoFindFirstArgs = { + /** + * Select specific fields to fetch from the staff_dispo + */ + select?: Prisma.staff_dispoSelect | null + /** + * Omit specific fields from the staff_dispo + */ + omit?: Prisma.staff_dispoOmit | null + /** + * Filter, which staff_dispo to fetch. + */ + where?: Prisma.staff_dispoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of staff_dispos to fetch. + */ + orderBy?: Prisma.staff_dispoOrderByWithRelationInput | Prisma.staff_dispoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for staff_dispos. + */ + cursor?: Prisma.staff_dispoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` staff_dispos 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` staff_dispos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of staff_dispos. + */ + distinct?: Prisma.Staff_dispoScalarFieldEnum | Prisma.Staff_dispoScalarFieldEnum[] +} + +/** + * staff_dispo findFirstOrThrow + */ +export type staff_dispoFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the staff_dispo + */ + select?: Prisma.staff_dispoSelect | null + /** + * Omit specific fields from the staff_dispo + */ + omit?: Prisma.staff_dispoOmit | null + /** + * Filter, which staff_dispo to fetch. + */ + where?: Prisma.staff_dispoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of staff_dispos to fetch. + */ + orderBy?: Prisma.staff_dispoOrderByWithRelationInput | Prisma.staff_dispoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for staff_dispos. + */ + cursor?: Prisma.staff_dispoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` staff_dispos 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` staff_dispos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of staff_dispos. + */ + distinct?: Prisma.Staff_dispoScalarFieldEnum | Prisma.Staff_dispoScalarFieldEnum[] +} + +/** + * staff_dispo findMany + */ +export type staff_dispoFindManyArgs = { + /** + * Select specific fields to fetch from the staff_dispo + */ + select?: Prisma.staff_dispoSelect | null + /** + * Omit specific fields from the staff_dispo + */ + omit?: Prisma.staff_dispoOmit | null + /** + * Filter, which staff_dispos to fetch. + */ + where?: Prisma.staff_dispoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of staff_dispos to fetch. + */ + orderBy?: Prisma.staff_dispoOrderByWithRelationInput | Prisma.staff_dispoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing staff_dispos. + */ + cursor?: Prisma.staff_dispoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` staff_dispos 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` staff_dispos. + */ + skip?: number + distinct?: Prisma.Staff_dispoScalarFieldEnum | Prisma.Staff_dispoScalarFieldEnum[] +} + +/** + * staff_dispo create + */ +export type staff_dispoCreateArgs = { + /** + * Select specific fields to fetch from the staff_dispo + */ + select?: Prisma.staff_dispoSelect | null + /** + * Omit specific fields from the staff_dispo + */ + omit?: Prisma.staff_dispoOmit | null + /** + * The data needed to create a staff_dispo. + */ + data: Prisma.XOR +} + +/** + * staff_dispo createMany + */ +export type staff_dispoCreateManyArgs = { + /** + * The data used to create many staff_dispos. + */ + data: Prisma.staff_dispoCreateManyInput | Prisma.staff_dispoCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * staff_dispo update + */ +export type staff_dispoUpdateArgs = { + /** + * Select specific fields to fetch from the staff_dispo + */ + select?: Prisma.staff_dispoSelect | null + /** + * Omit specific fields from the staff_dispo + */ + omit?: Prisma.staff_dispoOmit | null + /** + * The data needed to update a staff_dispo. + */ + data: Prisma.XOR + /** + * Choose, which staff_dispo to update. + */ + where: Prisma.staff_dispoWhereUniqueInput +} + +/** + * staff_dispo updateMany + */ +export type staff_dispoUpdateManyArgs = { + /** + * The data used to update staff_dispos. + */ + data: Prisma.XOR + /** + * Filter which staff_dispos to update + */ + where?: Prisma.staff_dispoWhereInput + /** + * Limit how many staff_dispos to update. + */ + limit?: number +} + +/** + * staff_dispo upsert + */ +export type staff_dispoUpsertArgs = { + /** + * Select specific fields to fetch from the staff_dispo + */ + select?: Prisma.staff_dispoSelect | null + /** + * Omit specific fields from the staff_dispo + */ + omit?: Prisma.staff_dispoOmit | null + /** + * The filter to search for the staff_dispo to update in case it exists. + */ + where: Prisma.staff_dispoWhereUniqueInput + /** + * In case the staff_dispo found by the `where` argument doesn't exist, create a new staff_dispo with this data. + */ + create: Prisma.XOR + /** + * In case the staff_dispo was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * staff_dispo delete + */ +export type staff_dispoDeleteArgs = { + /** + * Select specific fields to fetch from the staff_dispo + */ + select?: Prisma.staff_dispoSelect | null + /** + * Omit specific fields from the staff_dispo + */ + omit?: Prisma.staff_dispoOmit | null + /** + * Filter which staff_dispo to delete. + */ + where: Prisma.staff_dispoWhereUniqueInput +} + +/** + * staff_dispo deleteMany + */ +export type staff_dispoDeleteManyArgs = { + /** + * Filter which staff_dispos to delete + */ + where?: Prisma.staff_dispoWhereInput + /** + * Limit how many staff_dispos to delete. + */ + limit?: number +} + +/** + * staff_dispo without action + */ +export type staff_dispoDefaultArgs = { + /** + * Select specific fields to fetch from the staff_dispo + */ + select?: Prisma.staff_dispoSelect | null + /** + * Omit specific fields from the staff_dispo + */ + omit?: Prisma.staff_dispoOmit | null +} diff --git a/prisma/generated/mariadb/models/staff_supp.ts b/prisma/generated/mariadb/models/staff_supp.ts new file mode 100644 index 0000000..730ab30 --- /dev/null +++ b/prisma/generated/mariadb/models/staff_supp.ts @@ -0,0 +1,1027 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `staff_supp` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model staff_supp + * + */ +export type staff_suppModel = runtime.Types.Result.DefaultSelection + +export type AggregateStaff_supp = { + _count: Staff_suppCountAggregateOutputType | null + _avg: Staff_suppAvgAggregateOutputType | null + _sum: Staff_suppSumAggregateOutputType | null + _min: Staff_suppMinAggregateOutputType | null + _max: Staff_suppMaxAggregateOutputType | null +} + +export type Staff_suppAvgAggregateOutputType = { + id: number | null +} + +export type Staff_suppSumAggregateOutputType = { + id: number | null +} + +export type Staff_suppMinAggregateOutputType = { + id: number | null + nom: string | null + staff_ids: string | null +} + +export type Staff_suppMaxAggregateOutputType = { + id: number | null + nom: string | null + staff_ids: string | null +} + +export type Staff_suppCountAggregateOutputType = { + id: number + nom: number + staff_ids: number + _all: number +} + + +export type Staff_suppAvgAggregateInputType = { + id?: true +} + +export type Staff_suppSumAggregateInputType = { + id?: true +} + +export type Staff_suppMinAggregateInputType = { + id?: true + nom?: true + staff_ids?: true +} + +export type Staff_suppMaxAggregateInputType = { + id?: true + nom?: true + staff_ids?: true +} + +export type Staff_suppCountAggregateInputType = { + id?: true + nom?: true + staff_ids?: true + _all?: true +} + +export type Staff_suppAggregateArgs = { + /** + * Filter which staff_supp to aggregate. + */ + where?: Prisma.staff_suppWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of staff_supps to fetch. + */ + orderBy?: Prisma.staff_suppOrderByWithRelationInput | Prisma.staff_suppOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.staff_suppWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` staff_supps 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` staff_supps. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned staff_supps + **/ + _count?: true | Staff_suppCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Staff_suppAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Staff_suppSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Staff_suppMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Staff_suppMaxAggregateInputType +} + +export type GetStaff_suppAggregateType = { + [P in keyof T & keyof AggregateStaff_supp]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type staff_suppGroupByArgs = { + where?: Prisma.staff_suppWhereInput + orderBy?: Prisma.staff_suppOrderByWithAggregationInput | Prisma.staff_suppOrderByWithAggregationInput[] + by: Prisma.Staff_suppScalarFieldEnum[] | Prisma.Staff_suppScalarFieldEnum + having?: Prisma.staff_suppScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Staff_suppCountAggregateInputType | true + _avg?: Staff_suppAvgAggregateInputType + _sum?: Staff_suppSumAggregateInputType + _min?: Staff_suppMinAggregateInputType + _max?: Staff_suppMaxAggregateInputType +} + +export type Staff_suppGroupByOutputType = { + id: number + nom: string + staff_ids: string + _count: Staff_suppCountAggregateOutputType | null + _avg: Staff_suppAvgAggregateOutputType | null + _sum: Staff_suppSumAggregateOutputType | null + _min: Staff_suppMinAggregateOutputType | null + _max: Staff_suppMaxAggregateOutputType | null +} + +type GetStaff_suppGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Staff_suppGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type staff_suppWhereInput = { + AND?: Prisma.staff_suppWhereInput | Prisma.staff_suppWhereInput[] + OR?: Prisma.staff_suppWhereInput[] + NOT?: Prisma.staff_suppWhereInput | Prisma.staff_suppWhereInput[] + id?: Prisma.IntFilter<"staff_supp"> | number + nom?: Prisma.StringFilter<"staff_supp"> | string + staff_ids?: Prisma.StringFilter<"staff_supp"> | string +} + +export type staff_suppOrderByWithRelationInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + staff_ids?: Prisma.SortOrder + _relevance?: Prisma.staff_suppOrderByRelevanceInput +} + +export type staff_suppWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.staff_suppWhereInput | Prisma.staff_suppWhereInput[] + OR?: Prisma.staff_suppWhereInput[] + NOT?: Prisma.staff_suppWhereInput | Prisma.staff_suppWhereInput[] + nom?: Prisma.StringFilter<"staff_supp"> | string + staff_ids?: Prisma.StringFilter<"staff_supp"> | string +}, "id"> + +export type staff_suppOrderByWithAggregationInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + staff_ids?: Prisma.SortOrder + _count?: Prisma.staff_suppCountOrderByAggregateInput + _avg?: Prisma.staff_suppAvgOrderByAggregateInput + _max?: Prisma.staff_suppMaxOrderByAggregateInput + _min?: Prisma.staff_suppMinOrderByAggregateInput + _sum?: Prisma.staff_suppSumOrderByAggregateInput +} + +export type staff_suppScalarWhereWithAggregatesInput = { + AND?: Prisma.staff_suppScalarWhereWithAggregatesInput | Prisma.staff_suppScalarWhereWithAggregatesInput[] + OR?: Prisma.staff_suppScalarWhereWithAggregatesInput[] + NOT?: Prisma.staff_suppScalarWhereWithAggregatesInput | Prisma.staff_suppScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"staff_supp"> | number + nom?: Prisma.StringWithAggregatesFilter<"staff_supp"> | string + staff_ids?: Prisma.StringWithAggregatesFilter<"staff_supp"> | string +} + +export type staff_suppCreateInput = { + nom: string + staff_ids: string +} + +export type staff_suppUncheckedCreateInput = { + id?: number + nom: string + staff_ids: string +} + +export type staff_suppUpdateInput = { + nom?: Prisma.StringFieldUpdateOperationsInput | string + staff_ids?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type staff_suppUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + nom?: Prisma.StringFieldUpdateOperationsInput | string + staff_ids?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type staff_suppCreateManyInput = { + id?: number + nom: string + staff_ids: string +} + +export type staff_suppUpdateManyMutationInput = { + nom?: Prisma.StringFieldUpdateOperationsInput | string + staff_ids?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type staff_suppUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + nom?: Prisma.StringFieldUpdateOperationsInput | string + staff_ids?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type staff_suppOrderByRelevanceInput = { + fields: Prisma.staff_suppOrderByRelevanceFieldEnum | Prisma.staff_suppOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type staff_suppCountOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + staff_ids?: Prisma.SortOrder +} + +export type staff_suppAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type staff_suppMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + staff_ids?: Prisma.SortOrder +} + +export type staff_suppMinOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + staff_ids?: Prisma.SortOrder +} + +export type staff_suppSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type staff_suppSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + nom?: boolean + staff_ids?: boolean +}, ExtArgs["result"]["staff_supp"]> + + + +export type staff_suppSelectScalar = { + id?: boolean + nom?: boolean + staff_ids?: boolean +} + +export type staff_suppOmit = runtime.Types.Extensions.GetOmit<"id" | "nom" | "staff_ids", ExtArgs["result"]["staff_supp"]> + +export type $staff_suppPayload = { + name: "staff_supp" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + nom: string + staff_ids: string + }, ExtArgs["result"]["staff_supp"]> + composites: {} +} + +export type staff_suppGetPayload = runtime.Types.Result.GetResult + +export type staff_suppCountArgs = + Omit & { + select?: Staff_suppCountAggregateInputType | true + } + +export interface staff_suppDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['staff_supp'], meta: { name: 'staff_supp' } } + /** + * Find zero or one Staff_supp that matches the filter. + * @param {staff_suppFindUniqueArgs} args - Arguments to find a Staff_supp + * @example + * // Get one Staff_supp + * const staff_supp = await prisma.staff_supp.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__staff_suppClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Staff_supp that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {staff_suppFindUniqueOrThrowArgs} args - Arguments to find a Staff_supp + * @example + * // Get one Staff_supp + * const staff_supp = await prisma.staff_supp.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__staff_suppClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Staff_supp 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 {staff_suppFindFirstArgs} args - Arguments to find a Staff_supp + * @example + * // Get one Staff_supp + * const staff_supp = await prisma.staff_supp.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__staff_suppClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Staff_supp 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 {staff_suppFindFirstOrThrowArgs} args - Arguments to find a Staff_supp + * @example + * // Get one Staff_supp + * const staff_supp = await prisma.staff_supp.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__staff_suppClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Staff_supps 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 {staff_suppFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Staff_supps + * const staff_supps = await prisma.staff_supp.findMany() + * + * // Get first 10 Staff_supps + * const staff_supps = await prisma.staff_supp.findMany({ take: 10 }) + * + * // Only select the `id` + * const staff_suppWithIdOnly = await prisma.staff_supp.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Staff_supp. + * @param {staff_suppCreateArgs} args - Arguments to create a Staff_supp. + * @example + * // Create one Staff_supp + * const Staff_supp = await prisma.staff_supp.create({ + * data: { + * // ... data to create a Staff_supp + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__staff_suppClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Staff_supps. + * @param {staff_suppCreateManyArgs} args - Arguments to create many Staff_supps. + * @example + * // Create many Staff_supps + * const staff_supp = await prisma.staff_supp.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Staff_supp. + * @param {staff_suppDeleteArgs} args - Arguments to delete one Staff_supp. + * @example + * // Delete one Staff_supp + * const Staff_supp = await prisma.staff_supp.delete({ + * where: { + * // ... filter to delete one Staff_supp + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__staff_suppClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Staff_supp. + * @param {staff_suppUpdateArgs} args - Arguments to update one Staff_supp. + * @example + * // Update one Staff_supp + * const staff_supp = await prisma.staff_supp.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__staff_suppClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Staff_supps. + * @param {staff_suppDeleteManyArgs} args - Arguments to filter Staff_supps to delete. + * @example + * // Delete a few Staff_supps + * const { count } = await prisma.staff_supp.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Staff_supps. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {staff_suppUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Staff_supps + * const staff_supp = await prisma.staff_supp.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Staff_supp. + * @param {staff_suppUpsertArgs} args - Arguments to update or create a Staff_supp. + * @example + * // Update or create a Staff_supp + * const staff_supp = await prisma.staff_supp.upsert({ + * create: { + * // ... data to create a Staff_supp + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Staff_supp we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__staff_suppClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Staff_supps. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {staff_suppCountArgs} args - Arguments to filter Staff_supps to count. + * @example + * // Count the number of Staff_supps + * const count = await prisma.staff_supp.count({ + * where: { + * // ... the filter for the Staff_supps 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 Staff_supp. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Staff_suppAggregateArgs} 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 Staff_supp. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {staff_suppGroupByArgs} 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 staff_suppGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: staff_suppGroupByArgs['orderBy'] } + : { orderBy?: staff_suppGroupByArgs['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 ? GetStaff_suppGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the staff_supp model + */ +readonly fields: staff_suppFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for staff_supp. + * 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__staff_suppClient 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 staff_supp model + */ +export interface staff_suppFieldRefs { + readonly id: Prisma.FieldRef<"staff_supp", 'Int'> + readonly nom: Prisma.FieldRef<"staff_supp", 'String'> + readonly staff_ids: Prisma.FieldRef<"staff_supp", 'String'> +} + + +// Custom InputTypes +/** + * staff_supp findUnique + */ +export type staff_suppFindUniqueArgs = { + /** + * Select specific fields to fetch from the staff_supp + */ + select?: Prisma.staff_suppSelect | null + /** + * Omit specific fields from the staff_supp + */ + omit?: Prisma.staff_suppOmit | null + /** + * Filter, which staff_supp to fetch. + */ + where: Prisma.staff_suppWhereUniqueInput +} + +/** + * staff_supp findUniqueOrThrow + */ +export type staff_suppFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the staff_supp + */ + select?: Prisma.staff_suppSelect | null + /** + * Omit specific fields from the staff_supp + */ + omit?: Prisma.staff_suppOmit | null + /** + * Filter, which staff_supp to fetch. + */ + where: Prisma.staff_suppWhereUniqueInput +} + +/** + * staff_supp findFirst + */ +export type staff_suppFindFirstArgs = { + /** + * Select specific fields to fetch from the staff_supp + */ + select?: Prisma.staff_suppSelect | null + /** + * Omit specific fields from the staff_supp + */ + omit?: Prisma.staff_suppOmit | null + /** + * Filter, which staff_supp to fetch. + */ + where?: Prisma.staff_suppWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of staff_supps to fetch. + */ + orderBy?: Prisma.staff_suppOrderByWithRelationInput | Prisma.staff_suppOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for staff_supps. + */ + cursor?: Prisma.staff_suppWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` staff_supps 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` staff_supps. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of staff_supps. + */ + distinct?: Prisma.Staff_suppScalarFieldEnum | Prisma.Staff_suppScalarFieldEnum[] +} + +/** + * staff_supp findFirstOrThrow + */ +export type staff_suppFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the staff_supp + */ + select?: Prisma.staff_suppSelect | null + /** + * Omit specific fields from the staff_supp + */ + omit?: Prisma.staff_suppOmit | null + /** + * Filter, which staff_supp to fetch. + */ + where?: Prisma.staff_suppWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of staff_supps to fetch. + */ + orderBy?: Prisma.staff_suppOrderByWithRelationInput | Prisma.staff_suppOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for staff_supps. + */ + cursor?: Prisma.staff_suppWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` staff_supps 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` staff_supps. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of staff_supps. + */ + distinct?: Prisma.Staff_suppScalarFieldEnum | Prisma.Staff_suppScalarFieldEnum[] +} + +/** + * staff_supp findMany + */ +export type staff_suppFindManyArgs = { + /** + * Select specific fields to fetch from the staff_supp + */ + select?: Prisma.staff_suppSelect | null + /** + * Omit specific fields from the staff_supp + */ + omit?: Prisma.staff_suppOmit | null + /** + * Filter, which staff_supps to fetch. + */ + where?: Prisma.staff_suppWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of staff_supps to fetch. + */ + orderBy?: Prisma.staff_suppOrderByWithRelationInput | Prisma.staff_suppOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing staff_supps. + */ + cursor?: Prisma.staff_suppWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` staff_supps 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` staff_supps. + */ + skip?: number + distinct?: Prisma.Staff_suppScalarFieldEnum | Prisma.Staff_suppScalarFieldEnum[] +} + +/** + * staff_supp create + */ +export type staff_suppCreateArgs = { + /** + * Select specific fields to fetch from the staff_supp + */ + select?: Prisma.staff_suppSelect | null + /** + * Omit specific fields from the staff_supp + */ + omit?: Prisma.staff_suppOmit | null + /** + * The data needed to create a staff_supp. + */ + data: Prisma.XOR +} + +/** + * staff_supp createMany + */ +export type staff_suppCreateManyArgs = { + /** + * The data used to create many staff_supps. + */ + data: Prisma.staff_suppCreateManyInput | Prisma.staff_suppCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * staff_supp update + */ +export type staff_suppUpdateArgs = { + /** + * Select specific fields to fetch from the staff_supp + */ + select?: Prisma.staff_suppSelect | null + /** + * Omit specific fields from the staff_supp + */ + omit?: Prisma.staff_suppOmit | null + /** + * The data needed to update a staff_supp. + */ + data: Prisma.XOR + /** + * Choose, which staff_supp to update. + */ + where: Prisma.staff_suppWhereUniqueInput +} + +/** + * staff_supp updateMany + */ +export type staff_suppUpdateManyArgs = { + /** + * The data used to update staff_supps. + */ + data: Prisma.XOR + /** + * Filter which staff_supps to update + */ + where?: Prisma.staff_suppWhereInput + /** + * Limit how many staff_supps to update. + */ + limit?: number +} + +/** + * staff_supp upsert + */ +export type staff_suppUpsertArgs = { + /** + * Select specific fields to fetch from the staff_supp + */ + select?: Prisma.staff_suppSelect | null + /** + * Omit specific fields from the staff_supp + */ + omit?: Prisma.staff_suppOmit | null + /** + * The filter to search for the staff_supp to update in case it exists. + */ + where: Prisma.staff_suppWhereUniqueInput + /** + * In case the staff_supp found by the `where` argument doesn't exist, create a new staff_supp with this data. + */ + create: Prisma.XOR + /** + * In case the staff_supp was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * staff_supp delete + */ +export type staff_suppDeleteArgs = { + /** + * Select specific fields to fetch from the staff_supp + */ + select?: Prisma.staff_suppSelect | null + /** + * Omit specific fields from the staff_supp + */ + omit?: Prisma.staff_suppOmit | null + /** + * Filter which staff_supp to delete. + */ + where: Prisma.staff_suppWhereUniqueInput +} + +/** + * staff_supp deleteMany + */ +export type staff_suppDeleteManyArgs = { + /** + * Filter which staff_supps to delete + */ + where?: Prisma.staff_suppWhereInput + /** + * Limit how many staff_supps to delete. + */ + limit?: number +} + +/** + * staff_supp without action + */ +export type staff_suppDefaultArgs = { + /** + * Select specific fields to fetch from the staff_supp + */ + select?: Prisma.staff_suppSelect | null + /** + * Omit specific fields from the staff_supp + */ + omit?: Prisma.staff_suppOmit | null +} diff --git a/prisma/generated/mariadb/models/state.ts b/prisma/generated/mariadb/models/state.ts new file mode 100644 index 0000000..5f89e09 --- /dev/null +++ b/prisma/generated/mariadb/models/state.ts @@ -0,0 +1,1079 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `state` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model state + * + */ +export type stateModel = runtime.Types.Result.DefaultSelection + +export type AggregateState = { + _count: StateCountAggregateOutputType | null + _avg: StateAvgAggregateOutputType | null + _sum: StateSumAggregateOutputType | null + _min: StateMinAggregateOutputType | null + _max: StateMaxAggregateOutputType | null +} + +export type StateAvgAggregateOutputType = { + id: number | null +} + +export type StateSumAggregateOutputType = { + id: number | null +} + +export type StateMinAggregateOutputType = { + id: number | null + name_en: string | null + name_fr: string | null + abbrev: string | null + country: string | null +} + +export type StateMaxAggregateOutputType = { + id: number | null + name_en: string | null + name_fr: string | null + abbrev: string | null + country: string | null +} + +export type StateCountAggregateOutputType = { + id: number + name_en: number + name_fr: number + abbrev: number + country: number + _all: number +} + + +export type StateAvgAggregateInputType = { + id?: true +} + +export type StateSumAggregateInputType = { + id?: true +} + +export type StateMinAggregateInputType = { + id?: true + name_en?: true + name_fr?: true + abbrev?: true + country?: true +} + +export type StateMaxAggregateInputType = { + id?: true + name_en?: true + name_fr?: true + abbrev?: true + country?: true +} + +export type StateCountAggregateInputType = { + id?: true + name_en?: true + name_fr?: true + abbrev?: true + country?: true + _all?: true +} + +export type StateAggregateArgs = { + /** + * Filter which state to aggregate. + */ + where?: Prisma.stateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of states to fetch. + */ + orderBy?: Prisma.stateOrderByWithRelationInput | Prisma.stateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.stateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` states 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` states. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned states + **/ + _count?: true | StateCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: StateAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: StateSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: StateMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: StateMaxAggregateInputType +} + +export type GetStateAggregateType = { + [P in keyof T & keyof AggregateState]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type stateGroupByArgs = { + where?: Prisma.stateWhereInput + orderBy?: Prisma.stateOrderByWithAggregationInput | Prisma.stateOrderByWithAggregationInput[] + by: Prisma.StateScalarFieldEnum[] | Prisma.StateScalarFieldEnum + having?: Prisma.stateScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: StateCountAggregateInputType | true + _avg?: StateAvgAggregateInputType + _sum?: StateSumAggregateInputType + _min?: StateMinAggregateInputType + _max?: StateMaxAggregateInputType +} + +export type StateGroupByOutputType = { + id: number + name_en: string + name_fr: string + abbrev: string + country: string + _count: StateCountAggregateOutputType | null + _avg: StateAvgAggregateOutputType | null + _sum: StateSumAggregateOutputType | null + _min: StateMinAggregateOutputType | null + _max: StateMaxAggregateOutputType | null +} + +type GetStateGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof StateGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type stateWhereInput = { + AND?: Prisma.stateWhereInput | Prisma.stateWhereInput[] + OR?: Prisma.stateWhereInput[] + NOT?: Prisma.stateWhereInput | Prisma.stateWhereInput[] + id?: Prisma.IntFilter<"state"> | number + name_en?: Prisma.StringFilter<"state"> | string + name_fr?: Prisma.StringFilter<"state"> | string + abbrev?: Prisma.StringFilter<"state"> | string + country?: Prisma.StringFilter<"state"> | string +} + +export type stateOrderByWithRelationInput = { + id?: Prisma.SortOrder + name_en?: Prisma.SortOrder + name_fr?: Prisma.SortOrder + abbrev?: Prisma.SortOrder + country?: Prisma.SortOrder + _relevance?: Prisma.stateOrderByRelevanceInput +} + +export type stateWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.stateWhereInput | Prisma.stateWhereInput[] + OR?: Prisma.stateWhereInput[] + NOT?: Prisma.stateWhereInput | Prisma.stateWhereInput[] + name_en?: Prisma.StringFilter<"state"> | string + name_fr?: Prisma.StringFilter<"state"> | string + abbrev?: Prisma.StringFilter<"state"> | string + country?: Prisma.StringFilter<"state"> | string +}, "id"> + +export type stateOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name_en?: Prisma.SortOrder + name_fr?: Prisma.SortOrder + abbrev?: Prisma.SortOrder + country?: Prisma.SortOrder + _count?: Prisma.stateCountOrderByAggregateInput + _avg?: Prisma.stateAvgOrderByAggregateInput + _max?: Prisma.stateMaxOrderByAggregateInput + _min?: Prisma.stateMinOrderByAggregateInput + _sum?: Prisma.stateSumOrderByAggregateInput +} + +export type stateScalarWhereWithAggregatesInput = { + AND?: Prisma.stateScalarWhereWithAggregatesInput | Prisma.stateScalarWhereWithAggregatesInput[] + OR?: Prisma.stateScalarWhereWithAggregatesInput[] + NOT?: Prisma.stateScalarWhereWithAggregatesInput | Prisma.stateScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"state"> | number + name_en?: Prisma.StringWithAggregatesFilter<"state"> | string + name_fr?: Prisma.StringWithAggregatesFilter<"state"> | string + abbrev?: Prisma.StringWithAggregatesFilter<"state"> | string + country?: Prisma.StringWithAggregatesFilter<"state"> | string +} + +export type stateCreateInput = { + name_en: string + name_fr: string + abbrev: string + country: string +} + +export type stateUncheckedCreateInput = { + id?: number + name_en: string + name_fr: string + abbrev: string + country: string +} + +export type stateUpdateInput = { + name_en?: Prisma.StringFieldUpdateOperationsInput | string + name_fr?: Prisma.StringFieldUpdateOperationsInput | string + abbrev?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type stateUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name_en?: Prisma.StringFieldUpdateOperationsInput | string + name_fr?: Prisma.StringFieldUpdateOperationsInput | string + abbrev?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type stateCreateManyInput = { + id?: number + name_en: string + name_fr: string + abbrev: string + country: string +} + +export type stateUpdateManyMutationInput = { + name_en?: Prisma.StringFieldUpdateOperationsInput | string + name_fr?: Prisma.StringFieldUpdateOperationsInput | string + abbrev?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type stateUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name_en?: Prisma.StringFieldUpdateOperationsInput | string + name_fr?: Prisma.StringFieldUpdateOperationsInput | string + abbrev?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type stateOrderByRelevanceInput = { + fields: Prisma.stateOrderByRelevanceFieldEnum | Prisma.stateOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type stateCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name_en?: Prisma.SortOrder + name_fr?: Prisma.SortOrder + abbrev?: Prisma.SortOrder + country?: Prisma.SortOrder +} + +export type stateAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type stateMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name_en?: Prisma.SortOrder + name_fr?: Prisma.SortOrder + abbrev?: Prisma.SortOrder + country?: Prisma.SortOrder +} + +export type stateMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name_en?: Prisma.SortOrder + name_fr?: Prisma.SortOrder + abbrev?: Prisma.SortOrder + country?: Prisma.SortOrder +} + +export type stateSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type stateSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name_en?: boolean + name_fr?: boolean + abbrev?: boolean + country?: boolean +}, ExtArgs["result"]["state"]> + + + +export type stateSelectScalar = { + id?: boolean + name_en?: boolean + name_fr?: boolean + abbrev?: boolean + country?: boolean +} + +export type stateOmit = runtime.Types.Extensions.GetOmit<"id" | "name_en" | "name_fr" | "abbrev" | "country", ExtArgs["result"]["state"]> + +export type $statePayload = { + name: "state" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name_en: string + name_fr: string + abbrev: string + country: string + }, ExtArgs["result"]["state"]> + composites: {} +} + +export type stateGetPayload = runtime.Types.Result.GetResult + +export type stateCountArgs = + Omit & { + select?: StateCountAggregateInputType | true + } + +export interface stateDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['state'], meta: { name: 'state' } } + /** + * Find zero or one State that matches the filter. + * @param {stateFindUniqueArgs} args - Arguments to find a State + * @example + * // Get one State + * const state = await prisma.state.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__stateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one State that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {stateFindUniqueOrThrowArgs} args - Arguments to find a State + * @example + * // Get one State + * const state = await prisma.state.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__stateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first State 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 {stateFindFirstArgs} args - Arguments to find a State + * @example + * // Get one State + * const state = await prisma.state.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__stateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first State 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 {stateFindFirstOrThrowArgs} args - Arguments to find a State + * @example + * // Get one State + * const state = await prisma.state.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__stateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more States 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 {stateFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all States + * const states = await prisma.state.findMany() + * + * // Get first 10 States + * const states = await prisma.state.findMany({ take: 10 }) + * + * // Only select the `id` + * const stateWithIdOnly = await prisma.state.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a State. + * @param {stateCreateArgs} args - Arguments to create a State. + * @example + * // Create one State + * const State = await prisma.state.create({ + * data: { + * // ... data to create a State + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__stateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many States. + * @param {stateCreateManyArgs} args - Arguments to create many States. + * @example + * // Create many States + * const state = await prisma.state.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a State. + * @param {stateDeleteArgs} args - Arguments to delete one State. + * @example + * // Delete one State + * const State = await prisma.state.delete({ + * where: { + * // ... filter to delete one State + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__stateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one State. + * @param {stateUpdateArgs} args - Arguments to update one State. + * @example + * // Update one State + * const state = await prisma.state.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__stateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more States. + * @param {stateDeleteManyArgs} args - Arguments to filter States to delete. + * @example + * // Delete a few States + * const { count } = await prisma.state.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more States. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {stateUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many States + * const state = await prisma.state.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one State. + * @param {stateUpsertArgs} args - Arguments to update or create a State. + * @example + * // Update or create a State + * const state = await prisma.state.upsert({ + * create: { + * // ... data to create a State + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the State we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__stateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of States. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {stateCountArgs} args - Arguments to filter States to count. + * @example + * // Count the number of States + * const count = await prisma.state.count({ + * where: { + * // ... the filter for the States 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 State. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StateAggregateArgs} 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 State. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {stateGroupByArgs} 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 stateGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: stateGroupByArgs['orderBy'] } + : { orderBy?: stateGroupByArgs['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 ? GetStateGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the state model + */ +readonly fields: stateFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for state. + * 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__stateClient 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 state model + */ +export interface stateFieldRefs { + readonly id: Prisma.FieldRef<"state", 'Int'> + readonly name_en: Prisma.FieldRef<"state", 'String'> + readonly name_fr: Prisma.FieldRef<"state", 'String'> + readonly abbrev: Prisma.FieldRef<"state", 'String'> + readonly country: Prisma.FieldRef<"state", 'String'> +} + + +// Custom InputTypes +/** + * state findUnique + */ +export type stateFindUniqueArgs = { + /** + * Select specific fields to fetch from the state + */ + select?: Prisma.stateSelect | null + /** + * Omit specific fields from the state + */ + omit?: Prisma.stateOmit | null + /** + * Filter, which state to fetch. + */ + where: Prisma.stateWhereUniqueInput +} + +/** + * state findUniqueOrThrow + */ +export type stateFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the state + */ + select?: Prisma.stateSelect | null + /** + * Omit specific fields from the state + */ + omit?: Prisma.stateOmit | null + /** + * Filter, which state to fetch. + */ + where: Prisma.stateWhereUniqueInput +} + +/** + * state findFirst + */ +export type stateFindFirstArgs = { + /** + * Select specific fields to fetch from the state + */ + select?: Prisma.stateSelect | null + /** + * Omit specific fields from the state + */ + omit?: Prisma.stateOmit | null + /** + * Filter, which state to fetch. + */ + where?: Prisma.stateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of states to fetch. + */ + orderBy?: Prisma.stateOrderByWithRelationInput | Prisma.stateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for states. + */ + cursor?: Prisma.stateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` states 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` states. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of states. + */ + distinct?: Prisma.StateScalarFieldEnum | Prisma.StateScalarFieldEnum[] +} + +/** + * state findFirstOrThrow + */ +export type stateFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the state + */ + select?: Prisma.stateSelect | null + /** + * Omit specific fields from the state + */ + omit?: Prisma.stateOmit | null + /** + * Filter, which state to fetch. + */ + where?: Prisma.stateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of states to fetch. + */ + orderBy?: Prisma.stateOrderByWithRelationInput | Prisma.stateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for states. + */ + cursor?: Prisma.stateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` states 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` states. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of states. + */ + distinct?: Prisma.StateScalarFieldEnum | Prisma.StateScalarFieldEnum[] +} + +/** + * state findMany + */ +export type stateFindManyArgs = { + /** + * Select specific fields to fetch from the state + */ + select?: Prisma.stateSelect | null + /** + * Omit specific fields from the state + */ + omit?: Prisma.stateOmit | null + /** + * Filter, which states to fetch. + */ + where?: Prisma.stateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of states to fetch. + */ + orderBy?: Prisma.stateOrderByWithRelationInput | Prisma.stateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing states. + */ + cursor?: Prisma.stateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` states 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` states. + */ + skip?: number + distinct?: Prisma.StateScalarFieldEnum | Prisma.StateScalarFieldEnum[] +} + +/** + * state create + */ +export type stateCreateArgs = { + /** + * Select specific fields to fetch from the state + */ + select?: Prisma.stateSelect | null + /** + * Omit specific fields from the state + */ + omit?: Prisma.stateOmit | null + /** + * The data needed to create a state. + */ + data: Prisma.XOR +} + +/** + * state createMany + */ +export type stateCreateManyArgs = { + /** + * The data used to create many states. + */ + data: Prisma.stateCreateManyInput | Prisma.stateCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * state update + */ +export type stateUpdateArgs = { + /** + * Select specific fields to fetch from the state + */ + select?: Prisma.stateSelect | null + /** + * Omit specific fields from the state + */ + omit?: Prisma.stateOmit | null + /** + * The data needed to update a state. + */ + data: Prisma.XOR + /** + * Choose, which state to update. + */ + where: Prisma.stateWhereUniqueInput +} + +/** + * state updateMany + */ +export type stateUpdateManyArgs = { + /** + * The data used to update states. + */ + data: Prisma.XOR + /** + * Filter which states to update + */ + where?: Prisma.stateWhereInput + /** + * Limit how many states to update. + */ + limit?: number +} + +/** + * state upsert + */ +export type stateUpsertArgs = { + /** + * Select specific fields to fetch from the state + */ + select?: Prisma.stateSelect | null + /** + * Omit specific fields from the state + */ + omit?: Prisma.stateOmit | null + /** + * The filter to search for the state to update in case it exists. + */ + where: Prisma.stateWhereUniqueInput + /** + * In case the state found by the `where` argument doesn't exist, create a new state with this data. + */ + create: Prisma.XOR + /** + * In case the state was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * state delete + */ +export type stateDeleteArgs = { + /** + * Select specific fields to fetch from the state + */ + select?: Prisma.stateSelect | null + /** + * Omit specific fields from the state + */ + omit?: Prisma.stateOmit | null + /** + * Filter which state to delete. + */ + where: Prisma.stateWhereUniqueInput +} + +/** + * state deleteMany + */ +export type stateDeleteManyArgs = { + /** + * Filter which states to delete + */ + where?: Prisma.stateWhereInput + /** + * Limit how many states to delete. + */ + limit?: number +} + +/** + * state without action + */ +export type stateDefaultArgs = { + /** + * Select specific fields to fetch from the state + */ + select?: Prisma.stateSelect | null + /** + * Omit specific fields from the state + */ + omit?: Prisma.stateOmit | null +} diff --git a/prisma/generated/mariadb/models/statement.ts b/prisma/generated/mariadb/models/statement.ts new file mode 100644 index 0000000..e94afe9 --- /dev/null +++ b/prisma/generated/mariadb/models/statement.ts @@ -0,0 +1,1158 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `statement` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model statement + * + */ +export type statementModel = runtime.Types.Result.DefaultSelection + +export type AggregateStatement = { + _count: StatementCountAggregateOutputType | null + _avg: StatementAvgAggregateOutputType | null + _sum: StatementSumAggregateOutputType | null + _min: StatementMinAggregateOutputType | null + _max: StatementMaxAggregateOutputType | null +} + +export type StatementAvgAggregateOutputType = { + id: number | null + date: number | null + number: number | null + amt: number | null + paid_amt: number | null +} + +export type StatementSumAggregateOutputType = { + id: bigint | null + date: bigint | null + number: bigint | null + amt: number | null + paid_amt: number | null +} + +export type StatementMinAggregateOutputType = { + id: bigint | null + date: bigint | null + type: string | null + number: bigint | null + reference: string | null + amt: number | null + paid_amt: number | null +} + +export type StatementMaxAggregateOutputType = { + id: bigint | null + date: bigint | null + type: string | null + number: bigint | null + reference: string | null + amt: number | null + paid_amt: number | null +} + +export type StatementCountAggregateOutputType = { + id: number + date: number + type: number + number: number + reference: number + amt: number + paid_amt: number + _all: number +} + + +export type StatementAvgAggregateInputType = { + id?: true + date?: true + number?: true + amt?: true + paid_amt?: true +} + +export type StatementSumAggregateInputType = { + id?: true + date?: true + number?: true + amt?: true + paid_amt?: true +} + +export type StatementMinAggregateInputType = { + id?: true + date?: true + type?: true + number?: true + reference?: true + amt?: true + paid_amt?: true +} + +export type StatementMaxAggregateInputType = { + id?: true + date?: true + type?: true + number?: true + reference?: true + amt?: true + paid_amt?: true +} + +export type StatementCountAggregateInputType = { + id?: true + date?: true + type?: true + number?: true + reference?: true + amt?: true + paid_amt?: true + _all?: true +} + +export type StatementAggregateArgs = { + /** + * Filter which statement to aggregate. + */ + where?: Prisma.statementWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of statements to fetch. + */ + orderBy?: Prisma.statementOrderByWithRelationInput | Prisma.statementOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.statementWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` statements 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` statements. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned statements + **/ + _count?: true | StatementCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: StatementAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: StatementSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: StatementMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: StatementMaxAggregateInputType +} + +export type GetStatementAggregateType = { + [P in keyof T & keyof AggregateStatement]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type statementGroupByArgs = { + where?: Prisma.statementWhereInput + orderBy?: Prisma.statementOrderByWithAggregationInput | Prisma.statementOrderByWithAggregationInput[] + by: Prisma.StatementScalarFieldEnum[] | Prisma.StatementScalarFieldEnum + having?: Prisma.statementScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: StatementCountAggregateInputType | true + _avg?: StatementAvgAggregateInputType + _sum?: StatementSumAggregateInputType + _min?: StatementMinAggregateInputType + _max?: StatementMaxAggregateInputType +} + +export type StatementGroupByOutputType = { + id: bigint + date: bigint | null + type: string | null + number: bigint | null + reference: string | null + amt: number | null + paid_amt: number | null + _count: StatementCountAggregateOutputType | null + _avg: StatementAvgAggregateOutputType | null + _sum: StatementSumAggregateOutputType | null + _min: StatementMinAggregateOutputType | null + _max: StatementMaxAggregateOutputType | null +} + +type GetStatementGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof StatementGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type statementWhereInput = { + AND?: Prisma.statementWhereInput | Prisma.statementWhereInput[] + OR?: Prisma.statementWhereInput[] + NOT?: Prisma.statementWhereInput | Prisma.statementWhereInput[] + id?: Prisma.BigIntFilter<"statement"> | bigint | number + date?: Prisma.BigIntNullableFilter<"statement"> | bigint | number | null + type?: Prisma.StringNullableFilter<"statement"> | string | null + number?: Prisma.BigIntNullableFilter<"statement"> | bigint | number | null + reference?: Prisma.StringNullableFilter<"statement"> | string | null + amt?: Prisma.FloatNullableFilter<"statement"> | number | null + paid_amt?: Prisma.FloatNullableFilter<"statement"> | number | null +} + +export type statementOrderByWithRelationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + number?: Prisma.SortOrderInput | Prisma.SortOrder + reference?: Prisma.SortOrderInput | Prisma.SortOrder + amt?: Prisma.SortOrderInput | Prisma.SortOrder + paid_amt?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.statementOrderByRelevanceInput +} + +export type statementWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.statementWhereInput | Prisma.statementWhereInput[] + OR?: Prisma.statementWhereInput[] + NOT?: Prisma.statementWhereInput | Prisma.statementWhereInput[] + date?: Prisma.BigIntNullableFilter<"statement"> | bigint | number | null + type?: Prisma.StringNullableFilter<"statement"> | string | null + number?: Prisma.BigIntNullableFilter<"statement"> | bigint | number | null + reference?: Prisma.StringNullableFilter<"statement"> | string | null + amt?: Prisma.FloatNullableFilter<"statement"> | number | null + paid_amt?: Prisma.FloatNullableFilter<"statement"> | number | null +}, "id"> + +export type statementOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrderInput | Prisma.SortOrder + type?: Prisma.SortOrderInput | Prisma.SortOrder + number?: Prisma.SortOrderInput | Prisma.SortOrder + reference?: Prisma.SortOrderInput | Prisma.SortOrder + amt?: Prisma.SortOrderInput | Prisma.SortOrder + paid_amt?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.statementCountOrderByAggregateInput + _avg?: Prisma.statementAvgOrderByAggregateInput + _max?: Prisma.statementMaxOrderByAggregateInput + _min?: Prisma.statementMinOrderByAggregateInput + _sum?: Prisma.statementSumOrderByAggregateInput +} + +export type statementScalarWhereWithAggregatesInput = { + AND?: Prisma.statementScalarWhereWithAggregatesInput | Prisma.statementScalarWhereWithAggregatesInput[] + OR?: Prisma.statementScalarWhereWithAggregatesInput[] + NOT?: Prisma.statementScalarWhereWithAggregatesInput | Prisma.statementScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"statement"> | bigint | number + date?: Prisma.BigIntNullableWithAggregatesFilter<"statement"> | bigint | number | null + type?: Prisma.StringNullableWithAggregatesFilter<"statement"> | string | null + number?: Prisma.BigIntNullableWithAggregatesFilter<"statement"> | bigint | number | null + reference?: Prisma.StringNullableWithAggregatesFilter<"statement"> | string | null + amt?: Prisma.FloatNullableWithAggregatesFilter<"statement"> | number | null + paid_amt?: Prisma.FloatNullableWithAggregatesFilter<"statement"> | number | null +} + +export type statementCreateInput = { + id?: bigint | number + date?: bigint | number | null + type?: string | null + number?: bigint | number | null + reference?: string | null + amt?: number | null + paid_amt?: number | null +} + +export type statementUncheckedCreateInput = { + id?: bigint | number + date?: bigint | number | null + type?: string | null + number?: bigint | number | null + reference?: string | null + amt?: number | null + paid_amt?: number | null +} + +export type statementUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + number?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + paid_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type statementUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + number?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + paid_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type statementCreateManyInput = { + id?: bigint | number + date?: bigint | number | null + type?: string | null + number?: bigint | number | null + reference?: string | null + amt?: number | null + paid_amt?: number | null +} + +export type statementUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + number?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + paid_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type statementUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + number?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null + paid_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type statementOrderByRelevanceInput = { + fields: Prisma.statementOrderByRelevanceFieldEnum | Prisma.statementOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type statementCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + type?: Prisma.SortOrder + number?: Prisma.SortOrder + reference?: Prisma.SortOrder + amt?: Prisma.SortOrder + paid_amt?: Prisma.SortOrder +} + +export type statementAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + number?: Prisma.SortOrder + amt?: Prisma.SortOrder + paid_amt?: Prisma.SortOrder +} + +export type statementMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + type?: Prisma.SortOrder + number?: Prisma.SortOrder + reference?: Prisma.SortOrder + amt?: Prisma.SortOrder + paid_amt?: Prisma.SortOrder +} + +export type statementMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + type?: Prisma.SortOrder + number?: Prisma.SortOrder + reference?: Prisma.SortOrder + amt?: Prisma.SortOrder + paid_amt?: Prisma.SortOrder +} + +export type statementSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + number?: Prisma.SortOrder + amt?: Prisma.SortOrder + paid_amt?: Prisma.SortOrder +} + + + +export type statementSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date?: boolean + type?: boolean + number?: boolean + reference?: boolean + amt?: boolean + paid_amt?: boolean +}, ExtArgs["result"]["statement"]> + + + +export type statementSelectScalar = { + id?: boolean + date?: boolean + type?: boolean + number?: boolean + reference?: boolean + amt?: boolean + paid_amt?: boolean +} + +export type statementOmit = runtime.Types.Extensions.GetOmit<"id" | "date" | "type" | "number" | "reference" | "amt" | "paid_amt", ExtArgs["result"]["statement"]> + +export type $statementPayload = { + name: "statement" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + date: bigint | null + type: string | null + number: bigint | null + reference: string | null + amt: number | null + paid_amt: number | null + }, ExtArgs["result"]["statement"]> + composites: {} +} + +export type statementGetPayload = runtime.Types.Result.GetResult + +export type statementCountArgs = + Omit & { + select?: StatementCountAggregateInputType | true + } + +export interface statementDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['statement'], meta: { name: 'statement' } } + /** + * Find zero or one Statement that matches the filter. + * @param {statementFindUniqueArgs} args - Arguments to find a Statement + * @example + * // Get one Statement + * const statement = await prisma.statement.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__statementClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Statement that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {statementFindUniqueOrThrowArgs} args - Arguments to find a Statement + * @example + * // Get one Statement + * const statement = await prisma.statement.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__statementClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Statement 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 {statementFindFirstArgs} args - Arguments to find a Statement + * @example + * // Get one Statement + * const statement = await prisma.statement.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__statementClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Statement 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 {statementFindFirstOrThrowArgs} args - Arguments to find a Statement + * @example + * // Get one Statement + * const statement = await prisma.statement.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__statementClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Statements 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 {statementFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Statements + * const statements = await prisma.statement.findMany() + * + * // Get first 10 Statements + * const statements = await prisma.statement.findMany({ take: 10 }) + * + * // Only select the `id` + * const statementWithIdOnly = await prisma.statement.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Statement. + * @param {statementCreateArgs} args - Arguments to create a Statement. + * @example + * // Create one Statement + * const Statement = await prisma.statement.create({ + * data: { + * // ... data to create a Statement + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__statementClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Statements. + * @param {statementCreateManyArgs} args - Arguments to create many Statements. + * @example + * // Create many Statements + * const statement = await prisma.statement.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Statement. + * @param {statementDeleteArgs} args - Arguments to delete one Statement. + * @example + * // Delete one Statement + * const Statement = await prisma.statement.delete({ + * where: { + * // ... filter to delete one Statement + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__statementClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Statement. + * @param {statementUpdateArgs} args - Arguments to update one Statement. + * @example + * // Update one Statement + * const statement = await prisma.statement.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__statementClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Statements. + * @param {statementDeleteManyArgs} args - Arguments to filter Statements to delete. + * @example + * // Delete a few Statements + * const { count } = await prisma.statement.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Statements. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {statementUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Statements + * const statement = await prisma.statement.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Statement. + * @param {statementUpsertArgs} args - Arguments to update or create a Statement. + * @example + * // Update or create a Statement + * const statement = await prisma.statement.upsert({ + * create: { + * // ... data to create a Statement + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Statement we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__statementClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Statements. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {statementCountArgs} args - Arguments to filter Statements to count. + * @example + * // Count the number of Statements + * const count = await prisma.statement.count({ + * where: { + * // ... the filter for the Statements 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 Statement. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StatementAggregateArgs} 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 Statement. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {statementGroupByArgs} 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 statementGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: statementGroupByArgs['orderBy'] } + : { orderBy?: statementGroupByArgs['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 ? GetStatementGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the statement model + */ +readonly fields: statementFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for statement. + * 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__statementClient 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 statement model + */ +export interface statementFieldRefs { + readonly id: Prisma.FieldRef<"statement", 'BigInt'> + readonly date: Prisma.FieldRef<"statement", 'BigInt'> + readonly type: Prisma.FieldRef<"statement", 'String'> + readonly number: Prisma.FieldRef<"statement", 'BigInt'> + readonly reference: Prisma.FieldRef<"statement", 'String'> + readonly amt: Prisma.FieldRef<"statement", 'Float'> + readonly paid_amt: Prisma.FieldRef<"statement", 'Float'> +} + + +// Custom InputTypes +/** + * statement findUnique + */ +export type statementFindUniqueArgs = { + /** + * Select specific fields to fetch from the statement + */ + select?: Prisma.statementSelect | null + /** + * Omit specific fields from the statement + */ + omit?: Prisma.statementOmit | null + /** + * Filter, which statement to fetch. + */ + where: Prisma.statementWhereUniqueInput +} + +/** + * statement findUniqueOrThrow + */ +export type statementFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the statement + */ + select?: Prisma.statementSelect | null + /** + * Omit specific fields from the statement + */ + omit?: Prisma.statementOmit | null + /** + * Filter, which statement to fetch. + */ + where: Prisma.statementWhereUniqueInput +} + +/** + * statement findFirst + */ +export type statementFindFirstArgs = { + /** + * Select specific fields to fetch from the statement + */ + select?: Prisma.statementSelect | null + /** + * Omit specific fields from the statement + */ + omit?: Prisma.statementOmit | null + /** + * Filter, which statement to fetch. + */ + where?: Prisma.statementWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of statements to fetch. + */ + orderBy?: Prisma.statementOrderByWithRelationInput | Prisma.statementOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for statements. + */ + cursor?: Prisma.statementWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` statements 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` statements. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of statements. + */ + distinct?: Prisma.StatementScalarFieldEnum | Prisma.StatementScalarFieldEnum[] +} + +/** + * statement findFirstOrThrow + */ +export type statementFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the statement + */ + select?: Prisma.statementSelect | null + /** + * Omit specific fields from the statement + */ + omit?: Prisma.statementOmit | null + /** + * Filter, which statement to fetch. + */ + where?: Prisma.statementWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of statements to fetch. + */ + orderBy?: Prisma.statementOrderByWithRelationInput | Prisma.statementOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for statements. + */ + cursor?: Prisma.statementWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` statements 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` statements. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of statements. + */ + distinct?: Prisma.StatementScalarFieldEnum | Prisma.StatementScalarFieldEnum[] +} + +/** + * statement findMany + */ +export type statementFindManyArgs = { + /** + * Select specific fields to fetch from the statement + */ + select?: Prisma.statementSelect | null + /** + * Omit specific fields from the statement + */ + omit?: Prisma.statementOmit | null + /** + * Filter, which statements to fetch. + */ + where?: Prisma.statementWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of statements to fetch. + */ + orderBy?: Prisma.statementOrderByWithRelationInput | Prisma.statementOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing statements. + */ + cursor?: Prisma.statementWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` statements 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` statements. + */ + skip?: number + distinct?: Prisma.StatementScalarFieldEnum | Prisma.StatementScalarFieldEnum[] +} + +/** + * statement create + */ +export type statementCreateArgs = { + /** + * Select specific fields to fetch from the statement + */ + select?: Prisma.statementSelect | null + /** + * Omit specific fields from the statement + */ + omit?: Prisma.statementOmit | null + /** + * The data needed to create a statement. + */ + data?: Prisma.XOR +} + +/** + * statement createMany + */ +export type statementCreateManyArgs = { + /** + * The data used to create many statements. + */ + data: Prisma.statementCreateManyInput | Prisma.statementCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * statement update + */ +export type statementUpdateArgs = { + /** + * Select specific fields to fetch from the statement + */ + select?: Prisma.statementSelect | null + /** + * Omit specific fields from the statement + */ + omit?: Prisma.statementOmit | null + /** + * The data needed to update a statement. + */ + data: Prisma.XOR + /** + * Choose, which statement to update. + */ + where: Prisma.statementWhereUniqueInput +} + +/** + * statement updateMany + */ +export type statementUpdateManyArgs = { + /** + * The data used to update statements. + */ + data: Prisma.XOR + /** + * Filter which statements to update + */ + where?: Prisma.statementWhereInput + /** + * Limit how many statements to update. + */ + limit?: number +} + +/** + * statement upsert + */ +export type statementUpsertArgs = { + /** + * Select specific fields to fetch from the statement + */ + select?: Prisma.statementSelect | null + /** + * Omit specific fields from the statement + */ + omit?: Prisma.statementOmit | null + /** + * The filter to search for the statement to update in case it exists. + */ + where: Prisma.statementWhereUniqueInput + /** + * In case the statement found by the `where` argument doesn't exist, create a new statement with this data. + */ + create: Prisma.XOR + /** + * In case the statement was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * statement delete + */ +export type statementDeleteArgs = { + /** + * Select specific fields to fetch from the statement + */ + select?: Prisma.statementSelect | null + /** + * Omit specific fields from the statement + */ + omit?: Prisma.statementOmit | null + /** + * Filter which statement to delete. + */ + where: Prisma.statementWhereUniqueInput +} + +/** + * statement deleteMany + */ +export type statementDeleteManyArgs = { + /** + * Filter which statements to delete + */ + where?: Prisma.statementWhereInput + /** + * Limit how many statements to delete. + */ + limit?: number +} + +/** + * statement without action + */ +export type statementDefaultArgs = { + /** + * Select specific fields to fetch from the statement + */ + select?: Prisma.statementSelect | null + /** + * Omit specific fields from the statement + */ + omit?: Prisma.statementOmit | null +} diff --git a/prisma/generated/mariadb/models/stbs.ts b/prisma/generated/mariadb/models/stbs.ts new file mode 100644 index 0000000..fd3f7f3 --- /dev/null +++ b/prisma/generated/mariadb/models/stbs.ts @@ -0,0 +1,1053 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `stbs` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model stbs + * + */ +export type stbsModel = runtime.Types.Result.DefaultSelection + +export type AggregateStbs = { + _count: StbsCountAggregateOutputType | null + _avg: StbsAvgAggregateOutputType | null + _sum: StbsSumAggregateOutputType | null + _min: StbsMinAggregateOutputType | null + _max: StbsMaxAggregateOutputType | null +} + +export type StbsAvgAggregateOutputType = { + id: number | null +} + +export type StbsSumAggregateOutputType = { + id: number | null +} + +export type StbsMinAggregateOutputType = { + id: number | null + mac: string | null + sn: string | null + targo: string | null +} + +export type StbsMaxAggregateOutputType = { + id: number | null + mac: string | null + sn: string | null + targo: string | null +} + +export type StbsCountAggregateOutputType = { + id: number + mac: number + sn: number + targo: number + _all: number +} + + +export type StbsAvgAggregateInputType = { + id?: true +} + +export type StbsSumAggregateInputType = { + id?: true +} + +export type StbsMinAggregateInputType = { + id?: true + mac?: true + sn?: true + targo?: true +} + +export type StbsMaxAggregateInputType = { + id?: true + mac?: true + sn?: true + targo?: true +} + +export type StbsCountAggregateInputType = { + id?: true + mac?: true + sn?: true + targo?: true + _all?: true +} + +export type StbsAggregateArgs = { + /** + * Filter which stbs to aggregate. + */ + where?: Prisma.stbsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of stbs to fetch. + */ + orderBy?: Prisma.stbsOrderByWithRelationInput | Prisma.stbsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.stbsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` stbs 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` stbs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned stbs + **/ + _count?: true | StbsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: StbsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: StbsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: StbsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: StbsMaxAggregateInputType +} + +export type GetStbsAggregateType = { + [P in keyof T & keyof AggregateStbs]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type stbsGroupByArgs = { + where?: Prisma.stbsWhereInput + orderBy?: Prisma.stbsOrderByWithAggregationInput | Prisma.stbsOrderByWithAggregationInput[] + by: Prisma.StbsScalarFieldEnum[] | Prisma.StbsScalarFieldEnum + having?: Prisma.stbsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: StbsCountAggregateInputType | true + _avg?: StbsAvgAggregateInputType + _sum?: StbsSumAggregateInputType + _min?: StbsMinAggregateInputType + _max?: StbsMaxAggregateInputType +} + +export type StbsGroupByOutputType = { + id: number + mac: string + sn: string + targo: string | null + _count: StbsCountAggregateOutputType | null + _avg: StbsAvgAggregateOutputType | null + _sum: StbsSumAggregateOutputType | null + _min: StbsMinAggregateOutputType | null + _max: StbsMaxAggregateOutputType | null +} + +type GetStbsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof StbsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type stbsWhereInput = { + AND?: Prisma.stbsWhereInput | Prisma.stbsWhereInput[] + OR?: Prisma.stbsWhereInput[] + NOT?: Prisma.stbsWhereInput | Prisma.stbsWhereInput[] + id?: Prisma.IntFilter<"stbs"> | number + mac?: Prisma.StringFilter<"stbs"> | string + sn?: Prisma.StringFilter<"stbs"> | string + targo?: Prisma.StringNullableFilter<"stbs"> | string | null +} + +export type stbsOrderByWithRelationInput = { + id?: Prisma.SortOrder + mac?: Prisma.SortOrder + sn?: Prisma.SortOrder + targo?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.stbsOrderByRelevanceInput +} + +export type stbsWhereUniqueInput = Prisma.AtLeast<{ + id?: number + mac?: string + AND?: Prisma.stbsWhereInput | Prisma.stbsWhereInput[] + OR?: Prisma.stbsWhereInput[] + NOT?: Prisma.stbsWhereInput | Prisma.stbsWhereInput[] + sn?: Prisma.StringFilter<"stbs"> | string + targo?: Prisma.StringNullableFilter<"stbs"> | string | null +}, "id" | "mac"> + +export type stbsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + mac?: Prisma.SortOrder + sn?: Prisma.SortOrder + targo?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.stbsCountOrderByAggregateInput + _avg?: Prisma.stbsAvgOrderByAggregateInput + _max?: Prisma.stbsMaxOrderByAggregateInput + _min?: Prisma.stbsMinOrderByAggregateInput + _sum?: Prisma.stbsSumOrderByAggregateInput +} + +export type stbsScalarWhereWithAggregatesInput = { + AND?: Prisma.stbsScalarWhereWithAggregatesInput | Prisma.stbsScalarWhereWithAggregatesInput[] + OR?: Prisma.stbsScalarWhereWithAggregatesInput[] + NOT?: Prisma.stbsScalarWhereWithAggregatesInput | Prisma.stbsScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"stbs"> | number + mac?: Prisma.StringWithAggregatesFilter<"stbs"> | string + sn?: Prisma.StringWithAggregatesFilter<"stbs"> | string + targo?: Prisma.StringNullableWithAggregatesFilter<"stbs"> | string | null +} + +export type stbsCreateInput = { + mac: string + sn: string + targo?: string | null +} + +export type stbsUncheckedCreateInput = { + id?: number + mac: string + sn: string + targo?: string | null +} + +export type stbsUpdateInput = { + mac?: Prisma.StringFieldUpdateOperationsInput | string + sn?: Prisma.StringFieldUpdateOperationsInput | string + targo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type stbsUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + mac?: Prisma.StringFieldUpdateOperationsInput | string + sn?: Prisma.StringFieldUpdateOperationsInput | string + targo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type stbsCreateManyInput = { + id?: number + mac: string + sn: string + targo?: string | null +} + +export type stbsUpdateManyMutationInput = { + mac?: Prisma.StringFieldUpdateOperationsInput | string + sn?: Prisma.StringFieldUpdateOperationsInput | string + targo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type stbsUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + mac?: Prisma.StringFieldUpdateOperationsInput | string + sn?: Prisma.StringFieldUpdateOperationsInput | string + targo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type stbsOrderByRelevanceInput = { + fields: Prisma.stbsOrderByRelevanceFieldEnum | Prisma.stbsOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type stbsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + mac?: Prisma.SortOrder + sn?: Prisma.SortOrder + targo?: Prisma.SortOrder +} + +export type stbsAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type stbsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + mac?: Prisma.SortOrder + sn?: Prisma.SortOrder + targo?: Prisma.SortOrder +} + +export type stbsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + mac?: Prisma.SortOrder + sn?: Prisma.SortOrder + targo?: Prisma.SortOrder +} + +export type stbsSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type stbsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + mac?: boolean + sn?: boolean + targo?: boolean +}, ExtArgs["result"]["stbs"]> + + + +export type stbsSelectScalar = { + id?: boolean + mac?: boolean + sn?: boolean + targo?: boolean +} + +export type stbsOmit = runtime.Types.Extensions.GetOmit<"id" | "mac" | "sn" | "targo", ExtArgs["result"]["stbs"]> + +export type $stbsPayload = { + name: "stbs" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + mac: string + sn: string + targo: string | null + }, ExtArgs["result"]["stbs"]> + composites: {} +} + +export type stbsGetPayload = runtime.Types.Result.GetResult + +export type stbsCountArgs = + Omit & { + select?: StbsCountAggregateInputType | true + } + +export interface stbsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['stbs'], meta: { name: 'stbs' } } + /** + * Find zero or one Stbs that matches the filter. + * @param {stbsFindUniqueArgs} args - Arguments to find a Stbs + * @example + * // Get one Stbs + * const stbs = await prisma.stbs.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__stbsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Stbs that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {stbsFindUniqueOrThrowArgs} args - Arguments to find a Stbs + * @example + * // Get one Stbs + * const stbs = await prisma.stbs.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__stbsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Stbs 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 {stbsFindFirstArgs} args - Arguments to find a Stbs + * @example + * // Get one Stbs + * const stbs = await prisma.stbs.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__stbsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Stbs 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 {stbsFindFirstOrThrowArgs} args - Arguments to find a Stbs + * @example + * // Get one Stbs + * const stbs = await prisma.stbs.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__stbsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Stbs 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 {stbsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Stbs + * const stbs = await prisma.stbs.findMany() + * + * // Get first 10 Stbs + * const stbs = await prisma.stbs.findMany({ take: 10 }) + * + * // Only select the `id` + * const stbsWithIdOnly = await prisma.stbs.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Stbs. + * @param {stbsCreateArgs} args - Arguments to create a Stbs. + * @example + * // Create one Stbs + * const Stbs = await prisma.stbs.create({ + * data: { + * // ... data to create a Stbs + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__stbsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Stbs. + * @param {stbsCreateManyArgs} args - Arguments to create many Stbs. + * @example + * // Create many Stbs + * const stbs = await prisma.stbs.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Stbs. + * @param {stbsDeleteArgs} args - Arguments to delete one Stbs. + * @example + * // Delete one Stbs + * const Stbs = await prisma.stbs.delete({ + * where: { + * // ... filter to delete one Stbs + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__stbsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Stbs. + * @param {stbsUpdateArgs} args - Arguments to update one Stbs. + * @example + * // Update one Stbs + * const stbs = await prisma.stbs.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__stbsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Stbs. + * @param {stbsDeleteManyArgs} args - Arguments to filter Stbs to delete. + * @example + * // Delete a few Stbs + * const { count } = await prisma.stbs.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Stbs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {stbsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Stbs + * const stbs = await prisma.stbs.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Stbs. + * @param {stbsUpsertArgs} args - Arguments to update or create a Stbs. + * @example + * // Update or create a Stbs + * const stbs = await prisma.stbs.upsert({ + * create: { + * // ... data to create a Stbs + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Stbs we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__stbsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Stbs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {stbsCountArgs} args - Arguments to filter Stbs to count. + * @example + * // Count the number of Stbs + * const count = await prisma.stbs.count({ + * where: { + * // ... the filter for the Stbs 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 Stbs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StbsAggregateArgs} 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 Stbs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {stbsGroupByArgs} 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 stbsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: stbsGroupByArgs['orderBy'] } + : { orderBy?: stbsGroupByArgs['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 ? GetStbsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the stbs model + */ +readonly fields: stbsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for stbs. + * 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__stbsClient 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 stbs model + */ +export interface stbsFieldRefs { + readonly id: Prisma.FieldRef<"stbs", 'Int'> + readonly mac: Prisma.FieldRef<"stbs", 'String'> + readonly sn: Prisma.FieldRef<"stbs", 'String'> + readonly targo: Prisma.FieldRef<"stbs", 'String'> +} + + +// Custom InputTypes +/** + * stbs findUnique + */ +export type stbsFindUniqueArgs = { + /** + * Select specific fields to fetch from the stbs + */ + select?: Prisma.stbsSelect | null + /** + * Omit specific fields from the stbs + */ + omit?: Prisma.stbsOmit | null + /** + * Filter, which stbs to fetch. + */ + where: Prisma.stbsWhereUniqueInput +} + +/** + * stbs findUniqueOrThrow + */ +export type stbsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the stbs + */ + select?: Prisma.stbsSelect | null + /** + * Omit specific fields from the stbs + */ + omit?: Prisma.stbsOmit | null + /** + * Filter, which stbs to fetch. + */ + where: Prisma.stbsWhereUniqueInput +} + +/** + * stbs findFirst + */ +export type stbsFindFirstArgs = { + /** + * Select specific fields to fetch from the stbs + */ + select?: Prisma.stbsSelect | null + /** + * Omit specific fields from the stbs + */ + omit?: Prisma.stbsOmit | null + /** + * Filter, which stbs to fetch. + */ + where?: Prisma.stbsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of stbs to fetch. + */ + orderBy?: Prisma.stbsOrderByWithRelationInput | Prisma.stbsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for stbs. + */ + cursor?: Prisma.stbsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` stbs 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` stbs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of stbs. + */ + distinct?: Prisma.StbsScalarFieldEnum | Prisma.StbsScalarFieldEnum[] +} + +/** + * stbs findFirstOrThrow + */ +export type stbsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the stbs + */ + select?: Prisma.stbsSelect | null + /** + * Omit specific fields from the stbs + */ + omit?: Prisma.stbsOmit | null + /** + * Filter, which stbs to fetch. + */ + where?: Prisma.stbsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of stbs to fetch. + */ + orderBy?: Prisma.stbsOrderByWithRelationInput | Prisma.stbsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for stbs. + */ + cursor?: Prisma.stbsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` stbs 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` stbs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of stbs. + */ + distinct?: Prisma.StbsScalarFieldEnum | Prisma.StbsScalarFieldEnum[] +} + +/** + * stbs findMany + */ +export type stbsFindManyArgs = { + /** + * Select specific fields to fetch from the stbs + */ + select?: Prisma.stbsSelect | null + /** + * Omit specific fields from the stbs + */ + omit?: Prisma.stbsOmit | null + /** + * Filter, which stbs to fetch. + */ + where?: Prisma.stbsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of stbs to fetch. + */ + orderBy?: Prisma.stbsOrderByWithRelationInput | Prisma.stbsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing stbs. + */ + cursor?: Prisma.stbsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` stbs 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` stbs. + */ + skip?: number + distinct?: Prisma.StbsScalarFieldEnum | Prisma.StbsScalarFieldEnum[] +} + +/** + * stbs create + */ +export type stbsCreateArgs = { + /** + * Select specific fields to fetch from the stbs + */ + select?: Prisma.stbsSelect | null + /** + * Omit specific fields from the stbs + */ + omit?: Prisma.stbsOmit | null + /** + * The data needed to create a stbs. + */ + data: Prisma.XOR +} + +/** + * stbs createMany + */ +export type stbsCreateManyArgs = { + /** + * The data used to create many stbs. + */ + data: Prisma.stbsCreateManyInput | Prisma.stbsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * stbs update + */ +export type stbsUpdateArgs = { + /** + * Select specific fields to fetch from the stbs + */ + select?: Prisma.stbsSelect | null + /** + * Omit specific fields from the stbs + */ + omit?: Prisma.stbsOmit | null + /** + * The data needed to update a stbs. + */ + data: Prisma.XOR + /** + * Choose, which stbs to update. + */ + where: Prisma.stbsWhereUniqueInput +} + +/** + * stbs updateMany + */ +export type stbsUpdateManyArgs = { + /** + * The data used to update stbs. + */ + data: Prisma.XOR + /** + * Filter which stbs to update + */ + where?: Prisma.stbsWhereInput + /** + * Limit how many stbs to update. + */ + limit?: number +} + +/** + * stbs upsert + */ +export type stbsUpsertArgs = { + /** + * Select specific fields to fetch from the stbs + */ + select?: Prisma.stbsSelect | null + /** + * Omit specific fields from the stbs + */ + omit?: Prisma.stbsOmit | null + /** + * The filter to search for the stbs to update in case it exists. + */ + where: Prisma.stbsWhereUniqueInput + /** + * In case the stbs found by the `where` argument doesn't exist, create a new stbs with this data. + */ + create: Prisma.XOR + /** + * In case the stbs was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * stbs delete + */ +export type stbsDeleteArgs = { + /** + * Select specific fields to fetch from the stbs + */ + select?: Prisma.stbsSelect | null + /** + * Omit specific fields from the stbs + */ + omit?: Prisma.stbsOmit | null + /** + * Filter which stbs to delete. + */ + where: Prisma.stbsWhereUniqueInput +} + +/** + * stbs deleteMany + */ +export type stbsDeleteManyArgs = { + /** + * Filter which stbs to delete + */ + where?: Prisma.stbsWhereInput + /** + * Limit how many stbs to delete. + */ + limit?: number +} + +/** + * stbs without action + */ +export type stbsDefaultArgs = { + /** + * Select specific fields to fetch from the stbs + */ + select?: Prisma.stbsSelect | null + /** + * Omit specific fields from the stbs + */ + omit?: Prisma.stbsOmit | null +} diff --git a/prisma/generated/mariadb/models/tax.ts b/prisma/generated/mariadb/models/tax.ts new file mode 100644 index 0000000..72cfff6 --- /dev/null +++ b/prisma/generated/mariadb/models/tax.ts @@ -0,0 +1,1059 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `tax` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model tax + * + */ +export type taxModel = runtime.Types.Result.DefaultSelection + +export type AggregateTax = { + _count: TaxCountAggregateOutputType | null + _avg: TaxAvgAggregateOutputType | null + _sum: TaxSumAggregateOutputType | null + _min: TaxMinAggregateOutputType | null + _max: TaxMaxAggregateOutputType | null +} + +export type TaxAvgAggregateOutputType = { + id: number | null + rate: number | null +} + +export type TaxSumAggregateOutputType = { + id: number | null + rate: number | null +} + +export type TaxMinAggregateOutputType = { + id: number | null + name: string | null + description: string | null + rate: number | null +} + +export type TaxMaxAggregateOutputType = { + id: number | null + name: string | null + description: string | null + rate: number | null +} + +export type TaxCountAggregateOutputType = { + id: number + name: number + description: number + rate: number + _all: number +} + + +export type TaxAvgAggregateInputType = { + id?: true + rate?: true +} + +export type TaxSumAggregateInputType = { + id?: true + rate?: true +} + +export type TaxMinAggregateInputType = { + id?: true + name?: true + description?: true + rate?: true +} + +export type TaxMaxAggregateInputType = { + id?: true + name?: true + description?: true + rate?: true +} + +export type TaxCountAggregateInputType = { + id?: true + name?: true + description?: true + rate?: true + _all?: true +} + +export type TaxAggregateArgs = { + /** + * Filter which tax to aggregate. + */ + where?: Prisma.taxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of taxes to fetch. + */ + orderBy?: Prisma.taxOrderByWithRelationInput | Prisma.taxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.taxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` taxes 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` taxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned taxes + **/ + _count?: true | TaxCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: TaxAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: TaxSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: TaxMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: TaxMaxAggregateInputType +} + +export type GetTaxAggregateType = { + [P in keyof T & keyof AggregateTax]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type taxGroupByArgs = { + where?: Prisma.taxWhereInput + orderBy?: Prisma.taxOrderByWithAggregationInput | Prisma.taxOrderByWithAggregationInput[] + by: Prisma.TaxScalarFieldEnum[] | Prisma.TaxScalarFieldEnum + having?: Prisma.taxScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: TaxCountAggregateInputType | true + _avg?: TaxAvgAggregateInputType + _sum?: TaxSumAggregateInputType + _min?: TaxMinAggregateInputType + _max?: TaxMaxAggregateInputType +} + +export type TaxGroupByOutputType = { + id: number + name: string | null + description: string | null + rate: number | null + _count: TaxCountAggregateOutputType | null + _avg: TaxAvgAggregateOutputType | null + _sum: TaxSumAggregateOutputType | null + _min: TaxMinAggregateOutputType | null + _max: TaxMaxAggregateOutputType | null +} + +type GetTaxGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof TaxGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type taxWhereInput = { + AND?: Prisma.taxWhereInput | Prisma.taxWhereInput[] + OR?: Prisma.taxWhereInput[] + NOT?: Prisma.taxWhereInput | Prisma.taxWhereInput[] + id?: Prisma.IntFilter<"tax"> | number + name?: Prisma.StringNullableFilter<"tax"> | string | null + description?: Prisma.StringNullableFilter<"tax"> | string | null + rate?: Prisma.FloatNullableFilter<"tax"> | number | null +} + +export type taxOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + rate?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.taxOrderByRelevanceInput +} + +export type taxWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.taxWhereInput | Prisma.taxWhereInput[] + OR?: Prisma.taxWhereInput[] + NOT?: Prisma.taxWhereInput | Prisma.taxWhereInput[] + name?: Prisma.StringNullableFilter<"tax"> | string | null + description?: Prisma.StringNullableFilter<"tax"> | string | null + rate?: Prisma.FloatNullableFilter<"tax"> | number | null +}, "id"> + +export type taxOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + rate?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.taxCountOrderByAggregateInput + _avg?: Prisma.taxAvgOrderByAggregateInput + _max?: Prisma.taxMaxOrderByAggregateInput + _min?: Prisma.taxMinOrderByAggregateInput + _sum?: Prisma.taxSumOrderByAggregateInput +} + +export type taxScalarWhereWithAggregatesInput = { + AND?: Prisma.taxScalarWhereWithAggregatesInput | Prisma.taxScalarWhereWithAggregatesInput[] + OR?: Prisma.taxScalarWhereWithAggregatesInput[] + NOT?: Prisma.taxScalarWhereWithAggregatesInput | Prisma.taxScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"tax"> | number + name?: Prisma.StringNullableWithAggregatesFilter<"tax"> | string | null + description?: Prisma.StringNullableWithAggregatesFilter<"tax"> | string | null + rate?: Prisma.FloatNullableWithAggregatesFilter<"tax"> | number | null +} + +export type taxCreateInput = { + name?: string | null + description?: string | null + rate?: number | null +} + +export type taxUncheckedCreateInput = { + id?: number + name?: string | null + description?: string | null + rate?: number | null +} + +export type taxUpdateInput = { + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type taxUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type taxCreateManyInput = { + id?: number + name?: string | null + description?: string | null + rate?: number | null +} + +export type taxUpdateManyMutationInput = { + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type taxUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null +} + +export type taxOrderByRelevanceInput = { + fields: Prisma.taxOrderByRelevanceFieldEnum | Prisma.taxOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type taxCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + rate?: Prisma.SortOrder +} + +export type taxAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + rate?: Prisma.SortOrder +} + +export type taxMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + rate?: Prisma.SortOrder +} + +export type taxMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + rate?: Prisma.SortOrder +} + +export type taxSumOrderByAggregateInput = { + id?: Prisma.SortOrder + rate?: Prisma.SortOrder +} + + + +export type taxSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + description?: boolean + rate?: boolean +}, ExtArgs["result"]["tax"]> + + + +export type taxSelectScalar = { + id?: boolean + name?: boolean + description?: boolean + rate?: boolean +} + +export type taxOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "rate", ExtArgs["result"]["tax"]> + +export type $taxPayload = { + name: "tax" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name: string | null + description: string | null + rate: number | null + }, ExtArgs["result"]["tax"]> + composites: {} +} + +export type taxGetPayload = runtime.Types.Result.GetResult + +export type taxCountArgs = + Omit & { + select?: TaxCountAggregateInputType | true + } + +export interface taxDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['tax'], meta: { name: 'tax' } } + /** + * Find zero or one Tax that matches the filter. + * @param {taxFindUniqueArgs} args - Arguments to find a Tax + * @example + * // Get one Tax + * const tax = await prisma.tax.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__taxClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Tax that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {taxFindUniqueOrThrowArgs} args - Arguments to find a Tax + * @example + * // Get one Tax + * const tax = await prisma.tax.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__taxClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tax 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 {taxFindFirstArgs} args - Arguments to find a Tax + * @example + * // Get one Tax + * const tax = await prisma.tax.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__taxClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tax 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 {taxFindFirstOrThrowArgs} args - Arguments to find a Tax + * @example + * // Get one Tax + * const tax = await prisma.tax.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__taxClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Taxes 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 {taxFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Taxes + * const taxes = await prisma.tax.findMany() + * + * // Get first 10 Taxes + * const taxes = await prisma.tax.findMany({ take: 10 }) + * + * // Only select the `id` + * const taxWithIdOnly = await prisma.tax.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Tax. + * @param {taxCreateArgs} args - Arguments to create a Tax. + * @example + * // Create one Tax + * const Tax = await prisma.tax.create({ + * data: { + * // ... data to create a Tax + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__taxClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Taxes. + * @param {taxCreateManyArgs} args - Arguments to create many Taxes. + * @example + * // Create many Taxes + * const tax = await prisma.tax.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Tax. + * @param {taxDeleteArgs} args - Arguments to delete one Tax. + * @example + * // Delete one Tax + * const Tax = await prisma.tax.delete({ + * where: { + * // ... filter to delete one Tax + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__taxClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Tax. + * @param {taxUpdateArgs} args - Arguments to update one Tax. + * @example + * // Update one Tax + * const tax = await prisma.tax.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__taxClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Taxes. + * @param {taxDeleteManyArgs} args - Arguments to filter Taxes to delete. + * @example + * // Delete a few Taxes + * const { count } = await prisma.tax.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Taxes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {taxUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Taxes + * const tax = await prisma.tax.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Tax. + * @param {taxUpsertArgs} args - Arguments to update or create a Tax. + * @example + * // Update or create a Tax + * const tax = await prisma.tax.upsert({ + * create: { + * // ... data to create a Tax + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Tax we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__taxClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Taxes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {taxCountArgs} args - Arguments to filter Taxes to count. + * @example + * // Count the number of Taxes + * const count = await prisma.tax.count({ + * where: { + * // ... the filter for the Taxes 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 Tax. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TaxAggregateArgs} 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 Tax. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {taxGroupByArgs} 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 taxGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: taxGroupByArgs['orderBy'] } + : { orderBy?: taxGroupByArgs['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 ? GetTaxGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the tax model + */ +readonly fields: taxFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for tax. + * 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__taxClient 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 tax model + */ +export interface taxFieldRefs { + readonly id: Prisma.FieldRef<"tax", 'Int'> + readonly name: Prisma.FieldRef<"tax", 'String'> + readonly description: Prisma.FieldRef<"tax", 'String'> + readonly rate: Prisma.FieldRef<"tax", 'Float'> +} + + +// Custom InputTypes +/** + * tax findUnique + */ +export type taxFindUniqueArgs = { + /** + * Select specific fields to fetch from the tax + */ + select?: Prisma.taxSelect | null + /** + * Omit specific fields from the tax + */ + omit?: Prisma.taxOmit | null + /** + * Filter, which tax to fetch. + */ + where: Prisma.taxWhereUniqueInput +} + +/** + * tax findUniqueOrThrow + */ +export type taxFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the tax + */ + select?: Prisma.taxSelect | null + /** + * Omit specific fields from the tax + */ + omit?: Prisma.taxOmit | null + /** + * Filter, which tax to fetch. + */ + where: Prisma.taxWhereUniqueInput +} + +/** + * tax findFirst + */ +export type taxFindFirstArgs = { + /** + * Select specific fields to fetch from the tax + */ + select?: Prisma.taxSelect | null + /** + * Omit specific fields from the tax + */ + omit?: Prisma.taxOmit | null + /** + * Filter, which tax to fetch. + */ + where?: Prisma.taxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of taxes to fetch. + */ + orderBy?: Prisma.taxOrderByWithRelationInput | Prisma.taxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for taxes. + */ + cursor?: Prisma.taxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` taxes 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` taxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of taxes. + */ + distinct?: Prisma.TaxScalarFieldEnum | Prisma.TaxScalarFieldEnum[] +} + +/** + * tax findFirstOrThrow + */ +export type taxFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the tax + */ + select?: Prisma.taxSelect | null + /** + * Omit specific fields from the tax + */ + omit?: Prisma.taxOmit | null + /** + * Filter, which tax to fetch. + */ + where?: Prisma.taxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of taxes to fetch. + */ + orderBy?: Prisma.taxOrderByWithRelationInput | Prisma.taxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for taxes. + */ + cursor?: Prisma.taxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` taxes 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` taxes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of taxes. + */ + distinct?: Prisma.TaxScalarFieldEnum | Prisma.TaxScalarFieldEnum[] +} + +/** + * tax findMany + */ +export type taxFindManyArgs = { + /** + * Select specific fields to fetch from the tax + */ + select?: Prisma.taxSelect | null + /** + * Omit specific fields from the tax + */ + omit?: Prisma.taxOmit | null + /** + * Filter, which taxes to fetch. + */ + where?: Prisma.taxWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of taxes to fetch. + */ + orderBy?: Prisma.taxOrderByWithRelationInput | Prisma.taxOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing taxes. + */ + cursor?: Prisma.taxWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` taxes 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` taxes. + */ + skip?: number + distinct?: Prisma.TaxScalarFieldEnum | Prisma.TaxScalarFieldEnum[] +} + +/** + * tax create + */ +export type taxCreateArgs = { + /** + * Select specific fields to fetch from the tax + */ + select?: Prisma.taxSelect | null + /** + * Omit specific fields from the tax + */ + omit?: Prisma.taxOmit | null + /** + * The data needed to create a tax. + */ + data?: Prisma.XOR +} + +/** + * tax createMany + */ +export type taxCreateManyArgs = { + /** + * The data used to create many taxes. + */ + data: Prisma.taxCreateManyInput | Prisma.taxCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * tax update + */ +export type taxUpdateArgs = { + /** + * Select specific fields to fetch from the tax + */ + select?: Prisma.taxSelect | null + /** + * Omit specific fields from the tax + */ + omit?: Prisma.taxOmit | null + /** + * The data needed to update a tax. + */ + data: Prisma.XOR + /** + * Choose, which tax to update. + */ + where: Prisma.taxWhereUniqueInput +} + +/** + * tax updateMany + */ +export type taxUpdateManyArgs = { + /** + * The data used to update taxes. + */ + data: Prisma.XOR + /** + * Filter which taxes to update + */ + where?: Prisma.taxWhereInput + /** + * Limit how many taxes to update. + */ + limit?: number +} + +/** + * tax upsert + */ +export type taxUpsertArgs = { + /** + * Select specific fields to fetch from the tax + */ + select?: Prisma.taxSelect | null + /** + * Omit specific fields from the tax + */ + omit?: Prisma.taxOmit | null + /** + * The filter to search for the tax to update in case it exists. + */ + where: Prisma.taxWhereUniqueInput + /** + * In case the tax found by the `where` argument doesn't exist, create a new tax with this data. + */ + create: Prisma.XOR + /** + * In case the tax was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * tax delete + */ +export type taxDeleteArgs = { + /** + * Select specific fields to fetch from the tax + */ + select?: Prisma.taxSelect | null + /** + * Omit specific fields from the tax + */ + omit?: Prisma.taxOmit | null + /** + * Filter which tax to delete. + */ + where: Prisma.taxWhereUniqueInput +} + +/** + * tax deleteMany + */ +export type taxDeleteManyArgs = { + /** + * Filter which taxes to delete + */ + where?: Prisma.taxWhereInput + /** + * Limit how many taxes to delete. + */ + limit?: number +} + +/** + * tax without action + */ +export type taxDefaultArgs = { + /** + * Select specific fields to fetch from the tax + */ + select?: Prisma.taxSelect | null + /** + * Omit specific fields from the tax + */ + omit?: Prisma.taxOmit | null +} diff --git a/prisma/generated/mariadb/models/tax_group.ts b/prisma/generated/mariadb/models/tax_group.ts new file mode 100644 index 0000000..4e81c1f --- /dev/null +++ b/prisma/generated/mariadb/models/tax_group.ts @@ -0,0 +1,1053 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `tax_group` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model tax_group + * + */ +export type tax_groupModel = runtime.Types.Result.DefaultSelection + +export type AggregateTax_group = { + _count: Tax_groupCountAggregateOutputType | null + _avg: Tax_groupAvgAggregateOutputType | null + _sum: Tax_groupSumAggregateOutputType | null + _min: Tax_groupMinAggregateOutputType | null + _max: Tax_groupMaxAggregateOutputType | null +} + +export type Tax_groupAvgAggregateOutputType = { + id: number | null +} + +export type Tax_groupSumAggregateOutputType = { + id: number | null +} + +export type Tax_groupMinAggregateOutputType = { + id: number | null + name: string | null + description: string | null + tax: string | null +} + +export type Tax_groupMaxAggregateOutputType = { + id: number | null + name: string | null + description: string | null + tax: string | null +} + +export type Tax_groupCountAggregateOutputType = { + id: number + name: number + description: number + tax: number + _all: number +} + + +export type Tax_groupAvgAggregateInputType = { + id?: true +} + +export type Tax_groupSumAggregateInputType = { + id?: true +} + +export type Tax_groupMinAggregateInputType = { + id?: true + name?: true + description?: true + tax?: true +} + +export type Tax_groupMaxAggregateInputType = { + id?: true + name?: true + description?: true + tax?: true +} + +export type Tax_groupCountAggregateInputType = { + id?: true + name?: true + description?: true + tax?: true + _all?: true +} + +export type Tax_groupAggregateArgs = { + /** + * Filter which tax_group to aggregate. + */ + where?: Prisma.tax_groupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tax_groups to fetch. + */ + orderBy?: Prisma.tax_groupOrderByWithRelationInput | Prisma.tax_groupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.tax_groupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tax_groups 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` tax_groups. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned tax_groups + **/ + _count?: true | Tax_groupCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Tax_groupAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Tax_groupSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Tax_groupMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Tax_groupMaxAggregateInputType +} + +export type GetTax_groupAggregateType = { + [P in keyof T & keyof AggregateTax_group]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type tax_groupGroupByArgs = { + where?: Prisma.tax_groupWhereInput + orderBy?: Prisma.tax_groupOrderByWithAggregationInput | Prisma.tax_groupOrderByWithAggregationInput[] + by: Prisma.Tax_groupScalarFieldEnum[] | Prisma.Tax_groupScalarFieldEnum + having?: Prisma.tax_groupScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Tax_groupCountAggregateInputType | true + _avg?: Tax_groupAvgAggregateInputType + _sum?: Tax_groupSumAggregateInputType + _min?: Tax_groupMinAggregateInputType + _max?: Tax_groupMaxAggregateInputType +} + +export type Tax_groupGroupByOutputType = { + id: number + name: string | null + description: string | null + tax: string | null + _count: Tax_groupCountAggregateOutputType | null + _avg: Tax_groupAvgAggregateOutputType | null + _sum: Tax_groupSumAggregateOutputType | null + _min: Tax_groupMinAggregateOutputType | null + _max: Tax_groupMaxAggregateOutputType | null +} + +type GetTax_groupGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Tax_groupGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type tax_groupWhereInput = { + AND?: Prisma.tax_groupWhereInput | Prisma.tax_groupWhereInput[] + OR?: Prisma.tax_groupWhereInput[] + NOT?: Prisma.tax_groupWhereInput | Prisma.tax_groupWhereInput[] + id?: Prisma.IntFilter<"tax_group"> | number + name?: Prisma.StringNullableFilter<"tax_group"> | string | null + description?: Prisma.StringNullableFilter<"tax_group"> | string | null + tax?: Prisma.StringNullableFilter<"tax_group"> | string | null +} + +export type tax_groupOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + tax?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.tax_groupOrderByRelevanceInput +} + +export type tax_groupWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.tax_groupWhereInput | Prisma.tax_groupWhereInput[] + OR?: Prisma.tax_groupWhereInput[] + NOT?: Prisma.tax_groupWhereInput | Prisma.tax_groupWhereInput[] + name?: Prisma.StringNullableFilter<"tax_group"> | string | null + description?: Prisma.StringNullableFilter<"tax_group"> | string | null + tax?: Prisma.StringNullableFilter<"tax_group"> | string | null +}, "id"> + +export type tax_groupOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrderInput | Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + tax?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.tax_groupCountOrderByAggregateInput + _avg?: Prisma.tax_groupAvgOrderByAggregateInput + _max?: Prisma.tax_groupMaxOrderByAggregateInput + _min?: Prisma.tax_groupMinOrderByAggregateInput + _sum?: Prisma.tax_groupSumOrderByAggregateInput +} + +export type tax_groupScalarWhereWithAggregatesInput = { + AND?: Prisma.tax_groupScalarWhereWithAggregatesInput | Prisma.tax_groupScalarWhereWithAggregatesInput[] + OR?: Prisma.tax_groupScalarWhereWithAggregatesInput[] + NOT?: Prisma.tax_groupScalarWhereWithAggregatesInput | Prisma.tax_groupScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"tax_group"> | number + name?: Prisma.StringNullableWithAggregatesFilter<"tax_group"> | string | null + description?: Prisma.StringNullableWithAggregatesFilter<"tax_group"> | string | null + tax?: Prisma.StringNullableWithAggregatesFilter<"tax_group"> | string | null +} + +export type tax_groupCreateInput = { + name?: string | null + description?: string | null + tax?: string | null +} + +export type tax_groupUncheckedCreateInput = { + id?: number + name?: string | null + description?: string | null + tax?: string | null +} + +export type tax_groupUpdateInput = { + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type tax_groupUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type tax_groupCreateManyInput = { + id?: number + name?: string | null + description?: string | null + tax?: string | null +} + +export type tax_groupUpdateManyMutationInput = { + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type tax_groupUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + tax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type tax_groupOrderByRelevanceInput = { + fields: Prisma.tax_groupOrderByRelevanceFieldEnum | Prisma.tax_groupOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type tax_groupCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + tax?: Prisma.SortOrder +} + +export type tax_groupAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type tax_groupMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + tax?: Prisma.SortOrder +} + +export type tax_groupMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + tax?: Prisma.SortOrder +} + +export type tax_groupSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type tax_groupSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + description?: boolean + tax?: boolean +}, ExtArgs["result"]["tax_group"]> + + + +export type tax_groupSelectScalar = { + id?: boolean + name?: boolean + description?: boolean + tax?: boolean +} + +export type tax_groupOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "tax", ExtArgs["result"]["tax_group"]> + +export type $tax_groupPayload = { + name: "tax_group" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name: string | null + description: string | null + tax: string | null + }, ExtArgs["result"]["tax_group"]> + composites: {} +} + +export type tax_groupGetPayload = runtime.Types.Result.GetResult + +export type tax_groupCountArgs = + Omit & { + select?: Tax_groupCountAggregateInputType | true + } + +export interface tax_groupDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['tax_group'], meta: { name: 'tax_group' } } + /** + * Find zero or one Tax_group that matches the filter. + * @param {tax_groupFindUniqueArgs} args - Arguments to find a Tax_group + * @example + * // Get one Tax_group + * const tax_group = await prisma.tax_group.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__tax_groupClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Tax_group that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {tax_groupFindUniqueOrThrowArgs} args - Arguments to find a Tax_group + * @example + * // Get one Tax_group + * const tax_group = await prisma.tax_group.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__tax_groupClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tax_group 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 {tax_groupFindFirstArgs} args - Arguments to find a Tax_group + * @example + * // Get one Tax_group + * const tax_group = await prisma.tax_group.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__tax_groupClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tax_group 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 {tax_groupFindFirstOrThrowArgs} args - Arguments to find a Tax_group + * @example + * // Get one Tax_group + * const tax_group = await prisma.tax_group.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__tax_groupClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Tax_groups 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 {tax_groupFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Tax_groups + * const tax_groups = await prisma.tax_group.findMany() + * + * // Get first 10 Tax_groups + * const tax_groups = await prisma.tax_group.findMany({ take: 10 }) + * + * // Only select the `id` + * const tax_groupWithIdOnly = await prisma.tax_group.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Tax_group. + * @param {tax_groupCreateArgs} args - Arguments to create a Tax_group. + * @example + * // Create one Tax_group + * const Tax_group = await prisma.tax_group.create({ + * data: { + * // ... data to create a Tax_group + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__tax_groupClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Tax_groups. + * @param {tax_groupCreateManyArgs} args - Arguments to create many Tax_groups. + * @example + * // Create many Tax_groups + * const tax_group = await prisma.tax_group.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Tax_group. + * @param {tax_groupDeleteArgs} args - Arguments to delete one Tax_group. + * @example + * // Delete one Tax_group + * const Tax_group = await prisma.tax_group.delete({ + * where: { + * // ... filter to delete one Tax_group + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__tax_groupClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Tax_group. + * @param {tax_groupUpdateArgs} args - Arguments to update one Tax_group. + * @example + * // Update one Tax_group + * const tax_group = await prisma.tax_group.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__tax_groupClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Tax_groups. + * @param {tax_groupDeleteManyArgs} args - Arguments to filter Tax_groups to delete. + * @example + * // Delete a few Tax_groups + * const { count } = await prisma.tax_group.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Tax_groups. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tax_groupUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Tax_groups + * const tax_group = await prisma.tax_group.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Tax_group. + * @param {tax_groupUpsertArgs} args - Arguments to update or create a Tax_group. + * @example + * // Update or create a Tax_group + * const tax_group = await prisma.tax_group.upsert({ + * create: { + * // ... data to create a Tax_group + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Tax_group we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__tax_groupClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Tax_groups. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tax_groupCountArgs} args - Arguments to filter Tax_groups to count. + * @example + * // Count the number of Tax_groups + * const count = await prisma.tax_group.count({ + * where: { + * // ... the filter for the Tax_groups 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 Tax_group. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Tax_groupAggregateArgs} 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 Tax_group. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tax_groupGroupByArgs} 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 tax_groupGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: tax_groupGroupByArgs['orderBy'] } + : { orderBy?: tax_groupGroupByArgs['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 ? GetTax_groupGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the tax_group model + */ +readonly fields: tax_groupFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for tax_group. + * 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__tax_groupClient 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 tax_group model + */ +export interface tax_groupFieldRefs { + readonly id: Prisma.FieldRef<"tax_group", 'Int'> + readonly name: Prisma.FieldRef<"tax_group", 'String'> + readonly description: Prisma.FieldRef<"tax_group", 'String'> + readonly tax: Prisma.FieldRef<"tax_group", 'String'> +} + + +// Custom InputTypes +/** + * tax_group findUnique + */ +export type tax_groupFindUniqueArgs = { + /** + * Select specific fields to fetch from the tax_group + */ + select?: Prisma.tax_groupSelect | null + /** + * Omit specific fields from the tax_group + */ + omit?: Prisma.tax_groupOmit | null + /** + * Filter, which tax_group to fetch. + */ + where: Prisma.tax_groupWhereUniqueInput +} + +/** + * tax_group findUniqueOrThrow + */ +export type tax_groupFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the tax_group + */ + select?: Prisma.tax_groupSelect | null + /** + * Omit specific fields from the tax_group + */ + omit?: Prisma.tax_groupOmit | null + /** + * Filter, which tax_group to fetch. + */ + where: Prisma.tax_groupWhereUniqueInput +} + +/** + * tax_group findFirst + */ +export type tax_groupFindFirstArgs = { + /** + * Select specific fields to fetch from the tax_group + */ + select?: Prisma.tax_groupSelect | null + /** + * Omit specific fields from the tax_group + */ + omit?: Prisma.tax_groupOmit | null + /** + * Filter, which tax_group to fetch. + */ + where?: Prisma.tax_groupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tax_groups to fetch. + */ + orderBy?: Prisma.tax_groupOrderByWithRelationInput | Prisma.tax_groupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tax_groups. + */ + cursor?: Prisma.tax_groupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tax_groups 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` tax_groups. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tax_groups. + */ + distinct?: Prisma.Tax_groupScalarFieldEnum | Prisma.Tax_groupScalarFieldEnum[] +} + +/** + * tax_group findFirstOrThrow + */ +export type tax_groupFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the tax_group + */ + select?: Prisma.tax_groupSelect | null + /** + * Omit specific fields from the tax_group + */ + omit?: Prisma.tax_groupOmit | null + /** + * Filter, which tax_group to fetch. + */ + where?: Prisma.tax_groupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tax_groups to fetch. + */ + orderBy?: Prisma.tax_groupOrderByWithRelationInput | Prisma.tax_groupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tax_groups. + */ + cursor?: Prisma.tax_groupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tax_groups 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` tax_groups. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tax_groups. + */ + distinct?: Prisma.Tax_groupScalarFieldEnum | Prisma.Tax_groupScalarFieldEnum[] +} + +/** + * tax_group findMany + */ +export type tax_groupFindManyArgs = { + /** + * Select specific fields to fetch from the tax_group + */ + select?: Prisma.tax_groupSelect | null + /** + * Omit specific fields from the tax_group + */ + omit?: Prisma.tax_groupOmit | null + /** + * Filter, which tax_groups to fetch. + */ + where?: Prisma.tax_groupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tax_groups to fetch. + */ + orderBy?: Prisma.tax_groupOrderByWithRelationInput | Prisma.tax_groupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing tax_groups. + */ + cursor?: Prisma.tax_groupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tax_groups 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` tax_groups. + */ + skip?: number + distinct?: Prisma.Tax_groupScalarFieldEnum | Prisma.Tax_groupScalarFieldEnum[] +} + +/** + * tax_group create + */ +export type tax_groupCreateArgs = { + /** + * Select specific fields to fetch from the tax_group + */ + select?: Prisma.tax_groupSelect | null + /** + * Omit specific fields from the tax_group + */ + omit?: Prisma.tax_groupOmit | null + /** + * The data needed to create a tax_group. + */ + data?: Prisma.XOR +} + +/** + * tax_group createMany + */ +export type tax_groupCreateManyArgs = { + /** + * The data used to create many tax_groups. + */ + data: Prisma.tax_groupCreateManyInput | Prisma.tax_groupCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * tax_group update + */ +export type tax_groupUpdateArgs = { + /** + * Select specific fields to fetch from the tax_group + */ + select?: Prisma.tax_groupSelect | null + /** + * Omit specific fields from the tax_group + */ + omit?: Prisma.tax_groupOmit | null + /** + * The data needed to update a tax_group. + */ + data: Prisma.XOR + /** + * Choose, which tax_group to update. + */ + where: Prisma.tax_groupWhereUniqueInput +} + +/** + * tax_group updateMany + */ +export type tax_groupUpdateManyArgs = { + /** + * The data used to update tax_groups. + */ + data: Prisma.XOR + /** + * Filter which tax_groups to update + */ + where?: Prisma.tax_groupWhereInput + /** + * Limit how many tax_groups to update. + */ + limit?: number +} + +/** + * tax_group upsert + */ +export type tax_groupUpsertArgs = { + /** + * Select specific fields to fetch from the tax_group + */ + select?: Prisma.tax_groupSelect | null + /** + * Omit specific fields from the tax_group + */ + omit?: Prisma.tax_groupOmit | null + /** + * The filter to search for the tax_group to update in case it exists. + */ + where: Prisma.tax_groupWhereUniqueInput + /** + * In case the tax_group found by the `where` argument doesn't exist, create a new tax_group with this data. + */ + create: Prisma.XOR + /** + * In case the tax_group was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * tax_group delete + */ +export type tax_groupDeleteArgs = { + /** + * Select specific fields to fetch from the tax_group + */ + select?: Prisma.tax_groupSelect | null + /** + * Omit specific fields from the tax_group + */ + omit?: Prisma.tax_groupOmit | null + /** + * Filter which tax_group to delete. + */ + where: Prisma.tax_groupWhereUniqueInput +} + +/** + * tax_group deleteMany + */ +export type tax_groupDeleteManyArgs = { + /** + * Filter which tax_groups to delete + */ + where?: Prisma.tax_groupWhereInput + /** + * Limit how many tax_groups to delete. + */ + limit?: number +} + +/** + * tax_group without action + */ +export type tax_groupDefaultArgs = { + /** + * Select specific fields to fetch from the tax_group + */ + select?: Prisma.tax_groupSelect | null + /** + * Omit specific fields from the tax_group + */ + omit?: Prisma.tax_groupOmit | null +} diff --git a/prisma/generated/mariadb/models/td_payable.ts b/prisma/generated/mariadb/models/td_payable.ts new file mode 100644 index 0000000..7a2b8a9 --- /dev/null +++ b/prisma/generated/mariadb/models/td_payable.ts @@ -0,0 +1,1247 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `td_payable` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model td_payable + * + */ +export type td_payableModel = runtime.Types.Result.DefaultSelection + +export type AggregateTd_payable = { + _count: Td_payableCountAggregateOutputType | null + _avg: Td_payableAvgAggregateOutputType | null + _sum: Td_payableSumAggregateOutputType | null + _min: Td_payableMinAggregateOutputType | null + _max: Td_payableMaxAggregateOutputType | null +} + +export type Td_payableAvgAggregateOutputType = { + id: number | null + ticket_id: number | null + montant: runtime.Decimal | null +} + +export type Td_payableSumAggregateOutputType = { + id: number | null + ticket_id: number | null + montant: runtime.Decimal | null +} + +export type Td_payableMinAggregateOutputType = { + id: number | null + ticket_id: number | null + invoice: string | null + date_invoice: string | null + fournisseur: string | null + montant: runtime.Decimal | null + devise: string | null + methode: string | null + reference: string | null + date_paiement: string | null + releve: string | null +} + +export type Td_payableMaxAggregateOutputType = { + id: number | null + ticket_id: number | null + invoice: string | null + date_invoice: string | null + fournisseur: string | null + montant: runtime.Decimal | null + devise: string | null + methode: string | null + reference: string | null + date_paiement: string | null + releve: string | null +} + +export type Td_payableCountAggregateOutputType = { + id: number + ticket_id: number + invoice: number + date_invoice: number + fournisseur: number + montant: number + devise: number + methode: number + reference: number + date_paiement: number + releve: number + _all: number +} + + +export type Td_payableAvgAggregateInputType = { + id?: true + ticket_id?: true + montant?: true +} + +export type Td_payableSumAggregateInputType = { + id?: true + ticket_id?: true + montant?: true +} + +export type Td_payableMinAggregateInputType = { + id?: true + ticket_id?: true + invoice?: true + date_invoice?: true + fournisseur?: true + montant?: true + devise?: true + methode?: true + reference?: true + date_paiement?: true + releve?: true +} + +export type Td_payableMaxAggregateInputType = { + id?: true + ticket_id?: true + invoice?: true + date_invoice?: true + fournisseur?: true + montant?: true + devise?: true + methode?: true + reference?: true + date_paiement?: true + releve?: true +} + +export type Td_payableCountAggregateInputType = { + id?: true + ticket_id?: true + invoice?: true + date_invoice?: true + fournisseur?: true + montant?: true + devise?: true + methode?: true + reference?: true + date_paiement?: true + releve?: true + _all?: true +} + +export type Td_payableAggregateArgs = { + /** + * Filter which td_payable to aggregate. + */ + where?: Prisma.td_payableWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of td_payables to fetch. + */ + orderBy?: Prisma.td_payableOrderByWithRelationInput | Prisma.td_payableOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.td_payableWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` td_payables 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` td_payables. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned td_payables + **/ + _count?: true | Td_payableCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Td_payableAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Td_payableSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Td_payableMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Td_payableMaxAggregateInputType +} + +export type GetTd_payableAggregateType = { + [P in keyof T & keyof AggregateTd_payable]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type td_payableGroupByArgs = { + where?: Prisma.td_payableWhereInput + orderBy?: Prisma.td_payableOrderByWithAggregationInput | Prisma.td_payableOrderByWithAggregationInput[] + by: Prisma.Td_payableScalarFieldEnum[] | Prisma.Td_payableScalarFieldEnum + having?: Prisma.td_payableScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Td_payableCountAggregateInputType | true + _avg?: Td_payableAvgAggregateInputType + _sum?: Td_payableSumAggregateInputType + _min?: Td_payableMinAggregateInputType + _max?: Td_payableMaxAggregateInputType +} + +export type Td_payableGroupByOutputType = { + id: number + ticket_id: number + invoice: string + date_invoice: string + fournisseur: string | null + montant: runtime.Decimal + devise: string + methode: string | null + reference: string | null + date_paiement: string | null + releve: string | null + _count: Td_payableCountAggregateOutputType | null + _avg: Td_payableAvgAggregateOutputType | null + _sum: Td_payableSumAggregateOutputType | null + _min: Td_payableMinAggregateOutputType | null + _max: Td_payableMaxAggregateOutputType | null +} + +type GetTd_payableGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Td_payableGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type td_payableWhereInput = { + AND?: Prisma.td_payableWhereInput | Prisma.td_payableWhereInput[] + OR?: Prisma.td_payableWhereInput[] + NOT?: Prisma.td_payableWhereInput | Prisma.td_payableWhereInput[] + id?: Prisma.IntFilter<"td_payable"> | number + ticket_id?: Prisma.IntFilter<"td_payable"> | number + invoice?: Prisma.StringFilter<"td_payable"> | string + date_invoice?: Prisma.StringFilter<"td_payable"> | string + fournisseur?: Prisma.StringNullableFilter<"td_payable"> | string | null + montant?: Prisma.DecimalFilter<"td_payable"> | runtime.Decimal | runtime.DecimalJsLike | number | string + devise?: Prisma.StringFilter<"td_payable"> | string + methode?: Prisma.StringNullableFilter<"td_payable"> | string | null + reference?: Prisma.StringNullableFilter<"td_payable"> | string | null + date_paiement?: Prisma.StringNullableFilter<"td_payable"> | string | null + releve?: Prisma.StringNullableFilter<"td_payable"> | string | null +} + +export type td_payableOrderByWithRelationInput = { + id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + invoice?: Prisma.SortOrder + date_invoice?: Prisma.SortOrder + fournisseur?: Prisma.SortOrderInput | Prisma.SortOrder + montant?: Prisma.SortOrder + devise?: Prisma.SortOrder + methode?: Prisma.SortOrderInput | Prisma.SortOrder + reference?: Prisma.SortOrderInput | Prisma.SortOrder + date_paiement?: Prisma.SortOrderInput | Prisma.SortOrder + releve?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.td_payableOrderByRelevanceInput +} + +export type td_payableWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.td_payableWhereInput | Prisma.td_payableWhereInput[] + OR?: Prisma.td_payableWhereInput[] + NOT?: Prisma.td_payableWhereInput | Prisma.td_payableWhereInput[] + ticket_id?: Prisma.IntFilter<"td_payable"> | number + invoice?: Prisma.StringFilter<"td_payable"> | string + date_invoice?: Prisma.StringFilter<"td_payable"> | string + fournisseur?: Prisma.StringNullableFilter<"td_payable"> | string | null + montant?: Prisma.DecimalFilter<"td_payable"> | runtime.Decimal | runtime.DecimalJsLike | number | string + devise?: Prisma.StringFilter<"td_payable"> | string + methode?: Prisma.StringNullableFilter<"td_payable"> | string | null + reference?: Prisma.StringNullableFilter<"td_payable"> | string | null + date_paiement?: Prisma.StringNullableFilter<"td_payable"> | string | null + releve?: Prisma.StringNullableFilter<"td_payable"> | string | null +}, "id"> + +export type td_payableOrderByWithAggregationInput = { + id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + invoice?: Prisma.SortOrder + date_invoice?: Prisma.SortOrder + fournisseur?: Prisma.SortOrderInput | Prisma.SortOrder + montant?: Prisma.SortOrder + devise?: Prisma.SortOrder + methode?: Prisma.SortOrderInput | Prisma.SortOrder + reference?: Prisma.SortOrderInput | Prisma.SortOrder + date_paiement?: Prisma.SortOrderInput | Prisma.SortOrder + releve?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.td_payableCountOrderByAggregateInput + _avg?: Prisma.td_payableAvgOrderByAggregateInput + _max?: Prisma.td_payableMaxOrderByAggregateInput + _min?: Prisma.td_payableMinOrderByAggregateInput + _sum?: Prisma.td_payableSumOrderByAggregateInput +} + +export type td_payableScalarWhereWithAggregatesInput = { + AND?: Prisma.td_payableScalarWhereWithAggregatesInput | Prisma.td_payableScalarWhereWithAggregatesInput[] + OR?: Prisma.td_payableScalarWhereWithAggregatesInput[] + NOT?: Prisma.td_payableScalarWhereWithAggregatesInput | Prisma.td_payableScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"td_payable"> | number + ticket_id?: Prisma.IntWithAggregatesFilter<"td_payable"> | number + invoice?: Prisma.StringWithAggregatesFilter<"td_payable"> | string + date_invoice?: Prisma.StringWithAggregatesFilter<"td_payable"> | string + fournisseur?: Prisma.StringNullableWithAggregatesFilter<"td_payable"> | string | null + montant?: Prisma.DecimalWithAggregatesFilter<"td_payable"> | runtime.Decimal | runtime.DecimalJsLike | number | string + devise?: Prisma.StringWithAggregatesFilter<"td_payable"> | string + methode?: Prisma.StringNullableWithAggregatesFilter<"td_payable"> | string | null + reference?: Prisma.StringNullableWithAggregatesFilter<"td_payable"> | string | null + date_paiement?: Prisma.StringNullableWithAggregatesFilter<"td_payable"> | string | null + releve?: Prisma.StringNullableWithAggregatesFilter<"td_payable"> | string | null +} + +export type td_payableCreateInput = { + ticket_id?: number + invoice?: string + date_invoice: string + fournisseur?: string | null + montant?: runtime.Decimal | runtime.DecimalJsLike | number | string + devise?: string + methode?: string | null + reference?: string | null + date_paiement?: string | null + releve?: string | null +} + +export type td_payableUncheckedCreateInput = { + id?: number + ticket_id?: number + invoice?: string + date_invoice: string + fournisseur?: string | null + montant?: runtime.Decimal | runtime.DecimalJsLike | number | string + devise?: string + methode?: string | null + reference?: string | null + date_paiement?: string | null + releve?: string | null +} + +export type td_payableUpdateInput = { + ticket_id?: Prisma.IntFieldUpdateOperationsInput | number + invoice?: Prisma.StringFieldUpdateOperationsInput | string + date_invoice?: Prisma.StringFieldUpdateOperationsInput | string + fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + montant?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + devise?: Prisma.StringFieldUpdateOperationsInput | string + methode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_paiement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + releve?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type td_payableUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + ticket_id?: Prisma.IntFieldUpdateOperationsInput | number + invoice?: Prisma.StringFieldUpdateOperationsInput | string + date_invoice?: Prisma.StringFieldUpdateOperationsInput | string + fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + montant?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + devise?: Prisma.StringFieldUpdateOperationsInput | string + methode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_paiement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + releve?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type td_payableCreateManyInput = { + id?: number + ticket_id?: number + invoice?: string + date_invoice: string + fournisseur?: string | null + montant?: runtime.Decimal | runtime.DecimalJsLike | number | string + devise?: string + methode?: string | null + reference?: string | null + date_paiement?: string | null + releve?: string | null +} + +export type td_payableUpdateManyMutationInput = { + ticket_id?: Prisma.IntFieldUpdateOperationsInput | number + invoice?: Prisma.StringFieldUpdateOperationsInput | string + date_invoice?: Prisma.StringFieldUpdateOperationsInput | string + fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + montant?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + devise?: Prisma.StringFieldUpdateOperationsInput | string + methode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_paiement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + releve?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type td_payableUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + ticket_id?: Prisma.IntFieldUpdateOperationsInput | number + invoice?: Prisma.StringFieldUpdateOperationsInput | string + date_invoice?: Prisma.StringFieldUpdateOperationsInput | string + fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + montant?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + devise?: Prisma.StringFieldUpdateOperationsInput | string + methode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_paiement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + releve?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type td_payableOrderByRelevanceInput = { + fields: Prisma.td_payableOrderByRelevanceFieldEnum | Prisma.td_payableOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type td_payableCountOrderByAggregateInput = { + id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + invoice?: Prisma.SortOrder + date_invoice?: Prisma.SortOrder + fournisseur?: Prisma.SortOrder + montant?: Prisma.SortOrder + devise?: Prisma.SortOrder + methode?: Prisma.SortOrder + reference?: Prisma.SortOrder + date_paiement?: Prisma.SortOrder + releve?: Prisma.SortOrder +} + +export type td_payableAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + montant?: Prisma.SortOrder +} + +export type td_payableMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + invoice?: Prisma.SortOrder + date_invoice?: Prisma.SortOrder + fournisseur?: Prisma.SortOrder + montant?: Prisma.SortOrder + devise?: Prisma.SortOrder + methode?: Prisma.SortOrder + reference?: Prisma.SortOrder + date_paiement?: Prisma.SortOrder + releve?: Prisma.SortOrder +} + +export type td_payableMinOrderByAggregateInput = { + id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + invoice?: Prisma.SortOrder + date_invoice?: Prisma.SortOrder + fournisseur?: Prisma.SortOrder + montant?: Prisma.SortOrder + devise?: Prisma.SortOrder + methode?: Prisma.SortOrder + reference?: Prisma.SortOrder + date_paiement?: Prisma.SortOrder + releve?: Prisma.SortOrder +} + +export type td_payableSumOrderByAggregateInput = { + id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + montant?: Prisma.SortOrder +} + + + +export type td_payableSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + ticket_id?: boolean + invoice?: boolean + date_invoice?: boolean + fournisseur?: boolean + montant?: boolean + devise?: boolean + methode?: boolean + reference?: boolean + date_paiement?: boolean + releve?: boolean +}, ExtArgs["result"]["td_payable"]> + + + +export type td_payableSelectScalar = { + id?: boolean + ticket_id?: boolean + invoice?: boolean + date_invoice?: boolean + fournisseur?: boolean + montant?: boolean + devise?: boolean + methode?: boolean + reference?: boolean + date_paiement?: boolean + releve?: boolean +} + +export type td_payableOmit = runtime.Types.Extensions.GetOmit<"id" | "ticket_id" | "invoice" | "date_invoice" | "fournisseur" | "montant" | "devise" | "methode" | "reference" | "date_paiement" | "releve", ExtArgs["result"]["td_payable"]> + +export type $td_payablePayload = { + name: "td_payable" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + ticket_id: number + invoice: string + date_invoice: string + fournisseur: string | null + montant: runtime.Decimal + devise: string + methode: string | null + reference: string | null + date_paiement: string | null + releve: string | null + }, ExtArgs["result"]["td_payable"]> + composites: {} +} + +export type td_payableGetPayload = runtime.Types.Result.GetResult + +export type td_payableCountArgs = + Omit & { + select?: Td_payableCountAggregateInputType | true + } + +export interface td_payableDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['td_payable'], meta: { name: 'td_payable' } } + /** + * Find zero or one Td_payable that matches the filter. + * @param {td_payableFindUniqueArgs} args - Arguments to find a Td_payable + * @example + * // Get one Td_payable + * const td_payable = await prisma.td_payable.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Td_payable that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {td_payableFindUniqueOrThrowArgs} args - Arguments to find a Td_payable + * @example + * // Get one Td_payable + * const td_payable = await prisma.td_payable.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Td_payable 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 {td_payableFindFirstArgs} args - Arguments to find a Td_payable + * @example + * // Get one Td_payable + * const td_payable = await prisma.td_payable.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Td_payable 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 {td_payableFindFirstOrThrowArgs} args - Arguments to find a Td_payable + * @example + * // Get one Td_payable + * const td_payable = await prisma.td_payable.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Td_payables 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 {td_payableFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Td_payables + * const td_payables = await prisma.td_payable.findMany() + * + * // Get first 10 Td_payables + * const td_payables = await prisma.td_payable.findMany({ take: 10 }) + * + * // Only select the `id` + * const td_payableWithIdOnly = await prisma.td_payable.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Td_payable. + * @param {td_payableCreateArgs} args - Arguments to create a Td_payable. + * @example + * // Create one Td_payable + * const Td_payable = await prisma.td_payable.create({ + * data: { + * // ... data to create a Td_payable + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Td_payables. + * @param {td_payableCreateManyArgs} args - Arguments to create many Td_payables. + * @example + * // Create many Td_payables + * const td_payable = await prisma.td_payable.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Td_payable. + * @param {td_payableDeleteArgs} args - Arguments to delete one Td_payable. + * @example + * // Delete one Td_payable + * const Td_payable = await prisma.td_payable.delete({ + * where: { + * // ... filter to delete one Td_payable + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Td_payable. + * @param {td_payableUpdateArgs} args - Arguments to update one Td_payable. + * @example + * // Update one Td_payable + * const td_payable = await prisma.td_payable.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Td_payables. + * @param {td_payableDeleteManyArgs} args - Arguments to filter Td_payables to delete. + * @example + * // Delete a few Td_payables + * const { count } = await prisma.td_payable.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Td_payables. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {td_payableUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Td_payables + * const td_payable = await prisma.td_payable.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Td_payable. + * @param {td_payableUpsertArgs} args - Arguments to update or create a Td_payable. + * @example + * // Update or create a Td_payable + * const td_payable = await prisma.td_payable.upsert({ + * create: { + * // ... data to create a Td_payable + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Td_payable we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Td_payables. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {td_payableCountArgs} args - Arguments to filter Td_payables to count. + * @example + * // Count the number of Td_payables + * const count = await prisma.td_payable.count({ + * where: { + * // ... the filter for the Td_payables 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 Td_payable. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Td_payableAggregateArgs} 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 Td_payable. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {td_payableGroupByArgs} 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 td_payableGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: td_payableGroupByArgs['orderBy'] } + : { orderBy?: td_payableGroupByArgs['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 ? GetTd_payableGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the td_payable model + */ +readonly fields: td_payableFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for td_payable. + * 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__td_payableClient 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 td_payable model + */ +export interface td_payableFieldRefs { + readonly id: Prisma.FieldRef<"td_payable", 'Int'> + readonly ticket_id: Prisma.FieldRef<"td_payable", 'Int'> + readonly invoice: Prisma.FieldRef<"td_payable", 'String'> + readonly date_invoice: Prisma.FieldRef<"td_payable", 'String'> + readonly fournisseur: Prisma.FieldRef<"td_payable", 'String'> + readonly montant: Prisma.FieldRef<"td_payable", 'Decimal'> + readonly devise: Prisma.FieldRef<"td_payable", 'String'> + readonly methode: Prisma.FieldRef<"td_payable", 'String'> + readonly reference: Prisma.FieldRef<"td_payable", 'String'> + readonly date_paiement: Prisma.FieldRef<"td_payable", 'String'> + readonly releve: Prisma.FieldRef<"td_payable", 'String'> +} + + +// Custom InputTypes +/** + * td_payable findUnique + */ +export type td_payableFindUniqueArgs = { + /** + * Select specific fields to fetch from the td_payable + */ + select?: Prisma.td_payableSelect | null + /** + * Omit specific fields from the td_payable + */ + omit?: Prisma.td_payableOmit | null + /** + * Filter, which td_payable to fetch. + */ + where: Prisma.td_payableWhereUniqueInput +} + +/** + * td_payable findUniqueOrThrow + */ +export type td_payableFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the td_payable + */ + select?: Prisma.td_payableSelect | null + /** + * Omit specific fields from the td_payable + */ + omit?: Prisma.td_payableOmit | null + /** + * Filter, which td_payable to fetch. + */ + where: Prisma.td_payableWhereUniqueInput +} + +/** + * td_payable findFirst + */ +export type td_payableFindFirstArgs = { + /** + * Select specific fields to fetch from the td_payable + */ + select?: Prisma.td_payableSelect | null + /** + * Omit specific fields from the td_payable + */ + omit?: Prisma.td_payableOmit | null + /** + * Filter, which td_payable to fetch. + */ + where?: Prisma.td_payableWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of td_payables to fetch. + */ + orderBy?: Prisma.td_payableOrderByWithRelationInput | Prisma.td_payableOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for td_payables. + */ + cursor?: Prisma.td_payableWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` td_payables 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` td_payables. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of td_payables. + */ + distinct?: Prisma.Td_payableScalarFieldEnum | Prisma.Td_payableScalarFieldEnum[] +} + +/** + * td_payable findFirstOrThrow + */ +export type td_payableFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the td_payable + */ + select?: Prisma.td_payableSelect | null + /** + * Omit specific fields from the td_payable + */ + omit?: Prisma.td_payableOmit | null + /** + * Filter, which td_payable to fetch. + */ + where?: Prisma.td_payableWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of td_payables to fetch. + */ + orderBy?: Prisma.td_payableOrderByWithRelationInput | Prisma.td_payableOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for td_payables. + */ + cursor?: Prisma.td_payableWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` td_payables 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` td_payables. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of td_payables. + */ + distinct?: Prisma.Td_payableScalarFieldEnum | Prisma.Td_payableScalarFieldEnum[] +} + +/** + * td_payable findMany + */ +export type td_payableFindManyArgs = { + /** + * Select specific fields to fetch from the td_payable + */ + select?: Prisma.td_payableSelect | null + /** + * Omit specific fields from the td_payable + */ + omit?: Prisma.td_payableOmit | null + /** + * Filter, which td_payables to fetch. + */ + where?: Prisma.td_payableWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of td_payables to fetch. + */ + orderBy?: Prisma.td_payableOrderByWithRelationInput | Prisma.td_payableOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing td_payables. + */ + cursor?: Prisma.td_payableWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` td_payables 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` td_payables. + */ + skip?: number + distinct?: Prisma.Td_payableScalarFieldEnum | Prisma.Td_payableScalarFieldEnum[] +} + +/** + * td_payable create + */ +export type td_payableCreateArgs = { + /** + * Select specific fields to fetch from the td_payable + */ + select?: Prisma.td_payableSelect | null + /** + * Omit specific fields from the td_payable + */ + omit?: Prisma.td_payableOmit | null + /** + * The data needed to create a td_payable. + */ + data: Prisma.XOR +} + +/** + * td_payable createMany + */ +export type td_payableCreateManyArgs = { + /** + * The data used to create many td_payables. + */ + data: Prisma.td_payableCreateManyInput | Prisma.td_payableCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * td_payable update + */ +export type td_payableUpdateArgs = { + /** + * Select specific fields to fetch from the td_payable + */ + select?: Prisma.td_payableSelect | null + /** + * Omit specific fields from the td_payable + */ + omit?: Prisma.td_payableOmit | null + /** + * The data needed to update a td_payable. + */ + data: Prisma.XOR + /** + * Choose, which td_payable to update. + */ + where: Prisma.td_payableWhereUniqueInput +} + +/** + * td_payable updateMany + */ +export type td_payableUpdateManyArgs = { + /** + * The data used to update td_payables. + */ + data: Prisma.XOR + /** + * Filter which td_payables to update + */ + where?: Prisma.td_payableWhereInput + /** + * Limit how many td_payables to update. + */ + limit?: number +} + +/** + * td_payable upsert + */ +export type td_payableUpsertArgs = { + /** + * Select specific fields to fetch from the td_payable + */ + select?: Prisma.td_payableSelect | null + /** + * Omit specific fields from the td_payable + */ + omit?: Prisma.td_payableOmit | null + /** + * The filter to search for the td_payable to update in case it exists. + */ + where: Prisma.td_payableWhereUniqueInput + /** + * In case the td_payable found by the `where` argument doesn't exist, create a new td_payable with this data. + */ + create: Prisma.XOR + /** + * In case the td_payable was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * td_payable delete + */ +export type td_payableDeleteArgs = { + /** + * Select specific fields to fetch from the td_payable + */ + select?: Prisma.td_payableSelect | null + /** + * Omit specific fields from the td_payable + */ + omit?: Prisma.td_payableOmit | null + /** + * Filter which td_payable to delete. + */ + where: Prisma.td_payableWhereUniqueInput +} + +/** + * td_payable deleteMany + */ +export type td_payableDeleteManyArgs = { + /** + * Filter which td_payables to delete + */ + where?: Prisma.td_payableWhereInput + /** + * Limit how many td_payables to delete. + */ + limit?: number +} + +/** + * td_payable without action + */ +export type td_payableDefaultArgs = { + /** + * Select specific fields to fetch from the td_payable + */ + select?: Prisma.td_payableSelect | null + /** + * Omit specific fields from the td_payable + */ + omit?: Prisma.td_payableOmit | null +} diff --git a/prisma/generated/mariadb/models/tech_dispo.ts b/prisma/generated/mariadb/models/tech_dispo.ts new file mode 100644 index 0000000..89eb91d --- /dev/null +++ b/prisma/generated/mariadb/models/tech_dispo.ts @@ -0,0 +1,1032 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `tech_dispo` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model tech_dispo + * + */ +export type tech_dispoModel = runtime.Types.Result.DefaultSelection + +export type AggregateTech_dispo = { + _count: Tech_dispoCountAggregateOutputType | null + _avg: Tech_dispoAvgAggregateOutputType | null + _sum: Tech_dispoSumAggregateOutputType | null + _min: Tech_dispoMinAggregateOutputType | null + _max: Tech_dispoMaxAggregateOutputType | null +} + +export type Tech_dispoAvgAggregateOutputType = { + id: number | null + date: number | null + tech: number | null +} + +export type Tech_dispoSumAggregateOutputType = { + id: number | null + date: bigint | null + tech: number | null +} + +export type Tech_dispoMinAggregateOutputType = { + id: number | null + date: bigint | null + tech: number | null +} + +export type Tech_dispoMaxAggregateOutputType = { + id: number | null + date: bigint | null + tech: number | null +} + +export type Tech_dispoCountAggregateOutputType = { + id: number + date: number + tech: number + _all: number +} + + +export type Tech_dispoAvgAggregateInputType = { + id?: true + date?: true + tech?: true +} + +export type Tech_dispoSumAggregateInputType = { + id?: true + date?: true + tech?: true +} + +export type Tech_dispoMinAggregateInputType = { + id?: true + date?: true + tech?: true +} + +export type Tech_dispoMaxAggregateInputType = { + id?: true + date?: true + tech?: true +} + +export type Tech_dispoCountAggregateInputType = { + id?: true + date?: true + tech?: true + _all?: true +} + +export type Tech_dispoAggregateArgs = { + /** + * Filter which tech_dispo to aggregate. + */ + where?: Prisma.tech_dispoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tech_dispos to fetch. + */ + orderBy?: Prisma.tech_dispoOrderByWithRelationInput | Prisma.tech_dispoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.tech_dispoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tech_dispos 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` tech_dispos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned tech_dispos + **/ + _count?: true | Tech_dispoCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Tech_dispoAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Tech_dispoSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Tech_dispoMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Tech_dispoMaxAggregateInputType +} + +export type GetTech_dispoAggregateType = { + [P in keyof T & keyof AggregateTech_dispo]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type tech_dispoGroupByArgs = { + where?: Prisma.tech_dispoWhereInput + orderBy?: Prisma.tech_dispoOrderByWithAggregationInput | Prisma.tech_dispoOrderByWithAggregationInput[] + by: Prisma.Tech_dispoScalarFieldEnum[] | Prisma.Tech_dispoScalarFieldEnum + having?: Prisma.tech_dispoScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Tech_dispoCountAggregateInputType | true + _avg?: Tech_dispoAvgAggregateInputType + _sum?: Tech_dispoSumAggregateInputType + _min?: Tech_dispoMinAggregateInputType + _max?: Tech_dispoMaxAggregateInputType +} + +export type Tech_dispoGroupByOutputType = { + id: number + date: bigint + tech: number | null + _count: Tech_dispoCountAggregateOutputType | null + _avg: Tech_dispoAvgAggregateOutputType | null + _sum: Tech_dispoSumAggregateOutputType | null + _min: Tech_dispoMinAggregateOutputType | null + _max: Tech_dispoMaxAggregateOutputType | null +} + +type GetTech_dispoGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Tech_dispoGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type tech_dispoWhereInput = { + AND?: Prisma.tech_dispoWhereInput | Prisma.tech_dispoWhereInput[] + OR?: Prisma.tech_dispoWhereInput[] + NOT?: Prisma.tech_dispoWhereInput | Prisma.tech_dispoWhereInput[] + id?: Prisma.IntFilter<"tech_dispo"> | number + date?: Prisma.BigIntFilter<"tech_dispo"> | bigint | number + tech?: Prisma.IntNullableFilter<"tech_dispo"> | number | null +} + +export type tech_dispoOrderByWithRelationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + tech?: Prisma.SortOrderInput | Prisma.SortOrder +} + +export type tech_dispoWhereUniqueInput = Prisma.AtLeast<{ + id?: number + date?: bigint | number + AND?: Prisma.tech_dispoWhereInput | Prisma.tech_dispoWhereInput[] + OR?: Prisma.tech_dispoWhereInput[] + NOT?: Prisma.tech_dispoWhereInput | Prisma.tech_dispoWhereInput[] + tech?: Prisma.IntNullableFilter<"tech_dispo"> | number | null +}, "id" | "date"> + +export type tech_dispoOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + tech?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.tech_dispoCountOrderByAggregateInput + _avg?: Prisma.tech_dispoAvgOrderByAggregateInput + _max?: Prisma.tech_dispoMaxOrderByAggregateInput + _min?: Prisma.tech_dispoMinOrderByAggregateInput + _sum?: Prisma.tech_dispoSumOrderByAggregateInput +} + +export type tech_dispoScalarWhereWithAggregatesInput = { + AND?: Prisma.tech_dispoScalarWhereWithAggregatesInput | Prisma.tech_dispoScalarWhereWithAggregatesInput[] + OR?: Prisma.tech_dispoScalarWhereWithAggregatesInput[] + NOT?: Prisma.tech_dispoScalarWhereWithAggregatesInput | Prisma.tech_dispoScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"tech_dispo"> | number + date?: Prisma.BigIntWithAggregatesFilter<"tech_dispo"> | bigint | number + tech?: Prisma.IntNullableWithAggregatesFilter<"tech_dispo"> | number | null +} + +export type tech_dispoCreateInput = { + date: bigint | number + tech?: number | null +} + +export type tech_dispoUncheckedCreateInput = { + id?: number + date: bigint | number + tech?: number | null +} + +export type tech_dispoUpdateInput = { + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + tech?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type tech_dispoUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + tech?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type tech_dispoCreateManyInput = { + id?: number + date: bigint | number + tech?: number | null +} + +export type tech_dispoUpdateManyMutationInput = { + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + tech?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type tech_dispoUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + tech?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type tech_dispoCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + tech?: Prisma.SortOrder +} + +export type tech_dispoAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + tech?: Prisma.SortOrder +} + +export type tech_dispoMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + tech?: Prisma.SortOrder +} + +export type tech_dispoMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + tech?: Prisma.SortOrder +} + +export type tech_dispoSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + tech?: Prisma.SortOrder +} + + + +export type tech_dispoSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date?: boolean + tech?: boolean +}, ExtArgs["result"]["tech_dispo"]> + + + +export type tech_dispoSelectScalar = { + id?: boolean + date?: boolean + tech?: boolean +} + +export type tech_dispoOmit = runtime.Types.Extensions.GetOmit<"id" | "date" | "tech", ExtArgs["result"]["tech_dispo"]> + +export type $tech_dispoPayload = { + name: "tech_dispo" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + date: bigint + tech: number | null + }, ExtArgs["result"]["tech_dispo"]> + composites: {} +} + +export type tech_dispoGetPayload = runtime.Types.Result.GetResult + +export type tech_dispoCountArgs = + Omit & { + select?: Tech_dispoCountAggregateInputType | true + } + +export interface tech_dispoDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['tech_dispo'], meta: { name: 'tech_dispo' } } + /** + * Find zero or one Tech_dispo that matches the filter. + * @param {tech_dispoFindUniqueArgs} args - Arguments to find a Tech_dispo + * @example + * // Get one Tech_dispo + * const tech_dispo = await prisma.tech_dispo.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__tech_dispoClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Tech_dispo that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {tech_dispoFindUniqueOrThrowArgs} args - Arguments to find a Tech_dispo + * @example + * // Get one Tech_dispo + * const tech_dispo = await prisma.tech_dispo.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__tech_dispoClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tech_dispo 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 {tech_dispoFindFirstArgs} args - Arguments to find a Tech_dispo + * @example + * // Get one Tech_dispo + * const tech_dispo = await prisma.tech_dispo.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__tech_dispoClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tech_dispo 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 {tech_dispoFindFirstOrThrowArgs} args - Arguments to find a Tech_dispo + * @example + * // Get one Tech_dispo + * const tech_dispo = await prisma.tech_dispo.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__tech_dispoClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Tech_dispos 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 {tech_dispoFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Tech_dispos + * const tech_dispos = await prisma.tech_dispo.findMany() + * + * // Get first 10 Tech_dispos + * const tech_dispos = await prisma.tech_dispo.findMany({ take: 10 }) + * + * // Only select the `id` + * const tech_dispoWithIdOnly = await prisma.tech_dispo.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Tech_dispo. + * @param {tech_dispoCreateArgs} args - Arguments to create a Tech_dispo. + * @example + * // Create one Tech_dispo + * const Tech_dispo = await prisma.tech_dispo.create({ + * data: { + * // ... data to create a Tech_dispo + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__tech_dispoClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Tech_dispos. + * @param {tech_dispoCreateManyArgs} args - Arguments to create many Tech_dispos. + * @example + * // Create many Tech_dispos + * const tech_dispo = await prisma.tech_dispo.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Tech_dispo. + * @param {tech_dispoDeleteArgs} args - Arguments to delete one Tech_dispo. + * @example + * // Delete one Tech_dispo + * const Tech_dispo = await prisma.tech_dispo.delete({ + * where: { + * // ... filter to delete one Tech_dispo + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__tech_dispoClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Tech_dispo. + * @param {tech_dispoUpdateArgs} args - Arguments to update one Tech_dispo. + * @example + * // Update one Tech_dispo + * const tech_dispo = await prisma.tech_dispo.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__tech_dispoClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Tech_dispos. + * @param {tech_dispoDeleteManyArgs} args - Arguments to filter Tech_dispos to delete. + * @example + * // Delete a few Tech_dispos + * const { count } = await prisma.tech_dispo.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Tech_dispos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tech_dispoUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Tech_dispos + * const tech_dispo = await prisma.tech_dispo.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Tech_dispo. + * @param {tech_dispoUpsertArgs} args - Arguments to update or create a Tech_dispo. + * @example + * // Update or create a Tech_dispo + * const tech_dispo = await prisma.tech_dispo.upsert({ + * create: { + * // ... data to create a Tech_dispo + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Tech_dispo we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__tech_dispoClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Tech_dispos. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tech_dispoCountArgs} args - Arguments to filter Tech_dispos to count. + * @example + * // Count the number of Tech_dispos + * const count = await prisma.tech_dispo.count({ + * where: { + * // ... the filter for the Tech_dispos 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 Tech_dispo. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Tech_dispoAggregateArgs} 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 Tech_dispo. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tech_dispoGroupByArgs} 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 tech_dispoGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: tech_dispoGroupByArgs['orderBy'] } + : { orderBy?: tech_dispoGroupByArgs['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 ? GetTech_dispoGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the tech_dispo model + */ +readonly fields: tech_dispoFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for tech_dispo. + * 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__tech_dispoClient 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 tech_dispo model + */ +export interface tech_dispoFieldRefs { + readonly id: Prisma.FieldRef<"tech_dispo", 'Int'> + readonly date: Prisma.FieldRef<"tech_dispo", 'BigInt'> + readonly tech: Prisma.FieldRef<"tech_dispo", 'Int'> +} + + +// Custom InputTypes +/** + * tech_dispo findUnique + */ +export type tech_dispoFindUniqueArgs = { + /** + * Select specific fields to fetch from the tech_dispo + */ + select?: Prisma.tech_dispoSelect | null + /** + * Omit specific fields from the tech_dispo + */ + omit?: Prisma.tech_dispoOmit | null + /** + * Filter, which tech_dispo to fetch. + */ + where: Prisma.tech_dispoWhereUniqueInput +} + +/** + * tech_dispo findUniqueOrThrow + */ +export type tech_dispoFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the tech_dispo + */ + select?: Prisma.tech_dispoSelect | null + /** + * Omit specific fields from the tech_dispo + */ + omit?: Prisma.tech_dispoOmit | null + /** + * Filter, which tech_dispo to fetch. + */ + where: Prisma.tech_dispoWhereUniqueInput +} + +/** + * tech_dispo findFirst + */ +export type tech_dispoFindFirstArgs = { + /** + * Select specific fields to fetch from the tech_dispo + */ + select?: Prisma.tech_dispoSelect | null + /** + * Omit specific fields from the tech_dispo + */ + omit?: Prisma.tech_dispoOmit | null + /** + * Filter, which tech_dispo to fetch. + */ + where?: Prisma.tech_dispoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tech_dispos to fetch. + */ + orderBy?: Prisma.tech_dispoOrderByWithRelationInput | Prisma.tech_dispoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tech_dispos. + */ + cursor?: Prisma.tech_dispoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tech_dispos 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` tech_dispos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tech_dispos. + */ + distinct?: Prisma.Tech_dispoScalarFieldEnum | Prisma.Tech_dispoScalarFieldEnum[] +} + +/** + * tech_dispo findFirstOrThrow + */ +export type tech_dispoFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the tech_dispo + */ + select?: Prisma.tech_dispoSelect | null + /** + * Omit specific fields from the tech_dispo + */ + omit?: Prisma.tech_dispoOmit | null + /** + * Filter, which tech_dispo to fetch. + */ + where?: Prisma.tech_dispoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tech_dispos to fetch. + */ + orderBy?: Prisma.tech_dispoOrderByWithRelationInput | Prisma.tech_dispoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tech_dispos. + */ + cursor?: Prisma.tech_dispoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tech_dispos 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` tech_dispos. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tech_dispos. + */ + distinct?: Prisma.Tech_dispoScalarFieldEnum | Prisma.Tech_dispoScalarFieldEnum[] +} + +/** + * tech_dispo findMany + */ +export type tech_dispoFindManyArgs = { + /** + * Select specific fields to fetch from the tech_dispo + */ + select?: Prisma.tech_dispoSelect | null + /** + * Omit specific fields from the tech_dispo + */ + omit?: Prisma.tech_dispoOmit | null + /** + * Filter, which tech_dispos to fetch. + */ + where?: Prisma.tech_dispoWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tech_dispos to fetch. + */ + orderBy?: Prisma.tech_dispoOrderByWithRelationInput | Prisma.tech_dispoOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing tech_dispos. + */ + cursor?: Prisma.tech_dispoWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tech_dispos 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` tech_dispos. + */ + skip?: number + distinct?: Prisma.Tech_dispoScalarFieldEnum | Prisma.Tech_dispoScalarFieldEnum[] +} + +/** + * tech_dispo create + */ +export type tech_dispoCreateArgs = { + /** + * Select specific fields to fetch from the tech_dispo + */ + select?: Prisma.tech_dispoSelect | null + /** + * Omit specific fields from the tech_dispo + */ + omit?: Prisma.tech_dispoOmit | null + /** + * The data needed to create a tech_dispo. + */ + data: Prisma.XOR +} + +/** + * tech_dispo createMany + */ +export type tech_dispoCreateManyArgs = { + /** + * The data used to create many tech_dispos. + */ + data: Prisma.tech_dispoCreateManyInput | Prisma.tech_dispoCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * tech_dispo update + */ +export type tech_dispoUpdateArgs = { + /** + * Select specific fields to fetch from the tech_dispo + */ + select?: Prisma.tech_dispoSelect | null + /** + * Omit specific fields from the tech_dispo + */ + omit?: Prisma.tech_dispoOmit | null + /** + * The data needed to update a tech_dispo. + */ + data: Prisma.XOR + /** + * Choose, which tech_dispo to update. + */ + where: Prisma.tech_dispoWhereUniqueInput +} + +/** + * tech_dispo updateMany + */ +export type tech_dispoUpdateManyArgs = { + /** + * The data used to update tech_dispos. + */ + data: Prisma.XOR + /** + * Filter which tech_dispos to update + */ + where?: Prisma.tech_dispoWhereInput + /** + * Limit how many tech_dispos to update. + */ + limit?: number +} + +/** + * tech_dispo upsert + */ +export type tech_dispoUpsertArgs = { + /** + * Select specific fields to fetch from the tech_dispo + */ + select?: Prisma.tech_dispoSelect | null + /** + * Omit specific fields from the tech_dispo + */ + omit?: Prisma.tech_dispoOmit | null + /** + * The filter to search for the tech_dispo to update in case it exists. + */ + where: Prisma.tech_dispoWhereUniqueInput + /** + * In case the tech_dispo found by the `where` argument doesn't exist, create a new tech_dispo with this data. + */ + create: Prisma.XOR + /** + * In case the tech_dispo was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * tech_dispo delete + */ +export type tech_dispoDeleteArgs = { + /** + * Select specific fields to fetch from the tech_dispo + */ + select?: Prisma.tech_dispoSelect | null + /** + * Omit specific fields from the tech_dispo + */ + omit?: Prisma.tech_dispoOmit | null + /** + * Filter which tech_dispo to delete. + */ + where: Prisma.tech_dispoWhereUniqueInput +} + +/** + * tech_dispo deleteMany + */ +export type tech_dispoDeleteManyArgs = { + /** + * Filter which tech_dispos to delete + */ + where?: Prisma.tech_dispoWhereInput + /** + * Limit how many tech_dispos to delete. + */ + limit?: number +} + +/** + * tech_dispo without action + */ +export type tech_dispoDefaultArgs = { + /** + * Select specific fields to fetch from the tech_dispo + */ + select?: Prisma.tech_dispoSelect | null + /** + * Omit specific fields from the tech_dispo + */ + omit?: Prisma.tech_dispoOmit | null +} diff --git a/prisma/generated/mariadb/models/tele_carte.ts b/prisma/generated/mariadb/models/tele_carte.ts new file mode 100644 index 0000000..90bb952 --- /dev/null +++ b/prisma/generated/mariadb/models/tele_carte.ts @@ -0,0 +1,1065 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `tele_carte` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model tele_carte + * + */ +export type tele_carteModel = runtime.Types.Result.DefaultSelection + +export type AggregateTele_carte = { + _count: Tele_carteCountAggregateOutputType | null + _avg: Tele_carteAvgAggregateOutputType | null + _sum: Tele_carteSumAggregateOutputType | null + _min: Tele_carteMinAggregateOutputType | null + _max: Tele_carteMaxAggregateOutputType | null +} + +export type Tele_carteAvgAggregateOutputType = { + id: number | null + delivery_id: number | null + service_id: number | null +} + +export type Tele_carteSumAggregateOutputType = { + id: number | null + delivery_id: number | null + service_id: number | null +} + +export type Tele_carteMinAggregateOutputType = { + id: number | null + delivery_id: number | null + service_id: number | null + channels: string | null +} + +export type Tele_carteMaxAggregateOutputType = { + id: number | null + delivery_id: number | null + service_id: number | null + channels: string | null +} + +export type Tele_carteCountAggregateOutputType = { + id: number + delivery_id: number + service_id: number + channels: number + _all: number +} + + +export type Tele_carteAvgAggregateInputType = { + id?: true + delivery_id?: true + service_id?: true +} + +export type Tele_carteSumAggregateInputType = { + id?: true + delivery_id?: true + service_id?: true +} + +export type Tele_carteMinAggregateInputType = { + id?: true + delivery_id?: true + service_id?: true + channels?: true +} + +export type Tele_carteMaxAggregateInputType = { + id?: true + delivery_id?: true + service_id?: true + channels?: true +} + +export type Tele_carteCountAggregateInputType = { + id?: true + delivery_id?: true + service_id?: true + channels?: true + _all?: true +} + +export type Tele_carteAggregateArgs = { + /** + * Filter which tele_carte to aggregate. + */ + where?: Prisma.tele_carteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_cartes to fetch. + */ + orderBy?: Prisma.tele_carteOrderByWithRelationInput | Prisma.tele_carteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.tele_carteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_cartes 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` tele_cartes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned tele_cartes + **/ + _count?: true | Tele_carteCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Tele_carteAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Tele_carteSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Tele_carteMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Tele_carteMaxAggregateInputType +} + +export type GetTele_carteAggregateType = { + [P in keyof T & keyof AggregateTele_carte]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type tele_carteGroupByArgs = { + where?: Prisma.tele_carteWhereInput + orderBy?: Prisma.tele_carteOrderByWithAggregationInput | Prisma.tele_carteOrderByWithAggregationInput[] + by: Prisma.Tele_carteScalarFieldEnum[] | Prisma.Tele_carteScalarFieldEnum + having?: Prisma.tele_carteScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Tele_carteCountAggregateInputType | true + _avg?: Tele_carteAvgAggregateInputType + _sum?: Tele_carteSumAggregateInputType + _min?: Tele_carteMinAggregateInputType + _max?: Tele_carteMaxAggregateInputType +} + +export type Tele_carteGroupByOutputType = { + id: number + delivery_id: number + service_id: number + channels: string + _count: Tele_carteCountAggregateOutputType | null + _avg: Tele_carteAvgAggregateOutputType | null + _sum: Tele_carteSumAggregateOutputType | null + _min: Tele_carteMinAggregateOutputType | null + _max: Tele_carteMaxAggregateOutputType | null +} + +type GetTele_carteGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Tele_carteGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type tele_carteWhereInput = { + AND?: Prisma.tele_carteWhereInput | Prisma.tele_carteWhereInput[] + OR?: Prisma.tele_carteWhereInput[] + NOT?: Prisma.tele_carteWhereInput | Prisma.tele_carteWhereInput[] + id?: Prisma.IntFilter<"tele_carte"> | number + delivery_id?: Prisma.IntFilter<"tele_carte"> | number + service_id?: Prisma.IntFilter<"tele_carte"> | number + channels?: Prisma.StringFilter<"tele_carte"> | string +} + +export type tele_carteOrderByWithRelationInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + channels?: Prisma.SortOrder + _relevance?: Prisma.tele_carteOrderByRelevanceInput +} + +export type tele_carteWhereUniqueInput = Prisma.AtLeast<{ + id?: number + delivery_id?: number + AND?: Prisma.tele_carteWhereInput | Prisma.tele_carteWhereInput[] + OR?: Prisma.tele_carteWhereInput[] + NOT?: Prisma.tele_carteWhereInput | Prisma.tele_carteWhereInput[] + service_id?: Prisma.IntFilter<"tele_carte"> | number + channels?: Prisma.StringFilter<"tele_carte"> | string +}, "id" | "delivery_id"> + +export type tele_carteOrderByWithAggregationInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + channels?: Prisma.SortOrder + _count?: Prisma.tele_carteCountOrderByAggregateInput + _avg?: Prisma.tele_carteAvgOrderByAggregateInput + _max?: Prisma.tele_carteMaxOrderByAggregateInput + _min?: Prisma.tele_carteMinOrderByAggregateInput + _sum?: Prisma.tele_carteSumOrderByAggregateInput +} + +export type tele_carteScalarWhereWithAggregatesInput = { + AND?: Prisma.tele_carteScalarWhereWithAggregatesInput | Prisma.tele_carteScalarWhereWithAggregatesInput[] + OR?: Prisma.tele_carteScalarWhereWithAggregatesInput[] + NOT?: Prisma.tele_carteScalarWhereWithAggregatesInput | Prisma.tele_carteScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"tele_carte"> | number + delivery_id?: Prisma.IntWithAggregatesFilter<"tele_carte"> | number + service_id?: Prisma.IntWithAggregatesFilter<"tele_carte"> | number + channels?: Prisma.StringWithAggregatesFilter<"tele_carte"> | string +} + +export type tele_carteCreateInput = { + delivery_id?: number + service_id: number + channels: string +} + +export type tele_carteUncheckedCreateInput = { + id?: number + delivery_id?: number + service_id: number + channels: string +} + +export type tele_carteUpdateInput = { + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + channels?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_carteUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + channels?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_carteCreateManyInput = { + id?: number + delivery_id?: number + service_id: number + channels: string +} + +export type tele_carteUpdateManyMutationInput = { + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + channels?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_carteUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + channels?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_carteOrderByRelevanceInput = { + fields: Prisma.tele_carteOrderByRelevanceFieldEnum | Prisma.tele_carteOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type tele_carteCountOrderByAggregateInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + channels?: Prisma.SortOrder +} + +export type tele_carteAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder +} + +export type tele_carteMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + channels?: Prisma.SortOrder +} + +export type tele_carteMinOrderByAggregateInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + channels?: Prisma.SortOrder +} + +export type tele_carteSumOrderByAggregateInput = { + id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + service_id?: Prisma.SortOrder +} + + + +export type tele_carteSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + delivery_id?: boolean + service_id?: boolean + channels?: boolean +}, ExtArgs["result"]["tele_carte"]> + + + +export type tele_carteSelectScalar = { + id?: boolean + delivery_id?: boolean + service_id?: boolean + channels?: boolean +} + +export type tele_carteOmit = runtime.Types.Extensions.GetOmit<"id" | "delivery_id" | "service_id" | "channels", ExtArgs["result"]["tele_carte"]> + +export type $tele_cartePayload = { + name: "tele_carte" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + delivery_id: number + service_id: number + channels: string + }, ExtArgs["result"]["tele_carte"]> + composites: {} +} + +export type tele_carteGetPayload = runtime.Types.Result.GetResult + +export type tele_carteCountArgs = + Omit & { + select?: Tele_carteCountAggregateInputType | true + } + +export interface tele_carteDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['tele_carte'], meta: { name: 'tele_carte' } } + /** + * Find zero or one Tele_carte that matches the filter. + * @param {tele_carteFindUniqueArgs} args - Arguments to find a Tele_carte + * @example + * // Get one Tele_carte + * const tele_carte = await prisma.tele_carte.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__tele_carteClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Tele_carte that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {tele_carteFindUniqueOrThrowArgs} args - Arguments to find a Tele_carte + * @example + * // Get one Tele_carte + * const tele_carte = await prisma.tele_carte.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__tele_carteClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_carte 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 {tele_carteFindFirstArgs} args - Arguments to find a Tele_carte + * @example + * // Get one Tele_carte + * const tele_carte = await prisma.tele_carte.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_carteClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_carte 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 {tele_carteFindFirstOrThrowArgs} args - Arguments to find a Tele_carte + * @example + * // Get one Tele_carte + * const tele_carte = await prisma.tele_carte.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_carteClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Tele_cartes 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 {tele_carteFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Tele_cartes + * const tele_cartes = await prisma.tele_carte.findMany() + * + * // Get first 10 Tele_cartes + * const tele_cartes = await prisma.tele_carte.findMany({ take: 10 }) + * + * // Only select the `id` + * const tele_carteWithIdOnly = await prisma.tele_carte.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Tele_carte. + * @param {tele_carteCreateArgs} args - Arguments to create a Tele_carte. + * @example + * // Create one Tele_carte + * const Tele_carte = await prisma.tele_carte.create({ + * data: { + * // ... data to create a Tele_carte + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__tele_carteClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Tele_cartes. + * @param {tele_carteCreateManyArgs} args - Arguments to create many Tele_cartes. + * @example + * // Create many Tele_cartes + * const tele_carte = await prisma.tele_carte.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Tele_carte. + * @param {tele_carteDeleteArgs} args - Arguments to delete one Tele_carte. + * @example + * // Delete one Tele_carte + * const Tele_carte = await prisma.tele_carte.delete({ + * where: { + * // ... filter to delete one Tele_carte + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__tele_carteClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Tele_carte. + * @param {tele_carteUpdateArgs} args - Arguments to update one Tele_carte. + * @example + * // Update one Tele_carte + * const tele_carte = await prisma.tele_carte.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__tele_carteClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Tele_cartes. + * @param {tele_carteDeleteManyArgs} args - Arguments to filter Tele_cartes to delete. + * @example + * // Delete a few Tele_cartes + * const { count } = await prisma.tele_carte.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Tele_cartes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_carteUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Tele_cartes + * const tele_carte = await prisma.tele_carte.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Tele_carte. + * @param {tele_carteUpsertArgs} args - Arguments to update or create a Tele_carte. + * @example + * // Update or create a Tele_carte + * const tele_carte = await prisma.tele_carte.upsert({ + * create: { + * // ... data to create a Tele_carte + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Tele_carte we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__tele_carteClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Tele_cartes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_carteCountArgs} args - Arguments to filter Tele_cartes to count. + * @example + * // Count the number of Tele_cartes + * const count = await prisma.tele_carte.count({ + * where: { + * // ... the filter for the Tele_cartes 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 Tele_carte. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Tele_carteAggregateArgs} 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 Tele_carte. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_carteGroupByArgs} 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 tele_carteGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: tele_carteGroupByArgs['orderBy'] } + : { orderBy?: tele_carteGroupByArgs['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 ? GetTele_carteGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the tele_carte model + */ +readonly fields: tele_carteFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for tele_carte. + * 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__tele_carteClient 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 tele_carte model + */ +export interface tele_carteFieldRefs { + readonly id: Prisma.FieldRef<"tele_carte", 'Int'> + readonly delivery_id: Prisma.FieldRef<"tele_carte", 'Int'> + readonly service_id: Prisma.FieldRef<"tele_carte", 'Int'> + readonly channels: Prisma.FieldRef<"tele_carte", 'String'> +} + + +// Custom InputTypes +/** + * tele_carte findUnique + */ +export type tele_carteFindUniqueArgs = { + /** + * Select specific fields to fetch from the tele_carte + */ + select?: Prisma.tele_carteSelect | null + /** + * Omit specific fields from the tele_carte + */ + omit?: Prisma.tele_carteOmit | null + /** + * Filter, which tele_carte to fetch. + */ + where: Prisma.tele_carteWhereUniqueInput +} + +/** + * tele_carte findUniqueOrThrow + */ +export type tele_carteFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_carte + */ + select?: Prisma.tele_carteSelect | null + /** + * Omit specific fields from the tele_carte + */ + omit?: Prisma.tele_carteOmit | null + /** + * Filter, which tele_carte to fetch. + */ + where: Prisma.tele_carteWhereUniqueInput +} + +/** + * tele_carte findFirst + */ +export type tele_carteFindFirstArgs = { + /** + * Select specific fields to fetch from the tele_carte + */ + select?: Prisma.tele_carteSelect | null + /** + * Omit specific fields from the tele_carte + */ + omit?: Prisma.tele_carteOmit | null + /** + * Filter, which tele_carte to fetch. + */ + where?: Prisma.tele_carteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_cartes to fetch. + */ + orderBy?: Prisma.tele_carteOrderByWithRelationInput | Prisma.tele_carteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_cartes. + */ + cursor?: Prisma.tele_carteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_cartes 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` tele_cartes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_cartes. + */ + distinct?: Prisma.Tele_carteScalarFieldEnum | Prisma.Tele_carteScalarFieldEnum[] +} + +/** + * tele_carte findFirstOrThrow + */ +export type tele_carteFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_carte + */ + select?: Prisma.tele_carteSelect | null + /** + * Omit specific fields from the tele_carte + */ + omit?: Prisma.tele_carteOmit | null + /** + * Filter, which tele_carte to fetch. + */ + where?: Prisma.tele_carteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_cartes to fetch. + */ + orderBy?: Prisma.tele_carteOrderByWithRelationInput | Prisma.tele_carteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_cartes. + */ + cursor?: Prisma.tele_carteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_cartes 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` tele_cartes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_cartes. + */ + distinct?: Prisma.Tele_carteScalarFieldEnum | Prisma.Tele_carteScalarFieldEnum[] +} + +/** + * tele_carte findMany + */ +export type tele_carteFindManyArgs = { + /** + * Select specific fields to fetch from the tele_carte + */ + select?: Prisma.tele_carteSelect | null + /** + * Omit specific fields from the tele_carte + */ + omit?: Prisma.tele_carteOmit | null + /** + * Filter, which tele_cartes to fetch. + */ + where?: Prisma.tele_carteWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_cartes to fetch. + */ + orderBy?: Prisma.tele_carteOrderByWithRelationInput | Prisma.tele_carteOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing tele_cartes. + */ + cursor?: Prisma.tele_carteWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_cartes 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` tele_cartes. + */ + skip?: number + distinct?: Prisma.Tele_carteScalarFieldEnum | Prisma.Tele_carteScalarFieldEnum[] +} + +/** + * tele_carte create + */ +export type tele_carteCreateArgs = { + /** + * Select specific fields to fetch from the tele_carte + */ + select?: Prisma.tele_carteSelect | null + /** + * Omit specific fields from the tele_carte + */ + omit?: Prisma.tele_carteOmit | null + /** + * The data needed to create a tele_carte. + */ + data: Prisma.XOR +} + +/** + * tele_carte createMany + */ +export type tele_carteCreateManyArgs = { + /** + * The data used to create many tele_cartes. + */ + data: Prisma.tele_carteCreateManyInput | Prisma.tele_carteCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * tele_carte update + */ +export type tele_carteUpdateArgs = { + /** + * Select specific fields to fetch from the tele_carte + */ + select?: Prisma.tele_carteSelect | null + /** + * Omit specific fields from the tele_carte + */ + omit?: Prisma.tele_carteOmit | null + /** + * The data needed to update a tele_carte. + */ + data: Prisma.XOR + /** + * Choose, which tele_carte to update. + */ + where: Prisma.tele_carteWhereUniqueInput +} + +/** + * tele_carte updateMany + */ +export type tele_carteUpdateManyArgs = { + /** + * The data used to update tele_cartes. + */ + data: Prisma.XOR + /** + * Filter which tele_cartes to update + */ + where?: Prisma.tele_carteWhereInput + /** + * Limit how many tele_cartes to update. + */ + limit?: number +} + +/** + * tele_carte upsert + */ +export type tele_carteUpsertArgs = { + /** + * Select specific fields to fetch from the tele_carte + */ + select?: Prisma.tele_carteSelect | null + /** + * Omit specific fields from the tele_carte + */ + omit?: Prisma.tele_carteOmit | null + /** + * The filter to search for the tele_carte to update in case it exists. + */ + where: Prisma.tele_carteWhereUniqueInput + /** + * In case the tele_carte found by the `where` argument doesn't exist, create a new tele_carte with this data. + */ + create: Prisma.XOR + /** + * In case the tele_carte was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * tele_carte delete + */ +export type tele_carteDeleteArgs = { + /** + * Select specific fields to fetch from the tele_carte + */ + select?: Prisma.tele_carteSelect | null + /** + * Omit specific fields from the tele_carte + */ + omit?: Prisma.tele_carteOmit | null + /** + * Filter which tele_carte to delete. + */ + where: Prisma.tele_carteWhereUniqueInput +} + +/** + * tele_carte deleteMany + */ +export type tele_carteDeleteManyArgs = { + /** + * Filter which tele_cartes to delete + */ + where?: Prisma.tele_carteWhereInput + /** + * Limit how many tele_cartes to delete. + */ + limit?: number +} + +/** + * tele_carte without action + */ +export type tele_carteDefaultArgs = { + /** + * Select specific fields to fetch from the tele_carte + */ + select?: Prisma.tele_carteSelect | null + /** + * Omit specific fields from the tele_carte + */ + omit?: Prisma.tele_carteOmit | null +} diff --git a/prisma/generated/mariadb/models/tele_channel.ts b/prisma/generated/mariadb/models/tele_channel.ts new file mode 100644 index 0000000..000b8b2 --- /dev/null +++ b/prisma/generated/mariadb/models/tele_channel.ts @@ -0,0 +1,1611 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `tele_channel` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model tele_channel + * + */ +export type tele_channelModel = runtime.Types.Result.DefaultSelection + +export type AggregateTele_channel = { + _count: Tele_channelCountAggregateOutputType | null + _avg: Tele_channelAvgAggregateOutputType | null + _sum: Tele_channelSumAggregateOutputType | null + _min: Tele_channelMinAggregateOutputType | null + _max: Tele_channelMaxAggregateOutputType | null +} + +export type Tele_channelAvgAggregateOutputType = { + id: number | null + pack_min: number | null + pack_redevance: runtime.Decimal | null + pack_prix_vendu: runtime.Decimal | null + carte_percentage: runtime.Decimal | null + carte_redevance_min: runtime.Decimal | null + carte_prix_vendu: runtime.Decimal | null + monthly_min: runtime.Decimal | null + has_penetration_rate: number | null + penetration_actuel: runtime.Decimal | null + is_commercial: number | null + epgId: number | null + uptele_no: number | null + groupe_id: number | null + ccsa_packageID: number | null + rapport_bell: number | null +} + +export type Tele_channelSumAggregateOutputType = { + id: number | null + pack_min: number | null + pack_redevance: runtime.Decimal | null + pack_prix_vendu: runtime.Decimal | null + carte_percentage: runtime.Decimal | null + carte_redevance_min: runtime.Decimal | null + carte_prix_vendu: runtime.Decimal | null + monthly_min: runtime.Decimal | null + has_penetration_rate: number | null + penetration_actuel: runtime.Decimal | null + is_commercial: number | null + epgId: number | null + uptele_no: number | null + groupe_id: number | null + ccsa_packageID: number | null + rapport_bell: number | null +} + +export type Tele_channelMinAggregateOutputType = { + id: number | null + proprio: string | null + poste: string | null + pack_min: number | null + pack_redevance: runtime.Decimal | null + pack_prix_vendu: runtime.Decimal | null + carte_percentage: runtime.Decimal | null + carte_redevance_min: runtime.Decimal | null + carte_prix_vendu: runtime.Decimal | null + monthly_min: runtime.Decimal | null + has_penetration_rate: number | null + penetration_actuel: runtime.Decimal | null + is_commercial: number | null + note: string | null + epgId: number | null + uptele_no: number | null + uptele_code: string | null + abbr: string | null + groupe_id: number | null + ccsa_packageID: number | null + ccsa_desc: string | null + rapport_bell: number | null +} + +export type Tele_channelMaxAggregateOutputType = { + id: number | null + proprio: string | null + poste: string | null + pack_min: number | null + pack_redevance: runtime.Decimal | null + pack_prix_vendu: runtime.Decimal | null + carte_percentage: runtime.Decimal | null + carte_redevance_min: runtime.Decimal | null + carte_prix_vendu: runtime.Decimal | null + monthly_min: runtime.Decimal | null + has_penetration_rate: number | null + penetration_actuel: runtime.Decimal | null + is_commercial: number | null + note: string | null + epgId: number | null + uptele_no: number | null + uptele_code: string | null + abbr: string | null + groupe_id: number | null + ccsa_packageID: number | null + ccsa_desc: string | null + rapport_bell: number | null +} + +export type Tele_channelCountAggregateOutputType = { + id: number + proprio: number + poste: number + pack_min: number + pack_redevance: number + pack_prix_vendu: number + carte_percentage: number + carte_redevance_min: number + carte_prix_vendu: number + monthly_min: number + has_penetration_rate: number + penetration_actuel: number + is_commercial: number + note: number + epgId: number + uptele_no: number + uptele_code: number + abbr: number + groupe_id: number + ccsa_packageID: number + ccsa_desc: number + rapport_bell: number + _all: number +} + + +export type Tele_channelAvgAggregateInputType = { + id?: true + pack_min?: true + pack_redevance?: true + pack_prix_vendu?: true + carte_percentage?: true + carte_redevance_min?: true + carte_prix_vendu?: true + monthly_min?: true + has_penetration_rate?: true + penetration_actuel?: true + is_commercial?: true + epgId?: true + uptele_no?: true + groupe_id?: true + ccsa_packageID?: true + rapport_bell?: true +} + +export type Tele_channelSumAggregateInputType = { + id?: true + pack_min?: true + pack_redevance?: true + pack_prix_vendu?: true + carte_percentage?: true + carte_redevance_min?: true + carte_prix_vendu?: true + monthly_min?: true + has_penetration_rate?: true + penetration_actuel?: true + is_commercial?: true + epgId?: true + uptele_no?: true + groupe_id?: true + ccsa_packageID?: true + rapport_bell?: true +} + +export type Tele_channelMinAggregateInputType = { + id?: true + proprio?: true + poste?: true + pack_min?: true + pack_redevance?: true + pack_prix_vendu?: true + carte_percentage?: true + carte_redevance_min?: true + carte_prix_vendu?: true + monthly_min?: true + has_penetration_rate?: true + penetration_actuel?: true + is_commercial?: true + note?: true + epgId?: true + uptele_no?: true + uptele_code?: true + abbr?: true + groupe_id?: true + ccsa_packageID?: true + ccsa_desc?: true + rapport_bell?: true +} + +export type Tele_channelMaxAggregateInputType = { + id?: true + proprio?: true + poste?: true + pack_min?: true + pack_redevance?: true + pack_prix_vendu?: true + carte_percentage?: true + carte_redevance_min?: true + carte_prix_vendu?: true + monthly_min?: true + has_penetration_rate?: true + penetration_actuel?: true + is_commercial?: true + note?: true + epgId?: true + uptele_no?: true + uptele_code?: true + abbr?: true + groupe_id?: true + ccsa_packageID?: true + ccsa_desc?: true + rapport_bell?: true +} + +export type Tele_channelCountAggregateInputType = { + id?: true + proprio?: true + poste?: true + pack_min?: true + pack_redevance?: true + pack_prix_vendu?: true + carte_percentage?: true + carte_redevance_min?: true + carte_prix_vendu?: true + monthly_min?: true + has_penetration_rate?: true + penetration_actuel?: true + is_commercial?: true + note?: true + epgId?: true + uptele_no?: true + uptele_code?: true + abbr?: true + groupe_id?: true + ccsa_packageID?: true + ccsa_desc?: true + rapport_bell?: true + _all?: true +} + +export type Tele_channelAggregateArgs = { + /** + * Filter which tele_channel to aggregate. + */ + where?: Prisma.tele_channelWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_channels to fetch. + */ + orderBy?: Prisma.tele_channelOrderByWithRelationInput | Prisma.tele_channelOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.tele_channelWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_channels 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` tele_channels. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned tele_channels + **/ + _count?: true | Tele_channelCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Tele_channelAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Tele_channelSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Tele_channelMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Tele_channelMaxAggregateInputType +} + +export type GetTele_channelAggregateType = { + [P in keyof T & keyof AggregateTele_channel]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type tele_channelGroupByArgs = { + where?: Prisma.tele_channelWhereInput + orderBy?: Prisma.tele_channelOrderByWithAggregationInput | Prisma.tele_channelOrderByWithAggregationInput[] + by: Prisma.Tele_channelScalarFieldEnum[] | Prisma.Tele_channelScalarFieldEnum + having?: Prisma.tele_channelScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Tele_channelCountAggregateInputType | true + _avg?: Tele_channelAvgAggregateInputType + _sum?: Tele_channelSumAggregateInputType + _min?: Tele_channelMinAggregateInputType + _max?: Tele_channelMaxAggregateInputType +} + +export type Tele_channelGroupByOutputType = { + id: number + proprio: string + poste: string + pack_min: number + pack_redevance: runtime.Decimal + pack_prix_vendu: runtime.Decimal + carte_percentage: runtime.Decimal + carte_redevance_min: runtime.Decimal + carte_prix_vendu: runtime.Decimal + monthly_min: runtime.Decimal + has_penetration_rate: number + penetration_actuel: runtime.Decimal + is_commercial: number + note: string + epgId: number + uptele_no: number + uptele_code: string + abbr: string + groupe_id: number + ccsa_packageID: number + ccsa_desc: string + rapport_bell: number + _count: Tele_channelCountAggregateOutputType | null + _avg: Tele_channelAvgAggregateOutputType | null + _sum: Tele_channelSumAggregateOutputType | null + _min: Tele_channelMinAggregateOutputType | null + _max: Tele_channelMaxAggregateOutputType | null +} + +type GetTele_channelGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Tele_channelGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type tele_channelWhereInput = { + AND?: Prisma.tele_channelWhereInput | Prisma.tele_channelWhereInput[] + OR?: Prisma.tele_channelWhereInput[] + NOT?: Prisma.tele_channelWhereInput | Prisma.tele_channelWhereInput[] + id?: Prisma.IntFilter<"tele_channel"> | number + proprio?: Prisma.StringFilter<"tele_channel"> | string + poste?: Prisma.StringFilter<"tele_channel"> | string + pack_min?: Prisma.IntFilter<"tele_channel"> | number + pack_redevance?: Prisma.DecimalFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + pack_prix_vendu?: Prisma.DecimalFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_percentage?: Prisma.DecimalFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_redevance_min?: Prisma.DecimalFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_prix_vendu?: Prisma.DecimalFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + monthly_min?: Prisma.DecimalFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + has_penetration_rate?: Prisma.IntFilter<"tele_channel"> | number + penetration_actuel?: Prisma.DecimalFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + is_commercial?: Prisma.IntFilter<"tele_channel"> | number + note?: Prisma.StringFilter<"tele_channel"> | string + epgId?: Prisma.IntFilter<"tele_channel"> | number + uptele_no?: Prisma.IntFilter<"tele_channel"> | number + uptele_code?: Prisma.StringFilter<"tele_channel"> | string + abbr?: Prisma.StringFilter<"tele_channel"> | string + groupe_id?: Prisma.IntFilter<"tele_channel"> | number + ccsa_packageID?: Prisma.IntFilter<"tele_channel"> | number + ccsa_desc?: Prisma.StringFilter<"tele_channel"> | string + rapport_bell?: Prisma.IntFilter<"tele_channel"> | number +} + +export type tele_channelOrderByWithRelationInput = { + id?: Prisma.SortOrder + proprio?: Prisma.SortOrder + poste?: Prisma.SortOrder + pack_min?: Prisma.SortOrder + pack_redevance?: Prisma.SortOrder + pack_prix_vendu?: Prisma.SortOrder + carte_percentage?: Prisma.SortOrder + carte_redevance_min?: Prisma.SortOrder + carte_prix_vendu?: Prisma.SortOrder + monthly_min?: Prisma.SortOrder + has_penetration_rate?: Prisma.SortOrder + penetration_actuel?: Prisma.SortOrder + is_commercial?: Prisma.SortOrder + note?: Prisma.SortOrder + epgId?: Prisma.SortOrder + uptele_no?: Prisma.SortOrder + uptele_code?: Prisma.SortOrder + abbr?: Prisma.SortOrder + groupe_id?: Prisma.SortOrder + ccsa_packageID?: Prisma.SortOrder + ccsa_desc?: Prisma.SortOrder + rapport_bell?: Prisma.SortOrder + _relevance?: Prisma.tele_channelOrderByRelevanceInput +} + +export type tele_channelWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.tele_channelWhereInput | Prisma.tele_channelWhereInput[] + OR?: Prisma.tele_channelWhereInput[] + NOT?: Prisma.tele_channelWhereInput | Prisma.tele_channelWhereInput[] + proprio?: Prisma.StringFilter<"tele_channel"> | string + poste?: Prisma.StringFilter<"tele_channel"> | string + pack_min?: Prisma.IntFilter<"tele_channel"> | number + pack_redevance?: Prisma.DecimalFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + pack_prix_vendu?: Prisma.DecimalFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_percentage?: Prisma.DecimalFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_redevance_min?: Prisma.DecimalFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_prix_vendu?: Prisma.DecimalFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + monthly_min?: Prisma.DecimalFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + has_penetration_rate?: Prisma.IntFilter<"tele_channel"> | number + penetration_actuel?: Prisma.DecimalFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + is_commercial?: Prisma.IntFilter<"tele_channel"> | number + note?: Prisma.StringFilter<"tele_channel"> | string + epgId?: Prisma.IntFilter<"tele_channel"> | number + uptele_no?: Prisma.IntFilter<"tele_channel"> | number + uptele_code?: Prisma.StringFilter<"tele_channel"> | string + abbr?: Prisma.StringFilter<"tele_channel"> | string + groupe_id?: Prisma.IntFilter<"tele_channel"> | number + ccsa_packageID?: Prisma.IntFilter<"tele_channel"> | number + ccsa_desc?: Prisma.StringFilter<"tele_channel"> | string + rapport_bell?: Prisma.IntFilter<"tele_channel"> | number +}, "id"> + +export type tele_channelOrderByWithAggregationInput = { + id?: Prisma.SortOrder + proprio?: Prisma.SortOrder + poste?: Prisma.SortOrder + pack_min?: Prisma.SortOrder + pack_redevance?: Prisma.SortOrder + pack_prix_vendu?: Prisma.SortOrder + carte_percentage?: Prisma.SortOrder + carte_redevance_min?: Prisma.SortOrder + carte_prix_vendu?: Prisma.SortOrder + monthly_min?: Prisma.SortOrder + has_penetration_rate?: Prisma.SortOrder + penetration_actuel?: Prisma.SortOrder + is_commercial?: Prisma.SortOrder + note?: Prisma.SortOrder + epgId?: Prisma.SortOrder + uptele_no?: Prisma.SortOrder + uptele_code?: Prisma.SortOrder + abbr?: Prisma.SortOrder + groupe_id?: Prisma.SortOrder + ccsa_packageID?: Prisma.SortOrder + ccsa_desc?: Prisma.SortOrder + rapport_bell?: Prisma.SortOrder + _count?: Prisma.tele_channelCountOrderByAggregateInput + _avg?: Prisma.tele_channelAvgOrderByAggregateInput + _max?: Prisma.tele_channelMaxOrderByAggregateInput + _min?: Prisma.tele_channelMinOrderByAggregateInput + _sum?: Prisma.tele_channelSumOrderByAggregateInput +} + +export type tele_channelScalarWhereWithAggregatesInput = { + AND?: Prisma.tele_channelScalarWhereWithAggregatesInput | Prisma.tele_channelScalarWhereWithAggregatesInput[] + OR?: Prisma.tele_channelScalarWhereWithAggregatesInput[] + NOT?: Prisma.tele_channelScalarWhereWithAggregatesInput | Prisma.tele_channelScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"tele_channel"> | number + proprio?: Prisma.StringWithAggregatesFilter<"tele_channel"> | string + poste?: Prisma.StringWithAggregatesFilter<"tele_channel"> | string + pack_min?: Prisma.IntWithAggregatesFilter<"tele_channel"> | number + pack_redevance?: Prisma.DecimalWithAggregatesFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + pack_prix_vendu?: Prisma.DecimalWithAggregatesFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_percentage?: Prisma.DecimalWithAggregatesFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_redevance_min?: Prisma.DecimalWithAggregatesFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_prix_vendu?: Prisma.DecimalWithAggregatesFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + monthly_min?: Prisma.DecimalWithAggregatesFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + has_penetration_rate?: Prisma.IntWithAggregatesFilter<"tele_channel"> | number + penetration_actuel?: Prisma.DecimalWithAggregatesFilter<"tele_channel"> | runtime.Decimal | runtime.DecimalJsLike | number | string + is_commercial?: Prisma.IntWithAggregatesFilter<"tele_channel"> | number + note?: Prisma.StringWithAggregatesFilter<"tele_channel"> | string + epgId?: Prisma.IntWithAggregatesFilter<"tele_channel"> | number + uptele_no?: Prisma.IntWithAggregatesFilter<"tele_channel"> | number + uptele_code?: Prisma.StringWithAggregatesFilter<"tele_channel"> | string + abbr?: Prisma.StringWithAggregatesFilter<"tele_channel"> | string + groupe_id?: Prisma.IntWithAggregatesFilter<"tele_channel"> | number + ccsa_packageID?: Prisma.IntWithAggregatesFilter<"tele_channel"> | number + ccsa_desc?: Prisma.StringWithAggregatesFilter<"tele_channel"> | string + rapport_bell?: Prisma.IntWithAggregatesFilter<"tele_channel"> | number +} + +export type tele_channelCreateInput = { + proprio: string + poste: string + pack_min?: number + pack_redevance?: runtime.Decimal | runtime.DecimalJsLike | number | string + pack_prix_vendu?: runtime.Decimal | runtime.DecimalJsLike | number | string + carte_percentage: runtime.Decimal | runtime.DecimalJsLike | number | string + carte_redevance_min: runtime.Decimal | runtime.DecimalJsLike | number | string + carte_prix_vendu: runtime.Decimal | runtime.DecimalJsLike | number | string + monthly_min?: runtime.Decimal | runtime.DecimalJsLike | number | string + has_penetration_rate?: number + penetration_actuel?: runtime.Decimal | runtime.DecimalJsLike | number | string + is_commercial?: number + note: string + epgId?: number + uptele_no: number + uptele_code: string + abbr: string + groupe_id?: number + ccsa_packageID: number + ccsa_desc: string + rapport_bell?: number +} + +export type tele_channelUncheckedCreateInput = { + id?: number + proprio: string + poste: string + pack_min?: number + pack_redevance?: runtime.Decimal | runtime.DecimalJsLike | number | string + pack_prix_vendu?: runtime.Decimal | runtime.DecimalJsLike | number | string + carte_percentage: runtime.Decimal | runtime.DecimalJsLike | number | string + carte_redevance_min: runtime.Decimal | runtime.DecimalJsLike | number | string + carte_prix_vendu: runtime.Decimal | runtime.DecimalJsLike | number | string + monthly_min?: runtime.Decimal | runtime.DecimalJsLike | number | string + has_penetration_rate?: number + penetration_actuel?: runtime.Decimal | runtime.DecimalJsLike | number | string + is_commercial?: number + note: string + epgId?: number + uptele_no: number + uptele_code: string + abbr: string + groupe_id?: number + ccsa_packageID: number + ccsa_desc: string + rapport_bell?: number +} + +export type tele_channelUpdateInput = { + proprio?: Prisma.StringFieldUpdateOperationsInput | string + poste?: Prisma.StringFieldUpdateOperationsInput | string + pack_min?: Prisma.IntFieldUpdateOperationsInput | number + pack_redevance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + pack_prix_vendu?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_percentage?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_redevance_min?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_prix_vendu?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + monthly_min?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + has_penetration_rate?: Prisma.IntFieldUpdateOperationsInput | number + penetration_actuel?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + is_commercial?: Prisma.IntFieldUpdateOperationsInput | number + note?: Prisma.StringFieldUpdateOperationsInput | string + epgId?: Prisma.IntFieldUpdateOperationsInput | number + uptele_no?: Prisma.IntFieldUpdateOperationsInput | number + uptele_code?: Prisma.StringFieldUpdateOperationsInput | string + abbr?: Prisma.StringFieldUpdateOperationsInput | string + groupe_id?: Prisma.IntFieldUpdateOperationsInput | number + ccsa_packageID?: Prisma.IntFieldUpdateOperationsInput | number + ccsa_desc?: Prisma.StringFieldUpdateOperationsInput | string + rapport_bell?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type tele_channelUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + proprio?: Prisma.StringFieldUpdateOperationsInput | string + poste?: Prisma.StringFieldUpdateOperationsInput | string + pack_min?: Prisma.IntFieldUpdateOperationsInput | number + pack_redevance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + pack_prix_vendu?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_percentage?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_redevance_min?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_prix_vendu?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + monthly_min?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + has_penetration_rate?: Prisma.IntFieldUpdateOperationsInput | number + penetration_actuel?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + is_commercial?: Prisma.IntFieldUpdateOperationsInput | number + note?: Prisma.StringFieldUpdateOperationsInput | string + epgId?: Prisma.IntFieldUpdateOperationsInput | number + uptele_no?: Prisma.IntFieldUpdateOperationsInput | number + uptele_code?: Prisma.StringFieldUpdateOperationsInput | string + abbr?: Prisma.StringFieldUpdateOperationsInput | string + groupe_id?: Prisma.IntFieldUpdateOperationsInput | number + ccsa_packageID?: Prisma.IntFieldUpdateOperationsInput | number + ccsa_desc?: Prisma.StringFieldUpdateOperationsInput | string + rapport_bell?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type tele_channelCreateManyInput = { + id?: number + proprio: string + poste: string + pack_min?: number + pack_redevance?: runtime.Decimal | runtime.DecimalJsLike | number | string + pack_prix_vendu?: runtime.Decimal | runtime.DecimalJsLike | number | string + carte_percentage: runtime.Decimal | runtime.DecimalJsLike | number | string + carte_redevance_min: runtime.Decimal | runtime.DecimalJsLike | number | string + carte_prix_vendu: runtime.Decimal | runtime.DecimalJsLike | number | string + monthly_min?: runtime.Decimal | runtime.DecimalJsLike | number | string + has_penetration_rate?: number + penetration_actuel?: runtime.Decimal | runtime.DecimalJsLike | number | string + is_commercial?: number + note: string + epgId?: number + uptele_no: number + uptele_code: string + abbr: string + groupe_id?: number + ccsa_packageID: number + ccsa_desc: string + rapport_bell?: number +} + +export type tele_channelUpdateManyMutationInput = { + proprio?: Prisma.StringFieldUpdateOperationsInput | string + poste?: Prisma.StringFieldUpdateOperationsInput | string + pack_min?: Prisma.IntFieldUpdateOperationsInput | number + pack_redevance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + pack_prix_vendu?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_percentage?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_redevance_min?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_prix_vendu?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + monthly_min?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + has_penetration_rate?: Prisma.IntFieldUpdateOperationsInput | number + penetration_actuel?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + is_commercial?: Prisma.IntFieldUpdateOperationsInput | number + note?: Prisma.StringFieldUpdateOperationsInput | string + epgId?: Prisma.IntFieldUpdateOperationsInput | number + uptele_no?: Prisma.IntFieldUpdateOperationsInput | number + uptele_code?: Prisma.StringFieldUpdateOperationsInput | string + abbr?: Prisma.StringFieldUpdateOperationsInput | string + groupe_id?: Prisma.IntFieldUpdateOperationsInput | number + ccsa_packageID?: Prisma.IntFieldUpdateOperationsInput | number + ccsa_desc?: Prisma.StringFieldUpdateOperationsInput | string + rapport_bell?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type tele_channelUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + proprio?: Prisma.StringFieldUpdateOperationsInput | string + poste?: Prisma.StringFieldUpdateOperationsInput | string + pack_min?: Prisma.IntFieldUpdateOperationsInput | number + pack_redevance?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + pack_prix_vendu?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_percentage?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_redevance_min?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + carte_prix_vendu?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + monthly_min?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + has_penetration_rate?: Prisma.IntFieldUpdateOperationsInput | number + penetration_actuel?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + is_commercial?: Prisma.IntFieldUpdateOperationsInput | number + note?: Prisma.StringFieldUpdateOperationsInput | string + epgId?: Prisma.IntFieldUpdateOperationsInput | number + uptele_no?: Prisma.IntFieldUpdateOperationsInput | number + uptele_code?: Prisma.StringFieldUpdateOperationsInput | string + abbr?: Prisma.StringFieldUpdateOperationsInput | string + groupe_id?: Prisma.IntFieldUpdateOperationsInput | number + ccsa_packageID?: Prisma.IntFieldUpdateOperationsInput | number + ccsa_desc?: Prisma.StringFieldUpdateOperationsInput | string + rapport_bell?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type tele_channelOrderByRelevanceInput = { + fields: Prisma.tele_channelOrderByRelevanceFieldEnum | Prisma.tele_channelOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type tele_channelCountOrderByAggregateInput = { + id?: Prisma.SortOrder + proprio?: Prisma.SortOrder + poste?: Prisma.SortOrder + pack_min?: Prisma.SortOrder + pack_redevance?: Prisma.SortOrder + pack_prix_vendu?: Prisma.SortOrder + carte_percentage?: Prisma.SortOrder + carte_redevance_min?: Prisma.SortOrder + carte_prix_vendu?: Prisma.SortOrder + monthly_min?: Prisma.SortOrder + has_penetration_rate?: Prisma.SortOrder + penetration_actuel?: Prisma.SortOrder + is_commercial?: Prisma.SortOrder + note?: Prisma.SortOrder + epgId?: Prisma.SortOrder + uptele_no?: Prisma.SortOrder + uptele_code?: Prisma.SortOrder + abbr?: Prisma.SortOrder + groupe_id?: Prisma.SortOrder + ccsa_packageID?: Prisma.SortOrder + ccsa_desc?: Prisma.SortOrder + rapport_bell?: Prisma.SortOrder +} + +export type tele_channelAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + pack_min?: Prisma.SortOrder + pack_redevance?: Prisma.SortOrder + pack_prix_vendu?: Prisma.SortOrder + carte_percentage?: Prisma.SortOrder + carte_redevance_min?: Prisma.SortOrder + carte_prix_vendu?: Prisma.SortOrder + monthly_min?: Prisma.SortOrder + has_penetration_rate?: Prisma.SortOrder + penetration_actuel?: Prisma.SortOrder + is_commercial?: Prisma.SortOrder + epgId?: Prisma.SortOrder + uptele_no?: Prisma.SortOrder + groupe_id?: Prisma.SortOrder + ccsa_packageID?: Prisma.SortOrder + rapport_bell?: Prisma.SortOrder +} + +export type tele_channelMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + proprio?: Prisma.SortOrder + poste?: Prisma.SortOrder + pack_min?: Prisma.SortOrder + pack_redevance?: Prisma.SortOrder + pack_prix_vendu?: Prisma.SortOrder + carte_percentage?: Prisma.SortOrder + carte_redevance_min?: Prisma.SortOrder + carte_prix_vendu?: Prisma.SortOrder + monthly_min?: Prisma.SortOrder + has_penetration_rate?: Prisma.SortOrder + penetration_actuel?: Prisma.SortOrder + is_commercial?: Prisma.SortOrder + note?: Prisma.SortOrder + epgId?: Prisma.SortOrder + uptele_no?: Prisma.SortOrder + uptele_code?: Prisma.SortOrder + abbr?: Prisma.SortOrder + groupe_id?: Prisma.SortOrder + ccsa_packageID?: Prisma.SortOrder + ccsa_desc?: Prisma.SortOrder + rapport_bell?: Prisma.SortOrder +} + +export type tele_channelMinOrderByAggregateInput = { + id?: Prisma.SortOrder + proprio?: Prisma.SortOrder + poste?: Prisma.SortOrder + pack_min?: Prisma.SortOrder + pack_redevance?: Prisma.SortOrder + pack_prix_vendu?: Prisma.SortOrder + carte_percentage?: Prisma.SortOrder + carte_redevance_min?: Prisma.SortOrder + carte_prix_vendu?: Prisma.SortOrder + monthly_min?: Prisma.SortOrder + has_penetration_rate?: Prisma.SortOrder + penetration_actuel?: Prisma.SortOrder + is_commercial?: Prisma.SortOrder + note?: Prisma.SortOrder + epgId?: Prisma.SortOrder + uptele_no?: Prisma.SortOrder + uptele_code?: Prisma.SortOrder + abbr?: Prisma.SortOrder + groupe_id?: Prisma.SortOrder + ccsa_packageID?: Prisma.SortOrder + ccsa_desc?: Prisma.SortOrder + rapport_bell?: Prisma.SortOrder +} + +export type tele_channelSumOrderByAggregateInput = { + id?: Prisma.SortOrder + pack_min?: Prisma.SortOrder + pack_redevance?: Prisma.SortOrder + pack_prix_vendu?: Prisma.SortOrder + carte_percentage?: Prisma.SortOrder + carte_redevance_min?: Prisma.SortOrder + carte_prix_vendu?: Prisma.SortOrder + monthly_min?: Prisma.SortOrder + has_penetration_rate?: Prisma.SortOrder + penetration_actuel?: Prisma.SortOrder + is_commercial?: Prisma.SortOrder + epgId?: Prisma.SortOrder + uptele_no?: Prisma.SortOrder + groupe_id?: Prisma.SortOrder + ccsa_packageID?: Prisma.SortOrder + rapport_bell?: Prisma.SortOrder +} + + + +export type tele_channelSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + proprio?: boolean + poste?: boolean + pack_min?: boolean + pack_redevance?: boolean + pack_prix_vendu?: boolean + carte_percentage?: boolean + carte_redevance_min?: boolean + carte_prix_vendu?: boolean + monthly_min?: boolean + has_penetration_rate?: boolean + penetration_actuel?: boolean + is_commercial?: boolean + note?: boolean + epgId?: boolean + uptele_no?: boolean + uptele_code?: boolean + abbr?: boolean + groupe_id?: boolean + ccsa_packageID?: boolean + ccsa_desc?: boolean + rapport_bell?: boolean +}, ExtArgs["result"]["tele_channel"]> + + + +export type tele_channelSelectScalar = { + id?: boolean + proprio?: boolean + poste?: boolean + pack_min?: boolean + pack_redevance?: boolean + pack_prix_vendu?: boolean + carte_percentage?: boolean + carte_redevance_min?: boolean + carte_prix_vendu?: boolean + monthly_min?: boolean + has_penetration_rate?: boolean + penetration_actuel?: boolean + is_commercial?: boolean + note?: boolean + epgId?: boolean + uptele_no?: boolean + uptele_code?: boolean + abbr?: boolean + groupe_id?: boolean + ccsa_packageID?: boolean + ccsa_desc?: boolean + rapport_bell?: boolean +} + +export type tele_channelOmit = runtime.Types.Extensions.GetOmit<"id" | "proprio" | "poste" | "pack_min" | "pack_redevance" | "pack_prix_vendu" | "carte_percentage" | "carte_redevance_min" | "carte_prix_vendu" | "monthly_min" | "has_penetration_rate" | "penetration_actuel" | "is_commercial" | "note" | "epgId" | "uptele_no" | "uptele_code" | "abbr" | "groupe_id" | "ccsa_packageID" | "ccsa_desc" | "rapport_bell", ExtArgs["result"]["tele_channel"]> + +export type $tele_channelPayload = { + name: "tele_channel" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + proprio: string + poste: string + pack_min: number + pack_redevance: runtime.Decimal + pack_prix_vendu: runtime.Decimal + carte_percentage: runtime.Decimal + carte_redevance_min: runtime.Decimal + carte_prix_vendu: runtime.Decimal + monthly_min: runtime.Decimal + has_penetration_rate: number + penetration_actuel: runtime.Decimal + is_commercial: number + note: string + epgId: number + uptele_no: number + uptele_code: string + abbr: string + groupe_id: number + ccsa_packageID: number + ccsa_desc: string + rapport_bell: number + }, ExtArgs["result"]["tele_channel"]> + composites: {} +} + +export type tele_channelGetPayload = runtime.Types.Result.GetResult + +export type tele_channelCountArgs = + Omit & { + select?: Tele_channelCountAggregateInputType | true + } + +export interface tele_channelDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['tele_channel'], meta: { name: 'tele_channel' } } + /** + * Find zero or one Tele_channel that matches the filter. + * @param {tele_channelFindUniqueArgs} args - Arguments to find a Tele_channel + * @example + * // Get one Tele_channel + * const tele_channel = await prisma.tele_channel.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__tele_channelClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Tele_channel that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {tele_channelFindUniqueOrThrowArgs} args - Arguments to find a Tele_channel + * @example + * // Get one Tele_channel + * const tele_channel = await prisma.tele_channel.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__tele_channelClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_channel 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 {tele_channelFindFirstArgs} args - Arguments to find a Tele_channel + * @example + * // Get one Tele_channel + * const tele_channel = await prisma.tele_channel.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_channelClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_channel 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 {tele_channelFindFirstOrThrowArgs} args - Arguments to find a Tele_channel + * @example + * // Get one Tele_channel + * const tele_channel = await prisma.tele_channel.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_channelClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Tele_channels 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 {tele_channelFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Tele_channels + * const tele_channels = await prisma.tele_channel.findMany() + * + * // Get first 10 Tele_channels + * const tele_channels = await prisma.tele_channel.findMany({ take: 10 }) + * + * // Only select the `id` + * const tele_channelWithIdOnly = await prisma.tele_channel.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Tele_channel. + * @param {tele_channelCreateArgs} args - Arguments to create a Tele_channel. + * @example + * // Create one Tele_channel + * const Tele_channel = await prisma.tele_channel.create({ + * data: { + * // ... data to create a Tele_channel + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__tele_channelClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Tele_channels. + * @param {tele_channelCreateManyArgs} args - Arguments to create many Tele_channels. + * @example + * // Create many Tele_channels + * const tele_channel = await prisma.tele_channel.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Tele_channel. + * @param {tele_channelDeleteArgs} args - Arguments to delete one Tele_channel. + * @example + * // Delete one Tele_channel + * const Tele_channel = await prisma.tele_channel.delete({ + * where: { + * // ... filter to delete one Tele_channel + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__tele_channelClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Tele_channel. + * @param {tele_channelUpdateArgs} args - Arguments to update one Tele_channel. + * @example + * // Update one Tele_channel + * const tele_channel = await prisma.tele_channel.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__tele_channelClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Tele_channels. + * @param {tele_channelDeleteManyArgs} args - Arguments to filter Tele_channels to delete. + * @example + * // Delete a few Tele_channels + * const { count } = await prisma.tele_channel.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Tele_channels. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_channelUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Tele_channels + * const tele_channel = await prisma.tele_channel.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Tele_channel. + * @param {tele_channelUpsertArgs} args - Arguments to update or create a Tele_channel. + * @example + * // Update or create a Tele_channel + * const tele_channel = await prisma.tele_channel.upsert({ + * create: { + * // ... data to create a Tele_channel + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Tele_channel we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__tele_channelClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Tele_channels. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_channelCountArgs} args - Arguments to filter Tele_channels to count. + * @example + * // Count the number of Tele_channels + * const count = await prisma.tele_channel.count({ + * where: { + * // ... the filter for the Tele_channels 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 Tele_channel. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Tele_channelAggregateArgs} 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 Tele_channel. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_channelGroupByArgs} 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 tele_channelGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: tele_channelGroupByArgs['orderBy'] } + : { orderBy?: tele_channelGroupByArgs['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 ? GetTele_channelGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the tele_channel model + */ +readonly fields: tele_channelFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for tele_channel. + * 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__tele_channelClient 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 tele_channel model + */ +export interface tele_channelFieldRefs { + readonly id: Prisma.FieldRef<"tele_channel", 'Int'> + readonly proprio: Prisma.FieldRef<"tele_channel", 'String'> + readonly poste: Prisma.FieldRef<"tele_channel", 'String'> + readonly pack_min: Prisma.FieldRef<"tele_channel", 'Int'> + readonly pack_redevance: Prisma.FieldRef<"tele_channel", 'Decimal'> + readonly pack_prix_vendu: Prisma.FieldRef<"tele_channel", 'Decimal'> + readonly carte_percentage: Prisma.FieldRef<"tele_channel", 'Decimal'> + readonly carte_redevance_min: Prisma.FieldRef<"tele_channel", 'Decimal'> + readonly carte_prix_vendu: Prisma.FieldRef<"tele_channel", 'Decimal'> + readonly monthly_min: Prisma.FieldRef<"tele_channel", 'Decimal'> + readonly has_penetration_rate: Prisma.FieldRef<"tele_channel", 'Int'> + readonly penetration_actuel: Prisma.FieldRef<"tele_channel", 'Decimal'> + readonly is_commercial: Prisma.FieldRef<"tele_channel", 'Int'> + readonly note: Prisma.FieldRef<"tele_channel", 'String'> + readonly epgId: Prisma.FieldRef<"tele_channel", 'Int'> + readonly uptele_no: Prisma.FieldRef<"tele_channel", 'Int'> + readonly uptele_code: Prisma.FieldRef<"tele_channel", 'String'> + readonly abbr: Prisma.FieldRef<"tele_channel", 'String'> + readonly groupe_id: Prisma.FieldRef<"tele_channel", 'Int'> + readonly ccsa_packageID: Prisma.FieldRef<"tele_channel", 'Int'> + readonly ccsa_desc: Prisma.FieldRef<"tele_channel", 'String'> + readonly rapport_bell: Prisma.FieldRef<"tele_channel", 'Int'> +} + + +// Custom InputTypes +/** + * tele_channel findUnique + */ +export type tele_channelFindUniqueArgs = { + /** + * Select specific fields to fetch from the tele_channel + */ + select?: Prisma.tele_channelSelect | null + /** + * Omit specific fields from the tele_channel + */ + omit?: Prisma.tele_channelOmit | null + /** + * Filter, which tele_channel to fetch. + */ + where: Prisma.tele_channelWhereUniqueInput +} + +/** + * tele_channel findUniqueOrThrow + */ +export type tele_channelFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_channel + */ + select?: Prisma.tele_channelSelect | null + /** + * Omit specific fields from the tele_channel + */ + omit?: Prisma.tele_channelOmit | null + /** + * Filter, which tele_channel to fetch. + */ + where: Prisma.tele_channelWhereUniqueInput +} + +/** + * tele_channel findFirst + */ +export type tele_channelFindFirstArgs = { + /** + * Select specific fields to fetch from the tele_channel + */ + select?: Prisma.tele_channelSelect | null + /** + * Omit specific fields from the tele_channel + */ + omit?: Prisma.tele_channelOmit | null + /** + * Filter, which tele_channel to fetch. + */ + where?: Prisma.tele_channelWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_channels to fetch. + */ + orderBy?: Prisma.tele_channelOrderByWithRelationInput | Prisma.tele_channelOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_channels. + */ + cursor?: Prisma.tele_channelWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_channels 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` tele_channels. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_channels. + */ + distinct?: Prisma.Tele_channelScalarFieldEnum | Prisma.Tele_channelScalarFieldEnum[] +} + +/** + * tele_channel findFirstOrThrow + */ +export type tele_channelFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_channel + */ + select?: Prisma.tele_channelSelect | null + /** + * Omit specific fields from the tele_channel + */ + omit?: Prisma.tele_channelOmit | null + /** + * Filter, which tele_channel to fetch. + */ + where?: Prisma.tele_channelWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_channels to fetch. + */ + orderBy?: Prisma.tele_channelOrderByWithRelationInput | Prisma.tele_channelOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_channels. + */ + cursor?: Prisma.tele_channelWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_channels 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` tele_channels. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_channels. + */ + distinct?: Prisma.Tele_channelScalarFieldEnum | Prisma.Tele_channelScalarFieldEnum[] +} + +/** + * tele_channel findMany + */ +export type tele_channelFindManyArgs = { + /** + * Select specific fields to fetch from the tele_channel + */ + select?: Prisma.tele_channelSelect | null + /** + * Omit specific fields from the tele_channel + */ + omit?: Prisma.tele_channelOmit | null + /** + * Filter, which tele_channels to fetch. + */ + where?: Prisma.tele_channelWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_channels to fetch. + */ + orderBy?: Prisma.tele_channelOrderByWithRelationInput | Prisma.tele_channelOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing tele_channels. + */ + cursor?: Prisma.tele_channelWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_channels 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` tele_channels. + */ + skip?: number + distinct?: Prisma.Tele_channelScalarFieldEnum | Prisma.Tele_channelScalarFieldEnum[] +} + +/** + * tele_channel create + */ +export type tele_channelCreateArgs = { + /** + * Select specific fields to fetch from the tele_channel + */ + select?: Prisma.tele_channelSelect | null + /** + * Omit specific fields from the tele_channel + */ + omit?: Prisma.tele_channelOmit | null + /** + * The data needed to create a tele_channel. + */ + data: Prisma.XOR +} + +/** + * tele_channel createMany + */ +export type tele_channelCreateManyArgs = { + /** + * The data used to create many tele_channels. + */ + data: Prisma.tele_channelCreateManyInput | Prisma.tele_channelCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * tele_channel update + */ +export type tele_channelUpdateArgs = { + /** + * Select specific fields to fetch from the tele_channel + */ + select?: Prisma.tele_channelSelect | null + /** + * Omit specific fields from the tele_channel + */ + omit?: Prisma.tele_channelOmit | null + /** + * The data needed to update a tele_channel. + */ + data: Prisma.XOR + /** + * Choose, which tele_channel to update. + */ + where: Prisma.tele_channelWhereUniqueInput +} + +/** + * tele_channel updateMany + */ +export type tele_channelUpdateManyArgs = { + /** + * The data used to update tele_channels. + */ + data: Prisma.XOR + /** + * Filter which tele_channels to update + */ + where?: Prisma.tele_channelWhereInput + /** + * Limit how many tele_channels to update. + */ + limit?: number +} + +/** + * tele_channel upsert + */ +export type tele_channelUpsertArgs = { + /** + * Select specific fields to fetch from the tele_channel + */ + select?: Prisma.tele_channelSelect | null + /** + * Omit specific fields from the tele_channel + */ + omit?: Prisma.tele_channelOmit | null + /** + * The filter to search for the tele_channel to update in case it exists. + */ + where: Prisma.tele_channelWhereUniqueInput + /** + * In case the tele_channel found by the `where` argument doesn't exist, create a new tele_channel with this data. + */ + create: Prisma.XOR + /** + * In case the tele_channel was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * tele_channel delete + */ +export type tele_channelDeleteArgs = { + /** + * Select specific fields to fetch from the tele_channel + */ + select?: Prisma.tele_channelSelect | null + /** + * Omit specific fields from the tele_channel + */ + omit?: Prisma.tele_channelOmit | null + /** + * Filter which tele_channel to delete. + */ + where: Prisma.tele_channelWhereUniqueInput +} + +/** + * tele_channel deleteMany + */ +export type tele_channelDeleteManyArgs = { + /** + * Filter which tele_channels to delete + */ + where?: Prisma.tele_channelWhereInput + /** + * Limit how many tele_channels to delete. + */ + limit?: number +} + +/** + * tele_channel without action + */ +export type tele_channelDefaultArgs = { + /** + * Select specific fields to fetch from the tele_channel + */ + select?: Prisma.tele_channelSelect | null + /** + * Omit specific fields from the tele_channel + */ + omit?: Prisma.tele_channelOmit | null +} diff --git a/prisma/generated/mariadb/models/tele_groupe.ts b/prisma/generated/mariadb/models/tele_groupe.ts new file mode 100644 index 0000000..fc0bd8c --- /dev/null +++ b/prisma/generated/mariadb/models/tele_groupe.ts @@ -0,0 +1,1027 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `tele_groupe` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model tele_groupe + * + */ +export type tele_groupeModel = runtime.Types.Result.DefaultSelection + +export type AggregateTele_groupe = { + _count: Tele_groupeCountAggregateOutputType | null + _avg: Tele_groupeAvgAggregateOutputType | null + _sum: Tele_groupeSumAggregateOutputType | null + _min: Tele_groupeMinAggregateOutputType | null + _max: Tele_groupeMaxAggregateOutputType | null +} + +export type Tele_groupeAvgAggregateOutputType = { + id: number | null +} + +export type Tele_groupeSumAggregateOutputType = { + id: number | null +} + +export type Tele_groupeMinAggregateOutputType = { + id: number | null + nom: string | null + small_desc: string | null +} + +export type Tele_groupeMaxAggregateOutputType = { + id: number | null + nom: string | null + small_desc: string | null +} + +export type Tele_groupeCountAggregateOutputType = { + id: number + nom: number + small_desc: number + _all: number +} + + +export type Tele_groupeAvgAggregateInputType = { + id?: true +} + +export type Tele_groupeSumAggregateInputType = { + id?: true +} + +export type Tele_groupeMinAggregateInputType = { + id?: true + nom?: true + small_desc?: true +} + +export type Tele_groupeMaxAggregateInputType = { + id?: true + nom?: true + small_desc?: true +} + +export type Tele_groupeCountAggregateInputType = { + id?: true + nom?: true + small_desc?: true + _all?: true +} + +export type Tele_groupeAggregateArgs = { + /** + * Filter which tele_groupe to aggregate. + */ + where?: Prisma.tele_groupeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_groupes to fetch. + */ + orderBy?: Prisma.tele_groupeOrderByWithRelationInput | Prisma.tele_groupeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.tele_groupeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_groupes 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` tele_groupes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned tele_groupes + **/ + _count?: true | Tele_groupeCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Tele_groupeAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Tele_groupeSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Tele_groupeMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Tele_groupeMaxAggregateInputType +} + +export type GetTele_groupeAggregateType = { + [P in keyof T & keyof AggregateTele_groupe]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type tele_groupeGroupByArgs = { + where?: Prisma.tele_groupeWhereInput + orderBy?: Prisma.tele_groupeOrderByWithAggregationInput | Prisma.tele_groupeOrderByWithAggregationInput[] + by: Prisma.Tele_groupeScalarFieldEnum[] | Prisma.Tele_groupeScalarFieldEnum + having?: Prisma.tele_groupeScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Tele_groupeCountAggregateInputType | true + _avg?: Tele_groupeAvgAggregateInputType + _sum?: Tele_groupeSumAggregateInputType + _min?: Tele_groupeMinAggregateInputType + _max?: Tele_groupeMaxAggregateInputType +} + +export type Tele_groupeGroupByOutputType = { + id: number + nom: string + small_desc: string + _count: Tele_groupeCountAggregateOutputType | null + _avg: Tele_groupeAvgAggregateOutputType | null + _sum: Tele_groupeSumAggregateOutputType | null + _min: Tele_groupeMinAggregateOutputType | null + _max: Tele_groupeMaxAggregateOutputType | null +} + +type GetTele_groupeGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Tele_groupeGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type tele_groupeWhereInput = { + AND?: Prisma.tele_groupeWhereInput | Prisma.tele_groupeWhereInput[] + OR?: Prisma.tele_groupeWhereInput[] + NOT?: Prisma.tele_groupeWhereInput | Prisma.tele_groupeWhereInput[] + id?: Prisma.IntFilter<"tele_groupe"> | number + nom?: Prisma.StringFilter<"tele_groupe"> | string + small_desc?: Prisma.StringFilter<"tele_groupe"> | string +} + +export type tele_groupeOrderByWithRelationInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + small_desc?: Prisma.SortOrder + _relevance?: Prisma.tele_groupeOrderByRelevanceInput +} + +export type tele_groupeWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.tele_groupeWhereInput | Prisma.tele_groupeWhereInput[] + OR?: Prisma.tele_groupeWhereInput[] + NOT?: Prisma.tele_groupeWhereInput | Prisma.tele_groupeWhereInput[] + nom?: Prisma.StringFilter<"tele_groupe"> | string + small_desc?: Prisma.StringFilter<"tele_groupe"> | string +}, "id"> + +export type tele_groupeOrderByWithAggregationInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + small_desc?: Prisma.SortOrder + _count?: Prisma.tele_groupeCountOrderByAggregateInput + _avg?: Prisma.tele_groupeAvgOrderByAggregateInput + _max?: Prisma.tele_groupeMaxOrderByAggregateInput + _min?: Prisma.tele_groupeMinOrderByAggregateInput + _sum?: Prisma.tele_groupeSumOrderByAggregateInput +} + +export type tele_groupeScalarWhereWithAggregatesInput = { + AND?: Prisma.tele_groupeScalarWhereWithAggregatesInput | Prisma.tele_groupeScalarWhereWithAggregatesInput[] + OR?: Prisma.tele_groupeScalarWhereWithAggregatesInput[] + NOT?: Prisma.tele_groupeScalarWhereWithAggregatesInput | Prisma.tele_groupeScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"tele_groupe"> | number + nom?: Prisma.StringWithAggregatesFilter<"tele_groupe"> | string + small_desc?: Prisma.StringWithAggregatesFilter<"tele_groupe"> | string +} + +export type tele_groupeCreateInput = { + nom: string + small_desc: string +} + +export type tele_groupeUncheckedCreateInput = { + id?: number + nom: string + small_desc: string +} + +export type tele_groupeUpdateInput = { + nom?: Prisma.StringFieldUpdateOperationsInput | string + small_desc?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_groupeUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + nom?: Prisma.StringFieldUpdateOperationsInput | string + small_desc?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_groupeCreateManyInput = { + id?: number + nom: string + small_desc: string +} + +export type tele_groupeUpdateManyMutationInput = { + nom?: Prisma.StringFieldUpdateOperationsInput | string + small_desc?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_groupeUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + nom?: Prisma.StringFieldUpdateOperationsInput | string + small_desc?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_groupeOrderByRelevanceInput = { + fields: Prisma.tele_groupeOrderByRelevanceFieldEnum | Prisma.tele_groupeOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type tele_groupeCountOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + small_desc?: Prisma.SortOrder +} + +export type tele_groupeAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type tele_groupeMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + small_desc?: Prisma.SortOrder +} + +export type tele_groupeMinOrderByAggregateInput = { + id?: Prisma.SortOrder + nom?: Prisma.SortOrder + small_desc?: Prisma.SortOrder +} + +export type tele_groupeSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type tele_groupeSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + nom?: boolean + small_desc?: boolean +}, ExtArgs["result"]["tele_groupe"]> + + + +export type tele_groupeSelectScalar = { + id?: boolean + nom?: boolean + small_desc?: boolean +} + +export type tele_groupeOmit = runtime.Types.Extensions.GetOmit<"id" | "nom" | "small_desc", ExtArgs["result"]["tele_groupe"]> + +export type $tele_groupePayload = { + name: "tele_groupe" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + nom: string + small_desc: string + }, ExtArgs["result"]["tele_groupe"]> + composites: {} +} + +export type tele_groupeGetPayload = runtime.Types.Result.GetResult + +export type tele_groupeCountArgs = + Omit & { + select?: Tele_groupeCountAggregateInputType | true + } + +export interface tele_groupeDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['tele_groupe'], meta: { name: 'tele_groupe' } } + /** + * Find zero or one Tele_groupe that matches the filter. + * @param {tele_groupeFindUniqueArgs} args - Arguments to find a Tele_groupe + * @example + * // Get one Tele_groupe + * const tele_groupe = await prisma.tele_groupe.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__tele_groupeClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Tele_groupe that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {tele_groupeFindUniqueOrThrowArgs} args - Arguments to find a Tele_groupe + * @example + * // Get one Tele_groupe + * const tele_groupe = await prisma.tele_groupe.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__tele_groupeClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_groupe 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 {tele_groupeFindFirstArgs} args - Arguments to find a Tele_groupe + * @example + * // Get one Tele_groupe + * const tele_groupe = await prisma.tele_groupe.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_groupeClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_groupe 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 {tele_groupeFindFirstOrThrowArgs} args - Arguments to find a Tele_groupe + * @example + * // Get one Tele_groupe + * const tele_groupe = await prisma.tele_groupe.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_groupeClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Tele_groupes 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 {tele_groupeFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Tele_groupes + * const tele_groupes = await prisma.tele_groupe.findMany() + * + * // Get first 10 Tele_groupes + * const tele_groupes = await prisma.tele_groupe.findMany({ take: 10 }) + * + * // Only select the `id` + * const tele_groupeWithIdOnly = await prisma.tele_groupe.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Tele_groupe. + * @param {tele_groupeCreateArgs} args - Arguments to create a Tele_groupe. + * @example + * // Create one Tele_groupe + * const Tele_groupe = await prisma.tele_groupe.create({ + * data: { + * // ... data to create a Tele_groupe + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__tele_groupeClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Tele_groupes. + * @param {tele_groupeCreateManyArgs} args - Arguments to create many Tele_groupes. + * @example + * // Create many Tele_groupes + * const tele_groupe = await prisma.tele_groupe.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Tele_groupe. + * @param {tele_groupeDeleteArgs} args - Arguments to delete one Tele_groupe. + * @example + * // Delete one Tele_groupe + * const Tele_groupe = await prisma.tele_groupe.delete({ + * where: { + * // ... filter to delete one Tele_groupe + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__tele_groupeClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Tele_groupe. + * @param {tele_groupeUpdateArgs} args - Arguments to update one Tele_groupe. + * @example + * // Update one Tele_groupe + * const tele_groupe = await prisma.tele_groupe.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__tele_groupeClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Tele_groupes. + * @param {tele_groupeDeleteManyArgs} args - Arguments to filter Tele_groupes to delete. + * @example + * // Delete a few Tele_groupes + * const { count } = await prisma.tele_groupe.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Tele_groupes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_groupeUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Tele_groupes + * const tele_groupe = await prisma.tele_groupe.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Tele_groupe. + * @param {tele_groupeUpsertArgs} args - Arguments to update or create a Tele_groupe. + * @example + * // Update or create a Tele_groupe + * const tele_groupe = await prisma.tele_groupe.upsert({ + * create: { + * // ... data to create a Tele_groupe + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Tele_groupe we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__tele_groupeClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Tele_groupes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_groupeCountArgs} args - Arguments to filter Tele_groupes to count. + * @example + * // Count the number of Tele_groupes + * const count = await prisma.tele_groupe.count({ + * where: { + * // ... the filter for the Tele_groupes 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 Tele_groupe. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Tele_groupeAggregateArgs} 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 Tele_groupe. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_groupeGroupByArgs} 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 tele_groupeGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: tele_groupeGroupByArgs['orderBy'] } + : { orderBy?: tele_groupeGroupByArgs['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 ? GetTele_groupeGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the tele_groupe model + */ +readonly fields: tele_groupeFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for tele_groupe. + * 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__tele_groupeClient 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 tele_groupe model + */ +export interface tele_groupeFieldRefs { + readonly id: Prisma.FieldRef<"tele_groupe", 'Int'> + readonly nom: Prisma.FieldRef<"tele_groupe", 'String'> + readonly small_desc: Prisma.FieldRef<"tele_groupe", 'String'> +} + + +// Custom InputTypes +/** + * tele_groupe findUnique + */ +export type tele_groupeFindUniqueArgs = { + /** + * Select specific fields to fetch from the tele_groupe + */ + select?: Prisma.tele_groupeSelect | null + /** + * Omit specific fields from the tele_groupe + */ + omit?: Prisma.tele_groupeOmit | null + /** + * Filter, which tele_groupe to fetch. + */ + where: Prisma.tele_groupeWhereUniqueInput +} + +/** + * tele_groupe findUniqueOrThrow + */ +export type tele_groupeFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_groupe + */ + select?: Prisma.tele_groupeSelect | null + /** + * Omit specific fields from the tele_groupe + */ + omit?: Prisma.tele_groupeOmit | null + /** + * Filter, which tele_groupe to fetch. + */ + where: Prisma.tele_groupeWhereUniqueInput +} + +/** + * tele_groupe findFirst + */ +export type tele_groupeFindFirstArgs = { + /** + * Select specific fields to fetch from the tele_groupe + */ + select?: Prisma.tele_groupeSelect | null + /** + * Omit specific fields from the tele_groupe + */ + omit?: Prisma.tele_groupeOmit | null + /** + * Filter, which tele_groupe to fetch. + */ + where?: Prisma.tele_groupeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_groupes to fetch. + */ + orderBy?: Prisma.tele_groupeOrderByWithRelationInput | Prisma.tele_groupeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_groupes. + */ + cursor?: Prisma.tele_groupeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_groupes 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` tele_groupes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_groupes. + */ + distinct?: Prisma.Tele_groupeScalarFieldEnum | Prisma.Tele_groupeScalarFieldEnum[] +} + +/** + * tele_groupe findFirstOrThrow + */ +export type tele_groupeFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_groupe + */ + select?: Prisma.tele_groupeSelect | null + /** + * Omit specific fields from the tele_groupe + */ + omit?: Prisma.tele_groupeOmit | null + /** + * Filter, which tele_groupe to fetch. + */ + where?: Prisma.tele_groupeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_groupes to fetch. + */ + orderBy?: Prisma.tele_groupeOrderByWithRelationInput | Prisma.tele_groupeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_groupes. + */ + cursor?: Prisma.tele_groupeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_groupes 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` tele_groupes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_groupes. + */ + distinct?: Prisma.Tele_groupeScalarFieldEnum | Prisma.Tele_groupeScalarFieldEnum[] +} + +/** + * tele_groupe findMany + */ +export type tele_groupeFindManyArgs = { + /** + * Select specific fields to fetch from the tele_groupe + */ + select?: Prisma.tele_groupeSelect | null + /** + * Omit specific fields from the tele_groupe + */ + omit?: Prisma.tele_groupeOmit | null + /** + * Filter, which tele_groupes to fetch. + */ + where?: Prisma.tele_groupeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_groupes to fetch. + */ + orderBy?: Prisma.tele_groupeOrderByWithRelationInput | Prisma.tele_groupeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing tele_groupes. + */ + cursor?: Prisma.tele_groupeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_groupes 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` tele_groupes. + */ + skip?: number + distinct?: Prisma.Tele_groupeScalarFieldEnum | Prisma.Tele_groupeScalarFieldEnum[] +} + +/** + * tele_groupe create + */ +export type tele_groupeCreateArgs = { + /** + * Select specific fields to fetch from the tele_groupe + */ + select?: Prisma.tele_groupeSelect | null + /** + * Omit specific fields from the tele_groupe + */ + omit?: Prisma.tele_groupeOmit | null + /** + * The data needed to create a tele_groupe. + */ + data: Prisma.XOR +} + +/** + * tele_groupe createMany + */ +export type tele_groupeCreateManyArgs = { + /** + * The data used to create many tele_groupes. + */ + data: Prisma.tele_groupeCreateManyInput | Prisma.tele_groupeCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * tele_groupe update + */ +export type tele_groupeUpdateArgs = { + /** + * Select specific fields to fetch from the tele_groupe + */ + select?: Prisma.tele_groupeSelect | null + /** + * Omit specific fields from the tele_groupe + */ + omit?: Prisma.tele_groupeOmit | null + /** + * The data needed to update a tele_groupe. + */ + data: Prisma.XOR + /** + * Choose, which tele_groupe to update. + */ + where: Prisma.tele_groupeWhereUniqueInput +} + +/** + * tele_groupe updateMany + */ +export type tele_groupeUpdateManyArgs = { + /** + * The data used to update tele_groupes. + */ + data: Prisma.XOR + /** + * Filter which tele_groupes to update + */ + where?: Prisma.tele_groupeWhereInput + /** + * Limit how many tele_groupes to update. + */ + limit?: number +} + +/** + * tele_groupe upsert + */ +export type tele_groupeUpsertArgs = { + /** + * Select specific fields to fetch from the tele_groupe + */ + select?: Prisma.tele_groupeSelect | null + /** + * Omit specific fields from the tele_groupe + */ + omit?: Prisma.tele_groupeOmit | null + /** + * The filter to search for the tele_groupe to update in case it exists. + */ + where: Prisma.tele_groupeWhereUniqueInput + /** + * In case the tele_groupe found by the `where` argument doesn't exist, create a new tele_groupe with this data. + */ + create: Prisma.XOR + /** + * In case the tele_groupe was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * tele_groupe delete + */ +export type tele_groupeDeleteArgs = { + /** + * Select specific fields to fetch from the tele_groupe + */ + select?: Prisma.tele_groupeSelect | null + /** + * Omit specific fields from the tele_groupe + */ + omit?: Prisma.tele_groupeOmit | null + /** + * Filter which tele_groupe to delete. + */ + where: Prisma.tele_groupeWhereUniqueInput +} + +/** + * tele_groupe deleteMany + */ +export type tele_groupeDeleteManyArgs = { + /** + * Filter which tele_groupes to delete + */ + where?: Prisma.tele_groupeWhereInput + /** + * Limit how many tele_groupes to delete. + */ + limit?: number +} + +/** + * tele_groupe without action + */ +export type tele_groupeDefaultArgs = { + /** + * Select specific fields to fetch from the tele_groupe + */ + select?: Prisma.tele_groupeSelect | null + /** + * Omit specific fields from the tele_groupe + */ + omit?: Prisma.tele_groupeOmit | null +} diff --git a/prisma/generated/mariadb/models/tele_network.ts b/prisma/generated/mariadb/models/tele_network.ts new file mode 100644 index 0000000..8ebd417 --- /dev/null +++ b/prisma/generated/mariadb/models/tele_network.ts @@ -0,0 +1,1027 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `tele_network` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model tele_network + * + */ +export type tele_networkModel = runtime.Types.Result.DefaultSelection + +export type AggregateTele_network = { + _count: Tele_networkCountAggregateOutputType | null + _avg: Tele_networkAvgAggregateOutputType | null + _sum: Tele_networkSumAggregateOutputType | null + _min: Tele_networkMinAggregateOutputType | null + _max: Tele_networkMaxAggregateOutputType | null +} + +export type Tele_networkAvgAggregateOutputType = { + id: number | null +} + +export type Tele_networkSumAggregateOutputType = { + id: number | null +} + +export type Tele_networkMinAggregateOutputType = { + id: number | null + network_name: string | null + fournisseur: string | null +} + +export type Tele_networkMaxAggregateOutputType = { + id: number | null + network_name: string | null + fournisseur: string | null +} + +export type Tele_networkCountAggregateOutputType = { + id: number + network_name: number + fournisseur: number + _all: number +} + + +export type Tele_networkAvgAggregateInputType = { + id?: true +} + +export type Tele_networkSumAggregateInputType = { + id?: true +} + +export type Tele_networkMinAggregateInputType = { + id?: true + network_name?: true + fournisseur?: true +} + +export type Tele_networkMaxAggregateInputType = { + id?: true + network_name?: true + fournisseur?: true +} + +export type Tele_networkCountAggregateInputType = { + id?: true + network_name?: true + fournisseur?: true + _all?: true +} + +export type Tele_networkAggregateArgs = { + /** + * Filter which tele_network to aggregate. + */ + where?: Prisma.tele_networkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_networks to fetch. + */ + orderBy?: Prisma.tele_networkOrderByWithRelationInput | Prisma.tele_networkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.tele_networkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_networks 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` tele_networks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned tele_networks + **/ + _count?: true | Tele_networkCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Tele_networkAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Tele_networkSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Tele_networkMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Tele_networkMaxAggregateInputType +} + +export type GetTele_networkAggregateType = { + [P in keyof T & keyof AggregateTele_network]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type tele_networkGroupByArgs = { + where?: Prisma.tele_networkWhereInput + orderBy?: Prisma.tele_networkOrderByWithAggregationInput | Prisma.tele_networkOrderByWithAggregationInput[] + by: Prisma.Tele_networkScalarFieldEnum[] | Prisma.Tele_networkScalarFieldEnum + having?: Prisma.tele_networkScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Tele_networkCountAggregateInputType | true + _avg?: Tele_networkAvgAggregateInputType + _sum?: Tele_networkSumAggregateInputType + _min?: Tele_networkMinAggregateInputType + _max?: Tele_networkMaxAggregateInputType +} + +export type Tele_networkGroupByOutputType = { + id: number + network_name: string + fournisseur: string + _count: Tele_networkCountAggregateOutputType | null + _avg: Tele_networkAvgAggregateOutputType | null + _sum: Tele_networkSumAggregateOutputType | null + _min: Tele_networkMinAggregateOutputType | null + _max: Tele_networkMaxAggregateOutputType | null +} + +type GetTele_networkGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Tele_networkGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type tele_networkWhereInput = { + AND?: Prisma.tele_networkWhereInput | Prisma.tele_networkWhereInput[] + OR?: Prisma.tele_networkWhereInput[] + NOT?: Prisma.tele_networkWhereInput | Prisma.tele_networkWhereInput[] + id?: Prisma.IntFilter<"tele_network"> | number + network_name?: Prisma.StringFilter<"tele_network"> | string + fournisseur?: Prisma.StringFilter<"tele_network"> | string +} + +export type tele_networkOrderByWithRelationInput = { + id?: Prisma.SortOrder + network_name?: Prisma.SortOrder + fournisseur?: Prisma.SortOrder + _relevance?: Prisma.tele_networkOrderByRelevanceInput +} + +export type tele_networkWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.tele_networkWhereInput | Prisma.tele_networkWhereInput[] + OR?: Prisma.tele_networkWhereInput[] + NOT?: Prisma.tele_networkWhereInput | Prisma.tele_networkWhereInput[] + network_name?: Prisma.StringFilter<"tele_network"> | string + fournisseur?: Prisma.StringFilter<"tele_network"> | string +}, "id"> + +export type tele_networkOrderByWithAggregationInput = { + id?: Prisma.SortOrder + network_name?: Prisma.SortOrder + fournisseur?: Prisma.SortOrder + _count?: Prisma.tele_networkCountOrderByAggregateInput + _avg?: Prisma.tele_networkAvgOrderByAggregateInput + _max?: Prisma.tele_networkMaxOrderByAggregateInput + _min?: Prisma.tele_networkMinOrderByAggregateInput + _sum?: Prisma.tele_networkSumOrderByAggregateInput +} + +export type tele_networkScalarWhereWithAggregatesInput = { + AND?: Prisma.tele_networkScalarWhereWithAggregatesInput | Prisma.tele_networkScalarWhereWithAggregatesInput[] + OR?: Prisma.tele_networkScalarWhereWithAggregatesInput[] + NOT?: Prisma.tele_networkScalarWhereWithAggregatesInput | Prisma.tele_networkScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"tele_network"> | number + network_name?: Prisma.StringWithAggregatesFilter<"tele_network"> | string + fournisseur?: Prisma.StringWithAggregatesFilter<"tele_network"> | string +} + +export type tele_networkCreateInput = { + network_name: string + fournisseur: string +} + +export type tele_networkUncheckedCreateInput = { + id?: number + network_name: string + fournisseur: string +} + +export type tele_networkUpdateInput = { + network_name?: Prisma.StringFieldUpdateOperationsInput | string + fournisseur?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_networkUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + network_name?: Prisma.StringFieldUpdateOperationsInput | string + fournisseur?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_networkCreateManyInput = { + id?: number + network_name: string + fournisseur: string +} + +export type tele_networkUpdateManyMutationInput = { + network_name?: Prisma.StringFieldUpdateOperationsInput | string + fournisseur?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_networkUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + network_name?: Prisma.StringFieldUpdateOperationsInput | string + fournisseur?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_networkOrderByRelevanceInput = { + fields: Prisma.tele_networkOrderByRelevanceFieldEnum | Prisma.tele_networkOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type tele_networkCountOrderByAggregateInput = { + id?: Prisma.SortOrder + network_name?: Prisma.SortOrder + fournisseur?: Prisma.SortOrder +} + +export type tele_networkAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type tele_networkMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + network_name?: Prisma.SortOrder + fournisseur?: Prisma.SortOrder +} + +export type tele_networkMinOrderByAggregateInput = { + id?: Prisma.SortOrder + network_name?: Prisma.SortOrder + fournisseur?: Prisma.SortOrder +} + +export type tele_networkSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type tele_networkSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + network_name?: boolean + fournisseur?: boolean +}, ExtArgs["result"]["tele_network"]> + + + +export type tele_networkSelectScalar = { + id?: boolean + network_name?: boolean + fournisseur?: boolean +} + +export type tele_networkOmit = runtime.Types.Extensions.GetOmit<"id" | "network_name" | "fournisseur", ExtArgs["result"]["tele_network"]> + +export type $tele_networkPayload = { + name: "tele_network" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + network_name: string + fournisseur: string + }, ExtArgs["result"]["tele_network"]> + composites: {} +} + +export type tele_networkGetPayload = runtime.Types.Result.GetResult + +export type tele_networkCountArgs = + Omit & { + select?: Tele_networkCountAggregateInputType | true + } + +export interface tele_networkDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['tele_network'], meta: { name: 'tele_network' } } + /** + * Find zero or one Tele_network that matches the filter. + * @param {tele_networkFindUniqueArgs} args - Arguments to find a Tele_network + * @example + * // Get one Tele_network + * const tele_network = await prisma.tele_network.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__tele_networkClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Tele_network that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {tele_networkFindUniqueOrThrowArgs} args - Arguments to find a Tele_network + * @example + * // Get one Tele_network + * const tele_network = await prisma.tele_network.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__tele_networkClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_network 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 {tele_networkFindFirstArgs} args - Arguments to find a Tele_network + * @example + * // Get one Tele_network + * const tele_network = await prisma.tele_network.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_networkClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_network 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 {tele_networkFindFirstOrThrowArgs} args - Arguments to find a Tele_network + * @example + * // Get one Tele_network + * const tele_network = await prisma.tele_network.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_networkClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Tele_networks 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 {tele_networkFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Tele_networks + * const tele_networks = await prisma.tele_network.findMany() + * + * // Get first 10 Tele_networks + * const tele_networks = await prisma.tele_network.findMany({ take: 10 }) + * + * // Only select the `id` + * const tele_networkWithIdOnly = await prisma.tele_network.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Tele_network. + * @param {tele_networkCreateArgs} args - Arguments to create a Tele_network. + * @example + * // Create one Tele_network + * const Tele_network = await prisma.tele_network.create({ + * data: { + * // ... data to create a Tele_network + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__tele_networkClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Tele_networks. + * @param {tele_networkCreateManyArgs} args - Arguments to create many Tele_networks. + * @example + * // Create many Tele_networks + * const tele_network = await prisma.tele_network.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Tele_network. + * @param {tele_networkDeleteArgs} args - Arguments to delete one Tele_network. + * @example + * // Delete one Tele_network + * const Tele_network = await prisma.tele_network.delete({ + * where: { + * // ... filter to delete one Tele_network + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__tele_networkClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Tele_network. + * @param {tele_networkUpdateArgs} args - Arguments to update one Tele_network. + * @example + * // Update one Tele_network + * const tele_network = await prisma.tele_network.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__tele_networkClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Tele_networks. + * @param {tele_networkDeleteManyArgs} args - Arguments to filter Tele_networks to delete. + * @example + * // Delete a few Tele_networks + * const { count } = await prisma.tele_network.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Tele_networks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_networkUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Tele_networks + * const tele_network = await prisma.tele_network.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Tele_network. + * @param {tele_networkUpsertArgs} args - Arguments to update or create a Tele_network. + * @example + * // Update or create a Tele_network + * const tele_network = await prisma.tele_network.upsert({ + * create: { + * // ... data to create a Tele_network + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Tele_network we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__tele_networkClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Tele_networks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_networkCountArgs} args - Arguments to filter Tele_networks to count. + * @example + * // Count the number of Tele_networks + * const count = await prisma.tele_network.count({ + * where: { + * // ... the filter for the Tele_networks 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 Tele_network. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Tele_networkAggregateArgs} 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 Tele_network. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_networkGroupByArgs} 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 tele_networkGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: tele_networkGroupByArgs['orderBy'] } + : { orderBy?: tele_networkGroupByArgs['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 ? GetTele_networkGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the tele_network model + */ +readonly fields: tele_networkFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for tele_network. + * 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__tele_networkClient 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 tele_network model + */ +export interface tele_networkFieldRefs { + readonly id: Prisma.FieldRef<"tele_network", 'Int'> + readonly network_name: Prisma.FieldRef<"tele_network", 'String'> + readonly fournisseur: Prisma.FieldRef<"tele_network", 'String'> +} + + +// Custom InputTypes +/** + * tele_network findUnique + */ +export type tele_networkFindUniqueArgs = { + /** + * Select specific fields to fetch from the tele_network + */ + select?: Prisma.tele_networkSelect | null + /** + * Omit specific fields from the tele_network + */ + omit?: Prisma.tele_networkOmit | null + /** + * Filter, which tele_network to fetch. + */ + where: Prisma.tele_networkWhereUniqueInput +} + +/** + * tele_network findUniqueOrThrow + */ +export type tele_networkFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_network + */ + select?: Prisma.tele_networkSelect | null + /** + * Omit specific fields from the tele_network + */ + omit?: Prisma.tele_networkOmit | null + /** + * Filter, which tele_network to fetch. + */ + where: Prisma.tele_networkWhereUniqueInput +} + +/** + * tele_network findFirst + */ +export type tele_networkFindFirstArgs = { + /** + * Select specific fields to fetch from the tele_network + */ + select?: Prisma.tele_networkSelect | null + /** + * Omit specific fields from the tele_network + */ + omit?: Prisma.tele_networkOmit | null + /** + * Filter, which tele_network to fetch. + */ + where?: Prisma.tele_networkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_networks to fetch. + */ + orderBy?: Prisma.tele_networkOrderByWithRelationInput | Prisma.tele_networkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_networks. + */ + cursor?: Prisma.tele_networkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_networks 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` tele_networks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_networks. + */ + distinct?: Prisma.Tele_networkScalarFieldEnum | Prisma.Tele_networkScalarFieldEnum[] +} + +/** + * tele_network findFirstOrThrow + */ +export type tele_networkFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_network + */ + select?: Prisma.tele_networkSelect | null + /** + * Omit specific fields from the tele_network + */ + omit?: Prisma.tele_networkOmit | null + /** + * Filter, which tele_network to fetch. + */ + where?: Prisma.tele_networkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_networks to fetch. + */ + orderBy?: Prisma.tele_networkOrderByWithRelationInput | Prisma.tele_networkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_networks. + */ + cursor?: Prisma.tele_networkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_networks 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` tele_networks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_networks. + */ + distinct?: Prisma.Tele_networkScalarFieldEnum | Prisma.Tele_networkScalarFieldEnum[] +} + +/** + * tele_network findMany + */ +export type tele_networkFindManyArgs = { + /** + * Select specific fields to fetch from the tele_network + */ + select?: Prisma.tele_networkSelect | null + /** + * Omit specific fields from the tele_network + */ + omit?: Prisma.tele_networkOmit | null + /** + * Filter, which tele_networks to fetch. + */ + where?: Prisma.tele_networkWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_networks to fetch. + */ + orderBy?: Prisma.tele_networkOrderByWithRelationInput | Prisma.tele_networkOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing tele_networks. + */ + cursor?: Prisma.tele_networkWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_networks 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` tele_networks. + */ + skip?: number + distinct?: Prisma.Tele_networkScalarFieldEnum | Prisma.Tele_networkScalarFieldEnum[] +} + +/** + * tele_network create + */ +export type tele_networkCreateArgs = { + /** + * Select specific fields to fetch from the tele_network + */ + select?: Prisma.tele_networkSelect | null + /** + * Omit specific fields from the tele_network + */ + omit?: Prisma.tele_networkOmit | null + /** + * The data needed to create a tele_network. + */ + data: Prisma.XOR +} + +/** + * tele_network createMany + */ +export type tele_networkCreateManyArgs = { + /** + * The data used to create many tele_networks. + */ + data: Prisma.tele_networkCreateManyInput | Prisma.tele_networkCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * tele_network update + */ +export type tele_networkUpdateArgs = { + /** + * Select specific fields to fetch from the tele_network + */ + select?: Prisma.tele_networkSelect | null + /** + * Omit specific fields from the tele_network + */ + omit?: Prisma.tele_networkOmit | null + /** + * The data needed to update a tele_network. + */ + data: Prisma.XOR + /** + * Choose, which tele_network to update. + */ + where: Prisma.tele_networkWhereUniqueInput +} + +/** + * tele_network updateMany + */ +export type tele_networkUpdateManyArgs = { + /** + * The data used to update tele_networks. + */ + data: Prisma.XOR + /** + * Filter which tele_networks to update + */ + where?: Prisma.tele_networkWhereInput + /** + * Limit how many tele_networks to update. + */ + limit?: number +} + +/** + * tele_network upsert + */ +export type tele_networkUpsertArgs = { + /** + * Select specific fields to fetch from the tele_network + */ + select?: Prisma.tele_networkSelect | null + /** + * Omit specific fields from the tele_network + */ + omit?: Prisma.tele_networkOmit | null + /** + * The filter to search for the tele_network to update in case it exists. + */ + where: Prisma.tele_networkWhereUniqueInput + /** + * In case the tele_network found by the `where` argument doesn't exist, create a new tele_network with this data. + */ + create: Prisma.XOR + /** + * In case the tele_network was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * tele_network delete + */ +export type tele_networkDeleteArgs = { + /** + * Select specific fields to fetch from the tele_network + */ + select?: Prisma.tele_networkSelect | null + /** + * Omit specific fields from the tele_network + */ + omit?: Prisma.tele_networkOmit | null + /** + * Filter which tele_network to delete. + */ + where: Prisma.tele_networkWhereUniqueInput +} + +/** + * tele_network deleteMany + */ +export type tele_networkDeleteManyArgs = { + /** + * Filter which tele_networks to delete + */ + where?: Prisma.tele_networkWhereInput + /** + * Limit how many tele_networks to delete. + */ + limit?: number +} + +/** + * tele_network without action + */ +export type tele_networkDefaultArgs = { + /** + * Select specific fields to fetch from the tele_network + */ + select?: Prisma.tele_networkSelect | null + /** + * Omit specific fields from the tele_network + */ + omit?: Prisma.tele_networkOmit | null +} diff --git a/prisma/generated/mariadb/models/tele_pack.ts b/prisma/generated/mariadb/models/tele_pack.ts new file mode 100644 index 0000000..6c8655c --- /dev/null +++ b/prisma/generated/mariadb/models/tele_pack.ts @@ -0,0 +1,1207 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `tele_pack` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model tele_pack + * + */ +export type tele_packModel = runtime.Types.Result.DefaultSelection + +export type AggregateTele_pack = { + _count: Tele_packCountAggregateOutputType | null + _avg: Tele_packAvgAggregateOutputType | null + _sum: Tele_packSumAggregateOutputType | null + _min: Tele_packMinAggregateOutputType | null + _max: Tele_packMaxAggregateOutputType | null +} + +export type Tele_packAvgAggregateOutputType = { + id: number | null + product_id: number | null + ccsa_packageID: number | null + rapport_bell: number | null + epgId: number | null +} + +export type Tele_packSumAggregateOutputType = { + id: number | null + product_id: number | null + ccsa_packageID: number | null + rapport_bell: number | null + epgId: number | null +} + +export type Tele_packMinAggregateOutputType = { + id: number | null + product_id: number | null + channels: string | null + actif: boolean | null + ccsa_packageID: number | null + ccsa_desc: string | null + rapport_bell: number | null + bell_name: string | null + epgId: number | null +} + +export type Tele_packMaxAggregateOutputType = { + id: number | null + product_id: number | null + channels: string | null + actif: boolean | null + ccsa_packageID: number | null + ccsa_desc: string | null + rapport_bell: number | null + bell_name: string | null + epgId: number | null +} + +export type Tele_packCountAggregateOutputType = { + id: number + product_id: number + channels: number + actif: number + ccsa_packageID: number + ccsa_desc: number + rapport_bell: number + bell_name: number + epgId: number + _all: number +} + + +export type Tele_packAvgAggregateInputType = { + id?: true + product_id?: true + ccsa_packageID?: true + rapport_bell?: true + epgId?: true +} + +export type Tele_packSumAggregateInputType = { + id?: true + product_id?: true + ccsa_packageID?: true + rapport_bell?: true + epgId?: true +} + +export type Tele_packMinAggregateInputType = { + id?: true + product_id?: true + channels?: true + actif?: true + ccsa_packageID?: true + ccsa_desc?: true + rapport_bell?: true + bell_name?: true + epgId?: true +} + +export type Tele_packMaxAggregateInputType = { + id?: true + product_id?: true + channels?: true + actif?: true + ccsa_packageID?: true + ccsa_desc?: true + rapport_bell?: true + bell_name?: true + epgId?: true +} + +export type Tele_packCountAggregateInputType = { + id?: true + product_id?: true + channels?: true + actif?: true + ccsa_packageID?: true + ccsa_desc?: true + rapport_bell?: true + bell_name?: true + epgId?: true + _all?: true +} + +export type Tele_packAggregateArgs = { + /** + * Filter which tele_pack to aggregate. + */ + where?: Prisma.tele_packWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_packs to fetch. + */ + orderBy?: Prisma.tele_packOrderByWithRelationInput | Prisma.tele_packOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.tele_packWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_packs 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` tele_packs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned tele_packs + **/ + _count?: true | Tele_packCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Tele_packAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Tele_packSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Tele_packMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Tele_packMaxAggregateInputType +} + +export type GetTele_packAggregateType = { + [P in keyof T & keyof AggregateTele_pack]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type tele_packGroupByArgs = { + where?: Prisma.tele_packWhereInput + orderBy?: Prisma.tele_packOrderByWithAggregationInput | Prisma.tele_packOrderByWithAggregationInput[] + by: Prisma.Tele_packScalarFieldEnum[] | Prisma.Tele_packScalarFieldEnum + having?: Prisma.tele_packScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Tele_packCountAggregateInputType | true + _avg?: Tele_packAvgAggregateInputType + _sum?: Tele_packSumAggregateInputType + _min?: Tele_packMinAggregateInputType + _max?: Tele_packMaxAggregateInputType +} + +export type Tele_packGroupByOutputType = { + id: number + product_id: number + channels: string + actif: boolean + ccsa_packageID: number + ccsa_desc: string + rapport_bell: number + bell_name: string | null + epgId: number | null + _count: Tele_packCountAggregateOutputType | null + _avg: Tele_packAvgAggregateOutputType | null + _sum: Tele_packSumAggregateOutputType | null + _min: Tele_packMinAggregateOutputType | null + _max: Tele_packMaxAggregateOutputType | null +} + +type GetTele_packGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Tele_packGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type tele_packWhereInput = { + AND?: Prisma.tele_packWhereInput | Prisma.tele_packWhereInput[] + OR?: Prisma.tele_packWhereInput[] + NOT?: Prisma.tele_packWhereInput | Prisma.tele_packWhereInput[] + id?: Prisma.IntFilter<"tele_pack"> | number + product_id?: Prisma.IntFilter<"tele_pack"> | number + channels?: Prisma.StringFilter<"tele_pack"> | string + actif?: Prisma.BoolFilter<"tele_pack"> | boolean + ccsa_packageID?: Prisma.IntFilter<"tele_pack"> | number + ccsa_desc?: Prisma.StringFilter<"tele_pack"> | string + rapport_bell?: Prisma.IntFilter<"tele_pack"> | number + bell_name?: Prisma.StringNullableFilter<"tele_pack"> | string | null + epgId?: Prisma.IntNullableFilter<"tele_pack"> | number | null +} + +export type tele_packOrderByWithRelationInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + channels?: Prisma.SortOrder + actif?: Prisma.SortOrder + ccsa_packageID?: Prisma.SortOrder + ccsa_desc?: Prisma.SortOrder + rapport_bell?: Prisma.SortOrder + bell_name?: Prisma.SortOrderInput | Prisma.SortOrder + epgId?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.tele_packOrderByRelevanceInput +} + +export type tele_packWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.tele_packWhereInput | Prisma.tele_packWhereInput[] + OR?: Prisma.tele_packWhereInput[] + NOT?: Prisma.tele_packWhereInput | Prisma.tele_packWhereInput[] + product_id?: Prisma.IntFilter<"tele_pack"> | number + channels?: Prisma.StringFilter<"tele_pack"> | string + actif?: Prisma.BoolFilter<"tele_pack"> | boolean + ccsa_packageID?: Prisma.IntFilter<"tele_pack"> | number + ccsa_desc?: Prisma.StringFilter<"tele_pack"> | string + rapport_bell?: Prisma.IntFilter<"tele_pack"> | number + bell_name?: Prisma.StringNullableFilter<"tele_pack"> | string | null + epgId?: Prisma.IntNullableFilter<"tele_pack"> | number | null +}, "id"> + +export type tele_packOrderByWithAggregationInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + channels?: Prisma.SortOrder + actif?: Prisma.SortOrder + ccsa_packageID?: Prisma.SortOrder + ccsa_desc?: Prisma.SortOrder + rapport_bell?: Prisma.SortOrder + bell_name?: Prisma.SortOrderInput | Prisma.SortOrder + epgId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.tele_packCountOrderByAggregateInput + _avg?: Prisma.tele_packAvgOrderByAggregateInput + _max?: Prisma.tele_packMaxOrderByAggregateInput + _min?: Prisma.tele_packMinOrderByAggregateInput + _sum?: Prisma.tele_packSumOrderByAggregateInput +} + +export type tele_packScalarWhereWithAggregatesInput = { + AND?: Prisma.tele_packScalarWhereWithAggregatesInput | Prisma.tele_packScalarWhereWithAggregatesInput[] + OR?: Prisma.tele_packScalarWhereWithAggregatesInput[] + NOT?: Prisma.tele_packScalarWhereWithAggregatesInput | Prisma.tele_packScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"tele_pack"> | number + product_id?: Prisma.IntWithAggregatesFilter<"tele_pack"> | number + channels?: Prisma.StringWithAggregatesFilter<"tele_pack"> | string + actif?: Prisma.BoolWithAggregatesFilter<"tele_pack"> | boolean + ccsa_packageID?: Prisma.IntWithAggregatesFilter<"tele_pack"> | number + ccsa_desc?: Prisma.StringWithAggregatesFilter<"tele_pack"> | string + rapport_bell?: Prisma.IntWithAggregatesFilter<"tele_pack"> | number + bell_name?: Prisma.StringNullableWithAggregatesFilter<"tele_pack"> | string | null + epgId?: Prisma.IntNullableWithAggregatesFilter<"tele_pack"> | number | null +} + +export type tele_packCreateInput = { + product_id: number + channels: string + actif?: boolean + ccsa_packageID: number + ccsa_desc: string + rapport_bell?: number + bell_name?: string | null + epgId?: number | null +} + +export type tele_packUncheckedCreateInput = { + id?: number + product_id: number + channels: string + actif?: boolean + ccsa_packageID: number + ccsa_desc: string + rapport_bell?: number + bell_name?: string | null + epgId?: number | null +} + +export type tele_packUpdateInput = { + product_id?: Prisma.IntFieldUpdateOperationsInput | number + channels?: Prisma.StringFieldUpdateOperationsInput | string + actif?: Prisma.BoolFieldUpdateOperationsInput | boolean + ccsa_packageID?: Prisma.IntFieldUpdateOperationsInput | number + ccsa_desc?: Prisma.StringFieldUpdateOperationsInput | string + rapport_bell?: Prisma.IntFieldUpdateOperationsInput | number + bell_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + epgId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type tele_packUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.IntFieldUpdateOperationsInput | number + channels?: Prisma.StringFieldUpdateOperationsInput | string + actif?: Prisma.BoolFieldUpdateOperationsInput | boolean + ccsa_packageID?: Prisma.IntFieldUpdateOperationsInput | number + ccsa_desc?: Prisma.StringFieldUpdateOperationsInput | string + rapport_bell?: Prisma.IntFieldUpdateOperationsInput | number + bell_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + epgId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type tele_packCreateManyInput = { + id?: number + product_id: number + channels: string + actif?: boolean + ccsa_packageID: number + ccsa_desc: string + rapport_bell?: number + bell_name?: string | null + epgId?: number | null +} + +export type tele_packUpdateManyMutationInput = { + product_id?: Prisma.IntFieldUpdateOperationsInput | number + channels?: Prisma.StringFieldUpdateOperationsInput | string + actif?: Prisma.BoolFieldUpdateOperationsInput | boolean + ccsa_packageID?: Prisma.IntFieldUpdateOperationsInput | number + ccsa_desc?: Prisma.StringFieldUpdateOperationsInput | string + rapport_bell?: Prisma.IntFieldUpdateOperationsInput | number + bell_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + epgId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type tele_packUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + product_id?: Prisma.IntFieldUpdateOperationsInput | number + channels?: Prisma.StringFieldUpdateOperationsInput | string + actif?: Prisma.BoolFieldUpdateOperationsInput | boolean + ccsa_packageID?: Prisma.IntFieldUpdateOperationsInput | number + ccsa_desc?: Prisma.StringFieldUpdateOperationsInput | string + rapport_bell?: Prisma.IntFieldUpdateOperationsInput | number + bell_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + epgId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type tele_packOrderByRelevanceInput = { + fields: Prisma.tele_packOrderByRelevanceFieldEnum | Prisma.tele_packOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type tele_packCountOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + channels?: Prisma.SortOrder + actif?: Prisma.SortOrder + ccsa_packageID?: Prisma.SortOrder + ccsa_desc?: Prisma.SortOrder + rapport_bell?: Prisma.SortOrder + bell_name?: Prisma.SortOrder + epgId?: Prisma.SortOrder +} + +export type tele_packAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + ccsa_packageID?: Prisma.SortOrder + rapport_bell?: Prisma.SortOrder + epgId?: Prisma.SortOrder +} + +export type tele_packMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + channels?: Prisma.SortOrder + actif?: Prisma.SortOrder + ccsa_packageID?: Prisma.SortOrder + ccsa_desc?: Prisma.SortOrder + rapport_bell?: Prisma.SortOrder + bell_name?: Prisma.SortOrder + epgId?: Prisma.SortOrder +} + +export type tele_packMinOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + channels?: Prisma.SortOrder + actif?: Prisma.SortOrder + ccsa_packageID?: Prisma.SortOrder + ccsa_desc?: Prisma.SortOrder + rapport_bell?: Prisma.SortOrder + bell_name?: Prisma.SortOrder + epgId?: Prisma.SortOrder +} + +export type tele_packSumOrderByAggregateInput = { + id?: Prisma.SortOrder + product_id?: Prisma.SortOrder + ccsa_packageID?: Prisma.SortOrder + rapport_bell?: Prisma.SortOrder + epgId?: Prisma.SortOrder +} + + + +export type tele_packSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + product_id?: boolean + channels?: boolean + actif?: boolean + ccsa_packageID?: boolean + ccsa_desc?: boolean + rapport_bell?: boolean + bell_name?: boolean + epgId?: boolean +}, ExtArgs["result"]["tele_pack"]> + + + +export type tele_packSelectScalar = { + id?: boolean + product_id?: boolean + channels?: boolean + actif?: boolean + ccsa_packageID?: boolean + ccsa_desc?: boolean + rapport_bell?: boolean + bell_name?: boolean + epgId?: boolean +} + +export type tele_packOmit = runtime.Types.Extensions.GetOmit<"id" | "product_id" | "channels" | "actif" | "ccsa_packageID" | "ccsa_desc" | "rapport_bell" | "bell_name" | "epgId", ExtArgs["result"]["tele_pack"]> + +export type $tele_packPayload = { + name: "tele_pack" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + product_id: number + channels: string + actif: boolean + ccsa_packageID: number + ccsa_desc: string + rapport_bell: number + bell_name: string | null + epgId: number | null + }, ExtArgs["result"]["tele_pack"]> + composites: {} +} + +export type tele_packGetPayload = runtime.Types.Result.GetResult + +export type tele_packCountArgs = + Omit & { + select?: Tele_packCountAggregateInputType | true + } + +export interface tele_packDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['tele_pack'], meta: { name: 'tele_pack' } } + /** + * Find zero or one Tele_pack that matches the filter. + * @param {tele_packFindUniqueArgs} args - Arguments to find a Tele_pack + * @example + * // Get one Tele_pack + * const tele_pack = await prisma.tele_pack.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__tele_packClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Tele_pack that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {tele_packFindUniqueOrThrowArgs} args - Arguments to find a Tele_pack + * @example + * // Get one Tele_pack + * const tele_pack = await prisma.tele_pack.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__tele_packClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_pack 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 {tele_packFindFirstArgs} args - Arguments to find a Tele_pack + * @example + * // Get one Tele_pack + * const tele_pack = await prisma.tele_pack.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_packClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_pack 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 {tele_packFindFirstOrThrowArgs} args - Arguments to find a Tele_pack + * @example + * // Get one Tele_pack + * const tele_pack = await prisma.tele_pack.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_packClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Tele_packs 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 {tele_packFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Tele_packs + * const tele_packs = await prisma.tele_pack.findMany() + * + * // Get first 10 Tele_packs + * const tele_packs = await prisma.tele_pack.findMany({ take: 10 }) + * + * // Only select the `id` + * const tele_packWithIdOnly = await prisma.tele_pack.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Tele_pack. + * @param {tele_packCreateArgs} args - Arguments to create a Tele_pack. + * @example + * // Create one Tele_pack + * const Tele_pack = await prisma.tele_pack.create({ + * data: { + * // ... data to create a Tele_pack + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__tele_packClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Tele_packs. + * @param {tele_packCreateManyArgs} args - Arguments to create many Tele_packs. + * @example + * // Create many Tele_packs + * const tele_pack = await prisma.tele_pack.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Tele_pack. + * @param {tele_packDeleteArgs} args - Arguments to delete one Tele_pack. + * @example + * // Delete one Tele_pack + * const Tele_pack = await prisma.tele_pack.delete({ + * where: { + * // ... filter to delete one Tele_pack + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__tele_packClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Tele_pack. + * @param {tele_packUpdateArgs} args - Arguments to update one Tele_pack. + * @example + * // Update one Tele_pack + * const tele_pack = await prisma.tele_pack.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__tele_packClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Tele_packs. + * @param {tele_packDeleteManyArgs} args - Arguments to filter Tele_packs to delete. + * @example + * // Delete a few Tele_packs + * const { count } = await prisma.tele_pack.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Tele_packs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_packUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Tele_packs + * const tele_pack = await prisma.tele_pack.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Tele_pack. + * @param {tele_packUpsertArgs} args - Arguments to update or create a Tele_pack. + * @example + * // Update or create a Tele_pack + * const tele_pack = await prisma.tele_pack.upsert({ + * create: { + * // ... data to create a Tele_pack + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Tele_pack we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__tele_packClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Tele_packs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_packCountArgs} args - Arguments to filter Tele_packs to count. + * @example + * // Count the number of Tele_packs + * const count = await prisma.tele_pack.count({ + * where: { + * // ... the filter for the Tele_packs 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 Tele_pack. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Tele_packAggregateArgs} 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 Tele_pack. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_packGroupByArgs} 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 tele_packGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: tele_packGroupByArgs['orderBy'] } + : { orderBy?: tele_packGroupByArgs['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 ? GetTele_packGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the tele_pack model + */ +readonly fields: tele_packFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for tele_pack. + * 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__tele_packClient 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 tele_pack model + */ +export interface tele_packFieldRefs { + readonly id: Prisma.FieldRef<"tele_pack", 'Int'> + readonly product_id: Prisma.FieldRef<"tele_pack", 'Int'> + readonly channels: Prisma.FieldRef<"tele_pack", 'String'> + readonly actif: Prisma.FieldRef<"tele_pack", 'Boolean'> + readonly ccsa_packageID: Prisma.FieldRef<"tele_pack", 'Int'> + readonly ccsa_desc: Prisma.FieldRef<"tele_pack", 'String'> + readonly rapport_bell: Prisma.FieldRef<"tele_pack", 'Int'> + readonly bell_name: Prisma.FieldRef<"tele_pack", 'String'> + readonly epgId: Prisma.FieldRef<"tele_pack", 'Int'> +} + + +// Custom InputTypes +/** + * tele_pack findUnique + */ +export type tele_packFindUniqueArgs = { + /** + * Select specific fields to fetch from the tele_pack + */ + select?: Prisma.tele_packSelect | null + /** + * Omit specific fields from the tele_pack + */ + omit?: Prisma.tele_packOmit | null + /** + * Filter, which tele_pack to fetch. + */ + where: Prisma.tele_packWhereUniqueInput +} + +/** + * tele_pack findUniqueOrThrow + */ +export type tele_packFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_pack + */ + select?: Prisma.tele_packSelect | null + /** + * Omit specific fields from the tele_pack + */ + omit?: Prisma.tele_packOmit | null + /** + * Filter, which tele_pack to fetch. + */ + where: Prisma.tele_packWhereUniqueInput +} + +/** + * tele_pack findFirst + */ +export type tele_packFindFirstArgs = { + /** + * Select specific fields to fetch from the tele_pack + */ + select?: Prisma.tele_packSelect | null + /** + * Omit specific fields from the tele_pack + */ + omit?: Prisma.tele_packOmit | null + /** + * Filter, which tele_pack to fetch. + */ + where?: Prisma.tele_packWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_packs to fetch. + */ + orderBy?: Prisma.tele_packOrderByWithRelationInput | Prisma.tele_packOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_packs. + */ + cursor?: Prisma.tele_packWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_packs 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` tele_packs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_packs. + */ + distinct?: Prisma.Tele_packScalarFieldEnum | Prisma.Tele_packScalarFieldEnum[] +} + +/** + * tele_pack findFirstOrThrow + */ +export type tele_packFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_pack + */ + select?: Prisma.tele_packSelect | null + /** + * Omit specific fields from the tele_pack + */ + omit?: Prisma.tele_packOmit | null + /** + * Filter, which tele_pack to fetch. + */ + where?: Prisma.tele_packWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_packs to fetch. + */ + orderBy?: Prisma.tele_packOrderByWithRelationInput | Prisma.tele_packOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_packs. + */ + cursor?: Prisma.tele_packWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_packs 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` tele_packs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_packs. + */ + distinct?: Prisma.Tele_packScalarFieldEnum | Prisma.Tele_packScalarFieldEnum[] +} + +/** + * tele_pack findMany + */ +export type tele_packFindManyArgs = { + /** + * Select specific fields to fetch from the tele_pack + */ + select?: Prisma.tele_packSelect | null + /** + * Omit specific fields from the tele_pack + */ + omit?: Prisma.tele_packOmit | null + /** + * Filter, which tele_packs to fetch. + */ + where?: Prisma.tele_packWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_packs to fetch. + */ + orderBy?: Prisma.tele_packOrderByWithRelationInput | Prisma.tele_packOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing tele_packs. + */ + cursor?: Prisma.tele_packWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_packs 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` tele_packs. + */ + skip?: number + distinct?: Prisma.Tele_packScalarFieldEnum | Prisma.Tele_packScalarFieldEnum[] +} + +/** + * tele_pack create + */ +export type tele_packCreateArgs = { + /** + * Select specific fields to fetch from the tele_pack + */ + select?: Prisma.tele_packSelect | null + /** + * Omit specific fields from the tele_pack + */ + omit?: Prisma.tele_packOmit | null + /** + * The data needed to create a tele_pack. + */ + data: Prisma.XOR +} + +/** + * tele_pack createMany + */ +export type tele_packCreateManyArgs = { + /** + * The data used to create many tele_packs. + */ + data: Prisma.tele_packCreateManyInput | Prisma.tele_packCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * tele_pack update + */ +export type tele_packUpdateArgs = { + /** + * Select specific fields to fetch from the tele_pack + */ + select?: Prisma.tele_packSelect | null + /** + * Omit specific fields from the tele_pack + */ + omit?: Prisma.tele_packOmit | null + /** + * The data needed to update a tele_pack. + */ + data: Prisma.XOR + /** + * Choose, which tele_pack to update. + */ + where: Prisma.tele_packWhereUniqueInput +} + +/** + * tele_pack updateMany + */ +export type tele_packUpdateManyArgs = { + /** + * The data used to update tele_packs. + */ + data: Prisma.XOR + /** + * Filter which tele_packs to update + */ + where?: Prisma.tele_packWhereInput + /** + * Limit how many tele_packs to update. + */ + limit?: number +} + +/** + * tele_pack upsert + */ +export type tele_packUpsertArgs = { + /** + * Select specific fields to fetch from the tele_pack + */ + select?: Prisma.tele_packSelect | null + /** + * Omit specific fields from the tele_pack + */ + omit?: Prisma.tele_packOmit | null + /** + * The filter to search for the tele_pack to update in case it exists. + */ + where: Prisma.tele_packWhereUniqueInput + /** + * In case the tele_pack found by the `where` argument doesn't exist, create a new tele_pack with this data. + */ + create: Prisma.XOR + /** + * In case the tele_pack was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * tele_pack delete + */ +export type tele_packDeleteArgs = { + /** + * Select specific fields to fetch from the tele_pack + */ + select?: Prisma.tele_packSelect | null + /** + * Omit specific fields from the tele_pack + */ + omit?: Prisma.tele_packOmit | null + /** + * Filter which tele_pack to delete. + */ + where: Prisma.tele_packWhereUniqueInput +} + +/** + * tele_pack deleteMany + */ +export type tele_packDeleteManyArgs = { + /** + * Filter which tele_packs to delete + */ + where?: Prisma.tele_packWhereInput + /** + * Limit how many tele_packs to delete. + */ + limit?: number +} + +/** + * tele_pack without action + */ +export type tele_packDefaultArgs = { + /** + * Select specific fields to fetch from the tele_pack + */ + select?: Prisma.tele_packSelect | null + /** + * Omit specific fields from the tele_pack + */ + omit?: Prisma.tele_packOmit | null +} diff --git a/prisma/generated/mariadb/models/tele_penetration.ts b/prisma/generated/mariadb/models/tele_penetration.ts new file mode 100644 index 0000000..b48720a --- /dev/null +++ b/prisma/generated/mariadb/models/tele_penetration.ts @@ -0,0 +1,1064 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `tele_penetration` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model tele_penetration + * + */ +export type tele_penetrationModel = runtime.Types.Result.DefaultSelection + +export type AggregateTele_penetration = { + _count: Tele_penetrationCountAggregateOutputType | null + _avg: Tele_penetrationAvgAggregateOutputType | null + _sum: Tele_penetrationSumAggregateOutputType | null + _min: Tele_penetrationMinAggregateOutputType | null + _max: Tele_penetrationMaxAggregateOutputType | null +} + +export type Tele_penetrationAvgAggregateOutputType = { + id: number | null + id_channel: number | null + percentage: runtime.Decimal | null + prix: runtime.Decimal | null +} + +export type Tele_penetrationSumAggregateOutputType = { + id: number | null + id_channel: number | null + percentage: runtime.Decimal | null + prix: runtime.Decimal | null +} + +export type Tele_penetrationMinAggregateOutputType = { + id: number | null + id_channel: number | null + percentage: runtime.Decimal | null + prix: runtime.Decimal | null +} + +export type Tele_penetrationMaxAggregateOutputType = { + id: number | null + id_channel: number | null + percentage: runtime.Decimal | null + prix: runtime.Decimal | null +} + +export type Tele_penetrationCountAggregateOutputType = { + id: number + id_channel: number + percentage: number + prix: number + _all: number +} + + +export type Tele_penetrationAvgAggregateInputType = { + id?: true + id_channel?: true + percentage?: true + prix?: true +} + +export type Tele_penetrationSumAggregateInputType = { + id?: true + id_channel?: true + percentage?: true + prix?: true +} + +export type Tele_penetrationMinAggregateInputType = { + id?: true + id_channel?: true + percentage?: true + prix?: true +} + +export type Tele_penetrationMaxAggregateInputType = { + id?: true + id_channel?: true + percentage?: true + prix?: true +} + +export type Tele_penetrationCountAggregateInputType = { + id?: true + id_channel?: true + percentage?: true + prix?: true + _all?: true +} + +export type Tele_penetrationAggregateArgs = { + /** + * Filter which tele_penetration to aggregate. + */ + where?: Prisma.tele_penetrationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_penetrations to fetch. + */ + orderBy?: Prisma.tele_penetrationOrderByWithRelationInput | Prisma.tele_penetrationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.tele_penetrationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_penetrations 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` tele_penetrations. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned tele_penetrations + **/ + _count?: true | Tele_penetrationCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Tele_penetrationAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Tele_penetrationSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Tele_penetrationMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Tele_penetrationMaxAggregateInputType +} + +export type GetTele_penetrationAggregateType = { + [P in keyof T & keyof AggregateTele_penetration]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type tele_penetrationGroupByArgs = { + where?: Prisma.tele_penetrationWhereInput + orderBy?: Prisma.tele_penetrationOrderByWithAggregationInput | Prisma.tele_penetrationOrderByWithAggregationInput[] + by: Prisma.Tele_penetrationScalarFieldEnum[] | Prisma.Tele_penetrationScalarFieldEnum + having?: Prisma.tele_penetrationScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Tele_penetrationCountAggregateInputType | true + _avg?: Tele_penetrationAvgAggregateInputType + _sum?: Tele_penetrationSumAggregateInputType + _min?: Tele_penetrationMinAggregateInputType + _max?: Tele_penetrationMaxAggregateInputType +} + +export type Tele_penetrationGroupByOutputType = { + id: number + id_channel: number + percentage: runtime.Decimal + prix: runtime.Decimal + _count: Tele_penetrationCountAggregateOutputType | null + _avg: Tele_penetrationAvgAggregateOutputType | null + _sum: Tele_penetrationSumAggregateOutputType | null + _min: Tele_penetrationMinAggregateOutputType | null + _max: Tele_penetrationMaxAggregateOutputType | null +} + +type GetTele_penetrationGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Tele_penetrationGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type tele_penetrationWhereInput = { + AND?: Prisma.tele_penetrationWhereInput | Prisma.tele_penetrationWhereInput[] + OR?: Prisma.tele_penetrationWhereInput[] + NOT?: Prisma.tele_penetrationWhereInput | Prisma.tele_penetrationWhereInput[] + id?: Prisma.IntFilter<"tele_penetration"> | number + id_channel?: Prisma.IntFilter<"tele_penetration"> | number + percentage?: Prisma.DecimalFilter<"tele_penetration"> | runtime.Decimal | runtime.DecimalJsLike | number | string + prix?: Prisma.DecimalFilter<"tele_penetration"> | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type tele_penetrationOrderByWithRelationInput = { + id?: Prisma.SortOrder + id_channel?: Prisma.SortOrder + percentage?: Prisma.SortOrder + prix?: Prisma.SortOrder +} + +export type tele_penetrationWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.tele_penetrationWhereInput | Prisma.tele_penetrationWhereInput[] + OR?: Prisma.tele_penetrationWhereInput[] + NOT?: Prisma.tele_penetrationWhereInput | Prisma.tele_penetrationWhereInput[] + id_channel?: Prisma.IntFilter<"tele_penetration"> | number + percentage?: Prisma.DecimalFilter<"tele_penetration"> | runtime.Decimal | runtime.DecimalJsLike | number | string + prix?: Prisma.DecimalFilter<"tele_penetration"> | runtime.Decimal | runtime.DecimalJsLike | number | string +}, "id"> + +export type tele_penetrationOrderByWithAggregationInput = { + id?: Prisma.SortOrder + id_channel?: Prisma.SortOrder + percentage?: Prisma.SortOrder + prix?: Prisma.SortOrder + _count?: Prisma.tele_penetrationCountOrderByAggregateInput + _avg?: Prisma.tele_penetrationAvgOrderByAggregateInput + _max?: Prisma.tele_penetrationMaxOrderByAggregateInput + _min?: Prisma.tele_penetrationMinOrderByAggregateInput + _sum?: Prisma.tele_penetrationSumOrderByAggregateInput +} + +export type tele_penetrationScalarWhereWithAggregatesInput = { + AND?: Prisma.tele_penetrationScalarWhereWithAggregatesInput | Prisma.tele_penetrationScalarWhereWithAggregatesInput[] + OR?: Prisma.tele_penetrationScalarWhereWithAggregatesInput[] + NOT?: Prisma.tele_penetrationScalarWhereWithAggregatesInput | Prisma.tele_penetrationScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"tele_penetration"> | number + id_channel?: Prisma.IntWithAggregatesFilter<"tele_penetration"> | number + percentage?: Prisma.DecimalWithAggregatesFilter<"tele_penetration"> | runtime.Decimal | runtime.DecimalJsLike | number | string + prix?: Prisma.DecimalWithAggregatesFilter<"tele_penetration"> | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type tele_penetrationCreateInput = { + id_channel: number + percentage: runtime.Decimal | runtime.DecimalJsLike | number | string + prix: runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type tele_penetrationUncheckedCreateInput = { + id?: number + id_channel: number + percentage: runtime.Decimal | runtime.DecimalJsLike | number | string + prix: runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type tele_penetrationUpdateInput = { + id_channel?: Prisma.IntFieldUpdateOperationsInput | number + percentage?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + prix?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type tele_penetrationUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + id_channel?: Prisma.IntFieldUpdateOperationsInput | number + percentage?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + prix?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type tele_penetrationCreateManyInput = { + id?: number + id_channel: number + percentage: runtime.Decimal | runtime.DecimalJsLike | number | string + prix: runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type tele_penetrationUpdateManyMutationInput = { + id_channel?: Prisma.IntFieldUpdateOperationsInput | number + percentage?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + prix?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type tele_penetrationUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + id_channel?: Prisma.IntFieldUpdateOperationsInput | number + percentage?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + prix?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type tele_penetrationCountOrderByAggregateInput = { + id?: Prisma.SortOrder + id_channel?: Prisma.SortOrder + percentage?: Prisma.SortOrder + prix?: Prisma.SortOrder +} + +export type tele_penetrationAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + id_channel?: Prisma.SortOrder + percentage?: Prisma.SortOrder + prix?: Prisma.SortOrder +} + +export type tele_penetrationMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + id_channel?: Prisma.SortOrder + percentage?: Prisma.SortOrder + prix?: Prisma.SortOrder +} + +export type tele_penetrationMinOrderByAggregateInput = { + id?: Prisma.SortOrder + id_channel?: Prisma.SortOrder + percentage?: Prisma.SortOrder + prix?: Prisma.SortOrder +} + +export type tele_penetrationSumOrderByAggregateInput = { + id?: Prisma.SortOrder + id_channel?: Prisma.SortOrder + percentage?: Prisma.SortOrder + prix?: Prisma.SortOrder +} + + + +export type tele_penetrationSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + id_channel?: boolean + percentage?: boolean + prix?: boolean +}, ExtArgs["result"]["tele_penetration"]> + + + +export type tele_penetrationSelectScalar = { + id?: boolean + id_channel?: boolean + percentage?: boolean + prix?: boolean +} + +export type tele_penetrationOmit = runtime.Types.Extensions.GetOmit<"id" | "id_channel" | "percentage" | "prix", ExtArgs["result"]["tele_penetration"]> + +export type $tele_penetrationPayload = { + name: "tele_penetration" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + id_channel: number + percentage: runtime.Decimal + prix: runtime.Decimal + }, ExtArgs["result"]["tele_penetration"]> + composites: {} +} + +export type tele_penetrationGetPayload = runtime.Types.Result.GetResult + +export type tele_penetrationCountArgs = + Omit & { + select?: Tele_penetrationCountAggregateInputType | true + } + +export interface tele_penetrationDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['tele_penetration'], meta: { name: 'tele_penetration' } } + /** + * Find zero or one Tele_penetration that matches the filter. + * @param {tele_penetrationFindUniqueArgs} args - Arguments to find a Tele_penetration + * @example + * // Get one Tele_penetration + * const tele_penetration = await prisma.tele_penetration.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__tele_penetrationClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Tele_penetration that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {tele_penetrationFindUniqueOrThrowArgs} args - Arguments to find a Tele_penetration + * @example + * // Get one Tele_penetration + * const tele_penetration = await prisma.tele_penetration.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__tele_penetrationClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_penetration 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 {tele_penetrationFindFirstArgs} args - Arguments to find a Tele_penetration + * @example + * // Get one Tele_penetration + * const tele_penetration = await prisma.tele_penetration.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_penetrationClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_penetration 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 {tele_penetrationFindFirstOrThrowArgs} args - Arguments to find a Tele_penetration + * @example + * // Get one Tele_penetration + * const tele_penetration = await prisma.tele_penetration.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_penetrationClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Tele_penetrations 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 {tele_penetrationFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Tele_penetrations + * const tele_penetrations = await prisma.tele_penetration.findMany() + * + * // Get first 10 Tele_penetrations + * const tele_penetrations = await prisma.tele_penetration.findMany({ take: 10 }) + * + * // Only select the `id` + * const tele_penetrationWithIdOnly = await prisma.tele_penetration.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Tele_penetration. + * @param {tele_penetrationCreateArgs} args - Arguments to create a Tele_penetration. + * @example + * // Create one Tele_penetration + * const Tele_penetration = await prisma.tele_penetration.create({ + * data: { + * // ... data to create a Tele_penetration + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__tele_penetrationClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Tele_penetrations. + * @param {tele_penetrationCreateManyArgs} args - Arguments to create many Tele_penetrations. + * @example + * // Create many Tele_penetrations + * const tele_penetration = await prisma.tele_penetration.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Tele_penetration. + * @param {tele_penetrationDeleteArgs} args - Arguments to delete one Tele_penetration. + * @example + * // Delete one Tele_penetration + * const Tele_penetration = await prisma.tele_penetration.delete({ + * where: { + * // ... filter to delete one Tele_penetration + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__tele_penetrationClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Tele_penetration. + * @param {tele_penetrationUpdateArgs} args - Arguments to update one Tele_penetration. + * @example + * // Update one Tele_penetration + * const tele_penetration = await prisma.tele_penetration.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__tele_penetrationClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Tele_penetrations. + * @param {tele_penetrationDeleteManyArgs} args - Arguments to filter Tele_penetrations to delete. + * @example + * // Delete a few Tele_penetrations + * const { count } = await prisma.tele_penetration.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Tele_penetrations. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_penetrationUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Tele_penetrations + * const tele_penetration = await prisma.tele_penetration.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Tele_penetration. + * @param {tele_penetrationUpsertArgs} args - Arguments to update or create a Tele_penetration. + * @example + * // Update or create a Tele_penetration + * const tele_penetration = await prisma.tele_penetration.upsert({ + * create: { + * // ... data to create a Tele_penetration + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Tele_penetration we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__tele_penetrationClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Tele_penetrations. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_penetrationCountArgs} args - Arguments to filter Tele_penetrations to count. + * @example + * // Count the number of Tele_penetrations + * const count = await prisma.tele_penetration.count({ + * where: { + * // ... the filter for the Tele_penetrations 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 Tele_penetration. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Tele_penetrationAggregateArgs} 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 Tele_penetration. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_penetrationGroupByArgs} 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 tele_penetrationGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: tele_penetrationGroupByArgs['orderBy'] } + : { orderBy?: tele_penetrationGroupByArgs['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 ? GetTele_penetrationGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the tele_penetration model + */ +readonly fields: tele_penetrationFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for tele_penetration. + * 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__tele_penetrationClient 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 tele_penetration model + */ +export interface tele_penetrationFieldRefs { + readonly id: Prisma.FieldRef<"tele_penetration", 'Int'> + readonly id_channel: Prisma.FieldRef<"tele_penetration", 'Int'> + readonly percentage: Prisma.FieldRef<"tele_penetration", 'Decimal'> + readonly prix: Prisma.FieldRef<"tele_penetration", 'Decimal'> +} + + +// Custom InputTypes +/** + * tele_penetration findUnique + */ +export type tele_penetrationFindUniqueArgs = { + /** + * Select specific fields to fetch from the tele_penetration + */ + select?: Prisma.tele_penetrationSelect | null + /** + * Omit specific fields from the tele_penetration + */ + omit?: Prisma.tele_penetrationOmit | null + /** + * Filter, which tele_penetration to fetch. + */ + where: Prisma.tele_penetrationWhereUniqueInput +} + +/** + * tele_penetration findUniqueOrThrow + */ +export type tele_penetrationFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_penetration + */ + select?: Prisma.tele_penetrationSelect | null + /** + * Omit specific fields from the tele_penetration + */ + omit?: Prisma.tele_penetrationOmit | null + /** + * Filter, which tele_penetration to fetch. + */ + where: Prisma.tele_penetrationWhereUniqueInput +} + +/** + * tele_penetration findFirst + */ +export type tele_penetrationFindFirstArgs = { + /** + * Select specific fields to fetch from the tele_penetration + */ + select?: Prisma.tele_penetrationSelect | null + /** + * Omit specific fields from the tele_penetration + */ + omit?: Prisma.tele_penetrationOmit | null + /** + * Filter, which tele_penetration to fetch. + */ + where?: Prisma.tele_penetrationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_penetrations to fetch. + */ + orderBy?: Prisma.tele_penetrationOrderByWithRelationInput | Prisma.tele_penetrationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_penetrations. + */ + cursor?: Prisma.tele_penetrationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_penetrations 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` tele_penetrations. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_penetrations. + */ + distinct?: Prisma.Tele_penetrationScalarFieldEnum | Prisma.Tele_penetrationScalarFieldEnum[] +} + +/** + * tele_penetration findFirstOrThrow + */ +export type tele_penetrationFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_penetration + */ + select?: Prisma.tele_penetrationSelect | null + /** + * Omit specific fields from the tele_penetration + */ + omit?: Prisma.tele_penetrationOmit | null + /** + * Filter, which tele_penetration to fetch. + */ + where?: Prisma.tele_penetrationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_penetrations to fetch. + */ + orderBy?: Prisma.tele_penetrationOrderByWithRelationInput | Prisma.tele_penetrationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_penetrations. + */ + cursor?: Prisma.tele_penetrationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_penetrations 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` tele_penetrations. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_penetrations. + */ + distinct?: Prisma.Tele_penetrationScalarFieldEnum | Prisma.Tele_penetrationScalarFieldEnum[] +} + +/** + * tele_penetration findMany + */ +export type tele_penetrationFindManyArgs = { + /** + * Select specific fields to fetch from the tele_penetration + */ + select?: Prisma.tele_penetrationSelect | null + /** + * Omit specific fields from the tele_penetration + */ + omit?: Prisma.tele_penetrationOmit | null + /** + * Filter, which tele_penetrations to fetch. + */ + where?: Prisma.tele_penetrationWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_penetrations to fetch. + */ + orderBy?: Prisma.tele_penetrationOrderByWithRelationInput | Prisma.tele_penetrationOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing tele_penetrations. + */ + cursor?: Prisma.tele_penetrationWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_penetrations 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` tele_penetrations. + */ + skip?: number + distinct?: Prisma.Tele_penetrationScalarFieldEnum | Prisma.Tele_penetrationScalarFieldEnum[] +} + +/** + * tele_penetration create + */ +export type tele_penetrationCreateArgs = { + /** + * Select specific fields to fetch from the tele_penetration + */ + select?: Prisma.tele_penetrationSelect | null + /** + * Omit specific fields from the tele_penetration + */ + omit?: Prisma.tele_penetrationOmit | null + /** + * The data needed to create a tele_penetration. + */ + data: Prisma.XOR +} + +/** + * tele_penetration createMany + */ +export type tele_penetrationCreateManyArgs = { + /** + * The data used to create many tele_penetrations. + */ + data: Prisma.tele_penetrationCreateManyInput | Prisma.tele_penetrationCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * tele_penetration update + */ +export type tele_penetrationUpdateArgs = { + /** + * Select specific fields to fetch from the tele_penetration + */ + select?: Prisma.tele_penetrationSelect | null + /** + * Omit specific fields from the tele_penetration + */ + omit?: Prisma.tele_penetrationOmit | null + /** + * The data needed to update a tele_penetration. + */ + data: Prisma.XOR + /** + * Choose, which tele_penetration to update. + */ + where: Prisma.tele_penetrationWhereUniqueInput +} + +/** + * tele_penetration updateMany + */ +export type tele_penetrationUpdateManyArgs = { + /** + * The data used to update tele_penetrations. + */ + data: Prisma.XOR + /** + * Filter which tele_penetrations to update + */ + where?: Prisma.tele_penetrationWhereInput + /** + * Limit how many tele_penetrations to update. + */ + limit?: number +} + +/** + * tele_penetration upsert + */ +export type tele_penetrationUpsertArgs = { + /** + * Select specific fields to fetch from the tele_penetration + */ + select?: Prisma.tele_penetrationSelect | null + /** + * Omit specific fields from the tele_penetration + */ + omit?: Prisma.tele_penetrationOmit | null + /** + * The filter to search for the tele_penetration to update in case it exists. + */ + where: Prisma.tele_penetrationWhereUniqueInput + /** + * In case the tele_penetration found by the `where` argument doesn't exist, create a new tele_penetration with this data. + */ + create: Prisma.XOR + /** + * In case the tele_penetration was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * tele_penetration delete + */ +export type tele_penetrationDeleteArgs = { + /** + * Select specific fields to fetch from the tele_penetration + */ + select?: Prisma.tele_penetrationSelect | null + /** + * Omit specific fields from the tele_penetration + */ + omit?: Prisma.tele_penetrationOmit | null + /** + * Filter which tele_penetration to delete. + */ + where: Prisma.tele_penetrationWhereUniqueInput +} + +/** + * tele_penetration deleteMany + */ +export type tele_penetrationDeleteManyArgs = { + /** + * Filter which tele_penetrations to delete + */ + where?: Prisma.tele_penetrationWhereInput + /** + * Limit how many tele_penetrations to delete. + */ + limit?: number +} + +/** + * tele_penetration without action + */ +export type tele_penetrationDefaultArgs = { + /** + * Select specific fields to fetch from the tele_penetration + */ + select?: Prisma.tele_penetrationSelect | null + /** + * Omit specific fields from the tele_penetration + */ + omit?: Prisma.tele_penetrationOmit | null +} diff --git a/prisma/generated/mariadb/models/tele_sub_archive.ts b/prisma/generated/mariadb/models/tele_sub_archive.ts new file mode 100644 index 0000000..7de9b83 --- /dev/null +++ b/prisma/generated/mariadb/models/tele_sub_archive.ts @@ -0,0 +1,1027 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `tele_sub_archive` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model tele_sub_archive + * + */ +export type tele_sub_archiveModel = runtime.Types.Result.DefaultSelection + +export type AggregateTele_sub_archive = { + _count: Tele_sub_archiveCountAggregateOutputType | null + _avg: Tele_sub_archiveAvgAggregateOutputType | null + _sum: Tele_sub_archiveSumAggregateOutputType | null + _min: Tele_sub_archiveMinAggregateOutputType | null + _max: Tele_sub_archiveMaxAggregateOutputType | null +} + +export type Tele_sub_archiveAvgAggregateOutputType = { + id: number | null +} + +export type Tele_sub_archiveSumAggregateOutputType = { + id: number | null +} + +export type Tele_sub_archiveMinAggregateOutputType = { + id: number | null + date_archive: string | null + subs: string | null +} + +export type Tele_sub_archiveMaxAggregateOutputType = { + id: number | null + date_archive: string | null + subs: string | null +} + +export type Tele_sub_archiveCountAggregateOutputType = { + id: number + date_archive: number + subs: number + _all: number +} + + +export type Tele_sub_archiveAvgAggregateInputType = { + id?: true +} + +export type Tele_sub_archiveSumAggregateInputType = { + id?: true +} + +export type Tele_sub_archiveMinAggregateInputType = { + id?: true + date_archive?: true + subs?: true +} + +export type Tele_sub_archiveMaxAggregateInputType = { + id?: true + date_archive?: true + subs?: true +} + +export type Tele_sub_archiveCountAggregateInputType = { + id?: true + date_archive?: true + subs?: true + _all?: true +} + +export type Tele_sub_archiveAggregateArgs = { + /** + * Filter which tele_sub_archive to aggregate. + */ + where?: Prisma.tele_sub_archiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_sub_archives to fetch. + */ + orderBy?: Prisma.tele_sub_archiveOrderByWithRelationInput | Prisma.tele_sub_archiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.tele_sub_archiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_sub_archives 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` tele_sub_archives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned tele_sub_archives + **/ + _count?: true | Tele_sub_archiveCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Tele_sub_archiveAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Tele_sub_archiveSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Tele_sub_archiveMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Tele_sub_archiveMaxAggregateInputType +} + +export type GetTele_sub_archiveAggregateType = { + [P in keyof T & keyof AggregateTele_sub_archive]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type tele_sub_archiveGroupByArgs = { + where?: Prisma.tele_sub_archiveWhereInput + orderBy?: Prisma.tele_sub_archiveOrderByWithAggregationInput | Prisma.tele_sub_archiveOrderByWithAggregationInput[] + by: Prisma.Tele_sub_archiveScalarFieldEnum[] | Prisma.Tele_sub_archiveScalarFieldEnum + having?: Prisma.tele_sub_archiveScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Tele_sub_archiveCountAggregateInputType | true + _avg?: Tele_sub_archiveAvgAggregateInputType + _sum?: Tele_sub_archiveSumAggregateInputType + _min?: Tele_sub_archiveMinAggregateInputType + _max?: Tele_sub_archiveMaxAggregateInputType +} + +export type Tele_sub_archiveGroupByOutputType = { + id: number + date_archive: string + subs: string + _count: Tele_sub_archiveCountAggregateOutputType | null + _avg: Tele_sub_archiveAvgAggregateOutputType | null + _sum: Tele_sub_archiveSumAggregateOutputType | null + _min: Tele_sub_archiveMinAggregateOutputType | null + _max: Tele_sub_archiveMaxAggregateOutputType | null +} + +type GetTele_sub_archiveGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Tele_sub_archiveGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type tele_sub_archiveWhereInput = { + AND?: Prisma.tele_sub_archiveWhereInput | Prisma.tele_sub_archiveWhereInput[] + OR?: Prisma.tele_sub_archiveWhereInput[] + NOT?: Prisma.tele_sub_archiveWhereInput | Prisma.tele_sub_archiveWhereInput[] + id?: Prisma.IntFilter<"tele_sub_archive"> | number + date_archive?: Prisma.StringFilter<"tele_sub_archive"> | string + subs?: Prisma.StringFilter<"tele_sub_archive"> | string +} + +export type tele_sub_archiveOrderByWithRelationInput = { + id?: Prisma.SortOrder + date_archive?: Prisma.SortOrder + subs?: Prisma.SortOrder + _relevance?: Prisma.tele_sub_archiveOrderByRelevanceInput +} + +export type tele_sub_archiveWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.tele_sub_archiveWhereInput | Prisma.tele_sub_archiveWhereInput[] + OR?: Prisma.tele_sub_archiveWhereInput[] + NOT?: Prisma.tele_sub_archiveWhereInput | Prisma.tele_sub_archiveWhereInput[] + date_archive?: Prisma.StringFilter<"tele_sub_archive"> | string + subs?: Prisma.StringFilter<"tele_sub_archive"> | string +}, "id"> + +export type tele_sub_archiveOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date_archive?: Prisma.SortOrder + subs?: Prisma.SortOrder + _count?: Prisma.tele_sub_archiveCountOrderByAggregateInput + _avg?: Prisma.tele_sub_archiveAvgOrderByAggregateInput + _max?: Prisma.tele_sub_archiveMaxOrderByAggregateInput + _min?: Prisma.tele_sub_archiveMinOrderByAggregateInput + _sum?: Prisma.tele_sub_archiveSumOrderByAggregateInput +} + +export type tele_sub_archiveScalarWhereWithAggregatesInput = { + AND?: Prisma.tele_sub_archiveScalarWhereWithAggregatesInput | Prisma.tele_sub_archiveScalarWhereWithAggregatesInput[] + OR?: Prisma.tele_sub_archiveScalarWhereWithAggregatesInput[] + NOT?: Prisma.tele_sub_archiveScalarWhereWithAggregatesInput | Prisma.tele_sub_archiveScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"tele_sub_archive"> | number + date_archive?: Prisma.StringWithAggregatesFilter<"tele_sub_archive"> | string + subs?: Prisma.StringWithAggregatesFilter<"tele_sub_archive"> | string +} + +export type tele_sub_archiveCreateInput = { + date_archive: string + subs: string +} + +export type tele_sub_archiveUncheckedCreateInput = { + id?: number + date_archive: string + subs: string +} + +export type tele_sub_archiveUpdateInput = { + date_archive?: Prisma.StringFieldUpdateOperationsInput | string + subs?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_sub_archiveUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date_archive?: Prisma.StringFieldUpdateOperationsInput | string + subs?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_sub_archiveCreateManyInput = { + id?: number + date_archive: string + subs: string +} + +export type tele_sub_archiveUpdateManyMutationInput = { + date_archive?: Prisma.StringFieldUpdateOperationsInput | string + subs?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_sub_archiveUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date_archive?: Prisma.StringFieldUpdateOperationsInput | string + subs?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_sub_archiveOrderByRelevanceInput = { + fields: Prisma.tele_sub_archiveOrderByRelevanceFieldEnum | Prisma.tele_sub_archiveOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type tele_sub_archiveCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date_archive?: Prisma.SortOrder + subs?: Prisma.SortOrder +} + +export type tele_sub_archiveAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type tele_sub_archiveMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date_archive?: Prisma.SortOrder + subs?: Prisma.SortOrder +} + +export type tele_sub_archiveMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date_archive?: Prisma.SortOrder + subs?: Prisma.SortOrder +} + +export type tele_sub_archiveSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type tele_sub_archiveSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date_archive?: boolean + subs?: boolean +}, ExtArgs["result"]["tele_sub_archive"]> + + + +export type tele_sub_archiveSelectScalar = { + id?: boolean + date_archive?: boolean + subs?: boolean +} + +export type tele_sub_archiveOmit = runtime.Types.Extensions.GetOmit<"id" | "date_archive" | "subs", ExtArgs["result"]["tele_sub_archive"]> + +export type $tele_sub_archivePayload = { + name: "tele_sub_archive" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + date_archive: string + subs: string + }, ExtArgs["result"]["tele_sub_archive"]> + composites: {} +} + +export type tele_sub_archiveGetPayload = runtime.Types.Result.GetResult + +export type tele_sub_archiveCountArgs = + Omit & { + select?: Tele_sub_archiveCountAggregateInputType | true + } + +export interface tele_sub_archiveDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['tele_sub_archive'], meta: { name: 'tele_sub_archive' } } + /** + * Find zero or one Tele_sub_archive that matches the filter. + * @param {tele_sub_archiveFindUniqueArgs} args - Arguments to find a Tele_sub_archive + * @example + * // Get one Tele_sub_archive + * const tele_sub_archive = await prisma.tele_sub_archive.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__tele_sub_archiveClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Tele_sub_archive that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {tele_sub_archiveFindUniqueOrThrowArgs} args - Arguments to find a Tele_sub_archive + * @example + * // Get one Tele_sub_archive + * const tele_sub_archive = await prisma.tele_sub_archive.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__tele_sub_archiveClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_sub_archive 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 {tele_sub_archiveFindFirstArgs} args - Arguments to find a Tele_sub_archive + * @example + * // Get one Tele_sub_archive + * const tele_sub_archive = await prisma.tele_sub_archive.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_sub_archiveClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_sub_archive 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 {tele_sub_archiveFindFirstOrThrowArgs} args - Arguments to find a Tele_sub_archive + * @example + * // Get one Tele_sub_archive + * const tele_sub_archive = await prisma.tele_sub_archive.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_sub_archiveClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Tele_sub_archives 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 {tele_sub_archiveFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Tele_sub_archives + * const tele_sub_archives = await prisma.tele_sub_archive.findMany() + * + * // Get first 10 Tele_sub_archives + * const tele_sub_archives = await prisma.tele_sub_archive.findMany({ take: 10 }) + * + * // Only select the `id` + * const tele_sub_archiveWithIdOnly = await prisma.tele_sub_archive.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Tele_sub_archive. + * @param {tele_sub_archiveCreateArgs} args - Arguments to create a Tele_sub_archive. + * @example + * // Create one Tele_sub_archive + * const Tele_sub_archive = await prisma.tele_sub_archive.create({ + * data: { + * // ... data to create a Tele_sub_archive + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__tele_sub_archiveClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Tele_sub_archives. + * @param {tele_sub_archiveCreateManyArgs} args - Arguments to create many Tele_sub_archives. + * @example + * // Create many Tele_sub_archives + * const tele_sub_archive = await prisma.tele_sub_archive.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Tele_sub_archive. + * @param {tele_sub_archiveDeleteArgs} args - Arguments to delete one Tele_sub_archive. + * @example + * // Delete one Tele_sub_archive + * const Tele_sub_archive = await prisma.tele_sub_archive.delete({ + * where: { + * // ... filter to delete one Tele_sub_archive + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__tele_sub_archiveClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Tele_sub_archive. + * @param {tele_sub_archiveUpdateArgs} args - Arguments to update one Tele_sub_archive. + * @example + * // Update one Tele_sub_archive + * const tele_sub_archive = await prisma.tele_sub_archive.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__tele_sub_archiveClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Tele_sub_archives. + * @param {tele_sub_archiveDeleteManyArgs} args - Arguments to filter Tele_sub_archives to delete. + * @example + * // Delete a few Tele_sub_archives + * const { count } = await prisma.tele_sub_archive.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Tele_sub_archives. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_sub_archiveUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Tele_sub_archives + * const tele_sub_archive = await prisma.tele_sub_archive.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Tele_sub_archive. + * @param {tele_sub_archiveUpsertArgs} args - Arguments to update or create a Tele_sub_archive. + * @example + * // Update or create a Tele_sub_archive + * const tele_sub_archive = await prisma.tele_sub_archive.upsert({ + * create: { + * // ... data to create a Tele_sub_archive + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Tele_sub_archive we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__tele_sub_archiveClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Tele_sub_archives. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_sub_archiveCountArgs} args - Arguments to filter Tele_sub_archives to count. + * @example + * // Count the number of Tele_sub_archives + * const count = await prisma.tele_sub_archive.count({ + * where: { + * // ... the filter for the Tele_sub_archives 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 Tele_sub_archive. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Tele_sub_archiveAggregateArgs} 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 Tele_sub_archive. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_sub_archiveGroupByArgs} 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 tele_sub_archiveGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: tele_sub_archiveGroupByArgs['orderBy'] } + : { orderBy?: tele_sub_archiveGroupByArgs['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 ? GetTele_sub_archiveGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the tele_sub_archive model + */ +readonly fields: tele_sub_archiveFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for tele_sub_archive. + * 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__tele_sub_archiveClient 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 tele_sub_archive model + */ +export interface tele_sub_archiveFieldRefs { + readonly id: Prisma.FieldRef<"tele_sub_archive", 'Int'> + readonly date_archive: Prisma.FieldRef<"tele_sub_archive", 'String'> + readonly subs: Prisma.FieldRef<"tele_sub_archive", 'String'> +} + + +// Custom InputTypes +/** + * tele_sub_archive findUnique + */ +export type tele_sub_archiveFindUniqueArgs = { + /** + * Select specific fields to fetch from the tele_sub_archive + */ + select?: Prisma.tele_sub_archiveSelect | null + /** + * Omit specific fields from the tele_sub_archive + */ + omit?: Prisma.tele_sub_archiveOmit | null + /** + * Filter, which tele_sub_archive to fetch. + */ + where: Prisma.tele_sub_archiveWhereUniqueInput +} + +/** + * tele_sub_archive findUniqueOrThrow + */ +export type tele_sub_archiveFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_sub_archive + */ + select?: Prisma.tele_sub_archiveSelect | null + /** + * Omit specific fields from the tele_sub_archive + */ + omit?: Prisma.tele_sub_archiveOmit | null + /** + * Filter, which tele_sub_archive to fetch. + */ + where: Prisma.tele_sub_archiveWhereUniqueInput +} + +/** + * tele_sub_archive findFirst + */ +export type tele_sub_archiveFindFirstArgs = { + /** + * Select specific fields to fetch from the tele_sub_archive + */ + select?: Prisma.tele_sub_archiveSelect | null + /** + * Omit specific fields from the tele_sub_archive + */ + omit?: Prisma.tele_sub_archiveOmit | null + /** + * Filter, which tele_sub_archive to fetch. + */ + where?: Prisma.tele_sub_archiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_sub_archives to fetch. + */ + orderBy?: Prisma.tele_sub_archiveOrderByWithRelationInput | Prisma.tele_sub_archiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_sub_archives. + */ + cursor?: Prisma.tele_sub_archiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_sub_archives 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` tele_sub_archives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_sub_archives. + */ + distinct?: Prisma.Tele_sub_archiveScalarFieldEnum | Prisma.Tele_sub_archiveScalarFieldEnum[] +} + +/** + * tele_sub_archive findFirstOrThrow + */ +export type tele_sub_archiveFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_sub_archive + */ + select?: Prisma.tele_sub_archiveSelect | null + /** + * Omit specific fields from the tele_sub_archive + */ + omit?: Prisma.tele_sub_archiveOmit | null + /** + * Filter, which tele_sub_archive to fetch. + */ + where?: Prisma.tele_sub_archiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_sub_archives to fetch. + */ + orderBy?: Prisma.tele_sub_archiveOrderByWithRelationInput | Prisma.tele_sub_archiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_sub_archives. + */ + cursor?: Prisma.tele_sub_archiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_sub_archives 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` tele_sub_archives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_sub_archives. + */ + distinct?: Prisma.Tele_sub_archiveScalarFieldEnum | Prisma.Tele_sub_archiveScalarFieldEnum[] +} + +/** + * tele_sub_archive findMany + */ +export type tele_sub_archiveFindManyArgs = { + /** + * Select specific fields to fetch from the tele_sub_archive + */ + select?: Prisma.tele_sub_archiveSelect | null + /** + * Omit specific fields from the tele_sub_archive + */ + omit?: Prisma.tele_sub_archiveOmit | null + /** + * Filter, which tele_sub_archives to fetch. + */ + where?: Prisma.tele_sub_archiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_sub_archives to fetch. + */ + orderBy?: Prisma.tele_sub_archiveOrderByWithRelationInput | Prisma.tele_sub_archiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing tele_sub_archives. + */ + cursor?: Prisma.tele_sub_archiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_sub_archives 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` tele_sub_archives. + */ + skip?: number + distinct?: Prisma.Tele_sub_archiveScalarFieldEnum | Prisma.Tele_sub_archiveScalarFieldEnum[] +} + +/** + * tele_sub_archive create + */ +export type tele_sub_archiveCreateArgs = { + /** + * Select specific fields to fetch from the tele_sub_archive + */ + select?: Prisma.tele_sub_archiveSelect | null + /** + * Omit specific fields from the tele_sub_archive + */ + omit?: Prisma.tele_sub_archiveOmit | null + /** + * The data needed to create a tele_sub_archive. + */ + data: Prisma.XOR +} + +/** + * tele_sub_archive createMany + */ +export type tele_sub_archiveCreateManyArgs = { + /** + * The data used to create many tele_sub_archives. + */ + data: Prisma.tele_sub_archiveCreateManyInput | Prisma.tele_sub_archiveCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * tele_sub_archive update + */ +export type tele_sub_archiveUpdateArgs = { + /** + * Select specific fields to fetch from the tele_sub_archive + */ + select?: Prisma.tele_sub_archiveSelect | null + /** + * Omit specific fields from the tele_sub_archive + */ + omit?: Prisma.tele_sub_archiveOmit | null + /** + * The data needed to update a tele_sub_archive. + */ + data: Prisma.XOR + /** + * Choose, which tele_sub_archive to update. + */ + where: Prisma.tele_sub_archiveWhereUniqueInput +} + +/** + * tele_sub_archive updateMany + */ +export type tele_sub_archiveUpdateManyArgs = { + /** + * The data used to update tele_sub_archives. + */ + data: Prisma.XOR + /** + * Filter which tele_sub_archives to update + */ + where?: Prisma.tele_sub_archiveWhereInput + /** + * Limit how many tele_sub_archives to update. + */ + limit?: number +} + +/** + * tele_sub_archive upsert + */ +export type tele_sub_archiveUpsertArgs = { + /** + * Select specific fields to fetch from the tele_sub_archive + */ + select?: Prisma.tele_sub_archiveSelect | null + /** + * Omit specific fields from the tele_sub_archive + */ + omit?: Prisma.tele_sub_archiveOmit | null + /** + * The filter to search for the tele_sub_archive to update in case it exists. + */ + where: Prisma.tele_sub_archiveWhereUniqueInput + /** + * In case the tele_sub_archive found by the `where` argument doesn't exist, create a new tele_sub_archive with this data. + */ + create: Prisma.XOR + /** + * In case the tele_sub_archive was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * tele_sub_archive delete + */ +export type tele_sub_archiveDeleteArgs = { + /** + * Select specific fields to fetch from the tele_sub_archive + */ + select?: Prisma.tele_sub_archiveSelect | null + /** + * Omit specific fields from the tele_sub_archive + */ + omit?: Prisma.tele_sub_archiveOmit | null + /** + * Filter which tele_sub_archive to delete. + */ + where: Prisma.tele_sub_archiveWhereUniqueInput +} + +/** + * tele_sub_archive deleteMany + */ +export type tele_sub_archiveDeleteManyArgs = { + /** + * Filter which tele_sub_archives to delete + */ + where?: Prisma.tele_sub_archiveWhereInput + /** + * Limit how many tele_sub_archives to delete. + */ + limit?: number +} + +/** + * tele_sub_archive without action + */ +export type tele_sub_archiveDefaultArgs = { + /** + * Select specific fields to fetch from the tele_sub_archive + */ + select?: Prisma.tele_sub_archiveSelect | null + /** + * Omit specific fields from the tele_sub_archive + */ + omit?: Prisma.tele_sub_archiveOmit | null +} diff --git a/prisma/generated/mariadb/models/tele_wiz.ts b/prisma/generated/mariadb/models/tele_wiz.ts new file mode 100644 index 0000000..bbf6f71 --- /dev/null +++ b/prisma/generated/mariadb/models/tele_wiz.ts @@ -0,0 +1,1193 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `tele_wiz` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model tele_wiz + * + */ +export type tele_wizModel = runtime.Types.Result.DefaultSelection + +export type AggregateTele_wiz = { + _count: Tele_wizCountAggregateOutputType | null + _avg: Tele_wizAvgAggregateOutputType | null + _sum: Tele_wizSumAggregateOutputType | null + _min: Tele_wizMinAggregateOutputType | null + _max: Tele_wizMaxAggregateOutputType | null +} + +export type Tele_wizAvgAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + ticket_id: number | null + nb_stb: number | null + credit: number | null + fbase: number | null +} + +export type Tele_wizSumAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + ticket_id: number | null + nb_stb: number | null + credit: number | null + fbase: number | null +} + +export type Tele_wizMinAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + ticket_id: number | null + nb_stb: number | null + credit: number | null + fbase: number | null + fthem: string | null +} + +export type Tele_wizMaxAggregateOutputType = { + id: number | null + account_id: number | null + delivery_id: number | null + ticket_id: number | null + nb_stb: number | null + credit: number | null + fbase: number | null + fthem: string | null +} + +export type Tele_wizCountAggregateOutputType = { + id: number + account_id: number + delivery_id: number + ticket_id: number + nb_stb: number + credit: number + fbase: number + fthem: number + _all: number +} + + +export type Tele_wizAvgAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + ticket_id?: true + nb_stb?: true + credit?: true + fbase?: true +} + +export type Tele_wizSumAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + ticket_id?: true + nb_stb?: true + credit?: true + fbase?: true +} + +export type Tele_wizMinAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + ticket_id?: true + nb_stb?: true + credit?: true + fbase?: true + fthem?: true +} + +export type Tele_wizMaxAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + ticket_id?: true + nb_stb?: true + credit?: true + fbase?: true + fthem?: true +} + +export type Tele_wizCountAggregateInputType = { + id?: true + account_id?: true + delivery_id?: true + ticket_id?: true + nb_stb?: true + credit?: true + fbase?: true + fthem?: true + _all?: true +} + +export type Tele_wizAggregateArgs = { + /** + * Filter which tele_wiz to aggregate. + */ + where?: Prisma.tele_wizWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_wizs to fetch. + */ + orderBy?: Prisma.tele_wizOrderByWithRelationInput | Prisma.tele_wizOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.tele_wizWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_wizs 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` tele_wizs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned tele_wizs + **/ + _count?: true | Tele_wizCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Tele_wizAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Tele_wizSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Tele_wizMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Tele_wizMaxAggregateInputType +} + +export type GetTele_wizAggregateType = { + [P in keyof T & keyof AggregateTele_wiz]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type tele_wizGroupByArgs = { + where?: Prisma.tele_wizWhereInput + orderBy?: Prisma.tele_wizOrderByWithAggregationInput | Prisma.tele_wizOrderByWithAggregationInput[] + by: Prisma.Tele_wizScalarFieldEnum[] | Prisma.Tele_wizScalarFieldEnum + having?: Prisma.tele_wizScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Tele_wizCountAggregateInputType | true + _avg?: Tele_wizAvgAggregateInputType + _sum?: Tele_wizSumAggregateInputType + _min?: Tele_wizMinAggregateInputType + _max?: Tele_wizMaxAggregateInputType +} + +export type Tele_wizGroupByOutputType = { + id: number + account_id: number + delivery_id: number + ticket_id: number + nb_stb: number + credit: number + fbase: number + fthem: string + _count: Tele_wizCountAggregateOutputType | null + _avg: Tele_wizAvgAggregateOutputType | null + _sum: Tele_wizSumAggregateOutputType | null + _min: Tele_wizMinAggregateOutputType | null + _max: Tele_wizMaxAggregateOutputType | null +} + +type GetTele_wizGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Tele_wizGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type tele_wizWhereInput = { + AND?: Prisma.tele_wizWhereInput | Prisma.tele_wizWhereInput[] + OR?: Prisma.tele_wizWhereInput[] + NOT?: Prisma.tele_wizWhereInput | Prisma.tele_wizWhereInput[] + id?: Prisma.IntFilter<"tele_wiz"> | number + account_id?: Prisma.IntFilter<"tele_wiz"> | number + delivery_id?: Prisma.IntFilter<"tele_wiz"> | number + ticket_id?: Prisma.IntFilter<"tele_wiz"> | number + nb_stb?: Prisma.IntFilter<"tele_wiz"> | number + credit?: Prisma.IntFilter<"tele_wiz"> | number + fbase?: Prisma.IntFilter<"tele_wiz"> | number + fthem?: Prisma.StringFilter<"tele_wiz"> | string +} + +export type tele_wizOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + nb_stb?: Prisma.SortOrder + credit?: Prisma.SortOrder + fbase?: Prisma.SortOrder + fthem?: Prisma.SortOrder + _relevance?: Prisma.tele_wizOrderByRelevanceInput +} + +export type tele_wizWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.tele_wizWhereInput | Prisma.tele_wizWhereInput[] + OR?: Prisma.tele_wizWhereInput[] + NOT?: Prisma.tele_wizWhereInput | Prisma.tele_wizWhereInput[] + account_id?: Prisma.IntFilter<"tele_wiz"> | number + delivery_id?: Prisma.IntFilter<"tele_wiz"> | number + ticket_id?: Prisma.IntFilter<"tele_wiz"> | number + nb_stb?: Prisma.IntFilter<"tele_wiz"> | number + credit?: Prisma.IntFilter<"tele_wiz"> | number + fbase?: Prisma.IntFilter<"tele_wiz"> | number + fthem?: Prisma.StringFilter<"tele_wiz"> | string +}, "id"> + +export type tele_wizOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + nb_stb?: Prisma.SortOrder + credit?: Prisma.SortOrder + fbase?: Prisma.SortOrder + fthem?: Prisma.SortOrder + _count?: Prisma.tele_wizCountOrderByAggregateInput + _avg?: Prisma.tele_wizAvgOrderByAggregateInput + _max?: Prisma.tele_wizMaxOrderByAggregateInput + _min?: Prisma.tele_wizMinOrderByAggregateInput + _sum?: Prisma.tele_wizSumOrderByAggregateInput +} + +export type tele_wizScalarWhereWithAggregatesInput = { + AND?: Prisma.tele_wizScalarWhereWithAggregatesInput | Prisma.tele_wizScalarWhereWithAggregatesInput[] + OR?: Prisma.tele_wizScalarWhereWithAggregatesInput[] + NOT?: Prisma.tele_wizScalarWhereWithAggregatesInput | Prisma.tele_wizScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"tele_wiz"> | number + account_id?: Prisma.IntWithAggregatesFilter<"tele_wiz"> | number + delivery_id?: Prisma.IntWithAggregatesFilter<"tele_wiz"> | number + ticket_id?: Prisma.IntWithAggregatesFilter<"tele_wiz"> | number + nb_stb?: Prisma.IntWithAggregatesFilter<"tele_wiz"> | number + credit?: Prisma.IntWithAggregatesFilter<"tele_wiz"> | number + fbase?: Prisma.IntWithAggregatesFilter<"tele_wiz"> | number + fthem?: Prisma.StringWithAggregatesFilter<"tele_wiz"> | string +} + +export type tele_wizCreateInput = { + account_id: number + delivery_id: number + ticket_id: number + nb_stb: number + credit: number + fbase: number + fthem: string +} + +export type tele_wizUncheckedCreateInput = { + id?: number + account_id: number + delivery_id: number + ticket_id: number + nb_stb: number + credit: number + fbase: number + fthem: string +} + +export type tele_wizUpdateInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + ticket_id?: Prisma.IntFieldUpdateOperationsInput | number + nb_stb?: Prisma.IntFieldUpdateOperationsInput | number + credit?: Prisma.IntFieldUpdateOperationsInput | number + fbase?: Prisma.IntFieldUpdateOperationsInput | number + fthem?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_wizUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + ticket_id?: Prisma.IntFieldUpdateOperationsInput | number + nb_stb?: Prisma.IntFieldUpdateOperationsInput | number + credit?: Prisma.IntFieldUpdateOperationsInput | number + fbase?: Prisma.IntFieldUpdateOperationsInput | number + fthem?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_wizCreateManyInput = { + id?: number + account_id: number + delivery_id: number + ticket_id: number + nb_stb: number + credit: number + fbase: number + fthem: string +} + +export type tele_wizUpdateManyMutationInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + ticket_id?: Prisma.IntFieldUpdateOperationsInput | number + nb_stb?: Prisma.IntFieldUpdateOperationsInput | number + credit?: Prisma.IntFieldUpdateOperationsInput | number + fbase?: Prisma.IntFieldUpdateOperationsInput | number + fthem?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_wizUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + delivery_id?: Prisma.IntFieldUpdateOperationsInput | number + ticket_id?: Prisma.IntFieldUpdateOperationsInput | number + nb_stb?: Prisma.IntFieldUpdateOperationsInput | number + credit?: Prisma.IntFieldUpdateOperationsInput | number + fbase?: Prisma.IntFieldUpdateOperationsInput | number + fthem?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tele_wizOrderByRelevanceInput = { + fields: Prisma.tele_wizOrderByRelevanceFieldEnum | Prisma.tele_wizOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type tele_wizCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + nb_stb?: Prisma.SortOrder + credit?: Prisma.SortOrder + fbase?: Prisma.SortOrder + fthem?: Prisma.SortOrder +} + +export type tele_wizAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + nb_stb?: Prisma.SortOrder + credit?: Prisma.SortOrder + fbase?: Prisma.SortOrder +} + +export type tele_wizMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + nb_stb?: Prisma.SortOrder + credit?: Prisma.SortOrder + fbase?: Prisma.SortOrder + fthem?: Prisma.SortOrder +} + +export type tele_wizMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + nb_stb?: Prisma.SortOrder + credit?: Prisma.SortOrder + fbase?: Prisma.SortOrder + fthem?: Prisma.SortOrder +} + +export type tele_wizSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + nb_stb?: Prisma.SortOrder + credit?: Prisma.SortOrder + fbase?: Prisma.SortOrder +} + + + +export type tele_wizSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + delivery_id?: boolean + ticket_id?: boolean + nb_stb?: boolean + credit?: boolean + fbase?: boolean + fthem?: boolean +}, ExtArgs["result"]["tele_wiz"]> + + + +export type tele_wizSelectScalar = { + id?: boolean + account_id?: boolean + delivery_id?: boolean + ticket_id?: boolean + nb_stb?: boolean + credit?: boolean + fbase?: boolean + fthem?: boolean +} + +export type tele_wizOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "delivery_id" | "ticket_id" | "nb_stb" | "credit" | "fbase" | "fthem", ExtArgs["result"]["tele_wiz"]> + +export type $tele_wizPayload = { + name: "tele_wiz" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: number + delivery_id: number + ticket_id: number + nb_stb: number + credit: number + fbase: number + fthem: string + }, ExtArgs["result"]["tele_wiz"]> + composites: {} +} + +export type tele_wizGetPayload = runtime.Types.Result.GetResult + +export type tele_wizCountArgs = + Omit & { + select?: Tele_wizCountAggregateInputType | true + } + +export interface tele_wizDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['tele_wiz'], meta: { name: 'tele_wiz' } } + /** + * Find zero or one Tele_wiz that matches the filter. + * @param {tele_wizFindUniqueArgs} args - Arguments to find a Tele_wiz + * @example + * // Get one Tele_wiz + * const tele_wiz = await prisma.tele_wiz.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__tele_wizClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Tele_wiz that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {tele_wizFindUniqueOrThrowArgs} args - Arguments to find a Tele_wiz + * @example + * // Get one Tele_wiz + * const tele_wiz = await prisma.tele_wiz.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__tele_wizClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_wiz 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 {tele_wizFindFirstArgs} args - Arguments to find a Tele_wiz + * @example + * // Get one Tele_wiz + * const tele_wiz = await prisma.tele_wiz.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_wizClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tele_wiz 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 {tele_wizFindFirstOrThrowArgs} args - Arguments to find a Tele_wiz + * @example + * // Get one Tele_wiz + * const tele_wiz = await prisma.tele_wiz.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__tele_wizClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Tele_wizs 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 {tele_wizFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Tele_wizs + * const tele_wizs = await prisma.tele_wiz.findMany() + * + * // Get first 10 Tele_wizs + * const tele_wizs = await prisma.tele_wiz.findMany({ take: 10 }) + * + * // Only select the `id` + * const tele_wizWithIdOnly = await prisma.tele_wiz.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Tele_wiz. + * @param {tele_wizCreateArgs} args - Arguments to create a Tele_wiz. + * @example + * // Create one Tele_wiz + * const Tele_wiz = await prisma.tele_wiz.create({ + * data: { + * // ... data to create a Tele_wiz + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__tele_wizClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Tele_wizs. + * @param {tele_wizCreateManyArgs} args - Arguments to create many Tele_wizs. + * @example + * // Create many Tele_wizs + * const tele_wiz = await prisma.tele_wiz.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Tele_wiz. + * @param {tele_wizDeleteArgs} args - Arguments to delete one Tele_wiz. + * @example + * // Delete one Tele_wiz + * const Tele_wiz = await prisma.tele_wiz.delete({ + * where: { + * // ... filter to delete one Tele_wiz + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__tele_wizClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Tele_wiz. + * @param {tele_wizUpdateArgs} args - Arguments to update one Tele_wiz. + * @example + * // Update one Tele_wiz + * const tele_wiz = await prisma.tele_wiz.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__tele_wizClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Tele_wizs. + * @param {tele_wizDeleteManyArgs} args - Arguments to filter Tele_wizs to delete. + * @example + * // Delete a few Tele_wizs + * const { count } = await prisma.tele_wiz.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Tele_wizs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_wizUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Tele_wizs + * const tele_wiz = await prisma.tele_wiz.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Tele_wiz. + * @param {tele_wizUpsertArgs} args - Arguments to update or create a Tele_wiz. + * @example + * // Update or create a Tele_wiz + * const tele_wiz = await prisma.tele_wiz.upsert({ + * create: { + * // ... data to create a Tele_wiz + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Tele_wiz we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__tele_wizClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Tele_wizs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_wizCountArgs} args - Arguments to filter Tele_wizs to count. + * @example + * // Count the number of Tele_wizs + * const count = await prisma.tele_wiz.count({ + * where: { + * // ... the filter for the Tele_wizs 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 Tele_wiz. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Tele_wizAggregateArgs} 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 Tele_wiz. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tele_wizGroupByArgs} 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 tele_wizGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: tele_wizGroupByArgs['orderBy'] } + : { orderBy?: tele_wizGroupByArgs['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 ? GetTele_wizGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the tele_wiz model + */ +readonly fields: tele_wizFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for tele_wiz. + * 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__tele_wizClient 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 tele_wiz model + */ +export interface tele_wizFieldRefs { + readonly id: Prisma.FieldRef<"tele_wiz", 'Int'> + readonly account_id: Prisma.FieldRef<"tele_wiz", 'Int'> + readonly delivery_id: Prisma.FieldRef<"tele_wiz", 'Int'> + readonly ticket_id: Prisma.FieldRef<"tele_wiz", 'Int'> + readonly nb_stb: Prisma.FieldRef<"tele_wiz", 'Int'> + readonly credit: Prisma.FieldRef<"tele_wiz", 'Int'> + readonly fbase: Prisma.FieldRef<"tele_wiz", 'Int'> + readonly fthem: Prisma.FieldRef<"tele_wiz", 'String'> +} + + +// Custom InputTypes +/** + * tele_wiz findUnique + */ +export type tele_wizFindUniqueArgs = { + /** + * Select specific fields to fetch from the tele_wiz + */ + select?: Prisma.tele_wizSelect | null + /** + * Omit specific fields from the tele_wiz + */ + omit?: Prisma.tele_wizOmit | null + /** + * Filter, which tele_wiz to fetch. + */ + where: Prisma.tele_wizWhereUniqueInput +} + +/** + * tele_wiz findUniqueOrThrow + */ +export type tele_wizFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_wiz + */ + select?: Prisma.tele_wizSelect | null + /** + * Omit specific fields from the tele_wiz + */ + omit?: Prisma.tele_wizOmit | null + /** + * Filter, which tele_wiz to fetch. + */ + where: Prisma.tele_wizWhereUniqueInput +} + +/** + * tele_wiz findFirst + */ +export type tele_wizFindFirstArgs = { + /** + * Select specific fields to fetch from the tele_wiz + */ + select?: Prisma.tele_wizSelect | null + /** + * Omit specific fields from the tele_wiz + */ + omit?: Prisma.tele_wizOmit | null + /** + * Filter, which tele_wiz to fetch. + */ + where?: Prisma.tele_wizWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_wizs to fetch. + */ + orderBy?: Prisma.tele_wizOrderByWithRelationInput | Prisma.tele_wizOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_wizs. + */ + cursor?: Prisma.tele_wizWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_wizs 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` tele_wizs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_wizs. + */ + distinct?: Prisma.Tele_wizScalarFieldEnum | Prisma.Tele_wizScalarFieldEnum[] +} + +/** + * tele_wiz findFirstOrThrow + */ +export type tele_wizFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the tele_wiz + */ + select?: Prisma.tele_wizSelect | null + /** + * Omit specific fields from the tele_wiz + */ + omit?: Prisma.tele_wizOmit | null + /** + * Filter, which tele_wiz to fetch. + */ + where?: Prisma.tele_wizWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_wizs to fetch. + */ + orderBy?: Prisma.tele_wizOrderByWithRelationInput | Prisma.tele_wizOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tele_wizs. + */ + cursor?: Prisma.tele_wizWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_wizs 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` tele_wizs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tele_wizs. + */ + distinct?: Prisma.Tele_wizScalarFieldEnum | Prisma.Tele_wizScalarFieldEnum[] +} + +/** + * tele_wiz findMany + */ +export type tele_wizFindManyArgs = { + /** + * Select specific fields to fetch from the tele_wiz + */ + select?: Prisma.tele_wizSelect | null + /** + * Omit specific fields from the tele_wiz + */ + omit?: Prisma.tele_wizOmit | null + /** + * Filter, which tele_wizs to fetch. + */ + where?: Prisma.tele_wizWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tele_wizs to fetch. + */ + orderBy?: Prisma.tele_wizOrderByWithRelationInput | Prisma.tele_wizOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing tele_wizs. + */ + cursor?: Prisma.tele_wizWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tele_wizs 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` tele_wizs. + */ + skip?: number + distinct?: Prisma.Tele_wizScalarFieldEnum | Prisma.Tele_wizScalarFieldEnum[] +} + +/** + * tele_wiz create + */ +export type tele_wizCreateArgs = { + /** + * Select specific fields to fetch from the tele_wiz + */ + select?: Prisma.tele_wizSelect | null + /** + * Omit specific fields from the tele_wiz + */ + omit?: Prisma.tele_wizOmit | null + /** + * The data needed to create a tele_wiz. + */ + data: Prisma.XOR +} + +/** + * tele_wiz createMany + */ +export type tele_wizCreateManyArgs = { + /** + * The data used to create many tele_wizs. + */ + data: Prisma.tele_wizCreateManyInput | Prisma.tele_wizCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * tele_wiz update + */ +export type tele_wizUpdateArgs = { + /** + * Select specific fields to fetch from the tele_wiz + */ + select?: Prisma.tele_wizSelect | null + /** + * Omit specific fields from the tele_wiz + */ + omit?: Prisma.tele_wizOmit | null + /** + * The data needed to update a tele_wiz. + */ + data: Prisma.XOR + /** + * Choose, which tele_wiz to update. + */ + where: Prisma.tele_wizWhereUniqueInput +} + +/** + * tele_wiz updateMany + */ +export type tele_wizUpdateManyArgs = { + /** + * The data used to update tele_wizs. + */ + data: Prisma.XOR + /** + * Filter which tele_wizs to update + */ + where?: Prisma.tele_wizWhereInput + /** + * Limit how many tele_wizs to update. + */ + limit?: number +} + +/** + * tele_wiz upsert + */ +export type tele_wizUpsertArgs = { + /** + * Select specific fields to fetch from the tele_wiz + */ + select?: Prisma.tele_wizSelect | null + /** + * Omit specific fields from the tele_wiz + */ + omit?: Prisma.tele_wizOmit | null + /** + * The filter to search for the tele_wiz to update in case it exists. + */ + where: Prisma.tele_wizWhereUniqueInput + /** + * In case the tele_wiz found by the `where` argument doesn't exist, create a new tele_wiz with this data. + */ + create: Prisma.XOR + /** + * In case the tele_wiz was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * tele_wiz delete + */ +export type tele_wizDeleteArgs = { + /** + * Select specific fields to fetch from the tele_wiz + */ + select?: Prisma.tele_wizSelect | null + /** + * Omit specific fields from the tele_wiz + */ + omit?: Prisma.tele_wizOmit | null + /** + * Filter which tele_wiz to delete. + */ + where: Prisma.tele_wizWhereUniqueInput +} + +/** + * tele_wiz deleteMany + */ +export type tele_wizDeleteManyArgs = { + /** + * Filter which tele_wizs to delete + */ + where?: Prisma.tele_wizWhereInput + /** + * Limit how many tele_wizs to delete. + */ + limit?: number +} + +/** + * tele_wiz without action + */ +export type tele_wizDefaultArgs = { + /** + * Select specific fields to fetch from the tele_wiz + */ + select?: Prisma.tele_wizSelect | null + /** + * Omit specific fields from the tele_wiz + */ + omit?: Prisma.tele_wizOmit | null +} diff --git a/prisma/generated/mariadb/models/test.ts b/prisma/generated/mariadb/models/test.ts new file mode 100644 index 0000000..13cf8e7 --- /dev/null +++ b/prisma/generated/mariadb/models/test.ts @@ -0,0 +1,1033 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `test` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model test + * + */ +export type testModel = runtime.Types.Result.DefaultSelection + +export type AggregateTest = { + _count: TestCountAggregateOutputType | null + _avg: TestAvgAggregateOutputType | null + _sum: TestSumAggregateOutputType | null + _min: TestMinAggregateOutputType | null + _max: TestMaxAggregateOutputType | null +} + +export type TestAvgAggregateOutputType = { + id: number | null + c2: number | null +} + +export type TestSumAggregateOutputType = { + id: number | null + c2: number | null +} + +export type TestMinAggregateOutputType = { + id: number | null + text: string | null + c2: number | null +} + +export type TestMaxAggregateOutputType = { + id: number | null + text: string | null + c2: number | null +} + +export type TestCountAggregateOutputType = { + id: number + text: number + c2: number + _all: number +} + + +export type TestAvgAggregateInputType = { + id?: true + c2?: true +} + +export type TestSumAggregateInputType = { + id?: true + c2?: true +} + +export type TestMinAggregateInputType = { + id?: true + text?: true + c2?: true +} + +export type TestMaxAggregateInputType = { + id?: true + text?: true + c2?: true +} + +export type TestCountAggregateInputType = { + id?: true + text?: true + c2?: true + _all?: true +} + +export type TestAggregateArgs = { + /** + * Filter which test to aggregate. + */ + where?: Prisma.testWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tests to fetch. + */ + orderBy?: Prisma.testOrderByWithRelationInput | Prisma.testOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.testWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tests 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` tests. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned tests + **/ + _count?: true | TestCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: TestAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: TestSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: TestMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: TestMaxAggregateInputType +} + +export type GetTestAggregateType = { + [P in keyof T & keyof AggregateTest]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type testGroupByArgs = { + where?: Prisma.testWhereInput + orderBy?: Prisma.testOrderByWithAggregationInput | Prisma.testOrderByWithAggregationInput[] + by: Prisma.TestScalarFieldEnum[] | Prisma.TestScalarFieldEnum + having?: Prisma.testScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: TestCountAggregateInputType | true + _avg?: TestAvgAggregateInputType + _sum?: TestSumAggregateInputType + _min?: TestMinAggregateInputType + _max?: TestMaxAggregateInputType +} + +export type TestGroupByOutputType = { + id: number + text: string + c2: number + _count: TestCountAggregateOutputType | null + _avg: TestAvgAggregateOutputType | null + _sum: TestSumAggregateOutputType | null + _min: TestMinAggregateOutputType | null + _max: TestMaxAggregateOutputType | null +} + +type GetTestGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof TestGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type testWhereInput = { + AND?: Prisma.testWhereInput | Prisma.testWhereInput[] + OR?: Prisma.testWhereInput[] + NOT?: Prisma.testWhereInput | Prisma.testWhereInput[] + id?: Prisma.IntFilter<"test"> | number + text?: Prisma.StringFilter<"test"> | string + c2?: Prisma.IntFilter<"test"> | number +} + +export type testOrderByWithRelationInput = { + id?: Prisma.SortOrder + text?: Prisma.SortOrder + c2?: Prisma.SortOrder + _relevance?: Prisma.testOrderByRelevanceInput +} + +export type testWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.testWhereInput | Prisma.testWhereInput[] + OR?: Prisma.testWhereInput[] + NOT?: Prisma.testWhereInput | Prisma.testWhereInput[] + text?: Prisma.StringFilter<"test"> | string + c2?: Prisma.IntFilter<"test"> | number +}, "id"> + +export type testOrderByWithAggregationInput = { + id?: Prisma.SortOrder + text?: Prisma.SortOrder + c2?: Prisma.SortOrder + _count?: Prisma.testCountOrderByAggregateInput + _avg?: Prisma.testAvgOrderByAggregateInput + _max?: Prisma.testMaxOrderByAggregateInput + _min?: Prisma.testMinOrderByAggregateInput + _sum?: Prisma.testSumOrderByAggregateInput +} + +export type testScalarWhereWithAggregatesInput = { + AND?: Prisma.testScalarWhereWithAggregatesInput | Prisma.testScalarWhereWithAggregatesInput[] + OR?: Prisma.testScalarWhereWithAggregatesInput[] + NOT?: Prisma.testScalarWhereWithAggregatesInput | Prisma.testScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"test"> | number + text?: Prisma.StringWithAggregatesFilter<"test"> | string + c2?: Prisma.IntWithAggregatesFilter<"test"> | number +} + +export type testCreateInput = { + text: string + c2?: number +} + +export type testUncheckedCreateInput = { + id?: number + text: string + c2?: number +} + +export type testUpdateInput = { + text?: Prisma.StringFieldUpdateOperationsInput | string + c2?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type testUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + text?: Prisma.StringFieldUpdateOperationsInput | string + c2?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type testCreateManyInput = { + id?: number + text: string + c2?: number +} + +export type testUpdateManyMutationInput = { + text?: Prisma.StringFieldUpdateOperationsInput | string + c2?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type testUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + text?: Prisma.StringFieldUpdateOperationsInput | string + c2?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type testOrderByRelevanceInput = { + fields: Prisma.testOrderByRelevanceFieldEnum | Prisma.testOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type testCountOrderByAggregateInput = { + id?: Prisma.SortOrder + text?: Prisma.SortOrder + c2?: Prisma.SortOrder +} + +export type testAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + c2?: Prisma.SortOrder +} + +export type testMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + text?: Prisma.SortOrder + c2?: Prisma.SortOrder +} + +export type testMinOrderByAggregateInput = { + id?: Prisma.SortOrder + text?: Prisma.SortOrder + c2?: Prisma.SortOrder +} + +export type testSumOrderByAggregateInput = { + id?: Prisma.SortOrder + c2?: Prisma.SortOrder +} + + + +export type testSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + text?: boolean + c2?: boolean +}, ExtArgs["result"]["test"]> + + + +export type testSelectScalar = { + id?: boolean + text?: boolean + c2?: boolean +} + +export type testOmit = runtime.Types.Extensions.GetOmit<"id" | "text" | "c2", ExtArgs["result"]["test"]> + +export type $testPayload = { + name: "test" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + text: string + c2: number + }, ExtArgs["result"]["test"]> + composites: {} +} + +export type testGetPayload = runtime.Types.Result.GetResult + +export type testCountArgs = + Omit & { + select?: TestCountAggregateInputType | true + } + +export interface testDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['test'], meta: { name: 'test' } } + /** + * Find zero or one Test that matches the filter. + * @param {testFindUniqueArgs} args - Arguments to find a Test + * @example + * // Get one Test + * const test = await prisma.test.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__testClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Test that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {testFindUniqueOrThrowArgs} args - Arguments to find a Test + * @example + * // Get one Test + * const test = await prisma.test.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__testClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Test 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 {testFindFirstArgs} args - Arguments to find a Test + * @example + * // Get one Test + * const test = await prisma.test.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__testClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Test 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 {testFindFirstOrThrowArgs} args - Arguments to find a Test + * @example + * // Get one Test + * const test = await prisma.test.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__testClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Tests 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 {testFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Tests + * const tests = await prisma.test.findMany() + * + * // Get first 10 Tests + * const tests = await prisma.test.findMany({ take: 10 }) + * + * // Only select the `id` + * const testWithIdOnly = await prisma.test.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Test. + * @param {testCreateArgs} args - Arguments to create a Test. + * @example + * // Create one Test + * const Test = await prisma.test.create({ + * data: { + * // ... data to create a Test + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__testClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Tests. + * @param {testCreateManyArgs} args - Arguments to create many Tests. + * @example + * // Create many Tests + * const test = await prisma.test.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Test. + * @param {testDeleteArgs} args - Arguments to delete one Test. + * @example + * // Delete one Test + * const Test = await prisma.test.delete({ + * where: { + * // ... filter to delete one Test + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__testClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Test. + * @param {testUpdateArgs} args - Arguments to update one Test. + * @example + * // Update one Test + * const test = await prisma.test.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__testClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Tests. + * @param {testDeleteManyArgs} args - Arguments to filter Tests to delete. + * @example + * // Delete a few Tests + * const { count } = await prisma.test.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Tests. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {testUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Tests + * const test = await prisma.test.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Test. + * @param {testUpsertArgs} args - Arguments to update or create a Test. + * @example + * // Update or create a Test + * const test = await prisma.test.upsert({ + * create: { + * // ... data to create a Test + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Test we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__testClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Tests. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {testCountArgs} args - Arguments to filter Tests to count. + * @example + * // Count the number of Tests + * const count = await prisma.test.count({ + * where: { + * // ... the filter for the Tests 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 Test. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TestAggregateArgs} 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 Test. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {testGroupByArgs} 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 testGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: testGroupByArgs['orderBy'] } + : { orderBy?: testGroupByArgs['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 ? GetTestGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the test model + */ +readonly fields: testFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for test. + * 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__testClient 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 test model + */ +export interface testFieldRefs { + readonly id: Prisma.FieldRef<"test", 'Int'> + readonly text: Prisma.FieldRef<"test", 'String'> + readonly c2: Prisma.FieldRef<"test", 'Int'> +} + + +// Custom InputTypes +/** + * test findUnique + */ +export type testFindUniqueArgs = { + /** + * Select specific fields to fetch from the test + */ + select?: Prisma.testSelect | null + /** + * Omit specific fields from the test + */ + omit?: Prisma.testOmit | null + /** + * Filter, which test to fetch. + */ + where: Prisma.testWhereUniqueInput +} + +/** + * test findUniqueOrThrow + */ +export type testFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the test + */ + select?: Prisma.testSelect | null + /** + * Omit specific fields from the test + */ + omit?: Prisma.testOmit | null + /** + * Filter, which test to fetch. + */ + where: Prisma.testWhereUniqueInput +} + +/** + * test findFirst + */ +export type testFindFirstArgs = { + /** + * Select specific fields to fetch from the test + */ + select?: Prisma.testSelect | null + /** + * Omit specific fields from the test + */ + omit?: Prisma.testOmit | null + /** + * Filter, which test to fetch. + */ + where?: Prisma.testWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tests to fetch. + */ + orderBy?: Prisma.testOrderByWithRelationInput | Prisma.testOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tests. + */ + cursor?: Prisma.testWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tests 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` tests. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tests. + */ + distinct?: Prisma.TestScalarFieldEnum | Prisma.TestScalarFieldEnum[] +} + +/** + * test findFirstOrThrow + */ +export type testFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the test + */ + select?: Prisma.testSelect | null + /** + * Omit specific fields from the test + */ + omit?: Prisma.testOmit | null + /** + * Filter, which test to fetch. + */ + where?: Prisma.testWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tests to fetch. + */ + orderBy?: Prisma.testOrderByWithRelationInput | Prisma.testOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tests. + */ + cursor?: Prisma.testWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tests 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` tests. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tests. + */ + distinct?: Prisma.TestScalarFieldEnum | Prisma.TestScalarFieldEnum[] +} + +/** + * test findMany + */ +export type testFindManyArgs = { + /** + * Select specific fields to fetch from the test + */ + select?: Prisma.testSelect | null + /** + * Omit specific fields from the test + */ + omit?: Prisma.testOmit | null + /** + * Filter, which tests to fetch. + */ + where?: Prisma.testWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tests to fetch. + */ + orderBy?: Prisma.testOrderByWithRelationInput | Prisma.testOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing tests. + */ + cursor?: Prisma.testWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tests 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` tests. + */ + skip?: number + distinct?: Prisma.TestScalarFieldEnum | Prisma.TestScalarFieldEnum[] +} + +/** + * test create + */ +export type testCreateArgs = { + /** + * Select specific fields to fetch from the test + */ + select?: Prisma.testSelect | null + /** + * Omit specific fields from the test + */ + omit?: Prisma.testOmit | null + /** + * The data needed to create a test. + */ + data: Prisma.XOR +} + +/** + * test createMany + */ +export type testCreateManyArgs = { + /** + * The data used to create many tests. + */ + data: Prisma.testCreateManyInput | Prisma.testCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * test update + */ +export type testUpdateArgs = { + /** + * Select specific fields to fetch from the test + */ + select?: Prisma.testSelect | null + /** + * Omit specific fields from the test + */ + omit?: Prisma.testOmit | null + /** + * The data needed to update a test. + */ + data: Prisma.XOR + /** + * Choose, which test to update. + */ + where: Prisma.testWhereUniqueInput +} + +/** + * test updateMany + */ +export type testUpdateManyArgs = { + /** + * The data used to update tests. + */ + data: Prisma.XOR + /** + * Filter which tests to update + */ + where?: Prisma.testWhereInput + /** + * Limit how many tests to update. + */ + limit?: number +} + +/** + * test upsert + */ +export type testUpsertArgs = { + /** + * Select specific fields to fetch from the test + */ + select?: Prisma.testSelect | null + /** + * Omit specific fields from the test + */ + omit?: Prisma.testOmit | null + /** + * The filter to search for the test to update in case it exists. + */ + where: Prisma.testWhereUniqueInput + /** + * In case the test found by the `where` argument doesn't exist, create a new test with this data. + */ + create: Prisma.XOR + /** + * In case the test was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * test delete + */ +export type testDeleteArgs = { + /** + * Select specific fields to fetch from the test + */ + select?: Prisma.testSelect | null + /** + * Omit specific fields from the test + */ + omit?: Prisma.testOmit | null + /** + * Filter which test to delete. + */ + where: Prisma.testWhereUniqueInput +} + +/** + * test deleteMany + */ +export type testDeleteManyArgs = { + /** + * Filter which tests to delete + */ + where?: Prisma.testWhereInput + /** + * Limit how many tests to delete. + */ + limit?: number +} + +/** + * test without action + */ +export type testDefaultArgs = { + /** + * Select specific fields to fetch from the test + */ + select?: Prisma.testSelect | null + /** + * Omit specific fields from the test + */ + omit?: Prisma.testOmit | null +} diff --git a/prisma/generated/mariadb/models/ticket.ts b/prisma/generated/mariadb/models/ticket.ts new file mode 100644 index 0000000..9ef8a9c --- /dev/null +++ b/prisma/generated/mariadb/models/ticket.ts @@ -0,0 +1,1838 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ticket` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model ticket + * + */ +export type ticketModel = runtime.Types.Result.DefaultSelection + +export type AggregateTicket = { + _count: TicketCountAggregateOutputType | null + _avg: TicketAvgAggregateOutputType | null + _sum: TicketSumAggregateOutputType | null + _min: TicketMinAggregateOutputType | null + _max: TicketMaxAggregateOutputType | null +} + +export type TicketAvgAggregateOutputType = { + id: number | null + ost_id: number | null + parent: number | null + account_id: number | null + delivery_id: number | null + bon_id: number | null + dept_id: number | null + open_by: number | null + assign_to: number | null + due_date: number | null + date_create: number | null + last_update: number | null + pending_to_open: number | null + waiting_for: number | null + priority: number | null + install_success: number | null + important: number | null + closed_by: number | null +} + +export type TicketSumAggregateOutputType = { + id: bigint | null + ost_id: number | null + parent: bigint | null + account_id: bigint | null + delivery_id: bigint | null + bon_id: number | null + dept_id: number | null + open_by: number | null + assign_to: number | null + due_date: bigint | null + date_create: bigint | null + last_update: bigint | null + pending_to_open: bigint | null + waiting_for: bigint | null + priority: number | null + install_success: number | null + important: number | null + closed_by: number | null +} + +export type TicketMinAggregateOutputType = { + id: bigint | null + ost_id: number | null + parent: bigint | null + account_id: bigint | null + delivery_id: bigint | null + bon_id: number | null + subject: string | null + dept_id: number | null + open_by: number | null + email_from: string | null + assign_to: number | null + status: string | null + due_date: bigint | null + due_time: string | null + date_create: bigint | null + last_update: bigint | null + date_closed: string | null + pending_to_open: bigint | null + waiting_for: bigint | null + lock_name: string | null + public: boolean | null + priority: number | null + install_success: number | null + wizard: string | null + wizard_fibre: string | null + important: number | null + followed_by: string | null + participant: string | null + update_timestamp: Date | null + closed_by: number | null +} + +export type TicketMaxAggregateOutputType = { + id: bigint | null + ost_id: number | null + parent: bigint | null + account_id: bigint | null + delivery_id: bigint | null + bon_id: number | null + subject: string | null + dept_id: number | null + open_by: number | null + email_from: string | null + assign_to: number | null + status: string | null + due_date: bigint | null + due_time: string | null + date_create: bigint | null + last_update: bigint | null + date_closed: string | null + pending_to_open: bigint | null + waiting_for: bigint | null + lock_name: string | null + public: boolean | null + priority: number | null + install_success: number | null + wizard: string | null + wizard_fibre: string | null + important: number | null + followed_by: string | null + participant: string | null + update_timestamp: Date | null + closed_by: number | null +} + +export type TicketCountAggregateOutputType = { + id: number + ost_id: number + parent: number + account_id: number + delivery_id: number + bon_id: number + subject: number + dept_id: number + open_by: number + email_from: number + assign_to: number + status: number + due_date: number + due_time: number + date_create: number + last_update: number + date_closed: number + pending_to_open: number + waiting_for: number + lock_name: number + public: number + priority: number + install_success: number + wizard: number + wizard_fibre: number + important: number + followed_by: number + participant: number + update_timestamp: number + closed_by: number + _all: number +} + + +export type TicketAvgAggregateInputType = { + id?: true + ost_id?: true + parent?: true + account_id?: true + delivery_id?: true + bon_id?: true + dept_id?: true + open_by?: true + assign_to?: true + due_date?: true + date_create?: true + last_update?: true + pending_to_open?: true + waiting_for?: true + priority?: true + install_success?: true + important?: true + closed_by?: true +} + +export type TicketSumAggregateInputType = { + id?: true + ost_id?: true + parent?: true + account_id?: true + delivery_id?: true + bon_id?: true + dept_id?: true + open_by?: true + assign_to?: true + due_date?: true + date_create?: true + last_update?: true + pending_to_open?: true + waiting_for?: true + priority?: true + install_success?: true + important?: true + closed_by?: true +} + +export type TicketMinAggregateInputType = { + id?: true + ost_id?: true + parent?: true + account_id?: true + delivery_id?: true + bon_id?: true + subject?: true + dept_id?: true + open_by?: true + email_from?: true + assign_to?: true + status?: true + due_date?: true + due_time?: true + date_create?: true + last_update?: true + date_closed?: true + pending_to_open?: true + waiting_for?: true + lock_name?: true + public?: true + priority?: true + install_success?: true + wizard?: true + wizard_fibre?: true + important?: true + followed_by?: true + participant?: true + update_timestamp?: true + closed_by?: true +} + +export type TicketMaxAggregateInputType = { + id?: true + ost_id?: true + parent?: true + account_id?: true + delivery_id?: true + bon_id?: true + subject?: true + dept_id?: true + open_by?: true + email_from?: true + assign_to?: true + status?: true + due_date?: true + due_time?: true + date_create?: true + last_update?: true + date_closed?: true + pending_to_open?: true + waiting_for?: true + lock_name?: true + public?: true + priority?: true + install_success?: true + wizard?: true + wizard_fibre?: true + important?: true + followed_by?: true + participant?: true + update_timestamp?: true + closed_by?: true +} + +export type TicketCountAggregateInputType = { + id?: true + ost_id?: true + parent?: true + account_id?: true + delivery_id?: true + bon_id?: true + subject?: true + dept_id?: true + open_by?: true + email_from?: true + assign_to?: true + status?: true + due_date?: true + due_time?: true + date_create?: true + last_update?: true + date_closed?: true + pending_to_open?: true + waiting_for?: true + lock_name?: true + public?: true + priority?: true + install_success?: true + wizard?: true + wizard_fibre?: true + important?: true + followed_by?: true + participant?: true + update_timestamp?: true + closed_by?: true + _all?: true +} + +export type TicketAggregateArgs = { + /** + * Filter which ticket to aggregate. + */ + where?: Prisma.ticketWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tickets to fetch. + */ + orderBy?: Prisma.ticketOrderByWithRelationInput | Prisma.ticketOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ticketWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tickets 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` tickets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned tickets + **/ + _count?: true | TicketCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: TicketAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: TicketSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: TicketMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: TicketMaxAggregateInputType +} + +export type GetTicketAggregateType = { + [P in keyof T & keyof AggregateTicket]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ticketGroupByArgs = { + where?: Prisma.ticketWhereInput + orderBy?: Prisma.ticketOrderByWithAggregationInput | Prisma.ticketOrderByWithAggregationInput[] + by: Prisma.TicketScalarFieldEnum[] | Prisma.TicketScalarFieldEnum + having?: Prisma.ticketScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: TicketCountAggregateInputType | true + _avg?: TicketAvgAggregateInputType + _sum?: TicketSumAggregateInputType + _min?: TicketMinAggregateInputType + _max?: TicketMaxAggregateInputType +} + +export type TicketGroupByOutputType = { + id: bigint + ost_id: number | null + parent: bigint + account_id: bigint | null + delivery_id: bigint + bon_id: number | null + subject: string | null + dept_id: number | null + open_by: number + email_from: string + assign_to: number + status: string + due_date: bigint + due_time: string + date_create: bigint | null + last_update: bigint | null + date_closed: string + pending_to_open: bigint + waiting_for: bigint | null + lock_name: string + public: boolean | null + priority: number + install_success: number + wizard: string | null + wizard_fibre: string | null + important: number + followed_by: string + participant: string + update_timestamp: Date + closed_by: number + _count: TicketCountAggregateOutputType | null + _avg: TicketAvgAggregateOutputType | null + _sum: TicketSumAggregateOutputType | null + _min: TicketMinAggregateOutputType | null + _max: TicketMaxAggregateOutputType | null +} + +type GetTicketGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof TicketGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ticketWhereInput = { + AND?: Prisma.ticketWhereInput | Prisma.ticketWhereInput[] + OR?: Prisma.ticketWhereInput[] + NOT?: Prisma.ticketWhereInput | Prisma.ticketWhereInput[] + id?: Prisma.BigIntFilter<"ticket"> | bigint | number + ost_id?: Prisma.IntNullableFilter<"ticket"> | number | null + parent?: Prisma.BigIntFilter<"ticket"> | bigint | number + account_id?: Prisma.BigIntNullableFilter<"ticket"> | bigint | number | null + delivery_id?: Prisma.BigIntFilter<"ticket"> | bigint | number + bon_id?: Prisma.IntNullableFilter<"ticket"> | number | null + subject?: Prisma.StringNullableFilter<"ticket"> | string | null + dept_id?: Prisma.IntNullableFilter<"ticket"> | number | null + open_by?: Prisma.IntFilter<"ticket"> | number + email_from?: Prisma.StringFilter<"ticket"> | string + assign_to?: Prisma.IntFilter<"ticket"> | number + status?: Prisma.StringFilter<"ticket"> | string + due_date?: Prisma.BigIntFilter<"ticket"> | bigint | number + due_time?: Prisma.StringFilter<"ticket"> | string + date_create?: Prisma.BigIntNullableFilter<"ticket"> | bigint | number | null + last_update?: Prisma.BigIntNullableFilter<"ticket"> | bigint | number | null + date_closed?: Prisma.StringFilter<"ticket"> | string + pending_to_open?: Prisma.BigIntFilter<"ticket"> | bigint | number + waiting_for?: Prisma.BigIntNullableFilter<"ticket"> | bigint | number | null + lock_name?: Prisma.StringFilter<"ticket"> | string + public?: Prisma.BoolNullableFilter<"ticket"> | boolean | null + priority?: Prisma.IntFilter<"ticket"> | number + install_success?: Prisma.IntFilter<"ticket"> | number + wizard?: Prisma.StringNullableFilter<"ticket"> | string | null + wizard_fibre?: Prisma.StringNullableFilter<"ticket"> | string | null + important?: Prisma.IntFilter<"ticket"> | number + followed_by?: Prisma.StringFilter<"ticket"> | string + participant?: Prisma.StringFilter<"ticket"> | string + update_timestamp?: Prisma.DateTimeFilter<"ticket"> | Date | string + closed_by?: Prisma.IntFilter<"ticket"> | number +} + +export type ticketOrderByWithRelationInput = { + id?: Prisma.SortOrder + ost_id?: Prisma.SortOrderInput | Prisma.SortOrder + parent?: Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + delivery_id?: Prisma.SortOrder + bon_id?: Prisma.SortOrderInput | Prisma.SortOrder + subject?: Prisma.SortOrderInput | Prisma.SortOrder + dept_id?: Prisma.SortOrderInput | Prisma.SortOrder + open_by?: Prisma.SortOrder + email_from?: Prisma.SortOrder + assign_to?: Prisma.SortOrder + status?: Prisma.SortOrder + due_date?: Prisma.SortOrder + due_time?: Prisma.SortOrder + date_create?: Prisma.SortOrderInput | Prisma.SortOrder + last_update?: Prisma.SortOrderInput | Prisma.SortOrder + date_closed?: Prisma.SortOrder + pending_to_open?: Prisma.SortOrder + waiting_for?: Prisma.SortOrderInput | Prisma.SortOrder + lock_name?: Prisma.SortOrder + public?: Prisma.SortOrderInput | Prisma.SortOrder + priority?: Prisma.SortOrder + install_success?: Prisma.SortOrder + wizard?: Prisma.SortOrderInput | Prisma.SortOrder + wizard_fibre?: Prisma.SortOrderInput | Prisma.SortOrder + important?: Prisma.SortOrder + followed_by?: Prisma.SortOrder + participant?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder + closed_by?: Prisma.SortOrder + _relevance?: Prisma.ticketOrderByRelevanceInput +} + +export type ticketWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.ticketWhereInput | Prisma.ticketWhereInput[] + OR?: Prisma.ticketWhereInput[] + NOT?: Prisma.ticketWhereInput | Prisma.ticketWhereInput[] + ost_id?: Prisma.IntNullableFilter<"ticket"> | number | null + parent?: Prisma.BigIntFilter<"ticket"> | bigint | number + account_id?: Prisma.BigIntNullableFilter<"ticket"> | bigint | number | null + delivery_id?: Prisma.BigIntFilter<"ticket"> | bigint | number + bon_id?: Prisma.IntNullableFilter<"ticket"> | number | null + subject?: Prisma.StringNullableFilter<"ticket"> | string | null + dept_id?: Prisma.IntNullableFilter<"ticket"> | number | null + open_by?: Prisma.IntFilter<"ticket"> | number + email_from?: Prisma.StringFilter<"ticket"> | string + assign_to?: Prisma.IntFilter<"ticket"> | number + status?: Prisma.StringFilter<"ticket"> | string + due_date?: Prisma.BigIntFilter<"ticket"> | bigint | number + due_time?: Prisma.StringFilter<"ticket"> | string + date_create?: Prisma.BigIntNullableFilter<"ticket"> | bigint | number | null + last_update?: Prisma.BigIntNullableFilter<"ticket"> | bigint | number | null + date_closed?: Prisma.StringFilter<"ticket"> | string + pending_to_open?: Prisma.BigIntFilter<"ticket"> | bigint | number + waiting_for?: Prisma.BigIntNullableFilter<"ticket"> | bigint | number | null + lock_name?: Prisma.StringFilter<"ticket"> | string + public?: Prisma.BoolNullableFilter<"ticket"> | boolean | null + priority?: Prisma.IntFilter<"ticket"> | number + install_success?: Prisma.IntFilter<"ticket"> | number + wizard?: Prisma.StringNullableFilter<"ticket"> | string | null + wizard_fibre?: Prisma.StringNullableFilter<"ticket"> | string | null + important?: Prisma.IntFilter<"ticket"> | number + followed_by?: Prisma.StringFilter<"ticket"> | string + participant?: Prisma.StringFilter<"ticket"> | string + update_timestamp?: Prisma.DateTimeFilter<"ticket"> | Date | string + closed_by?: Prisma.IntFilter<"ticket"> | number +}, "id"> + +export type ticketOrderByWithAggregationInput = { + id?: Prisma.SortOrder + ost_id?: Prisma.SortOrderInput | Prisma.SortOrder + parent?: Prisma.SortOrder + account_id?: Prisma.SortOrderInput | Prisma.SortOrder + delivery_id?: Prisma.SortOrder + bon_id?: Prisma.SortOrderInput | Prisma.SortOrder + subject?: Prisma.SortOrderInput | Prisma.SortOrder + dept_id?: Prisma.SortOrderInput | Prisma.SortOrder + open_by?: Prisma.SortOrder + email_from?: Prisma.SortOrder + assign_to?: Prisma.SortOrder + status?: Prisma.SortOrder + due_date?: Prisma.SortOrder + due_time?: Prisma.SortOrder + date_create?: Prisma.SortOrderInput | Prisma.SortOrder + last_update?: Prisma.SortOrderInput | Prisma.SortOrder + date_closed?: Prisma.SortOrder + pending_to_open?: Prisma.SortOrder + waiting_for?: Prisma.SortOrderInput | Prisma.SortOrder + lock_name?: Prisma.SortOrder + public?: Prisma.SortOrderInput | Prisma.SortOrder + priority?: Prisma.SortOrder + install_success?: Prisma.SortOrder + wizard?: Prisma.SortOrderInput | Prisma.SortOrder + wizard_fibre?: Prisma.SortOrderInput | Prisma.SortOrder + important?: Prisma.SortOrder + followed_by?: Prisma.SortOrder + participant?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder + closed_by?: Prisma.SortOrder + _count?: Prisma.ticketCountOrderByAggregateInput + _avg?: Prisma.ticketAvgOrderByAggregateInput + _max?: Prisma.ticketMaxOrderByAggregateInput + _min?: Prisma.ticketMinOrderByAggregateInput + _sum?: Prisma.ticketSumOrderByAggregateInput +} + +export type ticketScalarWhereWithAggregatesInput = { + AND?: Prisma.ticketScalarWhereWithAggregatesInput | Prisma.ticketScalarWhereWithAggregatesInput[] + OR?: Prisma.ticketScalarWhereWithAggregatesInput[] + NOT?: Prisma.ticketScalarWhereWithAggregatesInput | Prisma.ticketScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"ticket"> | bigint | number + ost_id?: Prisma.IntNullableWithAggregatesFilter<"ticket"> | number | null + parent?: Prisma.BigIntWithAggregatesFilter<"ticket"> | bigint | number + account_id?: Prisma.BigIntNullableWithAggregatesFilter<"ticket"> | bigint | number | null + delivery_id?: Prisma.BigIntWithAggregatesFilter<"ticket"> | bigint | number + bon_id?: Prisma.IntNullableWithAggregatesFilter<"ticket"> | number | null + subject?: Prisma.StringNullableWithAggregatesFilter<"ticket"> | string | null + dept_id?: Prisma.IntNullableWithAggregatesFilter<"ticket"> | number | null + open_by?: Prisma.IntWithAggregatesFilter<"ticket"> | number + email_from?: Prisma.StringWithAggregatesFilter<"ticket"> | string + assign_to?: Prisma.IntWithAggregatesFilter<"ticket"> | number + status?: Prisma.StringWithAggregatesFilter<"ticket"> | string + due_date?: Prisma.BigIntWithAggregatesFilter<"ticket"> | bigint | number + due_time?: Prisma.StringWithAggregatesFilter<"ticket"> | string + date_create?: Prisma.BigIntNullableWithAggregatesFilter<"ticket"> | bigint | number | null + last_update?: Prisma.BigIntNullableWithAggregatesFilter<"ticket"> | bigint | number | null + date_closed?: Prisma.StringWithAggregatesFilter<"ticket"> | string + pending_to_open?: Prisma.BigIntWithAggregatesFilter<"ticket"> | bigint | number + waiting_for?: Prisma.BigIntNullableWithAggregatesFilter<"ticket"> | bigint | number | null + lock_name?: Prisma.StringWithAggregatesFilter<"ticket"> | string + public?: Prisma.BoolNullableWithAggregatesFilter<"ticket"> | boolean | null + priority?: Prisma.IntWithAggregatesFilter<"ticket"> | number + install_success?: Prisma.IntWithAggregatesFilter<"ticket"> | number + wizard?: Prisma.StringNullableWithAggregatesFilter<"ticket"> | string | null + wizard_fibre?: Prisma.StringNullableWithAggregatesFilter<"ticket"> | string | null + important?: Prisma.IntWithAggregatesFilter<"ticket"> | number + followed_by?: Prisma.StringWithAggregatesFilter<"ticket"> | string + participant?: Prisma.StringWithAggregatesFilter<"ticket"> | string + update_timestamp?: Prisma.DateTimeWithAggregatesFilter<"ticket"> | Date | string + closed_by?: Prisma.IntWithAggregatesFilter<"ticket"> | number +} + +export type ticketCreateInput = { + id?: bigint | number + ost_id?: number | null + parent?: bigint | number + account_id?: bigint | number | null + delivery_id?: bigint | number + bon_id?: number | null + subject?: string | null + dept_id?: number | null + open_by?: number + email_from: string + assign_to?: number + status?: string + due_date?: bigint | number + due_time?: string + date_create?: bigint | number | null + last_update?: bigint | number | null + date_closed?: string + pending_to_open?: bigint | number + waiting_for?: bigint | number | null + lock_name: string + public?: boolean | null + priority?: number + install_success?: number + wizard?: string | null + wizard_fibre?: string | null + important?: number + followed_by: string + participant: string + update_timestamp?: Date | string + closed_by?: number +} + +export type ticketUncheckedCreateInput = { + id?: bigint | number + ost_id?: number | null + parent?: bigint | number + account_id?: bigint | number | null + delivery_id?: bigint | number + bon_id?: number | null + subject?: string | null + dept_id?: number | null + open_by?: number + email_from: string + assign_to?: number + status?: string + due_date?: bigint | number + due_time?: string + date_create?: bigint | number | null + last_update?: bigint | number | null + date_closed?: string + pending_to_open?: bigint | number + waiting_for?: bigint | number | null + lock_name: string + public?: boolean | null + priority?: number + install_success?: number + wizard?: string | null + wizard_fibre?: string | null + important?: number + followed_by: string + participant: string + update_timestamp?: Date | string + closed_by?: number +} + +export type ticketUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ost_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + parent?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + delivery_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + bon_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + dept_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + open_by?: Prisma.IntFieldUpdateOperationsInput | number + email_from?: Prisma.StringFieldUpdateOperationsInput | string + assign_to?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.StringFieldUpdateOperationsInput | string + due_date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + due_time?: Prisma.StringFieldUpdateOperationsInput | string + date_create?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + last_update?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_closed?: Prisma.StringFieldUpdateOperationsInput | string + pending_to_open?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + waiting_for?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + lock_name?: Prisma.StringFieldUpdateOperationsInput | string + public?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + priority?: Prisma.IntFieldUpdateOperationsInput | number + install_success?: Prisma.IntFieldUpdateOperationsInput | number + wizard?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + wizard_fibre?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + important?: Prisma.IntFieldUpdateOperationsInput | number + followed_by?: Prisma.StringFieldUpdateOperationsInput | string + participant?: Prisma.StringFieldUpdateOperationsInput | string + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + closed_by?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type ticketUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ost_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + parent?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + delivery_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + bon_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + dept_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + open_by?: Prisma.IntFieldUpdateOperationsInput | number + email_from?: Prisma.StringFieldUpdateOperationsInput | string + assign_to?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.StringFieldUpdateOperationsInput | string + due_date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + due_time?: Prisma.StringFieldUpdateOperationsInput | string + date_create?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + last_update?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_closed?: Prisma.StringFieldUpdateOperationsInput | string + pending_to_open?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + waiting_for?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + lock_name?: Prisma.StringFieldUpdateOperationsInput | string + public?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + priority?: Prisma.IntFieldUpdateOperationsInput | number + install_success?: Prisma.IntFieldUpdateOperationsInput | number + wizard?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + wizard_fibre?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + important?: Prisma.IntFieldUpdateOperationsInput | number + followed_by?: Prisma.StringFieldUpdateOperationsInput | string + participant?: Prisma.StringFieldUpdateOperationsInput | string + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + closed_by?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type ticketCreateManyInput = { + id?: bigint | number + ost_id?: number | null + parent?: bigint | number + account_id?: bigint | number | null + delivery_id?: bigint | number + bon_id?: number | null + subject?: string | null + dept_id?: number | null + open_by?: number + email_from: string + assign_to?: number + status?: string + due_date?: bigint | number + due_time?: string + date_create?: bigint | number | null + last_update?: bigint | number | null + date_closed?: string + pending_to_open?: bigint | number + waiting_for?: bigint | number | null + lock_name: string + public?: boolean | null + priority?: number + install_success?: number + wizard?: string | null + wizard_fibre?: string | null + important?: number + followed_by: string + participant: string + update_timestamp?: Date | string + closed_by?: number +} + +export type ticketUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ost_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + parent?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + delivery_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + bon_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + dept_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + open_by?: Prisma.IntFieldUpdateOperationsInput | number + email_from?: Prisma.StringFieldUpdateOperationsInput | string + assign_to?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.StringFieldUpdateOperationsInput | string + due_date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + due_time?: Prisma.StringFieldUpdateOperationsInput | string + date_create?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + last_update?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_closed?: Prisma.StringFieldUpdateOperationsInput | string + pending_to_open?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + waiting_for?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + lock_name?: Prisma.StringFieldUpdateOperationsInput | string + public?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + priority?: Prisma.IntFieldUpdateOperationsInput | number + install_success?: Prisma.IntFieldUpdateOperationsInput | number + wizard?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + wizard_fibre?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + important?: Prisma.IntFieldUpdateOperationsInput | number + followed_by?: Prisma.StringFieldUpdateOperationsInput | string + participant?: Prisma.StringFieldUpdateOperationsInput | string + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + closed_by?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type ticketUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ost_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + parent?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + delivery_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + bon_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + dept_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + open_by?: Prisma.IntFieldUpdateOperationsInput | number + email_from?: Prisma.StringFieldUpdateOperationsInput | string + assign_to?: Prisma.IntFieldUpdateOperationsInput | number + status?: Prisma.StringFieldUpdateOperationsInput | string + due_date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + due_time?: Prisma.StringFieldUpdateOperationsInput | string + date_create?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + last_update?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + date_closed?: Prisma.StringFieldUpdateOperationsInput | string + pending_to_open?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + waiting_for?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + lock_name?: Prisma.StringFieldUpdateOperationsInput | string + public?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + priority?: Prisma.IntFieldUpdateOperationsInput | number + install_success?: Prisma.IntFieldUpdateOperationsInput | number + wizard?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + wizard_fibre?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + important?: Prisma.IntFieldUpdateOperationsInput | number + followed_by?: Prisma.StringFieldUpdateOperationsInput | string + participant?: Prisma.StringFieldUpdateOperationsInput | string + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + closed_by?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type ticketOrderByRelevanceInput = { + fields: Prisma.ticketOrderByRelevanceFieldEnum | Prisma.ticketOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type ticketCountOrderByAggregateInput = { + id?: Prisma.SortOrder + ost_id?: Prisma.SortOrder + parent?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + bon_id?: Prisma.SortOrder + subject?: Prisma.SortOrder + dept_id?: Prisma.SortOrder + open_by?: Prisma.SortOrder + email_from?: Prisma.SortOrder + assign_to?: Prisma.SortOrder + status?: Prisma.SortOrder + due_date?: Prisma.SortOrder + due_time?: Prisma.SortOrder + date_create?: Prisma.SortOrder + last_update?: Prisma.SortOrder + date_closed?: Prisma.SortOrder + pending_to_open?: Prisma.SortOrder + waiting_for?: Prisma.SortOrder + lock_name?: Prisma.SortOrder + public?: Prisma.SortOrder + priority?: Prisma.SortOrder + install_success?: Prisma.SortOrder + wizard?: Prisma.SortOrder + wizard_fibre?: Prisma.SortOrder + important?: Prisma.SortOrder + followed_by?: Prisma.SortOrder + participant?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder + closed_by?: Prisma.SortOrder +} + +export type ticketAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + ost_id?: Prisma.SortOrder + parent?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + bon_id?: Prisma.SortOrder + dept_id?: Prisma.SortOrder + open_by?: Prisma.SortOrder + assign_to?: Prisma.SortOrder + due_date?: Prisma.SortOrder + date_create?: Prisma.SortOrder + last_update?: Prisma.SortOrder + pending_to_open?: Prisma.SortOrder + waiting_for?: Prisma.SortOrder + priority?: Prisma.SortOrder + install_success?: Prisma.SortOrder + important?: Prisma.SortOrder + closed_by?: Prisma.SortOrder +} + +export type ticketMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + ost_id?: Prisma.SortOrder + parent?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + bon_id?: Prisma.SortOrder + subject?: Prisma.SortOrder + dept_id?: Prisma.SortOrder + open_by?: Prisma.SortOrder + email_from?: Prisma.SortOrder + assign_to?: Prisma.SortOrder + status?: Prisma.SortOrder + due_date?: Prisma.SortOrder + due_time?: Prisma.SortOrder + date_create?: Prisma.SortOrder + last_update?: Prisma.SortOrder + date_closed?: Prisma.SortOrder + pending_to_open?: Prisma.SortOrder + waiting_for?: Prisma.SortOrder + lock_name?: Prisma.SortOrder + public?: Prisma.SortOrder + priority?: Prisma.SortOrder + install_success?: Prisma.SortOrder + wizard?: Prisma.SortOrder + wizard_fibre?: Prisma.SortOrder + important?: Prisma.SortOrder + followed_by?: Prisma.SortOrder + participant?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder + closed_by?: Prisma.SortOrder +} + +export type ticketMinOrderByAggregateInput = { + id?: Prisma.SortOrder + ost_id?: Prisma.SortOrder + parent?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + bon_id?: Prisma.SortOrder + subject?: Prisma.SortOrder + dept_id?: Prisma.SortOrder + open_by?: Prisma.SortOrder + email_from?: Prisma.SortOrder + assign_to?: Prisma.SortOrder + status?: Prisma.SortOrder + due_date?: Prisma.SortOrder + due_time?: Prisma.SortOrder + date_create?: Prisma.SortOrder + last_update?: Prisma.SortOrder + date_closed?: Prisma.SortOrder + pending_to_open?: Prisma.SortOrder + waiting_for?: Prisma.SortOrder + lock_name?: Prisma.SortOrder + public?: Prisma.SortOrder + priority?: Prisma.SortOrder + install_success?: Prisma.SortOrder + wizard?: Prisma.SortOrder + wizard_fibre?: Prisma.SortOrder + important?: Prisma.SortOrder + followed_by?: Prisma.SortOrder + participant?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder + closed_by?: Prisma.SortOrder +} + +export type ticketSumOrderByAggregateInput = { + id?: Prisma.SortOrder + ost_id?: Prisma.SortOrder + parent?: Prisma.SortOrder + account_id?: Prisma.SortOrder + delivery_id?: Prisma.SortOrder + bon_id?: Prisma.SortOrder + dept_id?: Prisma.SortOrder + open_by?: Prisma.SortOrder + assign_to?: Prisma.SortOrder + due_date?: Prisma.SortOrder + date_create?: Prisma.SortOrder + last_update?: Prisma.SortOrder + pending_to_open?: Prisma.SortOrder + waiting_for?: Prisma.SortOrder + priority?: Prisma.SortOrder + install_success?: Prisma.SortOrder + important?: Prisma.SortOrder + closed_by?: Prisma.SortOrder +} + +export type NullableBoolFieldUpdateOperationsInput = { + set?: boolean | null +} + + + +export type ticketSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + ost_id?: boolean + parent?: boolean + account_id?: boolean + delivery_id?: boolean + bon_id?: boolean + subject?: boolean + dept_id?: boolean + open_by?: boolean + email_from?: boolean + assign_to?: boolean + status?: boolean + due_date?: boolean + due_time?: boolean + date_create?: boolean + last_update?: boolean + date_closed?: boolean + pending_to_open?: boolean + waiting_for?: boolean + lock_name?: boolean + public?: boolean + priority?: boolean + install_success?: boolean + wizard?: boolean + wizard_fibre?: boolean + important?: boolean + followed_by?: boolean + participant?: boolean + update_timestamp?: boolean + closed_by?: boolean +}, ExtArgs["result"]["ticket"]> + + + +export type ticketSelectScalar = { + id?: boolean + ost_id?: boolean + parent?: boolean + account_id?: boolean + delivery_id?: boolean + bon_id?: boolean + subject?: boolean + dept_id?: boolean + open_by?: boolean + email_from?: boolean + assign_to?: boolean + status?: boolean + due_date?: boolean + due_time?: boolean + date_create?: boolean + last_update?: boolean + date_closed?: boolean + pending_to_open?: boolean + waiting_for?: boolean + lock_name?: boolean + public?: boolean + priority?: boolean + install_success?: boolean + wizard?: boolean + wizard_fibre?: boolean + important?: boolean + followed_by?: boolean + participant?: boolean + update_timestamp?: boolean + closed_by?: boolean +} + +export type ticketOmit = runtime.Types.Extensions.GetOmit<"id" | "ost_id" | "parent" | "account_id" | "delivery_id" | "bon_id" | "subject" | "dept_id" | "open_by" | "email_from" | "assign_to" | "status" | "due_date" | "due_time" | "date_create" | "last_update" | "date_closed" | "pending_to_open" | "waiting_for" | "lock_name" | "public" | "priority" | "install_success" | "wizard" | "wizard_fibre" | "important" | "followed_by" | "participant" | "update_timestamp" | "closed_by", ExtArgs["result"]["ticket"]> + +export type $ticketPayload = { + name: "ticket" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + ost_id: number | null + parent: bigint + account_id: bigint | null + delivery_id: bigint + bon_id: number | null + subject: string | null + dept_id: number | null + open_by: number + email_from: string + assign_to: number + status: string + due_date: bigint + due_time: string + date_create: bigint | null + last_update: bigint | null + date_closed: string + pending_to_open: bigint + waiting_for: bigint | null + lock_name: string + public: boolean | null + priority: number + install_success: number + wizard: string | null + wizard_fibre: string | null + important: number + followed_by: string + participant: string + update_timestamp: Date + closed_by: number + }, ExtArgs["result"]["ticket"]> + composites: {} +} + +export type ticketGetPayload = runtime.Types.Result.GetResult + +export type ticketCountArgs = + Omit & { + select?: TicketCountAggregateInputType | true + } + +export interface ticketDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ticket'], meta: { name: 'ticket' } } + /** + * Find zero or one Ticket that matches the filter. + * @param {ticketFindUniqueArgs} args - Arguments to find a Ticket + * @example + * // Get one Ticket + * const ticket = await prisma.ticket.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ticketClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Ticket that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ticketFindUniqueOrThrowArgs} args - Arguments to find a Ticket + * @example + * // Get one Ticket + * const ticket = await prisma.ticket.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ticketClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ticket 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 {ticketFindFirstArgs} args - Arguments to find a Ticket + * @example + * // Get one Ticket + * const ticket = await prisma.ticket.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ticketClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ticket 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 {ticketFindFirstOrThrowArgs} args - Arguments to find a Ticket + * @example + * // Get one Ticket + * const ticket = await prisma.ticket.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ticketClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Tickets 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 {ticketFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Tickets + * const tickets = await prisma.ticket.findMany() + * + * // Get first 10 Tickets + * const tickets = await prisma.ticket.findMany({ take: 10 }) + * + * // Only select the `id` + * const ticketWithIdOnly = await prisma.ticket.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Ticket. + * @param {ticketCreateArgs} args - Arguments to create a Ticket. + * @example + * // Create one Ticket + * const Ticket = await prisma.ticket.create({ + * data: { + * // ... data to create a Ticket + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ticketClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Tickets. + * @param {ticketCreateManyArgs} args - Arguments to create many Tickets. + * @example + * // Create many Tickets + * const ticket = await prisma.ticket.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Ticket. + * @param {ticketDeleteArgs} args - Arguments to delete one Ticket. + * @example + * // Delete one Ticket + * const Ticket = await prisma.ticket.delete({ + * where: { + * // ... filter to delete one Ticket + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ticketClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Ticket. + * @param {ticketUpdateArgs} args - Arguments to update one Ticket. + * @example + * // Update one Ticket + * const ticket = await prisma.ticket.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ticketClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Tickets. + * @param {ticketDeleteManyArgs} args - Arguments to filter Tickets to delete. + * @example + * // Delete a few Tickets + * const { count } = await prisma.ticket.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Tickets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticketUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Tickets + * const ticket = await prisma.ticket.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Ticket. + * @param {ticketUpsertArgs} args - Arguments to update or create a Ticket. + * @example + * // Update or create a Ticket + * const ticket = await prisma.ticket.upsert({ + * create: { + * // ... data to create a Ticket + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Ticket we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ticketClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Tickets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticketCountArgs} args - Arguments to filter Tickets to count. + * @example + * // Count the number of Tickets + * const count = await prisma.ticket.count({ + * where: { + * // ... the filter for the Tickets 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 Ticket. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TicketAggregateArgs} 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 Ticket. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticketGroupByArgs} 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 ticketGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ticketGroupByArgs['orderBy'] } + : { orderBy?: ticketGroupByArgs['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 ? GetTicketGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ticket model + */ +readonly fields: ticketFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ticket. + * 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__ticketClient 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 ticket model + */ +export interface ticketFieldRefs { + readonly id: Prisma.FieldRef<"ticket", 'BigInt'> + readonly ost_id: Prisma.FieldRef<"ticket", 'Int'> + readonly parent: Prisma.FieldRef<"ticket", 'BigInt'> + readonly account_id: Prisma.FieldRef<"ticket", 'BigInt'> + readonly delivery_id: Prisma.FieldRef<"ticket", 'BigInt'> + readonly bon_id: Prisma.FieldRef<"ticket", 'Int'> + readonly subject: Prisma.FieldRef<"ticket", 'String'> + readonly dept_id: Prisma.FieldRef<"ticket", 'Int'> + readonly open_by: Prisma.FieldRef<"ticket", 'Int'> + readonly email_from: Prisma.FieldRef<"ticket", 'String'> + readonly assign_to: Prisma.FieldRef<"ticket", 'Int'> + readonly status: Prisma.FieldRef<"ticket", 'String'> + readonly due_date: Prisma.FieldRef<"ticket", 'BigInt'> + readonly due_time: Prisma.FieldRef<"ticket", 'String'> + readonly date_create: Prisma.FieldRef<"ticket", 'BigInt'> + readonly last_update: Prisma.FieldRef<"ticket", 'BigInt'> + readonly date_closed: Prisma.FieldRef<"ticket", 'String'> + readonly pending_to_open: Prisma.FieldRef<"ticket", 'BigInt'> + readonly waiting_for: Prisma.FieldRef<"ticket", 'BigInt'> + readonly lock_name: Prisma.FieldRef<"ticket", 'String'> + readonly public: Prisma.FieldRef<"ticket", 'Boolean'> + readonly priority: Prisma.FieldRef<"ticket", 'Int'> + readonly install_success: Prisma.FieldRef<"ticket", 'Int'> + readonly wizard: Prisma.FieldRef<"ticket", 'String'> + readonly wizard_fibre: Prisma.FieldRef<"ticket", 'String'> + readonly important: Prisma.FieldRef<"ticket", 'Int'> + readonly followed_by: Prisma.FieldRef<"ticket", 'String'> + readonly participant: Prisma.FieldRef<"ticket", 'String'> + readonly update_timestamp: Prisma.FieldRef<"ticket", 'DateTime'> + readonly closed_by: Prisma.FieldRef<"ticket", 'Int'> +} + + +// Custom InputTypes +/** + * ticket findUnique + */ +export type ticketFindUniqueArgs = { + /** + * Select specific fields to fetch from the ticket + */ + select?: Prisma.ticketSelect | null + /** + * Omit specific fields from the ticket + */ + omit?: Prisma.ticketOmit | null + /** + * Filter, which ticket to fetch. + */ + where: Prisma.ticketWhereUniqueInput +} + +/** + * ticket findUniqueOrThrow + */ +export type ticketFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ticket + */ + select?: Prisma.ticketSelect | null + /** + * Omit specific fields from the ticket + */ + omit?: Prisma.ticketOmit | null + /** + * Filter, which ticket to fetch. + */ + where: Prisma.ticketWhereUniqueInput +} + +/** + * ticket findFirst + */ +export type ticketFindFirstArgs = { + /** + * Select specific fields to fetch from the ticket + */ + select?: Prisma.ticketSelect | null + /** + * Omit specific fields from the ticket + */ + omit?: Prisma.ticketOmit | null + /** + * Filter, which ticket to fetch. + */ + where?: Prisma.ticketWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tickets to fetch. + */ + orderBy?: Prisma.ticketOrderByWithRelationInput | Prisma.ticketOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tickets. + */ + cursor?: Prisma.ticketWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tickets 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` tickets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tickets. + */ + distinct?: Prisma.TicketScalarFieldEnum | Prisma.TicketScalarFieldEnum[] +} + +/** + * ticket findFirstOrThrow + */ +export type ticketFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ticket + */ + select?: Prisma.ticketSelect | null + /** + * Omit specific fields from the ticket + */ + omit?: Prisma.ticketOmit | null + /** + * Filter, which ticket to fetch. + */ + where?: Prisma.ticketWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tickets to fetch. + */ + orderBy?: Prisma.ticketOrderByWithRelationInput | Prisma.ticketOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tickets. + */ + cursor?: Prisma.ticketWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tickets 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` tickets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tickets. + */ + distinct?: Prisma.TicketScalarFieldEnum | Prisma.TicketScalarFieldEnum[] +} + +/** + * ticket findMany + */ +export type ticketFindManyArgs = { + /** + * Select specific fields to fetch from the ticket + */ + select?: Prisma.ticketSelect | null + /** + * Omit specific fields from the ticket + */ + omit?: Prisma.ticketOmit | null + /** + * Filter, which tickets to fetch. + */ + where?: Prisma.ticketWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tickets to fetch. + */ + orderBy?: Prisma.ticketOrderByWithRelationInput | Prisma.ticketOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing tickets. + */ + cursor?: Prisma.ticketWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tickets 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` tickets. + */ + skip?: number + distinct?: Prisma.TicketScalarFieldEnum | Prisma.TicketScalarFieldEnum[] +} + +/** + * ticket create + */ +export type ticketCreateArgs = { + /** + * Select specific fields to fetch from the ticket + */ + select?: Prisma.ticketSelect | null + /** + * Omit specific fields from the ticket + */ + omit?: Prisma.ticketOmit | null + /** + * The data needed to create a ticket. + */ + data: Prisma.XOR +} + +/** + * ticket createMany + */ +export type ticketCreateManyArgs = { + /** + * The data used to create many tickets. + */ + data: Prisma.ticketCreateManyInput | Prisma.ticketCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ticket update + */ +export type ticketUpdateArgs = { + /** + * Select specific fields to fetch from the ticket + */ + select?: Prisma.ticketSelect | null + /** + * Omit specific fields from the ticket + */ + omit?: Prisma.ticketOmit | null + /** + * The data needed to update a ticket. + */ + data: Prisma.XOR + /** + * Choose, which ticket to update. + */ + where: Prisma.ticketWhereUniqueInput +} + +/** + * ticket updateMany + */ +export type ticketUpdateManyArgs = { + /** + * The data used to update tickets. + */ + data: Prisma.XOR + /** + * Filter which tickets to update + */ + where?: Prisma.ticketWhereInput + /** + * Limit how many tickets to update. + */ + limit?: number +} + +/** + * ticket upsert + */ +export type ticketUpsertArgs = { + /** + * Select specific fields to fetch from the ticket + */ + select?: Prisma.ticketSelect | null + /** + * Omit specific fields from the ticket + */ + omit?: Prisma.ticketOmit | null + /** + * The filter to search for the ticket to update in case it exists. + */ + where: Prisma.ticketWhereUniqueInput + /** + * In case the ticket found by the `where` argument doesn't exist, create a new ticket with this data. + */ + create: Prisma.XOR + /** + * In case the ticket was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ticket delete + */ +export type ticketDeleteArgs = { + /** + * Select specific fields to fetch from the ticket + */ + select?: Prisma.ticketSelect | null + /** + * Omit specific fields from the ticket + */ + omit?: Prisma.ticketOmit | null + /** + * Filter which ticket to delete. + */ + where: Prisma.ticketWhereUniqueInput +} + +/** + * ticket deleteMany + */ +export type ticketDeleteManyArgs = { + /** + * Filter which tickets to delete + */ + where?: Prisma.ticketWhereInput + /** + * Limit how many tickets to delete. + */ + limit?: number +} + +/** + * ticket without action + */ +export type ticketDefaultArgs = { + /** + * Select specific fields to fetch from the ticket + */ + select?: Prisma.ticketSelect | null + /** + * Omit specific fields from the ticket + */ + omit?: Prisma.ticketOmit | null +} diff --git a/prisma/generated/mariadb/models/ticket_calendar_lock.ts b/prisma/generated/mariadb/models/ticket_calendar_lock.ts new file mode 100644 index 0000000..9b278f2 --- /dev/null +++ b/prisma/generated/mariadb/models/ticket_calendar_lock.ts @@ -0,0 +1,1160 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ticket_calendar_lock` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model ticket_calendar_lock + * + */ +export type ticket_calendar_lockModel = runtime.Types.Result.DefaultSelection + +export type AggregateTicket_calendar_lock = { + _count: Ticket_calendar_lockCountAggregateOutputType | null + _avg: Ticket_calendar_lockAvgAggregateOutputType | null + _sum: Ticket_calendar_lockSumAggregateOutputType | null + _min: Ticket_calendar_lockMinAggregateOutputType | null + _max: Ticket_calendar_lockMaxAggregateOutputType | null +} + +export type Ticket_calendar_lockAvgAggregateOutputType = { + id: number | null + date_lock: number | null + dept_id: number | null + nb_install: number | null + create_by: number | null + update_by: number | null +} + +export type Ticket_calendar_lockSumAggregateOutputType = { + id: number | null + date_lock: bigint | null + dept_id: number | null + nb_install: number | null + create_by: number | null + update_by: number | null +} + +export type Ticket_calendar_lockMinAggregateOutputType = { + id: number | null + date_lock: bigint | null + dept_id: number | null + nb_install: number | null + create_by: number | null + update_by: number | null + last_update: Date | null +} + +export type Ticket_calendar_lockMaxAggregateOutputType = { + id: number | null + date_lock: bigint | null + dept_id: number | null + nb_install: number | null + create_by: number | null + update_by: number | null + last_update: Date | null +} + +export type Ticket_calendar_lockCountAggregateOutputType = { + id: number + date_lock: number + dept_id: number + nb_install: number + create_by: number + update_by: number + last_update: number + _all: number +} + + +export type Ticket_calendar_lockAvgAggregateInputType = { + id?: true + date_lock?: true + dept_id?: true + nb_install?: true + create_by?: true + update_by?: true +} + +export type Ticket_calendar_lockSumAggregateInputType = { + id?: true + date_lock?: true + dept_id?: true + nb_install?: true + create_by?: true + update_by?: true +} + +export type Ticket_calendar_lockMinAggregateInputType = { + id?: true + date_lock?: true + dept_id?: true + nb_install?: true + create_by?: true + update_by?: true + last_update?: true +} + +export type Ticket_calendar_lockMaxAggregateInputType = { + id?: true + date_lock?: true + dept_id?: true + nb_install?: true + create_by?: true + update_by?: true + last_update?: true +} + +export type Ticket_calendar_lockCountAggregateInputType = { + id?: true + date_lock?: true + dept_id?: true + nb_install?: true + create_by?: true + update_by?: true + last_update?: true + _all?: true +} + +export type Ticket_calendar_lockAggregateArgs = { + /** + * Filter which ticket_calendar_lock to aggregate. + */ + where?: Prisma.ticket_calendar_lockWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_calendar_locks to fetch. + */ + orderBy?: Prisma.ticket_calendar_lockOrderByWithRelationInput | Prisma.ticket_calendar_lockOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ticket_calendar_lockWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_calendar_locks 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` ticket_calendar_locks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ticket_calendar_locks + **/ + _count?: true | Ticket_calendar_lockCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Ticket_calendar_lockAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Ticket_calendar_lockSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Ticket_calendar_lockMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Ticket_calendar_lockMaxAggregateInputType +} + +export type GetTicket_calendar_lockAggregateType = { + [P in keyof T & keyof AggregateTicket_calendar_lock]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ticket_calendar_lockGroupByArgs = { + where?: Prisma.ticket_calendar_lockWhereInput + orderBy?: Prisma.ticket_calendar_lockOrderByWithAggregationInput | Prisma.ticket_calendar_lockOrderByWithAggregationInput[] + by: Prisma.Ticket_calendar_lockScalarFieldEnum[] | Prisma.Ticket_calendar_lockScalarFieldEnum + having?: Prisma.ticket_calendar_lockScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Ticket_calendar_lockCountAggregateInputType | true + _avg?: Ticket_calendar_lockAvgAggregateInputType + _sum?: Ticket_calendar_lockSumAggregateInputType + _min?: Ticket_calendar_lockMinAggregateInputType + _max?: Ticket_calendar_lockMaxAggregateInputType +} + +export type Ticket_calendar_lockGroupByOutputType = { + id: number + date_lock: bigint + dept_id: number + nb_install: number + create_by: number + update_by: number + last_update: Date + _count: Ticket_calendar_lockCountAggregateOutputType | null + _avg: Ticket_calendar_lockAvgAggregateOutputType | null + _sum: Ticket_calendar_lockSumAggregateOutputType | null + _min: Ticket_calendar_lockMinAggregateOutputType | null + _max: Ticket_calendar_lockMaxAggregateOutputType | null +} + +type GetTicket_calendar_lockGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Ticket_calendar_lockGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ticket_calendar_lockWhereInput = { + AND?: Prisma.ticket_calendar_lockWhereInput | Prisma.ticket_calendar_lockWhereInput[] + OR?: Prisma.ticket_calendar_lockWhereInput[] + NOT?: Prisma.ticket_calendar_lockWhereInput | Prisma.ticket_calendar_lockWhereInput[] + id?: Prisma.IntFilter<"ticket_calendar_lock"> | number + date_lock?: Prisma.BigIntFilter<"ticket_calendar_lock"> | bigint | number + dept_id?: Prisma.IntFilter<"ticket_calendar_lock"> | number + nb_install?: Prisma.IntFilter<"ticket_calendar_lock"> | number + create_by?: Prisma.IntFilter<"ticket_calendar_lock"> | number + update_by?: Prisma.IntFilter<"ticket_calendar_lock"> | number + last_update?: Prisma.DateTimeFilter<"ticket_calendar_lock"> | Date | string +} + +export type ticket_calendar_lockOrderByWithRelationInput = { + id?: Prisma.SortOrder + date_lock?: Prisma.SortOrder + dept_id?: Prisma.SortOrder + nb_install?: Prisma.SortOrder + create_by?: Prisma.SortOrder + update_by?: Prisma.SortOrder + last_update?: Prisma.SortOrder +} + +export type ticket_calendar_lockWhereUniqueInput = Prisma.AtLeast<{ + id?: number + date_lock_dept_id?: Prisma.ticket_calendar_lockDate_lockDept_idCompoundUniqueInput + AND?: Prisma.ticket_calendar_lockWhereInput | Prisma.ticket_calendar_lockWhereInput[] + OR?: Prisma.ticket_calendar_lockWhereInput[] + NOT?: Prisma.ticket_calendar_lockWhereInput | Prisma.ticket_calendar_lockWhereInput[] + date_lock?: Prisma.BigIntFilter<"ticket_calendar_lock"> | bigint | number + dept_id?: Prisma.IntFilter<"ticket_calendar_lock"> | number + nb_install?: Prisma.IntFilter<"ticket_calendar_lock"> | number + create_by?: Prisma.IntFilter<"ticket_calendar_lock"> | number + update_by?: Prisma.IntFilter<"ticket_calendar_lock"> | number + last_update?: Prisma.DateTimeFilter<"ticket_calendar_lock"> | Date | string +}, "id" | "date_lock_dept_id"> + +export type ticket_calendar_lockOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date_lock?: Prisma.SortOrder + dept_id?: Prisma.SortOrder + nb_install?: Prisma.SortOrder + create_by?: Prisma.SortOrder + update_by?: Prisma.SortOrder + last_update?: Prisma.SortOrder + _count?: Prisma.ticket_calendar_lockCountOrderByAggregateInput + _avg?: Prisma.ticket_calendar_lockAvgOrderByAggregateInput + _max?: Prisma.ticket_calendar_lockMaxOrderByAggregateInput + _min?: Prisma.ticket_calendar_lockMinOrderByAggregateInput + _sum?: Prisma.ticket_calendar_lockSumOrderByAggregateInput +} + +export type ticket_calendar_lockScalarWhereWithAggregatesInput = { + AND?: Prisma.ticket_calendar_lockScalarWhereWithAggregatesInput | Prisma.ticket_calendar_lockScalarWhereWithAggregatesInput[] + OR?: Prisma.ticket_calendar_lockScalarWhereWithAggregatesInput[] + NOT?: Prisma.ticket_calendar_lockScalarWhereWithAggregatesInput | Prisma.ticket_calendar_lockScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"ticket_calendar_lock"> | number + date_lock?: Prisma.BigIntWithAggregatesFilter<"ticket_calendar_lock"> | bigint | number + dept_id?: Prisma.IntWithAggregatesFilter<"ticket_calendar_lock"> | number + nb_install?: Prisma.IntWithAggregatesFilter<"ticket_calendar_lock"> | number + create_by?: Prisma.IntWithAggregatesFilter<"ticket_calendar_lock"> | number + update_by?: Prisma.IntWithAggregatesFilter<"ticket_calendar_lock"> | number + last_update?: Prisma.DateTimeWithAggregatesFilter<"ticket_calendar_lock"> | Date | string +} + +export type ticket_calendar_lockCreateInput = { + date_lock?: bigint | number + dept_id?: number + nb_install?: number + create_by: number + update_by: number + last_update?: Date | string +} + +export type ticket_calendar_lockUncheckedCreateInput = { + id?: number + date_lock?: bigint | number + dept_id?: number + nb_install?: number + create_by: number + update_by: number + last_update?: Date | string +} + +export type ticket_calendar_lockUpdateInput = { + date_lock?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + dept_id?: Prisma.IntFieldUpdateOperationsInput | number + nb_install?: Prisma.IntFieldUpdateOperationsInput | number + create_by?: Prisma.IntFieldUpdateOperationsInput | number + update_by?: Prisma.IntFieldUpdateOperationsInput | number + last_update?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ticket_calendar_lockUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date_lock?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + dept_id?: Prisma.IntFieldUpdateOperationsInput | number + nb_install?: Prisma.IntFieldUpdateOperationsInput | number + create_by?: Prisma.IntFieldUpdateOperationsInput | number + update_by?: Prisma.IntFieldUpdateOperationsInput | number + last_update?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ticket_calendar_lockCreateManyInput = { + id?: number + date_lock?: bigint | number + dept_id?: number + nb_install?: number + create_by: number + update_by: number + last_update?: Date | string +} + +export type ticket_calendar_lockUpdateManyMutationInput = { + date_lock?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + dept_id?: Prisma.IntFieldUpdateOperationsInput | number + nb_install?: Prisma.IntFieldUpdateOperationsInput | number + create_by?: Prisma.IntFieldUpdateOperationsInput | number + update_by?: Prisma.IntFieldUpdateOperationsInput | number + last_update?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ticket_calendar_lockUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date_lock?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + dept_id?: Prisma.IntFieldUpdateOperationsInput | number + nb_install?: Prisma.IntFieldUpdateOperationsInput | number + create_by?: Prisma.IntFieldUpdateOperationsInput | number + update_by?: Prisma.IntFieldUpdateOperationsInput | number + last_update?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ticket_calendar_lockDate_lockDept_idCompoundUniqueInput = { + date_lock: bigint | number + dept_id: number +} + +export type ticket_calendar_lockCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date_lock?: Prisma.SortOrder + dept_id?: Prisma.SortOrder + nb_install?: Prisma.SortOrder + create_by?: Prisma.SortOrder + update_by?: Prisma.SortOrder + last_update?: Prisma.SortOrder +} + +export type ticket_calendar_lockAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date_lock?: Prisma.SortOrder + dept_id?: Prisma.SortOrder + nb_install?: Prisma.SortOrder + create_by?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + +export type ticket_calendar_lockMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date_lock?: Prisma.SortOrder + dept_id?: Prisma.SortOrder + nb_install?: Prisma.SortOrder + create_by?: Prisma.SortOrder + update_by?: Prisma.SortOrder + last_update?: Prisma.SortOrder +} + +export type ticket_calendar_lockMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date_lock?: Prisma.SortOrder + dept_id?: Prisma.SortOrder + nb_install?: Prisma.SortOrder + create_by?: Prisma.SortOrder + update_by?: Prisma.SortOrder + last_update?: Prisma.SortOrder +} + +export type ticket_calendar_lockSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date_lock?: Prisma.SortOrder + dept_id?: Prisma.SortOrder + nb_install?: Prisma.SortOrder + create_by?: Prisma.SortOrder + update_by?: Prisma.SortOrder +} + + + +export type ticket_calendar_lockSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date_lock?: boolean + dept_id?: boolean + nb_install?: boolean + create_by?: boolean + update_by?: boolean + last_update?: boolean +}, ExtArgs["result"]["ticket_calendar_lock"]> + + + +export type ticket_calendar_lockSelectScalar = { + id?: boolean + date_lock?: boolean + dept_id?: boolean + nb_install?: boolean + create_by?: boolean + update_by?: boolean + last_update?: boolean +} + +export type ticket_calendar_lockOmit = runtime.Types.Extensions.GetOmit<"id" | "date_lock" | "dept_id" | "nb_install" | "create_by" | "update_by" | "last_update", ExtArgs["result"]["ticket_calendar_lock"]> + +export type $ticket_calendar_lockPayload = { + name: "ticket_calendar_lock" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + date_lock: bigint + dept_id: number + nb_install: number + create_by: number + update_by: number + last_update: Date + }, ExtArgs["result"]["ticket_calendar_lock"]> + composites: {} +} + +export type ticket_calendar_lockGetPayload = runtime.Types.Result.GetResult + +export type ticket_calendar_lockCountArgs = + Omit & { + select?: Ticket_calendar_lockCountAggregateInputType | true + } + +export interface ticket_calendar_lockDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ticket_calendar_lock'], meta: { name: 'ticket_calendar_lock' } } + /** + * Find zero or one Ticket_calendar_lock that matches the filter. + * @param {ticket_calendar_lockFindUniqueArgs} args - Arguments to find a Ticket_calendar_lock + * @example + * // Get one Ticket_calendar_lock + * const ticket_calendar_lock = await prisma.ticket_calendar_lock.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Ticket_calendar_lock that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ticket_calendar_lockFindUniqueOrThrowArgs} args - Arguments to find a Ticket_calendar_lock + * @example + * // Get one Ticket_calendar_lock + * const ticket_calendar_lock = await prisma.ticket_calendar_lock.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ticket_calendar_lock 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 {ticket_calendar_lockFindFirstArgs} args - Arguments to find a Ticket_calendar_lock + * @example + * // Get one Ticket_calendar_lock + * const ticket_calendar_lock = await prisma.ticket_calendar_lock.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ticket_calendar_lock 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 {ticket_calendar_lockFindFirstOrThrowArgs} args - Arguments to find a Ticket_calendar_lock + * @example + * // Get one Ticket_calendar_lock + * const ticket_calendar_lock = await prisma.ticket_calendar_lock.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Ticket_calendar_locks 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 {ticket_calendar_lockFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Ticket_calendar_locks + * const ticket_calendar_locks = await prisma.ticket_calendar_lock.findMany() + * + * // Get first 10 Ticket_calendar_locks + * const ticket_calendar_locks = await prisma.ticket_calendar_lock.findMany({ take: 10 }) + * + * // Only select the `id` + * const ticket_calendar_lockWithIdOnly = await prisma.ticket_calendar_lock.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Ticket_calendar_lock. + * @param {ticket_calendar_lockCreateArgs} args - Arguments to create a Ticket_calendar_lock. + * @example + * // Create one Ticket_calendar_lock + * const Ticket_calendar_lock = await prisma.ticket_calendar_lock.create({ + * data: { + * // ... data to create a Ticket_calendar_lock + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Ticket_calendar_locks. + * @param {ticket_calendar_lockCreateManyArgs} args - Arguments to create many Ticket_calendar_locks. + * @example + * // Create many Ticket_calendar_locks + * const ticket_calendar_lock = await prisma.ticket_calendar_lock.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Ticket_calendar_lock. + * @param {ticket_calendar_lockDeleteArgs} args - Arguments to delete one Ticket_calendar_lock. + * @example + * // Delete one Ticket_calendar_lock + * const Ticket_calendar_lock = await prisma.ticket_calendar_lock.delete({ + * where: { + * // ... filter to delete one Ticket_calendar_lock + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Ticket_calendar_lock. + * @param {ticket_calendar_lockUpdateArgs} args - Arguments to update one Ticket_calendar_lock. + * @example + * // Update one Ticket_calendar_lock + * const ticket_calendar_lock = await prisma.ticket_calendar_lock.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Ticket_calendar_locks. + * @param {ticket_calendar_lockDeleteManyArgs} args - Arguments to filter Ticket_calendar_locks to delete. + * @example + * // Delete a few Ticket_calendar_locks + * const { count } = await prisma.ticket_calendar_lock.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Ticket_calendar_locks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_calendar_lockUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Ticket_calendar_locks + * const ticket_calendar_lock = await prisma.ticket_calendar_lock.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Ticket_calendar_lock. + * @param {ticket_calendar_lockUpsertArgs} args - Arguments to update or create a Ticket_calendar_lock. + * @example + * // Update or create a Ticket_calendar_lock + * const ticket_calendar_lock = await prisma.ticket_calendar_lock.upsert({ + * create: { + * // ... data to create a Ticket_calendar_lock + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Ticket_calendar_lock we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Ticket_calendar_locks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_calendar_lockCountArgs} args - Arguments to filter Ticket_calendar_locks to count. + * @example + * // Count the number of Ticket_calendar_locks + * const count = await prisma.ticket_calendar_lock.count({ + * where: { + * // ... the filter for the Ticket_calendar_locks 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 Ticket_calendar_lock. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Ticket_calendar_lockAggregateArgs} 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 Ticket_calendar_lock. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_calendar_lockGroupByArgs} 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 ticket_calendar_lockGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ticket_calendar_lockGroupByArgs['orderBy'] } + : { orderBy?: ticket_calendar_lockGroupByArgs['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 ? GetTicket_calendar_lockGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ticket_calendar_lock model + */ +readonly fields: ticket_calendar_lockFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ticket_calendar_lock. + * 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__ticket_calendar_lockClient 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 ticket_calendar_lock model + */ +export interface ticket_calendar_lockFieldRefs { + readonly id: Prisma.FieldRef<"ticket_calendar_lock", 'Int'> + readonly date_lock: Prisma.FieldRef<"ticket_calendar_lock", 'BigInt'> + readonly dept_id: Prisma.FieldRef<"ticket_calendar_lock", 'Int'> + readonly nb_install: Prisma.FieldRef<"ticket_calendar_lock", 'Int'> + readonly create_by: Prisma.FieldRef<"ticket_calendar_lock", 'Int'> + readonly update_by: Prisma.FieldRef<"ticket_calendar_lock", 'Int'> + readonly last_update: Prisma.FieldRef<"ticket_calendar_lock", 'DateTime'> +} + + +// Custom InputTypes +/** + * ticket_calendar_lock findUnique + */ +export type ticket_calendar_lockFindUniqueArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_lock + */ + select?: Prisma.ticket_calendar_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_lock + */ + omit?: Prisma.ticket_calendar_lockOmit | null + /** + * Filter, which ticket_calendar_lock to fetch. + */ + where: Prisma.ticket_calendar_lockWhereUniqueInput +} + +/** + * ticket_calendar_lock findUniqueOrThrow + */ +export type ticket_calendar_lockFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_lock + */ + select?: Prisma.ticket_calendar_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_lock + */ + omit?: Prisma.ticket_calendar_lockOmit | null + /** + * Filter, which ticket_calendar_lock to fetch. + */ + where: Prisma.ticket_calendar_lockWhereUniqueInput +} + +/** + * ticket_calendar_lock findFirst + */ +export type ticket_calendar_lockFindFirstArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_lock + */ + select?: Prisma.ticket_calendar_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_lock + */ + omit?: Prisma.ticket_calendar_lockOmit | null + /** + * Filter, which ticket_calendar_lock to fetch. + */ + where?: Prisma.ticket_calendar_lockWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_calendar_locks to fetch. + */ + orderBy?: Prisma.ticket_calendar_lockOrderByWithRelationInput | Prisma.ticket_calendar_lockOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ticket_calendar_locks. + */ + cursor?: Prisma.ticket_calendar_lockWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_calendar_locks 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` ticket_calendar_locks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ticket_calendar_locks. + */ + distinct?: Prisma.Ticket_calendar_lockScalarFieldEnum | Prisma.Ticket_calendar_lockScalarFieldEnum[] +} + +/** + * ticket_calendar_lock findFirstOrThrow + */ +export type ticket_calendar_lockFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_lock + */ + select?: Prisma.ticket_calendar_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_lock + */ + omit?: Prisma.ticket_calendar_lockOmit | null + /** + * Filter, which ticket_calendar_lock to fetch. + */ + where?: Prisma.ticket_calendar_lockWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_calendar_locks to fetch. + */ + orderBy?: Prisma.ticket_calendar_lockOrderByWithRelationInput | Prisma.ticket_calendar_lockOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ticket_calendar_locks. + */ + cursor?: Prisma.ticket_calendar_lockWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_calendar_locks 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` ticket_calendar_locks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ticket_calendar_locks. + */ + distinct?: Prisma.Ticket_calendar_lockScalarFieldEnum | Prisma.Ticket_calendar_lockScalarFieldEnum[] +} + +/** + * ticket_calendar_lock findMany + */ +export type ticket_calendar_lockFindManyArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_lock + */ + select?: Prisma.ticket_calendar_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_lock + */ + omit?: Prisma.ticket_calendar_lockOmit | null + /** + * Filter, which ticket_calendar_locks to fetch. + */ + where?: Prisma.ticket_calendar_lockWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_calendar_locks to fetch. + */ + orderBy?: Prisma.ticket_calendar_lockOrderByWithRelationInput | Prisma.ticket_calendar_lockOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ticket_calendar_locks. + */ + cursor?: Prisma.ticket_calendar_lockWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_calendar_locks 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` ticket_calendar_locks. + */ + skip?: number + distinct?: Prisma.Ticket_calendar_lockScalarFieldEnum | Prisma.Ticket_calendar_lockScalarFieldEnum[] +} + +/** + * ticket_calendar_lock create + */ +export type ticket_calendar_lockCreateArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_lock + */ + select?: Prisma.ticket_calendar_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_lock + */ + omit?: Prisma.ticket_calendar_lockOmit | null + /** + * The data needed to create a ticket_calendar_lock. + */ + data: Prisma.XOR +} + +/** + * ticket_calendar_lock createMany + */ +export type ticket_calendar_lockCreateManyArgs = { + /** + * The data used to create many ticket_calendar_locks. + */ + data: Prisma.ticket_calendar_lockCreateManyInput | Prisma.ticket_calendar_lockCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ticket_calendar_lock update + */ +export type ticket_calendar_lockUpdateArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_lock + */ + select?: Prisma.ticket_calendar_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_lock + */ + omit?: Prisma.ticket_calendar_lockOmit | null + /** + * The data needed to update a ticket_calendar_lock. + */ + data: Prisma.XOR + /** + * Choose, which ticket_calendar_lock to update. + */ + where: Prisma.ticket_calendar_lockWhereUniqueInput +} + +/** + * ticket_calendar_lock updateMany + */ +export type ticket_calendar_lockUpdateManyArgs = { + /** + * The data used to update ticket_calendar_locks. + */ + data: Prisma.XOR + /** + * Filter which ticket_calendar_locks to update + */ + where?: Prisma.ticket_calendar_lockWhereInput + /** + * Limit how many ticket_calendar_locks to update. + */ + limit?: number +} + +/** + * ticket_calendar_lock upsert + */ +export type ticket_calendar_lockUpsertArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_lock + */ + select?: Prisma.ticket_calendar_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_lock + */ + omit?: Prisma.ticket_calendar_lockOmit | null + /** + * The filter to search for the ticket_calendar_lock to update in case it exists. + */ + where: Prisma.ticket_calendar_lockWhereUniqueInput + /** + * In case the ticket_calendar_lock found by the `where` argument doesn't exist, create a new ticket_calendar_lock with this data. + */ + create: Prisma.XOR + /** + * In case the ticket_calendar_lock was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ticket_calendar_lock delete + */ +export type ticket_calendar_lockDeleteArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_lock + */ + select?: Prisma.ticket_calendar_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_lock + */ + omit?: Prisma.ticket_calendar_lockOmit | null + /** + * Filter which ticket_calendar_lock to delete. + */ + where: Prisma.ticket_calendar_lockWhereUniqueInput +} + +/** + * ticket_calendar_lock deleteMany + */ +export type ticket_calendar_lockDeleteManyArgs = { + /** + * Filter which ticket_calendar_locks to delete + */ + where?: Prisma.ticket_calendar_lockWhereInput + /** + * Limit how many ticket_calendar_locks to delete. + */ + limit?: number +} + +/** + * ticket_calendar_lock without action + */ +export type ticket_calendar_lockDefaultArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_lock + */ + select?: Prisma.ticket_calendar_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_lock + */ + omit?: Prisma.ticket_calendar_lockOmit | null +} diff --git a/prisma/generated/mariadb/models/ticket_calendar_staff_lock.ts b/prisma/generated/mariadb/models/ticket_calendar_staff_lock.ts new file mode 100644 index 0000000..cff468d --- /dev/null +++ b/prisma/generated/mariadb/models/ticket_calendar_staff_lock.ts @@ -0,0 +1,1032 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ticket_calendar_staff_lock` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model ticket_calendar_staff_lock + * + */ +export type ticket_calendar_staff_lockModel = runtime.Types.Result.DefaultSelection + +export type AggregateTicket_calendar_staff_lock = { + _count: Ticket_calendar_staff_lockCountAggregateOutputType | null + _avg: Ticket_calendar_staff_lockAvgAggregateOutputType | null + _sum: Ticket_calendar_staff_lockSumAggregateOutputType | null + _min: Ticket_calendar_staff_lockMinAggregateOutputType | null + _max: Ticket_calendar_staff_lockMaxAggregateOutputType | null +} + +export type Ticket_calendar_staff_lockAvgAggregateOutputType = { + id: number | null + date: number | null + staff_id: number | null +} + +export type Ticket_calendar_staff_lockSumAggregateOutputType = { + id: number | null + date: bigint | null + staff_id: number | null +} + +export type Ticket_calendar_staff_lockMinAggregateOutputType = { + id: number | null + date: bigint | null + staff_id: number | null +} + +export type Ticket_calendar_staff_lockMaxAggregateOutputType = { + id: number | null + date: bigint | null + staff_id: number | null +} + +export type Ticket_calendar_staff_lockCountAggregateOutputType = { + id: number + date: number + staff_id: number + _all: number +} + + +export type Ticket_calendar_staff_lockAvgAggregateInputType = { + id?: true + date?: true + staff_id?: true +} + +export type Ticket_calendar_staff_lockSumAggregateInputType = { + id?: true + date?: true + staff_id?: true +} + +export type Ticket_calendar_staff_lockMinAggregateInputType = { + id?: true + date?: true + staff_id?: true +} + +export type Ticket_calendar_staff_lockMaxAggregateInputType = { + id?: true + date?: true + staff_id?: true +} + +export type Ticket_calendar_staff_lockCountAggregateInputType = { + id?: true + date?: true + staff_id?: true + _all?: true +} + +export type Ticket_calendar_staff_lockAggregateArgs = { + /** + * Filter which ticket_calendar_staff_lock to aggregate. + */ + where?: Prisma.ticket_calendar_staff_lockWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_calendar_staff_locks to fetch. + */ + orderBy?: Prisma.ticket_calendar_staff_lockOrderByWithRelationInput | Prisma.ticket_calendar_staff_lockOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ticket_calendar_staff_lockWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_calendar_staff_locks 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` ticket_calendar_staff_locks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ticket_calendar_staff_locks + **/ + _count?: true | Ticket_calendar_staff_lockCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Ticket_calendar_staff_lockAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Ticket_calendar_staff_lockSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Ticket_calendar_staff_lockMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Ticket_calendar_staff_lockMaxAggregateInputType +} + +export type GetTicket_calendar_staff_lockAggregateType = { + [P in keyof T & keyof AggregateTicket_calendar_staff_lock]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ticket_calendar_staff_lockGroupByArgs = { + where?: Prisma.ticket_calendar_staff_lockWhereInput + orderBy?: Prisma.ticket_calendar_staff_lockOrderByWithAggregationInput | Prisma.ticket_calendar_staff_lockOrderByWithAggregationInput[] + by: Prisma.Ticket_calendar_staff_lockScalarFieldEnum[] | Prisma.Ticket_calendar_staff_lockScalarFieldEnum + having?: Prisma.ticket_calendar_staff_lockScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Ticket_calendar_staff_lockCountAggregateInputType | true + _avg?: Ticket_calendar_staff_lockAvgAggregateInputType + _sum?: Ticket_calendar_staff_lockSumAggregateInputType + _min?: Ticket_calendar_staff_lockMinAggregateInputType + _max?: Ticket_calendar_staff_lockMaxAggregateInputType +} + +export type Ticket_calendar_staff_lockGroupByOutputType = { + id: number + date: bigint + staff_id: number + _count: Ticket_calendar_staff_lockCountAggregateOutputType | null + _avg: Ticket_calendar_staff_lockAvgAggregateOutputType | null + _sum: Ticket_calendar_staff_lockSumAggregateOutputType | null + _min: Ticket_calendar_staff_lockMinAggregateOutputType | null + _max: Ticket_calendar_staff_lockMaxAggregateOutputType | null +} + +type GetTicket_calendar_staff_lockGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Ticket_calendar_staff_lockGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ticket_calendar_staff_lockWhereInput = { + AND?: Prisma.ticket_calendar_staff_lockWhereInput | Prisma.ticket_calendar_staff_lockWhereInput[] + OR?: Prisma.ticket_calendar_staff_lockWhereInput[] + NOT?: Prisma.ticket_calendar_staff_lockWhereInput | Prisma.ticket_calendar_staff_lockWhereInput[] + id?: Prisma.IntFilter<"ticket_calendar_staff_lock"> | number + date?: Prisma.BigIntFilter<"ticket_calendar_staff_lock"> | bigint | number + staff_id?: Prisma.IntFilter<"ticket_calendar_staff_lock"> | number +} + +export type ticket_calendar_staff_lockOrderByWithRelationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type ticket_calendar_staff_lockWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.ticket_calendar_staff_lockWhereInput | Prisma.ticket_calendar_staff_lockWhereInput[] + OR?: Prisma.ticket_calendar_staff_lockWhereInput[] + NOT?: Prisma.ticket_calendar_staff_lockWhereInput | Prisma.ticket_calendar_staff_lockWhereInput[] + date?: Prisma.BigIntFilter<"ticket_calendar_staff_lock"> | bigint | number + staff_id?: Prisma.IntFilter<"ticket_calendar_staff_lock"> | number +}, "id"> + +export type ticket_calendar_staff_lockOrderByWithAggregationInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + _count?: Prisma.ticket_calendar_staff_lockCountOrderByAggregateInput + _avg?: Prisma.ticket_calendar_staff_lockAvgOrderByAggregateInput + _max?: Prisma.ticket_calendar_staff_lockMaxOrderByAggregateInput + _min?: Prisma.ticket_calendar_staff_lockMinOrderByAggregateInput + _sum?: Prisma.ticket_calendar_staff_lockSumOrderByAggregateInput +} + +export type ticket_calendar_staff_lockScalarWhereWithAggregatesInput = { + AND?: Prisma.ticket_calendar_staff_lockScalarWhereWithAggregatesInput | Prisma.ticket_calendar_staff_lockScalarWhereWithAggregatesInput[] + OR?: Prisma.ticket_calendar_staff_lockScalarWhereWithAggregatesInput[] + NOT?: Prisma.ticket_calendar_staff_lockScalarWhereWithAggregatesInput | Prisma.ticket_calendar_staff_lockScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"ticket_calendar_staff_lock"> | number + date?: Prisma.BigIntWithAggregatesFilter<"ticket_calendar_staff_lock"> | bigint | number + staff_id?: Prisma.IntWithAggregatesFilter<"ticket_calendar_staff_lock"> | number +} + +export type ticket_calendar_staff_lockCreateInput = { + date: bigint | number + staff_id: number +} + +export type ticket_calendar_staff_lockUncheckedCreateInput = { + id?: number + date: bigint | number + staff_id: number +} + +export type ticket_calendar_staff_lockUpdateInput = { + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type ticket_calendar_staff_lockUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type ticket_calendar_staff_lockCreateManyInput = { + id?: number + date: bigint | number + staff_id: number +} + +export type ticket_calendar_staff_lockUpdateManyMutationInput = { + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type ticket_calendar_staff_lockUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type ticket_calendar_staff_lockCountOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type ticket_calendar_staff_lockAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type ticket_calendar_staff_lockMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type ticket_calendar_staff_lockMinOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + +export type ticket_calendar_staff_lockSumOrderByAggregateInput = { + id?: Prisma.SortOrder + date?: Prisma.SortOrder + staff_id?: Prisma.SortOrder +} + + + +export type ticket_calendar_staff_lockSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + date?: boolean + staff_id?: boolean +}, ExtArgs["result"]["ticket_calendar_staff_lock"]> + + + +export type ticket_calendar_staff_lockSelectScalar = { + id?: boolean + date?: boolean + staff_id?: boolean +} + +export type ticket_calendar_staff_lockOmit = runtime.Types.Extensions.GetOmit<"id" | "date" | "staff_id", ExtArgs["result"]["ticket_calendar_staff_lock"]> + +export type $ticket_calendar_staff_lockPayload = { + name: "ticket_calendar_staff_lock" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + date: bigint + staff_id: number + }, ExtArgs["result"]["ticket_calendar_staff_lock"]> + composites: {} +} + +export type ticket_calendar_staff_lockGetPayload = runtime.Types.Result.GetResult + +export type ticket_calendar_staff_lockCountArgs = + Omit & { + select?: Ticket_calendar_staff_lockCountAggregateInputType | true + } + +export interface ticket_calendar_staff_lockDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ticket_calendar_staff_lock'], meta: { name: 'ticket_calendar_staff_lock' } } + /** + * Find zero or one Ticket_calendar_staff_lock that matches the filter. + * @param {ticket_calendar_staff_lockFindUniqueArgs} args - Arguments to find a Ticket_calendar_staff_lock + * @example + * // Get one Ticket_calendar_staff_lock + * const ticket_calendar_staff_lock = await prisma.ticket_calendar_staff_lock.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_staff_lockClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Ticket_calendar_staff_lock that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ticket_calendar_staff_lockFindUniqueOrThrowArgs} args - Arguments to find a Ticket_calendar_staff_lock + * @example + * // Get one Ticket_calendar_staff_lock + * const ticket_calendar_staff_lock = await prisma.ticket_calendar_staff_lock.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_staff_lockClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ticket_calendar_staff_lock 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 {ticket_calendar_staff_lockFindFirstArgs} args - Arguments to find a Ticket_calendar_staff_lock + * @example + * // Get one Ticket_calendar_staff_lock + * const ticket_calendar_staff_lock = await prisma.ticket_calendar_staff_lock.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_staff_lockClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ticket_calendar_staff_lock 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 {ticket_calendar_staff_lockFindFirstOrThrowArgs} args - Arguments to find a Ticket_calendar_staff_lock + * @example + * // Get one Ticket_calendar_staff_lock + * const ticket_calendar_staff_lock = await prisma.ticket_calendar_staff_lock.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_staff_lockClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Ticket_calendar_staff_locks 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 {ticket_calendar_staff_lockFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Ticket_calendar_staff_locks + * const ticket_calendar_staff_locks = await prisma.ticket_calendar_staff_lock.findMany() + * + * // Get first 10 Ticket_calendar_staff_locks + * const ticket_calendar_staff_locks = await prisma.ticket_calendar_staff_lock.findMany({ take: 10 }) + * + * // Only select the `id` + * const ticket_calendar_staff_lockWithIdOnly = await prisma.ticket_calendar_staff_lock.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Ticket_calendar_staff_lock. + * @param {ticket_calendar_staff_lockCreateArgs} args - Arguments to create a Ticket_calendar_staff_lock. + * @example + * // Create one Ticket_calendar_staff_lock + * const Ticket_calendar_staff_lock = await prisma.ticket_calendar_staff_lock.create({ + * data: { + * // ... data to create a Ticket_calendar_staff_lock + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_staff_lockClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Ticket_calendar_staff_locks. + * @param {ticket_calendar_staff_lockCreateManyArgs} args - Arguments to create many Ticket_calendar_staff_locks. + * @example + * // Create many Ticket_calendar_staff_locks + * const ticket_calendar_staff_lock = await prisma.ticket_calendar_staff_lock.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Ticket_calendar_staff_lock. + * @param {ticket_calendar_staff_lockDeleteArgs} args - Arguments to delete one Ticket_calendar_staff_lock. + * @example + * // Delete one Ticket_calendar_staff_lock + * const Ticket_calendar_staff_lock = await prisma.ticket_calendar_staff_lock.delete({ + * where: { + * // ... filter to delete one Ticket_calendar_staff_lock + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_staff_lockClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Ticket_calendar_staff_lock. + * @param {ticket_calendar_staff_lockUpdateArgs} args - Arguments to update one Ticket_calendar_staff_lock. + * @example + * // Update one Ticket_calendar_staff_lock + * const ticket_calendar_staff_lock = await prisma.ticket_calendar_staff_lock.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_staff_lockClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Ticket_calendar_staff_locks. + * @param {ticket_calendar_staff_lockDeleteManyArgs} args - Arguments to filter Ticket_calendar_staff_locks to delete. + * @example + * // Delete a few Ticket_calendar_staff_locks + * const { count } = await prisma.ticket_calendar_staff_lock.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Ticket_calendar_staff_locks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_calendar_staff_lockUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Ticket_calendar_staff_locks + * const ticket_calendar_staff_lock = await prisma.ticket_calendar_staff_lock.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Ticket_calendar_staff_lock. + * @param {ticket_calendar_staff_lockUpsertArgs} args - Arguments to update or create a Ticket_calendar_staff_lock. + * @example + * // Update or create a Ticket_calendar_staff_lock + * const ticket_calendar_staff_lock = await prisma.ticket_calendar_staff_lock.upsert({ + * create: { + * // ... data to create a Ticket_calendar_staff_lock + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Ticket_calendar_staff_lock we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_staff_lockClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Ticket_calendar_staff_locks. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_calendar_staff_lockCountArgs} args - Arguments to filter Ticket_calendar_staff_locks to count. + * @example + * // Count the number of Ticket_calendar_staff_locks + * const count = await prisma.ticket_calendar_staff_lock.count({ + * where: { + * // ... the filter for the Ticket_calendar_staff_locks 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 Ticket_calendar_staff_lock. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Ticket_calendar_staff_lockAggregateArgs} 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 Ticket_calendar_staff_lock. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_calendar_staff_lockGroupByArgs} 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 ticket_calendar_staff_lockGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ticket_calendar_staff_lockGroupByArgs['orderBy'] } + : { orderBy?: ticket_calendar_staff_lockGroupByArgs['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 ? GetTicket_calendar_staff_lockGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ticket_calendar_staff_lock model + */ +readonly fields: ticket_calendar_staff_lockFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ticket_calendar_staff_lock. + * 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__ticket_calendar_staff_lockClient 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 ticket_calendar_staff_lock model + */ +export interface ticket_calendar_staff_lockFieldRefs { + readonly id: Prisma.FieldRef<"ticket_calendar_staff_lock", 'Int'> + readonly date: Prisma.FieldRef<"ticket_calendar_staff_lock", 'BigInt'> + readonly staff_id: Prisma.FieldRef<"ticket_calendar_staff_lock", 'Int'> +} + + +// Custom InputTypes +/** + * ticket_calendar_staff_lock findUnique + */ +export type ticket_calendar_staff_lockFindUniqueArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_staff_lock + */ + select?: Prisma.ticket_calendar_staff_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_staff_lock + */ + omit?: Prisma.ticket_calendar_staff_lockOmit | null + /** + * Filter, which ticket_calendar_staff_lock to fetch. + */ + where: Prisma.ticket_calendar_staff_lockWhereUniqueInput +} + +/** + * ticket_calendar_staff_lock findUniqueOrThrow + */ +export type ticket_calendar_staff_lockFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_staff_lock + */ + select?: Prisma.ticket_calendar_staff_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_staff_lock + */ + omit?: Prisma.ticket_calendar_staff_lockOmit | null + /** + * Filter, which ticket_calendar_staff_lock to fetch. + */ + where: Prisma.ticket_calendar_staff_lockWhereUniqueInput +} + +/** + * ticket_calendar_staff_lock findFirst + */ +export type ticket_calendar_staff_lockFindFirstArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_staff_lock + */ + select?: Prisma.ticket_calendar_staff_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_staff_lock + */ + omit?: Prisma.ticket_calendar_staff_lockOmit | null + /** + * Filter, which ticket_calendar_staff_lock to fetch. + */ + where?: Prisma.ticket_calendar_staff_lockWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_calendar_staff_locks to fetch. + */ + orderBy?: Prisma.ticket_calendar_staff_lockOrderByWithRelationInput | Prisma.ticket_calendar_staff_lockOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ticket_calendar_staff_locks. + */ + cursor?: Prisma.ticket_calendar_staff_lockWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_calendar_staff_locks 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` ticket_calendar_staff_locks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ticket_calendar_staff_locks. + */ + distinct?: Prisma.Ticket_calendar_staff_lockScalarFieldEnum | Prisma.Ticket_calendar_staff_lockScalarFieldEnum[] +} + +/** + * ticket_calendar_staff_lock findFirstOrThrow + */ +export type ticket_calendar_staff_lockFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_staff_lock + */ + select?: Prisma.ticket_calendar_staff_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_staff_lock + */ + omit?: Prisma.ticket_calendar_staff_lockOmit | null + /** + * Filter, which ticket_calendar_staff_lock to fetch. + */ + where?: Prisma.ticket_calendar_staff_lockWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_calendar_staff_locks to fetch. + */ + orderBy?: Prisma.ticket_calendar_staff_lockOrderByWithRelationInput | Prisma.ticket_calendar_staff_lockOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ticket_calendar_staff_locks. + */ + cursor?: Prisma.ticket_calendar_staff_lockWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_calendar_staff_locks 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` ticket_calendar_staff_locks. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ticket_calendar_staff_locks. + */ + distinct?: Prisma.Ticket_calendar_staff_lockScalarFieldEnum | Prisma.Ticket_calendar_staff_lockScalarFieldEnum[] +} + +/** + * ticket_calendar_staff_lock findMany + */ +export type ticket_calendar_staff_lockFindManyArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_staff_lock + */ + select?: Prisma.ticket_calendar_staff_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_staff_lock + */ + omit?: Prisma.ticket_calendar_staff_lockOmit | null + /** + * Filter, which ticket_calendar_staff_locks to fetch. + */ + where?: Prisma.ticket_calendar_staff_lockWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_calendar_staff_locks to fetch. + */ + orderBy?: Prisma.ticket_calendar_staff_lockOrderByWithRelationInput | Prisma.ticket_calendar_staff_lockOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ticket_calendar_staff_locks. + */ + cursor?: Prisma.ticket_calendar_staff_lockWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_calendar_staff_locks 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` ticket_calendar_staff_locks. + */ + skip?: number + distinct?: Prisma.Ticket_calendar_staff_lockScalarFieldEnum | Prisma.Ticket_calendar_staff_lockScalarFieldEnum[] +} + +/** + * ticket_calendar_staff_lock create + */ +export type ticket_calendar_staff_lockCreateArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_staff_lock + */ + select?: Prisma.ticket_calendar_staff_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_staff_lock + */ + omit?: Prisma.ticket_calendar_staff_lockOmit | null + /** + * The data needed to create a ticket_calendar_staff_lock. + */ + data: Prisma.XOR +} + +/** + * ticket_calendar_staff_lock createMany + */ +export type ticket_calendar_staff_lockCreateManyArgs = { + /** + * The data used to create many ticket_calendar_staff_locks. + */ + data: Prisma.ticket_calendar_staff_lockCreateManyInput | Prisma.ticket_calendar_staff_lockCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ticket_calendar_staff_lock update + */ +export type ticket_calendar_staff_lockUpdateArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_staff_lock + */ + select?: Prisma.ticket_calendar_staff_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_staff_lock + */ + omit?: Prisma.ticket_calendar_staff_lockOmit | null + /** + * The data needed to update a ticket_calendar_staff_lock. + */ + data: Prisma.XOR + /** + * Choose, which ticket_calendar_staff_lock to update. + */ + where: Prisma.ticket_calendar_staff_lockWhereUniqueInput +} + +/** + * ticket_calendar_staff_lock updateMany + */ +export type ticket_calendar_staff_lockUpdateManyArgs = { + /** + * The data used to update ticket_calendar_staff_locks. + */ + data: Prisma.XOR + /** + * Filter which ticket_calendar_staff_locks to update + */ + where?: Prisma.ticket_calendar_staff_lockWhereInput + /** + * Limit how many ticket_calendar_staff_locks to update. + */ + limit?: number +} + +/** + * ticket_calendar_staff_lock upsert + */ +export type ticket_calendar_staff_lockUpsertArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_staff_lock + */ + select?: Prisma.ticket_calendar_staff_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_staff_lock + */ + omit?: Prisma.ticket_calendar_staff_lockOmit | null + /** + * The filter to search for the ticket_calendar_staff_lock to update in case it exists. + */ + where: Prisma.ticket_calendar_staff_lockWhereUniqueInput + /** + * In case the ticket_calendar_staff_lock found by the `where` argument doesn't exist, create a new ticket_calendar_staff_lock with this data. + */ + create: Prisma.XOR + /** + * In case the ticket_calendar_staff_lock was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ticket_calendar_staff_lock delete + */ +export type ticket_calendar_staff_lockDeleteArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_staff_lock + */ + select?: Prisma.ticket_calendar_staff_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_staff_lock + */ + omit?: Prisma.ticket_calendar_staff_lockOmit | null + /** + * Filter which ticket_calendar_staff_lock to delete. + */ + where: Prisma.ticket_calendar_staff_lockWhereUniqueInput +} + +/** + * ticket_calendar_staff_lock deleteMany + */ +export type ticket_calendar_staff_lockDeleteManyArgs = { + /** + * Filter which ticket_calendar_staff_locks to delete + */ + where?: Prisma.ticket_calendar_staff_lockWhereInput + /** + * Limit how many ticket_calendar_staff_locks to delete. + */ + limit?: number +} + +/** + * ticket_calendar_staff_lock without action + */ +export type ticket_calendar_staff_lockDefaultArgs = { + /** + * Select specific fields to fetch from the ticket_calendar_staff_lock + */ + select?: Prisma.ticket_calendar_staff_lockSelect | null + /** + * Omit specific fields from the ticket_calendar_staff_lock + */ + omit?: Prisma.ticket_calendar_staff_lockOmit | null +} diff --git a/prisma/generated/mariadb/models/ticket_conge.ts b/prisma/generated/mariadb/models/ticket_conge.ts new file mode 100644 index 0000000..24b1577 --- /dev/null +++ b/prisma/generated/mariadb/models/ticket_conge.ts @@ -0,0 +1,1123 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ticket_conge` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model ticket_conge + * + */ +export type ticket_congeModel = runtime.Types.Result.DefaultSelection + +export type AggregateTicket_conge = { + _count: Ticket_congeCountAggregateOutputType | null + _avg: Ticket_congeAvgAggregateOutputType | null + _sum: Ticket_congeSumAggregateOutputType | null + _min: Ticket_congeMinAggregateOutputType | null + _max: Ticket_congeMaxAggregateOutputType | null +} + +export type Ticket_congeAvgAggregateOutputType = { + id: number | null + account_id: number | null + date: number | null + ticket_id: number | null +} + +export type Ticket_congeSumAggregateOutputType = { + id: number | null + account_id: number | null + date: bigint | null + ticket_id: number | null +} + +export type Ticket_congeMinAggregateOutputType = { + id: number | null + account_id: number | null + name: string | null + date: bigint | null + desc: string | null + ticket_id: number | null +} + +export type Ticket_congeMaxAggregateOutputType = { + id: number | null + account_id: number | null + name: string | null + date: bigint | null + desc: string | null + ticket_id: number | null +} + +export type Ticket_congeCountAggregateOutputType = { + id: number + account_id: number + name: number + date: number + desc: number + ticket_id: number + _all: number +} + + +export type Ticket_congeAvgAggregateInputType = { + id?: true + account_id?: true + date?: true + ticket_id?: true +} + +export type Ticket_congeSumAggregateInputType = { + id?: true + account_id?: true + date?: true + ticket_id?: true +} + +export type Ticket_congeMinAggregateInputType = { + id?: true + account_id?: true + name?: true + date?: true + desc?: true + ticket_id?: true +} + +export type Ticket_congeMaxAggregateInputType = { + id?: true + account_id?: true + name?: true + date?: true + desc?: true + ticket_id?: true +} + +export type Ticket_congeCountAggregateInputType = { + id?: true + account_id?: true + name?: true + date?: true + desc?: true + ticket_id?: true + _all?: true +} + +export type Ticket_congeAggregateArgs = { + /** + * Filter which ticket_conge to aggregate. + */ + where?: Prisma.ticket_congeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_conges to fetch. + */ + orderBy?: Prisma.ticket_congeOrderByWithRelationInput | Prisma.ticket_congeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ticket_congeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_conges 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` ticket_conges. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ticket_conges + **/ + _count?: true | Ticket_congeCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Ticket_congeAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Ticket_congeSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Ticket_congeMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Ticket_congeMaxAggregateInputType +} + +export type GetTicket_congeAggregateType = { + [P in keyof T & keyof AggregateTicket_conge]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ticket_congeGroupByArgs = { + where?: Prisma.ticket_congeWhereInput + orderBy?: Prisma.ticket_congeOrderByWithAggregationInput | Prisma.ticket_congeOrderByWithAggregationInput[] + by: Prisma.Ticket_congeScalarFieldEnum[] | Prisma.Ticket_congeScalarFieldEnum + having?: Prisma.ticket_congeScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Ticket_congeCountAggregateInputType | true + _avg?: Ticket_congeAvgAggregateInputType + _sum?: Ticket_congeSumAggregateInputType + _min?: Ticket_congeMinAggregateInputType + _max?: Ticket_congeMaxAggregateInputType +} + +export type Ticket_congeGroupByOutputType = { + id: number + account_id: number + name: string + date: bigint + desc: string + ticket_id: number | null + _count: Ticket_congeCountAggregateOutputType | null + _avg: Ticket_congeAvgAggregateOutputType | null + _sum: Ticket_congeSumAggregateOutputType | null + _min: Ticket_congeMinAggregateOutputType | null + _max: Ticket_congeMaxAggregateOutputType | null +} + +type GetTicket_congeGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Ticket_congeGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ticket_congeWhereInput = { + AND?: Prisma.ticket_congeWhereInput | Prisma.ticket_congeWhereInput[] + OR?: Prisma.ticket_congeWhereInput[] + NOT?: Prisma.ticket_congeWhereInput | Prisma.ticket_congeWhereInput[] + id?: Prisma.IntFilter<"ticket_conge"> | number + account_id?: Prisma.IntFilter<"ticket_conge"> | number + name?: Prisma.StringFilter<"ticket_conge"> | string + date?: Prisma.BigIntFilter<"ticket_conge"> | bigint | number + desc?: Prisma.StringFilter<"ticket_conge"> | string + ticket_id?: Prisma.IntNullableFilter<"ticket_conge"> | number | null +} + +export type ticket_congeOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + date?: Prisma.SortOrder + desc?: Prisma.SortOrder + ticket_id?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.ticket_congeOrderByRelevanceInput +} + +export type ticket_congeWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.ticket_congeWhereInput | Prisma.ticket_congeWhereInput[] + OR?: Prisma.ticket_congeWhereInput[] + NOT?: Prisma.ticket_congeWhereInput | Prisma.ticket_congeWhereInput[] + account_id?: Prisma.IntFilter<"ticket_conge"> | number + name?: Prisma.StringFilter<"ticket_conge"> | string + date?: Prisma.BigIntFilter<"ticket_conge"> | bigint | number + desc?: Prisma.StringFilter<"ticket_conge"> | string + ticket_id?: Prisma.IntNullableFilter<"ticket_conge"> | number | null +}, "id"> + +export type ticket_congeOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + date?: Prisma.SortOrder + desc?: Prisma.SortOrder + ticket_id?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.ticket_congeCountOrderByAggregateInput + _avg?: Prisma.ticket_congeAvgOrderByAggregateInput + _max?: Prisma.ticket_congeMaxOrderByAggregateInput + _min?: Prisma.ticket_congeMinOrderByAggregateInput + _sum?: Prisma.ticket_congeSumOrderByAggregateInput +} + +export type ticket_congeScalarWhereWithAggregatesInput = { + AND?: Prisma.ticket_congeScalarWhereWithAggregatesInput | Prisma.ticket_congeScalarWhereWithAggregatesInput[] + OR?: Prisma.ticket_congeScalarWhereWithAggregatesInput[] + NOT?: Prisma.ticket_congeScalarWhereWithAggregatesInput | Prisma.ticket_congeScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"ticket_conge"> | number + account_id?: Prisma.IntWithAggregatesFilter<"ticket_conge"> | number + name?: Prisma.StringWithAggregatesFilter<"ticket_conge"> | string + date?: Prisma.BigIntWithAggregatesFilter<"ticket_conge"> | bigint | number + desc?: Prisma.StringWithAggregatesFilter<"ticket_conge"> | string + ticket_id?: Prisma.IntNullableWithAggregatesFilter<"ticket_conge"> | number | null +} + +export type ticket_congeCreateInput = { + account_id: number + name: string + date: bigint | number + desc: string + ticket_id?: number | null +} + +export type ticket_congeUncheckedCreateInput = { + id?: number + account_id: number + name: string + date: bigint | number + desc: string + ticket_id?: number | null +} + +export type ticket_congeUpdateInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + desc?: Prisma.StringFieldUpdateOperationsInput | string + ticket_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type ticket_congeUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + desc?: Prisma.StringFieldUpdateOperationsInput | string + ticket_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type ticket_congeCreateManyInput = { + id?: number + account_id: number + name: string + date: bigint | number + desc: string + ticket_id?: number | null +} + +export type ticket_congeUpdateManyMutationInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + desc?: Prisma.StringFieldUpdateOperationsInput | string + ticket_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type ticket_congeUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + desc?: Prisma.StringFieldUpdateOperationsInput | string + ticket_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type ticket_congeOrderByRelevanceInput = { + fields: Prisma.ticket_congeOrderByRelevanceFieldEnum | Prisma.ticket_congeOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type ticket_congeCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + date?: Prisma.SortOrder + desc?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder +} + +export type ticket_congeAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder +} + +export type ticket_congeMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + date?: Prisma.SortOrder + desc?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder +} + +export type ticket_congeMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + name?: Prisma.SortOrder + date?: Prisma.SortOrder + desc?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder +} + +export type ticket_congeSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder +} + + + +export type ticket_congeSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + name?: boolean + date?: boolean + desc?: boolean + ticket_id?: boolean +}, ExtArgs["result"]["ticket_conge"]> + + + +export type ticket_congeSelectScalar = { + id?: boolean + account_id?: boolean + name?: boolean + date?: boolean + desc?: boolean + ticket_id?: boolean +} + +export type ticket_congeOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "name" | "date" | "desc" | "ticket_id", ExtArgs["result"]["ticket_conge"]> + +export type $ticket_congePayload = { + name: "ticket_conge" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: number + name: string + date: bigint + desc: string + ticket_id: number | null + }, ExtArgs["result"]["ticket_conge"]> + composites: {} +} + +export type ticket_congeGetPayload = runtime.Types.Result.GetResult + +export type ticket_congeCountArgs = + Omit & { + select?: Ticket_congeCountAggregateInputType | true + } + +export interface ticket_congeDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ticket_conge'], meta: { name: 'ticket_conge' } } + /** + * Find zero or one Ticket_conge that matches the filter. + * @param {ticket_congeFindUniqueArgs} args - Arguments to find a Ticket_conge + * @example + * // Get one Ticket_conge + * const ticket_conge = await prisma.ticket_conge.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_congeClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Ticket_conge that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ticket_congeFindUniqueOrThrowArgs} args - Arguments to find a Ticket_conge + * @example + * // Get one Ticket_conge + * const ticket_conge = await prisma.ticket_conge.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_congeClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ticket_conge 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 {ticket_congeFindFirstArgs} args - Arguments to find a Ticket_conge + * @example + * // Get one Ticket_conge + * const ticket_conge = await prisma.ticket_conge.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_congeClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ticket_conge 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 {ticket_congeFindFirstOrThrowArgs} args - Arguments to find a Ticket_conge + * @example + * // Get one Ticket_conge + * const ticket_conge = await prisma.ticket_conge.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_congeClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Ticket_conges 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 {ticket_congeFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Ticket_conges + * const ticket_conges = await prisma.ticket_conge.findMany() + * + * // Get first 10 Ticket_conges + * const ticket_conges = await prisma.ticket_conge.findMany({ take: 10 }) + * + * // Only select the `id` + * const ticket_congeWithIdOnly = await prisma.ticket_conge.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Ticket_conge. + * @param {ticket_congeCreateArgs} args - Arguments to create a Ticket_conge. + * @example + * // Create one Ticket_conge + * const Ticket_conge = await prisma.ticket_conge.create({ + * data: { + * // ... data to create a Ticket_conge + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_congeClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Ticket_conges. + * @param {ticket_congeCreateManyArgs} args - Arguments to create many Ticket_conges. + * @example + * // Create many Ticket_conges + * const ticket_conge = await prisma.ticket_conge.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Ticket_conge. + * @param {ticket_congeDeleteArgs} args - Arguments to delete one Ticket_conge. + * @example + * // Delete one Ticket_conge + * const Ticket_conge = await prisma.ticket_conge.delete({ + * where: { + * // ... filter to delete one Ticket_conge + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_congeClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Ticket_conge. + * @param {ticket_congeUpdateArgs} args - Arguments to update one Ticket_conge. + * @example + * // Update one Ticket_conge + * const ticket_conge = await prisma.ticket_conge.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_congeClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Ticket_conges. + * @param {ticket_congeDeleteManyArgs} args - Arguments to filter Ticket_conges to delete. + * @example + * // Delete a few Ticket_conges + * const { count } = await prisma.ticket_conge.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Ticket_conges. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_congeUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Ticket_conges + * const ticket_conge = await prisma.ticket_conge.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Ticket_conge. + * @param {ticket_congeUpsertArgs} args - Arguments to update or create a Ticket_conge. + * @example + * // Update or create a Ticket_conge + * const ticket_conge = await prisma.ticket_conge.upsert({ + * create: { + * // ... data to create a Ticket_conge + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Ticket_conge we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_congeClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Ticket_conges. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_congeCountArgs} args - Arguments to filter Ticket_conges to count. + * @example + * // Count the number of Ticket_conges + * const count = await prisma.ticket_conge.count({ + * where: { + * // ... the filter for the Ticket_conges 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 Ticket_conge. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Ticket_congeAggregateArgs} 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 Ticket_conge. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_congeGroupByArgs} 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 ticket_congeGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ticket_congeGroupByArgs['orderBy'] } + : { orderBy?: ticket_congeGroupByArgs['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 ? GetTicket_congeGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ticket_conge model + */ +readonly fields: ticket_congeFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ticket_conge. + * 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__ticket_congeClient 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 ticket_conge model + */ +export interface ticket_congeFieldRefs { + readonly id: Prisma.FieldRef<"ticket_conge", 'Int'> + readonly account_id: Prisma.FieldRef<"ticket_conge", 'Int'> + readonly name: Prisma.FieldRef<"ticket_conge", 'String'> + readonly date: Prisma.FieldRef<"ticket_conge", 'BigInt'> + readonly desc: Prisma.FieldRef<"ticket_conge", 'String'> + readonly ticket_id: Prisma.FieldRef<"ticket_conge", 'Int'> +} + + +// Custom InputTypes +/** + * ticket_conge findUnique + */ +export type ticket_congeFindUniqueArgs = { + /** + * Select specific fields to fetch from the ticket_conge + */ + select?: Prisma.ticket_congeSelect | null + /** + * Omit specific fields from the ticket_conge + */ + omit?: Prisma.ticket_congeOmit | null + /** + * Filter, which ticket_conge to fetch. + */ + where: Prisma.ticket_congeWhereUniqueInput +} + +/** + * ticket_conge findUniqueOrThrow + */ +export type ticket_congeFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ticket_conge + */ + select?: Prisma.ticket_congeSelect | null + /** + * Omit specific fields from the ticket_conge + */ + omit?: Prisma.ticket_congeOmit | null + /** + * Filter, which ticket_conge to fetch. + */ + where: Prisma.ticket_congeWhereUniqueInput +} + +/** + * ticket_conge findFirst + */ +export type ticket_congeFindFirstArgs = { + /** + * Select specific fields to fetch from the ticket_conge + */ + select?: Prisma.ticket_congeSelect | null + /** + * Omit specific fields from the ticket_conge + */ + omit?: Prisma.ticket_congeOmit | null + /** + * Filter, which ticket_conge to fetch. + */ + where?: Prisma.ticket_congeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_conges to fetch. + */ + orderBy?: Prisma.ticket_congeOrderByWithRelationInput | Prisma.ticket_congeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ticket_conges. + */ + cursor?: Prisma.ticket_congeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_conges 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` ticket_conges. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ticket_conges. + */ + distinct?: Prisma.Ticket_congeScalarFieldEnum | Prisma.Ticket_congeScalarFieldEnum[] +} + +/** + * ticket_conge findFirstOrThrow + */ +export type ticket_congeFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ticket_conge + */ + select?: Prisma.ticket_congeSelect | null + /** + * Omit specific fields from the ticket_conge + */ + omit?: Prisma.ticket_congeOmit | null + /** + * Filter, which ticket_conge to fetch. + */ + where?: Prisma.ticket_congeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_conges to fetch. + */ + orderBy?: Prisma.ticket_congeOrderByWithRelationInput | Prisma.ticket_congeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ticket_conges. + */ + cursor?: Prisma.ticket_congeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_conges 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` ticket_conges. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ticket_conges. + */ + distinct?: Prisma.Ticket_congeScalarFieldEnum | Prisma.Ticket_congeScalarFieldEnum[] +} + +/** + * ticket_conge findMany + */ +export type ticket_congeFindManyArgs = { + /** + * Select specific fields to fetch from the ticket_conge + */ + select?: Prisma.ticket_congeSelect | null + /** + * Omit specific fields from the ticket_conge + */ + omit?: Prisma.ticket_congeOmit | null + /** + * Filter, which ticket_conges to fetch. + */ + where?: Prisma.ticket_congeWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_conges to fetch. + */ + orderBy?: Prisma.ticket_congeOrderByWithRelationInput | Prisma.ticket_congeOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ticket_conges. + */ + cursor?: Prisma.ticket_congeWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_conges 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` ticket_conges. + */ + skip?: number + distinct?: Prisma.Ticket_congeScalarFieldEnum | Prisma.Ticket_congeScalarFieldEnum[] +} + +/** + * ticket_conge create + */ +export type ticket_congeCreateArgs = { + /** + * Select specific fields to fetch from the ticket_conge + */ + select?: Prisma.ticket_congeSelect | null + /** + * Omit specific fields from the ticket_conge + */ + omit?: Prisma.ticket_congeOmit | null + /** + * The data needed to create a ticket_conge. + */ + data: Prisma.XOR +} + +/** + * ticket_conge createMany + */ +export type ticket_congeCreateManyArgs = { + /** + * The data used to create many ticket_conges. + */ + data: Prisma.ticket_congeCreateManyInput | Prisma.ticket_congeCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ticket_conge update + */ +export type ticket_congeUpdateArgs = { + /** + * Select specific fields to fetch from the ticket_conge + */ + select?: Prisma.ticket_congeSelect | null + /** + * Omit specific fields from the ticket_conge + */ + omit?: Prisma.ticket_congeOmit | null + /** + * The data needed to update a ticket_conge. + */ + data: Prisma.XOR + /** + * Choose, which ticket_conge to update. + */ + where: Prisma.ticket_congeWhereUniqueInput +} + +/** + * ticket_conge updateMany + */ +export type ticket_congeUpdateManyArgs = { + /** + * The data used to update ticket_conges. + */ + data: Prisma.XOR + /** + * Filter which ticket_conges to update + */ + where?: Prisma.ticket_congeWhereInput + /** + * Limit how many ticket_conges to update. + */ + limit?: number +} + +/** + * ticket_conge upsert + */ +export type ticket_congeUpsertArgs = { + /** + * Select specific fields to fetch from the ticket_conge + */ + select?: Prisma.ticket_congeSelect | null + /** + * Omit specific fields from the ticket_conge + */ + omit?: Prisma.ticket_congeOmit | null + /** + * The filter to search for the ticket_conge to update in case it exists. + */ + where: Prisma.ticket_congeWhereUniqueInput + /** + * In case the ticket_conge found by the `where` argument doesn't exist, create a new ticket_conge with this data. + */ + create: Prisma.XOR + /** + * In case the ticket_conge was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ticket_conge delete + */ +export type ticket_congeDeleteArgs = { + /** + * Select specific fields to fetch from the ticket_conge + */ + select?: Prisma.ticket_congeSelect | null + /** + * Omit specific fields from the ticket_conge + */ + omit?: Prisma.ticket_congeOmit | null + /** + * Filter which ticket_conge to delete. + */ + where: Prisma.ticket_congeWhereUniqueInput +} + +/** + * ticket_conge deleteMany + */ +export type ticket_congeDeleteManyArgs = { + /** + * Filter which ticket_conges to delete + */ + where?: Prisma.ticket_congeWhereInput + /** + * Limit how many ticket_conges to delete. + */ + limit?: number +} + +/** + * ticket_conge without action + */ +export type ticket_congeDefaultArgs = { + /** + * Select specific fields to fetch from the ticket_conge + */ + select?: Prisma.ticket_congeSelect | null + /** + * Omit specific fields from the ticket_conge + */ + omit?: Prisma.ticket_congeOmit | null +} diff --git a/prisma/generated/mariadb/models/ticket_dept.ts b/prisma/generated/mariadb/models/ticket_dept.ts new file mode 100644 index 0000000..cca1096 --- /dev/null +++ b/prisma/generated/mariadb/models/ticket_dept.ts @@ -0,0 +1,1233 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ticket_dept` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model ticket_dept + * + */ +export type ticket_deptModel = runtime.Types.Result.DefaultSelection + +export type AggregateTicket_dept = { + _count: Ticket_deptCountAggregateOutputType | null + _avg: Ticket_deptAvgAggregateOutputType | null + _sum: Ticket_deptSumAggregateOutputType | null + _min: Ticket_deptMinAggregateOutputType | null + _max: Ticket_deptMaxAggregateOutputType | null +} + +export type Ticket_deptAvgAggregateOutputType = { + id: number | null + parent: number | null + hasChild: number | null + manager_id: number | null + default_staff: number | null +} + +export type Ticket_deptSumAggregateOutputType = { + id: number | null + parent: number | null + hasChild: number | null + manager_id: number | null + default_staff: number | null +} + +export type Ticket_deptMinAggregateOutputType = { + id: number | null + parent: number | null + name: string | null + hasChild: number | null + email: string | null + manager_id: number | null + member_only: boolean | null + protected: boolean | null + default_staff: number | null + default_follow: string | null +} + +export type Ticket_deptMaxAggregateOutputType = { + id: number | null + parent: number | null + name: string | null + hasChild: number | null + email: string | null + manager_id: number | null + member_only: boolean | null + protected: boolean | null + default_staff: number | null + default_follow: string | null +} + +export type Ticket_deptCountAggregateOutputType = { + id: number + parent: number + name: number + hasChild: number + email: number + manager_id: number + member_only: number + protected: number + default_staff: number + default_follow: number + _all: number +} + + +export type Ticket_deptAvgAggregateInputType = { + id?: true + parent?: true + hasChild?: true + manager_id?: true + default_staff?: true +} + +export type Ticket_deptSumAggregateInputType = { + id?: true + parent?: true + hasChild?: true + manager_id?: true + default_staff?: true +} + +export type Ticket_deptMinAggregateInputType = { + id?: true + parent?: true + name?: true + hasChild?: true + email?: true + manager_id?: true + member_only?: true + protected?: true + default_staff?: true + default_follow?: true +} + +export type Ticket_deptMaxAggregateInputType = { + id?: true + parent?: true + name?: true + hasChild?: true + email?: true + manager_id?: true + member_only?: true + protected?: true + default_staff?: true + default_follow?: true +} + +export type Ticket_deptCountAggregateInputType = { + id?: true + parent?: true + name?: true + hasChild?: true + email?: true + manager_id?: true + member_only?: true + protected?: true + default_staff?: true + default_follow?: true + _all?: true +} + +export type Ticket_deptAggregateArgs = { + /** + * Filter which ticket_dept to aggregate. + */ + where?: Prisma.ticket_deptWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_depts to fetch. + */ + orderBy?: Prisma.ticket_deptOrderByWithRelationInput | Prisma.ticket_deptOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ticket_deptWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_depts 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` ticket_depts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ticket_depts + **/ + _count?: true | Ticket_deptCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Ticket_deptAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Ticket_deptSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Ticket_deptMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Ticket_deptMaxAggregateInputType +} + +export type GetTicket_deptAggregateType = { + [P in keyof T & keyof AggregateTicket_dept]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ticket_deptGroupByArgs = { + where?: Prisma.ticket_deptWhereInput + orderBy?: Prisma.ticket_deptOrderByWithAggregationInput | Prisma.ticket_deptOrderByWithAggregationInput[] + by: Prisma.Ticket_deptScalarFieldEnum[] | Prisma.Ticket_deptScalarFieldEnum + having?: Prisma.ticket_deptScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Ticket_deptCountAggregateInputType | true + _avg?: Ticket_deptAvgAggregateInputType + _sum?: Ticket_deptSumAggregateInputType + _min?: Ticket_deptMinAggregateInputType + _max?: Ticket_deptMaxAggregateInputType +} + +export type Ticket_deptGroupByOutputType = { + id: number + parent: number + name: string + hasChild: number + email: string + manager_id: number + member_only: boolean + protected: boolean + default_staff: number + default_follow: string + _count: Ticket_deptCountAggregateOutputType | null + _avg: Ticket_deptAvgAggregateOutputType | null + _sum: Ticket_deptSumAggregateOutputType | null + _min: Ticket_deptMinAggregateOutputType | null + _max: Ticket_deptMaxAggregateOutputType | null +} + +type GetTicket_deptGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Ticket_deptGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ticket_deptWhereInput = { + AND?: Prisma.ticket_deptWhereInput | Prisma.ticket_deptWhereInput[] + OR?: Prisma.ticket_deptWhereInput[] + NOT?: Prisma.ticket_deptWhereInput | Prisma.ticket_deptWhereInput[] + id?: Prisma.IntFilter<"ticket_dept"> | number + parent?: Prisma.IntFilter<"ticket_dept"> | number + name?: Prisma.StringFilter<"ticket_dept"> | string + hasChild?: Prisma.IntFilter<"ticket_dept"> | number + email?: Prisma.StringFilter<"ticket_dept"> | string + manager_id?: Prisma.IntFilter<"ticket_dept"> | number + member_only?: Prisma.BoolFilter<"ticket_dept"> | boolean + protected?: Prisma.BoolFilter<"ticket_dept"> | boolean + default_staff?: Prisma.IntFilter<"ticket_dept"> | number + default_follow?: Prisma.StringFilter<"ticket_dept"> | string +} + +export type ticket_deptOrderByWithRelationInput = { + id?: Prisma.SortOrder + parent?: Prisma.SortOrder + name?: Prisma.SortOrder + hasChild?: Prisma.SortOrder + email?: Prisma.SortOrder + manager_id?: Prisma.SortOrder + member_only?: Prisma.SortOrder + protected?: Prisma.SortOrder + default_staff?: Prisma.SortOrder + default_follow?: Prisma.SortOrder + _relevance?: Prisma.ticket_deptOrderByRelevanceInput +} + +export type ticket_deptWhereUniqueInput = Prisma.AtLeast<{ + id?: number + name?: string + AND?: Prisma.ticket_deptWhereInput | Prisma.ticket_deptWhereInput[] + OR?: Prisma.ticket_deptWhereInput[] + NOT?: Prisma.ticket_deptWhereInput | Prisma.ticket_deptWhereInput[] + parent?: Prisma.IntFilter<"ticket_dept"> | number + hasChild?: Prisma.IntFilter<"ticket_dept"> | number + email?: Prisma.StringFilter<"ticket_dept"> | string + manager_id?: Prisma.IntFilter<"ticket_dept"> | number + member_only?: Prisma.BoolFilter<"ticket_dept"> | boolean + protected?: Prisma.BoolFilter<"ticket_dept"> | boolean + default_staff?: Prisma.IntFilter<"ticket_dept"> | number + default_follow?: Prisma.StringFilter<"ticket_dept"> | string +}, "id" | "name"> + +export type ticket_deptOrderByWithAggregationInput = { + id?: Prisma.SortOrder + parent?: Prisma.SortOrder + name?: Prisma.SortOrder + hasChild?: Prisma.SortOrder + email?: Prisma.SortOrder + manager_id?: Prisma.SortOrder + member_only?: Prisma.SortOrder + protected?: Prisma.SortOrder + default_staff?: Prisma.SortOrder + default_follow?: Prisma.SortOrder + _count?: Prisma.ticket_deptCountOrderByAggregateInput + _avg?: Prisma.ticket_deptAvgOrderByAggregateInput + _max?: Prisma.ticket_deptMaxOrderByAggregateInput + _min?: Prisma.ticket_deptMinOrderByAggregateInput + _sum?: Prisma.ticket_deptSumOrderByAggregateInput +} + +export type ticket_deptScalarWhereWithAggregatesInput = { + AND?: Prisma.ticket_deptScalarWhereWithAggregatesInput | Prisma.ticket_deptScalarWhereWithAggregatesInput[] + OR?: Prisma.ticket_deptScalarWhereWithAggregatesInput[] + NOT?: Prisma.ticket_deptScalarWhereWithAggregatesInput | Prisma.ticket_deptScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"ticket_dept"> | number + parent?: Prisma.IntWithAggregatesFilter<"ticket_dept"> | number + name?: Prisma.StringWithAggregatesFilter<"ticket_dept"> | string + hasChild?: Prisma.IntWithAggregatesFilter<"ticket_dept"> | number + email?: Prisma.StringWithAggregatesFilter<"ticket_dept"> | string + manager_id?: Prisma.IntWithAggregatesFilter<"ticket_dept"> | number + member_only?: Prisma.BoolWithAggregatesFilter<"ticket_dept"> | boolean + protected?: Prisma.BoolWithAggregatesFilter<"ticket_dept"> | boolean + default_staff?: Prisma.IntWithAggregatesFilter<"ticket_dept"> | number + default_follow?: Prisma.StringWithAggregatesFilter<"ticket_dept"> | string +} + +export type ticket_deptCreateInput = { + parent?: number + name?: string + hasChild?: number + email: string + manager_id?: number + member_only?: boolean + protected?: boolean + default_staff?: number + default_follow?: string +} + +export type ticket_deptUncheckedCreateInput = { + id?: number + parent?: number + name?: string + hasChild?: number + email: string + manager_id?: number + member_only?: boolean + protected?: boolean + default_staff?: number + default_follow?: string +} + +export type ticket_deptUpdateInput = { + parent?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + hasChild?: Prisma.IntFieldUpdateOperationsInput | number + email?: Prisma.StringFieldUpdateOperationsInput | string + manager_id?: Prisma.IntFieldUpdateOperationsInput | number + member_only?: Prisma.BoolFieldUpdateOperationsInput | boolean + protected?: Prisma.BoolFieldUpdateOperationsInput | boolean + default_staff?: Prisma.IntFieldUpdateOperationsInput | number + default_follow?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ticket_deptUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + parent?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + hasChild?: Prisma.IntFieldUpdateOperationsInput | number + email?: Prisma.StringFieldUpdateOperationsInput | string + manager_id?: Prisma.IntFieldUpdateOperationsInput | number + member_only?: Prisma.BoolFieldUpdateOperationsInput | boolean + protected?: Prisma.BoolFieldUpdateOperationsInput | boolean + default_staff?: Prisma.IntFieldUpdateOperationsInput | number + default_follow?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ticket_deptCreateManyInput = { + id?: number + parent?: number + name?: string + hasChild?: number + email: string + manager_id?: number + member_only?: boolean + protected?: boolean + default_staff?: number + default_follow?: string +} + +export type ticket_deptUpdateManyMutationInput = { + parent?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + hasChild?: Prisma.IntFieldUpdateOperationsInput | number + email?: Prisma.StringFieldUpdateOperationsInput | string + manager_id?: Prisma.IntFieldUpdateOperationsInput | number + member_only?: Prisma.BoolFieldUpdateOperationsInput | boolean + protected?: Prisma.BoolFieldUpdateOperationsInput | boolean + default_staff?: Prisma.IntFieldUpdateOperationsInput | number + default_follow?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ticket_deptUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + parent?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + hasChild?: Prisma.IntFieldUpdateOperationsInput | number + email?: Prisma.StringFieldUpdateOperationsInput | string + manager_id?: Prisma.IntFieldUpdateOperationsInput | number + member_only?: Prisma.BoolFieldUpdateOperationsInput | boolean + protected?: Prisma.BoolFieldUpdateOperationsInput | boolean + default_staff?: Prisma.IntFieldUpdateOperationsInput | number + default_follow?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ticket_deptOrderByRelevanceInput = { + fields: Prisma.ticket_deptOrderByRelevanceFieldEnum | Prisma.ticket_deptOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type ticket_deptCountOrderByAggregateInput = { + id?: Prisma.SortOrder + parent?: Prisma.SortOrder + name?: Prisma.SortOrder + hasChild?: Prisma.SortOrder + email?: Prisma.SortOrder + manager_id?: Prisma.SortOrder + member_only?: Prisma.SortOrder + protected?: Prisma.SortOrder + default_staff?: Prisma.SortOrder + default_follow?: Prisma.SortOrder +} + +export type ticket_deptAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + parent?: Prisma.SortOrder + hasChild?: Prisma.SortOrder + manager_id?: Prisma.SortOrder + default_staff?: Prisma.SortOrder +} + +export type ticket_deptMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + parent?: Prisma.SortOrder + name?: Prisma.SortOrder + hasChild?: Prisma.SortOrder + email?: Prisma.SortOrder + manager_id?: Prisma.SortOrder + member_only?: Prisma.SortOrder + protected?: Prisma.SortOrder + default_staff?: Prisma.SortOrder + default_follow?: Prisma.SortOrder +} + +export type ticket_deptMinOrderByAggregateInput = { + id?: Prisma.SortOrder + parent?: Prisma.SortOrder + name?: Prisma.SortOrder + hasChild?: Prisma.SortOrder + email?: Prisma.SortOrder + manager_id?: Prisma.SortOrder + member_only?: Prisma.SortOrder + protected?: Prisma.SortOrder + default_staff?: Prisma.SortOrder + default_follow?: Prisma.SortOrder +} + +export type ticket_deptSumOrderByAggregateInput = { + id?: Prisma.SortOrder + parent?: Prisma.SortOrder + hasChild?: Prisma.SortOrder + manager_id?: Prisma.SortOrder + default_staff?: Prisma.SortOrder +} + + + +export type ticket_deptSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + parent?: boolean + name?: boolean + hasChild?: boolean + email?: boolean + manager_id?: boolean + member_only?: boolean + protected?: boolean + default_staff?: boolean + default_follow?: boolean +}, ExtArgs["result"]["ticket_dept"]> + + + +export type ticket_deptSelectScalar = { + id?: boolean + parent?: boolean + name?: boolean + hasChild?: boolean + email?: boolean + manager_id?: boolean + member_only?: boolean + protected?: boolean + default_staff?: boolean + default_follow?: boolean +} + +export type ticket_deptOmit = runtime.Types.Extensions.GetOmit<"id" | "parent" | "name" | "hasChild" | "email" | "manager_id" | "member_only" | "protected" | "default_staff" | "default_follow", ExtArgs["result"]["ticket_dept"]> + +export type $ticket_deptPayload = { + name: "ticket_dept" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + parent: number + name: string + hasChild: number + email: string + manager_id: number + member_only: boolean + protected: boolean + default_staff: number + default_follow: string + }, ExtArgs["result"]["ticket_dept"]> + composites: {} +} + +export type ticket_deptGetPayload = runtime.Types.Result.GetResult + +export type ticket_deptCountArgs = + Omit & { + select?: Ticket_deptCountAggregateInputType | true + } + +export interface ticket_deptDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ticket_dept'], meta: { name: 'ticket_dept' } } + /** + * Find zero or one Ticket_dept that matches the filter. + * @param {ticket_deptFindUniqueArgs} args - Arguments to find a Ticket_dept + * @example + * // Get one Ticket_dept + * const ticket_dept = await prisma.ticket_dept.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_deptClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Ticket_dept that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ticket_deptFindUniqueOrThrowArgs} args - Arguments to find a Ticket_dept + * @example + * // Get one Ticket_dept + * const ticket_dept = await prisma.ticket_dept.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_deptClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ticket_dept 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 {ticket_deptFindFirstArgs} args - Arguments to find a Ticket_dept + * @example + * // Get one Ticket_dept + * const ticket_dept = await prisma.ticket_dept.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_deptClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ticket_dept 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 {ticket_deptFindFirstOrThrowArgs} args - Arguments to find a Ticket_dept + * @example + * // Get one Ticket_dept + * const ticket_dept = await prisma.ticket_dept.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_deptClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Ticket_depts 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 {ticket_deptFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Ticket_depts + * const ticket_depts = await prisma.ticket_dept.findMany() + * + * // Get first 10 Ticket_depts + * const ticket_depts = await prisma.ticket_dept.findMany({ take: 10 }) + * + * // Only select the `id` + * const ticket_deptWithIdOnly = await prisma.ticket_dept.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Ticket_dept. + * @param {ticket_deptCreateArgs} args - Arguments to create a Ticket_dept. + * @example + * // Create one Ticket_dept + * const Ticket_dept = await prisma.ticket_dept.create({ + * data: { + * // ... data to create a Ticket_dept + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_deptClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Ticket_depts. + * @param {ticket_deptCreateManyArgs} args - Arguments to create many Ticket_depts. + * @example + * // Create many Ticket_depts + * const ticket_dept = await prisma.ticket_dept.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Ticket_dept. + * @param {ticket_deptDeleteArgs} args - Arguments to delete one Ticket_dept. + * @example + * // Delete one Ticket_dept + * const Ticket_dept = await prisma.ticket_dept.delete({ + * where: { + * // ... filter to delete one Ticket_dept + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_deptClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Ticket_dept. + * @param {ticket_deptUpdateArgs} args - Arguments to update one Ticket_dept. + * @example + * // Update one Ticket_dept + * const ticket_dept = await prisma.ticket_dept.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_deptClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Ticket_depts. + * @param {ticket_deptDeleteManyArgs} args - Arguments to filter Ticket_depts to delete. + * @example + * // Delete a few Ticket_depts + * const { count } = await prisma.ticket_dept.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Ticket_depts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_deptUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Ticket_depts + * const ticket_dept = await prisma.ticket_dept.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Ticket_dept. + * @param {ticket_deptUpsertArgs} args - Arguments to update or create a Ticket_dept. + * @example + * // Update or create a Ticket_dept + * const ticket_dept = await prisma.ticket_dept.upsert({ + * create: { + * // ... data to create a Ticket_dept + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Ticket_dept we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_deptClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Ticket_depts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_deptCountArgs} args - Arguments to filter Ticket_depts to count. + * @example + * // Count the number of Ticket_depts + * const count = await prisma.ticket_dept.count({ + * where: { + * // ... the filter for the Ticket_depts 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 Ticket_dept. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Ticket_deptAggregateArgs} 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 Ticket_dept. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_deptGroupByArgs} 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 ticket_deptGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ticket_deptGroupByArgs['orderBy'] } + : { orderBy?: ticket_deptGroupByArgs['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 ? GetTicket_deptGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ticket_dept model + */ +readonly fields: ticket_deptFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ticket_dept. + * 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__ticket_deptClient 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 ticket_dept model + */ +export interface ticket_deptFieldRefs { + readonly id: Prisma.FieldRef<"ticket_dept", 'Int'> + readonly parent: Prisma.FieldRef<"ticket_dept", 'Int'> + readonly name: Prisma.FieldRef<"ticket_dept", 'String'> + readonly hasChild: Prisma.FieldRef<"ticket_dept", 'Int'> + readonly email: Prisma.FieldRef<"ticket_dept", 'String'> + readonly manager_id: Prisma.FieldRef<"ticket_dept", 'Int'> + readonly member_only: Prisma.FieldRef<"ticket_dept", 'Boolean'> + readonly protected: Prisma.FieldRef<"ticket_dept", 'Boolean'> + readonly default_staff: Prisma.FieldRef<"ticket_dept", 'Int'> + readonly default_follow: Prisma.FieldRef<"ticket_dept", 'String'> +} + + +// Custom InputTypes +/** + * ticket_dept findUnique + */ +export type ticket_deptFindUniqueArgs = { + /** + * Select specific fields to fetch from the ticket_dept + */ + select?: Prisma.ticket_deptSelect | null + /** + * Omit specific fields from the ticket_dept + */ + omit?: Prisma.ticket_deptOmit | null + /** + * Filter, which ticket_dept to fetch. + */ + where: Prisma.ticket_deptWhereUniqueInput +} + +/** + * ticket_dept findUniqueOrThrow + */ +export type ticket_deptFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ticket_dept + */ + select?: Prisma.ticket_deptSelect | null + /** + * Omit specific fields from the ticket_dept + */ + omit?: Prisma.ticket_deptOmit | null + /** + * Filter, which ticket_dept to fetch. + */ + where: Prisma.ticket_deptWhereUniqueInput +} + +/** + * ticket_dept findFirst + */ +export type ticket_deptFindFirstArgs = { + /** + * Select specific fields to fetch from the ticket_dept + */ + select?: Prisma.ticket_deptSelect | null + /** + * Omit specific fields from the ticket_dept + */ + omit?: Prisma.ticket_deptOmit | null + /** + * Filter, which ticket_dept to fetch. + */ + where?: Prisma.ticket_deptWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_depts to fetch. + */ + orderBy?: Prisma.ticket_deptOrderByWithRelationInput | Prisma.ticket_deptOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ticket_depts. + */ + cursor?: Prisma.ticket_deptWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_depts 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` ticket_depts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ticket_depts. + */ + distinct?: Prisma.Ticket_deptScalarFieldEnum | Prisma.Ticket_deptScalarFieldEnum[] +} + +/** + * ticket_dept findFirstOrThrow + */ +export type ticket_deptFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ticket_dept + */ + select?: Prisma.ticket_deptSelect | null + /** + * Omit specific fields from the ticket_dept + */ + omit?: Prisma.ticket_deptOmit | null + /** + * Filter, which ticket_dept to fetch. + */ + where?: Prisma.ticket_deptWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_depts to fetch. + */ + orderBy?: Prisma.ticket_deptOrderByWithRelationInput | Prisma.ticket_deptOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ticket_depts. + */ + cursor?: Prisma.ticket_deptWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_depts 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` ticket_depts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ticket_depts. + */ + distinct?: Prisma.Ticket_deptScalarFieldEnum | Prisma.Ticket_deptScalarFieldEnum[] +} + +/** + * ticket_dept findMany + */ +export type ticket_deptFindManyArgs = { + /** + * Select specific fields to fetch from the ticket_dept + */ + select?: Prisma.ticket_deptSelect | null + /** + * Omit specific fields from the ticket_dept + */ + omit?: Prisma.ticket_deptOmit | null + /** + * Filter, which ticket_depts to fetch. + */ + where?: Prisma.ticket_deptWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_depts to fetch. + */ + orderBy?: Prisma.ticket_deptOrderByWithRelationInput | Prisma.ticket_deptOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ticket_depts. + */ + cursor?: Prisma.ticket_deptWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_depts 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` ticket_depts. + */ + skip?: number + distinct?: Prisma.Ticket_deptScalarFieldEnum | Prisma.Ticket_deptScalarFieldEnum[] +} + +/** + * ticket_dept create + */ +export type ticket_deptCreateArgs = { + /** + * Select specific fields to fetch from the ticket_dept + */ + select?: Prisma.ticket_deptSelect | null + /** + * Omit specific fields from the ticket_dept + */ + omit?: Prisma.ticket_deptOmit | null + /** + * The data needed to create a ticket_dept. + */ + data: Prisma.XOR +} + +/** + * ticket_dept createMany + */ +export type ticket_deptCreateManyArgs = { + /** + * The data used to create many ticket_depts. + */ + data: Prisma.ticket_deptCreateManyInput | Prisma.ticket_deptCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ticket_dept update + */ +export type ticket_deptUpdateArgs = { + /** + * Select specific fields to fetch from the ticket_dept + */ + select?: Prisma.ticket_deptSelect | null + /** + * Omit specific fields from the ticket_dept + */ + omit?: Prisma.ticket_deptOmit | null + /** + * The data needed to update a ticket_dept. + */ + data: Prisma.XOR + /** + * Choose, which ticket_dept to update. + */ + where: Prisma.ticket_deptWhereUniqueInput +} + +/** + * ticket_dept updateMany + */ +export type ticket_deptUpdateManyArgs = { + /** + * The data used to update ticket_depts. + */ + data: Prisma.XOR + /** + * Filter which ticket_depts to update + */ + where?: Prisma.ticket_deptWhereInput + /** + * Limit how many ticket_depts to update. + */ + limit?: number +} + +/** + * ticket_dept upsert + */ +export type ticket_deptUpsertArgs = { + /** + * Select specific fields to fetch from the ticket_dept + */ + select?: Prisma.ticket_deptSelect | null + /** + * Omit specific fields from the ticket_dept + */ + omit?: Prisma.ticket_deptOmit | null + /** + * The filter to search for the ticket_dept to update in case it exists. + */ + where: Prisma.ticket_deptWhereUniqueInput + /** + * In case the ticket_dept found by the `where` argument doesn't exist, create a new ticket_dept with this data. + */ + create: Prisma.XOR + /** + * In case the ticket_dept was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ticket_dept delete + */ +export type ticket_deptDeleteArgs = { + /** + * Select specific fields to fetch from the ticket_dept + */ + select?: Prisma.ticket_deptSelect | null + /** + * Omit specific fields from the ticket_dept + */ + omit?: Prisma.ticket_deptOmit | null + /** + * Filter which ticket_dept to delete. + */ + where: Prisma.ticket_deptWhereUniqueInput +} + +/** + * ticket_dept deleteMany + */ +export type ticket_deptDeleteManyArgs = { + /** + * Filter which ticket_depts to delete + */ + where?: Prisma.ticket_deptWhereInput + /** + * Limit how many ticket_depts to delete. + */ + limit?: number +} + +/** + * ticket_dept without action + */ +export type ticket_deptDefaultArgs = { + /** + * Select specific fields to fetch from the ticket_dept + */ + select?: Prisma.ticket_deptSelect | null + /** + * Omit specific fields from the ticket_dept + */ + omit?: Prisma.ticket_deptOmit | null +} diff --git a/prisma/generated/mariadb/models/ticket_msg.ts b/prisma/generated/mariadb/models/ticket_msg.ts new file mode 100644 index 0000000..7d41e73 --- /dev/null +++ b/prisma/generated/mariadb/models/ticket_msg.ts @@ -0,0 +1,1210 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ticket_msg` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model ticket_msg + * + */ +export type ticket_msgModel = runtime.Types.Result.DefaultSelection + +export type AggregateTicket_msg = { + _count: Ticket_msgCountAggregateOutputType | null + _avg: Ticket_msgAvgAggregateOutputType | null + _sum: Ticket_msgSumAggregateOutputType | null + _min: Ticket_msgMinAggregateOutputType | null + _max: Ticket_msgMaxAggregateOutputType | null +} + +export type Ticket_msgAvgAggregateOutputType = { + id: number | null + ticket_id: number | null + staff_id: number | null + date_orig: number | null + important: number | null +} + +export type Ticket_msgSumAggregateOutputType = { + id: bigint | null + ticket_id: bigint | null + staff_id: bigint | null + date_orig: bigint | null + important: number | null +} + +export type Ticket_msgMinAggregateOutputType = { + id: bigint | null + ticket_id: bigint | null + staff_id: bigint | null + msg: string | null + date_orig: bigint | null + unread_csv: string | null + public: boolean | null + important: number | null + update_timestamp: Date | null +} + +export type Ticket_msgMaxAggregateOutputType = { + id: bigint | null + ticket_id: bigint | null + staff_id: bigint | null + msg: string | null + date_orig: bigint | null + unread_csv: string | null + public: boolean | null + important: number | null + update_timestamp: Date | null +} + +export type Ticket_msgCountAggregateOutputType = { + id: number + ticket_id: number + staff_id: number + msg: number + date_orig: number + unread_csv: number + public: number + important: number + update_timestamp: number + _all: number +} + + +export type Ticket_msgAvgAggregateInputType = { + id?: true + ticket_id?: true + staff_id?: true + date_orig?: true + important?: true +} + +export type Ticket_msgSumAggregateInputType = { + id?: true + ticket_id?: true + staff_id?: true + date_orig?: true + important?: true +} + +export type Ticket_msgMinAggregateInputType = { + id?: true + ticket_id?: true + staff_id?: true + msg?: true + date_orig?: true + unread_csv?: true + public?: true + important?: true + update_timestamp?: true +} + +export type Ticket_msgMaxAggregateInputType = { + id?: true + ticket_id?: true + staff_id?: true + msg?: true + date_orig?: true + unread_csv?: true + public?: true + important?: true + update_timestamp?: true +} + +export type Ticket_msgCountAggregateInputType = { + id?: true + ticket_id?: true + staff_id?: true + msg?: true + date_orig?: true + unread_csv?: true + public?: true + important?: true + update_timestamp?: true + _all?: true +} + +export type Ticket_msgAggregateArgs = { + /** + * Filter which ticket_msg to aggregate. + */ + where?: Prisma.ticket_msgWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_msgs to fetch. + */ + orderBy?: Prisma.ticket_msgOrderByWithRelationInput | Prisma.ticket_msgOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ticket_msgWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_msgs 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` ticket_msgs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ticket_msgs + **/ + _count?: true | Ticket_msgCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Ticket_msgAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Ticket_msgSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Ticket_msgMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Ticket_msgMaxAggregateInputType +} + +export type GetTicket_msgAggregateType = { + [P in keyof T & keyof AggregateTicket_msg]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ticket_msgGroupByArgs = { + where?: Prisma.ticket_msgWhereInput + orderBy?: Prisma.ticket_msgOrderByWithAggregationInput | Prisma.ticket_msgOrderByWithAggregationInput[] + by: Prisma.Ticket_msgScalarFieldEnum[] | Prisma.Ticket_msgScalarFieldEnum + having?: Prisma.ticket_msgScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Ticket_msgCountAggregateInputType | true + _avg?: Ticket_msgAvgAggregateInputType + _sum?: Ticket_msgSumAggregateInputType + _min?: Ticket_msgMinAggregateInputType + _max?: Ticket_msgMaxAggregateInputType +} + +export type Ticket_msgGroupByOutputType = { + id: bigint + ticket_id: bigint + staff_id: bigint + msg: string | null + date_orig: bigint | null + unread_csv: string + public: boolean | null + important: number + update_timestamp: Date + _count: Ticket_msgCountAggregateOutputType | null + _avg: Ticket_msgAvgAggregateOutputType | null + _sum: Ticket_msgSumAggregateOutputType | null + _min: Ticket_msgMinAggregateOutputType | null + _max: Ticket_msgMaxAggregateOutputType | null +} + +type GetTicket_msgGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Ticket_msgGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ticket_msgWhereInput = { + AND?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[] + OR?: Prisma.ticket_msgWhereInput[] + NOT?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[] + id?: Prisma.BigIntFilter<"ticket_msg"> | bigint | number + ticket_id?: Prisma.BigIntFilter<"ticket_msg"> | bigint | number + staff_id?: Prisma.BigIntFilter<"ticket_msg"> | bigint | number + msg?: Prisma.StringNullableFilter<"ticket_msg"> | string | null + date_orig?: Prisma.BigIntNullableFilter<"ticket_msg"> | bigint | number | null + unread_csv?: Prisma.StringFilter<"ticket_msg"> | string + public?: Prisma.BoolNullableFilter<"ticket_msg"> | boolean | null + important?: Prisma.IntFilter<"ticket_msg"> | number + update_timestamp?: Prisma.DateTimeFilter<"ticket_msg"> | Date | string +} + +export type ticket_msgOrderByWithRelationInput = { + id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + msg?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + unread_csv?: Prisma.SortOrder + public?: Prisma.SortOrderInput | Prisma.SortOrder + important?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder + _relevance?: Prisma.ticket_msgOrderByRelevanceInput +} + +export type ticket_msgWhereUniqueInput = Prisma.AtLeast<{ + id?: bigint | number + AND?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[] + OR?: Prisma.ticket_msgWhereInput[] + NOT?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[] + ticket_id?: Prisma.BigIntFilter<"ticket_msg"> | bigint | number + staff_id?: Prisma.BigIntFilter<"ticket_msg"> | bigint | number + msg?: Prisma.StringNullableFilter<"ticket_msg"> | string | null + date_orig?: Prisma.BigIntNullableFilter<"ticket_msg"> | bigint | number | null + unread_csv?: Prisma.StringFilter<"ticket_msg"> | string + public?: Prisma.BoolNullableFilter<"ticket_msg"> | boolean | null + important?: Prisma.IntFilter<"ticket_msg"> | number + update_timestamp?: Prisma.DateTimeFilter<"ticket_msg"> | Date | string +}, "id"> + +export type ticket_msgOrderByWithAggregationInput = { + id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + msg?: Prisma.SortOrderInput | Prisma.SortOrder + date_orig?: Prisma.SortOrderInput | Prisma.SortOrder + unread_csv?: Prisma.SortOrder + public?: Prisma.SortOrderInput | Prisma.SortOrder + important?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder + _count?: Prisma.ticket_msgCountOrderByAggregateInput + _avg?: Prisma.ticket_msgAvgOrderByAggregateInput + _max?: Prisma.ticket_msgMaxOrderByAggregateInput + _min?: Prisma.ticket_msgMinOrderByAggregateInput + _sum?: Prisma.ticket_msgSumOrderByAggregateInput +} + +export type ticket_msgScalarWhereWithAggregatesInput = { + AND?: Prisma.ticket_msgScalarWhereWithAggregatesInput | Prisma.ticket_msgScalarWhereWithAggregatesInput[] + OR?: Prisma.ticket_msgScalarWhereWithAggregatesInput[] + NOT?: Prisma.ticket_msgScalarWhereWithAggregatesInput | Prisma.ticket_msgScalarWhereWithAggregatesInput[] + id?: Prisma.BigIntWithAggregatesFilter<"ticket_msg"> | bigint | number + ticket_id?: Prisma.BigIntWithAggregatesFilter<"ticket_msg"> | bigint | number + staff_id?: Prisma.BigIntWithAggregatesFilter<"ticket_msg"> | bigint | number + msg?: Prisma.StringNullableWithAggregatesFilter<"ticket_msg"> | string | null + date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"ticket_msg"> | bigint | number | null + unread_csv?: Prisma.StringWithAggregatesFilter<"ticket_msg"> | string + public?: Prisma.BoolNullableWithAggregatesFilter<"ticket_msg"> | boolean | null + important?: Prisma.IntWithAggregatesFilter<"ticket_msg"> | number + update_timestamp?: Prisma.DateTimeWithAggregatesFilter<"ticket_msg"> | Date | string +} + +export type ticket_msgCreateInput = { + id?: bigint | number + ticket_id: bigint | number + staff_id?: bigint | number + msg?: string | null + date_orig?: bigint | number | null + unread_csv: string + public?: boolean | null + important?: number + update_timestamp?: Date | string +} + +export type ticket_msgUncheckedCreateInput = { + id?: bigint | number + ticket_id: bigint | number + staff_id?: bigint | number + msg?: string | null + date_orig?: bigint | number | null + unread_csv: string + public?: boolean | null + important?: number + update_timestamp?: Date | string +} + +export type ticket_msgUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ticket_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string + public?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + important?: Prisma.IntFieldUpdateOperationsInput | number + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ticket_msgUncheckedUpdateInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ticket_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string + public?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + important?: Prisma.IntFieldUpdateOperationsInput | number + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ticket_msgCreateManyInput = { + id?: bigint | number + ticket_id: bigint | number + staff_id?: bigint | number + msg?: string | null + date_orig?: bigint | number | null + unread_csv: string + public?: boolean | null + important?: number + update_timestamp?: Date | string +} + +export type ticket_msgUpdateManyMutationInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ticket_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string + public?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + important?: Prisma.IntFieldUpdateOperationsInput | number + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ticket_msgUncheckedUpdateManyInput = { + id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + ticket_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null + unread_csv?: Prisma.StringFieldUpdateOperationsInput | string + public?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + important?: Prisma.IntFieldUpdateOperationsInput | number + update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type ticket_msgOrderByRelevanceInput = { + fields: Prisma.ticket_msgOrderByRelevanceFieldEnum | Prisma.ticket_msgOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type ticket_msgCountOrderByAggregateInput = { + id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder + public?: Prisma.SortOrder + important?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder +} + +export type ticket_msgAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + important?: Prisma.SortOrder +} + +export type ticket_msgMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder + public?: Prisma.SortOrder + important?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder +} + +export type ticket_msgMinOrderByAggregateInput = { + id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + msg?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + unread_csv?: Prisma.SortOrder + public?: Prisma.SortOrder + important?: Prisma.SortOrder + update_timestamp?: Prisma.SortOrder +} + +export type ticket_msgSumOrderByAggregateInput = { + id?: Prisma.SortOrder + ticket_id?: Prisma.SortOrder + staff_id?: Prisma.SortOrder + date_orig?: Prisma.SortOrder + important?: Prisma.SortOrder +} + + + +export type ticket_msgSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + ticket_id?: boolean + staff_id?: boolean + msg?: boolean + date_orig?: boolean + unread_csv?: boolean + public?: boolean + important?: boolean + update_timestamp?: boolean +}, ExtArgs["result"]["ticket_msg"]> + + + +export type ticket_msgSelectScalar = { + id?: boolean + ticket_id?: boolean + staff_id?: boolean + msg?: boolean + date_orig?: boolean + unread_csv?: boolean + public?: boolean + important?: boolean + update_timestamp?: boolean +} + +export type ticket_msgOmit = runtime.Types.Extensions.GetOmit<"id" | "ticket_id" | "staff_id" | "msg" | "date_orig" | "unread_csv" | "public" | "important" | "update_timestamp", ExtArgs["result"]["ticket_msg"]> + +export type $ticket_msgPayload = { + name: "ticket_msg" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: bigint + ticket_id: bigint + staff_id: bigint + msg: string | null + date_orig: bigint | null + unread_csv: string + public: boolean | null + important: number + update_timestamp: Date + }, ExtArgs["result"]["ticket_msg"]> + composites: {} +} + +export type ticket_msgGetPayload = runtime.Types.Result.GetResult + +export type ticket_msgCountArgs = + Omit & { + select?: Ticket_msgCountAggregateInputType | true + } + +export interface ticket_msgDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ticket_msg'], meta: { name: 'ticket_msg' } } + /** + * Find zero or one Ticket_msg that matches the filter. + * @param {ticket_msgFindUniqueArgs} args - Arguments to find a Ticket_msg + * @example + * // Get one Ticket_msg + * const ticket_msg = await prisma.ticket_msg.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Ticket_msg that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ticket_msgFindUniqueOrThrowArgs} args - Arguments to find a Ticket_msg + * @example + * // Get one Ticket_msg + * const ticket_msg = await prisma.ticket_msg.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ticket_msg 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 {ticket_msgFindFirstArgs} args - Arguments to find a Ticket_msg + * @example + * // Get one Ticket_msg + * const ticket_msg = await prisma.ticket_msg.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ticket_msg 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 {ticket_msgFindFirstOrThrowArgs} args - Arguments to find a Ticket_msg + * @example + * // Get one Ticket_msg + * const ticket_msg = await prisma.ticket_msg.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Ticket_msgs 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 {ticket_msgFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Ticket_msgs + * const ticket_msgs = await prisma.ticket_msg.findMany() + * + * // Get first 10 Ticket_msgs + * const ticket_msgs = await prisma.ticket_msg.findMany({ take: 10 }) + * + * // Only select the `id` + * const ticket_msgWithIdOnly = await prisma.ticket_msg.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Ticket_msg. + * @param {ticket_msgCreateArgs} args - Arguments to create a Ticket_msg. + * @example + * // Create one Ticket_msg + * const Ticket_msg = await prisma.ticket_msg.create({ + * data: { + * // ... data to create a Ticket_msg + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Ticket_msgs. + * @param {ticket_msgCreateManyArgs} args - Arguments to create many Ticket_msgs. + * @example + * // Create many Ticket_msgs + * const ticket_msg = await prisma.ticket_msg.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Ticket_msg. + * @param {ticket_msgDeleteArgs} args - Arguments to delete one Ticket_msg. + * @example + * // Delete one Ticket_msg + * const Ticket_msg = await prisma.ticket_msg.delete({ + * where: { + * // ... filter to delete one Ticket_msg + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Ticket_msg. + * @param {ticket_msgUpdateArgs} args - Arguments to update one Ticket_msg. + * @example + * // Update one Ticket_msg + * const ticket_msg = await prisma.ticket_msg.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Ticket_msgs. + * @param {ticket_msgDeleteManyArgs} args - Arguments to filter Ticket_msgs to delete. + * @example + * // Delete a few Ticket_msgs + * const { count } = await prisma.ticket_msg.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Ticket_msgs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_msgUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Ticket_msgs + * const ticket_msg = await prisma.ticket_msg.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Ticket_msg. + * @param {ticket_msgUpsertArgs} args - Arguments to update or create a Ticket_msg. + * @example + * // Update or create a Ticket_msg + * const ticket_msg = await prisma.ticket_msg.upsert({ + * create: { + * // ... data to create a Ticket_msg + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Ticket_msg we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Ticket_msgs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_msgCountArgs} args - Arguments to filter Ticket_msgs to count. + * @example + * // Count the number of Ticket_msgs + * const count = await prisma.ticket_msg.count({ + * where: { + * // ... the filter for the Ticket_msgs 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 Ticket_msg. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Ticket_msgAggregateArgs} 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 Ticket_msg. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_msgGroupByArgs} 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 ticket_msgGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ticket_msgGroupByArgs['orderBy'] } + : { orderBy?: ticket_msgGroupByArgs['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 ? GetTicket_msgGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ticket_msg model + */ +readonly fields: ticket_msgFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ticket_msg. + * 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__ticket_msgClient 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 ticket_msg model + */ +export interface ticket_msgFieldRefs { + readonly id: Prisma.FieldRef<"ticket_msg", 'BigInt'> + readonly ticket_id: Prisma.FieldRef<"ticket_msg", 'BigInt'> + readonly staff_id: Prisma.FieldRef<"ticket_msg", 'BigInt'> + readonly msg: Prisma.FieldRef<"ticket_msg", 'String'> + readonly date_orig: Prisma.FieldRef<"ticket_msg", 'BigInt'> + readonly unread_csv: Prisma.FieldRef<"ticket_msg", 'String'> + readonly public: Prisma.FieldRef<"ticket_msg", 'Boolean'> + readonly important: Prisma.FieldRef<"ticket_msg", 'Int'> + readonly update_timestamp: Prisma.FieldRef<"ticket_msg", 'DateTime'> +} + + +// Custom InputTypes +/** + * ticket_msg findUnique + */ +export type ticket_msgFindUniqueArgs = { + /** + * Select specific fields to fetch from the ticket_msg + */ + select?: Prisma.ticket_msgSelect | null + /** + * Omit specific fields from the ticket_msg + */ + omit?: Prisma.ticket_msgOmit | null + /** + * Filter, which ticket_msg to fetch. + */ + where: Prisma.ticket_msgWhereUniqueInput +} + +/** + * ticket_msg findUniqueOrThrow + */ +export type ticket_msgFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ticket_msg + */ + select?: Prisma.ticket_msgSelect | null + /** + * Omit specific fields from the ticket_msg + */ + omit?: Prisma.ticket_msgOmit | null + /** + * Filter, which ticket_msg to fetch. + */ + where: Prisma.ticket_msgWhereUniqueInput +} + +/** + * ticket_msg findFirst + */ +export type ticket_msgFindFirstArgs = { + /** + * Select specific fields to fetch from the ticket_msg + */ + select?: Prisma.ticket_msgSelect | null + /** + * Omit specific fields from the ticket_msg + */ + omit?: Prisma.ticket_msgOmit | null + /** + * Filter, which ticket_msg to fetch. + */ + where?: Prisma.ticket_msgWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_msgs to fetch. + */ + orderBy?: Prisma.ticket_msgOrderByWithRelationInput | Prisma.ticket_msgOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ticket_msgs. + */ + cursor?: Prisma.ticket_msgWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_msgs 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` ticket_msgs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ticket_msgs. + */ + distinct?: Prisma.Ticket_msgScalarFieldEnum | Prisma.Ticket_msgScalarFieldEnum[] +} + +/** + * ticket_msg findFirstOrThrow + */ +export type ticket_msgFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ticket_msg + */ + select?: Prisma.ticket_msgSelect | null + /** + * Omit specific fields from the ticket_msg + */ + omit?: Prisma.ticket_msgOmit | null + /** + * Filter, which ticket_msg to fetch. + */ + where?: Prisma.ticket_msgWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_msgs to fetch. + */ + orderBy?: Prisma.ticket_msgOrderByWithRelationInput | Prisma.ticket_msgOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ticket_msgs. + */ + cursor?: Prisma.ticket_msgWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_msgs 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` ticket_msgs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ticket_msgs. + */ + distinct?: Prisma.Ticket_msgScalarFieldEnum | Prisma.Ticket_msgScalarFieldEnum[] +} + +/** + * ticket_msg findMany + */ +export type ticket_msgFindManyArgs = { + /** + * Select specific fields to fetch from the ticket_msg + */ + select?: Prisma.ticket_msgSelect | null + /** + * Omit specific fields from the ticket_msg + */ + omit?: Prisma.ticket_msgOmit | null + /** + * Filter, which ticket_msgs to fetch. + */ + where?: Prisma.ticket_msgWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_msgs to fetch. + */ + orderBy?: Prisma.ticket_msgOrderByWithRelationInput | Prisma.ticket_msgOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ticket_msgs. + */ + cursor?: Prisma.ticket_msgWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_msgs 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` ticket_msgs. + */ + skip?: number + distinct?: Prisma.Ticket_msgScalarFieldEnum | Prisma.Ticket_msgScalarFieldEnum[] +} + +/** + * ticket_msg create + */ +export type ticket_msgCreateArgs = { + /** + * Select specific fields to fetch from the ticket_msg + */ + select?: Prisma.ticket_msgSelect | null + /** + * Omit specific fields from the ticket_msg + */ + omit?: Prisma.ticket_msgOmit | null + /** + * The data needed to create a ticket_msg. + */ + data: Prisma.XOR +} + +/** + * ticket_msg createMany + */ +export type ticket_msgCreateManyArgs = { + /** + * The data used to create many ticket_msgs. + */ + data: Prisma.ticket_msgCreateManyInput | Prisma.ticket_msgCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ticket_msg update + */ +export type ticket_msgUpdateArgs = { + /** + * Select specific fields to fetch from the ticket_msg + */ + select?: Prisma.ticket_msgSelect | null + /** + * Omit specific fields from the ticket_msg + */ + omit?: Prisma.ticket_msgOmit | null + /** + * The data needed to update a ticket_msg. + */ + data: Prisma.XOR + /** + * Choose, which ticket_msg to update. + */ + where: Prisma.ticket_msgWhereUniqueInput +} + +/** + * ticket_msg updateMany + */ +export type ticket_msgUpdateManyArgs = { + /** + * The data used to update ticket_msgs. + */ + data: Prisma.XOR + /** + * Filter which ticket_msgs to update + */ + where?: Prisma.ticket_msgWhereInput + /** + * Limit how many ticket_msgs to update. + */ + limit?: number +} + +/** + * ticket_msg upsert + */ +export type ticket_msgUpsertArgs = { + /** + * Select specific fields to fetch from the ticket_msg + */ + select?: Prisma.ticket_msgSelect | null + /** + * Omit specific fields from the ticket_msg + */ + omit?: Prisma.ticket_msgOmit | null + /** + * The filter to search for the ticket_msg to update in case it exists. + */ + where: Prisma.ticket_msgWhereUniqueInput + /** + * In case the ticket_msg found by the `where` argument doesn't exist, create a new ticket_msg with this data. + */ + create: Prisma.XOR + /** + * In case the ticket_msg was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ticket_msg delete + */ +export type ticket_msgDeleteArgs = { + /** + * Select specific fields to fetch from the ticket_msg + */ + select?: Prisma.ticket_msgSelect | null + /** + * Omit specific fields from the ticket_msg + */ + omit?: Prisma.ticket_msgOmit | null + /** + * Filter which ticket_msg to delete. + */ + where: Prisma.ticket_msgWhereUniqueInput +} + +/** + * ticket_msg deleteMany + */ +export type ticket_msgDeleteManyArgs = { + /** + * Filter which ticket_msgs to delete + */ + where?: Prisma.ticket_msgWhereInput + /** + * Limit how many ticket_msgs to delete. + */ + limit?: number +} + +/** + * ticket_msg without action + */ +export type ticket_msgDefaultArgs = { + /** + * Select specific fields to fetch from the ticket_msg + */ + select?: Prisma.ticket_msgSelect | null + /** + * Omit specific fields from the ticket_msg + */ + omit?: Prisma.ticket_msgOmit | null +} diff --git a/prisma/generated/mariadb/models/ticket_template.ts b/prisma/generated/mariadb/models/ticket_template.ts new file mode 100644 index 0000000..db214a3 --- /dev/null +++ b/prisma/generated/mariadb/models/ticket_template.ts @@ -0,0 +1,1027 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ticket_template` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model ticket_template + * + */ +export type ticket_templateModel = runtime.Types.Result.DefaultSelection + +export type AggregateTicket_template = { + _count: Ticket_templateCountAggregateOutputType | null + _avg: Ticket_templateAvgAggregateOutputType | null + _sum: Ticket_templateSumAggregateOutputType | null + _min: Ticket_templateMinAggregateOutputType | null + _max: Ticket_templateMaxAggregateOutputType | null +} + +export type Ticket_templateAvgAggregateOutputType = { + id: number | null +} + +export type Ticket_templateSumAggregateOutputType = { + id: number | null +} + +export type Ticket_templateMinAggregateOutputType = { + id: number | null + name: string | null + template: string | null +} + +export type Ticket_templateMaxAggregateOutputType = { + id: number | null + name: string | null + template: string | null +} + +export type Ticket_templateCountAggregateOutputType = { + id: number + name: number + template: number + _all: number +} + + +export type Ticket_templateAvgAggregateInputType = { + id?: true +} + +export type Ticket_templateSumAggregateInputType = { + id?: true +} + +export type Ticket_templateMinAggregateInputType = { + id?: true + name?: true + template?: true +} + +export type Ticket_templateMaxAggregateInputType = { + id?: true + name?: true + template?: true +} + +export type Ticket_templateCountAggregateInputType = { + id?: true + name?: true + template?: true + _all?: true +} + +export type Ticket_templateAggregateArgs = { + /** + * Filter which ticket_template to aggregate. + */ + where?: Prisma.ticket_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_templates to fetch. + */ + orderBy?: Prisma.ticket_templateOrderByWithRelationInput | Prisma.ticket_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ticket_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_templates 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` ticket_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ticket_templates + **/ + _count?: true | Ticket_templateCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Ticket_templateAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Ticket_templateSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Ticket_templateMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Ticket_templateMaxAggregateInputType +} + +export type GetTicket_templateAggregateType = { + [P in keyof T & keyof AggregateTicket_template]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ticket_templateGroupByArgs = { + where?: Prisma.ticket_templateWhereInput + orderBy?: Prisma.ticket_templateOrderByWithAggregationInput | Prisma.ticket_templateOrderByWithAggregationInput[] + by: Prisma.Ticket_templateScalarFieldEnum[] | Prisma.Ticket_templateScalarFieldEnum + having?: Prisma.ticket_templateScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Ticket_templateCountAggregateInputType | true + _avg?: Ticket_templateAvgAggregateInputType + _sum?: Ticket_templateSumAggregateInputType + _min?: Ticket_templateMinAggregateInputType + _max?: Ticket_templateMaxAggregateInputType +} + +export type Ticket_templateGroupByOutputType = { + id: number + name: string + template: string + _count: Ticket_templateCountAggregateOutputType | null + _avg: Ticket_templateAvgAggregateOutputType | null + _sum: Ticket_templateSumAggregateOutputType | null + _min: Ticket_templateMinAggregateOutputType | null + _max: Ticket_templateMaxAggregateOutputType | null +} + +type GetTicket_templateGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Ticket_templateGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ticket_templateWhereInput = { + AND?: Prisma.ticket_templateWhereInput | Prisma.ticket_templateWhereInput[] + OR?: Prisma.ticket_templateWhereInput[] + NOT?: Prisma.ticket_templateWhereInput | Prisma.ticket_templateWhereInput[] + id?: Prisma.IntFilter<"ticket_template"> | number + name?: Prisma.StringFilter<"ticket_template"> | string + template?: Prisma.StringFilter<"ticket_template"> | string +} + +export type ticket_templateOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + template?: Prisma.SortOrder + _relevance?: Prisma.ticket_templateOrderByRelevanceInput +} + +export type ticket_templateWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.ticket_templateWhereInput | Prisma.ticket_templateWhereInput[] + OR?: Prisma.ticket_templateWhereInput[] + NOT?: Prisma.ticket_templateWhereInput | Prisma.ticket_templateWhereInput[] + name?: Prisma.StringFilter<"ticket_template"> | string + template?: Prisma.StringFilter<"ticket_template"> | string +}, "id"> + +export type ticket_templateOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + template?: Prisma.SortOrder + _count?: Prisma.ticket_templateCountOrderByAggregateInput + _avg?: Prisma.ticket_templateAvgOrderByAggregateInput + _max?: Prisma.ticket_templateMaxOrderByAggregateInput + _min?: Prisma.ticket_templateMinOrderByAggregateInput + _sum?: Prisma.ticket_templateSumOrderByAggregateInput +} + +export type ticket_templateScalarWhereWithAggregatesInput = { + AND?: Prisma.ticket_templateScalarWhereWithAggregatesInput | Prisma.ticket_templateScalarWhereWithAggregatesInput[] + OR?: Prisma.ticket_templateScalarWhereWithAggregatesInput[] + NOT?: Prisma.ticket_templateScalarWhereWithAggregatesInput | Prisma.ticket_templateScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"ticket_template"> | number + name?: Prisma.StringWithAggregatesFilter<"ticket_template"> | string + template?: Prisma.StringWithAggregatesFilter<"ticket_template"> | string +} + +export type ticket_templateCreateInput = { + name: string + template: string +} + +export type ticket_templateUncheckedCreateInput = { + id?: number + name: string + template: string +} + +export type ticket_templateUpdateInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + template?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ticket_templateUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + template?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ticket_templateCreateManyInput = { + id?: number + name: string + template: string +} + +export type ticket_templateUpdateManyMutationInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + template?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ticket_templateUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + template?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type ticket_templateOrderByRelevanceInput = { + fields: Prisma.ticket_templateOrderByRelevanceFieldEnum | Prisma.ticket_templateOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type ticket_templateCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + template?: Prisma.SortOrder +} + +export type ticket_templateAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type ticket_templateMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + template?: Prisma.SortOrder +} + +export type ticket_templateMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + template?: Prisma.SortOrder +} + +export type ticket_templateSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + + + +export type ticket_templateSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + template?: boolean +}, ExtArgs["result"]["ticket_template"]> + + + +export type ticket_templateSelectScalar = { + id?: boolean + name?: boolean + template?: boolean +} + +export type ticket_templateOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "template", ExtArgs["result"]["ticket_template"]> + +export type $ticket_templatePayload = { + name: "ticket_template" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name: string + template: string + }, ExtArgs["result"]["ticket_template"]> + composites: {} +} + +export type ticket_templateGetPayload = runtime.Types.Result.GetResult + +export type ticket_templateCountArgs = + Omit & { + select?: Ticket_templateCountAggregateInputType | true + } + +export interface ticket_templateDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ticket_template'], meta: { name: 'ticket_template' } } + /** + * Find zero or one Ticket_template that matches the filter. + * @param {ticket_templateFindUniqueArgs} args - Arguments to find a Ticket_template + * @example + * // Get one Ticket_template + * const ticket_template = await prisma.ticket_template.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_templateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Ticket_template that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ticket_templateFindUniqueOrThrowArgs} args - Arguments to find a Ticket_template + * @example + * // Get one Ticket_template + * const ticket_template = await prisma.ticket_template.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_templateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ticket_template 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 {ticket_templateFindFirstArgs} args - Arguments to find a Ticket_template + * @example + * // Get one Ticket_template + * const ticket_template = await prisma.ticket_template.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_templateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Ticket_template 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 {ticket_templateFindFirstOrThrowArgs} args - Arguments to find a Ticket_template + * @example + * // Get one Ticket_template + * const ticket_template = await prisma.ticket_template.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_templateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Ticket_templates 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 {ticket_templateFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Ticket_templates + * const ticket_templates = await prisma.ticket_template.findMany() + * + * // Get first 10 Ticket_templates + * const ticket_templates = await prisma.ticket_template.findMany({ take: 10 }) + * + * // Only select the `id` + * const ticket_templateWithIdOnly = await prisma.ticket_template.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Ticket_template. + * @param {ticket_templateCreateArgs} args - Arguments to create a Ticket_template. + * @example + * // Create one Ticket_template + * const Ticket_template = await prisma.ticket_template.create({ + * data: { + * // ... data to create a Ticket_template + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_templateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Ticket_templates. + * @param {ticket_templateCreateManyArgs} args - Arguments to create many Ticket_templates. + * @example + * // Create many Ticket_templates + * const ticket_template = await prisma.ticket_template.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Ticket_template. + * @param {ticket_templateDeleteArgs} args - Arguments to delete one Ticket_template. + * @example + * // Delete one Ticket_template + * const Ticket_template = await prisma.ticket_template.delete({ + * where: { + * // ... filter to delete one Ticket_template + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_templateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Ticket_template. + * @param {ticket_templateUpdateArgs} args - Arguments to update one Ticket_template. + * @example + * // Update one Ticket_template + * const ticket_template = await prisma.ticket_template.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_templateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Ticket_templates. + * @param {ticket_templateDeleteManyArgs} args - Arguments to filter Ticket_templates to delete. + * @example + * // Delete a few Ticket_templates + * const { count } = await prisma.ticket_template.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Ticket_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_templateUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Ticket_templates + * const ticket_template = await prisma.ticket_template.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Ticket_template. + * @param {ticket_templateUpsertArgs} args - Arguments to update or create a Ticket_template. + * @example + * // Update or create a Ticket_template + * const ticket_template = await prisma.ticket_template.upsert({ + * create: { + * // ... data to create a Ticket_template + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Ticket_template we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_templateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Ticket_templates. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_templateCountArgs} args - Arguments to filter Ticket_templates to count. + * @example + * // Count the number of Ticket_templates + * const count = await prisma.ticket_template.count({ + * where: { + * // ... the filter for the Ticket_templates 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 Ticket_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Ticket_templateAggregateArgs} 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 Ticket_template. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ticket_templateGroupByArgs} 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 ticket_templateGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ticket_templateGroupByArgs['orderBy'] } + : { orderBy?: ticket_templateGroupByArgs['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 ? GetTicket_templateGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ticket_template model + */ +readonly fields: ticket_templateFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ticket_template. + * 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__ticket_templateClient 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 ticket_template model + */ +export interface ticket_templateFieldRefs { + readonly id: Prisma.FieldRef<"ticket_template", 'Int'> + readonly name: Prisma.FieldRef<"ticket_template", 'String'> + readonly template: Prisma.FieldRef<"ticket_template", 'String'> +} + + +// Custom InputTypes +/** + * ticket_template findUnique + */ +export type ticket_templateFindUniqueArgs = { + /** + * Select specific fields to fetch from the ticket_template + */ + select?: Prisma.ticket_templateSelect | null + /** + * Omit specific fields from the ticket_template + */ + omit?: Prisma.ticket_templateOmit | null + /** + * Filter, which ticket_template to fetch. + */ + where: Prisma.ticket_templateWhereUniqueInput +} + +/** + * ticket_template findUniqueOrThrow + */ +export type ticket_templateFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ticket_template + */ + select?: Prisma.ticket_templateSelect | null + /** + * Omit specific fields from the ticket_template + */ + omit?: Prisma.ticket_templateOmit | null + /** + * Filter, which ticket_template to fetch. + */ + where: Prisma.ticket_templateWhereUniqueInput +} + +/** + * ticket_template findFirst + */ +export type ticket_templateFindFirstArgs = { + /** + * Select specific fields to fetch from the ticket_template + */ + select?: Prisma.ticket_templateSelect | null + /** + * Omit specific fields from the ticket_template + */ + omit?: Prisma.ticket_templateOmit | null + /** + * Filter, which ticket_template to fetch. + */ + where?: Prisma.ticket_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_templates to fetch. + */ + orderBy?: Prisma.ticket_templateOrderByWithRelationInput | Prisma.ticket_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ticket_templates. + */ + cursor?: Prisma.ticket_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_templates 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` ticket_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ticket_templates. + */ + distinct?: Prisma.Ticket_templateScalarFieldEnum | Prisma.Ticket_templateScalarFieldEnum[] +} + +/** + * ticket_template findFirstOrThrow + */ +export type ticket_templateFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ticket_template + */ + select?: Prisma.ticket_templateSelect | null + /** + * Omit specific fields from the ticket_template + */ + omit?: Prisma.ticket_templateOmit | null + /** + * Filter, which ticket_template to fetch. + */ + where?: Prisma.ticket_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_templates to fetch. + */ + orderBy?: Prisma.ticket_templateOrderByWithRelationInput | Prisma.ticket_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ticket_templates. + */ + cursor?: Prisma.ticket_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_templates 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` ticket_templates. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ticket_templates. + */ + distinct?: Prisma.Ticket_templateScalarFieldEnum | Prisma.Ticket_templateScalarFieldEnum[] +} + +/** + * ticket_template findMany + */ +export type ticket_templateFindManyArgs = { + /** + * Select specific fields to fetch from the ticket_template + */ + select?: Prisma.ticket_templateSelect | null + /** + * Omit specific fields from the ticket_template + */ + omit?: Prisma.ticket_templateOmit | null + /** + * Filter, which ticket_templates to fetch. + */ + where?: Prisma.ticket_templateWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ticket_templates to fetch. + */ + orderBy?: Prisma.ticket_templateOrderByWithRelationInput | Prisma.ticket_templateOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ticket_templates. + */ + cursor?: Prisma.ticket_templateWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ticket_templates 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` ticket_templates. + */ + skip?: number + distinct?: Prisma.Ticket_templateScalarFieldEnum | Prisma.Ticket_templateScalarFieldEnum[] +} + +/** + * ticket_template create + */ +export type ticket_templateCreateArgs = { + /** + * Select specific fields to fetch from the ticket_template + */ + select?: Prisma.ticket_templateSelect | null + /** + * Omit specific fields from the ticket_template + */ + omit?: Prisma.ticket_templateOmit | null + /** + * The data needed to create a ticket_template. + */ + data: Prisma.XOR +} + +/** + * ticket_template createMany + */ +export type ticket_templateCreateManyArgs = { + /** + * The data used to create many ticket_templates. + */ + data: Prisma.ticket_templateCreateManyInput | Prisma.ticket_templateCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ticket_template update + */ +export type ticket_templateUpdateArgs = { + /** + * Select specific fields to fetch from the ticket_template + */ + select?: Prisma.ticket_templateSelect | null + /** + * Omit specific fields from the ticket_template + */ + omit?: Prisma.ticket_templateOmit | null + /** + * The data needed to update a ticket_template. + */ + data: Prisma.XOR + /** + * Choose, which ticket_template to update. + */ + where: Prisma.ticket_templateWhereUniqueInput +} + +/** + * ticket_template updateMany + */ +export type ticket_templateUpdateManyArgs = { + /** + * The data used to update ticket_templates. + */ + data: Prisma.XOR + /** + * Filter which ticket_templates to update + */ + where?: Prisma.ticket_templateWhereInput + /** + * Limit how many ticket_templates to update. + */ + limit?: number +} + +/** + * ticket_template upsert + */ +export type ticket_templateUpsertArgs = { + /** + * Select specific fields to fetch from the ticket_template + */ + select?: Prisma.ticket_templateSelect | null + /** + * Omit specific fields from the ticket_template + */ + omit?: Prisma.ticket_templateOmit | null + /** + * The filter to search for the ticket_template to update in case it exists. + */ + where: Prisma.ticket_templateWhereUniqueInput + /** + * In case the ticket_template found by the `where` argument doesn't exist, create a new ticket_template with this data. + */ + create: Prisma.XOR + /** + * In case the ticket_template was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ticket_template delete + */ +export type ticket_templateDeleteArgs = { + /** + * Select specific fields to fetch from the ticket_template + */ + select?: Prisma.ticket_templateSelect | null + /** + * Omit specific fields from the ticket_template + */ + omit?: Prisma.ticket_templateOmit | null + /** + * Filter which ticket_template to delete. + */ + where: Prisma.ticket_templateWhereUniqueInput +} + +/** + * ticket_template deleteMany + */ +export type ticket_templateDeleteManyArgs = { + /** + * Filter which ticket_templates to delete + */ + where?: Prisma.ticket_templateWhereInput + /** + * Limit how many ticket_templates to delete. + */ + limit?: number +} + +/** + * ticket_template without action + */ +export type ticket_templateDefaultArgs = { + /** + * Select specific fields to fetch from the ticket_template + */ + select?: Prisma.ticket_templateSelect | null + /** + * Omit specific fields from the ticket_template + */ + omit?: Prisma.ticket_templateOmit | null +} diff --git a/prisma/generated/mariadb/models/tmp_vpn.ts b/prisma/generated/mariadb/models/tmp_vpn.ts new file mode 100644 index 0000000..fc5de3d --- /dev/null +++ b/prisma/generated/mariadb/models/tmp_vpn.ts @@ -0,0 +1,1114 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `tmp_vpn` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model tmp_vpn + * + */ +export type tmp_vpnModel = runtime.Types.Result.DefaultSelection + +export type AggregateTmp_vpn = { + _count: Tmp_vpnCountAggregateOutputType | null + _avg: Tmp_vpnAvgAggregateOutputType | null + _sum: Tmp_vpnSumAggregateOutputType | null + _min: Tmp_vpnMinAggregateOutputType | null + _max: Tmp_vpnMaxAggregateOutputType | null +} + +export type Tmp_vpnAvgAggregateOutputType = { + id: number | null + m: number | null +} + +export type Tmp_vpnSumAggregateOutputType = { + id: number | null + m: number | null +} + +export type Tmp_vpnMinAggregateOutputType = { + id: number | null + username: string | null + password: string | null + ad_done: boolean | null + tacacs: boolean | null + m: number | null +} + +export type Tmp_vpnMaxAggregateOutputType = { + id: number | null + username: string | null + password: string | null + ad_done: boolean | null + tacacs: boolean | null + m: number | null +} + +export type Tmp_vpnCountAggregateOutputType = { + id: number + username: number + password: number + ad_done: number + tacacs: number + m: number + _all: number +} + + +export type Tmp_vpnAvgAggregateInputType = { + id?: true + m?: true +} + +export type Tmp_vpnSumAggregateInputType = { + id?: true + m?: true +} + +export type Tmp_vpnMinAggregateInputType = { + id?: true + username?: true + password?: true + ad_done?: true + tacacs?: true + m?: true +} + +export type Tmp_vpnMaxAggregateInputType = { + id?: true + username?: true + password?: true + ad_done?: true + tacacs?: true + m?: true +} + +export type Tmp_vpnCountAggregateInputType = { + id?: true + username?: true + password?: true + ad_done?: true + tacacs?: true + m?: true + _all?: true +} + +export type Tmp_vpnAggregateArgs = { + /** + * Filter which tmp_vpn to aggregate. + */ + where?: Prisma.tmp_vpnWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tmp_vpns to fetch. + */ + orderBy?: Prisma.tmp_vpnOrderByWithRelationInput | Prisma.tmp_vpnOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.tmp_vpnWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tmp_vpns 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` tmp_vpns. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned tmp_vpns + **/ + _count?: true | Tmp_vpnCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Tmp_vpnAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Tmp_vpnSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Tmp_vpnMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Tmp_vpnMaxAggregateInputType +} + +export type GetTmp_vpnAggregateType = { + [P in keyof T & keyof AggregateTmp_vpn]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type tmp_vpnGroupByArgs = { + where?: Prisma.tmp_vpnWhereInput + orderBy?: Prisma.tmp_vpnOrderByWithAggregationInput | Prisma.tmp_vpnOrderByWithAggregationInput[] + by: Prisma.Tmp_vpnScalarFieldEnum[] | Prisma.Tmp_vpnScalarFieldEnum + having?: Prisma.tmp_vpnScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Tmp_vpnCountAggregateInputType | true + _avg?: Tmp_vpnAvgAggregateInputType + _sum?: Tmp_vpnSumAggregateInputType + _min?: Tmp_vpnMinAggregateInputType + _max?: Tmp_vpnMaxAggregateInputType +} + +export type Tmp_vpnGroupByOutputType = { + id: number + username: string + password: string + ad_done: boolean + tacacs: boolean + m: number + _count: Tmp_vpnCountAggregateOutputType | null + _avg: Tmp_vpnAvgAggregateOutputType | null + _sum: Tmp_vpnSumAggregateOutputType | null + _min: Tmp_vpnMinAggregateOutputType | null + _max: Tmp_vpnMaxAggregateOutputType | null +} + +type GetTmp_vpnGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Tmp_vpnGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type tmp_vpnWhereInput = { + AND?: Prisma.tmp_vpnWhereInput | Prisma.tmp_vpnWhereInput[] + OR?: Prisma.tmp_vpnWhereInput[] + NOT?: Prisma.tmp_vpnWhereInput | Prisma.tmp_vpnWhereInput[] + id?: Prisma.IntFilter<"tmp_vpn"> | number + username?: Prisma.StringFilter<"tmp_vpn"> | string + password?: Prisma.StringFilter<"tmp_vpn"> | string + ad_done?: Prisma.BoolFilter<"tmp_vpn"> | boolean + tacacs?: Prisma.BoolFilter<"tmp_vpn"> | boolean + m?: Prisma.IntFilter<"tmp_vpn"> | number +} + +export type tmp_vpnOrderByWithRelationInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + ad_done?: Prisma.SortOrder + tacacs?: Prisma.SortOrder + m?: Prisma.SortOrder + _relevance?: Prisma.tmp_vpnOrderByRelevanceInput +} + +export type tmp_vpnWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.tmp_vpnWhereInput | Prisma.tmp_vpnWhereInput[] + OR?: Prisma.tmp_vpnWhereInput[] + NOT?: Prisma.tmp_vpnWhereInput | Prisma.tmp_vpnWhereInput[] + username?: Prisma.StringFilter<"tmp_vpn"> | string + password?: Prisma.StringFilter<"tmp_vpn"> | string + ad_done?: Prisma.BoolFilter<"tmp_vpn"> | boolean + tacacs?: Prisma.BoolFilter<"tmp_vpn"> | boolean + m?: Prisma.IntFilter<"tmp_vpn"> | number +}, "id"> + +export type tmp_vpnOrderByWithAggregationInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + ad_done?: Prisma.SortOrder + tacacs?: Prisma.SortOrder + m?: Prisma.SortOrder + _count?: Prisma.tmp_vpnCountOrderByAggregateInput + _avg?: Prisma.tmp_vpnAvgOrderByAggregateInput + _max?: Prisma.tmp_vpnMaxOrderByAggregateInput + _min?: Prisma.tmp_vpnMinOrderByAggregateInput + _sum?: Prisma.tmp_vpnSumOrderByAggregateInput +} + +export type tmp_vpnScalarWhereWithAggregatesInput = { + AND?: Prisma.tmp_vpnScalarWhereWithAggregatesInput | Prisma.tmp_vpnScalarWhereWithAggregatesInput[] + OR?: Prisma.tmp_vpnScalarWhereWithAggregatesInput[] + NOT?: Prisma.tmp_vpnScalarWhereWithAggregatesInput | Prisma.tmp_vpnScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"tmp_vpn"> | number + username?: Prisma.StringWithAggregatesFilter<"tmp_vpn"> | string + password?: Prisma.StringWithAggregatesFilter<"tmp_vpn"> | string + ad_done?: Prisma.BoolWithAggregatesFilter<"tmp_vpn"> | boolean + tacacs?: Prisma.BoolWithAggregatesFilter<"tmp_vpn"> | boolean + m?: Prisma.IntWithAggregatesFilter<"tmp_vpn"> | number +} + +export type tmp_vpnCreateInput = { + id: number + username: string + password: string + ad_done?: boolean + tacacs?: boolean + m?: number +} + +export type tmp_vpnUncheckedCreateInput = { + id: number + username: string + password: string + ad_done?: boolean + tacacs?: boolean + m?: number +} + +export type tmp_vpnUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + ad_done?: Prisma.BoolFieldUpdateOperationsInput | boolean + tacacs?: Prisma.BoolFieldUpdateOperationsInput | boolean + m?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type tmp_vpnUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + ad_done?: Prisma.BoolFieldUpdateOperationsInput | boolean + tacacs?: Prisma.BoolFieldUpdateOperationsInput | boolean + m?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type tmp_vpnCreateManyInput = { + id: number + username: string + password: string + ad_done?: boolean + tacacs?: boolean + m?: number +} + +export type tmp_vpnUpdateManyMutationInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + ad_done?: Prisma.BoolFieldUpdateOperationsInput | boolean + tacacs?: Prisma.BoolFieldUpdateOperationsInput | boolean + m?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type tmp_vpnUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + username?: Prisma.StringFieldUpdateOperationsInput | string + password?: Prisma.StringFieldUpdateOperationsInput | string + ad_done?: Prisma.BoolFieldUpdateOperationsInput | boolean + tacacs?: Prisma.BoolFieldUpdateOperationsInput | boolean + m?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type tmp_vpnOrderByRelevanceInput = { + fields: Prisma.tmp_vpnOrderByRelevanceFieldEnum | Prisma.tmp_vpnOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type tmp_vpnCountOrderByAggregateInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + ad_done?: Prisma.SortOrder + tacacs?: Prisma.SortOrder + m?: Prisma.SortOrder +} + +export type tmp_vpnAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + m?: Prisma.SortOrder +} + +export type tmp_vpnMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + ad_done?: Prisma.SortOrder + tacacs?: Prisma.SortOrder + m?: Prisma.SortOrder +} + +export type tmp_vpnMinOrderByAggregateInput = { + id?: Prisma.SortOrder + username?: Prisma.SortOrder + password?: Prisma.SortOrder + ad_done?: Prisma.SortOrder + tacacs?: Prisma.SortOrder + m?: Prisma.SortOrder +} + +export type tmp_vpnSumOrderByAggregateInput = { + id?: Prisma.SortOrder + m?: Prisma.SortOrder +} + + + +export type tmp_vpnSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + username?: boolean + password?: boolean + ad_done?: boolean + tacacs?: boolean + m?: boolean +}, ExtArgs["result"]["tmp_vpn"]> + + + +export type tmp_vpnSelectScalar = { + id?: boolean + username?: boolean + password?: boolean + ad_done?: boolean + tacacs?: boolean + m?: boolean +} + +export type tmp_vpnOmit = runtime.Types.Extensions.GetOmit<"id" | "username" | "password" | "ad_done" | "tacacs" | "m", ExtArgs["result"]["tmp_vpn"]> + +export type $tmp_vpnPayload = { + name: "tmp_vpn" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + username: string + password: string + ad_done: boolean + tacacs: boolean + m: number + }, ExtArgs["result"]["tmp_vpn"]> + composites: {} +} + +export type tmp_vpnGetPayload = runtime.Types.Result.GetResult + +export type tmp_vpnCountArgs = + Omit & { + select?: Tmp_vpnCountAggregateInputType | true + } + +export interface tmp_vpnDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['tmp_vpn'], meta: { name: 'tmp_vpn' } } + /** + * Find zero or one Tmp_vpn that matches the filter. + * @param {tmp_vpnFindUniqueArgs} args - Arguments to find a Tmp_vpn + * @example + * // Get one Tmp_vpn + * const tmp_vpn = await prisma.tmp_vpn.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__tmp_vpnClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Tmp_vpn that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {tmp_vpnFindUniqueOrThrowArgs} args - Arguments to find a Tmp_vpn + * @example + * // Get one Tmp_vpn + * const tmp_vpn = await prisma.tmp_vpn.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__tmp_vpnClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tmp_vpn 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 {tmp_vpnFindFirstArgs} args - Arguments to find a Tmp_vpn + * @example + * // Get one Tmp_vpn + * const tmp_vpn = await prisma.tmp_vpn.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__tmp_vpnClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tmp_vpn 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 {tmp_vpnFindFirstOrThrowArgs} args - Arguments to find a Tmp_vpn + * @example + * // Get one Tmp_vpn + * const tmp_vpn = await prisma.tmp_vpn.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__tmp_vpnClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Tmp_vpns 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 {tmp_vpnFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Tmp_vpns + * const tmp_vpns = await prisma.tmp_vpn.findMany() + * + * // Get first 10 Tmp_vpns + * const tmp_vpns = await prisma.tmp_vpn.findMany({ take: 10 }) + * + * // Only select the `id` + * const tmp_vpnWithIdOnly = await prisma.tmp_vpn.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Tmp_vpn. + * @param {tmp_vpnCreateArgs} args - Arguments to create a Tmp_vpn. + * @example + * // Create one Tmp_vpn + * const Tmp_vpn = await prisma.tmp_vpn.create({ + * data: { + * // ... data to create a Tmp_vpn + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__tmp_vpnClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Tmp_vpns. + * @param {tmp_vpnCreateManyArgs} args - Arguments to create many Tmp_vpns. + * @example + * // Create many Tmp_vpns + * const tmp_vpn = await prisma.tmp_vpn.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Tmp_vpn. + * @param {tmp_vpnDeleteArgs} args - Arguments to delete one Tmp_vpn. + * @example + * // Delete one Tmp_vpn + * const Tmp_vpn = await prisma.tmp_vpn.delete({ + * where: { + * // ... filter to delete one Tmp_vpn + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__tmp_vpnClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Tmp_vpn. + * @param {tmp_vpnUpdateArgs} args - Arguments to update one Tmp_vpn. + * @example + * // Update one Tmp_vpn + * const tmp_vpn = await prisma.tmp_vpn.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__tmp_vpnClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Tmp_vpns. + * @param {tmp_vpnDeleteManyArgs} args - Arguments to filter Tmp_vpns to delete. + * @example + * // Delete a few Tmp_vpns + * const { count } = await prisma.tmp_vpn.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Tmp_vpns. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tmp_vpnUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Tmp_vpns + * const tmp_vpn = await prisma.tmp_vpn.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Tmp_vpn. + * @param {tmp_vpnUpsertArgs} args - Arguments to update or create a Tmp_vpn. + * @example + * // Update or create a Tmp_vpn + * const tmp_vpn = await prisma.tmp_vpn.upsert({ + * create: { + * // ... data to create a Tmp_vpn + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Tmp_vpn we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__tmp_vpnClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Tmp_vpns. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tmp_vpnCountArgs} args - Arguments to filter Tmp_vpns to count. + * @example + * // Count the number of Tmp_vpns + * const count = await prisma.tmp_vpn.count({ + * where: { + * // ... the filter for the Tmp_vpns 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 Tmp_vpn. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Tmp_vpnAggregateArgs} 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 Tmp_vpn. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tmp_vpnGroupByArgs} 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 tmp_vpnGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: tmp_vpnGroupByArgs['orderBy'] } + : { orderBy?: tmp_vpnGroupByArgs['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 ? GetTmp_vpnGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the tmp_vpn model + */ +readonly fields: tmp_vpnFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for tmp_vpn. + * 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__tmp_vpnClient 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 tmp_vpn model + */ +export interface tmp_vpnFieldRefs { + readonly id: Prisma.FieldRef<"tmp_vpn", 'Int'> + readonly username: Prisma.FieldRef<"tmp_vpn", 'String'> + readonly password: Prisma.FieldRef<"tmp_vpn", 'String'> + readonly ad_done: Prisma.FieldRef<"tmp_vpn", 'Boolean'> + readonly tacacs: Prisma.FieldRef<"tmp_vpn", 'Boolean'> + readonly m: Prisma.FieldRef<"tmp_vpn", 'Int'> +} + + +// Custom InputTypes +/** + * tmp_vpn findUnique + */ +export type tmp_vpnFindUniqueArgs = { + /** + * Select specific fields to fetch from the tmp_vpn + */ + select?: Prisma.tmp_vpnSelect | null + /** + * Omit specific fields from the tmp_vpn + */ + omit?: Prisma.tmp_vpnOmit | null + /** + * Filter, which tmp_vpn to fetch. + */ + where: Prisma.tmp_vpnWhereUniqueInput +} + +/** + * tmp_vpn findUniqueOrThrow + */ +export type tmp_vpnFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the tmp_vpn + */ + select?: Prisma.tmp_vpnSelect | null + /** + * Omit specific fields from the tmp_vpn + */ + omit?: Prisma.tmp_vpnOmit | null + /** + * Filter, which tmp_vpn to fetch. + */ + where: Prisma.tmp_vpnWhereUniqueInput +} + +/** + * tmp_vpn findFirst + */ +export type tmp_vpnFindFirstArgs = { + /** + * Select specific fields to fetch from the tmp_vpn + */ + select?: Prisma.tmp_vpnSelect | null + /** + * Omit specific fields from the tmp_vpn + */ + omit?: Prisma.tmp_vpnOmit | null + /** + * Filter, which tmp_vpn to fetch. + */ + where?: Prisma.tmp_vpnWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tmp_vpns to fetch. + */ + orderBy?: Prisma.tmp_vpnOrderByWithRelationInput | Prisma.tmp_vpnOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tmp_vpns. + */ + cursor?: Prisma.tmp_vpnWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tmp_vpns 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` tmp_vpns. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tmp_vpns. + */ + distinct?: Prisma.Tmp_vpnScalarFieldEnum | Prisma.Tmp_vpnScalarFieldEnum[] +} + +/** + * tmp_vpn findFirstOrThrow + */ +export type tmp_vpnFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the tmp_vpn + */ + select?: Prisma.tmp_vpnSelect | null + /** + * Omit specific fields from the tmp_vpn + */ + omit?: Prisma.tmp_vpnOmit | null + /** + * Filter, which tmp_vpn to fetch. + */ + where?: Prisma.tmp_vpnWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tmp_vpns to fetch. + */ + orderBy?: Prisma.tmp_vpnOrderByWithRelationInput | Prisma.tmp_vpnOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tmp_vpns. + */ + cursor?: Prisma.tmp_vpnWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tmp_vpns 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` tmp_vpns. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tmp_vpns. + */ + distinct?: Prisma.Tmp_vpnScalarFieldEnum | Prisma.Tmp_vpnScalarFieldEnum[] +} + +/** + * tmp_vpn findMany + */ +export type tmp_vpnFindManyArgs = { + /** + * Select specific fields to fetch from the tmp_vpn + */ + select?: Prisma.tmp_vpnSelect | null + /** + * Omit specific fields from the tmp_vpn + */ + omit?: Prisma.tmp_vpnOmit | null + /** + * Filter, which tmp_vpns to fetch. + */ + where?: Prisma.tmp_vpnWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tmp_vpns to fetch. + */ + orderBy?: Prisma.tmp_vpnOrderByWithRelationInput | Prisma.tmp_vpnOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing tmp_vpns. + */ + cursor?: Prisma.tmp_vpnWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tmp_vpns 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` tmp_vpns. + */ + skip?: number + distinct?: Prisma.Tmp_vpnScalarFieldEnum | Prisma.Tmp_vpnScalarFieldEnum[] +} + +/** + * tmp_vpn create + */ +export type tmp_vpnCreateArgs = { + /** + * Select specific fields to fetch from the tmp_vpn + */ + select?: Prisma.tmp_vpnSelect | null + /** + * Omit specific fields from the tmp_vpn + */ + omit?: Prisma.tmp_vpnOmit | null + /** + * The data needed to create a tmp_vpn. + */ + data: Prisma.XOR +} + +/** + * tmp_vpn createMany + */ +export type tmp_vpnCreateManyArgs = { + /** + * The data used to create many tmp_vpns. + */ + data: Prisma.tmp_vpnCreateManyInput | Prisma.tmp_vpnCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * tmp_vpn update + */ +export type tmp_vpnUpdateArgs = { + /** + * Select specific fields to fetch from the tmp_vpn + */ + select?: Prisma.tmp_vpnSelect | null + /** + * Omit specific fields from the tmp_vpn + */ + omit?: Prisma.tmp_vpnOmit | null + /** + * The data needed to update a tmp_vpn. + */ + data: Prisma.XOR + /** + * Choose, which tmp_vpn to update. + */ + where: Prisma.tmp_vpnWhereUniqueInput +} + +/** + * tmp_vpn updateMany + */ +export type tmp_vpnUpdateManyArgs = { + /** + * The data used to update tmp_vpns. + */ + data: Prisma.XOR + /** + * Filter which tmp_vpns to update + */ + where?: Prisma.tmp_vpnWhereInput + /** + * Limit how many tmp_vpns to update. + */ + limit?: number +} + +/** + * tmp_vpn upsert + */ +export type tmp_vpnUpsertArgs = { + /** + * Select specific fields to fetch from the tmp_vpn + */ + select?: Prisma.tmp_vpnSelect | null + /** + * Omit specific fields from the tmp_vpn + */ + omit?: Prisma.tmp_vpnOmit | null + /** + * The filter to search for the tmp_vpn to update in case it exists. + */ + where: Prisma.tmp_vpnWhereUniqueInput + /** + * In case the tmp_vpn found by the `where` argument doesn't exist, create a new tmp_vpn with this data. + */ + create: Prisma.XOR + /** + * In case the tmp_vpn was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * tmp_vpn delete + */ +export type tmp_vpnDeleteArgs = { + /** + * Select specific fields to fetch from the tmp_vpn + */ + select?: Prisma.tmp_vpnSelect | null + /** + * Omit specific fields from the tmp_vpn + */ + omit?: Prisma.tmp_vpnOmit | null + /** + * Filter which tmp_vpn to delete. + */ + where: Prisma.tmp_vpnWhereUniqueInput +} + +/** + * tmp_vpn deleteMany + */ +export type tmp_vpnDeleteManyArgs = { + /** + * Filter which tmp_vpns to delete + */ + where?: Prisma.tmp_vpnWhereInput + /** + * Limit how many tmp_vpns to delete. + */ + limit?: number +} + +/** + * tmp_vpn without action + */ +export type tmp_vpnDefaultArgs = { + /** + * Select specific fields to fetch from the tmp_vpn + */ + select?: Prisma.tmp_vpnSelect | null + /** + * Omit specific fields from the tmp_vpn + */ + omit?: Prisma.tmp_vpnOmit | null +} diff --git a/prisma/generated/mariadb/models/tv_mac.ts b/prisma/generated/mariadb/models/tv_mac.ts new file mode 100644 index 0000000..7474512 --- /dev/null +++ b/prisma/generated/mariadb/models/tv_mac.ts @@ -0,0 +1,1033 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `tv_mac` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model tv_mac + * + */ +export type tv_macModel = runtime.Types.Result.DefaultSelection + +export type AggregateTv_mac = { + _count: Tv_macCountAggregateOutputType | null + _avg: Tv_macAvgAggregateOutputType | null + _sum: Tv_macSumAggregateOutputType | null + _min: Tv_macMinAggregateOutputType | null + _max: Tv_macMaxAggregateOutputType | null +} + +export type Tv_macAvgAggregateOutputType = { + id: number | null + service_id: number | null +} + +export type Tv_macSumAggregateOutputType = { + id: number | null + service_id: number | null +} + +export type Tv_macMinAggregateOutputType = { + id: number | null + service_id: number | null + mac: string | null +} + +export type Tv_macMaxAggregateOutputType = { + id: number | null + service_id: number | null + mac: string | null +} + +export type Tv_macCountAggregateOutputType = { + id: number + service_id: number + mac: number + _all: number +} + + +export type Tv_macAvgAggregateInputType = { + id?: true + service_id?: true +} + +export type Tv_macSumAggregateInputType = { + id?: true + service_id?: true +} + +export type Tv_macMinAggregateInputType = { + id?: true + service_id?: true + mac?: true +} + +export type Tv_macMaxAggregateInputType = { + id?: true + service_id?: true + mac?: true +} + +export type Tv_macCountAggregateInputType = { + id?: true + service_id?: true + mac?: true + _all?: true +} + +export type Tv_macAggregateArgs = { + /** + * Filter which tv_mac to aggregate. + */ + where?: Prisma.tv_macWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tv_macs to fetch. + */ + orderBy?: Prisma.tv_macOrderByWithRelationInput | Prisma.tv_macOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.tv_macWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tv_macs 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` tv_macs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned tv_macs + **/ + _count?: true | Tv_macCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: Tv_macAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: Tv_macSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: Tv_macMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: Tv_macMaxAggregateInputType +} + +export type GetTv_macAggregateType = { + [P in keyof T & keyof AggregateTv_mac]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type tv_macGroupByArgs = { + where?: Prisma.tv_macWhereInput + orderBy?: Prisma.tv_macOrderByWithAggregationInput | Prisma.tv_macOrderByWithAggregationInput[] + by: Prisma.Tv_macScalarFieldEnum[] | Prisma.Tv_macScalarFieldEnum + having?: Prisma.tv_macScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: Tv_macCountAggregateInputType | true + _avg?: Tv_macAvgAggregateInputType + _sum?: Tv_macSumAggregateInputType + _min?: Tv_macMinAggregateInputType + _max?: Tv_macMaxAggregateInputType +} + +export type Tv_macGroupByOutputType = { + id: number + service_id: number + mac: string + _count: Tv_macCountAggregateOutputType | null + _avg: Tv_macAvgAggregateOutputType | null + _sum: Tv_macSumAggregateOutputType | null + _min: Tv_macMinAggregateOutputType | null + _max: Tv_macMaxAggregateOutputType | null +} + +type GetTv_macGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof Tv_macGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type tv_macWhereInput = { + AND?: Prisma.tv_macWhereInput | Prisma.tv_macWhereInput[] + OR?: Prisma.tv_macWhereInput[] + NOT?: Prisma.tv_macWhereInput | Prisma.tv_macWhereInput[] + id?: Prisma.IntFilter<"tv_mac"> | number + service_id?: Prisma.IntFilter<"tv_mac"> | number + mac?: Prisma.StringFilter<"tv_mac"> | string +} + +export type tv_macOrderByWithRelationInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + mac?: Prisma.SortOrder + _relevance?: Prisma.tv_macOrderByRelevanceInput +} + +export type tv_macWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.tv_macWhereInput | Prisma.tv_macWhereInput[] + OR?: Prisma.tv_macWhereInput[] + NOT?: Prisma.tv_macWhereInput | Prisma.tv_macWhereInput[] + service_id?: Prisma.IntFilter<"tv_mac"> | number + mac?: Prisma.StringFilter<"tv_mac"> | string +}, "id"> + +export type tv_macOrderByWithAggregationInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + mac?: Prisma.SortOrder + _count?: Prisma.tv_macCountOrderByAggregateInput + _avg?: Prisma.tv_macAvgOrderByAggregateInput + _max?: Prisma.tv_macMaxOrderByAggregateInput + _min?: Prisma.tv_macMinOrderByAggregateInput + _sum?: Prisma.tv_macSumOrderByAggregateInput +} + +export type tv_macScalarWhereWithAggregatesInput = { + AND?: Prisma.tv_macScalarWhereWithAggregatesInput | Prisma.tv_macScalarWhereWithAggregatesInput[] + OR?: Prisma.tv_macScalarWhereWithAggregatesInput[] + NOT?: Prisma.tv_macScalarWhereWithAggregatesInput | Prisma.tv_macScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"tv_mac"> | number + service_id?: Prisma.IntWithAggregatesFilter<"tv_mac"> | number + mac?: Prisma.StringWithAggregatesFilter<"tv_mac"> | string +} + +export type tv_macCreateInput = { + service_id: number + mac: string +} + +export type tv_macUncheckedCreateInput = { + id?: number + service_id: number + mac: string +} + +export type tv_macUpdateInput = { + service_id?: Prisma.IntFieldUpdateOperationsInput | number + mac?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tv_macUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + mac?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tv_macCreateManyInput = { + id?: number + service_id: number + mac: string +} + +export type tv_macUpdateManyMutationInput = { + service_id?: Prisma.IntFieldUpdateOperationsInput | number + mac?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tv_macUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + service_id?: Prisma.IntFieldUpdateOperationsInput | number + mac?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type tv_macOrderByRelevanceInput = { + fields: Prisma.tv_macOrderByRelevanceFieldEnum | Prisma.tv_macOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type tv_macCountOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + mac?: Prisma.SortOrder +} + +export type tv_macAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder +} + +export type tv_macMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + mac?: Prisma.SortOrder +} + +export type tv_macMinOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder + mac?: Prisma.SortOrder +} + +export type tv_macSumOrderByAggregateInput = { + id?: Prisma.SortOrder + service_id?: Prisma.SortOrder +} + + + +export type tv_macSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + service_id?: boolean + mac?: boolean +}, ExtArgs["result"]["tv_mac"]> + + + +export type tv_macSelectScalar = { + id?: boolean + service_id?: boolean + mac?: boolean +} + +export type tv_macOmit = runtime.Types.Extensions.GetOmit<"id" | "service_id" | "mac", ExtArgs["result"]["tv_mac"]> + +export type $tv_macPayload = { + name: "tv_mac" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + service_id: number + mac: string + }, ExtArgs["result"]["tv_mac"]> + composites: {} +} + +export type tv_macGetPayload = runtime.Types.Result.GetResult + +export type tv_macCountArgs = + Omit & { + select?: Tv_macCountAggregateInputType | true + } + +export interface tv_macDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['tv_mac'], meta: { name: 'tv_mac' } } + /** + * Find zero or one Tv_mac that matches the filter. + * @param {tv_macFindUniqueArgs} args - Arguments to find a Tv_mac + * @example + * // Get one Tv_mac + * const tv_mac = await prisma.tv_mac.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__tv_macClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Tv_mac that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {tv_macFindUniqueOrThrowArgs} args - Arguments to find a Tv_mac + * @example + * // Get one Tv_mac + * const tv_mac = await prisma.tv_mac.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__tv_macClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tv_mac 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 {tv_macFindFirstArgs} args - Arguments to find a Tv_mac + * @example + * // Get one Tv_mac + * const tv_mac = await prisma.tv_mac.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__tv_macClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Tv_mac 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 {tv_macFindFirstOrThrowArgs} args - Arguments to find a Tv_mac + * @example + * // Get one Tv_mac + * const tv_mac = await prisma.tv_mac.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__tv_macClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Tv_macs 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 {tv_macFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Tv_macs + * const tv_macs = await prisma.tv_mac.findMany() + * + * // Get first 10 Tv_macs + * const tv_macs = await prisma.tv_mac.findMany({ take: 10 }) + * + * // Only select the `id` + * const tv_macWithIdOnly = await prisma.tv_mac.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Tv_mac. + * @param {tv_macCreateArgs} args - Arguments to create a Tv_mac. + * @example + * // Create one Tv_mac + * const Tv_mac = await prisma.tv_mac.create({ + * data: { + * // ... data to create a Tv_mac + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__tv_macClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Tv_macs. + * @param {tv_macCreateManyArgs} args - Arguments to create many Tv_macs. + * @example + * // Create many Tv_macs + * const tv_mac = await prisma.tv_mac.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Tv_mac. + * @param {tv_macDeleteArgs} args - Arguments to delete one Tv_mac. + * @example + * // Delete one Tv_mac + * const Tv_mac = await prisma.tv_mac.delete({ + * where: { + * // ... filter to delete one Tv_mac + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__tv_macClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Tv_mac. + * @param {tv_macUpdateArgs} args - Arguments to update one Tv_mac. + * @example + * // Update one Tv_mac + * const tv_mac = await prisma.tv_mac.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__tv_macClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Tv_macs. + * @param {tv_macDeleteManyArgs} args - Arguments to filter Tv_macs to delete. + * @example + * // Delete a few Tv_macs + * const { count } = await prisma.tv_mac.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Tv_macs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tv_macUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Tv_macs + * const tv_mac = await prisma.tv_mac.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Tv_mac. + * @param {tv_macUpsertArgs} args - Arguments to update or create a Tv_mac. + * @example + * // Update or create a Tv_mac + * const tv_mac = await prisma.tv_mac.upsert({ + * create: { + * // ... data to create a Tv_mac + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Tv_mac we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__tv_macClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Tv_macs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tv_macCountArgs} args - Arguments to filter Tv_macs to count. + * @example + * // Count the number of Tv_macs + * const count = await prisma.tv_mac.count({ + * where: { + * // ... the filter for the Tv_macs 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 Tv_mac. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {Tv_macAggregateArgs} 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 Tv_mac. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {tv_macGroupByArgs} 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 tv_macGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: tv_macGroupByArgs['orderBy'] } + : { orderBy?: tv_macGroupByArgs['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 ? GetTv_macGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the tv_mac model + */ +readonly fields: tv_macFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for tv_mac. + * 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__tv_macClient 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 tv_mac model + */ +export interface tv_macFieldRefs { + readonly id: Prisma.FieldRef<"tv_mac", 'Int'> + readonly service_id: Prisma.FieldRef<"tv_mac", 'Int'> + readonly mac: Prisma.FieldRef<"tv_mac", 'String'> +} + + +// Custom InputTypes +/** + * tv_mac findUnique + */ +export type tv_macFindUniqueArgs = { + /** + * Select specific fields to fetch from the tv_mac + */ + select?: Prisma.tv_macSelect | null + /** + * Omit specific fields from the tv_mac + */ + omit?: Prisma.tv_macOmit | null + /** + * Filter, which tv_mac to fetch. + */ + where: Prisma.tv_macWhereUniqueInput +} + +/** + * tv_mac findUniqueOrThrow + */ +export type tv_macFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the tv_mac + */ + select?: Prisma.tv_macSelect | null + /** + * Omit specific fields from the tv_mac + */ + omit?: Prisma.tv_macOmit | null + /** + * Filter, which tv_mac to fetch. + */ + where: Prisma.tv_macWhereUniqueInput +} + +/** + * tv_mac findFirst + */ +export type tv_macFindFirstArgs = { + /** + * Select specific fields to fetch from the tv_mac + */ + select?: Prisma.tv_macSelect | null + /** + * Omit specific fields from the tv_mac + */ + omit?: Prisma.tv_macOmit | null + /** + * Filter, which tv_mac to fetch. + */ + where?: Prisma.tv_macWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tv_macs to fetch. + */ + orderBy?: Prisma.tv_macOrderByWithRelationInput | Prisma.tv_macOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tv_macs. + */ + cursor?: Prisma.tv_macWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tv_macs 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` tv_macs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tv_macs. + */ + distinct?: Prisma.Tv_macScalarFieldEnum | Prisma.Tv_macScalarFieldEnum[] +} + +/** + * tv_mac findFirstOrThrow + */ +export type tv_macFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the tv_mac + */ + select?: Prisma.tv_macSelect | null + /** + * Omit specific fields from the tv_mac + */ + omit?: Prisma.tv_macOmit | null + /** + * Filter, which tv_mac to fetch. + */ + where?: Prisma.tv_macWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tv_macs to fetch. + */ + orderBy?: Prisma.tv_macOrderByWithRelationInput | Prisma.tv_macOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for tv_macs. + */ + cursor?: Prisma.tv_macWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tv_macs 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` tv_macs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of tv_macs. + */ + distinct?: Prisma.Tv_macScalarFieldEnum | Prisma.Tv_macScalarFieldEnum[] +} + +/** + * tv_mac findMany + */ +export type tv_macFindManyArgs = { + /** + * Select specific fields to fetch from the tv_mac + */ + select?: Prisma.tv_macSelect | null + /** + * Omit specific fields from the tv_mac + */ + omit?: Prisma.tv_macOmit | null + /** + * Filter, which tv_macs to fetch. + */ + where?: Prisma.tv_macWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of tv_macs to fetch. + */ + orderBy?: Prisma.tv_macOrderByWithRelationInput | Prisma.tv_macOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing tv_macs. + */ + cursor?: Prisma.tv_macWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` tv_macs 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` tv_macs. + */ + skip?: number + distinct?: Prisma.Tv_macScalarFieldEnum | Prisma.Tv_macScalarFieldEnum[] +} + +/** + * tv_mac create + */ +export type tv_macCreateArgs = { + /** + * Select specific fields to fetch from the tv_mac + */ + select?: Prisma.tv_macSelect | null + /** + * Omit specific fields from the tv_mac + */ + omit?: Prisma.tv_macOmit | null + /** + * The data needed to create a tv_mac. + */ + data: Prisma.XOR +} + +/** + * tv_mac createMany + */ +export type tv_macCreateManyArgs = { + /** + * The data used to create many tv_macs. + */ + data: Prisma.tv_macCreateManyInput | Prisma.tv_macCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * tv_mac update + */ +export type tv_macUpdateArgs = { + /** + * Select specific fields to fetch from the tv_mac + */ + select?: Prisma.tv_macSelect | null + /** + * Omit specific fields from the tv_mac + */ + omit?: Prisma.tv_macOmit | null + /** + * The data needed to update a tv_mac. + */ + data: Prisma.XOR + /** + * Choose, which tv_mac to update. + */ + where: Prisma.tv_macWhereUniqueInput +} + +/** + * tv_mac updateMany + */ +export type tv_macUpdateManyArgs = { + /** + * The data used to update tv_macs. + */ + data: Prisma.XOR + /** + * Filter which tv_macs to update + */ + where?: Prisma.tv_macWhereInput + /** + * Limit how many tv_macs to update. + */ + limit?: number +} + +/** + * tv_mac upsert + */ +export type tv_macUpsertArgs = { + /** + * Select specific fields to fetch from the tv_mac + */ + select?: Prisma.tv_macSelect | null + /** + * Omit specific fields from the tv_mac + */ + omit?: Prisma.tv_macOmit | null + /** + * The filter to search for the tv_mac to update in case it exists. + */ + where: Prisma.tv_macWhereUniqueInput + /** + * In case the tv_mac found by the `where` argument doesn't exist, create a new tv_mac with this data. + */ + create: Prisma.XOR + /** + * In case the tv_mac was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * tv_mac delete + */ +export type tv_macDeleteArgs = { + /** + * Select specific fields to fetch from the tv_mac + */ + select?: Prisma.tv_macSelect | null + /** + * Omit specific fields from the tv_mac + */ + omit?: Prisma.tv_macOmit | null + /** + * Filter which tv_mac to delete. + */ + where: Prisma.tv_macWhereUniqueInput +} + +/** + * tv_mac deleteMany + */ +export type tv_macDeleteManyArgs = { + /** + * Filter which tv_macs to delete + */ + where?: Prisma.tv_macWhereInput + /** + * Limit how many tv_macs to delete. + */ + limit?: number +} + +/** + * tv_mac without action + */ +export type tv_macDefaultArgs = { + /** + * Select specific fields to fetch from the tv_mac + */ + select?: Prisma.tv_macSelect | null + /** + * Omit specific fields from the tv_mac + */ + omit?: Prisma.tv_macOmit | null +} diff --git a/prisma/generated/mariadb/models/voicemeup.ts b/prisma/generated/mariadb/models/voicemeup.ts new file mode 100644 index 0000000..83aa7e8 --- /dev/null +++ b/prisma/generated/mariadb/models/voicemeup.ts @@ -0,0 +1,1233 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `voicemeup` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model voicemeup + * + */ +export type voicemeupModel = runtime.Types.Result.DefaultSelection + +export type AggregateVoicemeup = { + _count: VoicemeupCountAggregateOutputType | null + _avg: VoicemeupAvgAggregateOutputType | null + _sum: VoicemeupSumAggregateOutputType | null + _min: VoicemeupMinAggregateOutputType | null + _max: VoicemeupMaxAggregateOutputType | null +} + +export type VoicemeupAvgAggregateOutputType = { + id: number | null + account_id: number | null + date: number | null + duration: number | null + amount: number | null +} + +export type VoicemeupSumAggregateOutputType = { + id: number | null + account_id: number | null + date: bigint | null + duration: number | null + amount: number | null +} + +export type VoicemeupMinAggregateOutputType = { + id: number | null + account_id: number | null + date: bigint | null + duration: number | null + destination: string | null + country: string | null + state: string | null + district: string | null + amount: number | null + uuid: string | null +} + +export type VoicemeupMaxAggregateOutputType = { + id: number | null + account_id: number | null + date: bigint | null + duration: number | null + destination: string | null + country: string | null + state: string | null + district: string | null + amount: number | null + uuid: string | null +} + +export type VoicemeupCountAggregateOutputType = { + id: number + account_id: number + date: number + duration: number + destination: number + country: number + state: number + district: number + amount: number + uuid: number + _all: number +} + + +export type VoicemeupAvgAggregateInputType = { + id?: true + account_id?: true + date?: true + duration?: true + amount?: true +} + +export type VoicemeupSumAggregateInputType = { + id?: true + account_id?: true + date?: true + duration?: true + amount?: true +} + +export type VoicemeupMinAggregateInputType = { + id?: true + account_id?: true + date?: true + duration?: true + destination?: true + country?: true + state?: true + district?: true + amount?: true + uuid?: true +} + +export type VoicemeupMaxAggregateInputType = { + id?: true + account_id?: true + date?: true + duration?: true + destination?: true + country?: true + state?: true + district?: true + amount?: true + uuid?: true +} + +export type VoicemeupCountAggregateInputType = { + id?: true + account_id?: true + date?: true + duration?: true + destination?: true + country?: true + state?: true + district?: true + amount?: true + uuid?: true + _all?: true +} + +export type VoicemeupAggregateArgs = { + /** + * Filter which voicemeup to aggregate. + */ + where?: Prisma.voicemeupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of voicemeups to fetch. + */ + orderBy?: Prisma.voicemeupOrderByWithRelationInput | Prisma.voicemeupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.voicemeupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` voicemeups 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` voicemeups. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned voicemeups + **/ + _count?: true | VoicemeupCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: VoicemeupAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: VoicemeupSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: VoicemeupMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: VoicemeupMaxAggregateInputType +} + +export type GetVoicemeupAggregateType = { + [P in keyof T & keyof AggregateVoicemeup]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type voicemeupGroupByArgs = { + where?: Prisma.voicemeupWhereInput + orderBy?: Prisma.voicemeupOrderByWithAggregationInput | Prisma.voicemeupOrderByWithAggregationInput[] + by: Prisma.VoicemeupScalarFieldEnum[] | Prisma.VoicemeupScalarFieldEnum + having?: Prisma.voicemeupScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: VoicemeupCountAggregateInputType | true + _avg?: VoicemeupAvgAggregateInputType + _sum?: VoicemeupSumAggregateInputType + _min?: VoicemeupMinAggregateInputType + _max?: VoicemeupMaxAggregateInputType +} + +export type VoicemeupGroupByOutputType = { + id: number + account_id: number + date: bigint + duration: number + destination: string + country: string + state: string | null + district: string | null + amount: number + uuid: string | null + _count: VoicemeupCountAggregateOutputType | null + _avg: VoicemeupAvgAggregateOutputType | null + _sum: VoicemeupSumAggregateOutputType | null + _min: VoicemeupMinAggregateOutputType | null + _max: VoicemeupMaxAggregateOutputType | null +} + +type GetVoicemeupGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof VoicemeupGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type voicemeupWhereInput = { + AND?: Prisma.voicemeupWhereInput | Prisma.voicemeupWhereInput[] + OR?: Prisma.voicemeupWhereInput[] + NOT?: Prisma.voicemeupWhereInput | Prisma.voicemeupWhereInput[] + id?: Prisma.IntFilter<"voicemeup"> | number + account_id?: Prisma.IntFilter<"voicemeup"> | number + date?: Prisma.BigIntFilter<"voicemeup"> | bigint | number + duration?: Prisma.IntFilter<"voicemeup"> | number + destination?: Prisma.StringFilter<"voicemeup"> | string + country?: Prisma.StringFilter<"voicemeup"> | string + state?: Prisma.StringNullableFilter<"voicemeup"> | string | null + district?: Prisma.StringNullableFilter<"voicemeup"> | string | null + amount?: Prisma.FloatFilter<"voicemeup"> | number + uuid?: Prisma.StringNullableFilter<"voicemeup"> | string | null +} + +export type voicemeupOrderByWithRelationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + duration?: Prisma.SortOrder + destination?: Prisma.SortOrder + country?: Prisma.SortOrder + state?: Prisma.SortOrderInput | Prisma.SortOrder + district?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrder + uuid?: Prisma.SortOrderInput | Prisma.SortOrder + _relevance?: Prisma.voicemeupOrderByRelevanceInput +} + +export type voicemeupWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.voicemeupWhereInput | Prisma.voicemeupWhereInput[] + OR?: Prisma.voicemeupWhereInput[] + NOT?: Prisma.voicemeupWhereInput | Prisma.voicemeupWhereInput[] + account_id?: Prisma.IntFilter<"voicemeup"> | number + date?: Prisma.BigIntFilter<"voicemeup"> | bigint | number + duration?: Prisma.IntFilter<"voicemeup"> | number + destination?: Prisma.StringFilter<"voicemeup"> | string + country?: Prisma.StringFilter<"voicemeup"> | string + state?: Prisma.StringNullableFilter<"voicemeup"> | string | null + district?: Prisma.StringNullableFilter<"voicemeup"> | string | null + amount?: Prisma.FloatFilter<"voicemeup"> | number + uuid?: Prisma.StringNullableFilter<"voicemeup"> | string | null +}, "id"> + +export type voicemeupOrderByWithAggregationInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + duration?: Prisma.SortOrder + destination?: Prisma.SortOrder + country?: Prisma.SortOrder + state?: Prisma.SortOrderInput | Prisma.SortOrder + district?: Prisma.SortOrderInput | Prisma.SortOrder + amount?: Prisma.SortOrder + uuid?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.voicemeupCountOrderByAggregateInput + _avg?: Prisma.voicemeupAvgOrderByAggregateInput + _max?: Prisma.voicemeupMaxOrderByAggregateInput + _min?: Prisma.voicemeupMinOrderByAggregateInput + _sum?: Prisma.voicemeupSumOrderByAggregateInput +} + +export type voicemeupScalarWhereWithAggregatesInput = { + AND?: Prisma.voicemeupScalarWhereWithAggregatesInput | Prisma.voicemeupScalarWhereWithAggregatesInput[] + OR?: Prisma.voicemeupScalarWhereWithAggregatesInput[] + NOT?: Prisma.voicemeupScalarWhereWithAggregatesInput | Prisma.voicemeupScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"voicemeup"> | number + account_id?: Prisma.IntWithAggregatesFilter<"voicemeup"> | number + date?: Prisma.BigIntWithAggregatesFilter<"voicemeup"> | bigint | number + duration?: Prisma.IntWithAggregatesFilter<"voicemeup"> | number + destination?: Prisma.StringWithAggregatesFilter<"voicemeup"> | string + country?: Prisma.StringWithAggregatesFilter<"voicemeup"> | string + state?: Prisma.StringNullableWithAggregatesFilter<"voicemeup"> | string | null + district?: Prisma.StringNullableWithAggregatesFilter<"voicemeup"> | string | null + amount?: Prisma.FloatWithAggregatesFilter<"voicemeup"> | number + uuid?: Prisma.StringNullableWithAggregatesFilter<"voicemeup"> | string | null +} + +export type voicemeupCreateInput = { + account_id: number + date: bigint | number + duration: number + destination: string + country: string + state?: string | null + district?: string | null + amount: number + uuid?: string | null +} + +export type voicemeupUncheckedCreateInput = { + id?: number + account_id: number + date: bigint | number + duration: number + destination: string + country: string + state?: string | null + district?: string | null + amount: number + uuid?: string | null +} + +export type voicemeupUpdateInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + duration?: Prisma.IntFieldUpdateOperationsInput | number + destination?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + district?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + amount?: Prisma.FloatFieldUpdateOperationsInput | number + uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type voicemeupUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + duration?: Prisma.IntFieldUpdateOperationsInput | number + destination?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + district?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + amount?: Prisma.FloatFieldUpdateOperationsInput | number + uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type voicemeupCreateManyInput = { + id?: number + account_id: number + date: bigint | number + duration: number + destination: string + country: string + state?: string | null + district?: string | null + amount: number + uuid?: string | null +} + +export type voicemeupUpdateManyMutationInput = { + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + duration?: Prisma.IntFieldUpdateOperationsInput | number + destination?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + district?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + amount?: Prisma.FloatFieldUpdateOperationsInput | number + uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type voicemeupUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + account_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number + duration?: Prisma.IntFieldUpdateOperationsInput | number + destination?: Prisma.StringFieldUpdateOperationsInput | string + country?: Prisma.StringFieldUpdateOperationsInput | string + state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + district?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + amount?: Prisma.FloatFieldUpdateOperationsInput | number + uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type voicemeupOrderByRelevanceInput = { + fields: Prisma.voicemeupOrderByRelevanceFieldEnum | Prisma.voicemeupOrderByRelevanceFieldEnum[] + sort: Prisma.SortOrder + search: string +} + +export type voicemeupCountOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + duration?: Prisma.SortOrder + destination?: Prisma.SortOrder + country?: Prisma.SortOrder + state?: Prisma.SortOrder + district?: Prisma.SortOrder + amount?: Prisma.SortOrder + uuid?: Prisma.SortOrder +} + +export type voicemeupAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + duration?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + +export type voicemeupMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + duration?: Prisma.SortOrder + destination?: Prisma.SortOrder + country?: Prisma.SortOrder + state?: Prisma.SortOrder + district?: Prisma.SortOrder + amount?: Prisma.SortOrder + uuid?: Prisma.SortOrder +} + +export type voicemeupMinOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + duration?: Prisma.SortOrder + destination?: Prisma.SortOrder + country?: Prisma.SortOrder + state?: Prisma.SortOrder + district?: Prisma.SortOrder + amount?: Prisma.SortOrder + uuid?: Prisma.SortOrder +} + +export type voicemeupSumOrderByAggregateInput = { + id?: Prisma.SortOrder + account_id?: Prisma.SortOrder + date?: Prisma.SortOrder + duration?: Prisma.SortOrder + amount?: Prisma.SortOrder +} + + + +export type voicemeupSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + account_id?: boolean + date?: boolean + duration?: boolean + destination?: boolean + country?: boolean + state?: boolean + district?: boolean + amount?: boolean + uuid?: boolean +}, ExtArgs["result"]["voicemeup"]> + + + +export type voicemeupSelectScalar = { + id?: boolean + account_id?: boolean + date?: boolean + duration?: boolean + destination?: boolean + country?: boolean + state?: boolean + district?: boolean + amount?: boolean + uuid?: boolean +} + +export type voicemeupOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date" | "duration" | "destination" | "country" | "state" | "district" | "amount" | "uuid", ExtArgs["result"]["voicemeup"]> + +export type $voicemeupPayload = { + name: "voicemeup" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + account_id: number + date: bigint + duration: number + destination: string + country: string + state: string | null + district: string | null + amount: number + uuid: string | null + }, ExtArgs["result"]["voicemeup"]> + composites: {} +} + +export type voicemeupGetPayload = runtime.Types.Result.GetResult + +export type voicemeupCountArgs = + Omit & { + select?: VoicemeupCountAggregateInputType | true + } + +export interface voicemeupDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['voicemeup'], meta: { name: 'voicemeup' } } + /** + * Find zero or one Voicemeup that matches the filter. + * @param {voicemeupFindUniqueArgs} args - Arguments to find a Voicemeup + * @example + * // Get one Voicemeup + * const voicemeup = await prisma.voicemeup.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__voicemeupClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Voicemeup that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {voicemeupFindUniqueOrThrowArgs} args - Arguments to find a Voicemeup + * @example + * // Get one Voicemeup + * const voicemeup = await prisma.voicemeup.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__voicemeupClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Voicemeup 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 {voicemeupFindFirstArgs} args - Arguments to find a Voicemeup + * @example + * // Get one Voicemeup + * const voicemeup = await prisma.voicemeup.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__voicemeupClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Voicemeup 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 {voicemeupFindFirstOrThrowArgs} args - Arguments to find a Voicemeup + * @example + * // Get one Voicemeup + * const voicemeup = await prisma.voicemeup.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__voicemeupClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Voicemeups 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 {voicemeupFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Voicemeups + * const voicemeups = await prisma.voicemeup.findMany() + * + * // Get first 10 Voicemeups + * const voicemeups = await prisma.voicemeup.findMany({ take: 10 }) + * + * // Only select the `id` + * const voicemeupWithIdOnly = await prisma.voicemeup.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Voicemeup. + * @param {voicemeupCreateArgs} args - Arguments to create a Voicemeup. + * @example + * // Create one Voicemeup + * const Voicemeup = await prisma.voicemeup.create({ + * data: { + * // ... data to create a Voicemeup + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__voicemeupClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Voicemeups. + * @param {voicemeupCreateManyArgs} args - Arguments to create many Voicemeups. + * @example + * // Create many Voicemeups + * const voicemeup = await prisma.voicemeup.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Delete a Voicemeup. + * @param {voicemeupDeleteArgs} args - Arguments to delete one Voicemeup. + * @example + * // Delete one Voicemeup + * const Voicemeup = await prisma.voicemeup.delete({ + * where: { + * // ... filter to delete one Voicemeup + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__voicemeupClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Voicemeup. + * @param {voicemeupUpdateArgs} args - Arguments to update one Voicemeup. + * @example + * // Update one Voicemeup + * const voicemeup = await prisma.voicemeup.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__voicemeupClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Voicemeups. + * @param {voicemeupDeleteManyArgs} args - Arguments to filter Voicemeups to delete. + * @example + * // Delete a few Voicemeups + * const { count } = await prisma.voicemeup.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Voicemeups. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {voicemeupUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Voicemeups + * const voicemeup = await prisma.voicemeup.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create or update one Voicemeup. + * @param {voicemeupUpsertArgs} args - Arguments to update or create a Voicemeup. + * @example + * // Update or create a Voicemeup + * const voicemeup = await prisma.voicemeup.upsert({ + * create: { + * // ... data to create a Voicemeup + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Voicemeup we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__voicemeupClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Voicemeups. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {voicemeupCountArgs} args - Arguments to filter Voicemeups to count. + * @example + * // Count the number of Voicemeups + * const count = await prisma.voicemeup.count({ + * where: { + * // ... the filter for the Voicemeups 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 Voicemeup. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {VoicemeupAggregateArgs} 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 Voicemeup. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {voicemeupGroupByArgs} 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 voicemeupGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: voicemeupGroupByArgs['orderBy'] } + : { orderBy?: voicemeupGroupByArgs['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 ? GetVoicemeupGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the voicemeup model + */ +readonly fields: voicemeupFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for voicemeup. + * 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__voicemeupClient 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 voicemeup model + */ +export interface voicemeupFieldRefs { + readonly id: Prisma.FieldRef<"voicemeup", 'Int'> + readonly account_id: Prisma.FieldRef<"voicemeup", 'Int'> + readonly date: Prisma.FieldRef<"voicemeup", 'BigInt'> + readonly duration: Prisma.FieldRef<"voicemeup", 'Int'> + readonly destination: Prisma.FieldRef<"voicemeup", 'String'> + readonly country: Prisma.FieldRef<"voicemeup", 'String'> + readonly state: Prisma.FieldRef<"voicemeup", 'String'> + readonly district: Prisma.FieldRef<"voicemeup", 'String'> + readonly amount: Prisma.FieldRef<"voicemeup", 'Float'> + readonly uuid: Prisma.FieldRef<"voicemeup", 'String'> +} + + +// Custom InputTypes +/** + * voicemeup findUnique + */ +export type voicemeupFindUniqueArgs = { + /** + * Select specific fields to fetch from the voicemeup + */ + select?: Prisma.voicemeupSelect | null + /** + * Omit specific fields from the voicemeup + */ + omit?: Prisma.voicemeupOmit | null + /** + * Filter, which voicemeup to fetch. + */ + where: Prisma.voicemeupWhereUniqueInput +} + +/** + * voicemeup findUniqueOrThrow + */ +export type voicemeupFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the voicemeup + */ + select?: Prisma.voicemeupSelect | null + /** + * Omit specific fields from the voicemeup + */ + omit?: Prisma.voicemeupOmit | null + /** + * Filter, which voicemeup to fetch. + */ + where: Prisma.voicemeupWhereUniqueInput +} + +/** + * voicemeup findFirst + */ +export type voicemeupFindFirstArgs = { + /** + * Select specific fields to fetch from the voicemeup + */ + select?: Prisma.voicemeupSelect | null + /** + * Omit specific fields from the voicemeup + */ + omit?: Prisma.voicemeupOmit | null + /** + * Filter, which voicemeup to fetch. + */ + where?: Prisma.voicemeupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of voicemeups to fetch. + */ + orderBy?: Prisma.voicemeupOrderByWithRelationInput | Prisma.voicemeupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for voicemeups. + */ + cursor?: Prisma.voicemeupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` voicemeups 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` voicemeups. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of voicemeups. + */ + distinct?: Prisma.VoicemeupScalarFieldEnum | Prisma.VoicemeupScalarFieldEnum[] +} + +/** + * voicemeup findFirstOrThrow + */ +export type voicemeupFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the voicemeup + */ + select?: Prisma.voicemeupSelect | null + /** + * Omit specific fields from the voicemeup + */ + omit?: Prisma.voicemeupOmit | null + /** + * Filter, which voicemeup to fetch. + */ + where?: Prisma.voicemeupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of voicemeups to fetch. + */ + orderBy?: Prisma.voicemeupOrderByWithRelationInput | Prisma.voicemeupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for voicemeups. + */ + cursor?: Prisma.voicemeupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` voicemeups 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` voicemeups. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of voicemeups. + */ + distinct?: Prisma.VoicemeupScalarFieldEnum | Prisma.VoicemeupScalarFieldEnum[] +} + +/** + * voicemeup findMany + */ +export type voicemeupFindManyArgs = { + /** + * Select specific fields to fetch from the voicemeup + */ + select?: Prisma.voicemeupSelect | null + /** + * Omit specific fields from the voicemeup + */ + omit?: Prisma.voicemeupOmit | null + /** + * Filter, which voicemeups to fetch. + */ + where?: Prisma.voicemeupWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of voicemeups to fetch. + */ + orderBy?: Prisma.voicemeupOrderByWithRelationInput | Prisma.voicemeupOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing voicemeups. + */ + cursor?: Prisma.voicemeupWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` voicemeups 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` voicemeups. + */ + skip?: number + distinct?: Prisma.VoicemeupScalarFieldEnum | Prisma.VoicemeupScalarFieldEnum[] +} + +/** + * voicemeup create + */ +export type voicemeupCreateArgs = { + /** + * Select specific fields to fetch from the voicemeup + */ + select?: Prisma.voicemeupSelect | null + /** + * Omit specific fields from the voicemeup + */ + omit?: Prisma.voicemeupOmit | null + /** + * The data needed to create a voicemeup. + */ + data: Prisma.XOR +} + +/** + * voicemeup createMany + */ +export type voicemeupCreateManyArgs = { + /** + * The data used to create many voicemeups. + */ + data: Prisma.voicemeupCreateManyInput | Prisma.voicemeupCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * voicemeup update + */ +export type voicemeupUpdateArgs = { + /** + * Select specific fields to fetch from the voicemeup + */ + select?: Prisma.voicemeupSelect | null + /** + * Omit specific fields from the voicemeup + */ + omit?: Prisma.voicemeupOmit | null + /** + * The data needed to update a voicemeup. + */ + data: Prisma.XOR + /** + * Choose, which voicemeup to update. + */ + where: Prisma.voicemeupWhereUniqueInput +} + +/** + * voicemeup updateMany + */ +export type voicemeupUpdateManyArgs = { + /** + * The data used to update voicemeups. + */ + data: Prisma.XOR + /** + * Filter which voicemeups to update + */ + where?: Prisma.voicemeupWhereInput + /** + * Limit how many voicemeups to update. + */ + limit?: number +} + +/** + * voicemeup upsert + */ +export type voicemeupUpsertArgs = { + /** + * Select specific fields to fetch from the voicemeup + */ + select?: Prisma.voicemeupSelect | null + /** + * Omit specific fields from the voicemeup + */ + omit?: Prisma.voicemeupOmit | null + /** + * The filter to search for the voicemeup to update in case it exists. + */ + where: Prisma.voicemeupWhereUniqueInput + /** + * In case the voicemeup found by the `where` argument doesn't exist, create a new voicemeup with this data. + */ + create: Prisma.XOR + /** + * In case the voicemeup was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * voicemeup delete + */ +export type voicemeupDeleteArgs = { + /** + * Select specific fields to fetch from the voicemeup + */ + select?: Prisma.voicemeupSelect | null + /** + * Omit specific fields from the voicemeup + */ + omit?: Prisma.voicemeupOmit | null + /** + * Filter which voicemeup to delete. + */ + where: Prisma.voicemeupWhereUniqueInput +} + +/** + * voicemeup deleteMany + */ +export type voicemeupDeleteManyArgs = { + /** + * Filter which voicemeups to delete + */ + where?: Prisma.voicemeupWhereInput + /** + * Limit how many voicemeups to delete. + */ + limit?: number +} + +/** + * voicemeup without action + */ +export type voicemeupDefaultArgs = { + /** + * Select specific fields to fetch from the voicemeup + */ + select?: Prisma.voicemeupSelect | null + /** + * Omit specific fields from the voicemeup + */ + omit?: Prisma.voicemeupOmit | null +} diff --git a/prisma/generated/postgres/browser.ts b/prisma/generated/postgres/browser.ts new file mode 100644 index 0000000..38b7d62 --- /dev/null +++ b/prisma/generated/postgres/browser.ts @@ -0,0 +1,129 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file should be your main import to use Prisma-related types and utilities in a browser. + * Use it to get access to models, enums, and input types. + * + * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only. + * See `client.ts` for the standard, server-side entry point. + * + * ๐ŸŸข You can import this file directly. + */ + +import * as Prisma from './internal/prismaNamespaceBrowser' +export { Prisma } +export * as $Enums from './enums' +export * from './enums'; +/** + * Model Users + * + */ +export type Users = Prisma.UsersModel +/** + * Model userModuleAccess + * + */ +export type userModuleAccess = Prisma.userModuleAccessModel +/** + * Model Employees + * + */ +export type Employees = Prisma.EmployeesModel +/** + * Model LeaveRequests + * + */ +export type LeaveRequests = Prisma.LeaveRequestsModel +/** + * Model LeaveRequestsArchive + * + */ +export type LeaveRequestsArchive = Prisma.LeaveRequestsArchiveModel +/** + * Model Timesheets + * + */ +export type Timesheets = Prisma.TimesheetsModel +/** + * Model TimesheetsArchive + * + */ +export type TimesheetsArchive = Prisma.TimesheetsArchiveModel +/** + * Model SchedulePresets + * + */ +export type SchedulePresets = Prisma.SchedulePresetsModel +/** + * Model SchedulePresetShifts + * + */ +export type SchedulePresetShifts = Prisma.SchedulePresetShiftsModel +/** + * Model Shifts + * + */ +export type Shifts = Prisma.ShiftsModel +/** + * Model ShiftsArchive + * + */ +export type ShiftsArchive = Prisma.ShiftsArchiveModel +/** + * Model BankCodes + * + */ +export type BankCodes = Prisma.BankCodesModel +/** + * Model Expenses + * + */ +export type Expenses = Prisma.ExpensesModel +/** + * Model ExpensesArchive + * + */ +export type ExpensesArchive = Prisma.ExpensesArchiveModel +/** + * Model OAuthSessions + * + */ +export type OAuthSessions = Prisma.OAuthSessionsModel +/** + * Model Sessions + * + */ +export type Sessions = Prisma.SessionsModel +/** + * Model Blobs + * + */ +export type Blobs = Prisma.BlobsModel +/** + * Model Attachments + * + */ +export type Attachments = Prisma.AttachmentsModel +/** + * Model AttachmentVariants + * + */ +export type AttachmentVariants = Prisma.AttachmentVariantsModel +/** + * Model Preferences + * + */ +export type Preferences = Prisma.PreferencesModel +/** + * Model PaidTimeOff + * + */ +export type PaidTimeOff = Prisma.PaidTimeOffModel +/** + * Model PayPeriods + * + */ +export type PayPeriods = Prisma.PayPeriodsModel diff --git a/prisma/generated/postgres/client.ts b/prisma/generated/postgres/client.ts new file mode 100644 index 0000000..068e1b7 --- /dev/null +++ b/prisma/generated/postgres/client.ts @@ -0,0 +1,149 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types. + * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead. + * + * ๐ŸŸข You can import this file directly. + */ + +import * as process from 'node:process' +import * as path from 'node:path' + +import * as runtime from "@prisma/client/runtime/client" +import * as $Enums from "./enums" +import * as $Class from "./internal/class" +import * as Prisma from "./internal/prismaNamespace" + +export * as $Enums from './enums' +export * from "./enums" +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more Users + * const users = await prisma.users.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ +export const PrismaClient = $Class.getPrismaClientClass() +export type PrismaClient = $Class.PrismaClient +export { Prisma } + +/** + * Model Users + * + */ +export type Users = Prisma.UsersModel +/** + * Model userModuleAccess + * + */ +export type userModuleAccess = Prisma.userModuleAccessModel +/** + * Model Employees + * + */ +export type Employees = Prisma.EmployeesModel +/** + * Model LeaveRequests + * + */ +export type LeaveRequests = Prisma.LeaveRequestsModel +/** + * Model LeaveRequestsArchive + * + */ +export type LeaveRequestsArchive = Prisma.LeaveRequestsArchiveModel +/** + * Model Timesheets + * + */ +export type Timesheets = Prisma.TimesheetsModel +/** + * Model TimesheetsArchive + * + */ +export type TimesheetsArchive = Prisma.TimesheetsArchiveModel +/** + * Model SchedulePresets + * + */ +export type SchedulePresets = Prisma.SchedulePresetsModel +/** + * Model SchedulePresetShifts + * + */ +export type SchedulePresetShifts = Prisma.SchedulePresetShiftsModel +/** + * Model Shifts + * + */ +export type Shifts = Prisma.ShiftsModel +/** + * Model ShiftsArchive + * + */ +export type ShiftsArchive = Prisma.ShiftsArchiveModel +/** + * Model BankCodes + * + */ +export type BankCodes = Prisma.BankCodesModel +/** + * Model Expenses + * + */ +export type Expenses = Prisma.ExpensesModel +/** + * Model ExpensesArchive + * + */ +export type ExpensesArchive = Prisma.ExpensesArchiveModel +/** + * Model OAuthSessions + * + */ +export type OAuthSessions = Prisma.OAuthSessionsModel +/** + * Model Sessions + * + */ +export type Sessions = Prisma.SessionsModel +/** + * Model Blobs + * + */ +export type Blobs = Prisma.BlobsModel +/** + * Model Attachments + * + */ +export type Attachments = Prisma.AttachmentsModel +/** + * Model AttachmentVariants + * + */ +export type AttachmentVariants = Prisma.AttachmentVariantsModel +/** + * Model Preferences + * + */ +export type Preferences = Prisma.PreferencesModel +/** + * Model PaidTimeOff + * + */ +export type PaidTimeOff = Prisma.PaidTimeOffModel +/** + * Model PayPeriods + * + */ +export type PayPeriods = Prisma.PayPeriodsModel diff --git a/prisma/generated/postgres/commonInputTypes.ts b/prisma/generated/postgres/commonInputTypes.ts new file mode 100644 index 0000000..ce15478 --- /dev/null +++ b/prisma/generated/postgres/commonInputTypes.ts @@ -0,0 +1,914 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports various common sort, input & filter types that are not directly linked to a particular model. + * + * ๐ŸŸข You can import this file directly. + */ + +import type * as runtime from "@prisma/client/runtime/client" +import * as $Enums from "./enums" +import type * as Prisma from "./internal/prismaNamespace" + + +export type UuidFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedUuidFilter<$PrismaModel> | string +} + +export type StringFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringFilter<$PrismaModel> | string +} + +export type StringNullableFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + +export type EnumRolesFilter<$PrismaModel = never> = { + equals?: $Enums.Roles | Prisma.EnumRolesFieldRefInput<$PrismaModel> + in?: $Enums.Roles[] | Prisma.ListEnumRolesFieldRefInput<$PrismaModel> + notIn?: $Enums.Roles[] | Prisma.ListEnumRolesFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRolesFilter<$PrismaModel> | $Enums.Roles +} + +export type SortOrderInput = { + sort: Prisma.SortOrder + nulls?: Prisma.NullsOrder +} + +export type UuidWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedUuidWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type StringWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedStringNullableFilter<$PrismaModel> + _max?: Prisma.NestedStringNullableFilter<$PrismaModel> +} + +export type EnumRolesWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.Roles | Prisma.EnumRolesFieldRefInput<$PrismaModel> + in?: $Enums.Roles[] | Prisma.ListEnumRolesFieldRefInput<$PrismaModel> + notIn?: $Enums.Roles[] | Prisma.ListEnumRolesFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRolesWithAggregatesFilter<$PrismaModel> | $Enums.Roles + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumRolesFilter<$PrismaModel> + _max?: Prisma.NestedEnumRolesFilter<$PrismaModel> +} + +export type IntFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntFilter<$PrismaModel> | number +} + +export type BoolFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean +} + +export type IntWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedIntFilter<$PrismaModel> + _max?: Prisma.NestedIntFilter<$PrismaModel> +} + +export type 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 DateTimeFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string +} + +export type DateTimeNullableFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null +} + +export type IntNullableFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null +} + +export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeFilter<$PrismaModel> +} + +export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> +} + +export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.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 EnumLeaveTypesFilter<$PrismaModel = never> = { + equals?: $Enums.LeaveTypes | Prisma.EnumLeaveTypesFieldRefInput<$PrismaModel> + in?: $Enums.LeaveTypes[] | Prisma.ListEnumLeaveTypesFieldRefInput<$PrismaModel> + notIn?: $Enums.LeaveTypes[] | Prisma.ListEnumLeaveTypesFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumLeaveTypesFilter<$PrismaModel> | $Enums.LeaveTypes +} + +export type EnumLeaveApprovalStatusFilter<$PrismaModel = never> = { + equals?: $Enums.LeaveApprovalStatus | Prisma.EnumLeaveApprovalStatusFieldRefInput<$PrismaModel> + in?: $Enums.LeaveApprovalStatus[] | Prisma.ListEnumLeaveApprovalStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.LeaveApprovalStatus[] | Prisma.ListEnumLeaveApprovalStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumLeaveApprovalStatusFilter<$PrismaModel> | $Enums.LeaveApprovalStatus +} + +export type DecimalNullableFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type EnumLeaveTypesWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.LeaveTypes | Prisma.EnumLeaveTypesFieldRefInput<$PrismaModel> + in?: $Enums.LeaveTypes[] | Prisma.ListEnumLeaveTypesFieldRefInput<$PrismaModel> + notIn?: $Enums.LeaveTypes[] | Prisma.ListEnumLeaveTypesFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumLeaveTypesWithAggregatesFilter<$PrismaModel> | $Enums.LeaveTypes + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumLeaveTypesFilter<$PrismaModel> + _max?: Prisma.NestedEnumLeaveTypesFilter<$PrismaModel> +} + +export type EnumLeaveApprovalStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.LeaveApprovalStatus | Prisma.EnumLeaveApprovalStatusFieldRefInput<$PrismaModel> + in?: $Enums.LeaveApprovalStatus[] | Prisma.ListEnumLeaveApprovalStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.LeaveApprovalStatus[] | Prisma.ListEnumLeaveApprovalStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumLeaveApprovalStatusWithAggregatesFilter<$PrismaModel> | $Enums.LeaveApprovalStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumLeaveApprovalStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumLeaveApprovalStatusFilter<$PrismaModel> +} + +export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _min?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _max?: Prisma.NestedDecimalNullableFilter<$PrismaModel> +} + +export type EnumWeekdayFilter<$PrismaModel = never> = { + equals?: $Enums.Weekday | Prisma.EnumWeekdayFieldRefInput<$PrismaModel> + in?: $Enums.Weekday[] | Prisma.ListEnumWeekdayFieldRefInput<$PrismaModel> + notIn?: $Enums.Weekday[] | Prisma.ListEnumWeekdayFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumWeekdayFilter<$PrismaModel> | $Enums.Weekday +} + +export type EnumWeekdayWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.Weekday | Prisma.EnumWeekdayFieldRefInput<$PrismaModel> + in?: $Enums.Weekday[] | Prisma.ListEnumWeekdayFieldRefInput<$PrismaModel> + notIn?: $Enums.Weekday[] | Prisma.ListEnumWeekdayFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumWeekdayWithAggregatesFilter<$PrismaModel> | $Enums.Weekday + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumWeekdayFilter<$PrismaModel> + _max?: Prisma.NestedEnumWeekdayFilter<$PrismaModel> +} + +export type FloatFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatFilter<$PrismaModel> | number +} + +export type FloatWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedFloatFilter<$PrismaModel> + _min?: Prisma.NestedFloatFilter<$PrismaModel> + _max?: Prisma.NestedFloatFilter<$PrismaModel> +} + +export type JsonFilter<$PrismaModel = never> = +| Prisma.PatchUndefined< + Prisma.Either>, Exclude>, 'path'>>, + Required> + > +| Prisma.OptionalFlat>, 'path'>> + +export type JsonFilterBase<$PrismaModel = never> = { + equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter + path?: string[] + mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> + string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter +} + +export type JsonWithAggregatesFilter<$PrismaModel = never> = +| Prisma.PatchUndefined< + Prisma.Either>, Exclude>, 'path'>>, + Required> + > +| Prisma.OptionalFlat>, 'path'>> + +export type JsonWithAggregatesFilterBase<$PrismaModel = never> = { + equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter + path?: string[] + mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> + string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedJsonFilter<$PrismaModel> + _max?: Prisma.NestedJsonFilter<$PrismaModel> +} + +export type EnumAttachmentStatusFilter<$PrismaModel = never> = { + equals?: $Enums.AttachmentStatus | Prisma.EnumAttachmentStatusFieldRefInput<$PrismaModel> + in?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAttachmentStatusFilter<$PrismaModel> | $Enums.AttachmentStatus +} + +export type EnumRetentionPolicyFilter<$PrismaModel = never> = { + equals?: $Enums.RetentionPolicy | Prisma.EnumRetentionPolicyFieldRefInput<$PrismaModel> + in?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel> + notIn?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRetentionPolicyFilter<$PrismaModel> | $Enums.RetentionPolicy +} + +export type EnumAttachmentStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.AttachmentStatus | Prisma.EnumAttachmentStatusFieldRefInput<$PrismaModel> + in?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAttachmentStatusWithAggregatesFilter<$PrismaModel> | $Enums.AttachmentStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumAttachmentStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumAttachmentStatusFilter<$PrismaModel> +} + +export type EnumRetentionPolicyWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.RetentionPolicy | Prisma.EnumRetentionPolicyFieldRefInput<$PrismaModel> + in?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel> + notIn?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRetentionPolicyWithAggregatesFilter<$PrismaModel> | $Enums.RetentionPolicy + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumRetentionPolicyFilter<$PrismaModel> + _max?: Prisma.NestedEnumRetentionPolicyFilter<$PrismaModel> +} + +export type BoolNullableFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null +} + +export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedBoolNullableFilter<$PrismaModel> + _max?: Prisma.NestedBoolNullableFilter<$PrismaModel> +} + +export type DecimalFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type DecimalWithAggregatesFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedDecimalFilter<$PrismaModel> + _sum?: Prisma.NestedDecimalFilter<$PrismaModel> + _min?: Prisma.NestedDecimalFilter<$PrismaModel> + _max?: Prisma.NestedDecimalFilter<$PrismaModel> +} + +export type NestedUuidFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedUuidFilter<$PrismaModel> | string +} + +export type NestedStringFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringFilter<$PrismaModel> | string +} + +export type NestedStringNullableFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + +export type NestedEnumRolesFilter<$PrismaModel = never> = { + equals?: $Enums.Roles | Prisma.EnumRolesFieldRefInput<$PrismaModel> + in?: $Enums.Roles[] | Prisma.ListEnumRolesFieldRefInput<$PrismaModel> + notIn?: $Enums.Roles[] | Prisma.ListEnumRolesFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRolesFilter<$PrismaModel> | $Enums.Roles +} + +export type NestedUuidWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedUuidWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type NestedIntFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntFilter<$PrismaModel> | number +} + +export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedStringFilter<$PrismaModel> + _max?: Prisma.NestedStringFilter<$PrismaModel> +} + +export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedStringNullableFilter<$PrismaModel> + _max?: Prisma.NestedStringNullableFilter<$PrismaModel> +} + +export type NestedIntNullableFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null +} + +export type NestedEnumRolesWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.Roles | Prisma.EnumRolesFieldRefInput<$PrismaModel> + in?: $Enums.Roles[] | Prisma.ListEnumRolesFieldRefInput<$PrismaModel> + notIn?: $Enums.Roles[] | Prisma.ListEnumRolesFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRolesWithAggregatesFilter<$PrismaModel> | $Enums.Roles + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumRolesFilter<$PrismaModel> + _max?: Prisma.NestedEnumRolesFilter<$PrismaModel> +} + +export type NestedBoolFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean +} + +export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedIntFilter<$PrismaModel> + _max?: Prisma.NestedIntFilter<$PrismaModel> +} + +export type NestedFloatFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatFilter<$PrismaModel> | number +} + +export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> + not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedBoolFilter<$PrismaModel> + _max?: Prisma.NestedBoolFilter<$PrismaModel> +} + +export type NestedDateTimeFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string +} + +export type NestedDateTimeNullableFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null +} + +export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeFilter<$PrismaModel> +} + +export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> +} + +export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null + in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null + lt?: number | Prisma.IntFieldRefInput<$PrismaModel> + lte?: number | Prisma.IntFieldRefInput<$PrismaModel> + gt?: number | Prisma.IntFieldRefInput<$PrismaModel> + gte?: number | Prisma.IntFieldRefInput<$PrismaModel> + not?: Prisma.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[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | 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 NestedEnumLeaveTypesFilter<$PrismaModel = never> = { + equals?: $Enums.LeaveTypes | Prisma.EnumLeaveTypesFieldRefInput<$PrismaModel> + in?: $Enums.LeaveTypes[] | Prisma.ListEnumLeaveTypesFieldRefInput<$PrismaModel> + notIn?: $Enums.LeaveTypes[] | Prisma.ListEnumLeaveTypesFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumLeaveTypesFilter<$PrismaModel> | $Enums.LeaveTypes +} + +export type NestedEnumLeaveApprovalStatusFilter<$PrismaModel = never> = { + equals?: $Enums.LeaveApprovalStatus | Prisma.EnumLeaveApprovalStatusFieldRefInput<$PrismaModel> + in?: $Enums.LeaveApprovalStatus[] | Prisma.ListEnumLeaveApprovalStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.LeaveApprovalStatus[] | Prisma.ListEnumLeaveApprovalStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumLeaveApprovalStatusFilter<$PrismaModel> | $Enums.LeaveApprovalStatus +} + +export type NestedDecimalNullableFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type NestedEnumLeaveTypesWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.LeaveTypes | Prisma.EnumLeaveTypesFieldRefInput<$PrismaModel> + in?: $Enums.LeaveTypes[] | Prisma.ListEnumLeaveTypesFieldRefInput<$PrismaModel> + notIn?: $Enums.LeaveTypes[] | Prisma.ListEnumLeaveTypesFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumLeaveTypesWithAggregatesFilter<$PrismaModel> | $Enums.LeaveTypes + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumLeaveTypesFilter<$PrismaModel> + _max?: Prisma.NestedEnumLeaveTypesFilter<$PrismaModel> +} + +export type NestedEnumLeaveApprovalStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.LeaveApprovalStatus | Prisma.EnumLeaveApprovalStatusFieldRefInput<$PrismaModel> + in?: $Enums.LeaveApprovalStatus[] | Prisma.ListEnumLeaveApprovalStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.LeaveApprovalStatus[] | Prisma.ListEnumLeaveApprovalStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumLeaveApprovalStatusWithAggregatesFilter<$PrismaModel> | $Enums.LeaveApprovalStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumLeaveApprovalStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumLeaveApprovalStatusFilter<$PrismaModel> +} + +export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> | null + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _min?: Prisma.NestedDecimalNullableFilter<$PrismaModel> + _max?: Prisma.NestedDecimalNullableFilter<$PrismaModel> +} + +export type NestedEnumWeekdayFilter<$PrismaModel = never> = { + equals?: $Enums.Weekday | Prisma.EnumWeekdayFieldRefInput<$PrismaModel> + in?: $Enums.Weekday[] | Prisma.ListEnumWeekdayFieldRefInput<$PrismaModel> + notIn?: $Enums.Weekday[] | Prisma.ListEnumWeekdayFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumWeekdayFilter<$PrismaModel> | $Enums.Weekday +} + +export type NestedEnumWeekdayWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.Weekday | Prisma.EnumWeekdayFieldRefInput<$PrismaModel> + in?: $Enums.Weekday[] | Prisma.ListEnumWeekdayFieldRefInput<$PrismaModel> + notIn?: $Enums.Weekday[] | Prisma.ListEnumWeekdayFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumWeekdayWithAggregatesFilter<$PrismaModel> | $Enums.Weekday + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumWeekdayFilter<$PrismaModel> + _max?: Prisma.NestedEnumWeekdayFilter<$PrismaModel> +} + +export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = { + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> + in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> + notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> + not?: Prisma.NestedFloatWithAggregatesFilter<$PrismaModel> | number + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedFloatFilter<$PrismaModel> + _sum?: Prisma.NestedFloatFilter<$PrismaModel> + _min?: Prisma.NestedFloatFilter<$PrismaModel> + _max?: Prisma.NestedFloatFilter<$PrismaModel> +} + +export type NestedJsonFilter<$PrismaModel = never> = +| Prisma.PatchUndefined< + Prisma.Either>, Exclude>, 'path'>>, + Required> + > +| Prisma.OptionalFlat>, 'path'>> + +export type NestedJsonFilterBase<$PrismaModel = never> = { + equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter + path?: string[] + mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> + string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> + array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null + lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> + not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter +} + +export type NestedEnumAttachmentStatusFilter<$PrismaModel = never> = { + equals?: $Enums.AttachmentStatus | Prisma.EnumAttachmentStatusFieldRefInput<$PrismaModel> + in?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAttachmentStatusFilter<$PrismaModel> | $Enums.AttachmentStatus +} + +export type NestedEnumRetentionPolicyFilter<$PrismaModel = never> = { + equals?: $Enums.RetentionPolicy | Prisma.EnumRetentionPolicyFieldRefInput<$PrismaModel> + in?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel> + notIn?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRetentionPolicyFilter<$PrismaModel> | $Enums.RetentionPolicy +} + +export type NestedEnumAttachmentStatusWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.AttachmentStatus | Prisma.EnumAttachmentStatusFieldRefInput<$PrismaModel> + in?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel> + notIn?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumAttachmentStatusWithAggregatesFilter<$PrismaModel> | $Enums.AttachmentStatus + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumAttachmentStatusFilter<$PrismaModel> + _max?: Prisma.NestedEnumAttachmentStatusFilter<$PrismaModel> +} + +export type NestedEnumRetentionPolicyWithAggregatesFilter<$PrismaModel = never> = { + equals?: $Enums.RetentionPolicy | Prisma.EnumRetentionPolicyFieldRefInput<$PrismaModel> + in?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel> + notIn?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel> + not?: Prisma.NestedEnumRetentionPolicyWithAggregatesFilter<$PrismaModel> | $Enums.RetentionPolicy + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedEnumRetentionPolicyFilter<$PrismaModel> + _max?: Prisma.NestedEnumRetentionPolicyFilter<$PrismaModel> +} + +export type NestedBoolNullableFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null +} + +export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null + not?: Prisma.NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null + _count?: Prisma.NestedIntNullableFilter<$PrismaModel> + _min?: Prisma.NestedBoolNullableFilter<$PrismaModel> + _max?: Prisma.NestedBoolNullableFilter<$PrismaModel> +} + +export type NestedDecimalFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = { + equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | Prisma.ListDecimalFieldRefInput<$PrismaModel> + lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> + not?: Prisma.NestedDecimalWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _avg?: Prisma.NestedDecimalFilter<$PrismaModel> + _sum?: Prisma.NestedDecimalFilter<$PrismaModel> + _min?: Prisma.NestedDecimalFilter<$PrismaModel> + _max?: Prisma.NestedDecimalFilter<$PrismaModel> +} + + diff --git a/prisma/generated/postgres/enums.ts b/prisma/generated/postgres/enums.ts new file mode 100644 index 0000000..8b2c871 --- /dev/null +++ b/prisma/generated/postgres/enums.ts @@ -0,0 +1,91 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* +* This file exports all enum related types from the schema. +* +* ๐ŸŸข You can import this file directly. +*/ + +export const AttachmentStatus = { + ACTIVE: 'ACTIVE', + DELETED: 'DELETED' +} as const + +export type AttachmentStatus = (typeof AttachmentStatus)[keyof typeof AttachmentStatus] + + +export const RetentionPolicy = { + EXPENSE_7Y: 'EXPENSE_7Y', + TICKET_2Y: 'TICKET_2Y', + PROFILE_KEEP_LAST3: 'PROFILE_KEEP_LAST3' +} as const + +export type RetentionPolicy = (typeof RetentionPolicy)[keyof typeof RetentionPolicy] + + +export const Roles = { + ADMIN: 'ADMIN', + SUPERVISOR: 'SUPERVISOR', + HR: 'HR', + ACCOUNTING: 'ACCOUNTING', + EMPLOYEE: 'EMPLOYEE', + DEALER: 'DEALER', + CUSTOMER: 'CUSTOMER', + GUEST: 'GUEST' +} as const + +export type Roles = (typeof Roles)[keyof typeof Roles] + + +export const Modules = { + timesheets: 'timesheets', + timesheets_approval: 'timesheets_approval', + employee_list: 'employee_list', + employee_management: 'employee_management', + personal_profile: 'personal_profile', + dashboard: 'dashboard', + chatbot: 'chatbot' +} as const + +export type Modules = (typeof Modules)[keyof typeof Modules] + + +export const LeaveTypes = { + SICK: 'SICK', + VACATION: 'VACATION', + UNPAID: 'UNPAID', + BEREAVEMENT: 'BEREAVEMENT', + PARENTAL: 'PARENTAL', + LEGAL: 'LEGAL', + WEDDING: 'WEDDING', + HOLIDAY: 'HOLIDAY' +} as const + +export type LeaveTypes = (typeof LeaveTypes)[keyof typeof LeaveTypes] + + +export const LeaveApprovalStatus = { + PENDING: 'PENDING', + APPROVED: 'APPROVED', + DENIED: 'DENIED', + CANCELLED: 'CANCELLED', + ESCALATED: 'ESCALATED' +} as const + +export type LeaveApprovalStatus = (typeof LeaveApprovalStatus)[keyof typeof LeaveApprovalStatus] + + +export const Weekday = { + SUN: 'SUN', + MON: 'MON', + TUE: 'TUE', + WED: 'WED', + THU: 'THU', + FRI: 'FRI', + SAT: 'SAT' +} as const + +export type Weekday = (typeof Weekday)[keyof typeof Weekday] diff --git a/prisma/generated/postgres/internal/class.ts b/prisma/generated/postgres/internal/class.ts new file mode 100644 index 0000000..e4a2fb4 --- /dev/null +++ b/prisma/generated/postgres/internal/class.ts @@ -0,0 +1,404 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * ๐Ÿ›‘ Under no circumstances should you import this file directly! ๐Ÿ›‘ + * + * Please import the `PrismaClient` class from the `client.ts` file instead. + */ + +import * as runtime from "@prisma/client/runtime/client" +import type * as Prisma from "./prismaNamespace" + + +const config: runtime.GetPrismaClientConfig = { + "previewFeatures": [ + "views" + ], + "clientVersion": "7.3.0", + "engineVersion": "9d6ad21cbbceab97458517b147a6a09ff43aa735", + "activeProvider": "postgresql", + "inlineSchema": "generator client {\n provider = \"prisma-client\"\n output = \"../generated/postgres\"\n previewFeatures = [\"views\"]\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\nmodel Users {\n id String @id @default(dbgenerated(\"gen_random_uuid()\")) @db.Uuid\n first_name String\n last_name String\n email String @unique\n phone_number String\n residence String?\n role Roles @default(EMPLOYEE)\n employee Employees? @relation(\"UserEmployee\")\n oauth_sessions OAuthSessions[] @relation(\"UserOAuthSessions\")\n preferences Preferences? @relation(\"UserPreferences\")\n user_module_access userModuleAccess? @relation(\"UserModuleAccess\")\n\n @@map(\"users\")\n}\n\nmodel userModuleAccess {\n id Int @id @default(autoincrement())\n user_id String @unique @db.Uuid\n timesheets Boolean @default(true)\n timesheets_approval Boolean @default(false)\n employee_list Boolean @default(true)\n employee_management Boolean @default(false)\n personal_profile Boolean @default(true)\n dashboard Boolean @default(true)\n chatbot Boolean @default(false)\n user Users @relation(\"UserModuleAccess\", fields: [user_id], references: [id])\n\n @@map(\"user_module_access\")\n}\n\nmodel Employees {\n id Int @id @default(autoincrement())\n user_id String @unique @db.Uuid\n external_payroll_id Int\n company_code Int\n daily_expected_hours Int\n first_work_day DateTime @db.Date\n last_work_day DateTime? @db.Date\n supervisor_id Int?\n job_title String?\n is_supervisor Boolean @default(false)\n // banked_hour_limit Int @default(0) //will need to be implemented in the future\n schedule_preset_id Int?\n schedule_preset SchedulePresets? @relation(\"EmployeesSchedulePreset\", fields: [schedule_preset_id], references: [id])\n supervisor Employees? @relation(\"EmployeeSupervisor\", fields: [supervisor_id], references: [id])\n crew Employees[] @relation(\"EmployeeSupervisor\")\n user Users @relation(\"UserEmployee\", fields: [user_id], references: [id])\n leave_request LeaveRequests[] @relation(\"LeaveRequestEmployee\")\n timesheet Timesheets[] @relation(\"TimesheetEmployee\")\n paid_time_off PaidTimeOff? @relation(\"EmployeePaidTimeOff\")\n\n @@map(\"employees\")\n}\n\nmodel LeaveRequests {\n id Int @id @default(autoincrement())\n employee_id Int\n leave_type LeaveTypes\n comment String\n approval_status LeaveApprovalStatus @default(PENDING)\n bank_code_id Int\n payable_hours Decimal? @db.Decimal(5, 2)\n requested_hours Decimal? @db.Decimal(5, 2)\n dates DateTime[] @db.Date\n bank_code BankCodes @relation(\"LeaveRequestBankCodes\", fields: [bank_code_id], references: [id])\n employee Employees @relation(\"LeaveRequestEmployee\", fields: [employee_id], references: [id])\n archive LeaveRequestsArchive? @relation(\"LeaveRequestToArchive\")\n\n @@unique([employee_id, leave_type, dates], name: \"leave_per_employee_date\")\n @@index([employee_id, dates])\n @@map(\"leave_requests\")\n}\n\nmodel LeaveRequestsArchive {\n id Int @id @default(autoincrement())\n leave_request_id Int @unique\n archived_at DateTime @default(now())\n employee_id Int\n leave_type LeaveTypes\n comment String\n approval_status LeaveApprovalStatus\n date DateTime @db.Date\n payable_hours Decimal? @db.Decimal(5, 2)\n requested_hours Decimal? @db.Decimal(5, 2)\n leave_request LeaveRequests @relation(\"LeaveRequestToArchive\", fields: [leave_request_id], references: [id])\n\n @@index([employee_id, date])\n @@map(\"leave_requests_archive\")\n}\n\nmodel Timesheets {\n id Int @id @default(autoincrement())\n employee_id Int\n is_approved Boolean @default(false)\n start_date DateTime @db.Date\n // hours_to_bank Decimal? @db.Decimal(5, 2) //will need to be implemented in the future\n expense Expenses[] @relation(\"ExpensesTimesheet\")\n shift Shifts[] @relation(\"ShiftTimesheet\")\n employee Employees @relation(\"TimesheetEmployee\", fields: [employee_id], references: [id])\n archive TimesheetsArchive[] @relation(\"TimesheetsToArchive\")\n\n // @@unique([employee_id, start_date], name: \"employee_id_start_date\")\n @@map(\"timesheets\")\n}\n\nmodel TimesheetsArchive {\n id Int @id @default(autoincrement())\n timesheet_id Int\n archive_at DateTime @default(now())\n employee_id Int\n is_approved Boolean\n timesheet Timesheets @relation(\"TimesheetsToArchive\", fields: [timesheet_id], references: [id])\n\n @@map(\"timesheets_archive\")\n}\n\nmodel SchedulePresets {\n id Int @id @default(autoincrement())\n name String\n is_default Boolean @default(false)\n employees Employees[] @relation(\"EmployeesSchedulePreset\")\n shifts SchedulePresetShifts[] @relation(\"SchedulePresetShiftsSchedulePreset\")\n\n @@map(\"schedule_presets\")\n}\n\nmodel SchedulePresetShifts {\n id Int @id @default(autoincrement())\n preset_id Int\n bank_code_id Int\n\n start_time DateTime @db.Time(0)\n end_time DateTime @db.Time(0)\n is_remote Boolean @default(false)\n week_day Weekday\n bank_code BankCodes @relation(\"SchedulePresetShiftsBankCodes\", fields: [bank_code_id], references: [id])\n preset SchedulePresets @relation(\"SchedulePresetShiftsSchedulePreset\", fields: [preset_id], references: [id])\n\n @@index([preset_id, week_day])\n @@map(\"schedule_preset_shifts\")\n}\n\nmodel Shifts {\n id Int @id @default(autoincrement())\n timesheet_id Int\n date DateTime @db.Date\n start_time DateTime @db.Time(0)\n end_time DateTime @db.Time(0)\n bank_code_id Int\n is_approved Boolean @default(false)\n is_remote Boolean @default(false)\n comment String?\n bank_code BankCodes @relation(\"ShiftBankCodes\", fields: [bank_code_id], references: [id])\n timesheet Timesheets @relation(\"ShiftTimesheet\", fields: [timesheet_id], references: [id])\n archive ShiftsArchive[] @relation(\"ShiftsToArchive\")\n\n // @@unique([timesheet_id, date, start_time], name: \"unique_ts_id_date_start_time\")\n @@map(\"shifts\")\n}\n\nmodel ShiftsArchive {\n id Int @id @default(autoincrement())\n shift_id Int\n archive_at DateTime @default(now())\n timesheet_id Int\n date DateTime @db.Date\n start_time DateTime @db.Time(0)\n end_time DateTime @db.Time(0)\n bank_code_id Int\n comment String?\n shift Shifts @relation(\"ShiftsToArchive\", fields: [shift_id], references: [id])\n\n @@map(\"shifts_archive\")\n}\n\nmodel BankCodes {\n id Int @id @default(autoincrement())\n type String\n categorie String\n modifier Float\n bank_code String\n expenses Expenses[] @relation(\"ExpenseBankCodes\")\n leaveRequests LeaveRequests[] @relation(\"LeaveRequestBankCodes\")\n SchedulePresetShifts SchedulePresetShifts[] @relation(\"SchedulePresetShiftsBankCodes\")\n shifts Shifts[] @relation(\"ShiftBankCodes\")\n\n @@map(\"bank_codes\")\n}\n\nmodel Expenses {\n id Int @id @default(autoincrement())\n timesheet_id Int\n date DateTime @db.Date\n amount Decimal? @db.Decimal(12, 2)\n is_approved Boolean @default(false)\n supervisor_comment String?\n bank_code_id Int\n comment String\n attachment Int?\n mileage Decimal? @db.Decimal(12, 2)\n attachment_record Attachments? @relation(\"ExpenseAttachment\", fields: [attachment], references: [id])\n bank_code BankCodes @relation(\"ExpenseBankCodes\", fields: [bank_code_id], references: [id])\n timesheet Timesheets @relation(\"ExpensesTimesheet\", fields: [timesheet_id], references: [id])\n archive ExpensesArchive[] @relation(\"ExpensesToArchive\")\n\n @@unique([timesheet_id, date, amount, mileage], name: \"unique_ts_id_date_amount_mileage\")\n @@map(\"expenses\")\n}\n\nmodel ExpensesArchive {\n id Int @id @default(autoincrement())\n expense_id Int\n timesheet_id Int\n archived_at DateTime @default(now())\n date DateTime @db.Date\n amount Decimal? @db.Decimal(12, 2)\n is_approved Boolean\n supervisor_comment String?\n bank_code_id Int\n comment String?\n attachment Int?\n mileage Decimal? @db.Decimal(12, 2)\n attachment_record Attachments? @relation(\"ExpenseArchiveAttachment\", fields: [attachment], references: [id])\n expense Expenses @relation(\"ExpensesToArchive\", fields: [expense_id], references: [id])\n\n @@map(\"expenses_archive\")\n}\n\nmodel OAuthSessions {\n id String @id @default(cuid())\n user_id String @db.Uuid\n application String\n access_token String @unique\n refresh_token String @unique\n access_token_expiry DateTime\n refresh_token_expiry DateTime?\n is_revoked Boolean @default(false)\n scopes Json @default(\"[]\")\n created_at DateTime @default(now())\n updated_at DateTime?\n sid String @unique\n user Users @relation(\"UserOAuthSessions\", fields: [user_id], references: [id])\n\n @@map(\"oauth_sessions\")\n}\n\nmodel Sessions {\n id String @id\n sid String @unique\n data String\n expiresAt DateTime\n\n @@map(\"sessions\")\n}\n\nmodel Blobs {\n sha256 String @id @db.Char(64)\n size Int\n mime String\n storage_path String\n refcount Int @default(0)\n created_at DateTime @default(now())\n attachments Attachments[] @relation(\"AttachmnentBlob\")\n\n @@map(\"blobs\")\n}\n\nmodel Attachments {\n id Int @id @default(autoincrement())\n sha256 String @db.Char(64)\n owner_type String\n owner_id String\n status AttachmentStatus @default(ACTIVE)\n created_by String\n created_at DateTime @default(now())\n original_name String\n retention_policy RetentionPolicy\n AttachmentVariants AttachmentVariants[] @relation(\"attachmentVariantAttachment\")\n blob Blobs @relation(\"AttachmnentBlob\", fields: [sha256], references: [sha256])\n expenses Expenses[] @relation(\"ExpenseAttachment\")\n expenses_archive ExpensesArchive[] @relation(\"ExpenseArchiveAttachment\")\n\n @@index([owner_type, owner_id, created_at])\n @@index([sha256])\n @@map(\"attachments\")\n}\n\nmodel AttachmentVariants {\n id Int @id @default(autoincrement())\n attachment_id Int\n variant String\n bytes Int\n width Int?\n height Int?\n created_at DateTime @default(now())\n path String\n attachment Attachments @relation(\"attachmentVariantAttachment\", fields: [attachment_id], references: [id], onDelete: Cascade)\n\n @@unique([attachment_id, variant])\n @@map(\"attachment_variants\")\n}\n\nmodel Preferences {\n user_id String @unique @db.Uuid\n id Int @id @default(autoincrement())\n display_language String @default(\"fr-FR\")\n is_dark_mode Boolean? @default(false)\n is_employee_list_grid Boolean @default(true)\n is_lefty_mode Boolean @default(false)\n is_timesheet_approval_grid Boolean @default(true)\n notifications Boolean @default(true)\n user Users @relation(\"UserPreferences\", fields: [user_id], references: [id])\n\n @@map(\"preferences\")\n}\n\nmodel PaidTimeOff {\n id Int @id @default(autoincrement())\n employee_id Int @unique\n vacation_hours Decimal @default(0) @db.Decimal(12, 2)\n banked_hours Decimal @default(0) @db.Decimal(12, 2)\n sick_hours Decimal @default(0) @db.Decimal(12, 2)\n last_updated DateTime? @db.Date\n\n employee Employees @relation(\"EmployeePaidTimeOff\", fields: [employee_id], references: [id])\n\n @@map(\"paid_time_off\")\n}\n\nview PayPeriods {\n pay_year Int\n pay_period_no Int\n period_start DateTime @db.Date\n period_end DateTime @db.Date\n payday DateTime @db.Date\n label String\n\n @@map(\"pay_period\")\n}\n\nenum AttachmentStatus {\n ACTIVE\n DELETED\n}\n\nenum RetentionPolicy {\n EXPENSE_7Y\n TICKET_2Y\n PROFILE_KEEP_LAST3\n}\n\nenum Roles {\n ADMIN\n SUPERVISOR\n HR\n ACCOUNTING\n EMPLOYEE\n DEALER\n CUSTOMER\n GUEST\n\n @@map(\"roles\")\n}\n\nenum Modules {\n timesheets\n timesheets_approval\n employee_list\n employee_management\n personal_profile\n dashboard\n chatbot\n\n @@map(\"modules\")\n}\n\nenum LeaveTypes {\n SICK\n VACATION\n UNPAID\n BEREAVEMENT\n PARENTAL\n LEGAL\n WEDDING\n HOLIDAY\n\n @@map(\"leave_types\")\n}\n\nenum LeaveApprovalStatus {\n PENDING\n APPROVED\n DENIED\n CANCELLED\n ESCALATED\n\n @@map(\"leave_approval_status\")\n}\n\nenum Weekday {\n SUN\n MON\n TUE\n WED\n THU\n FRI\n SAT\n}\n", + "runtimeDataModel": { + "models": {}, + "enums": {}, + "types": {} + } +} + +config.runtimeDataModel = JSON.parse("{\"models\":{\"Users\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"first_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"last_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"residence\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"role\",\"kind\":\"enum\",\"type\":\"Roles\"},{\"name\":\"employee\",\"kind\":\"object\",\"type\":\"Employees\",\"relationName\":\"UserEmployee\"},{\"name\":\"oauth_sessions\",\"kind\":\"object\",\"type\":\"OAuthSessions\",\"relationName\":\"UserOAuthSessions\"},{\"name\":\"preferences\",\"kind\":\"object\",\"type\":\"Preferences\",\"relationName\":\"UserPreferences\"},{\"name\":\"user_module_access\",\"kind\":\"object\",\"type\":\"userModuleAccess\",\"relationName\":\"UserModuleAccess\"}],\"dbName\":\"users\"},\"userModuleAccess\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"user_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"timesheets\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"timesheets_approval\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"employee_list\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"employee_management\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"personal_profile\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"dashboard\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"chatbot\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"Users\",\"relationName\":\"UserModuleAccess\"}],\"dbName\":\"user_module_access\"},\"Employees\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"user_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"external_payroll_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"company_code\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"daily_expected_hours\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"first_work_day\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"last_work_day\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"supervisor_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"job_title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_supervisor\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"schedule_preset_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"schedule_preset\",\"kind\":\"object\",\"type\":\"SchedulePresets\",\"relationName\":\"EmployeesSchedulePreset\"},{\"name\":\"supervisor\",\"kind\":\"object\",\"type\":\"Employees\",\"relationName\":\"EmployeeSupervisor\"},{\"name\":\"crew\",\"kind\":\"object\",\"type\":\"Employees\",\"relationName\":\"EmployeeSupervisor\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"Users\",\"relationName\":\"UserEmployee\"},{\"name\":\"leave_request\",\"kind\":\"object\",\"type\":\"LeaveRequests\",\"relationName\":\"LeaveRequestEmployee\"},{\"name\":\"timesheet\",\"kind\":\"object\",\"type\":\"Timesheets\",\"relationName\":\"TimesheetEmployee\"},{\"name\":\"paid_time_off\",\"kind\":\"object\",\"type\":\"PaidTimeOff\",\"relationName\":\"EmployeePaidTimeOff\"}],\"dbName\":\"employees\"},\"LeaveRequests\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"employee_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"leave_type\",\"kind\":\"enum\",\"type\":\"LeaveTypes\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"approval_status\",\"kind\":\"enum\",\"type\":\"LeaveApprovalStatus\"},{\"name\":\"bank_code_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"payable_hours\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"requested_hours\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"dates\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"bank_code\",\"kind\":\"object\",\"type\":\"BankCodes\",\"relationName\":\"LeaveRequestBankCodes\"},{\"name\":\"employee\",\"kind\":\"object\",\"type\":\"Employees\",\"relationName\":\"LeaveRequestEmployee\"},{\"name\":\"archive\",\"kind\":\"object\",\"type\":\"LeaveRequestsArchive\",\"relationName\":\"LeaveRequestToArchive\"}],\"dbName\":\"leave_requests\"},\"LeaveRequestsArchive\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"leave_request_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"archived_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"employee_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"leave_type\",\"kind\":\"enum\",\"type\":\"LeaveTypes\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"approval_status\",\"kind\":\"enum\",\"type\":\"LeaveApprovalStatus\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"payable_hours\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"requested_hours\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"leave_request\",\"kind\":\"object\",\"type\":\"LeaveRequests\",\"relationName\":\"LeaveRequestToArchive\"}],\"dbName\":\"leave_requests_archive\"},\"Timesheets\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"employee_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"is_approved\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"start_date\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"expense\",\"kind\":\"object\",\"type\":\"Expenses\",\"relationName\":\"ExpensesTimesheet\"},{\"name\":\"shift\",\"kind\":\"object\",\"type\":\"Shifts\",\"relationName\":\"ShiftTimesheet\"},{\"name\":\"employee\",\"kind\":\"object\",\"type\":\"Employees\",\"relationName\":\"TimesheetEmployee\"},{\"name\":\"archive\",\"kind\":\"object\",\"type\":\"TimesheetsArchive\",\"relationName\":\"TimesheetsToArchive\"}],\"dbName\":\"timesheets\"},\"TimesheetsArchive\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"timesheet_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"archive_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"employee_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"is_approved\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"timesheet\",\"kind\":\"object\",\"type\":\"Timesheets\",\"relationName\":\"TimesheetsToArchive\"}],\"dbName\":\"timesheets_archive\"},\"SchedulePresets\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_default\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"employees\",\"kind\":\"object\",\"type\":\"Employees\",\"relationName\":\"EmployeesSchedulePreset\"},{\"name\":\"shifts\",\"kind\":\"object\",\"type\":\"SchedulePresetShifts\",\"relationName\":\"SchedulePresetShiftsSchedulePreset\"}],\"dbName\":\"schedule_presets\"},\"SchedulePresetShifts\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"preset_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"bank_code_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"start_time\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"end_time\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"is_remote\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"week_day\",\"kind\":\"enum\",\"type\":\"Weekday\"},{\"name\":\"bank_code\",\"kind\":\"object\",\"type\":\"BankCodes\",\"relationName\":\"SchedulePresetShiftsBankCodes\"},{\"name\":\"preset\",\"kind\":\"object\",\"type\":\"SchedulePresets\",\"relationName\":\"SchedulePresetShiftsSchedulePreset\"}],\"dbName\":\"schedule_preset_shifts\"},\"Shifts\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"timesheet_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"start_time\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"end_time\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"bank_code_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"is_approved\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"is_remote\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"bank_code\",\"kind\":\"object\",\"type\":\"BankCodes\",\"relationName\":\"ShiftBankCodes\"},{\"name\":\"timesheet\",\"kind\":\"object\",\"type\":\"Timesheets\",\"relationName\":\"ShiftTimesheet\"},{\"name\":\"archive\",\"kind\":\"object\",\"type\":\"ShiftsArchive\",\"relationName\":\"ShiftsToArchive\"}],\"dbName\":\"shifts\"},\"ShiftsArchive\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"shift_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"archive_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"timesheet_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"start_time\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"end_time\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"bank_code_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"shift\",\"kind\":\"object\",\"type\":\"Shifts\",\"relationName\":\"ShiftsToArchive\"}],\"dbName\":\"shifts_archive\"},\"BankCodes\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"categorie\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"modifier\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"bank_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expenses\",\"kind\":\"object\",\"type\":\"Expenses\",\"relationName\":\"ExpenseBankCodes\"},{\"name\":\"leaveRequests\",\"kind\":\"object\",\"type\":\"LeaveRequests\",\"relationName\":\"LeaveRequestBankCodes\"},{\"name\":\"SchedulePresetShifts\",\"kind\":\"object\",\"type\":\"SchedulePresetShifts\",\"relationName\":\"SchedulePresetShiftsBankCodes\"},{\"name\":\"shifts\",\"kind\":\"object\",\"type\":\"Shifts\",\"relationName\":\"ShiftBankCodes\"}],\"dbName\":\"bank_codes\"},\"Expenses\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"timesheet_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"amount\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"is_approved\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"supervisor_comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"bank_code_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attachment\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"mileage\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"attachment_record\",\"kind\":\"object\",\"type\":\"Attachments\",\"relationName\":\"ExpenseAttachment\"},{\"name\":\"bank_code\",\"kind\":\"object\",\"type\":\"BankCodes\",\"relationName\":\"ExpenseBankCodes\"},{\"name\":\"timesheet\",\"kind\":\"object\",\"type\":\"Timesheets\",\"relationName\":\"ExpensesTimesheet\"},{\"name\":\"archive\",\"kind\":\"object\",\"type\":\"ExpensesArchive\",\"relationName\":\"ExpensesToArchive\"}],\"dbName\":\"expenses\"},\"ExpensesArchive\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"expense_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"timesheet_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"archived_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"date\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"amount\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"is_approved\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"supervisor_comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"bank_code_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"comment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attachment\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"mileage\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"attachment_record\",\"kind\":\"object\",\"type\":\"Attachments\",\"relationName\":\"ExpenseArchiveAttachment\"},{\"name\":\"expense\",\"kind\":\"object\",\"type\":\"Expenses\",\"relationName\":\"ExpensesToArchive\"}],\"dbName\":\"expenses_archive\"},\"OAuthSessions\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"application\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"access_token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"access_token_expiry\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"refresh_token_expiry\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"is_revoked\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"scopes\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"sid\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"Users\",\"relationName\":\"UserOAuthSessions\"}],\"dbName\":\"oauth_sessions\"},\"Sessions\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sid\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"data\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":\"sessions\"},\"Blobs\":{\"fields\":[{\"name\":\"sha256\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"size\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"mime\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"storage_path\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"refcount\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"attachments\",\"kind\":\"object\",\"type\":\"Attachments\",\"relationName\":\"AttachmnentBlob\"}],\"dbName\":\"blobs\"},\"Attachments\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"sha256\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"owner_type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"owner_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"AttachmentStatus\"},{\"name\":\"created_by\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"original_name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"retention_policy\",\"kind\":\"enum\",\"type\":\"RetentionPolicy\"},{\"name\":\"AttachmentVariants\",\"kind\":\"object\",\"type\":\"AttachmentVariants\",\"relationName\":\"attachmentVariantAttachment\"},{\"name\":\"blob\",\"kind\":\"object\",\"type\":\"Blobs\",\"relationName\":\"AttachmnentBlob\"},{\"name\":\"expenses\",\"kind\":\"object\",\"type\":\"Expenses\",\"relationName\":\"ExpenseAttachment\"},{\"name\":\"expenses_archive\",\"kind\":\"object\",\"type\":\"ExpensesArchive\",\"relationName\":\"ExpenseArchiveAttachment\"}],\"dbName\":\"attachments\"},\"AttachmentVariants\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"attachment_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"variant\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"bytes\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"width\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"height\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"path\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attachment\",\"kind\":\"object\",\"type\":\"Attachments\",\"relationName\":\"attachmentVariantAttachment\"}],\"dbName\":\"attachment_variants\"},\"Preferences\":{\"fields\":[{\"name\":\"user_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"display_language\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_dark_mode\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"is_employee_list_grid\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"is_lefty_mode\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"is_timesheet_approval_grid\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"notifications\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"Users\",\"relationName\":\"UserPreferences\"}],\"dbName\":\"preferences\"},\"PaidTimeOff\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"employee_id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"vacation_hours\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"banked_hours\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"sick_hours\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"last_updated\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"employee\",\"kind\":\"object\",\"type\":\"Employees\",\"relationName\":\"EmployeePaidTimeOff\"}],\"dbName\":\"paid_time_off\"},\"PayPeriods\":{\"fields\":[{\"name\":\"pay_year\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"pay_period_no\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"period_start\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"period_end\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"payday\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"label\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":\"pay_period\"}},\"enums\":{},\"types\":{}}") + +async function decodeBase64AsWasm(wasmBase64: string): Promise { + const { Buffer } = await import('node:buffer') + const wasmArray = Buffer.from(wasmBase64, 'base64') + return new WebAssembly.Module(wasmArray) +} + +config.compilerWasm = { + getRuntime: async () => await import("@prisma/client/runtime/query_compiler_fast_bg.postgresql.js"), + + getQueryCompilerWasmModule: async () => { + const { wasm } = await import("@prisma/client/runtime/query_compiler_fast_bg.postgresql.wasm-base64.js") + return await decodeBase64AsWasm(wasm) + }, + + importName: "./query_compiler_fast_bg.js" +} + + + +export type LogOptions = + 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never + +export interface PrismaClientConstructor { + /** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more Users + * const users = await prisma.users.findMany() + * ``` + * + * Read more in our [docs](https://pris.ly/d/client). + */ + + new < + Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, + LogOpts extends LogOptions = LogOptions, + OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'], + ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs + >(options: Prisma.Subset ): PrismaClient +} + +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // Fetch zero or more Users + * const users = await prisma.users.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/concepts/components/prisma-client/transactions). + */ + $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise> + + $transaction(fn: (prisma: Omit) => runtime.Types.Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise + + $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, runtime.Types.Utils.Call, { + extArgs: ExtArgs + }>> + + /** + * `prisma.users`: Exposes CRUD operations for the **Users** model. + * Example usage: + * ```ts + * // Fetch zero or more Users + * const users = await prisma.users.findMany() + * ``` + */ + get users(): Prisma.UsersDelegate; + + /** + * `prisma.userModuleAccess`: Exposes CRUD operations for the **userModuleAccess** model. + * Example usage: + * ```ts + * // Fetch zero or more UserModuleAccesses + * const userModuleAccesses = await prisma.userModuleAccess.findMany() + * ``` + */ + get userModuleAccess(): Prisma.userModuleAccessDelegate; + + /** + * `prisma.employees`: Exposes CRUD operations for the **Employees** model. + * Example usage: + * ```ts + * // Fetch zero or more Employees + * const employees = await prisma.employees.findMany() + * ``` + */ + get employees(): Prisma.EmployeesDelegate; + + /** + * `prisma.leaveRequests`: Exposes CRUD operations for the **LeaveRequests** model. + * Example usage: + * ```ts + * // Fetch zero or more LeaveRequests + * const leaveRequests = await prisma.leaveRequests.findMany() + * ``` + */ + get leaveRequests(): Prisma.LeaveRequestsDelegate; + + /** + * `prisma.leaveRequestsArchive`: Exposes CRUD operations for the **LeaveRequestsArchive** model. + * Example usage: + * ```ts + * // Fetch zero or more LeaveRequestsArchives + * const leaveRequestsArchives = await prisma.leaveRequestsArchive.findMany() + * ``` + */ + get leaveRequestsArchive(): Prisma.LeaveRequestsArchiveDelegate; + + /** + * `prisma.timesheets`: Exposes CRUD operations for the **Timesheets** model. + * Example usage: + * ```ts + * // Fetch zero or more Timesheets + * const timesheets = await prisma.timesheets.findMany() + * ``` + */ + get timesheets(): Prisma.TimesheetsDelegate; + + /** + * `prisma.timesheetsArchive`: Exposes CRUD operations for the **TimesheetsArchive** model. + * Example usage: + * ```ts + * // Fetch zero or more TimesheetsArchives + * const timesheetsArchives = await prisma.timesheetsArchive.findMany() + * ``` + */ + get timesheetsArchive(): Prisma.TimesheetsArchiveDelegate; + + /** + * `prisma.schedulePresets`: Exposes CRUD operations for the **SchedulePresets** model. + * Example usage: + * ```ts + * // Fetch zero or more SchedulePresets + * const schedulePresets = await prisma.schedulePresets.findMany() + * ``` + */ + get schedulePresets(): Prisma.SchedulePresetsDelegate; + + /** + * `prisma.schedulePresetShifts`: Exposes CRUD operations for the **SchedulePresetShifts** model. + * Example usage: + * ```ts + * // Fetch zero or more SchedulePresetShifts + * const schedulePresetShifts = await prisma.schedulePresetShifts.findMany() + * ``` + */ + get schedulePresetShifts(): Prisma.SchedulePresetShiftsDelegate; + + /** + * `prisma.shifts`: Exposes CRUD operations for the **Shifts** model. + * Example usage: + * ```ts + * // Fetch zero or more Shifts + * const shifts = await prisma.shifts.findMany() + * ``` + */ + get shifts(): Prisma.ShiftsDelegate; + + /** + * `prisma.shiftsArchive`: Exposes CRUD operations for the **ShiftsArchive** model. + * Example usage: + * ```ts + * // Fetch zero or more ShiftsArchives + * const shiftsArchives = await prisma.shiftsArchive.findMany() + * ``` + */ + get shiftsArchive(): Prisma.ShiftsArchiveDelegate; + + /** + * `prisma.bankCodes`: Exposes CRUD operations for the **BankCodes** model. + * Example usage: + * ```ts + * // Fetch zero or more BankCodes + * const bankCodes = await prisma.bankCodes.findMany() + * ``` + */ + get bankCodes(): Prisma.BankCodesDelegate; + + /** + * `prisma.expenses`: Exposes CRUD operations for the **Expenses** model. + * Example usage: + * ```ts + * // Fetch zero or more Expenses + * const expenses = await prisma.expenses.findMany() + * ``` + */ + get expenses(): Prisma.ExpensesDelegate; + + /** + * `prisma.expensesArchive`: Exposes CRUD operations for the **ExpensesArchive** model. + * Example usage: + * ```ts + * // Fetch zero or more ExpensesArchives + * const expensesArchives = await prisma.expensesArchive.findMany() + * ``` + */ + get expensesArchive(): Prisma.ExpensesArchiveDelegate; + + /** + * `prisma.oAuthSessions`: Exposes CRUD operations for the **OAuthSessions** model. + * Example usage: + * ```ts + * // Fetch zero or more OAuthSessions + * const oAuthSessions = await prisma.oAuthSessions.findMany() + * ``` + */ + get oAuthSessions(): Prisma.OAuthSessionsDelegate; + + /** + * `prisma.sessions`: Exposes CRUD operations for the **Sessions** model. + * Example usage: + * ```ts + * // Fetch zero or more Sessions + * const sessions = await prisma.sessions.findMany() + * ``` + */ + get sessions(): Prisma.SessionsDelegate; + + /** + * `prisma.blobs`: Exposes CRUD operations for the **Blobs** model. + * Example usage: + * ```ts + * // Fetch zero or more Blobs + * const blobs = await prisma.blobs.findMany() + * ``` + */ + get blobs(): Prisma.BlobsDelegate; + + /** + * `prisma.attachments`: Exposes CRUD operations for the **Attachments** model. + * Example usage: + * ```ts + * // Fetch zero or more Attachments + * const attachments = await prisma.attachments.findMany() + * ``` + */ + get attachments(): Prisma.AttachmentsDelegate; + + /** + * `prisma.attachmentVariants`: Exposes CRUD operations for the **AttachmentVariants** model. + * Example usage: + * ```ts + * // Fetch zero or more AttachmentVariants + * const attachmentVariants = await prisma.attachmentVariants.findMany() + * ``` + */ + get attachmentVariants(): Prisma.AttachmentVariantsDelegate; + + /** + * `prisma.preferences`: Exposes CRUD operations for the **Preferences** model. + * Example usage: + * ```ts + * // Fetch zero or more Preferences + * const preferences = await prisma.preferences.findMany() + * ``` + */ + get preferences(): Prisma.PreferencesDelegate; + + /** + * `prisma.paidTimeOff`: Exposes CRUD operations for the **PaidTimeOff** model. + * Example usage: + * ```ts + * // Fetch zero or more PaidTimeOffs + * const paidTimeOffs = await prisma.paidTimeOff.findMany() + * ``` + */ + get paidTimeOff(): Prisma.PaidTimeOffDelegate; + + /** + * `prisma.payPeriods`: Exposes CRUD operations for the **PayPeriods** model. + * Example usage: + * ```ts + * // Fetch zero or more PayPeriods + * const payPeriods = await prisma.payPeriods.findMany() + * ``` + */ + get payPeriods(): Prisma.PayPeriodsDelegate; +} + +export function getPrismaClientClass(): PrismaClientConstructor { + return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor +} diff --git a/prisma/generated/postgres/internal/prismaNamespace.ts b/prisma/generated/postgres/internal/prismaNamespace.ts new file mode 100644 index 0000000..1687a90 --- /dev/null +++ b/prisma/generated/postgres/internal/prismaNamespace.ts @@ -0,0 +1,2751 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * ๐Ÿ›‘ Under no circumstances should you import this file directly! ๐Ÿ›‘ + * + * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * model files in the `model` directory! + */ + +import * as runtime from "@prisma/client/runtime/client" +import type * as Prisma from "../models" +import { type PrismaClient } from "./class" + +export type * from '../models' + +export type DMMF = typeof runtime.DMMF + +export type PrismaPromise = runtime.Types.Public.PrismaPromise + +/** + * Prisma Errors + */ + +export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError +export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError + +export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError +export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError + +export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError +export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError + +export const PrismaClientInitializationError = runtime.PrismaClientInitializationError +export type PrismaClientInitializationError = runtime.PrismaClientInitializationError + +export const PrismaClientValidationError = runtime.PrismaClientValidationError +export type PrismaClientValidationError = runtime.PrismaClientValidationError + +/** + * Re-export of sql-template-tag + */ +export const sql = runtime.sqltag +export const empty = runtime.empty +export const join = runtime.join +export const raw = runtime.raw +export const Sql = runtime.Sql +export type Sql = runtime.Sql + + + +/** + * Decimal.js + */ +export const Decimal = runtime.Decimal +export type Decimal = runtime.Decimal + +export type DecimalJsLike = runtime.DecimalJsLike + +/** +* Extensions +*/ +export type Extension = runtime.Types.Extensions.UserArgs +export const getExtensionContext = runtime.Extensions.getExtensionContext +export type Args = runtime.Types.Public.Args +export type Payload = runtime.Types.Public.Payload +export type Result = runtime.Types.Public.Result +export type Exact = runtime.Types.Public.Exact + +export type PrismaVersion = { + client: string + engine: string +} + +/** + * Prisma Client JS version: 7.3.0 + * Query Engine version: 9d6ad21cbbceab97458517b147a6a09ff43aa735 + */ +export const prismaVersion: PrismaVersion = { + client: "7.3.0", + engine: "9d6ad21cbbceab97458517b147a6a09ff43aa735" +} + +/** + * 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 = { + Users: 'Users', + userModuleAccess: 'userModuleAccess', + Employees: 'Employees', + LeaveRequests: 'LeaveRequests', + LeaveRequestsArchive: 'LeaveRequestsArchive', + Timesheets: 'Timesheets', + TimesheetsArchive: 'TimesheetsArchive', + SchedulePresets: 'SchedulePresets', + SchedulePresetShifts: 'SchedulePresetShifts', + Shifts: 'Shifts', + ShiftsArchive: 'ShiftsArchive', + BankCodes: 'BankCodes', + Expenses: 'Expenses', + ExpensesArchive: 'ExpensesArchive', + OAuthSessions: 'OAuthSessions', + Sessions: 'Sessions', + Blobs: 'Blobs', + Attachments: 'Attachments', + AttachmentVariants: 'AttachmentVariants', + Preferences: 'Preferences', + PaidTimeOff: 'PaidTimeOff', + PayPeriods: 'PayPeriods' +} 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: "users" | "userModuleAccess" | "employees" | "leaveRequests" | "leaveRequestsArchive" | "timesheets" | "timesheetsArchive" | "schedulePresets" | "schedulePresetShifts" | "shifts" | "shiftsArchive" | "bankCodes" | "expenses" | "expensesArchive" | "oAuthSessions" | "sessions" | "blobs" | "attachments" | "attachmentVariants" | "preferences" | "paidTimeOff" | "payPeriods" + txIsolationLevel: TransactionIsolationLevel + } + model: { + Users: { + payload: Prisma.$UsersPayload + fields: Prisma.UsersFieldRefs + operations: { + findUnique: { + args: Prisma.UsersFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.UsersFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.UsersFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.UsersFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.UsersFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.UsersCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.UsersCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.UsersCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.UsersDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.UsersUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.UsersDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.UsersUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.UsersUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.UsersUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.UsersAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.UsersGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.UsersCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + userModuleAccess: { + payload: Prisma.$userModuleAccessPayload + fields: Prisma.userModuleAccessFieldRefs + operations: { + findUnique: { + args: Prisma.userModuleAccessFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.userModuleAccessFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.userModuleAccessFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.userModuleAccessFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.userModuleAccessFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.userModuleAccessCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.userModuleAccessCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.userModuleAccessCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.userModuleAccessDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.userModuleAccessUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.userModuleAccessDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.userModuleAccessUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.userModuleAccessUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.userModuleAccessUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.UserModuleAccessAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.userModuleAccessGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.userModuleAccessCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Employees: { + payload: Prisma.$EmployeesPayload + fields: Prisma.EmployeesFieldRefs + operations: { + findUnique: { + args: Prisma.EmployeesFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.EmployeesFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.EmployeesFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.EmployeesFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.EmployeesFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.EmployeesCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.EmployeesCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.EmployeesCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.EmployeesDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.EmployeesUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.EmployeesDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.EmployeesUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.EmployeesUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.EmployeesUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.EmployeesAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.EmployeesGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.EmployeesCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + LeaveRequests: { + payload: Prisma.$LeaveRequestsPayload + fields: Prisma.LeaveRequestsFieldRefs + operations: { + findUnique: { + args: Prisma.LeaveRequestsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.LeaveRequestsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.LeaveRequestsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.LeaveRequestsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.LeaveRequestsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.LeaveRequestsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.LeaveRequestsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.LeaveRequestsCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.LeaveRequestsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.LeaveRequestsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.LeaveRequestsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.LeaveRequestsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.LeaveRequestsUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.LeaveRequestsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.LeaveRequestsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.LeaveRequestsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.LeaveRequestsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + LeaveRequestsArchive: { + payload: Prisma.$LeaveRequestsArchivePayload + fields: Prisma.LeaveRequestsArchiveFieldRefs + operations: { + findUnique: { + args: Prisma.LeaveRequestsArchiveFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.LeaveRequestsArchiveFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.LeaveRequestsArchiveFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.LeaveRequestsArchiveFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.LeaveRequestsArchiveFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.LeaveRequestsArchiveCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.LeaveRequestsArchiveCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.LeaveRequestsArchiveCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.LeaveRequestsArchiveDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.LeaveRequestsArchiveUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.LeaveRequestsArchiveDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.LeaveRequestsArchiveUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.LeaveRequestsArchiveUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.LeaveRequestsArchiveUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.LeaveRequestsArchiveAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.LeaveRequestsArchiveGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.LeaveRequestsArchiveCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Timesheets: { + payload: Prisma.$TimesheetsPayload + fields: Prisma.TimesheetsFieldRefs + operations: { + findUnique: { + args: Prisma.TimesheetsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.TimesheetsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.TimesheetsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.TimesheetsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.TimesheetsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.TimesheetsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.TimesheetsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.TimesheetsCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.TimesheetsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.TimesheetsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.TimesheetsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.TimesheetsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.TimesheetsUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.TimesheetsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.TimesheetsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.TimesheetsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.TimesheetsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + TimesheetsArchive: { + payload: Prisma.$TimesheetsArchivePayload + fields: Prisma.TimesheetsArchiveFieldRefs + operations: { + findUnique: { + args: Prisma.TimesheetsArchiveFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.TimesheetsArchiveFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.TimesheetsArchiveFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.TimesheetsArchiveFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.TimesheetsArchiveFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.TimesheetsArchiveCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.TimesheetsArchiveCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.TimesheetsArchiveCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.TimesheetsArchiveDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.TimesheetsArchiveUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.TimesheetsArchiveDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.TimesheetsArchiveUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.TimesheetsArchiveUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.TimesheetsArchiveUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.TimesheetsArchiveAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.TimesheetsArchiveGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.TimesheetsArchiveCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + SchedulePresets: { + payload: Prisma.$SchedulePresetsPayload + fields: Prisma.SchedulePresetsFieldRefs + operations: { + findUnique: { + args: Prisma.SchedulePresetsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.SchedulePresetsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.SchedulePresetsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.SchedulePresetsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.SchedulePresetsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.SchedulePresetsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.SchedulePresetsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.SchedulePresetsCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.SchedulePresetsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.SchedulePresetsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.SchedulePresetsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.SchedulePresetsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.SchedulePresetsUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.SchedulePresetsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.SchedulePresetsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.SchedulePresetsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.SchedulePresetsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + SchedulePresetShifts: { + payload: Prisma.$SchedulePresetShiftsPayload + fields: Prisma.SchedulePresetShiftsFieldRefs + operations: { + findUnique: { + args: Prisma.SchedulePresetShiftsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.SchedulePresetShiftsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.SchedulePresetShiftsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.SchedulePresetShiftsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.SchedulePresetShiftsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.SchedulePresetShiftsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.SchedulePresetShiftsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.SchedulePresetShiftsCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.SchedulePresetShiftsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.SchedulePresetShiftsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.SchedulePresetShiftsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.SchedulePresetShiftsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.SchedulePresetShiftsUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.SchedulePresetShiftsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.SchedulePresetShiftsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.SchedulePresetShiftsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.SchedulePresetShiftsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Shifts: { + payload: Prisma.$ShiftsPayload + fields: Prisma.ShiftsFieldRefs + operations: { + findUnique: { + args: Prisma.ShiftsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ShiftsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ShiftsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ShiftsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ShiftsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ShiftsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ShiftsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ShiftsCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ShiftsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ShiftsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ShiftsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ShiftsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ShiftsUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ShiftsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ShiftsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ShiftsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ShiftsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ShiftsArchive: { + payload: Prisma.$ShiftsArchivePayload + fields: Prisma.ShiftsArchiveFieldRefs + operations: { + findUnique: { + args: Prisma.ShiftsArchiveFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ShiftsArchiveFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ShiftsArchiveFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ShiftsArchiveFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ShiftsArchiveFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ShiftsArchiveCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ShiftsArchiveCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ShiftsArchiveCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ShiftsArchiveDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ShiftsArchiveUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ShiftsArchiveDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ShiftsArchiveUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ShiftsArchiveUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ShiftsArchiveUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ShiftsArchiveAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ShiftsArchiveGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ShiftsArchiveCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + BankCodes: { + payload: Prisma.$BankCodesPayload + fields: Prisma.BankCodesFieldRefs + operations: { + findUnique: { + args: Prisma.BankCodesFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.BankCodesFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.BankCodesFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.BankCodesFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.BankCodesFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.BankCodesCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.BankCodesCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.BankCodesCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.BankCodesDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.BankCodesUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.BankCodesDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.BankCodesUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.BankCodesUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.BankCodesUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.BankCodesAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.BankCodesGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.BankCodesCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Expenses: { + payload: Prisma.$ExpensesPayload + fields: Prisma.ExpensesFieldRefs + operations: { + findUnique: { + args: Prisma.ExpensesFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ExpensesFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ExpensesFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ExpensesFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ExpensesFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ExpensesCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ExpensesCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ExpensesCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ExpensesDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ExpensesUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ExpensesDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ExpensesUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ExpensesUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ExpensesUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ExpensesAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ExpensesGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ExpensesCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + ExpensesArchive: { + payload: Prisma.$ExpensesArchivePayload + fields: Prisma.ExpensesArchiveFieldRefs + operations: { + findUnique: { + args: Prisma.ExpensesArchiveFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ExpensesArchiveFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ExpensesArchiveFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ExpensesArchiveFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ExpensesArchiveFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ExpensesArchiveCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ExpensesArchiveCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ExpensesArchiveCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ExpensesArchiveDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ExpensesArchiveUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ExpensesArchiveDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ExpensesArchiveUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ExpensesArchiveUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ExpensesArchiveUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ExpensesArchiveAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ExpensesArchiveGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ExpensesArchiveCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + OAuthSessions: { + payload: Prisma.$OAuthSessionsPayload + fields: Prisma.OAuthSessionsFieldRefs + operations: { + findUnique: { + args: Prisma.OAuthSessionsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.OAuthSessionsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.OAuthSessionsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.OAuthSessionsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.OAuthSessionsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.OAuthSessionsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.OAuthSessionsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.OAuthSessionsCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.OAuthSessionsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.OAuthSessionsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.OAuthSessionsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.OAuthSessionsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.OAuthSessionsUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.OAuthSessionsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.OAuthSessionsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.OAuthSessionsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.OAuthSessionsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Sessions: { + payload: Prisma.$SessionsPayload + fields: Prisma.SessionsFieldRefs + operations: { + findUnique: { + args: Prisma.SessionsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.SessionsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.SessionsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.SessionsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.SessionsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.SessionsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.SessionsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.SessionsCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.SessionsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.SessionsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.SessionsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.SessionsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.SessionsUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.SessionsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.SessionsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.SessionsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.SessionsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Blobs: { + payload: Prisma.$BlobsPayload + fields: Prisma.BlobsFieldRefs + operations: { + findUnique: { + args: Prisma.BlobsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.BlobsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.BlobsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.BlobsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.BlobsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.BlobsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.BlobsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.BlobsCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.BlobsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.BlobsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.BlobsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.BlobsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.BlobsUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.BlobsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.BlobsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.BlobsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.BlobsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Attachments: { + payload: Prisma.$AttachmentsPayload + fields: Prisma.AttachmentsFieldRefs + operations: { + findUnique: { + args: Prisma.AttachmentsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AttachmentsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AttachmentsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AttachmentsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AttachmentsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AttachmentsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AttachmentsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AttachmentsCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AttachmentsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AttachmentsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AttachmentsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AttachmentsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AttachmentsUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AttachmentsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AttachmentsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AttachmentsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AttachmentsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + AttachmentVariants: { + payload: Prisma.$AttachmentVariantsPayload + fields: Prisma.AttachmentVariantsFieldRefs + operations: { + findUnique: { + args: Prisma.AttachmentVariantsFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AttachmentVariantsFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.AttachmentVariantsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AttachmentVariantsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.AttachmentVariantsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.AttachmentVariantsCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.AttachmentVariantsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AttachmentVariantsCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.AttachmentVariantsDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.AttachmentVariantsUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AttachmentVariantsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AttachmentVariantsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AttachmentVariantsUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AttachmentVariantsUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.AttachmentVariantsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.AttachmentVariantsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.AttachmentVariantsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Preferences: { + payload: Prisma.$PreferencesPayload + fields: Prisma.PreferencesFieldRefs + operations: { + findUnique: { + args: Prisma.PreferencesFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.PreferencesFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.PreferencesFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.PreferencesFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.PreferencesFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.PreferencesCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.PreferencesCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.PreferencesCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.PreferencesDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.PreferencesUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.PreferencesDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.PreferencesUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.PreferencesUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.PreferencesUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.PreferencesAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.PreferencesGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.PreferencesCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + PaidTimeOff: { + payload: Prisma.$PaidTimeOffPayload + fields: Prisma.PaidTimeOffFieldRefs + operations: { + findUnique: { + args: Prisma.PaidTimeOffFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.PaidTimeOffFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.PaidTimeOffFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.PaidTimeOffFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.PaidTimeOffFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.PaidTimeOffCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.PaidTimeOffCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.PaidTimeOffCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.PaidTimeOffDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.PaidTimeOffUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.PaidTimeOffDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.PaidTimeOffUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.PaidTimeOffUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.PaidTimeOffUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.PaidTimeOffAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.PaidTimeOffGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.PaidTimeOffCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + PayPeriods: { + payload: Prisma.$PayPeriodsPayload + fields: Prisma.PayPeriodsFieldRefs + operations: { + findFirst: { + args: Prisma.PayPeriodsFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.PayPeriodsFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.PayPeriodsFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + aggregate: { + args: Prisma.PayPeriodsAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.PayPeriodsGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.PayPeriodsCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + } +} & { + other: { + payload: any + operations: { + $executeRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]], + result: any + } + $executeRawUnsafe: { + args: [query: string, ...values: any[]], + result: any + } + $queryRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]], + result: any + } + $queryRawUnsafe: { + args: [query: string, ...values: any[]], + result: any + } + } + } +} + +/** + * Enums + */ + +export const TransactionIsolationLevel = runtime.makeStrictEnum({ + ReadUncommitted: 'ReadUncommitted', + ReadCommitted: 'ReadCommitted', + RepeatableRead: 'RepeatableRead', + Serializable: 'Serializable' +} as const) + +export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + + +export const UsersScalarFieldEnum = { + id: 'id', + first_name: 'first_name', + last_name: 'last_name', + email: 'email', + phone_number: 'phone_number', + residence: 'residence', + role: 'role' +} as const + +export type UsersScalarFieldEnum = (typeof UsersScalarFieldEnum)[keyof typeof UsersScalarFieldEnum] + + +export const UserModuleAccessScalarFieldEnum = { + id: 'id', + user_id: 'user_id', + timesheets: 'timesheets', + timesheets_approval: 'timesheets_approval', + employee_list: 'employee_list', + employee_management: 'employee_management', + personal_profile: 'personal_profile', + dashboard: 'dashboard', + chatbot: 'chatbot' +} as const + +export type UserModuleAccessScalarFieldEnum = (typeof UserModuleAccessScalarFieldEnum)[keyof typeof UserModuleAccessScalarFieldEnum] + + +export const EmployeesScalarFieldEnum = { + id: 'id', + user_id: 'user_id', + external_payroll_id: 'external_payroll_id', + company_code: 'company_code', + daily_expected_hours: 'daily_expected_hours', + first_work_day: 'first_work_day', + last_work_day: 'last_work_day', + supervisor_id: 'supervisor_id', + job_title: 'job_title', + is_supervisor: 'is_supervisor', + schedule_preset_id: 'schedule_preset_id' +} as const + +export type EmployeesScalarFieldEnum = (typeof EmployeesScalarFieldEnum)[keyof typeof EmployeesScalarFieldEnum] + + +export const LeaveRequestsScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + leave_type: 'leave_type', + comment: 'comment', + approval_status: 'approval_status', + bank_code_id: 'bank_code_id', + payable_hours: 'payable_hours', + requested_hours: 'requested_hours', + dates: 'dates' +} as const + +export type LeaveRequestsScalarFieldEnum = (typeof LeaveRequestsScalarFieldEnum)[keyof typeof LeaveRequestsScalarFieldEnum] + + +export const LeaveRequestsArchiveScalarFieldEnum = { + id: 'id', + leave_request_id: 'leave_request_id', + archived_at: 'archived_at', + employee_id: 'employee_id', + leave_type: 'leave_type', + comment: 'comment', + approval_status: 'approval_status', + date: 'date', + payable_hours: 'payable_hours', + requested_hours: 'requested_hours' +} as const + +export type LeaveRequestsArchiveScalarFieldEnum = (typeof LeaveRequestsArchiveScalarFieldEnum)[keyof typeof LeaveRequestsArchiveScalarFieldEnum] + + +export const TimesheetsScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + is_approved: 'is_approved', + start_date: 'start_date' +} as const + +export type TimesheetsScalarFieldEnum = (typeof TimesheetsScalarFieldEnum)[keyof typeof TimesheetsScalarFieldEnum] + + +export const TimesheetsArchiveScalarFieldEnum = { + id: 'id', + timesheet_id: 'timesheet_id', + archive_at: 'archive_at', + employee_id: 'employee_id', + is_approved: 'is_approved' +} as const + +export type TimesheetsArchiveScalarFieldEnum = (typeof TimesheetsArchiveScalarFieldEnum)[keyof typeof TimesheetsArchiveScalarFieldEnum] + + +export const SchedulePresetsScalarFieldEnum = { + id: 'id', + name: 'name', + is_default: 'is_default' +} as const + +export type SchedulePresetsScalarFieldEnum = (typeof SchedulePresetsScalarFieldEnum)[keyof typeof SchedulePresetsScalarFieldEnum] + + +export const SchedulePresetShiftsScalarFieldEnum = { + id: 'id', + preset_id: 'preset_id', + bank_code_id: 'bank_code_id', + start_time: 'start_time', + end_time: 'end_time', + is_remote: 'is_remote', + week_day: 'week_day' +} as const + +export type SchedulePresetShiftsScalarFieldEnum = (typeof SchedulePresetShiftsScalarFieldEnum)[keyof typeof SchedulePresetShiftsScalarFieldEnum] + + +export const ShiftsScalarFieldEnum = { + id: 'id', + timesheet_id: 'timesheet_id', + date: 'date', + start_time: 'start_time', + end_time: 'end_time', + bank_code_id: 'bank_code_id', + is_approved: 'is_approved', + is_remote: 'is_remote', + comment: 'comment' +} as const + +export type ShiftsScalarFieldEnum = (typeof ShiftsScalarFieldEnum)[keyof typeof ShiftsScalarFieldEnum] + + +export const ShiftsArchiveScalarFieldEnum = { + id: 'id', + shift_id: 'shift_id', + archive_at: 'archive_at', + timesheet_id: 'timesheet_id', + date: 'date', + start_time: 'start_time', + end_time: 'end_time', + bank_code_id: 'bank_code_id', + comment: 'comment' +} as const + +export type ShiftsArchiveScalarFieldEnum = (typeof ShiftsArchiveScalarFieldEnum)[keyof typeof ShiftsArchiveScalarFieldEnum] + + +export const BankCodesScalarFieldEnum = { + id: 'id', + type: 'type', + categorie: 'categorie', + modifier: 'modifier', + bank_code: 'bank_code' +} as const + +export type BankCodesScalarFieldEnum = (typeof BankCodesScalarFieldEnum)[keyof typeof BankCodesScalarFieldEnum] + + +export const ExpensesScalarFieldEnum = { + id: 'id', + timesheet_id: 'timesheet_id', + date: 'date', + amount: 'amount', + is_approved: 'is_approved', + supervisor_comment: 'supervisor_comment', + bank_code_id: 'bank_code_id', + comment: 'comment', + attachment: 'attachment', + mileage: 'mileage' +} as const + +export type ExpensesScalarFieldEnum = (typeof ExpensesScalarFieldEnum)[keyof typeof ExpensesScalarFieldEnum] + + +export const ExpensesArchiveScalarFieldEnum = { + id: 'id', + expense_id: 'expense_id', + timesheet_id: 'timesheet_id', + archived_at: 'archived_at', + date: 'date', + amount: 'amount', + is_approved: 'is_approved', + supervisor_comment: 'supervisor_comment', + bank_code_id: 'bank_code_id', + comment: 'comment', + attachment: 'attachment', + mileage: 'mileage' +} as const + +export type ExpensesArchiveScalarFieldEnum = (typeof ExpensesArchiveScalarFieldEnum)[keyof typeof ExpensesArchiveScalarFieldEnum] + + +export const OAuthSessionsScalarFieldEnum = { + id: 'id', + user_id: 'user_id', + application: 'application', + access_token: 'access_token', + refresh_token: 'refresh_token', + access_token_expiry: 'access_token_expiry', + refresh_token_expiry: 'refresh_token_expiry', + is_revoked: 'is_revoked', + scopes: 'scopes', + created_at: 'created_at', + updated_at: 'updated_at', + sid: 'sid' +} as const + +export type OAuthSessionsScalarFieldEnum = (typeof OAuthSessionsScalarFieldEnum)[keyof typeof OAuthSessionsScalarFieldEnum] + + +export const SessionsScalarFieldEnum = { + id: 'id', + sid: 'sid', + data: 'data', + expiresAt: 'expiresAt' +} as const + +export type SessionsScalarFieldEnum = (typeof SessionsScalarFieldEnum)[keyof typeof SessionsScalarFieldEnum] + + +export const BlobsScalarFieldEnum = { + sha256: 'sha256', + size: 'size', + mime: 'mime', + storage_path: 'storage_path', + refcount: 'refcount', + created_at: 'created_at' +} as const + +export type BlobsScalarFieldEnum = (typeof BlobsScalarFieldEnum)[keyof typeof BlobsScalarFieldEnum] + + +export const AttachmentsScalarFieldEnum = { + id: 'id', + sha256: 'sha256', + owner_type: 'owner_type', + owner_id: 'owner_id', + status: 'status', + created_by: 'created_by', + created_at: 'created_at', + original_name: 'original_name', + retention_policy: 'retention_policy' +} as const + +export type AttachmentsScalarFieldEnum = (typeof AttachmentsScalarFieldEnum)[keyof typeof AttachmentsScalarFieldEnum] + + +export const AttachmentVariantsScalarFieldEnum = { + id: 'id', + attachment_id: 'attachment_id', + variant: 'variant', + bytes: 'bytes', + width: 'width', + height: 'height', + created_at: 'created_at', + path: 'path' +} as const + +export type AttachmentVariantsScalarFieldEnum = (typeof AttachmentVariantsScalarFieldEnum)[keyof typeof AttachmentVariantsScalarFieldEnum] + + +export const PreferencesScalarFieldEnum = { + user_id: 'user_id', + id: 'id', + display_language: 'display_language', + is_dark_mode: 'is_dark_mode', + is_employee_list_grid: 'is_employee_list_grid', + is_lefty_mode: 'is_lefty_mode', + is_timesheet_approval_grid: 'is_timesheet_approval_grid', + notifications: 'notifications' +} as const + +export type PreferencesScalarFieldEnum = (typeof PreferencesScalarFieldEnum)[keyof typeof PreferencesScalarFieldEnum] + + +export const PaidTimeOffScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + vacation_hours: 'vacation_hours', + banked_hours: 'banked_hours', + sick_hours: 'sick_hours', + last_updated: 'last_updated' +} as const + +export type PaidTimeOffScalarFieldEnum = (typeof PaidTimeOffScalarFieldEnum)[keyof typeof PaidTimeOffScalarFieldEnum] + + +export const PayPeriodsScalarFieldEnum = { + pay_year: 'pay_year', + pay_period_no: 'pay_period_no', + period_start: 'period_start', + period_end: 'period_end', + payday: 'payday', + label: 'label' +} as const + +export type PayPeriodsScalarFieldEnum = (typeof PayPeriodsScalarFieldEnum)[keyof typeof PayPeriodsScalarFieldEnum] + + +export const SortOrder = { + asc: 'asc', + desc: 'desc' +} as const + +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + + +export const JsonNullValueInput = { + JsonNull: JsonNull +} as const + +export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] + + +export const QueryMode = { + default: 'default', + insensitive: 'insensitive' +} as const + +export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] + + +export const NullsOrder = { + first: 'first', + last: 'last' +} as const + +export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] + + +export const JsonNullValueFilter = { + DbNull: DbNull, + JsonNull: JsonNull, + AnyNull: AnyNull +} as const + +export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] + + + +/** + * Field references + */ + + +/** + * Reference to a field of type 'String' + */ +export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> + + + +/** + * Reference to a field of type 'String[]' + */ +export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> + + + +/** + * Reference to a field of type 'Roles' + */ +export type EnumRolesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Roles'> + + + +/** + * Reference to a field of type 'Roles[]' + */ +export type ListEnumRolesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Roles[]'> + + + +/** + * Reference to a field of type 'Int' + */ +export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> + + + +/** + * Reference to a field of type 'Int[]' + */ +export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> + + + +/** + * Reference to a field of type 'Boolean' + */ +export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> + + + +/** + * Reference to a field of type 'DateTime' + */ +export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> + + + +/** + * Reference to a field of type 'DateTime[]' + */ +export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> + + + +/** + * Reference to a field of type 'LeaveTypes' + */ +export type EnumLeaveTypesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'LeaveTypes'> + + + +/** + * Reference to a field of type 'LeaveTypes[]' + */ +export type ListEnumLeaveTypesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'LeaveTypes[]'> + + + +/** + * Reference to a field of type 'LeaveApprovalStatus' + */ +export type EnumLeaveApprovalStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'LeaveApprovalStatus'> + + + +/** + * Reference to a field of type 'LeaveApprovalStatus[]' + */ +export type ListEnumLeaveApprovalStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'LeaveApprovalStatus[]'> + + + +/** + * Reference to a field of type 'Decimal' + */ +export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'> + + + +/** + * Reference to a field of type 'Decimal[]' + */ +export type ListDecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal[]'> + + + +/** + * Reference to a field of type 'Weekday' + */ +export type EnumWeekdayFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Weekday'> + + + +/** + * Reference to a field of type 'Weekday[]' + */ +export type ListEnumWeekdayFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Weekday[]'> + + + +/** + * Reference to a field of type 'Float' + */ +export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> + + + +/** + * Reference to a field of type 'Float[]' + */ +export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> + + + +/** + * Reference to a field of type 'Json' + */ +export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'> + + + +/** + * Reference to a field of type 'QueryMode' + */ +export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'> + + + +/** + * Reference to a field of type 'AttachmentStatus' + */ +export type EnumAttachmentStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AttachmentStatus'> + + + +/** + * Reference to a field of type 'AttachmentStatus[]' + */ +export type ListEnumAttachmentStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AttachmentStatus[]'> + + + +/** + * Reference to a field of type 'RetentionPolicy' + */ +export type EnumRetentionPolicyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RetentionPolicy'> + + + +/** + * Reference to a field of type 'RetentionPolicy[]' + */ +export type ListEnumRetentionPolicyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RetentionPolicy[]'> + + +/** + * 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 = { + users?: Prisma.UsersOmit + userModuleAccess?: Prisma.userModuleAccessOmit + employees?: Prisma.EmployeesOmit + leaveRequests?: Prisma.LeaveRequestsOmit + leaveRequestsArchive?: Prisma.LeaveRequestsArchiveOmit + timesheets?: Prisma.TimesheetsOmit + timesheetsArchive?: Prisma.TimesheetsArchiveOmit + schedulePresets?: Prisma.SchedulePresetsOmit + schedulePresetShifts?: Prisma.SchedulePresetShiftsOmit + shifts?: Prisma.ShiftsOmit + shiftsArchive?: Prisma.ShiftsArchiveOmit + bankCodes?: Prisma.BankCodesOmit + expenses?: Prisma.ExpensesOmit + expensesArchive?: Prisma.ExpensesArchiveOmit + oAuthSessions?: Prisma.OAuthSessionsOmit + sessions?: Prisma.SessionsOmit + blobs?: Prisma.BlobsOmit + attachments?: Prisma.AttachmentsOmit + attachmentVariants?: Prisma.AttachmentVariantsOmit + preferences?: Prisma.PreferencesOmit + paidTimeOff?: Prisma.PaidTimeOffOmit + payPeriods?: Prisma.PayPeriodsOmit +} + +/* 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/prisma/generated/postgres/internal/prismaNamespaceBrowser.ts b/prisma/generated/postgres/internal/prismaNamespaceBrowser.ts new file mode 100644 index 0000000..3c9d91a --- /dev/null +++ b/prisma/generated/postgres/internal/prismaNamespaceBrowser.ts @@ -0,0 +1,433 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * ๐Ÿ›‘ Under no circumstances should you import this file directly! ๐Ÿ›‘ + * + * All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * model files in the `model` directory! + */ + +import * as runtime from "@prisma/client/runtime/index-browser" + +export type * from '../models' +export type * from './prismaNamespace' + +export const Decimal = runtime.Decimal + + +export const NullTypes = { + DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), + JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), + AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), +} +/** + * Helper for filtering JSON entries that have `null` on the database (empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const DbNull = runtime.DbNull + +/** + * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const JsonNull = runtime.JsonNull + +/** + * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` + * + * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field + */ +export const AnyNull = runtime.AnyNull + + +export const ModelName = { + Users: 'Users', + userModuleAccess: 'userModuleAccess', + Employees: 'Employees', + LeaveRequests: 'LeaveRequests', + LeaveRequestsArchive: 'LeaveRequestsArchive', + Timesheets: 'Timesheets', + TimesheetsArchive: 'TimesheetsArchive', + SchedulePresets: 'SchedulePresets', + SchedulePresetShifts: 'SchedulePresetShifts', + Shifts: 'Shifts', + ShiftsArchive: 'ShiftsArchive', + BankCodes: 'BankCodes', + Expenses: 'Expenses', + ExpensesArchive: 'ExpensesArchive', + OAuthSessions: 'OAuthSessions', + Sessions: 'Sessions', + Blobs: 'Blobs', + Attachments: 'Attachments', + AttachmentVariants: 'AttachmentVariants', + Preferences: 'Preferences', + PaidTimeOff: 'PaidTimeOff', + PayPeriods: 'PayPeriods' +} as const + +export type ModelName = (typeof ModelName)[keyof typeof ModelName] + +/* + * Enums + */ + +export const TransactionIsolationLevel = runtime.makeStrictEnum({ + ReadUncommitted: 'ReadUncommitted', + ReadCommitted: 'ReadCommitted', + RepeatableRead: 'RepeatableRead', + Serializable: 'Serializable' +} as const) + +export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + + +export const UsersScalarFieldEnum = { + id: 'id', + first_name: 'first_name', + last_name: 'last_name', + email: 'email', + phone_number: 'phone_number', + residence: 'residence', + role: 'role' +} as const + +export type UsersScalarFieldEnum = (typeof UsersScalarFieldEnum)[keyof typeof UsersScalarFieldEnum] + + +export const UserModuleAccessScalarFieldEnum = { + id: 'id', + user_id: 'user_id', + timesheets: 'timesheets', + timesheets_approval: 'timesheets_approval', + employee_list: 'employee_list', + employee_management: 'employee_management', + personal_profile: 'personal_profile', + dashboard: 'dashboard', + chatbot: 'chatbot' +} as const + +export type UserModuleAccessScalarFieldEnum = (typeof UserModuleAccessScalarFieldEnum)[keyof typeof UserModuleAccessScalarFieldEnum] + + +export const EmployeesScalarFieldEnum = { + id: 'id', + user_id: 'user_id', + external_payroll_id: 'external_payroll_id', + company_code: 'company_code', + daily_expected_hours: 'daily_expected_hours', + first_work_day: 'first_work_day', + last_work_day: 'last_work_day', + supervisor_id: 'supervisor_id', + job_title: 'job_title', + is_supervisor: 'is_supervisor', + schedule_preset_id: 'schedule_preset_id' +} as const + +export type EmployeesScalarFieldEnum = (typeof EmployeesScalarFieldEnum)[keyof typeof EmployeesScalarFieldEnum] + + +export const LeaveRequestsScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + leave_type: 'leave_type', + comment: 'comment', + approval_status: 'approval_status', + bank_code_id: 'bank_code_id', + payable_hours: 'payable_hours', + requested_hours: 'requested_hours', + dates: 'dates' +} as const + +export type LeaveRequestsScalarFieldEnum = (typeof LeaveRequestsScalarFieldEnum)[keyof typeof LeaveRequestsScalarFieldEnum] + + +export const LeaveRequestsArchiveScalarFieldEnum = { + id: 'id', + leave_request_id: 'leave_request_id', + archived_at: 'archived_at', + employee_id: 'employee_id', + leave_type: 'leave_type', + comment: 'comment', + approval_status: 'approval_status', + date: 'date', + payable_hours: 'payable_hours', + requested_hours: 'requested_hours' +} as const + +export type LeaveRequestsArchiveScalarFieldEnum = (typeof LeaveRequestsArchiveScalarFieldEnum)[keyof typeof LeaveRequestsArchiveScalarFieldEnum] + + +export const TimesheetsScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + is_approved: 'is_approved', + start_date: 'start_date' +} as const + +export type TimesheetsScalarFieldEnum = (typeof TimesheetsScalarFieldEnum)[keyof typeof TimesheetsScalarFieldEnum] + + +export const TimesheetsArchiveScalarFieldEnum = { + id: 'id', + timesheet_id: 'timesheet_id', + archive_at: 'archive_at', + employee_id: 'employee_id', + is_approved: 'is_approved' +} as const + +export type TimesheetsArchiveScalarFieldEnum = (typeof TimesheetsArchiveScalarFieldEnum)[keyof typeof TimesheetsArchiveScalarFieldEnum] + + +export const SchedulePresetsScalarFieldEnum = { + id: 'id', + name: 'name', + is_default: 'is_default' +} as const + +export type SchedulePresetsScalarFieldEnum = (typeof SchedulePresetsScalarFieldEnum)[keyof typeof SchedulePresetsScalarFieldEnum] + + +export const SchedulePresetShiftsScalarFieldEnum = { + id: 'id', + preset_id: 'preset_id', + bank_code_id: 'bank_code_id', + start_time: 'start_time', + end_time: 'end_time', + is_remote: 'is_remote', + week_day: 'week_day' +} as const + +export type SchedulePresetShiftsScalarFieldEnum = (typeof SchedulePresetShiftsScalarFieldEnum)[keyof typeof SchedulePresetShiftsScalarFieldEnum] + + +export const ShiftsScalarFieldEnum = { + id: 'id', + timesheet_id: 'timesheet_id', + date: 'date', + start_time: 'start_time', + end_time: 'end_time', + bank_code_id: 'bank_code_id', + is_approved: 'is_approved', + is_remote: 'is_remote', + comment: 'comment' +} as const + +export type ShiftsScalarFieldEnum = (typeof ShiftsScalarFieldEnum)[keyof typeof ShiftsScalarFieldEnum] + + +export const ShiftsArchiveScalarFieldEnum = { + id: 'id', + shift_id: 'shift_id', + archive_at: 'archive_at', + timesheet_id: 'timesheet_id', + date: 'date', + start_time: 'start_time', + end_time: 'end_time', + bank_code_id: 'bank_code_id', + comment: 'comment' +} as const + +export type ShiftsArchiveScalarFieldEnum = (typeof ShiftsArchiveScalarFieldEnum)[keyof typeof ShiftsArchiveScalarFieldEnum] + + +export const BankCodesScalarFieldEnum = { + id: 'id', + type: 'type', + categorie: 'categorie', + modifier: 'modifier', + bank_code: 'bank_code' +} as const + +export type BankCodesScalarFieldEnum = (typeof BankCodesScalarFieldEnum)[keyof typeof BankCodesScalarFieldEnum] + + +export const ExpensesScalarFieldEnum = { + id: 'id', + timesheet_id: 'timesheet_id', + date: 'date', + amount: 'amount', + is_approved: 'is_approved', + supervisor_comment: 'supervisor_comment', + bank_code_id: 'bank_code_id', + comment: 'comment', + attachment: 'attachment', + mileage: 'mileage' +} as const + +export type ExpensesScalarFieldEnum = (typeof ExpensesScalarFieldEnum)[keyof typeof ExpensesScalarFieldEnum] + + +export const ExpensesArchiveScalarFieldEnum = { + id: 'id', + expense_id: 'expense_id', + timesheet_id: 'timesheet_id', + archived_at: 'archived_at', + date: 'date', + amount: 'amount', + is_approved: 'is_approved', + supervisor_comment: 'supervisor_comment', + bank_code_id: 'bank_code_id', + comment: 'comment', + attachment: 'attachment', + mileage: 'mileage' +} as const + +export type ExpensesArchiveScalarFieldEnum = (typeof ExpensesArchiveScalarFieldEnum)[keyof typeof ExpensesArchiveScalarFieldEnum] + + +export const OAuthSessionsScalarFieldEnum = { + id: 'id', + user_id: 'user_id', + application: 'application', + access_token: 'access_token', + refresh_token: 'refresh_token', + access_token_expiry: 'access_token_expiry', + refresh_token_expiry: 'refresh_token_expiry', + is_revoked: 'is_revoked', + scopes: 'scopes', + created_at: 'created_at', + updated_at: 'updated_at', + sid: 'sid' +} as const + +export type OAuthSessionsScalarFieldEnum = (typeof OAuthSessionsScalarFieldEnum)[keyof typeof OAuthSessionsScalarFieldEnum] + + +export const SessionsScalarFieldEnum = { + id: 'id', + sid: 'sid', + data: 'data', + expiresAt: 'expiresAt' +} as const + +export type SessionsScalarFieldEnum = (typeof SessionsScalarFieldEnum)[keyof typeof SessionsScalarFieldEnum] + + +export const BlobsScalarFieldEnum = { + sha256: 'sha256', + size: 'size', + mime: 'mime', + storage_path: 'storage_path', + refcount: 'refcount', + created_at: 'created_at' +} as const + +export type BlobsScalarFieldEnum = (typeof BlobsScalarFieldEnum)[keyof typeof BlobsScalarFieldEnum] + + +export const AttachmentsScalarFieldEnum = { + id: 'id', + sha256: 'sha256', + owner_type: 'owner_type', + owner_id: 'owner_id', + status: 'status', + created_by: 'created_by', + created_at: 'created_at', + original_name: 'original_name', + retention_policy: 'retention_policy' +} as const + +export type AttachmentsScalarFieldEnum = (typeof AttachmentsScalarFieldEnum)[keyof typeof AttachmentsScalarFieldEnum] + + +export const AttachmentVariantsScalarFieldEnum = { + id: 'id', + attachment_id: 'attachment_id', + variant: 'variant', + bytes: 'bytes', + width: 'width', + height: 'height', + created_at: 'created_at', + path: 'path' +} as const + +export type AttachmentVariantsScalarFieldEnum = (typeof AttachmentVariantsScalarFieldEnum)[keyof typeof AttachmentVariantsScalarFieldEnum] + + +export const PreferencesScalarFieldEnum = { + user_id: 'user_id', + id: 'id', + display_language: 'display_language', + is_dark_mode: 'is_dark_mode', + is_employee_list_grid: 'is_employee_list_grid', + is_lefty_mode: 'is_lefty_mode', + is_timesheet_approval_grid: 'is_timesheet_approval_grid', + notifications: 'notifications' +} as const + +export type PreferencesScalarFieldEnum = (typeof PreferencesScalarFieldEnum)[keyof typeof PreferencesScalarFieldEnum] + + +export const PaidTimeOffScalarFieldEnum = { + id: 'id', + employee_id: 'employee_id', + vacation_hours: 'vacation_hours', + banked_hours: 'banked_hours', + sick_hours: 'sick_hours', + last_updated: 'last_updated' +} as const + +export type PaidTimeOffScalarFieldEnum = (typeof PaidTimeOffScalarFieldEnum)[keyof typeof PaidTimeOffScalarFieldEnum] + + +export const PayPeriodsScalarFieldEnum = { + pay_year: 'pay_year', + pay_period_no: 'pay_period_no', + period_start: 'period_start', + period_end: 'period_end', + payday: 'payday', + label: 'label' +} as const + +export type PayPeriodsScalarFieldEnum = (typeof PayPeriodsScalarFieldEnum)[keyof typeof PayPeriodsScalarFieldEnum] + + +export const SortOrder = { + asc: 'asc', + desc: 'desc' +} as const + +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + + +export const JsonNullValueInput = { + JsonNull: JsonNull +} as const + +export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] + + +export const QueryMode = { + default: 'default', + insensitive: 'insensitive' +} as const + +export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] + + +export const NullsOrder = { + first: 'first', + last: 'last' +} as const + +export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] + + +export const JsonNullValueFilter = { + DbNull: DbNull, + JsonNull: JsonNull, + AnyNull: AnyNull +} as const + +export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] + diff --git a/prisma/generated/postgres/models.ts b/prisma/generated/postgres/models.ts new file mode 100644 index 0000000..102d733 --- /dev/null +++ b/prisma/generated/postgres/models.ts @@ -0,0 +1,33 @@ + +/* !!! 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/Users' +export type * from './models/userModuleAccess' +export type * from './models/Employees' +export type * from './models/LeaveRequests' +export type * from './models/LeaveRequestsArchive' +export type * from './models/Timesheets' +export type * from './models/TimesheetsArchive' +export type * from './models/SchedulePresets' +export type * from './models/SchedulePresetShifts' +export type * from './models/Shifts' +export type * from './models/ShiftsArchive' +export type * from './models/BankCodes' +export type * from './models/Expenses' +export type * from './models/ExpensesArchive' +export type * from './models/OAuthSessions' +export type * from './models/Sessions' +export type * from './models/Blobs' +export type * from './models/Attachments' +export type * from './models/AttachmentVariants' +export type * from './models/Preferences' +export type * from './models/PaidTimeOff' +export type * from './models/PayPeriods' +export type * from './commonInputTypes' \ No newline at end of file diff --git a/prisma/generated/postgres/models/AttachmentVariants.ts b/prisma/generated/postgres/models/AttachmentVariants.ts new file mode 100644 index 0000000..704cde5 --- /dev/null +++ b/prisma/generated/postgres/models/AttachmentVariants.ts @@ -0,0 +1,1514 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `AttachmentVariants` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model AttachmentVariants + * + */ +export type AttachmentVariantsModel = runtime.Types.Result.DefaultSelection + +export type AggregateAttachmentVariants = { + _count: AttachmentVariantsCountAggregateOutputType | null + _avg: AttachmentVariantsAvgAggregateOutputType | null + _sum: AttachmentVariantsSumAggregateOutputType | null + _min: AttachmentVariantsMinAggregateOutputType | null + _max: AttachmentVariantsMaxAggregateOutputType | null +} + +export type AttachmentVariantsAvgAggregateOutputType = { + id: number | null + attachment_id: number | null + bytes: number | null + width: number | null + height: number | null +} + +export type AttachmentVariantsSumAggregateOutputType = { + id: number | null + attachment_id: number | null + bytes: number | null + width: number | null + height: number | null +} + +export type AttachmentVariantsMinAggregateOutputType = { + id: number | null + attachment_id: number | null + variant: string | null + bytes: number | null + width: number | null + height: number | null + created_at: Date | null + path: string | null +} + +export type AttachmentVariantsMaxAggregateOutputType = { + id: number | null + attachment_id: number | null + variant: string | null + bytes: number | null + width: number | null + height: number | null + created_at: Date | null + path: string | null +} + +export type AttachmentVariantsCountAggregateOutputType = { + id: number + attachment_id: number + variant: number + bytes: number + width: number + height: number + created_at: number + path: number + _all: number +} + + +export type AttachmentVariantsAvgAggregateInputType = { + id?: true + attachment_id?: true + bytes?: true + width?: true + height?: true +} + +export type AttachmentVariantsSumAggregateInputType = { + id?: true + attachment_id?: true + bytes?: true + width?: true + height?: true +} + +export type AttachmentVariantsMinAggregateInputType = { + id?: true + attachment_id?: true + variant?: true + bytes?: true + width?: true + height?: true + created_at?: true + path?: true +} + +export type AttachmentVariantsMaxAggregateInputType = { + id?: true + attachment_id?: true + variant?: true + bytes?: true + width?: true + height?: true + created_at?: true + path?: true +} + +export type AttachmentVariantsCountAggregateInputType = { + id?: true + attachment_id?: true + variant?: true + bytes?: true + width?: true + height?: true + created_at?: true + path?: true + _all?: true +} + +export type AttachmentVariantsAggregateArgs = { + /** + * Filter which AttachmentVariants to aggregate. + */ + where?: Prisma.AttachmentVariantsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AttachmentVariants to fetch. + */ + orderBy?: Prisma.AttachmentVariantsOrderByWithRelationInput | Prisma.AttachmentVariantsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AttachmentVariantsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` AttachmentVariants 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` AttachmentVariants. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned AttachmentVariants + **/ + _count?: true | AttachmentVariantsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: AttachmentVariantsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: AttachmentVariantsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AttachmentVariantsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AttachmentVariantsMaxAggregateInputType +} + +export type GetAttachmentVariantsAggregateType = { + [P in keyof T & keyof AggregateAttachmentVariants]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type AttachmentVariantsGroupByArgs = { + where?: Prisma.AttachmentVariantsWhereInput + orderBy?: Prisma.AttachmentVariantsOrderByWithAggregationInput | Prisma.AttachmentVariantsOrderByWithAggregationInput[] + by: Prisma.AttachmentVariantsScalarFieldEnum[] | Prisma.AttachmentVariantsScalarFieldEnum + having?: Prisma.AttachmentVariantsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AttachmentVariantsCountAggregateInputType | true + _avg?: AttachmentVariantsAvgAggregateInputType + _sum?: AttachmentVariantsSumAggregateInputType + _min?: AttachmentVariantsMinAggregateInputType + _max?: AttachmentVariantsMaxAggregateInputType +} + +export type AttachmentVariantsGroupByOutputType = { + id: number + attachment_id: number + variant: string + bytes: number + width: number | null + height: number | null + created_at: Date + path: string + _count: AttachmentVariantsCountAggregateOutputType | null + _avg: AttachmentVariantsAvgAggregateOutputType | null + _sum: AttachmentVariantsSumAggregateOutputType | null + _min: AttachmentVariantsMinAggregateOutputType | null + _max: AttachmentVariantsMaxAggregateOutputType | null +} + +type GetAttachmentVariantsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof AttachmentVariantsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type AttachmentVariantsWhereInput = { + AND?: Prisma.AttachmentVariantsWhereInput | Prisma.AttachmentVariantsWhereInput[] + OR?: Prisma.AttachmentVariantsWhereInput[] + NOT?: Prisma.AttachmentVariantsWhereInput | Prisma.AttachmentVariantsWhereInput[] + id?: Prisma.IntFilter<"AttachmentVariants"> | number + attachment_id?: Prisma.IntFilter<"AttachmentVariants"> | number + variant?: Prisma.StringFilter<"AttachmentVariants"> | string + bytes?: Prisma.IntFilter<"AttachmentVariants"> | number + width?: Prisma.IntNullableFilter<"AttachmentVariants"> | number | null + height?: Prisma.IntNullableFilter<"AttachmentVariants"> | number | null + created_at?: Prisma.DateTimeFilter<"AttachmentVariants"> | Date | string + path?: Prisma.StringFilter<"AttachmentVariants"> | string + attachment?: Prisma.XOR +} + +export type AttachmentVariantsOrderByWithRelationInput = { + id?: Prisma.SortOrder + attachment_id?: Prisma.SortOrder + variant?: Prisma.SortOrder + bytes?: Prisma.SortOrder + width?: Prisma.SortOrderInput | Prisma.SortOrder + height?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrder + path?: Prisma.SortOrder + attachment?: Prisma.AttachmentsOrderByWithRelationInput +} + +export type AttachmentVariantsWhereUniqueInput = Prisma.AtLeast<{ + id?: number + attachment_id_variant?: Prisma.AttachmentVariantsAttachment_idVariantCompoundUniqueInput + AND?: Prisma.AttachmentVariantsWhereInput | Prisma.AttachmentVariantsWhereInput[] + OR?: Prisma.AttachmentVariantsWhereInput[] + NOT?: Prisma.AttachmentVariantsWhereInput | Prisma.AttachmentVariantsWhereInput[] + attachment_id?: Prisma.IntFilter<"AttachmentVariants"> | number + variant?: Prisma.StringFilter<"AttachmentVariants"> | string + bytes?: Prisma.IntFilter<"AttachmentVariants"> | number + width?: Prisma.IntNullableFilter<"AttachmentVariants"> | number | null + height?: Prisma.IntNullableFilter<"AttachmentVariants"> | number | null + created_at?: Prisma.DateTimeFilter<"AttachmentVariants"> | Date | string + path?: Prisma.StringFilter<"AttachmentVariants"> | string + attachment?: Prisma.XOR +}, "id" | "attachment_id_variant"> + +export type AttachmentVariantsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + attachment_id?: Prisma.SortOrder + variant?: Prisma.SortOrder + bytes?: Prisma.SortOrder + width?: Prisma.SortOrderInput | Prisma.SortOrder + height?: Prisma.SortOrderInput | Prisma.SortOrder + created_at?: Prisma.SortOrder + path?: Prisma.SortOrder + _count?: Prisma.AttachmentVariantsCountOrderByAggregateInput + _avg?: Prisma.AttachmentVariantsAvgOrderByAggregateInput + _max?: Prisma.AttachmentVariantsMaxOrderByAggregateInput + _min?: Prisma.AttachmentVariantsMinOrderByAggregateInput + _sum?: Prisma.AttachmentVariantsSumOrderByAggregateInput +} + +export type AttachmentVariantsScalarWhereWithAggregatesInput = { + AND?: Prisma.AttachmentVariantsScalarWhereWithAggregatesInput | Prisma.AttachmentVariantsScalarWhereWithAggregatesInput[] + OR?: Prisma.AttachmentVariantsScalarWhereWithAggregatesInput[] + NOT?: Prisma.AttachmentVariantsScalarWhereWithAggregatesInput | Prisma.AttachmentVariantsScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"AttachmentVariants"> | number + attachment_id?: Prisma.IntWithAggregatesFilter<"AttachmentVariants"> | number + variant?: Prisma.StringWithAggregatesFilter<"AttachmentVariants"> | string + bytes?: Prisma.IntWithAggregatesFilter<"AttachmentVariants"> | number + width?: Prisma.IntNullableWithAggregatesFilter<"AttachmentVariants"> | number | null + height?: Prisma.IntNullableWithAggregatesFilter<"AttachmentVariants"> | number | null + created_at?: Prisma.DateTimeWithAggregatesFilter<"AttachmentVariants"> | Date | string + path?: Prisma.StringWithAggregatesFilter<"AttachmentVariants"> | string +} + +export type AttachmentVariantsCreateInput = { + variant: string + bytes: number + width?: number | null + height?: number | null + created_at?: Date | string + path: string + attachment: Prisma.AttachmentsCreateNestedOneWithoutAttachmentVariantsInput +} + +export type AttachmentVariantsUncheckedCreateInput = { + id?: number + attachment_id: number + variant: string + bytes: number + width?: number | null + height?: number | null + created_at?: Date | string + path: string +} + +export type AttachmentVariantsUpdateInput = { + variant?: Prisma.StringFieldUpdateOperationsInput | string + bytes?: Prisma.IntFieldUpdateOperationsInput | number + width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + path?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.AttachmentsUpdateOneRequiredWithoutAttachmentVariantsNestedInput +} + +export type AttachmentVariantsUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + attachment_id?: Prisma.IntFieldUpdateOperationsInput | number + variant?: Prisma.StringFieldUpdateOperationsInput | string + bytes?: Prisma.IntFieldUpdateOperationsInput | number + width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + path?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AttachmentVariantsCreateManyInput = { + id?: number + attachment_id: number + variant: string + bytes: number + width?: number | null + height?: number | null + created_at?: Date | string + path: string +} + +export type AttachmentVariantsUpdateManyMutationInput = { + variant?: Prisma.StringFieldUpdateOperationsInput | string + bytes?: Prisma.IntFieldUpdateOperationsInput | number + width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + path?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AttachmentVariantsUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + attachment_id?: Prisma.IntFieldUpdateOperationsInput | number + variant?: Prisma.StringFieldUpdateOperationsInput | string + bytes?: Prisma.IntFieldUpdateOperationsInput | number + width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + path?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AttachmentVariantsListRelationFilter = { + every?: Prisma.AttachmentVariantsWhereInput + some?: Prisma.AttachmentVariantsWhereInput + none?: Prisma.AttachmentVariantsWhereInput +} + +export type AttachmentVariantsOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type AttachmentVariantsAttachment_idVariantCompoundUniqueInput = { + attachment_id: number + variant: string +} + +export type AttachmentVariantsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + attachment_id?: Prisma.SortOrder + variant?: Prisma.SortOrder + bytes?: Prisma.SortOrder + width?: Prisma.SortOrder + height?: Prisma.SortOrder + created_at?: Prisma.SortOrder + path?: Prisma.SortOrder +} + +export type AttachmentVariantsAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + attachment_id?: Prisma.SortOrder + bytes?: Prisma.SortOrder + width?: Prisma.SortOrder + height?: Prisma.SortOrder +} + +export type AttachmentVariantsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + attachment_id?: Prisma.SortOrder + variant?: Prisma.SortOrder + bytes?: Prisma.SortOrder + width?: Prisma.SortOrder + height?: Prisma.SortOrder + created_at?: Prisma.SortOrder + path?: Prisma.SortOrder +} + +export type AttachmentVariantsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + attachment_id?: Prisma.SortOrder + variant?: Prisma.SortOrder + bytes?: Prisma.SortOrder + width?: Prisma.SortOrder + height?: Prisma.SortOrder + created_at?: Prisma.SortOrder + path?: Prisma.SortOrder +} + +export type AttachmentVariantsSumOrderByAggregateInput = { + id?: Prisma.SortOrder + attachment_id?: Prisma.SortOrder + bytes?: Prisma.SortOrder + width?: Prisma.SortOrder + height?: Prisma.SortOrder +} + +export type AttachmentVariantsCreateNestedManyWithoutAttachmentInput = { + create?: Prisma.XOR | Prisma.AttachmentVariantsCreateWithoutAttachmentInput[] | Prisma.AttachmentVariantsUncheckedCreateWithoutAttachmentInput[] + connectOrCreate?: Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput | Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput[] + createMany?: Prisma.AttachmentVariantsCreateManyAttachmentInputEnvelope + connect?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[] +} + +export type AttachmentVariantsUncheckedCreateNestedManyWithoutAttachmentInput = { + create?: Prisma.XOR | Prisma.AttachmentVariantsCreateWithoutAttachmentInput[] | Prisma.AttachmentVariantsUncheckedCreateWithoutAttachmentInput[] + connectOrCreate?: Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput | Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput[] + createMany?: Prisma.AttachmentVariantsCreateManyAttachmentInputEnvelope + connect?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[] +} + +export type AttachmentVariantsUpdateManyWithoutAttachmentNestedInput = { + create?: Prisma.XOR | Prisma.AttachmentVariantsCreateWithoutAttachmentInput[] | Prisma.AttachmentVariantsUncheckedCreateWithoutAttachmentInput[] + connectOrCreate?: Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput | Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput[] + upsert?: Prisma.AttachmentVariantsUpsertWithWhereUniqueWithoutAttachmentInput | Prisma.AttachmentVariantsUpsertWithWhereUniqueWithoutAttachmentInput[] + createMany?: Prisma.AttachmentVariantsCreateManyAttachmentInputEnvelope + set?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[] + disconnect?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[] + delete?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[] + connect?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[] + update?: Prisma.AttachmentVariantsUpdateWithWhereUniqueWithoutAttachmentInput | Prisma.AttachmentVariantsUpdateWithWhereUniqueWithoutAttachmentInput[] + updateMany?: Prisma.AttachmentVariantsUpdateManyWithWhereWithoutAttachmentInput | Prisma.AttachmentVariantsUpdateManyWithWhereWithoutAttachmentInput[] + deleteMany?: Prisma.AttachmentVariantsScalarWhereInput | Prisma.AttachmentVariantsScalarWhereInput[] +} + +export type AttachmentVariantsUncheckedUpdateManyWithoutAttachmentNestedInput = { + create?: Prisma.XOR | Prisma.AttachmentVariantsCreateWithoutAttachmentInput[] | Prisma.AttachmentVariantsUncheckedCreateWithoutAttachmentInput[] + connectOrCreate?: Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput | Prisma.AttachmentVariantsCreateOrConnectWithoutAttachmentInput[] + upsert?: Prisma.AttachmentVariantsUpsertWithWhereUniqueWithoutAttachmentInput | Prisma.AttachmentVariantsUpsertWithWhereUniqueWithoutAttachmentInput[] + createMany?: Prisma.AttachmentVariantsCreateManyAttachmentInputEnvelope + set?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[] + disconnect?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[] + delete?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[] + connect?: Prisma.AttachmentVariantsWhereUniqueInput | Prisma.AttachmentVariantsWhereUniqueInput[] + update?: Prisma.AttachmentVariantsUpdateWithWhereUniqueWithoutAttachmentInput | Prisma.AttachmentVariantsUpdateWithWhereUniqueWithoutAttachmentInput[] + updateMany?: Prisma.AttachmentVariantsUpdateManyWithWhereWithoutAttachmentInput | Prisma.AttachmentVariantsUpdateManyWithWhereWithoutAttachmentInput[] + deleteMany?: Prisma.AttachmentVariantsScalarWhereInput | Prisma.AttachmentVariantsScalarWhereInput[] +} + +export type AttachmentVariantsCreateWithoutAttachmentInput = { + variant: string + bytes: number + width?: number | null + height?: number | null + created_at?: Date | string + path: string +} + +export type AttachmentVariantsUncheckedCreateWithoutAttachmentInput = { + id?: number + variant: string + bytes: number + width?: number | null + height?: number | null + created_at?: Date | string + path: string +} + +export type AttachmentVariantsCreateOrConnectWithoutAttachmentInput = { + where: Prisma.AttachmentVariantsWhereUniqueInput + create: Prisma.XOR +} + +export type AttachmentVariantsCreateManyAttachmentInputEnvelope = { + data: Prisma.AttachmentVariantsCreateManyAttachmentInput | Prisma.AttachmentVariantsCreateManyAttachmentInput[] + skipDuplicates?: boolean +} + +export type AttachmentVariantsUpsertWithWhereUniqueWithoutAttachmentInput = { + where: Prisma.AttachmentVariantsWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type AttachmentVariantsUpdateWithWhereUniqueWithoutAttachmentInput = { + where: Prisma.AttachmentVariantsWhereUniqueInput + data: Prisma.XOR +} + +export type AttachmentVariantsUpdateManyWithWhereWithoutAttachmentInput = { + where: Prisma.AttachmentVariantsScalarWhereInput + data: Prisma.XOR +} + +export type AttachmentVariantsScalarWhereInput = { + AND?: Prisma.AttachmentVariantsScalarWhereInput | Prisma.AttachmentVariantsScalarWhereInput[] + OR?: Prisma.AttachmentVariantsScalarWhereInput[] + NOT?: Prisma.AttachmentVariantsScalarWhereInput | Prisma.AttachmentVariantsScalarWhereInput[] + id?: Prisma.IntFilter<"AttachmentVariants"> | number + attachment_id?: Prisma.IntFilter<"AttachmentVariants"> | number + variant?: Prisma.StringFilter<"AttachmentVariants"> | string + bytes?: Prisma.IntFilter<"AttachmentVariants"> | number + width?: Prisma.IntNullableFilter<"AttachmentVariants"> | number | null + height?: Prisma.IntNullableFilter<"AttachmentVariants"> | number | null + created_at?: Prisma.DateTimeFilter<"AttachmentVariants"> | Date | string + path?: Prisma.StringFilter<"AttachmentVariants"> | string +} + +export type AttachmentVariantsCreateManyAttachmentInput = { + id?: number + variant: string + bytes: number + width?: number | null + height?: number | null + created_at?: Date | string + path: string +} + +export type AttachmentVariantsUpdateWithoutAttachmentInput = { + variant?: Prisma.StringFieldUpdateOperationsInput | string + bytes?: Prisma.IntFieldUpdateOperationsInput | number + width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + path?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AttachmentVariantsUncheckedUpdateWithoutAttachmentInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + variant?: Prisma.StringFieldUpdateOperationsInput | string + bytes?: Prisma.IntFieldUpdateOperationsInput | number + width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + path?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type AttachmentVariantsUncheckedUpdateManyWithoutAttachmentInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + variant?: Prisma.StringFieldUpdateOperationsInput | string + bytes?: Prisma.IntFieldUpdateOperationsInput | number + width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + path?: Prisma.StringFieldUpdateOperationsInput | string +} + + + +export type AttachmentVariantsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + attachment_id?: boolean + variant?: boolean + bytes?: boolean + width?: boolean + height?: boolean + created_at?: boolean + path?: boolean + attachment?: boolean | Prisma.AttachmentsDefaultArgs +}, ExtArgs["result"]["attachmentVariants"]> + +export type AttachmentVariantsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + attachment_id?: boolean + variant?: boolean + bytes?: boolean + width?: boolean + height?: boolean + created_at?: boolean + path?: boolean + attachment?: boolean | Prisma.AttachmentsDefaultArgs +}, ExtArgs["result"]["attachmentVariants"]> + +export type AttachmentVariantsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + attachment_id?: boolean + variant?: boolean + bytes?: boolean + width?: boolean + height?: boolean + created_at?: boolean + path?: boolean + attachment?: boolean | Prisma.AttachmentsDefaultArgs +}, ExtArgs["result"]["attachmentVariants"]> + +export type AttachmentVariantsSelectScalar = { + id?: boolean + attachment_id?: boolean + variant?: boolean + bytes?: boolean + width?: boolean + height?: boolean + created_at?: boolean + path?: boolean +} + +export type AttachmentVariantsOmit = runtime.Types.Extensions.GetOmit<"id" | "attachment_id" | "variant" | "bytes" | "width" | "height" | "created_at" | "path", ExtArgs["result"]["attachmentVariants"]> +export type AttachmentVariantsInclude = { + attachment?: boolean | Prisma.AttachmentsDefaultArgs +} +export type AttachmentVariantsIncludeCreateManyAndReturn = { + attachment?: boolean | Prisma.AttachmentsDefaultArgs +} +export type AttachmentVariantsIncludeUpdateManyAndReturn = { + attachment?: boolean | Prisma.AttachmentsDefaultArgs +} + +export type $AttachmentVariantsPayload = { + name: "AttachmentVariants" + objects: { + attachment: Prisma.$AttachmentsPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + attachment_id: number + variant: string + bytes: number + width: number | null + height: number | null + created_at: Date + path: string + }, ExtArgs["result"]["attachmentVariants"]> + composites: {} +} + +export type AttachmentVariantsGetPayload = runtime.Types.Result.GetResult + +export type AttachmentVariantsCountArgs = + Omit & { + select?: AttachmentVariantsCountAggregateInputType | true + } + +export interface AttachmentVariantsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['AttachmentVariants'], meta: { name: 'AttachmentVariants' } } + /** + * Find zero or one AttachmentVariants that matches the filter. + * @param {AttachmentVariantsFindUniqueArgs} args - Arguments to find a AttachmentVariants + * @example + * // Get one AttachmentVariants + * const attachmentVariants = await prisma.attachmentVariants.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AttachmentVariantsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one AttachmentVariants that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AttachmentVariantsFindUniqueOrThrowArgs} args - Arguments to find a AttachmentVariants + * @example + * // Get one AttachmentVariants + * const attachmentVariants = await prisma.attachmentVariants.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AttachmentVariantsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first AttachmentVariants 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 {AttachmentVariantsFindFirstArgs} args - Arguments to find a AttachmentVariants + * @example + * // Get one AttachmentVariants + * const attachmentVariants = await prisma.attachmentVariants.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AttachmentVariantsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first AttachmentVariants 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 {AttachmentVariantsFindFirstOrThrowArgs} args - Arguments to find a AttachmentVariants + * @example + * // Get one AttachmentVariants + * const attachmentVariants = await prisma.attachmentVariants.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AttachmentVariantsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more AttachmentVariants 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 {AttachmentVariantsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all AttachmentVariants + * const attachmentVariants = await prisma.attachmentVariants.findMany() + * + * // Get first 10 AttachmentVariants + * const attachmentVariants = await prisma.attachmentVariants.findMany({ take: 10 }) + * + * // Only select the `id` + * const attachmentVariantsWithIdOnly = await prisma.attachmentVariants.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a AttachmentVariants. + * @param {AttachmentVariantsCreateArgs} args - Arguments to create a AttachmentVariants. + * @example + * // Create one AttachmentVariants + * const AttachmentVariants = await prisma.attachmentVariants.create({ + * data: { + * // ... data to create a AttachmentVariants + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__AttachmentVariantsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many AttachmentVariants. + * @param {AttachmentVariantsCreateManyArgs} args - Arguments to create many AttachmentVariants. + * @example + * // Create many AttachmentVariants + * const attachmentVariants = await prisma.attachmentVariants.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many AttachmentVariants and returns the data saved in the database. + * @param {AttachmentVariantsCreateManyAndReturnArgs} args - Arguments to create many AttachmentVariants. + * @example + * // Create many AttachmentVariants + * const attachmentVariants = await prisma.attachmentVariants.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many AttachmentVariants and only return the `id` + * const attachmentVariantsWithIdOnly = await prisma.attachmentVariants.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 AttachmentVariants. + * @param {AttachmentVariantsDeleteArgs} args - Arguments to delete one AttachmentVariants. + * @example + * // Delete one AttachmentVariants + * const AttachmentVariants = await prisma.attachmentVariants.delete({ + * where: { + * // ... filter to delete one AttachmentVariants + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__AttachmentVariantsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one AttachmentVariants. + * @param {AttachmentVariantsUpdateArgs} args - Arguments to update one AttachmentVariants. + * @example + * // Update one AttachmentVariants + * const attachmentVariants = await prisma.attachmentVariants.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__AttachmentVariantsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more AttachmentVariants. + * @param {AttachmentVariantsDeleteManyArgs} args - Arguments to filter AttachmentVariants to delete. + * @example + * // Delete a few AttachmentVariants + * const { count } = await prisma.attachmentVariants.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more AttachmentVariants. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AttachmentVariantsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many AttachmentVariants + * const attachmentVariants = await prisma.attachmentVariants.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more AttachmentVariants and returns the data updated in the database. + * @param {AttachmentVariantsUpdateManyAndReturnArgs} args - Arguments to update many AttachmentVariants. + * @example + * // Update many AttachmentVariants + * const attachmentVariants = await prisma.attachmentVariants.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more AttachmentVariants and only return the `id` + * const attachmentVariantsWithIdOnly = await prisma.attachmentVariants.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 AttachmentVariants. + * @param {AttachmentVariantsUpsertArgs} args - Arguments to update or create a AttachmentVariants. + * @example + * // Update or create a AttachmentVariants + * const attachmentVariants = await prisma.attachmentVariants.upsert({ + * create: { + * // ... data to create a AttachmentVariants + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the AttachmentVariants we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AttachmentVariantsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of AttachmentVariants. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AttachmentVariantsCountArgs} args - Arguments to filter AttachmentVariants to count. + * @example + * // Count the number of AttachmentVariants + * const count = await prisma.attachmentVariants.count({ + * where: { + * // ... the filter for the AttachmentVariants 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 AttachmentVariants. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AttachmentVariantsAggregateArgs} 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 AttachmentVariants. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AttachmentVariantsGroupByArgs} 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 AttachmentVariantsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AttachmentVariantsGroupByArgs['orderBy'] } + : { orderBy?: AttachmentVariantsGroupByArgs['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 ? GetAttachmentVariantsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the AttachmentVariants model + */ +readonly fields: AttachmentVariantsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for AttachmentVariants. + * 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__AttachmentVariantsClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + attachment = {}>(args?: Prisma.Subset>): Prisma.Prisma__AttachmentsClient, 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 AttachmentVariants model + */ +export interface AttachmentVariantsFieldRefs { + readonly id: Prisma.FieldRef<"AttachmentVariants", 'Int'> + readonly attachment_id: Prisma.FieldRef<"AttachmentVariants", 'Int'> + readonly variant: Prisma.FieldRef<"AttachmentVariants", 'String'> + readonly bytes: Prisma.FieldRef<"AttachmentVariants", 'Int'> + readonly width: Prisma.FieldRef<"AttachmentVariants", 'Int'> + readonly height: Prisma.FieldRef<"AttachmentVariants", 'Int'> + readonly created_at: Prisma.FieldRef<"AttachmentVariants", 'DateTime'> + readonly path: Prisma.FieldRef<"AttachmentVariants", 'String'> +} + + +// Custom InputTypes +/** + * AttachmentVariants findUnique + */ +export type AttachmentVariantsFindUniqueArgs = { + /** + * Select specific fields to fetch from the AttachmentVariants + */ + select?: Prisma.AttachmentVariantsSelect | null + /** + * Omit specific fields from the AttachmentVariants + */ + omit?: Prisma.AttachmentVariantsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentVariantsInclude | null + /** + * Filter, which AttachmentVariants to fetch. + */ + where: Prisma.AttachmentVariantsWhereUniqueInput +} + +/** + * AttachmentVariants findUniqueOrThrow + */ +export type AttachmentVariantsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the AttachmentVariants + */ + select?: Prisma.AttachmentVariantsSelect | null + /** + * Omit specific fields from the AttachmentVariants + */ + omit?: Prisma.AttachmentVariantsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentVariantsInclude | null + /** + * Filter, which AttachmentVariants to fetch. + */ + where: Prisma.AttachmentVariantsWhereUniqueInput +} + +/** + * AttachmentVariants findFirst + */ +export type AttachmentVariantsFindFirstArgs = { + /** + * Select specific fields to fetch from the AttachmentVariants + */ + select?: Prisma.AttachmentVariantsSelect | null + /** + * Omit specific fields from the AttachmentVariants + */ + omit?: Prisma.AttachmentVariantsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentVariantsInclude | null + /** + * Filter, which AttachmentVariants to fetch. + */ + where?: Prisma.AttachmentVariantsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AttachmentVariants to fetch. + */ + orderBy?: Prisma.AttachmentVariantsOrderByWithRelationInput | Prisma.AttachmentVariantsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AttachmentVariants. + */ + cursor?: Prisma.AttachmentVariantsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` AttachmentVariants 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` AttachmentVariants. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AttachmentVariants. + */ + distinct?: Prisma.AttachmentVariantsScalarFieldEnum | Prisma.AttachmentVariantsScalarFieldEnum[] +} + +/** + * AttachmentVariants findFirstOrThrow + */ +export type AttachmentVariantsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the AttachmentVariants + */ + select?: Prisma.AttachmentVariantsSelect | null + /** + * Omit specific fields from the AttachmentVariants + */ + omit?: Prisma.AttachmentVariantsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentVariantsInclude | null + /** + * Filter, which AttachmentVariants to fetch. + */ + where?: Prisma.AttachmentVariantsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AttachmentVariants to fetch. + */ + orderBy?: Prisma.AttachmentVariantsOrderByWithRelationInput | Prisma.AttachmentVariantsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for AttachmentVariants. + */ + cursor?: Prisma.AttachmentVariantsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` AttachmentVariants 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` AttachmentVariants. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of AttachmentVariants. + */ + distinct?: Prisma.AttachmentVariantsScalarFieldEnum | Prisma.AttachmentVariantsScalarFieldEnum[] +} + +/** + * AttachmentVariants findMany + */ +export type AttachmentVariantsFindManyArgs = { + /** + * Select specific fields to fetch from the AttachmentVariants + */ + select?: Prisma.AttachmentVariantsSelect | null + /** + * Omit specific fields from the AttachmentVariants + */ + omit?: Prisma.AttachmentVariantsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentVariantsInclude | null + /** + * Filter, which AttachmentVariants to fetch. + */ + where?: Prisma.AttachmentVariantsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of AttachmentVariants to fetch. + */ + orderBy?: Prisma.AttachmentVariantsOrderByWithRelationInput | Prisma.AttachmentVariantsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing AttachmentVariants. + */ + cursor?: Prisma.AttachmentVariantsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` AttachmentVariants 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` AttachmentVariants. + */ + skip?: number + distinct?: Prisma.AttachmentVariantsScalarFieldEnum | Prisma.AttachmentVariantsScalarFieldEnum[] +} + +/** + * AttachmentVariants create + */ +export type AttachmentVariantsCreateArgs = { + /** + * Select specific fields to fetch from the AttachmentVariants + */ + select?: Prisma.AttachmentVariantsSelect | null + /** + * Omit specific fields from the AttachmentVariants + */ + omit?: Prisma.AttachmentVariantsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentVariantsInclude | null + /** + * The data needed to create a AttachmentVariants. + */ + data: Prisma.XOR +} + +/** + * AttachmentVariants createMany + */ +export type AttachmentVariantsCreateManyArgs = { + /** + * The data used to create many AttachmentVariants. + */ + data: Prisma.AttachmentVariantsCreateManyInput | Prisma.AttachmentVariantsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * AttachmentVariants createManyAndReturn + */ +export type AttachmentVariantsCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the AttachmentVariants + */ + select?: Prisma.AttachmentVariantsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the AttachmentVariants + */ + omit?: Prisma.AttachmentVariantsOmit | null + /** + * The data used to create many AttachmentVariants. + */ + data: Prisma.AttachmentVariantsCreateManyInput | Prisma.AttachmentVariantsCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentVariantsIncludeCreateManyAndReturn | null +} + +/** + * AttachmentVariants update + */ +export type AttachmentVariantsUpdateArgs = { + /** + * Select specific fields to fetch from the AttachmentVariants + */ + select?: Prisma.AttachmentVariantsSelect | null + /** + * Omit specific fields from the AttachmentVariants + */ + omit?: Prisma.AttachmentVariantsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentVariantsInclude | null + /** + * The data needed to update a AttachmentVariants. + */ + data: Prisma.XOR + /** + * Choose, which AttachmentVariants to update. + */ + where: Prisma.AttachmentVariantsWhereUniqueInput +} + +/** + * AttachmentVariants updateMany + */ +export type AttachmentVariantsUpdateManyArgs = { + /** + * The data used to update AttachmentVariants. + */ + data: Prisma.XOR + /** + * Filter which AttachmentVariants to update + */ + where?: Prisma.AttachmentVariantsWhereInput + /** + * Limit how many AttachmentVariants to update. + */ + limit?: number +} + +/** + * AttachmentVariants updateManyAndReturn + */ +export type AttachmentVariantsUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the AttachmentVariants + */ + select?: Prisma.AttachmentVariantsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the AttachmentVariants + */ + omit?: Prisma.AttachmentVariantsOmit | null + /** + * The data used to update AttachmentVariants. + */ + data: Prisma.XOR + /** + * Filter which AttachmentVariants to update + */ + where?: Prisma.AttachmentVariantsWhereInput + /** + * Limit how many AttachmentVariants to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentVariantsIncludeUpdateManyAndReturn | null +} + +/** + * AttachmentVariants upsert + */ +export type AttachmentVariantsUpsertArgs = { + /** + * Select specific fields to fetch from the AttachmentVariants + */ + select?: Prisma.AttachmentVariantsSelect | null + /** + * Omit specific fields from the AttachmentVariants + */ + omit?: Prisma.AttachmentVariantsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentVariantsInclude | null + /** + * The filter to search for the AttachmentVariants to update in case it exists. + */ + where: Prisma.AttachmentVariantsWhereUniqueInput + /** + * In case the AttachmentVariants found by the `where` argument doesn't exist, create a new AttachmentVariants with this data. + */ + create: Prisma.XOR + /** + * In case the AttachmentVariants was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * AttachmentVariants delete + */ +export type AttachmentVariantsDeleteArgs = { + /** + * Select specific fields to fetch from the AttachmentVariants + */ + select?: Prisma.AttachmentVariantsSelect | null + /** + * Omit specific fields from the AttachmentVariants + */ + omit?: Prisma.AttachmentVariantsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentVariantsInclude | null + /** + * Filter which AttachmentVariants to delete. + */ + where: Prisma.AttachmentVariantsWhereUniqueInput +} + +/** + * AttachmentVariants deleteMany + */ +export type AttachmentVariantsDeleteManyArgs = { + /** + * Filter which AttachmentVariants to delete + */ + where?: Prisma.AttachmentVariantsWhereInput + /** + * Limit how many AttachmentVariants to delete. + */ + limit?: number +} + +/** + * AttachmentVariants without action + */ +export type AttachmentVariantsDefaultArgs = { + /** + * Select specific fields to fetch from the AttachmentVariants + */ + select?: Prisma.AttachmentVariantsSelect | null + /** + * Omit specific fields from the AttachmentVariants + */ + omit?: Prisma.AttachmentVariantsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentVariantsInclude | null +} diff --git a/prisma/generated/postgres/models/Attachments.ts b/prisma/generated/postgres/models/Attachments.ts new file mode 100644 index 0000000..07e9a90 --- /dev/null +++ b/prisma/generated/postgres/models/Attachments.ts @@ -0,0 +1,1959 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Attachments` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model Attachments + * + */ +export type AttachmentsModel = runtime.Types.Result.DefaultSelection + +export type AggregateAttachments = { + _count: AttachmentsCountAggregateOutputType | null + _avg: AttachmentsAvgAggregateOutputType | null + _sum: AttachmentsSumAggregateOutputType | null + _min: AttachmentsMinAggregateOutputType | null + _max: AttachmentsMaxAggregateOutputType | null +} + +export type AttachmentsAvgAggregateOutputType = { + id: number | null +} + +export type AttachmentsSumAggregateOutputType = { + id: number | null +} + +export type AttachmentsMinAggregateOutputType = { + id: number | null + sha256: string | null + owner_type: string | null + owner_id: string | null + status: $Enums.AttachmentStatus | null + created_by: string | null + created_at: Date | null + original_name: string | null + retention_policy: $Enums.RetentionPolicy | null +} + +export type AttachmentsMaxAggregateOutputType = { + id: number | null + sha256: string | null + owner_type: string | null + owner_id: string | null + status: $Enums.AttachmentStatus | null + created_by: string | null + created_at: Date | null + original_name: string | null + retention_policy: $Enums.RetentionPolicy | null +} + +export type AttachmentsCountAggregateOutputType = { + id: number + sha256: number + owner_type: number + owner_id: number + status: number + created_by: number + created_at: number + original_name: number + retention_policy: number + _all: number +} + + +export type AttachmentsAvgAggregateInputType = { + id?: true +} + +export type AttachmentsSumAggregateInputType = { + id?: true +} + +export type AttachmentsMinAggregateInputType = { + id?: true + sha256?: true + owner_type?: true + owner_id?: true + status?: true + created_by?: true + created_at?: true + original_name?: true + retention_policy?: true +} + +export type AttachmentsMaxAggregateInputType = { + id?: true + sha256?: true + owner_type?: true + owner_id?: true + status?: true + created_by?: true + created_at?: true + original_name?: true + retention_policy?: true +} + +export type AttachmentsCountAggregateInputType = { + id?: true + sha256?: true + owner_type?: true + owner_id?: true + status?: true + created_by?: true + created_at?: true + original_name?: true + retention_policy?: true + _all?: true +} + +export type AttachmentsAggregateArgs = { + /** + * Filter which Attachments to aggregate. + */ + where?: Prisma.AttachmentsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Attachments to fetch. + */ + orderBy?: Prisma.AttachmentsOrderByWithRelationInput | Prisma.AttachmentsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.AttachmentsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Attachments 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` Attachments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Attachments + **/ + _count?: true | AttachmentsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: AttachmentsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: AttachmentsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AttachmentsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AttachmentsMaxAggregateInputType +} + +export type GetAttachmentsAggregateType = { + [P in keyof T & keyof AggregateAttachments]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type AttachmentsGroupByArgs = { + where?: Prisma.AttachmentsWhereInput + orderBy?: Prisma.AttachmentsOrderByWithAggregationInput | Prisma.AttachmentsOrderByWithAggregationInput[] + by: Prisma.AttachmentsScalarFieldEnum[] | Prisma.AttachmentsScalarFieldEnum + having?: Prisma.AttachmentsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AttachmentsCountAggregateInputType | true + _avg?: AttachmentsAvgAggregateInputType + _sum?: AttachmentsSumAggregateInputType + _min?: AttachmentsMinAggregateInputType + _max?: AttachmentsMaxAggregateInputType +} + +export type AttachmentsGroupByOutputType = { + id: number + sha256: string + owner_type: string + owner_id: string + status: $Enums.AttachmentStatus + created_by: string + created_at: Date + original_name: string + retention_policy: $Enums.RetentionPolicy + _count: AttachmentsCountAggregateOutputType | null + _avg: AttachmentsAvgAggregateOutputType | null + _sum: AttachmentsSumAggregateOutputType | null + _min: AttachmentsMinAggregateOutputType | null + _max: AttachmentsMaxAggregateOutputType | null +} + +type GetAttachmentsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof AttachmentsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type AttachmentsWhereInput = { + AND?: Prisma.AttachmentsWhereInput | Prisma.AttachmentsWhereInput[] + OR?: Prisma.AttachmentsWhereInput[] + NOT?: Prisma.AttachmentsWhereInput | Prisma.AttachmentsWhereInput[] + id?: Prisma.IntFilter<"Attachments"> | number + sha256?: Prisma.StringFilter<"Attachments"> | string + owner_type?: Prisma.StringFilter<"Attachments"> | string + owner_id?: Prisma.StringFilter<"Attachments"> | string + status?: Prisma.EnumAttachmentStatusFilter<"Attachments"> | $Enums.AttachmentStatus + created_by?: Prisma.StringFilter<"Attachments"> | string + created_at?: Prisma.DateTimeFilter<"Attachments"> | Date | string + original_name?: Prisma.StringFilter<"Attachments"> | string + retention_policy?: Prisma.EnumRetentionPolicyFilter<"Attachments"> | $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsListRelationFilter + blob?: Prisma.XOR + expenses?: Prisma.ExpensesListRelationFilter + expenses_archive?: Prisma.ExpensesArchiveListRelationFilter +} + +export type AttachmentsOrderByWithRelationInput = { + id?: Prisma.SortOrder + sha256?: Prisma.SortOrder + owner_type?: Prisma.SortOrder + owner_id?: Prisma.SortOrder + status?: Prisma.SortOrder + created_by?: Prisma.SortOrder + created_at?: Prisma.SortOrder + original_name?: Prisma.SortOrder + retention_policy?: Prisma.SortOrder + AttachmentVariants?: Prisma.AttachmentVariantsOrderByRelationAggregateInput + blob?: Prisma.BlobsOrderByWithRelationInput + expenses?: Prisma.ExpensesOrderByRelationAggregateInput + expenses_archive?: Prisma.ExpensesArchiveOrderByRelationAggregateInput +} + +export type AttachmentsWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.AttachmentsWhereInput | Prisma.AttachmentsWhereInput[] + OR?: Prisma.AttachmentsWhereInput[] + NOT?: Prisma.AttachmentsWhereInput | Prisma.AttachmentsWhereInput[] + sha256?: Prisma.StringFilter<"Attachments"> | string + owner_type?: Prisma.StringFilter<"Attachments"> | string + owner_id?: Prisma.StringFilter<"Attachments"> | string + status?: Prisma.EnumAttachmentStatusFilter<"Attachments"> | $Enums.AttachmentStatus + created_by?: Prisma.StringFilter<"Attachments"> | string + created_at?: Prisma.DateTimeFilter<"Attachments"> | Date | string + original_name?: Prisma.StringFilter<"Attachments"> | string + retention_policy?: Prisma.EnumRetentionPolicyFilter<"Attachments"> | $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsListRelationFilter + blob?: Prisma.XOR + expenses?: Prisma.ExpensesListRelationFilter + expenses_archive?: Prisma.ExpensesArchiveListRelationFilter +}, "id"> + +export type AttachmentsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + sha256?: Prisma.SortOrder + owner_type?: Prisma.SortOrder + owner_id?: Prisma.SortOrder + status?: Prisma.SortOrder + created_by?: Prisma.SortOrder + created_at?: Prisma.SortOrder + original_name?: Prisma.SortOrder + retention_policy?: Prisma.SortOrder + _count?: Prisma.AttachmentsCountOrderByAggregateInput + _avg?: Prisma.AttachmentsAvgOrderByAggregateInput + _max?: Prisma.AttachmentsMaxOrderByAggregateInput + _min?: Prisma.AttachmentsMinOrderByAggregateInput + _sum?: Prisma.AttachmentsSumOrderByAggregateInput +} + +export type AttachmentsScalarWhereWithAggregatesInput = { + AND?: Prisma.AttachmentsScalarWhereWithAggregatesInput | Prisma.AttachmentsScalarWhereWithAggregatesInput[] + OR?: Prisma.AttachmentsScalarWhereWithAggregatesInput[] + NOT?: Prisma.AttachmentsScalarWhereWithAggregatesInput | Prisma.AttachmentsScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"Attachments"> | number + sha256?: Prisma.StringWithAggregatesFilter<"Attachments"> | string + owner_type?: Prisma.StringWithAggregatesFilter<"Attachments"> | string + owner_id?: Prisma.StringWithAggregatesFilter<"Attachments"> | string + status?: Prisma.EnumAttachmentStatusWithAggregatesFilter<"Attachments"> | $Enums.AttachmentStatus + created_by?: Prisma.StringWithAggregatesFilter<"Attachments"> | string + created_at?: Prisma.DateTimeWithAggregatesFilter<"Attachments"> | Date | string + original_name?: Prisma.StringWithAggregatesFilter<"Attachments"> | string + retention_policy?: Prisma.EnumRetentionPolicyWithAggregatesFilter<"Attachments"> | $Enums.RetentionPolicy +} + +export type AttachmentsCreateInput = { + owner_type: string + owner_id: string + status?: $Enums.AttachmentStatus + created_by: string + created_at?: Date | string + original_name: string + retention_policy: $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsCreateNestedManyWithoutAttachmentInput + blob: Prisma.BlobsCreateNestedOneWithoutAttachmentsInput + expenses?: Prisma.ExpensesCreateNestedManyWithoutAttachment_recordInput + expenses_archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutAttachment_recordInput +} + +export type AttachmentsUncheckedCreateInput = { + id?: number + sha256: string + owner_type: string + owner_id: string + status?: $Enums.AttachmentStatus + created_by: string + created_at?: Date | string + original_name: string + retention_policy: $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsUncheckedCreateNestedManyWithoutAttachmentInput + expenses?: Prisma.ExpensesUncheckedCreateNestedManyWithoutAttachment_recordInput + expenses_archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutAttachment_recordInput +} + +export type AttachmentsUpdateInput = { + owner_type?: Prisma.StringFieldUpdateOperationsInput | string + owner_id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumAttachmentStatusFieldUpdateOperationsInput | $Enums.AttachmentStatus + created_by?: Prisma.StringFieldUpdateOperationsInput | string + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + original_name?: Prisma.StringFieldUpdateOperationsInput | string + retention_policy?: Prisma.EnumRetentionPolicyFieldUpdateOperationsInput | $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsUpdateManyWithoutAttachmentNestedInput + blob?: Prisma.BlobsUpdateOneRequiredWithoutAttachmentsNestedInput + expenses?: Prisma.ExpensesUpdateManyWithoutAttachment_recordNestedInput + expenses_archive?: Prisma.ExpensesArchiveUpdateManyWithoutAttachment_recordNestedInput +} + +export type AttachmentsUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + sha256?: Prisma.StringFieldUpdateOperationsInput | string + owner_type?: Prisma.StringFieldUpdateOperationsInput | string + owner_id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumAttachmentStatusFieldUpdateOperationsInput | $Enums.AttachmentStatus + created_by?: Prisma.StringFieldUpdateOperationsInput | string + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + original_name?: Prisma.StringFieldUpdateOperationsInput | string + retention_policy?: Prisma.EnumRetentionPolicyFieldUpdateOperationsInput | $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsUncheckedUpdateManyWithoutAttachmentNestedInput + expenses?: Prisma.ExpensesUncheckedUpdateManyWithoutAttachment_recordNestedInput + expenses_archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutAttachment_recordNestedInput +} + +export type AttachmentsCreateManyInput = { + id?: number + sha256: string + owner_type: string + owner_id: string + status?: $Enums.AttachmentStatus + created_by: string + created_at?: Date | string + original_name: string + retention_policy: $Enums.RetentionPolicy +} + +export type AttachmentsUpdateManyMutationInput = { + owner_type?: Prisma.StringFieldUpdateOperationsInput | string + owner_id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumAttachmentStatusFieldUpdateOperationsInput | $Enums.AttachmentStatus + created_by?: Prisma.StringFieldUpdateOperationsInput | string + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + original_name?: Prisma.StringFieldUpdateOperationsInput | string + retention_policy?: Prisma.EnumRetentionPolicyFieldUpdateOperationsInput | $Enums.RetentionPolicy +} + +export type AttachmentsUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + sha256?: Prisma.StringFieldUpdateOperationsInput | string + owner_type?: Prisma.StringFieldUpdateOperationsInput | string + owner_id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumAttachmentStatusFieldUpdateOperationsInput | $Enums.AttachmentStatus + created_by?: Prisma.StringFieldUpdateOperationsInput | string + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + original_name?: Prisma.StringFieldUpdateOperationsInput | string + retention_policy?: Prisma.EnumRetentionPolicyFieldUpdateOperationsInput | $Enums.RetentionPolicy +} + +export type AttachmentsNullableScalarRelationFilter = { + is?: Prisma.AttachmentsWhereInput | null + isNot?: Prisma.AttachmentsWhereInput | null +} + +export type AttachmentsListRelationFilter = { + every?: Prisma.AttachmentsWhereInput + some?: Prisma.AttachmentsWhereInput + none?: Prisma.AttachmentsWhereInput +} + +export type AttachmentsOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type AttachmentsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + sha256?: Prisma.SortOrder + owner_type?: Prisma.SortOrder + owner_id?: Prisma.SortOrder + status?: Prisma.SortOrder + created_by?: Prisma.SortOrder + created_at?: Prisma.SortOrder + original_name?: Prisma.SortOrder + retention_policy?: Prisma.SortOrder +} + +export type AttachmentsAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type AttachmentsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + sha256?: Prisma.SortOrder + owner_type?: Prisma.SortOrder + owner_id?: Prisma.SortOrder + status?: Prisma.SortOrder + created_by?: Prisma.SortOrder + created_at?: Prisma.SortOrder + original_name?: Prisma.SortOrder + retention_policy?: Prisma.SortOrder +} + +export type AttachmentsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + sha256?: Prisma.SortOrder + owner_type?: Prisma.SortOrder + owner_id?: Prisma.SortOrder + status?: Prisma.SortOrder + created_by?: Prisma.SortOrder + created_at?: Prisma.SortOrder + original_name?: Prisma.SortOrder + retention_policy?: Prisma.SortOrder +} + +export type AttachmentsSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type AttachmentsScalarRelationFilter = { + is?: Prisma.AttachmentsWhereInput + isNot?: Prisma.AttachmentsWhereInput +} + +export type AttachmentsCreateNestedOneWithoutExpensesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.AttachmentsCreateOrConnectWithoutExpensesInput + connect?: Prisma.AttachmentsWhereUniqueInput +} + +export type AttachmentsUpdateOneWithoutExpensesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.AttachmentsCreateOrConnectWithoutExpensesInput + upsert?: Prisma.AttachmentsUpsertWithoutExpensesInput + disconnect?: Prisma.AttachmentsWhereInput | boolean + delete?: Prisma.AttachmentsWhereInput | boolean + connect?: Prisma.AttachmentsWhereUniqueInput + update?: Prisma.XOR, Prisma.AttachmentsUncheckedUpdateWithoutExpensesInput> +} + +export type AttachmentsCreateNestedOneWithoutExpenses_archiveInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.AttachmentsCreateOrConnectWithoutExpenses_archiveInput + connect?: Prisma.AttachmentsWhereUniqueInput +} + +export type AttachmentsUpdateOneWithoutExpenses_archiveNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.AttachmentsCreateOrConnectWithoutExpenses_archiveInput + upsert?: Prisma.AttachmentsUpsertWithoutExpenses_archiveInput + disconnect?: Prisma.AttachmentsWhereInput | boolean + delete?: Prisma.AttachmentsWhereInput | boolean + connect?: Prisma.AttachmentsWhereUniqueInput + update?: Prisma.XOR, Prisma.AttachmentsUncheckedUpdateWithoutExpenses_archiveInput> +} + +export type AttachmentsCreateNestedManyWithoutBlobInput = { + create?: Prisma.XOR | Prisma.AttachmentsCreateWithoutBlobInput[] | Prisma.AttachmentsUncheckedCreateWithoutBlobInput[] + connectOrCreate?: Prisma.AttachmentsCreateOrConnectWithoutBlobInput | Prisma.AttachmentsCreateOrConnectWithoutBlobInput[] + createMany?: Prisma.AttachmentsCreateManyBlobInputEnvelope + connect?: Prisma.AttachmentsWhereUniqueInput | Prisma.AttachmentsWhereUniqueInput[] +} + +export type AttachmentsUncheckedCreateNestedManyWithoutBlobInput = { + create?: Prisma.XOR | Prisma.AttachmentsCreateWithoutBlobInput[] | Prisma.AttachmentsUncheckedCreateWithoutBlobInput[] + connectOrCreate?: Prisma.AttachmentsCreateOrConnectWithoutBlobInput | Prisma.AttachmentsCreateOrConnectWithoutBlobInput[] + createMany?: Prisma.AttachmentsCreateManyBlobInputEnvelope + connect?: Prisma.AttachmentsWhereUniqueInput | Prisma.AttachmentsWhereUniqueInput[] +} + +export type AttachmentsUpdateManyWithoutBlobNestedInput = { + create?: Prisma.XOR | Prisma.AttachmentsCreateWithoutBlobInput[] | Prisma.AttachmentsUncheckedCreateWithoutBlobInput[] + connectOrCreate?: Prisma.AttachmentsCreateOrConnectWithoutBlobInput | Prisma.AttachmentsCreateOrConnectWithoutBlobInput[] + upsert?: Prisma.AttachmentsUpsertWithWhereUniqueWithoutBlobInput | Prisma.AttachmentsUpsertWithWhereUniqueWithoutBlobInput[] + createMany?: Prisma.AttachmentsCreateManyBlobInputEnvelope + set?: Prisma.AttachmentsWhereUniqueInput | Prisma.AttachmentsWhereUniqueInput[] + disconnect?: Prisma.AttachmentsWhereUniqueInput | Prisma.AttachmentsWhereUniqueInput[] + delete?: Prisma.AttachmentsWhereUniqueInput | Prisma.AttachmentsWhereUniqueInput[] + connect?: Prisma.AttachmentsWhereUniqueInput | Prisma.AttachmentsWhereUniqueInput[] + update?: Prisma.AttachmentsUpdateWithWhereUniqueWithoutBlobInput | Prisma.AttachmentsUpdateWithWhereUniqueWithoutBlobInput[] + updateMany?: Prisma.AttachmentsUpdateManyWithWhereWithoutBlobInput | Prisma.AttachmentsUpdateManyWithWhereWithoutBlobInput[] + deleteMany?: Prisma.AttachmentsScalarWhereInput | Prisma.AttachmentsScalarWhereInput[] +} + +export type AttachmentsUncheckedUpdateManyWithoutBlobNestedInput = { + create?: Prisma.XOR | Prisma.AttachmentsCreateWithoutBlobInput[] | Prisma.AttachmentsUncheckedCreateWithoutBlobInput[] + connectOrCreate?: Prisma.AttachmentsCreateOrConnectWithoutBlobInput | Prisma.AttachmentsCreateOrConnectWithoutBlobInput[] + upsert?: Prisma.AttachmentsUpsertWithWhereUniqueWithoutBlobInput | Prisma.AttachmentsUpsertWithWhereUniqueWithoutBlobInput[] + createMany?: Prisma.AttachmentsCreateManyBlobInputEnvelope + set?: Prisma.AttachmentsWhereUniqueInput | Prisma.AttachmentsWhereUniqueInput[] + disconnect?: Prisma.AttachmentsWhereUniqueInput | Prisma.AttachmentsWhereUniqueInput[] + delete?: Prisma.AttachmentsWhereUniqueInput | Prisma.AttachmentsWhereUniqueInput[] + connect?: Prisma.AttachmentsWhereUniqueInput | Prisma.AttachmentsWhereUniqueInput[] + update?: Prisma.AttachmentsUpdateWithWhereUniqueWithoutBlobInput | Prisma.AttachmentsUpdateWithWhereUniqueWithoutBlobInput[] + updateMany?: Prisma.AttachmentsUpdateManyWithWhereWithoutBlobInput | Prisma.AttachmentsUpdateManyWithWhereWithoutBlobInput[] + deleteMany?: Prisma.AttachmentsScalarWhereInput | Prisma.AttachmentsScalarWhereInput[] +} + +export type EnumAttachmentStatusFieldUpdateOperationsInput = { + set?: $Enums.AttachmentStatus +} + +export type EnumRetentionPolicyFieldUpdateOperationsInput = { + set?: $Enums.RetentionPolicy +} + +export type AttachmentsCreateNestedOneWithoutAttachmentVariantsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.AttachmentsCreateOrConnectWithoutAttachmentVariantsInput + connect?: Prisma.AttachmentsWhereUniqueInput +} + +export type AttachmentsUpdateOneRequiredWithoutAttachmentVariantsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.AttachmentsCreateOrConnectWithoutAttachmentVariantsInput + upsert?: Prisma.AttachmentsUpsertWithoutAttachmentVariantsInput + connect?: Prisma.AttachmentsWhereUniqueInput + update?: Prisma.XOR, Prisma.AttachmentsUncheckedUpdateWithoutAttachmentVariantsInput> +} + +export type AttachmentsCreateWithoutExpensesInput = { + owner_type: string + owner_id: string + status?: $Enums.AttachmentStatus + created_by: string + created_at?: Date | string + original_name: string + retention_policy: $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsCreateNestedManyWithoutAttachmentInput + blob: Prisma.BlobsCreateNestedOneWithoutAttachmentsInput + expenses_archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutAttachment_recordInput +} + +export type AttachmentsUncheckedCreateWithoutExpensesInput = { + id?: number + sha256: string + owner_type: string + owner_id: string + status?: $Enums.AttachmentStatus + created_by: string + created_at?: Date | string + original_name: string + retention_policy: $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsUncheckedCreateNestedManyWithoutAttachmentInput + expenses_archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutAttachment_recordInput +} + +export type AttachmentsCreateOrConnectWithoutExpensesInput = { + where: Prisma.AttachmentsWhereUniqueInput + create: Prisma.XOR +} + +export type AttachmentsUpsertWithoutExpensesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.AttachmentsWhereInput +} + +export type AttachmentsUpdateToOneWithWhereWithoutExpensesInput = { + where?: Prisma.AttachmentsWhereInput + data: Prisma.XOR +} + +export type AttachmentsUpdateWithoutExpensesInput = { + owner_type?: Prisma.StringFieldUpdateOperationsInput | string + owner_id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumAttachmentStatusFieldUpdateOperationsInput | $Enums.AttachmentStatus + created_by?: Prisma.StringFieldUpdateOperationsInput | string + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + original_name?: Prisma.StringFieldUpdateOperationsInput | string + retention_policy?: Prisma.EnumRetentionPolicyFieldUpdateOperationsInput | $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsUpdateManyWithoutAttachmentNestedInput + blob?: Prisma.BlobsUpdateOneRequiredWithoutAttachmentsNestedInput + expenses_archive?: Prisma.ExpensesArchiveUpdateManyWithoutAttachment_recordNestedInput +} + +export type AttachmentsUncheckedUpdateWithoutExpensesInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + sha256?: Prisma.StringFieldUpdateOperationsInput | string + owner_type?: Prisma.StringFieldUpdateOperationsInput | string + owner_id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumAttachmentStatusFieldUpdateOperationsInput | $Enums.AttachmentStatus + created_by?: Prisma.StringFieldUpdateOperationsInput | string + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + original_name?: Prisma.StringFieldUpdateOperationsInput | string + retention_policy?: Prisma.EnumRetentionPolicyFieldUpdateOperationsInput | $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsUncheckedUpdateManyWithoutAttachmentNestedInput + expenses_archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutAttachment_recordNestedInput +} + +export type AttachmentsCreateWithoutExpenses_archiveInput = { + owner_type: string + owner_id: string + status?: $Enums.AttachmentStatus + created_by: string + created_at?: Date | string + original_name: string + retention_policy: $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsCreateNestedManyWithoutAttachmentInput + blob: Prisma.BlobsCreateNestedOneWithoutAttachmentsInput + expenses?: Prisma.ExpensesCreateNestedManyWithoutAttachment_recordInput +} + +export type AttachmentsUncheckedCreateWithoutExpenses_archiveInput = { + id?: number + sha256: string + owner_type: string + owner_id: string + status?: $Enums.AttachmentStatus + created_by: string + created_at?: Date | string + original_name: string + retention_policy: $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsUncheckedCreateNestedManyWithoutAttachmentInput + expenses?: Prisma.ExpensesUncheckedCreateNestedManyWithoutAttachment_recordInput +} + +export type AttachmentsCreateOrConnectWithoutExpenses_archiveInput = { + where: Prisma.AttachmentsWhereUniqueInput + create: Prisma.XOR +} + +export type AttachmentsUpsertWithoutExpenses_archiveInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.AttachmentsWhereInput +} + +export type AttachmentsUpdateToOneWithWhereWithoutExpenses_archiveInput = { + where?: Prisma.AttachmentsWhereInput + data: Prisma.XOR +} + +export type AttachmentsUpdateWithoutExpenses_archiveInput = { + owner_type?: Prisma.StringFieldUpdateOperationsInput | string + owner_id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumAttachmentStatusFieldUpdateOperationsInput | $Enums.AttachmentStatus + created_by?: Prisma.StringFieldUpdateOperationsInput | string + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + original_name?: Prisma.StringFieldUpdateOperationsInput | string + retention_policy?: Prisma.EnumRetentionPolicyFieldUpdateOperationsInput | $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsUpdateManyWithoutAttachmentNestedInput + blob?: Prisma.BlobsUpdateOneRequiredWithoutAttachmentsNestedInput + expenses?: Prisma.ExpensesUpdateManyWithoutAttachment_recordNestedInput +} + +export type AttachmentsUncheckedUpdateWithoutExpenses_archiveInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + sha256?: Prisma.StringFieldUpdateOperationsInput | string + owner_type?: Prisma.StringFieldUpdateOperationsInput | string + owner_id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumAttachmentStatusFieldUpdateOperationsInput | $Enums.AttachmentStatus + created_by?: Prisma.StringFieldUpdateOperationsInput | string + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + original_name?: Prisma.StringFieldUpdateOperationsInput | string + retention_policy?: Prisma.EnumRetentionPolicyFieldUpdateOperationsInput | $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsUncheckedUpdateManyWithoutAttachmentNestedInput + expenses?: Prisma.ExpensesUncheckedUpdateManyWithoutAttachment_recordNestedInput +} + +export type AttachmentsCreateWithoutBlobInput = { + owner_type: string + owner_id: string + status?: $Enums.AttachmentStatus + created_by: string + created_at?: Date | string + original_name: string + retention_policy: $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsCreateNestedManyWithoutAttachmentInput + expenses?: Prisma.ExpensesCreateNestedManyWithoutAttachment_recordInput + expenses_archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutAttachment_recordInput +} + +export type AttachmentsUncheckedCreateWithoutBlobInput = { + id?: number + owner_type: string + owner_id: string + status?: $Enums.AttachmentStatus + created_by: string + created_at?: Date | string + original_name: string + retention_policy: $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsUncheckedCreateNestedManyWithoutAttachmentInput + expenses?: Prisma.ExpensesUncheckedCreateNestedManyWithoutAttachment_recordInput + expenses_archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutAttachment_recordInput +} + +export type AttachmentsCreateOrConnectWithoutBlobInput = { + where: Prisma.AttachmentsWhereUniqueInput + create: Prisma.XOR +} + +export type AttachmentsCreateManyBlobInputEnvelope = { + data: Prisma.AttachmentsCreateManyBlobInput | Prisma.AttachmentsCreateManyBlobInput[] + skipDuplicates?: boolean +} + +export type AttachmentsUpsertWithWhereUniqueWithoutBlobInput = { + where: Prisma.AttachmentsWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type AttachmentsUpdateWithWhereUniqueWithoutBlobInput = { + where: Prisma.AttachmentsWhereUniqueInput + data: Prisma.XOR +} + +export type AttachmentsUpdateManyWithWhereWithoutBlobInput = { + where: Prisma.AttachmentsScalarWhereInput + data: Prisma.XOR +} + +export type AttachmentsScalarWhereInput = { + AND?: Prisma.AttachmentsScalarWhereInput | Prisma.AttachmentsScalarWhereInput[] + OR?: Prisma.AttachmentsScalarWhereInput[] + NOT?: Prisma.AttachmentsScalarWhereInput | Prisma.AttachmentsScalarWhereInput[] + id?: Prisma.IntFilter<"Attachments"> | number + sha256?: Prisma.StringFilter<"Attachments"> | string + owner_type?: Prisma.StringFilter<"Attachments"> | string + owner_id?: Prisma.StringFilter<"Attachments"> | string + status?: Prisma.EnumAttachmentStatusFilter<"Attachments"> | $Enums.AttachmentStatus + created_by?: Prisma.StringFilter<"Attachments"> | string + created_at?: Prisma.DateTimeFilter<"Attachments"> | Date | string + original_name?: Prisma.StringFilter<"Attachments"> | string + retention_policy?: Prisma.EnumRetentionPolicyFilter<"Attachments"> | $Enums.RetentionPolicy +} + +export type AttachmentsCreateWithoutAttachmentVariantsInput = { + owner_type: string + owner_id: string + status?: $Enums.AttachmentStatus + created_by: string + created_at?: Date | string + original_name: string + retention_policy: $Enums.RetentionPolicy + blob: Prisma.BlobsCreateNestedOneWithoutAttachmentsInput + expenses?: Prisma.ExpensesCreateNestedManyWithoutAttachment_recordInput + expenses_archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutAttachment_recordInput +} + +export type AttachmentsUncheckedCreateWithoutAttachmentVariantsInput = { + id?: number + sha256: string + owner_type: string + owner_id: string + status?: $Enums.AttachmentStatus + created_by: string + created_at?: Date | string + original_name: string + retention_policy: $Enums.RetentionPolicy + expenses?: Prisma.ExpensesUncheckedCreateNestedManyWithoutAttachment_recordInput + expenses_archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutAttachment_recordInput +} + +export type AttachmentsCreateOrConnectWithoutAttachmentVariantsInput = { + where: Prisma.AttachmentsWhereUniqueInput + create: Prisma.XOR +} + +export type AttachmentsUpsertWithoutAttachmentVariantsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.AttachmentsWhereInput +} + +export type AttachmentsUpdateToOneWithWhereWithoutAttachmentVariantsInput = { + where?: Prisma.AttachmentsWhereInput + data: Prisma.XOR +} + +export type AttachmentsUpdateWithoutAttachmentVariantsInput = { + owner_type?: Prisma.StringFieldUpdateOperationsInput | string + owner_id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumAttachmentStatusFieldUpdateOperationsInput | $Enums.AttachmentStatus + created_by?: Prisma.StringFieldUpdateOperationsInput | string + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + original_name?: Prisma.StringFieldUpdateOperationsInput | string + retention_policy?: Prisma.EnumRetentionPolicyFieldUpdateOperationsInput | $Enums.RetentionPolicy + blob?: Prisma.BlobsUpdateOneRequiredWithoutAttachmentsNestedInput + expenses?: Prisma.ExpensesUpdateManyWithoutAttachment_recordNestedInput + expenses_archive?: Prisma.ExpensesArchiveUpdateManyWithoutAttachment_recordNestedInput +} + +export type AttachmentsUncheckedUpdateWithoutAttachmentVariantsInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + sha256?: Prisma.StringFieldUpdateOperationsInput | string + owner_type?: Prisma.StringFieldUpdateOperationsInput | string + owner_id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumAttachmentStatusFieldUpdateOperationsInput | $Enums.AttachmentStatus + created_by?: Prisma.StringFieldUpdateOperationsInput | string + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + original_name?: Prisma.StringFieldUpdateOperationsInput | string + retention_policy?: Prisma.EnumRetentionPolicyFieldUpdateOperationsInput | $Enums.RetentionPolicy + expenses?: Prisma.ExpensesUncheckedUpdateManyWithoutAttachment_recordNestedInput + expenses_archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutAttachment_recordNestedInput +} + +export type AttachmentsCreateManyBlobInput = { + id?: number + owner_type: string + owner_id: string + status?: $Enums.AttachmentStatus + created_by: string + created_at?: Date | string + original_name: string + retention_policy: $Enums.RetentionPolicy +} + +export type AttachmentsUpdateWithoutBlobInput = { + owner_type?: Prisma.StringFieldUpdateOperationsInput | string + owner_id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumAttachmentStatusFieldUpdateOperationsInput | $Enums.AttachmentStatus + created_by?: Prisma.StringFieldUpdateOperationsInput | string + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + original_name?: Prisma.StringFieldUpdateOperationsInput | string + retention_policy?: Prisma.EnumRetentionPolicyFieldUpdateOperationsInput | $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsUpdateManyWithoutAttachmentNestedInput + expenses?: Prisma.ExpensesUpdateManyWithoutAttachment_recordNestedInput + expenses_archive?: Prisma.ExpensesArchiveUpdateManyWithoutAttachment_recordNestedInput +} + +export type AttachmentsUncheckedUpdateWithoutBlobInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + owner_type?: Prisma.StringFieldUpdateOperationsInput | string + owner_id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumAttachmentStatusFieldUpdateOperationsInput | $Enums.AttachmentStatus + created_by?: Prisma.StringFieldUpdateOperationsInput | string + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + original_name?: Prisma.StringFieldUpdateOperationsInput | string + retention_policy?: Prisma.EnumRetentionPolicyFieldUpdateOperationsInput | $Enums.RetentionPolicy + AttachmentVariants?: Prisma.AttachmentVariantsUncheckedUpdateManyWithoutAttachmentNestedInput + expenses?: Prisma.ExpensesUncheckedUpdateManyWithoutAttachment_recordNestedInput + expenses_archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutAttachment_recordNestedInput +} + +export type AttachmentsUncheckedUpdateManyWithoutBlobInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + owner_type?: Prisma.StringFieldUpdateOperationsInput | string + owner_id?: Prisma.StringFieldUpdateOperationsInput | string + status?: Prisma.EnumAttachmentStatusFieldUpdateOperationsInput | $Enums.AttachmentStatus + created_by?: Prisma.StringFieldUpdateOperationsInput | string + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + original_name?: Prisma.StringFieldUpdateOperationsInput | string + retention_policy?: Prisma.EnumRetentionPolicyFieldUpdateOperationsInput | $Enums.RetentionPolicy +} + + +/** + * Count Type AttachmentsCountOutputType + */ + +export type AttachmentsCountOutputType = { + AttachmentVariants: number + expenses: number + expenses_archive: number +} + +export type AttachmentsCountOutputTypeSelect = { + AttachmentVariants?: boolean | AttachmentsCountOutputTypeCountAttachmentVariantsArgs + expenses?: boolean | AttachmentsCountOutputTypeCountExpensesArgs + expenses_archive?: boolean | AttachmentsCountOutputTypeCountExpenses_archiveArgs +} + +/** + * AttachmentsCountOutputType without action + */ +export type AttachmentsCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the AttachmentsCountOutputType + */ + select?: Prisma.AttachmentsCountOutputTypeSelect | null +} + +/** + * AttachmentsCountOutputType without action + */ +export type AttachmentsCountOutputTypeCountAttachmentVariantsArgs = { + where?: Prisma.AttachmentVariantsWhereInput +} + +/** + * AttachmentsCountOutputType without action + */ +export type AttachmentsCountOutputTypeCountExpensesArgs = { + where?: Prisma.ExpensesWhereInput +} + +/** + * AttachmentsCountOutputType without action + */ +export type AttachmentsCountOutputTypeCountExpenses_archiveArgs = { + where?: Prisma.ExpensesArchiveWhereInput +} + + +export type AttachmentsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + sha256?: boolean + owner_type?: boolean + owner_id?: boolean + status?: boolean + created_by?: boolean + created_at?: boolean + original_name?: boolean + retention_policy?: boolean + AttachmentVariants?: boolean | Prisma.Attachments$AttachmentVariantsArgs + blob?: boolean | Prisma.BlobsDefaultArgs + expenses?: boolean | Prisma.Attachments$expensesArgs + expenses_archive?: boolean | Prisma.Attachments$expenses_archiveArgs + _count?: boolean | Prisma.AttachmentsCountOutputTypeDefaultArgs +}, ExtArgs["result"]["attachments"]> + +export type AttachmentsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + sha256?: boolean + owner_type?: boolean + owner_id?: boolean + status?: boolean + created_by?: boolean + created_at?: boolean + original_name?: boolean + retention_policy?: boolean + blob?: boolean | Prisma.BlobsDefaultArgs +}, ExtArgs["result"]["attachments"]> + +export type AttachmentsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + sha256?: boolean + owner_type?: boolean + owner_id?: boolean + status?: boolean + created_by?: boolean + created_at?: boolean + original_name?: boolean + retention_policy?: boolean + blob?: boolean | Prisma.BlobsDefaultArgs +}, ExtArgs["result"]["attachments"]> + +export type AttachmentsSelectScalar = { + id?: boolean + sha256?: boolean + owner_type?: boolean + owner_id?: boolean + status?: boolean + created_by?: boolean + created_at?: boolean + original_name?: boolean + retention_policy?: boolean +} + +export type AttachmentsOmit = runtime.Types.Extensions.GetOmit<"id" | "sha256" | "owner_type" | "owner_id" | "status" | "created_by" | "created_at" | "original_name" | "retention_policy", ExtArgs["result"]["attachments"]> +export type AttachmentsInclude = { + AttachmentVariants?: boolean | Prisma.Attachments$AttachmentVariantsArgs + blob?: boolean | Prisma.BlobsDefaultArgs + expenses?: boolean | Prisma.Attachments$expensesArgs + expenses_archive?: boolean | Prisma.Attachments$expenses_archiveArgs + _count?: boolean | Prisma.AttachmentsCountOutputTypeDefaultArgs +} +export type AttachmentsIncludeCreateManyAndReturn = { + blob?: boolean | Prisma.BlobsDefaultArgs +} +export type AttachmentsIncludeUpdateManyAndReturn = { + blob?: boolean | Prisma.BlobsDefaultArgs +} + +export type $AttachmentsPayload = { + name: "Attachments" + objects: { + AttachmentVariants: Prisma.$AttachmentVariantsPayload[] + blob: Prisma.$BlobsPayload + expenses: Prisma.$ExpensesPayload[] + expenses_archive: Prisma.$ExpensesArchivePayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + sha256: string + owner_type: string + owner_id: string + status: $Enums.AttachmentStatus + created_by: string + created_at: Date + original_name: string + retention_policy: $Enums.RetentionPolicy + }, ExtArgs["result"]["attachments"]> + composites: {} +} + +export type AttachmentsGetPayload = runtime.Types.Result.GetResult + +export type AttachmentsCountArgs = + Omit & { + select?: AttachmentsCountAggregateInputType | true + } + +export interface AttachmentsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Attachments'], meta: { name: 'Attachments' } } + /** + * Find zero or one Attachments that matches the filter. + * @param {AttachmentsFindUniqueArgs} args - Arguments to find a Attachments + * @example + * // Get one Attachments + * const attachments = await prisma.attachments.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AttachmentsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Attachments that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AttachmentsFindUniqueOrThrowArgs} args - Arguments to find a Attachments + * @example + * // Get one Attachments + * const attachments = await prisma.attachments.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AttachmentsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Attachments 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 {AttachmentsFindFirstArgs} args - Arguments to find a Attachments + * @example + * // Get one Attachments + * const attachments = await prisma.attachments.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AttachmentsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Attachments 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 {AttachmentsFindFirstOrThrowArgs} args - Arguments to find a Attachments + * @example + * // Get one Attachments + * const attachments = await prisma.attachments.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AttachmentsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Attachments 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 {AttachmentsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Attachments + * const attachments = await prisma.attachments.findMany() + * + * // Get first 10 Attachments + * const attachments = await prisma.attachments.findMany({ take: 10 }) + * + * // Only select the `id` + * const attachmentsWithIdOnly = await prisma.attachments.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Attachments. + * @param {AttachmentsCreateArgs} args - Arguments to create a Attachments. + * @example + * // Create one Attachments + * const Attachments = await prisma.attachments.create({ + * data: { + * // ... data to create a Attachments + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__AttachmentsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Attachments. + * @param {AttachmentsCreateManyArgs} args - Arguments to create many Attachments. + * @example + * // Create many Attachments + * const attachments = await prisma.attachments.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Attachments and returns the data saved in the database. + * @param {AttachmentsCreateManyAndReturnArgs} args - Arguments to create many Attachments. + * @example + * // Create many Attachments + * const attachments = await prisma.attachments.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Attachments and only return the `id` + * const attachmentsWithIdOnly = await prisma.attachments.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 Attachments. + * @param {AttachmentsDeleteArgs} args - Arguments to delete one Attachments. + * @example + * // Delete one Attachments + * const Attachments = await prisma.attachments.delete({ + * where: { + * // ... filter to delete one Attachments + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__AttachmentsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Attachments. + * @param {AttachmentsUpdateArgs} args - Arguments to update one Attachments. + * @example + * // Update one Attachments + * const attachments = await prisma.attachments.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__AttachmentsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Attachments. + * @param {AttachmentsDeleteManyArgs} args - Arguments to filter Attachments to delete. + * @example + * // Delete a few Attachments + * const { count } = await prisma.attachments.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Attachments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AttachmentsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Attachments + * const attachments = await prisma.attachments.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Attachments and returns the data updated in the database. + * @param {AttachmentsUpdateManyAndReturnArgs} args - Arguments to update many Attachments. + * @example + * // Update many Attachments + * const attachments = await prisma.attachments.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Attachments and only return the `id` + * const attachmentsWithIdOnly = await prisma.attachments.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 Attachments. + * @param {AttachmentsUpsertArgs} args - Arguments to update or create a Attachments. + * @example + * // Update or create a Attachments + * const attachments = await prisma.attachments.upsert({ + * create: { + * // ... data to create a Attachments + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Attachments we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AttachmentsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Attachments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AttachmentsCountArgs} args - Arguments to filter Attachments to count. + * @example + * // Count the number of Attachments + * const count = await prisma.attachments.count({ + * where: { + * // ... the filter for the Attachments 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 Attachments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AttachmentsAggregateArgs} 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 Attachments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AttachmentsGroupByArgs} 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 AttachmentsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: AttachmentsGroupByArgs['orderBy'] } + : { orderBy?: AttachmentsGroupByArgs['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 ? GetAttachmentsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Attachments model + */ +readonly fields: AttachmentsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Attachments. + * 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__AttachmentsClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + AttachmentVariants = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + blob = {}>(args?: Prisma.Subset>): Prisma.Prisma__BlobsClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + expenses = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + expenses_archive = {}>(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 Attachments model + */ +export interface AttachmentsFieldRefs { + readonly id: Prisma.FieldRef<"Attachments", 'Int'> + readonly sha256: Prisma.FieldRef<"Attachments", 'String'> + readonly owner_type: Prisma.FieldRef<"Attachments", 'String'> + readonly owner_id: Prisma.FieldRef<"Attachments", 'String'> + readonly status: Prisma.FieldRef<"Attachments", 'AttachmentStatus'> + readonly created_by: Prisma.FieldRef<"Attachments", 'String'> + readonly created_at: Prisma.FieldRef<"Attachments", 'DateTime'> + readonly original_name: Prisma.FieldRef<"Attachments", 'String'> + readonly retention_policy: Prisma.FieldRef<"Attachments", 'RetentionPolicy'> +} + + +// Custom InputTypes +/** + * Attachments findUnique + */ +export type AttachmentsFindUniqueArgs = { + /** + * Select specific fields to fetch from the Attachments + */ + select?: Prisma.AttachmentsSelect | null + /** + * Omit specific fields from the Attachments + */ + omit?: Prisma.AttachmentsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentsInclude | null + /** + * Filter, which Attachments to fetch. + */ + where: Prisma.AttachmentsWhereUniqueInput +} + +/** + * Attachments findUniqueOrThrow + */ +export type AttachmentsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Attachments + */ + select?: Prisma.AttachmentsSelect | null + /** + * Omit specific fields from the Attachments + */ + omit?: Prisma.AttachmentsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentsInclude | null + /** + * Filter, which Attachments to fetch. + */ + where: Prisma.AttachmentsWhereUniqueInput +} + +/** + * Attachments findFirst + */ +export type AttachmentsFindFirstArgs = { + /** + * Select specific fields to fetch from the Attachments + */ + select?: Prisma.AttachmentsSelect | null + /** + * Omit specific fields from the Attachments + */ + omit?: Prisma.AttachmentsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentsInclude | null + /** + * Filter, which Attachments to fetch. + */ + where?: Prisma.AttachmentsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Attachments to fetch. + */ + orderBy?: Prisma.AttachmentsOrderByWithRelationInput | Prisma.AttachmentsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Attachments. + */ + cursor?: Prisma.AttachmentsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Attachments 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` Attachments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Attachments. + */ + distinct?: Prisma.AttachmentsScalarFieldEnum | Prisma.AttachmentsScalarFieldEnum[] +} + +/** + * Attachments findFirstOrThrow + */ +export type AttachmentsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Attachments + */ + select?: Prisma.AttachmentsSelect | null + /** + * Omit specific fields from the Attachments + */ + omit?: Prisma.AttachmentsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentsInclude | null + /** + * Filter, which Attachments to fetch. + */ + where?: Prisma.AttachmentsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Attachments to fetch. + */ + orderBy?: Prisma.AttachmentsOrderByWithRelationInput | Prisma.AttachmentsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Attachments. + */ + cursor?: Prisma.AttachmentsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Attachments 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` Attachments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Attachments. + */ + distinct?: Prisma.AttachmentsScalarFieldEnum | Prisma.AttachmentsScalarFieldEnum[] +} + +/** + * Attachments findMany + */ +export type AttachmentsFindManyArgs = { + /** + * Select specific fields to fetch from the Attachments + */ + select?: Prisma.AttachmentsSelect | null + /** + * Omit specific fields from the Attachments + */ + omit?: Prisma.AttachmentsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentsInclude | null + /** + * Filter, which Attachments to fetch. + */ + where?: Prisma.AttachmentsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Attachments to fetch. + */ + orderBy?: Prisma.AttachmentsOrderByWithRelationInput | Prisma.AttachmentsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Attachments. + */ + cursor?: Prisma.AttachmentsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Attachments 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` Attachments. + */ + skip?: number + distinct?: Prisma.AttachmentsScalarFieldEnum | Prisma.AttachmentsScalarFieldEnum[] +} + +/** + * Attachments create + */ +export type AttachmentsCreateArgs = { + /** + * Select specific fields to fetch from the Attachments + */ + select?: Prisma.AttachmentsSelect | null + /** + * Omit specific fields from the Attachments + */ + omit?: Prisma.AttachmentsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentsInclude | null + /** + * The data needed to create a Attachments. + */ + data: Prisma.XOR +} + +/** + * Attachments createMany + */ +export type AttachmentsCreateManyArgs = { + /** + * The data used to create many Attachments. + */ + data: Prisma.AttachmentsCreateManyInput | Prisma.AttachmentsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Attachments createManyAndReturn + */ +export type AttachmentsCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Attachments + */ + select?: Prisma.AttachmentsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Attachments + */ + omit?: Prisma.AttachmentsOmit | null + /** + * The data used to create many Attachments. + */ + data: Prisma.AttachmentsCreateManyInput | Prisma.AttachmentsCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentsIncludeCreateManyAndReturn | null +} + +/** + * Attachments update + */ +export type AttachmentsUpdateArgs = { + /** + * Select specific fields to fetch from the Attachments + */ + select?: Prisma.AttachmentsSelect | null + /** + * Omit specific fields from the Attachments + */ + omit?: Prisma.AttachmentsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentsInclude | null + /** + * The data needed to update a Attachments. + */ + data: Prisma.XOR + /** + * Choose, which Attachments to update. + */ + where: Prisma.AttachmentsWhereUniqueInput +} + +/** + * Attachments updateMany + */ +export type AttachmentsUpdateManyArgs = { + /** + * The data used to update Attachments. + */ + data: Prisma.XOR + /** + * Filter which Attachments to update + */ + where?: Prisma.AttachmentsWhereInput + /** + * Limit how many Attachments to update. + */ + limit?: number +} + +/** + * Attachments updateManyAndReturn + */ +export type AttachmentsUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Attachments + */ + select?: Prisma.AttachmentsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Attachments + */ + omit?: Prisma.AttachmentsOmit | null + /** + * The data used to update Attachments. + */ + data: Prisma.XOR + /** + * Filter which Attachments to update + */ + where?: Prisma.AttachmentsWhereInput + /** + * Limit how many Attachments to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentsIncludeUpdateManyAndReturn | null +} + +/** + * Attachments upsert + */ +export type AttachmentsUpsertArgs = { + /** + * Select specific fields to fetch from the Attachments + */ + select?: Prisma.AttachmentsSelect | null + /** + * Omit specific fields from the Attachments + */ + omit?: Prisma.AttachmentsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentsInclude | null + /** + * The filter to search for the Attachments to update in case it exists. + */ + where: Prisma.AttachmentsWhereUniqueInput + /** + * In case the Attachments found by the `where` argument doesn't exist, create a new Attachments with this data. + */ + create: Prisma.XOR + /** + * In case the Attachments was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Attachments delete + */ +export type AttachmentsDeleteArgs = { + /** + * Select specific fields to fetch from the Attachments + */ + select?: Prisma.AttachmentsSelect | null + /** + * Omit specific fields from the Attachments + */ + omit?: Prisma.AttachmentsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentsInclude | null + /** + * Filter which Attachments to delete. + */ + where: Prisma.AttachmentsWhereUniqueInput +} + +/** + * Attachments deleteMany + */ +export type AttachmentsDeleteManyArgs = { + /** + * Filter which Attachments to delete + */ + where?: Prisma.AttachmentsWhereInput + /** + * Limit how many Attachments to delete. + */ + limit?: number +} + +/** + * Attachments.AttachmentVariants + */ +export type Attachments$AttachmentVariantsArgs = { + /** + * Select specific fields to fetch from the AttachmentVariants + */ + select?: Prisma.AttachmentVariantsSelect | null + /** + * Omit specific fields from the AttachmentVariants + */ + omit?: Prisma.AttachmentVariantsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentVariantsInclude | null + where?: Prisma.AttachmentVariantsWhereInput + orderBy?: Prisma.AttachmentVariantsOrderByWithRelationInput | Prisma.AttachmentVariantsOrderByWithRelationInput[] + cursor?: Prisma.AttachmentVariantsWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AttachmentVariantsScalarFieldEnum | Prisma.AttachmentVariantsScalarFieldEnum[] +} + +/** + * Attachments.expenses + */ +export type Attachments$expensesArgs = { + /** + * Select specific fields to fetch from the Expenses + */ + select?: Prisma.ExpensesSelect | null + /** + * Omit specific fields from the Expenses + */ + omit?: Prisma.ExpensesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesInclude | null + where?: Prisma.ExpensesWhereInput + orderBy?: Prisma.ExpensesOrderByWithRelationInput | Prisma.ExpensesOrderByWithRelationInput[] + cursor?: Prisma.ExpensesWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ExpensesScalarFieldEnum | Prisma.ExpensesScalarFieldEnum[] +} + +/** + * Attachments.expenses_archive + */ +export type Attachments$expenses_archiveArgs = { + /** + * Select specific fields to fetch from the ExpensesArchive + */ + select?: Prisma.ExpensesArchiveSelect | null + /** + * Omit specific fields from the ExpensesArchive + */ + omit?: Prisma.ExpensesArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesArchiveInclude | null + where?: Prisma.ExpensesArchiveWhereInput + orderBy?: Prisma.ExpensesArchiveOrderByWithRelationInput | Prisma.ExpensesArchiveOrderByWithRelationInput[] + cursor?: Prisma.ExpensesArchiveWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ExpensesArchiveScalarFieldEnum | Prisma.ExpensesArchiveScalarFieldEnum[] +} + +/** + * Attachments without action + */ +export type AttachmentsDefaultArgs = { + /** + * Select specific fields to fetch from the Attachments + */ + select?: Prisma.AttachmentsSelect | null + /** + * Omit specific fields from the Attachments + */ + omit?: Prisma.AttachmentsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentsInclude | null +} diff --git a/prisma/generated/postgres/models/BankCodes.ts b/prisma/generated/postgres/models/BankCodes.ts new file mode 100644 index 0000000..34b3103 --- /dev/null +++ b/prisma/generated/postgres/models/BankCodes.ts @@ -0,0 +1,1735 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `BankCodes` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model BankCodes + * + */ +export type BankCodesModel = runtime.Types.Result.DefaultSelection + +export type AggregateBankCodes = { + _count: BankCodesCountAggregateOutputType | null + _avg: BankCodesAvgAggregateOutputType | null + _sum: BankCodesSumAggregateOutputType | null + _min: BankCodesMinAggregateOutputType | null + _max: BankCodesMaxAggregateOutputType | null +} + +export type BankCodesAvgAggregateOutputType = { + id: number | null + modifier: number | null +} + +export type BankCodesSumAggregateOutputType = { + id: number | null + modifier: number | null +} + +export type BankCodesMinAggregateOutputType = { + id: number | null + type: string | null + categorie: string | null + modifier: number | null + bank_code: string | null +} + +export type BankCodesMaxAggregateOutputType = { + id: number | null + type: string | null + categorie: string | null + modifier: number | null + bank_code: string | null +} + +export type BankCodesCountAggregateOutputType = { + id: number + type: number + categorie: number + modifier: number + bank_code: number + _all: number +} + + +export type BankCodesAvgAggregateInputType = { + id?: true + modifier?: true +} + +export type BankCodesSumAggregateInputType = { + id?: true + modifier?: true +} + +export type BankCodesMinAggregateInputType = { + id?: true + type?: true + categorie?: true + modifier?: true + bank_code?: true +} + +export type BankCodesMaxAggregateInputType = { + id?: true + type?: true + categorie?: true + modifier?: true + bank_code?: true +} + +export type BankCodesCountAggregateInputType = { + id?: true + type?: true + categorie?: true + modifier?: true + bank_code?: true + _all?: true +} + +export type BankCodesAggregateArgs = { + /** + * Filter which BankCodes to aggregate. + */ + where?: Prisma.BankCodesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of BankCodes to fetch. + */ + orderBy?: Prisma.BankCodesOrderByWithRelationInput | Prisma.BankCodesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.BankCodesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` BankCodes 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` BankCodes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned BankCodes + **/ + _count?: true | BankCodesCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: BankCodesAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: BankCodesSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: BankCodesMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: BankCodesMaxAggregateInputType +} + +export type GetBankCodesAggregateType = { + [P in keyof T & keyof AggregateBankCodes]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type BankCodesGroupByArgs = { + where?: Prisma.BankCodesWhereInput + orderBy?: Prisma.BankCodesOrderByWithAggregationInput | Prisma.BankCodesOrderByWithAggregationInput[] + by: Prisma.BankCodesScalarFieldEnum[] | Prisma.BankCodesScalarFieldEnum + having?: Prisma.BankCodesScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: BankCodesCountAggregateInputType | true + _avg?: BankCodesAvgAggregateInputType + _sum?: BankCodesSumAggregateInputType + _min?: BankCodesMinAggregateInputType + _max?: BankCodesMaxAggregateInputType +} + +export type BankCodesGroupByOutputType = { + id: number + type: string + categorie: string + modifier: number + bank_code: string + _count: BankCodesCountAggregateOutputType | null + _avg: BankCodesAvgAggregateOutputType | null + _sum: BankCodesSumAggregateOutputType | null + _min: BankCodesMinAggregateOutputType | null + _max: BankCodesMaxAggregateOutputType | null +} + +type GetBankCodesGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof BankCodesGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type BankCodesWhereInput = { + AND?: Prisma.BankCodesWhereInput | Prisma.BankCodesWhereInput[] + OR?: Prisma.BankCodesWhereInput[] + NOT?: Prisma.BankCodesWhereInput | Prisma.BankCodesWhereInput[] + id?: Prisma.IntFilter<"BankCodes"> | number + type?: Prisma.StringFilter<"BankCodes"> | string + categorie?: Prisma.StringFilter<"BankCodes"> | string + modifier?: Prisma.FloatFilter<"BankCodes"> | number + bank_code?: Prisma.StringFilter<"BankCodes"> | string + expenses?: Prisma.ExpensesListRelationFilter + leaveRequests?: Prisma.LeaveRequestsListRelationFilter + SchedulePresetShifts?: Prisma.SchedulePresetShiftsListRelationFilter + shifts?: Prisma.ShiftsListRelationFilter +} + +export type BankCodesOrderByWithRelationInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + categorie?: Prisma.SortOrder + modifier?: Prisma.SortOrder + bank_code?: Prisma.SortOrder + expenses?: Prisma.ExpensesOrderByRelationAggregateInput + leaveRequests?: Prisma.LeaveRequestsOrderByRelationAggregateInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsOrderByRelationAggregateInput + shifts?: Prisma.ShiftsOrderByRelationAggregateInput +} + +export type BankCodesWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.BankCodesWhereInput | Prisma.BankCodesWhereInput[] + OR?: Prisma.BankCodesWhereInput[] + NOT?: Prisma.BankCodesWhereInput | Prisma.BankCodesWhereInput[] + type?: Prisma.StringFilter<"BankCodes"> | string + categorie?: Prisma.StringFilter<"BankCodes"> | string + modifier?: Prisma.FloatFilter<"BankCodes"> | number + bank_code?: Prisma.StringFilter<"BankCodes"> | string + expenses?: Prisma.ExpensesListRelationFilter + leaveRequests?: Prisma.LeaveRequestsListRelationFilter + SchedulePresetShifts?: Prisma.SchedulePresetShiftsListRelationFilter + shifts?: Prisma.ShiftsListRelationFilter +}, "id"> + +export type BankCodesOrderByWithAggregationInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + categorie?: Prisma.SortOrder + modifier?: Prisma.SortOrder + bank_code?: Prisma.SortOrder + _count?: Prisma.BankCodesCountOrderByAggregateInput + _avg?: Prisma.BankCodesAvgOrderByAggregateInput + _max?: Prisma.BankCodesMaxOrderByAggregateInput + _min?: Prisma.BankCodesMinOrderByAggregateInput + _sum?: Prisma.BankCodesSumOrderByAggregateInput +} + +export type BankCodesScalarWhereWithAggregatesInput = { + AND?: Prisma.BankCodesScalarWhereWithAggregatesInput | Prisma.BankCodesScalarWhereWithAggregatesInput[] + OR?: Prisma.BankCodesScalarWhereWithAggregatesInput[] + NOT?: Prisma.BankCodesScalarWhereWithAggregatesInput | Prisma.BankCodesScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"BankCodes"> | number + type?: Prisma.StringWithAggregatesFilter<"BankCodes"> | string + categorie?: Prisma.StringWithAggregatesFilter<"BankCodes"> | string + modifier?: Prisma.FloatWithAggregatesFilter<"BankCodes"> | number + bank_code?: Prisma.StringWithAggregatesFilter<"BankCodes"> | string +} + +export type BankCodesCreateInput = { + type: string + categorie: string + modifier: number + bank_code: string + expenses?: Prisma.ExpensesCreateNestedManyWithoutBank_codeInput + leaveRequests?: Prisma.LeaveRequestsCreateNestedManyWithoutBank_codeInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsCreateNestedManyWithoutBank_codeInput + shifts?: Prisma.ShiftsCreateNestedManyWithoutBank_codeInput +} + +export type BankCodesUncheckedCreateInput = { + id?: number + type: string + categorie: string + modifier: number + bank_code: string + expenses?: Prisma.ExpensesUncheckedCreateNestedManyWithoutBank_codeInput + leaveRequests?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutBank_codeInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsUncheckedCreateNestedManyWithoutBank_codeInput + shifts?: Prisma.ShiftsUncheckedCreateNestedManyWithoutBank_codeInput +} + +export type BankCodesUpdateInput = { + type?: Prisma.StringFieldUpdateOperationsInput | string + categorie?: Prisma.StringFieldUpdateOperationsInput | string + modifier?: Prisma.FloatFieldUpdateOperationsInput | number + bank_code?: Prisma.StringFieldUpdateOperationsInput | string + expenses?: Prisma.ExpensesUpdateManyWithoutBank_codeNestedInput + leaveRequests?: Prisma.LeaveRequestsUpdateManyWithoutBank_codeNestedInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsUpdateManyWithoutBank_codeNestedInput + shifts?: Prisma.ShiftsUpdateManyWithoutBank_codeNestedInput +} + +export type BankCodesUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + type?: Prisma.StringFieldUpdateOperationsInput | string + categorie?: Prisma.StringFieldUpdateOperationsInput | string + modifier?: Prisma.FloatFieldUpdateOperationsInput | number + bank_code?: Prisma.StringFieldUpdateOperationsInput | string + expenses?: Prisma.ExpensesUncheckedUpdateManyWithoutBank_codeNestedInput + leaveRequests?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutBank_codeNestedInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsUncheckedUpdateManyWithoutBank_codeNestedInput + shifts?: Prisma.ShiftsUncheckedUpdateManyWithoutBank_codeNestedInput +} + +export type BankCodesCreateManyInput = { + id?: number + type: string + categorie: string + modifier: number + bank_code: string +} + +export type BankCodesUpdateManyMutationInput = { + type?: Prisma.StringFieldUpdateOperationsInput | string + categorie?: Prisma.StringFieldUpdateOperationsInput | string + modifier?: Prisma.FloatFieldUpdateOperationsInput | number + bank_code?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type BankCodesUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + type?: Prisma.StringFieldUpdateOperationsInput | string + categorie?: Prisma.StringFieldUpdateOperationsInput | string + modifier?: Prisma.FloatFieldUpdateOperationsInput | number + bank_code?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type BankCodesScalarRelationFilter = { + is?: Prisma.BankCodesWhereInput + isNot?: Prisma.BankCodesWhereInput +} + +export type BankCodesCountOrderByAggregateInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + categorie?: Prisma.SortOrder + modifier?: Prisma.SortOrder + bank_code?: Prisma.SortOrder +} + +export type BankCodesAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + modifier?: Prisma.SortOrder +} + +export type BankCodesMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + categorie?: Prisma.SortOrder + modifier?: Prisma.SortOrder + bank_code?: Prisma.SortOrder +} + +export type BankCodesMinOrderByAggregateInput = { + id?: Prisma.SortOrder + type?: Prisma.SortOrder + categorie?: Prisma.SortOrder + modifier?: Prisma.SortOrder + bank_code?: Prisma.SortOrder +} + +export type BankCodesSumOrderByAggregateInput = { + id?: Prisma.SortOrder + modifier?: Prisma.SortOrder +} + +export type BankCodesCreateNestedOneWithoutLeaveRequestsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.BankCodesCreateOrConnectWithoutLeaveRequestsInput + connect?: Prisma.BankCodesWhereUniqueInput +} + +export type BankCodesUpdateOneRequiredWithoutLeaveRequestsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.BankCodesCreateOrConnectWithoutLeaveRequestsInput + upsert?: Prisma.BankCodesUpsertWithoutLeaveRequestsInput + connect?: Prisma.BankCodesWhereUniqueInput + update?: Prisma.XOR, Prisma.BankCodesUncheckedUpdateWithoutLeaveRequestsInput> +} + +export type BankCodesCreateNestedOneWithoutSchedulePresetShiftsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.BankCodesCreateOrConnectWithoutSchedulePresetShiftsInput + connect?: Prisma.BankCodesWhereUniqueInput +} + +export type BankCodesUpdateOneRequiredWithoutSchedulePresetShiftsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.BankCodesCreateOrConnectWithoutSchedulePresetShiftsInput + upsert?: Prisma.BankCodesUpsertWithoutSchedulePresetShiftsInput + connect?: Prisma.BankCodesWhereUniqueInput + update?: Prisma.XOR, Prisma.BankCodesUncheckedUpdateWithoutSchedulePresetShiftsInput> +} + +export type BankCodesCreateNestedOneWithoutShiftsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.BankCodesCreateOrConnectWithoutShiftsInput + connect?: Prisma.BankCodesWhereUniqueInput +} + +export type BankCodesUpdateOneRequiredWithoutShiftsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.BankCodesCreateOrConnectWithoutShiftsInput + upsert?: Prisma.BankCodesUpsertWithoutShiftsInput + connect?: Prisma.BankCodesWhereUniqueInput + update?: Prisma.XOR, Prisma.BankCodesUncheckedUpdateWithoutShiftsInput> +} + +export type FloatFieldUpdateOperationsInput = { + set?: number + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type BankCodesCreateNestedOneWithoutExpensesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.BankCodesCreateOrConnectWithoutExpensesInput + connect?: Prisma.BankCodesWhereUniqueInput +} + +export type BankCodesUpdateOneRequiredWithoutExpensesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.BankCodesCreateOrConnectWithoutExpensesInput + upsert?: Prisma.BankCodesUpsertWithoutExpensesInput + connect?: Prisma.BankCodesWhereUniqueInput + update?: Prisma.XOR, Prisma.BankCodesUncheckedUpdateWithoutExpensesInput> +} + +export type BankCodesCreateWithoutLeaveRequestsInput = { + type: string + categorie: string + modifier: number + bank_code: string + expenses?: Prisma.ExpensesCreateNestedManyWithoutBank_codeInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsCreateNestedManyWithoutBank_codeInput + shifts?: Prisma.ShiftsCreateNestedManyWithoutBank_codeInput +} + +export type BankCodesUncheckedCreateWithoutLeaveRequestsInput = { + id?: number + type: string + categorie: string + modifier: number + bank_code: string + expenses?: Prisma.ExpensesUncheckedCreateNestedManyWithoutBank_codeInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsUncheckedCreateNestedManyWithoutBank_codeInput + shifts?: Prisma.ShiftsUncheckedCreateNestedManyWithoutBank_codeInput +} + +export type BankCodesCreateOrConnectWithoutLeaveRequestsInput = { + where: Prisma.BankCodesWhereUniqueInput + create: Prisma.XOR +} + +export type BankCodesUpsertWithoutLeaveRequestsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.BankCodesWhereInput +} + +export type BankCodesUpdateToOneWithWhereWithoutLeaveRequestsInput = { + where?: Prisma.BankCodesWhereInput + data: Prisma.XOR +} + +export type BankCodesUpdateWithoutLeaveRequestsInput = { + type?: Prisma.StringFieldUpdateOperationsInput | string + categorie?: Prisma.StringFieldUpdateOperationsInput | string + modifier?: Prisma.FloatFieldUpdateOperationsInput | number + bank_code?: Prisma.StringFieldUpdateOperationsInput | string + expenses?: Prisma.ExpensesUpdateManyWithoutBank_codeNestedInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsUpdateManyWithoutBank_codeNestedInput + shifts?: Prisma.ShiftsUpdateManyWithoutBank_codeNestedInput +} + +export type BankCodesUncheckedUpdateWithoutLeaveRequestsInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + type?: Prisma.StringFieldUpdateOperationsInput | string + categorie?: Prisma.StringFieldUpdateOperationsInput | string + modifier?: Prisma.FloatFieldUpdateOperationsInput | number + bank_code?: Prisma.StringFieldUpdateOperationsInput | string + expenses?: Prisma.ExpensesUncheckedUpdateManyWithoutBank_codeNestedInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsUncheckedUpdateManyWithoutBank_codeNestedInput + shifts?: Prisma.ShiftsUncheckedUpdateManyWithoutBank_codeNestedInput +} + +export type BankCodesCreateWithoutSchedulePresetShiftsInput = { + type: string + categorie: string + modifier: number + bank_code: string + expenses?: Prisma.ExpensesCreateNestedManyWithoutBank_codeInput + leaveRequests?: Prisma.LeaveRequestsCreateNestedManyWithoutBank_codeInput + shifts?: Prisma.ShiftsCreateNestedManyWithoutBank_codeInput +} + +export type BankCodesUncheckedCreateWithoutSchedulePresetShiftsInput = { + id?: number + type: string + categorie: string + modifier: number + bank_code: string + expenses?: Prisma.ExpensesUncheckedCreateNestedManyWithoutBank_codeInput + leaveRequests?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutBank_codeInput + shifts?: Prisma.ShiftsUncheckedCreateNestedManyWithoutBank_codeInput +} + +export type BankCodesCreateOrConnectWithoutSchedulePresetShiftsInput = { + where: Prisma.BankCodesWhereUniqueInput + create: Prisma.XOR +} + +export type BankCodesUpsertWithoutSchedulePresetShiftsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.BankCodesWhereInput +} + +export type BankCodesUpdateToOneWithWhereWithoutSchedulePresetShiftsInput = { + where?: Prisma.BankCodesWhereInput + data: Prisma.XOR +} + +export type BankCodesUpdateWithoutSchedulePresetShiftsInput = { + type?: Prisma.StringFieldUpdateOperationsInput | string + categorie?: Prisma.StringFieldUpdateOperationsInput | string + modifier?: Prisma.FloatFieldUpdateOperationsInput | number + bank_code?: Prisma.StringFieldUpdateOperationsInput | string + expenses?: Prisma.ExpensesUpdateManyWithoutBank_codeNestedInput + leaveRequests?: Prisma.LeaveRequestsUpdateManyWithoutBank_codeNestedInput + shifts?: Prisma.ShiftsUpdateManyWithoutBank_codeNestedInput +} + +export type BankCodesUncheckedUpdateWithoutSchedulePresetShiftsInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + type?: Prisma.StringFieldUpdateOperationsInput | string + categorie?: Prisma.StringFieldUpdateOperationsInput | string + modifier?: Prisma.FloatFieldUpdateOperationsInput | number + bank_code?: Prisma.StringFieldUpdateOperationsInput | string + expenses?: Prisma.ExpensesUncheckedUpdateManyWithoutBank_codeNestedInput + leaveRequests?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutBank_codeNestedInput + shifts?: Prisma.ShiftsUncheckedUpdateManyWithoutBank_codeNestedInput +} + +export type BankCodesCreateWithoutShiftsInput = { + type: string + categorie: string + modifier: number + bank_code: string + expenses?: Prisma.ExpensesCreateNestedManyWithoutBank_codeInput + leaveRequests?: Prisma.LeaveRequestsCreateNestedManyWithoutBank_codeInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsCreateNestedManyWithoutBank_codeInput +} + +export type BankCodesUncheckedCreateWithoutShiftsInput = { + id?: number + type: string + categorie: string + modifier: number + bank_code: string + expenses?: Prisma.ExpensesUncheckedCreateNestedManyWithoutBank_codeInput + leaveRequests?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutBank_codeInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsUncheckedCreateNestedManyWithoutBank_codeInput +} + +export type BankCodesCreateOrConnectWithoutShiftsInput = { + where: Prisma.BankCodesWhereUniqueInput + create: Prisma.XOR +} + +export type BankCodesUpsertWithoutShiftsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.BankCodesWhereInput +} + +export type BankCodesUpdateToOneWithWhereWithoutShiftsInput = { + where?: Prisma.BankCodesWhereInput + data: Prisma.XOR +} + +export type BankCodesUpdateWithoutShiftsInput = { + type?: Prisma.StringFieldUpdateOperationsInput | string + categorie?: Prisma.StringFieldUpdateOperationsInput | string + modifier?: Prisma.FloatFieldUpdateOperationsInput | number + bank_code?: Prisma.StringFieldUpdateOperationsInput | string + expenses?: Prisma.ExpensesUpdateManyWithoutBank_codeNestedInput + leaveRequests?: Prisma.LeaveRequestsUpdateManyWithoutBank_codeNestedInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsUpdateManyWithoutBank_codeNestedInput +} + +export type BankCodesUncheckedUpdateWithoutShiftsInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + type?: Prisma.StringFieldUpdateOperationsInput | string + categorie?: Prisma.StringFieldUpdateOperationsInput | string + modifier?: Prisma.FloatFieldUpdateOperationsInput | number + bank_code?: Prisma.StringFieldUpdateOperationsInput | string + expenses?: Prisma.ExpensesUncheckedUpdateManyWithoutBank_codeNestedInput + leaveRequests?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutBank_codeNestedInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsUncheckedUpdateManyWithoutBank_codeNestedInput +} + +export type BankCodesCreateWithoutExpensesInput = { + type: string + categorie: string + modifier: number + bank_code: string + leaveRequests?: Prisma.LeaveRequestsCreateNestedManyWithoutBank_codeInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsCreateNestedManyWithoutBank_codeInput + shifts?: Prisma.ShiftsCreateNestedManyWithoutBank_codeInput +} + +export type BankCodesUncheckedCreateWithoutExpensesInput = { + id?: number + type: string + categorie: string + modifier: number + bank_code: string + leaveRequests?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutBank_codeInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsUncheckedCreateNestedManyWithoutBank_codeInput + shifts?: Prisma.ShiftsUncheckedCreateNestedManyWithoutBank_codeInput +} + +export type BankCodesCreateOrConnectWithoutExpensesInput = { + where: Prisma.BankCodesWhereUniqueInput + create: Prisma.XOR +} + +export type BankCodesUpsertWithoutExpensesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.BankCodesWhereInput +} + +export type BankCodesUpdateToOneWithWhereWithoutExpensesInput = { + where?: Prisma.BankCodesWhereInput + data: Prisma.XOR +} + +export type BankCodesUpdateWithoutExpensesInput = { + type?: Prisma.StringFieldUpdateOperationsInput | string + categorie?: Prisma.StringFieldUpdateOperationsInput | string + modifier?: Prisma.FloatFieldUpdateOperationsInput | number + bank_code?: Prisma.StringFieldUpdateOperationsInput | string + leaveRequests?: Prisma.LeaveRequestsUpdateManyWithoutBank_codeNestedInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsUpdateManyWithoutBank_codeNestedInput + shifts?: Prisma.ShiftsUpdateManyWithoutBank_codeNestedInput +} + +export type BankCodesUncheckedUpdateWithoutExpensesInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + type?: Prisma.StringFieldUpdateOperationsInput | string + categorie?: Prisma.StringFieldUpdateOperationsInput | string + modifier?: Prisma.FloatFieldUpdateOperationsInput | number + bank_code?: Prisma.StringFieldUpdateOperationsInput | string + leaveRequests?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutBank_codeNestedInput + SchedulePresetShifts?: Prisma.SchedulePresetShiftsUncheckedUpdateManyWithoutBank_codeNestedInput + shifts?: Prisma.ShiftsUncheckedUpdateManyWithoutBank_codeNestedInput +} + + +/** + * Count Type BankCodesCountOutputType + */ + +export type BankCodesCountOutputType = { + expenses: number + leaveRequests: number + SchedulePresetShifts: number + shifts: number +} + +export type BankCodesCountOutputTypeSelect = { + expenses?: boolean | BankCodesCountOutputTypeCountExpensesArgs + leaveRequests?: boolean | BankCodesCountOutputTypeCountLeaveRequestsArgs + SchedulePresetShifts?: boolean | BankCodesCountOutputTypeCountSchedulePresetShiftsArgs + shifts?: boolean | BankCodesCountOutputTypeCountShiftsArgs +} + +/** + * BankCodesCountOutputType without action + */ +export type BankCodesCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the BankCodesCountOutputType + */ + select?: Prisma.BankCodesCountOutputTypeSelect | null +} + +/** + * BankCodesCountOutputType without action + */ +export type BankCodesCountOutputTypeCountExpensesArgs = { + where?: Prisma.ExpensesWhereInput +} + +/** + * BankCodesCountOutputType without action + */ +export type BankCodesCountOutputTypeCountLeaveRequestsArgs = { + where?: Prisma.LeaveRequestsWhereInput +} + +/** + * BankCodesCountOutputType without action + */ +export type BankCodesCountOutputTypeCountSchedulePresetShiftsArgs = { + where?: Prisma.SchedulePresetShiftsWhereInput +} + +/** + * BankCodesCountOutputType without action + */ +export type BankCodesCountOutputTypeCountShiftsArgs = { + where?: Prisma.ShiftsWhereInput +} + + +export type BankCodesSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + type?: boolean + categorie?: boolean + modifier?: boolean + bank_code?: boolean + expenses?: boolean | Prisma.BankCodes$expensesArgs + leaveRequests?: boolean | Prisma.BankCodes$leaveRequestsArgs + SchedulePresetShifts?: boolean | Prisma.BankCodes$SchedulePresetShiftsArgs + shifts?: boolean | Prisma.BankCodes$shiftsArgs + _count?: boolean | Prisma.BankCodesCountOutputTypeDefaultArgs +}, ExtArgs["result"]["bankCodes"]> + +export type BankCodesSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + type?: boolean + categorie?: boolean + modifier?: boolean + bank_code?: boolean +}, ExtArgs["result"]["bankCodes"]> + +export type BankCodesSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + type?: boolean + categorie?: boolean + modifier?: boolean + bank_code?: boolean +}, ExtArgs["result"]["bankCodes"]> + +export type BankCodesSelectScalar = { + id?: boolean + type?: boolean + categorie?: boolean + modifier?: boolean + bank_code?: boolean +} + +export type BankCodesOmit = runtime.Types.Extensions.GetOmit<"id" | "type" | "categorie" | "modifier" | "bank_code", ExtArgs["result"]["bankCodes"]> +export type BankCodesInclude = { + expenses?: boolean | Prisma.BankCodes$expensesArgs + leaveRequests?: boolean | Prisma.BankCodes$leaveRequestsArgs + SchedulePresetShifts?: boolean | Prisma.BankCodes$SchedulePresetShiftsArgs + shifts?: boolean | Prisma.BankCodes$shiftsArgs + _count?: boolean | Prisma.BankCodesCountOutputTypeDefaultArgs +} +export type BankCodesIncludeCreateManyAndReturn = {} +export type BankCodesIncludeUpdateManyAndReturn = {} + +export type $BankCodesPayload = { + name: "BankCodes" + objects: { + expenses: Prisma.$ExpensesPayload[] + leaveRequests: Prisma.$LeaveRequestsPayload[] + SchedulePresetShifts: Prisma.$SchedulePresetShiftsPayload[] + shifts: Prisma.$ShiftsPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + type: string + categorie: string + modifier: number + bank_code: string + }, ExtArgs["result"]["bankCodes"]> + composites: {} +} + +export type BankCodesGetPayload = runtime.Types.Result.GetResult + +export type BankCodesCountArgs = + Omit & { + select?: BankCodesCountAggregateInputType | true + } + +export interface BankCodesDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['BankCodes'], meta: { name: 'BankCodes' } } + /** + * Find zero or one BankCodes that matches the filter. + * @param {BankCodesFindUniqueArgs} args - Arguments to find a BankCodes + * @example + * // Get one BankCodes + * const bankCodes = await prisma.bankCodes.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__BankCodesClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one BankCodes that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {BankCodesFindUniqueOrThrowArgs} args - Arguments to find a BankCodes + * @example + * // Get one BankCodes + * const bankCodes = await prisma.bankCodes.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__BankCodesClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first BankCodes 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 {BankCodesFindFirstArgs} args - Arguments to find a BankCodes + * @example + * // Get one BankCodes + * const bankCodes = await prisma.bankCodes.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__BankCodesClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first BankCodes 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 {BankCodesFindFirstOrThrowArgs} args - Arguments to find a BankCodes + * @example + * // Get one BankCodes + * const bankCodes = await prisma.bankCodes.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__BankCodesClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more BankCodes 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 {BankCodesFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all BankCodes + * const bankCodes = await prisma.bankCodes.findMany() + * + * // Get first 10 BankCodes + * const bankCodes = await prisma.bankCodes.findMany({ take: 10 }) + * + * // Only select the `id` + * const bankCodesWithIdOnly = await prisma.bankCodes.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a BankCodes. + * @param {BankCodesCreateArgs} args - Arguments to create a BankCodes. + * @example + * // Create one BankCodes + * const BankCodes = await prisma.bankCodes.create({ + * data: { + * // ... data to create a BankCodes + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__BankCodesClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many BankCodes. + * @param {BankCodesCreateManyArgs} args - Arguments to create many BankCodes. + * @example + * // Create many BankCodes + * const bankCodes = await prisma.bankCodes.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many BankCodes and returns the data saved in the database. + * @param {BankCodesCreateManyAndReturnArgs} args - Arguments to create many BankCodes. + * @example + * // Create many BankCodes + * const bankCodes = await prisma.bankCodes.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many BankCodes and only return the `id` + * const bankCodesWithIdOnly = await prisma.bankCodes.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 BankCodes. + * @param {BankCodesDeleteArgs} args - Arguments to delete one BankCodes. + * @example + * // Delete one BankCodes + * const BankCodes = await prisma.bankCodes.delete({ + * where: { + * // ... filter to delete one BankCodes + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__BankCodesClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one BankCodes. + * @param {BankCodesUpdateArgs} args - Arguments to update one BankCodes. + * @example + * // Update one BankCodes + * const bankCodes = await prisma.bankCodes.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__BankCodesClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more BankCodes. + * @param {BankCodesDeleteManyArgs} args - Arguments to filter BankCodes to delete. + * @example + * // Delete a few BankCodes + * const { count } = await prisma.bankCodes.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more BankCodes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BankCodesUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many BankCodes + * const bankCodes = await prisma.bankCodes.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more BankCodes and returns the data updated in the database. + * @param {BankCodesUpdateManyAndReturnArgs} args - Arguments to update many BankCodes. + * @example + * // Update many BankCodes + * const bankCodes = await prisma.bankCodes.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more BankCodes and only return the `id` + * const bankCodesWithIdOnly = await prisma.bankCodes.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 BankCodes. + * @param {BankCodesUpsertArgs} args - Arguments to update or create a BankCodes. + * @example + * // Update or create a BankCodes + * const bankCodes = await prisma.bankCodes.upsert({ + * create: { + * // ... data to create a BankCodes + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the BankCodes we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__BankCodesClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of BankCodes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BankCodesCountArgs} args - Arguments to filter BankCodes to count. + * @example + * // Count the number of BankCodes + * const count = await prisma.bankCodes.count({ + * where: { + * // ... the filter for the BankCodes 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 BankCodes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BankCodesAggregateArgs} 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 BankCodes. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BankCodesGroupByArgs} 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 BankCodesGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: BankCodesGroupByArgs['orderBy'] } + : { orderBy?: BankCodesGroupByArgs['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 ? GetBankCodesGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the BankCodes model + */ +readonly fields: BankCodesFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for BankCodes. + * 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__BankCodesClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + expenses = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + leaveRequests = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + SchedulePresetShifts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + shifts = {}>(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 BankCodes model + */ +export interface BankCodesFieldRefs { + readonly id: Prisma.FieldRef<"BankCodes", 'Int'> + readonly type: Prisma.FieldRef<"BankCodes", 'String'> + readonly categorie: Prisma.FieldRef<"BankCodes", 'String'> + readonly modifier: Prisma.FieldRef<"BankCodes", 'Float'> + readonly bank_code: Prisma.FieldRef<"BankCodes", 'String'> +} + + +// Custom InputTypes +/** + * BankCodes findUnique + */ +export type BankCodesFindUniqueArgs = { + /** + * Select specific fields to fetch from the BankCodes + */ + select?: Prisma.BankCodesSelect | null + /** + * Omit specific fields from the BankCodes + */ + omit?: Prisma.BankCodesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BankCodesInclude | null + /** + * Filter, which BankCodes to fetch. + */ + where: Prisma.BankCodesWhereUniqueInput +} + +/** + * BankCodes findUniqueOrThrow + */ +export type BankCodesFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the BankCodes + */ + select?: Prisma.BankCodesSelect | null + /** + * Omit specific fields from the BankCodes + */ + omit?: Prisma.BankCodesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BankCodesInclude | null + /** + * Filter, which BankCodes to fetch. + */ + where: Prisma.BankCodesWhereUniqueInput +} + +/** + * BankCodes findFirst + */ +export type BankCodesFindFirstArgs = { + /** + * Select specific fields to fetch from the BankCodes + */ + select?: Prisma.BankCodesSelect | null + /** + * Omit specific fields from the BankCodes + */ + omit?: Prisma.BankCodesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BankCodesInclude | null + /** + * Filter, which BankCodes to fetch. + */ + where?: Prisma.BankCodesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of BankCodes to fetch. + */ + orderBy?: Prisma.BankCodesOrderByWithRelationInput | Prisma.BankCodesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for BankCodes. + */ + cursor?: Prisma.BankCodesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` BankCodes 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` BankCodes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of BankCodes. + */ + distinct?: Prisma.BankCodesScalarFieldEnum | Prisma.BankCodesScalarFieldEnum[] +} + +/** + * BankCodes findFirstOrThrow + */ +export type BankCodesFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the BankCodes + */ + select?: Prisma.BankCodesSelect | null + /** + * Omit specific fields from the BankCodes + */ + omit?: Prisma.BankCodesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BankCodesInclude | null + /** + * Filter, which BankCodes to fetch. + */ + where?: Prisma.BankCodesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of BankCodes to fetch. + */ + orderBy?: Prisma.BankCodesOrderByWithRelationInput | Prisma.BankCodesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for BankCodes. + */ + cursor?: Prisma.BankCodesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` BankCodes 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` BankCodes. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of BankCodes. + */ + distinct?: Prisma.BankCodesScalarFieldEnum | Prisma.BankCodesScalarFieldEnum[] +} + +/** + * BankCodes findMany + */ +export type BankCodesFindManyArgs = { + /** + * Select specific fields to fetch from the BankCodes + */ + select?: Prisma.BankCodesSelect | null + /** + * Omit specific fields from the BankCodes + */ + omit?: Prisma.BankCodesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BankCodesInclude | null + /** + * Filter, which BankCodes to fetch. + */ + where?: Prisma.BankCodesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of BankCodes to fetch. + */ + orderBy?: Prisma.BankCodesOrderByWithRelationInput | Prisma.BankCodesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing BankCodes. + */ + cursor?: Prisma.BankCodesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` BankCodes 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` BankCodes. + */ + skip?: number + distinct?: Prisma.BankCodesScalarFieldEnum | Prisma.BankCodesScalarFieldEnum[] +} + +/** + * BankCodes create + */ +export type BankCodesCreateArgs = { + /** + * Select specific fields to fetch from the BankCodes + */ + select?: Prisma.BankCodesSelect | null + /** + * Omit specific fields from the BankCodes + */ + omit?: Prisma.BankCodesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BankCodesInclude | null + /** + * The data needed to create a BankCodes. + */ + data: Prisma.XOR +} + +/** + * BankCodes createMany + */ +export type BankCodesCreateManyArgs = { + /** + * The data used to create many BankCodes. + */ + data: Prisma.BankCodesCreateManyInput | Prisma.BankCodesCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * BankCodes createManyAndReturn + */ +export type BankCodesCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the BankCodes + */ + select?: Prisma.BankCodesSelectCreateManyAndReturn | null + /** + * Omit specific fields from the BankCodes + */ + omit?: Prisma.BankCodesOmit | null + /** + * The data used to create many BankCodes. + */ + data: Prisma.BankCodesCreateManyInput | Prisma.BankCodesCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * BankCodes update + */ +export type BankCodesUpdateArgs = { + /** + * Select specific fields to fetch from the BankCodes + */ + select?: Prisma.BankCodesSelect | null + /** + * Omit specific fields from the BankCodes + */ + omit?: Prisma.BankCodesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BankCodesInclude | null + /** + * The data needed to update a BankCodes. + */ + data: Prisma.XOR + /** + * Choose, which BankCodes to update. + */ + where: Prisma.BankCodesWhereUniqueInput +} + +/** + * BankCodes updateMany + */ +export type BankCodesUpdateManyArgs = { + /** + * The data used to update BankCodes. + */ + data: Prisma.XOR + /** + * Filter which BankCodes to update + */ + where?: Prisma.BankCodesWhereInput + /** + * Limit how many BankCodes to update. + */ + limit?: number +} + +/** + * BankCodes updateManyAndReturn + */ +export type BankCodesUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the BankCodes + */ + select?: Prisma.BankCodesSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the BankCodes + */ + omit?: Prisma.BankCodesOmit | null + /** + * The data used to update BankCodes. + */ + data: Prisma.XOR + /** + * Filter which BankCodes to update + */ + where?: Prisma.BankCodesWhereInput + /** + * Limit how many BankCodes to update. + */ + limit?: number +} + +/** + * BankCodes upsert + */ +export type BankCodesUpsertArgs = { + /** + * Select specific fields to fetch from the BankCodes + */ + select?: Prisma.BankCodesSelect | null + /** + * Omit specific fields from the BankCodes + */ + omit?: Prisma.BankCodesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BankCodesInclude | null + /** + * The filter to search for the BankCodes to update in case it exists. + */ + where: Prisma.BankCodesWhereUniqueInput + /** + * In case the BankCodes found by the `where` argument doesn't exist, create a new BankCodes with this data. + */ + create: Prisma.XOR + /** + * In case the BankCodes was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * BankCodes delete + */ +export type BankCodesDeleteArgs = { + /** + * Select specific fields to fetch from the BankCodes + */ + select?: Prisma.BankCodesSelect | null + /** + * Omit specific fields from the BankCodes + */ + omit?: Prisma.BankCodesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BankCodesInclude | null + /** + * Filter which BankCodes to delete. + */ + where: Prisma.BankCodesWhereUniqueInput +} + +/** + * BankCodes deleteMany + */ +export type BankCodesDeleteManyArgs = { + /** + * Filter which BankCodes to delete + */ + where?: Prisma.BankCodesWhereInput + /** + * Limit how many BankCodes to delete. + */ + limit?: number +} + +/** + * BankCodes.expenses + */ +export type BankCodes$expensesArgs = { + /** + * Select specific fields to fetch from the Expenses + */ + select?: Prisma.ExpensesSelect | null + /** + * Omit specific fields from the Expenses + */ + omit?: Prisma.ExpensesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesInclude | null + where?: Prisma.ExpensesWhereInput + orderBy?: Prisma.ExpensesOrderByWithRelationInput | Prisma.ExpensesOrderByWithRelationInput[] + cursor?: Prisma.ExpensesWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ExpensesScalarFieldEnum | Prisma.ExpensesScalarFieldEnum[] +} + +/** + * BankCodes.leaveRequests + */ +export type BankCodes$leaveRequestsArgs = { + /** + * Select specific fields to fetch from the LeaveRequests + */ + select?: Prisma.LeaveRequestsSelect | null + /** + * Omit specific fields from the LeaveRequests + */ + omit?: Prisma.LeaveRequestsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsInclude | null + where?: Prisma.LeaveRequestsWhereInput + orderBy?: Prisma.LeaveRequestsOrderByWithRelationInput | Prisma.LeaveRequestsOrderByWithRelationInput[] + cursor?: Prisma.LeaveRequestsWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.LeaveRequestsScalarFieldEnum | Prisma.LeaveRequestsScalarFieldEnum[] +} + +/** + * BankCodes.SchedulePresetShifts + */ +export type BankCodes$SchedulePresetShiftsArgs = { + /** + * Select specific fields to fetch from the SchedulePresetShifts + */ + select?: Prisma.SchedulePresetShiftsSelect | null + /** + * Omit specific fields from the SchedulePresetShifts + */ + omit?: Prisma.SchedulePresetShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetShiftsInclude | null + where?: Prisma.SchedulePresetShiftsWhereInput + orderBy?: Prisma.SchedulePresetShiftsOrderByWithRelationInput | Prisma.SchedulePresetShiftsOrderByWithRelationInput[] + cursor?: Prisma.SchedulePresetShiftsWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.SchedulePresetShiftsScalarFieldEnum | Prisma.SchedulePresetShiftsScalarFieldEnum[] +} + +/** + * BankCodes.shifts + */ +export type BankCodes$shiftsArgs = { + /** + * Select specific fields to fetch from the Shifts + */ + select?: Prisma.ShiftsSelect | null + /** + * Omit specific fields from the Shifts + */ + omit?: Prisma.ShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsInclude | null + where?: Prisma.ShiftsWhereInput + orderBy?: Prisma.ShiftsOrderByWithRelationInput | Prisma.ShiftsOrderByWithRelationInput[] + cursor?: Prisma.ShiftsWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ShiftsScalarFieldEnum | Prisma.ShiftsScalarFieldEnum[] +} + +/** + * BankCodes without action + */ +export type BankCodesDefaultArgs = { + /** + * Select specific fields to fetch from the BankCodes + */ + select?: Prisma.BankCodesSelect | null + /** + * Omit specific fields from the BankCodes + */ + omit?: Prisma.BankCodesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BankCodesInclude | null +} diff --git a/prisma/generated/postgres/models/Blobs.ts b/prisma/generated/postgres/models/Blobs.ts new file mode 100644 index 0000000..88a415b --- /dev/null +++ b/prisma/generated/postgres/models/Blobs.ts @@ -0,0 +1,1404 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Blobs` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model Blobs + * + */ +export type BlobsModel = runtime.Types.Result.DefaultSelection + +export type AggregateBlobs = { + _count: BlobsCountAggregateOutputType | null + _avg: BlobsAvgAggregateOutputType | null + _sum: BlobsSumAggregateOutputType | null + _min: BlobsMinAggregateOutputType | null + _max: BlobsMaxAggregateOutputType | null +} + +export type BlobsAvgAggregateOutputType = { + size: number | null + refcount: number | null +} + +export type BlobsSumAggregateOutputType = { + size: number | null + refcount: number | null +} + +export type BlobsMinAggregateOutputType = { + sha256: string | null + size: number | null + mime: string | null + storage_path: string | null + refcount: number | null + created_at: Date | null +} + +export type BlobsMaxAggregateOutputType = { + sha256: string | null + size: number | null + mime: string | null + storage_path: string | null + refcount: number | null + created_at: Date | null +} + +export type BlobsCountAggregateOutputType = { + sha256: number + size: number + mime: number + storage_path: number + refcount: number + created_at: number + _all: number +} + + +export type BlobsAvgAggregateInputType = { + size?: true + refcount?: true +} + +export type BlobsSumAggregateInputType = { + size?: true + refcount?: true +} + +export type BlobsMinAggregateInputType = { + sha256?: true + size?: true + mime?: true + storage_path?: true + refcount?: true + created_at?: true +} + +export type BlobsMaxAggregateInputType = { + sha256?: true + size?: true + mime?: true + storage_path?: true + refcount?: true + created_at?: true +} + +export type BlobsCountAggregateInputType = { + sha256?: true + size?: true + mime?: true + storage_path?: true + refcount?: true + created_at?: true + _all?: true +} + +export type BlobsAggregateArgs = { + /** + * Filter which Blobs to aggregate. + */ + where?: Prisma.BlobsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Blobs to fetch. + */ + orderBy?: Prisma.BlobsOrderByWithRelationInput | Prisma.BlobsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.BlobsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Blobs 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` Blobs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Blobs + **/ + _count?: true | BlobsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: BlobsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: BlobsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: BlobsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: BlobsMaxAggregateInputType +} + +export type GetBlobsAggregateType = { + [P in keyof T & keyof AggregateBlobs]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type BlobsGroupByArgs = { + where?: Prisma.BlobsWhereInput + orderBy?: Prisma.BlobsOrderByWithAggregationInput | Prisma.BlobsOrderByWithAggregationInput[] + by: Prisma.BlobsScalarFieldEnum[] | Prisma.BlobsScalarFieldEnum + having?: Prisma.BlobsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: BlobsCountAggregateInputType | true + _avg?: BlobsAvgAggregateInputType + _sum?: BlobsSumAggregateInputType + _min?: BlobsMinAggregateInputType + _max?: BlobsMaxAggregateInputType +} + +export type BlobsGroupByOutputType = { + sha256: string + size: number + mime: string + storage_path: string + refcount: number + created_at: Date + _count: BlobsCountAggregateOutputType | null + _avg: BlobsAvgAggregateOutputType | null + _sum: BlobsSumAggregateOutputType | null + _min: BlobsMinAggregateOutputType | null + _max: BlobsMaxAggregateOutputType | null +} + +type GetBlobsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof BlobsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type BlobsWhereInput = { + AND?: Prisma.BlobsWhereInput | Prisma.BlobsWhereInput[] + OR?: Prisma.BlobsWhereInput[] + NOT?: Prisma.BlobsWhereInput | Prisma.BlobsWhereInput[] + sha256?: Prisma.StringFilter<"Blobs"> | string + size?: Prisma.IntFilter<"Blobs"> | number + mime?: Prisma.StringFilter<"Blobs"> | string + storage_path?: Prisma.StringFilter<"Blobs"> | string + refcount?: Prisma.IntFilter<"Blobs"> | number + created_at?: Prisma.DateTimeFilter<"Blobs"> | Date | string + attachments?: Prisma.AttachmentsListRelationFilter +} + +export type BlobsOrderByWithRelationInput = { + sha256?: Prisma.SortOrder + size?: Prisma.SortOrder + mime?: Prisma.SortOrder + storage_path?: Prisma.SortOrder + refcount?: Prisma.SortOrder + created_at?: Prisma.SortOrder + attachments?: Prisma.AttachmentsOrderByRelationAggregateInput +} + +export type BlobsWhereUniqueInput = Prisma.AtLeast<{ + sha256?: string + AND?: Prisma.BlobsWhereInput | Prisma.BlobsWhereInput[] + OR?: Prisma.BlobsWhereInput[] + NOT?: Prisma.BlobsWhereInput | Prisma.BlobsWhereInput[] + size?: Prisma.IntFilter<"Blobs"> | number + mime?: Prisma.StringFilter<"Blobs"> | string + storage_path?: Prisma.StringFilter<"Blobs"> | string + refcount?: Prisma.IntFilter<"Blobs"> | number + created_at?: Prisma.DateTimeFilter<"Blobs"> | Date | string + attachments?: Prisma.AttachmentsListRelationFilter +}, "sha256"> + +export type BlobsOrderByWithAggregationInput = { + sha256?: Prisma.SortOrder + size?: Prisma.SortOrder + mime?: Prisma.SortOrder + storage_path?: Prisma.SortOrder + refcount?: Prisma.SortOrder + created_at?: Prisma.SortOrder + _count?: Prisma.BlobsCountOrderByAggregateInput + _avg?: Prisma.BlobsAvgOrderByAggregateInput + _max?: Prisma.BlobsMaxOrderByAggregateInput + _min?: Prisma.BlobsMinOrderByAggregateInput + _sum?: Prisma.BlobsSumOrderByAggregateInput +} + +export type BlobsScalarWhereWithAggregatesInput = { + AND?: Prisma.BlobsScalarWhereWithAggregatesInput | Prisma.BlobsScalarWhereWithAggregatesInput[] + OR?: Prisma.BlobsScalarWhereWithAggregatesInput[] + NOT?: Prisma.BlobsScalarWhereWithAggregatesInput | Prisma.BlobsScalarWhereWithAggregatesInput[] + sha256?: Prisma.StringWithAggregatesFilter<"Blobs"> | string + size?: Prisma.IntWithAggregatesFilter<"Blobs"> | number + mime?: Prisma.StringWithAggregatesFilter<"Blobs"> | string + storage_path?: Prisma.StringWithAggregatesFilter<"Blobs"> | string + refcount?: Prisma.IntWithAggregatesFilter<"Blobs"> | number + created_at?: Prisma.DateTimeWithAggregatesFilter<"Blobs"> | Date | string +} + +export type BlobsCreateInput = { + sha256: string + size: number + mime: string + storage_path: string + refcount?: number + created_at?: Date | string + attachments?: Prisma.AttachmentsCreateNestedManyWithoutBlobInput +} + +export type BlobsUncheckedCreateInput = { + sha256: string + size: number + mime: string + storage_path: string + refcount?: number + created_at?: Date | string + attachments?: Prisma.AttachmentsUncheckedCreateNestedManyWithoutBlobInput +} + +export type BlobsUpdateInput = { + sha256?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + mime?: Prisma.StringFieldUpdateOperationsInput | string + storage_path?: Prisma.StringFieldUpdateOperationsInput | string + refcount?: Prisma.IntFieldUpdateOperationsInput | number + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + attachments?: Prisma.AttachmentsUpdateManyWithoutBlobNestedInput +} + +export type BlobsUncheckedUpdateInput = { + sha256?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + mime?: Prisma.StringFieldUpdateOperationsInput | string + storage_path?: Prisma.StringFieldUpdateOperationsInput | string + refcount?: Prisma.IntFieldUpdateOperationsInput | number + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + attachments?: Prisma.AttachmentsUncheckedUpdateManyWithoutBlobNestedInput +} + +export type BlobsCreateManyInput = { + sha256: string + size: number + mime: string + storage_path: string + refcount?: number + created_at?: Date | string +} + +export type BlobsUpdateManyMutationInput = { + sha256?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + mime?: Prisma.StringFieldUpdateOperationsInput | string + storage_path?: Prisma.StringFieldUpdateOperationsInput | string + refcount?: Prisma.IntFieldUpdateOperationsInput | number + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type BlobsUncheckedUpdateManyInput = { + sha256?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + mime?: Prisma.StringFieldUpdateOperationsInput | string + storage_path?: Prisma.StringFieldUpdateOperationsInput | string + refcount?: Prisma.IntFieldUpdateOperationsInput | number + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type BlobsCountOrderByAggregateInput = { + sha256?: Prisma.SortOrder + size?: Prisma.SortOrder + mime?: Prisma.SortOrder + storage_path?: Prisma.SortOrder + refcount?: Prisma.SortOrder + created_at?: Prisma.SortOrder +} + +export type BlobsAvgOrderByAggregateInput = { + size?: Prisma.SortOrder + refcount?: Prisma.SortOrder +} + +export type BlobsMaxOrderByAggregateInput = { + sha256?: Prisma.SortOrder + size?: Prisma.SortOrder + mime?: Prisma.SortOrder + storage_path?: Prisma.SortOrder + refcount?: Prisma.SortOrder + created_at?: Prisma.SortOrder +} + +export type BlobsMinOrderByAggregateInput = { + sha256?: Prisma.SortOrder + size?: Prisma.SortOrder + mime?: Prisma.SortOrder + storage_path?: Prisma.SortOrder + refcount?: Prisma.SortOrder + created_at?: Prisma.SortOrder +} + +export type BlobsSumOrderByAggregateInput = { + size?: Prisma.SortOrder + refcount?: Prisma.SortOrder +} + +export type BlobsScalarRelationFilter = { + is?: Prisma.BlobsWhereInput + isNot?: Prisma.BlobsWhereInput +} + +export type BlobsCreateNestedOneWithoutAttachmentsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.BlobsCreateOrConnectWithoutAttachmentsInput + connect?: Prisma.BlobsWhereUniqueInput +} + +export type BlobsUpdateOneRequiredWithoutAttachmentsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.BlobsCreateOrConnectWithoutAttachmentsInput + upsert?: Prisma.BlobsUpsertWithoutAttachmentsInput + connect?: Prisma.BlobsWhereUniqueInput + update?: Prisma.XOR, Prisma.BlobsUncheckedUpdateWithoutAttachmentsInput> +} + +export type BlobsCreateWithoutAttachmentsInput = { + sha256: string + size: number + mime: string + storage_path: string + refcount?: number + created_at?: Date | string +} + +export type BlobsUncheckedCreateWithoutAttachmentsInput = { + sha256: string + size: number + mime: string + storage_path: string + refcount?: number + created_at?: Date | string +} + +export type BlobsCreateOrConnectWithoutAttachmentsInput = { + where: Prisma.BlobsWhereUniqueInput + create: Prisma.XOR +} + +export type BlobsUpsertWithoutAttachmentsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.BlobsWhereInput +} + +export type BlobsUpdateToOneWithWhereWithoutAttachmentsInput = { + where?: Prisma.BlobsWhereInput + data: Prisma.XOR +} + +export type BlobsUpdateWithoutAttachmentsInput = { + sha256?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + mime?: Prisma.StringFieldUpdateOperationsInput | string + storage_path?: Prisma.StringFieldUpdateOperationsInput | string + refcount?: Prisma.IntFieldUpdateOperationsInput | number + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type BlobsUncheckedUpdateWithoutAttachmentsInput = { + sha256?: Prisma.StringFieldUpdateOperationsInput | string + size?: Prisma.IntFieldUpdateOperationsInput | number + mime?: Prisma.StringFieldUpdateOperationsInput | string + storage_path?: Prisma.StringFieldUpdateOperationsInput | string + refcount?: Prisma.IntFieldUpdateOperationsInput | number + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + +/** + * Count Type BlobsCountOutputType + */ + +export type BlobsCountOutputType = { + attachments: number +} + +export type BlobsCountOutputTypeSelect = { + attachments?: boolean | BlobsCountOutputTypeCountAttachmentsArgs +} + +/** + * BlobsCountOutputType without action + */ +export type BlobsCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the BlobsCountOutputType + */ + select?: Prisma.BlobsCountOutputTypeSelect | null +} + +/** + * BlobsCountOutputType without action + */ +export type BlobsCountOutputTypeCountAttachmentsArgs = { + where?: Prisma.AttachmentsWhereInput +} + + +export type BlobsSelect = runtime.Types.Extensions.GetSelect<{ + sha256?: boolean + size?: boolean + mime?: boolean + storage_path?: boolean + refcount?: boolean + created_at?: boolean + attachments?: boolean | Prisma.Blobs$attachmentsArgs + _count?: boolean | Prisma.BlobsCountOutputTypeDefaultArgs +}, ExtArgs["result"]["blobs"]> + +export type BlobsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + sha256?: boolean + size?: boolean + mime?: boolean + storage_path?: boolean + refcount?: boolean + created_at?: boolean +}, ExtArgs["result"]["blobs"]> + +export type BlobsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + sha256?: boolean + size?: boolean + mime?: boolean + storage_path?: boolean + refcount?: boolean + created_at?: boolean +}, ExtArgs["result"]["blobs"]> + +export type BlobsSelectScalar = { + sha256?: boolean + size?: boolean + mime?: boolean + storage_path?: boolean + refcount?: boolean + created_at?: boolean +} + +export type BlobsOmit = runtime.Types.Extensions.GetOmit<"sha256" | "size" | "mime" | "storage_path" | "refcount" | "created_at", ExtArgs["result"]["blobs"]> +export type BlobsInclude = { + attachments?: boolean | Prisma.Blobs$attachmentsArgs + _count?: boolean | Prisma.BlobsCountOutputTypeDefaultArgs +} +export type BlobsIncludeCreateManyAndReturn = {} +export type BlobsIncludeUpdateManyAndReturn = {} + +export type $BlobsPayload = { + name: "Blobs" + objects: { + attachments: Prisma.$AttachmentsPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + sha256: string + size: number + mime: string + storage_path: string + refcount: number + created_at: Date + }, ExtArgs["result"]["blobs"]> + composites: {} +} + +export type BlobsGetPayload = runtime.Types.Result.GetResult + +export type BlobsCountArgs = + Omit & { + select?: BlobsCountAggregateInputType | true + } + +export interface BlobsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Blobs'], meta: { name: 'Blobs' } } + /** + * Find zero or one Blobs that matches the filter. + * @param {BlobsFindUniqueArgs} args - Arguments to find a Blobs + * @example + * // Get one Blobs + * const blobs = await prisma.blobs.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Blobs that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {BlobsFindUniqueOrThrowArgs} args - Arguments to find a Blobs + * @example + * // Get one Blobs + * const blobs = await prisma.blobs.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Blobs 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 {BlobsFindFirstArgs} args - Arguments to find a Blobs + * @example + * // Get one Blobs + * const blobs = await prisma.blobs.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Blobs 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 {BlobsFindFirstOrThrowArgs} args - Arguments to find a Blobs + * @example + * // Get one Blobs + * const blobs = await prisma.blobs.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Blobs 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 {BlobsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Blobs + * const blobs = await prisma.blobs.findMany() + * + * // Get first 10 Blobs + * const blobs = await prisma.blobs.findMany({ take: 10 }) + * + * // Only select the `sha256` + * const blobsWithSha256Only = await prisma.blobs.findMany({ select: { sha256: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Blobs. + * @param {BlobsCreateArgs} args - Arguments to create a Blobs. + * @example + * // Create one Blobs + * const Blobs = await prisma.blobs.create({ + * data: { + * // ... data to create a Blobs + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Blobs. + * @param {BlobsCreateManyArgs} args - Arguments to create many Blobs. + * @example + * // Create many Blobs + * const blobs = await prisma.blobs.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Blobs and returns the data saved in the database. + * @param {BlobsCreateManyAndReturnArgs} args - Arguments to create many Blobs. + * @example + * // Create many Blobs + * const blobs = await prisma.blobs.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Blobs and only return the `sha256` + * const blobsWithSha256Only = await prisma.blobs.createManyAndReturn({ + * select: { sha256: 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 Blobs. + * @param {BlobsDeleteArgs} args - Arguments to delete one Blobs. + * @example + * // Delete one Blobs + * const Blobs = await prisma.blobs.delete({ + * where: { + * // ... filter to delete one Blobs + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Blobs. + * @param {BlobsUpdateArgs} args - Arguments to update one Blobs. + * @example + * // Update one Blobs + * const blobs = await prisma.blobs.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Blobs. + * @param {BlobsDeleteManyArgs} args - Arguments to filter Blobs to delete. + * @example + * // Delete a few Blobs + * const { count } = await prisma.blobs.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Blobs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BlobsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Blobs + * const blobs = await prisma.blobs.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Blobs and returns the data updated in the database. + * @param {BlobsUpdateManyAndReturnArgs} args - Arguments to update many Blobs. + * @example + * // Update many Blobs + * const blobs = await prisma.blobs.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Blobs and only return the `sha256` + * const blobsWithSha256Only = await prisma.blobs.updateManyAndReturn({ + * select: { sha256: 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 Blobs. + * @param {BlobsUpsertArgs} args - Arguments to update or create a Blobs. + * @example + * // Update or create a Blobs + * const blobs = await prisma.blobs.upsert({ + * create: { + * // ... data to create a Blobs + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Blobs we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__BlobsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Blobs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BlobsCountArgs} args - Arguments to filter Blobs to count. + * @example + * // Count the number of Blobs + * const count = await prisma.blobs.count({ + * where: { + * // ... the filter for the Blobs 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 Blobs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BlobsAggregateArgs} 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 Blobs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {BlobsGroupByArgs} 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 BlobsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: BlobsGroupByArgs['orderBy'] } + : { orderBy?: BlobsGroupByArgs['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 ? GetBlobsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Blobs model + */ +readonly fields: BlobsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Blobs. + * 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__BlobsClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + attachments = {}>(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 Blobs model + */ +export interface BlobsFieldRefs { + readonly sha256: Prisma.FieldRef<"Blobs", 'String'> + readonly size: Prisma.FieldRef<"Blobs", 'Int'> + readonly mime: Prisma.FieldRef<"Blobs", 'String'> + readonly storage_path: Prisma.FieldRef<"Blobs", 'String'> + readonly refcount: Prisma.FieldRef<"Blobs", 'Int'> + readonly created_at: Prisma.FieldRef<"Blobs", 'DateTime'> +} + + +// Custom InputTypes +/** + * Blobs findUnique + */ +export type BlobsFindUniqueArgs = { + /** + * Select specific fields to fetch from the Blobs + */ + select?: Prisma.BlobsSelect | null + /** + * Omit specific fields from the Blobs + */ + omit?: Prisma.BlobsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BlobsInclude | null + /** + * Filter, which Blobs to fetch. + */ + where: Prisma.BlobsWhereUniqueInput +} + +/** + * Blobs findUniqueOrThrow + */ +export type BlobsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Blobs + */ + select?: Prisma.BlobsSelect | null + /** + * Omit specific fields from the Blobs + */ + omit?: Prisma.BlobsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BlobsInclude | null + /** + * Filter, which Blobs to fetch. + */ + where: Prisma.BlobsWhereUniqueInput +} + +/** + * Blobs findFirst + */ +export type BlobsFindFirstArgs = { + /** + * Select specific fields to fetch from the Blobs + */ + select?: Prisma.BlobsSelect | null + /** + * Omit specific fields from the Blobs + */ + omit?: Prisma.BlobsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BlobsInclude | null + /** + * Filter, which Blobs to fetch. + */ + where?: Prisma.BlobsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Blobs to fetch. + */ + orderBy?: Prisma.BlobsOrderByWithRelationInput | Prisma.BlobsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Blobs. + */ + cursor?: Prisma.BlobsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Blobs 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` Blobs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Blobs. + */ + distinct?: Prisma.BlobsScalarFieldEnum | Prisma.BlobsScalarFieldEnum[] +} + +/** + * Blobs findFirstOrThrow + */ +export type BlobsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Blobs + */ + select?: Prisma.BlobsSelect | null + /** + * Omit specific fields from the Blobs + */ + omit?: Prisma.BlobsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BlobsInclude | null + /** + * Filter, which Blobs to fetch. + */ + where?: Prisma.BlobsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Blobs to fetch. + */ + orderBy?: Prisma.BlobsOrderByWithRelationInput | Prisma.BlobsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Blobs. + */ + cursor?: Prisma.BlobsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Blobs 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` Blobs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Blobs. + */ + distinct?: Prisma.BlobsScalarFieldEnum | Prisma.BlobsScalarFieldEnum[] +} + +/** + * Blobs findMany + */ +export type BlobsFindManyArgs = { + /** + * Select specific fields to fetch from the Blobs + */ + select?: Prisma.BlobsSelect | null + /** + * Omit specific fields from the Blobs + */ + omit?: Prisma.BlobsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BlobsInclude | null + /** + * Filter, which Blobs to fetch. + */ + where?: Prisma.BlobsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Blobs to fetch. + */ + orderBy?: Prisma.BlobsOrderByWithRelationInput | Prisma.BlobsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Blobs. + */ + cursor?: Prisma.BlobsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Blobs 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` Blobs. + */ + skip?: number + distinct?: Prisma.BlobsScalarFieldEnum | Prisma.BlobsScalarFieldEnum[] +} + +/** + * Blobs create + */ +export type BlobsCreateArgs = { + /** + * Select specific fields to fetch from the Blobs + */ + select?: Prisma.BlobsSelect | null + /** + * Omit specific fields from the Blobs + */ + omit?: Prisma.BlobsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BlobsInclude | null + /** + * The data needed to create a Blobs. + */ + data: Prisma.XOR +} + +/** + * Blobs createMany + */ +export type BlobsCreateManyArgs = { + /** + * The data used to create many Blobs. + */ + data: Prisma.BlobsCreateManyInput | Prisma.BlobsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Blobs createManyAndReturn + */ +export type BlobsCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Blobs + */ + select?: Prisma.BlobsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Blobs + */ + omit?: Prisma.BlobsOmit | null + /** + * The data used to create many Blobs. + */ + data: Prisma.BlobsCreateManyInput | Prisma.BlobsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Blobs update + */ +export type BlobsUpdateArgs = { + /** + * Select specific fields to fetch from the Blobs + */ + select?: Prisma.BlobsSelect | null + /** + * Omit specific fields from the Blobs + */ + omit?: Prisma.BlobsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BlobsInclude | null + /** + * The data needed to update a Blobs. + */ + data: Prisma.XOR + /** + * Choose, which Blobs to update. + */ + where: Prisma.BlobsWhereUniqueInput +} + +/** + * Blobs updateMany + */ +export type BlobsUpdateManyArgs = { + /** + * The data used to update Blobs. + */ + data: Prisma.XOR + /** + * Filter which Blobs to update + */ + where?: Prisma.BlobsWhereInput + /** + * Limit how many Blobs to update. + */ + limit?: number +} + +/** + * Blobs updateManyAndReturn + */ +export type BlobsUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Blobs + */ + select?: Prisma.BlobsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Blobs + */ + omit?: Prisma.BlobsOmit | null + /** + * The data used to update Blobs. + */ + data: Prisma.XOR + /** + * Filter which Blobs to update + */ + where?: Prisma.BlobsWhereInput + /** + * Limit how many Blobs to update. + */ + limit?: number +} + +/** + * Blobs upsert + */ +export type BlobsUpsertArgs = { + /** + * Select specific fields to fetch from the Blobs + */ + select?: Prisma.BlobsSelect | null + /** + * Omit specific fields from the Blobs + */ + omit?: Prisma.BlobsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BlobsInclude | null + /** + * The filter to search for the Blobs to update in case it exists. + */ + where: Prisma.BlobsWhereUniqueInput + /** + * In case the Blobs found by the `where` argument doesn't exist, create a new Blobs with this data. + */ + create: Prisma.XOR + /** + * In case the Blobs was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Blobs delete + */ +export type BlobsDeleteArgs = { + /** + * Select specific fields to fetch from the Blobs + */ + select?: Prisma.BlobsSelect | null + /** + * Omit specific fields from the Blobs + */ + omit?: Prisma.BlobsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BlobsInclude | null + /** + * Filter which Blobs to delete. + */ + where: Prisma.BlobsWhereUniqueInput +} + +/** + * Blobs deleteMany + */ +export type BlobsDeleteManyArgs = { + /** + * Filter which Blobs to delete + */ + where?: Prisma.BlobsWhereInput + /** + * Limit how many Blobs to delete. + */ + limit?: number +} + +/** + * Blobs.attachments + */ +export type Blobs$attachmentsArgs = { + /** + * Select specific fields to fetch from the Attachments + */ + select?: Prisma.AttachmentsSelect | null + /** + * Omit specific fields from the Attachments + */ + omit?: Prisma.AttachmentsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentsInclude | null + where?: Prisma.AttachmentsWhereInput + orderBy?: Prisma.AttachmentsOrderByWithRelationInput | Prisma.AttachmentsOrderByWithRelationInput[] + cursor?: Prisma.AttachmentsWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.AttachmentsScalarFieldEnum | Prisma.AttachmentsScalarFieldEnum[] +} + +/** + * Blobs without action + */ +export type BlobsDefaultArgs = { + /** + * Select specific fields to fetch from the Blobs + */ + select?: Prisma.BlobsSelect | null + /** + * Omit specific fields from the Blobs + */ + omit?: Prisma.BlobsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.BlobsInclude | null +} diff --git a/prisma/generated/postgres/models/Employees.ts b/prisma/generated/postgres/models/Employees.ts new file mode 100644 index 0000000..e782e30 --- /dev/null +++ b/prisma/generated/postgres/models/Employees.ts @@ -0,0 +1,2563 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Employees` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model Employees + * + */ +export type EmployeesModel = runtime.Types.Result.DefaultSelection + +export type AggregateEmployees = { + _count: EmployeesCountAggregateOutputType | null + _avg: EmployeesAvgAggregateOutputType | null + _sum: EmployeesSumAggregateOutputType | null + _min: EmployeesMinAggregateOutputType | null + _max: EmployeesMaxAggregateOutputType | null +} + +export type EmployeesAvgAggregateOutputType = { + id: number | null + external_payroll_id: number | null + company_code: number | null + daily_expected_hours: number | null + supervisor_id: number | null + schedule_preset_id: number | null +} + +export type EmployeesSumAggregateOutputType = { + id: number | null + external_payroll_id: number | null + company_code: number | null + daily_expected_hours: number | null + supervisor_id: number | null + schedule_preset_id: number | null +} + +export type EmployeesMinAggregateOutputType = { + id: number | null + user_id: string | null + external_payroll_id: number | null + company_code: number | null + daily_expected_hours: number | null + first_work_day: Date | null + last_work_day: Date | null + supervisor_id: number | null + job_title: string | null + is_supervisor: boolean | null + schedule_preset_id: number | null +} + +export type EmployeesMaxAggregateOutputType = { + id: number | null + user_id: string | null + external_payroll_id: number | null + company_code: number | null + daily_expected_hours: number | null + first_work_day: Date | null + last_work_day: Date | null + supervisor_id: number | null + job_title: string | null + is_supervisor: boolean | null + schedule_preset_id: number | null +} + +export type EmployeesCountAggregateOutputType = { + id: number + user_id: number + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: number + last_work_day: number + supervisor_id: number + job_title: number + is_supervisor: number + schedule_preset_id: number + _all: number +} + + +export type EmployeesAvgAggregateInputType = { + id?: true + external_payroll_id?: true + company_code?: true + daily_expected_hours?: true + supervisor_id?: true + schedule_preset_id?: true +} + +export type EmployeesSumAggregateInputType = { + id?: true + external_payroll_id?: true + company_code?: true + daily_expected_hours?: true + supervisor_id?: true + schedule_preset_id?: true +} + +export type EmployeesMinAggregateInputType = { + id?: true + user_id?: true + external_payroll_id?: true + company_code?: true + daily_expected_hours?: true + first_work_day?: true + last_work_day?: true + supervisor_id?: true + job_title?: true + is_supervisor?: true + schedule_preset_id?: true +} + +export type EmployeesMaxAggregateInputType = { + id?: true + user_id?: true + external_payroll_id?: true + company_code?: true + daily_expected_hours?: true + first_work_day?: true + last_work_day?: true + supervisor_id?: true + job_title?: true + is_supervisor?: true + schedule_preset_id?: true +} + +export type EmployeesCountAggregateInputType = { + id?: true + user_id?: true + external_payroll_id?: true + company_code?: true + daily_expected_hours?: true + first_work_day?: true + last_work_day?: true + supervisor_id?: true + job_title?: true + is_supervisor?: true + schedule_preset_id?: true + _all?: true +} + +export type EmployeesAggregateArgs = { + /** + * Filter which Employees to aggregate. + */ + where?: Prisma.EmployeesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Employees to fetch. + */ + orderBy?: Prisma.EmployeesOrderByWithRelationInput | Prisma.EmployeesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.EmployeesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Employees 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` Employees. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Employees + **/ + _count?: true | EmployeesCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: EmployeesAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: EmployeesSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: EmployeesMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: EmployeesMaxAggregateInputType +} + +export type GetEmployeesAggregateType = { + [P in keyof T & keyof AggregateEmployees]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type EmployeesGroupByArgs = { + where?: Prisma.EmployeesWhereInput + orderBy?: Prisma.EmployeesOrderByWithAggregationInput | Prisma.EmployeesOrderByWithAggregationInput[] + by: Prisma.EmployeesScalarFieldEnum[] | Prisma.EmployeesScalarFieldEnum + having?: Prisma.EmployeesScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: EmployeesCountAggregateInputType | true + _avg?: EmployeesAvgAggregateInputType + _sum?: EmployeesSumAggregateInputType + _min?: EmployeesMinAggregateInputType + _max?: EmployeesMaxAggregateInputType +} + +export type EmployeesGroupByOutputType = { + id: number + user_id: string + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date + last_work_day: Date | null + supervisor_id: number | null + job_title: string | null + is_supervisor: boolean + schedule_preset_id: number | null + _count: EmployeesCountAggregateOutputType | null + _avg: EmployeesAvgAggregateOutputType | null + _sum: EmployeesSumAggregateOutputType | null + _min: EmployeesMinAggregateOutputType | null + _max: EmployeesMaxAggregateOutputType | null +} + +type GetEmployeesGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof EmployeesGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type EmployeesWhereInput = { + AND?: Prisma.EmployeesWhereInput | Prisma.EmployeesWhereInput[] + OR?: Prisma.EmployeesWhereInput[] + NOT?: Prisma.EmployeesWhereInput | Prisma.EmployeesWhereInput[] + id?: Prisma.IntFilter<"Employees"> | number + user_id?: Prisma.UuidFilter<"Employees"> | string + external_payroll_id?: Prisma.IntFilter<"Employees"> | number + company_code?: Prisma.IntFilter<"Employees"> | number + daily_expected_hours?: Prisma.IntFilter<"Employees"> | number + first_work_day?: Prisma.DateTimeFilter<"Employees"> | Date | string + last_work_day?: Prisma.DateTimeNullableFilter<"Employees"> | Date | string | null + supervisor_id?: Prisma.IntNullableFilter<"Employees"> | number | null + job_title?: Prisma.StringNullableFilter<"Employees"> | string | null + is_supervisor?: Prisma.BoolFilter<"Employees"> | boolean + schedule_preset_id?: Prisma.IntNullableFilter<"Employees"> | number | null + schedule_preset?: Prisma.XOR | null + supervisor?: Prisma.XOR | null + crew?: Prisma.EmployeesListRelationFilter + user?: Prisma.XOR + leave_request?: Prisma.LeaveRequestsListRelationFilter + timesheet?: Prisma.TimesheetsListRelationFilter + paid_time_off?: Prisma.XOR | null +} + +export type EmployeesOrderByWithRelationInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + external_payroll_id?: Prisma.SortOrder + company_code?: Prisma.SortOrder + daily_expected_hours?: Prisma.SortOrder + first_work_day?: Prisma.SortOrder + last_work_day?: Prisma.SortOrderInput | Prisma.SortOrder + supervisor_id?: Prisma.SortOrderInput | Prisma.SortOrder + job_title?: Prisma.SortOrderInput | Prisma.SortOrder + is_supervisor?: Prisma.SortOrder + schedule_preset_id?: Prisma.SortOrderInput | Prisma.SortOrder + schedule_preset?: Prisma.SchedulePresetsOrderByWithRelationInput + supervisor?: Prisma.EmployeesOrderByWithRelationInput + crew?: Prisma.EmployeesOrderByRelationAggregateInput + user?: Prisma.UsersOrderByWithRelationInput + leave_request?: Prisma.LeaveRequestsOrderByRelationAggregateInput + timesheet?: Prisma.TimesheetsOrderByRelationAggregateInput + paid_time_off?: Prisma.PaidTimeOffOrderByWithRelationInput +} + +export type EmployeesWhereUniqueInput = Prisma.AtLeast<{ + id?: number + user_id?: string + AND?: Prisma.EmployeesWhereInput | Prisma.EmployeesWhereInput[] + OR?: Prisma.EmployeesWhereInput[] + NOT?: Prisma.EmployeesWhereInput | Prisma.EmployeesWhereInput[] + external_payroll_id?: Prisma.IntFilter<"Employees"> | number + company_code?: Prisma.IntFilter<"Employees"> | number + daily_expected_hours?: Prisma.IntFilter<"Employees"> | number + first_work_day?: Prisma.DateTimeFilter<"Employees"> | Date | string + last_work_day?: Prisma.DateTimeNullableFilter<"Employees"> | Date | string | null + supervisor_id?: Prisma.IntNullableFilter<"Employees"> | number | null + job_title?: Prisma.StringNullableFilter<"Employees"> | string | null + is_supervisor?: Prisma.BoolFilter<"Employees"> | boolean + schedule_preset_id?: Prisma.IntNullableFilter<"Employees"> | number | null + schedule_preset?: Prisma.XOR | null + supervisor?: Prisma.XOR | null + crew?: Prisma.EmployeesListRelationFilter + user?: Prisma.XOR + leave_request?: Prisma.LeaveRequestsListRelationFilter + timesheet?: Prisma.TimesheetsListRelationFilter + paid_time_off?: Prisma.XOR | null +}, "id" | "user_id"> + +export type EmployeesOrderByWithAggregationInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + external_payroll_id?: Prisma.SortOrder + company_code?: Prisma.SortOrder + daily_expected_hours?: Prisma.SortOrder + first_work_day?: Prisma.SortOrder + last_work_day?: Prisma.SortOrderInput | Prisma.SortOrder + supervisor_id?: Prisma.SortOrderInput | Prisma.SortOrder + job_title?: Prisma.SortOrderInput | Prisma.SortOrder + is_supervisor?: Prisma.SortOrder + schedule_preset_id?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.EmployeesCountOrderByAggregateInput + _avg?: Prisma.EmployeesAvgOrderByAggregateInput + _max?: Prisma.EmployeesMaxOrderByAggregateInput + _min?: Prisma.EmployeesMinOrderByAggregateInput + _sum?: Prisma.EmployeesSumOrderByAggregateInput +} + +export type EmployeesScalarWhereWithAggregatesInput = { + AND?: Prisma.EmployeesScalarWhereWithAggregatesInput | Prisma.EmployeesScalarWhereWithAggregatesInput[] + OR?: Prisma.EmployeesScalarWhereWithAggregatesInput[] + NOT?: Prisma.EmployeesScalarWhereWithAggregatesInput | Prisma.EmployeesScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"Employees"> | number + user_id?: Prisma.UuidWithAggregatesFilter<"Employees"> | string + external_payroll_id?: Prisma.IntWithAggregatesFilter<"Employees"> | number + company_code?: Prisma.IntWithAggregatesFilter<"Employees"> | number + daily_expected_hours?: Prisma.IntWithAggregatesFilter<"Employees"> | number + first_work_day?: Prisma.DateTimeWithAggregatesFilter<"Employees"> | Date | string + last_work_day?: Prisma.DateTimeNullableWithAggregatesFilter<"Employees"> | Date | string | null + supervisor_id?: Prisma.IntNullableWithAggregatesFilter<"Employees"> | number | null + job_title?: Prisma.StringNullableWithAggregatesFilter<"Employees"> | string | null + is_supervisor?: Prisma.BoolWithAggregatesFilter<"Employees"> | boolean + schedule_preset_id?: Prisma.IntNullableWithAggregatesFilter<"Employees"> | number | null +} + +export type EmployeesCreateInput = { + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput + supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput + crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput + user: Prisma.UsersCreateNestedOneWithoutEmployeeInput + leave_request?: Prisma.LeaveRequestsCreateNestedManyWithoutEmployeeInput + timesheet?: Prisma.TimesheetsCreateNestedManyWithoutEmployeeInput + paid_time_off?: Prisma.PaidTimeOffCreateNestedOneWithoutEmployeeInput +} + +export type EmployeesUncheckedCreateInput = { + id?: number + user_id: string + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + supervisor_id?: number | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset_id?: number | null + crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput + leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput + timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput + paid_time_off?: Prisma.PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput +} + +export type EmployeesUpdateInput = { + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput + supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput + crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput + user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput + leave_request?: Prisma.LeaveRequestsUpdateManyWithoutEmployeeNestedInput + timesheet?: Prisma.TimesheetsUpdateManyWithoutEmployeeNestedInput + paid_time_off?: Prisma.PaidTimeOffUpdateOneWithoutEmployeeNestedInput +} + +export type EmployeesUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + user_id?: Prisma.StringFieldUpdateOperationsInput | string + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput + leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput + timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput + paid_time_off?: Prisma.PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput +} + +export type EmployeesCreateManyInput = { + id?: number + user_id: string + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + supervisor_id?: number | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset_id?: number | null +} + +export type EmployeesUpdateManyMutationInput = { + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type EmployeesUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + user_id?: Prisma.StringFieldUpdateOperationsInput | string + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type EmployeesNullableScalarRelationFilter = { + is?: Prisma.EmployeesWhereInput | null + isNot?: Prisma.EmployeesWhereInput | null +} + +export type EmployeesListRelationFilter = { + every?: Prisma.EmployeesWhereInput + some?: Prisma.EmployeesWhereInput + none?: Prisma.EmployeesWhereInput +} + +export type EmployeesOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type EmployeesCountOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + external_payroll_id?: Prisma.SortOrder + company_code?: Prisma.SortOrder + daily_expected_hours?: Prisma.SortOrder + first_work_day?: Prisma.SortOrder + last_work_day?: Prisma.SortOrder + supervisor_id?: Prisma.SortOrder + job_title?: Prisma.SortOrder + is_supervisor?: Prisma.SortOrder + schedule_preset_id?: Prisma.SortOrder +} + +export type EmployeesAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + external_payroll_id?: Prisma.SortOrder + company_code?: Prisma.SortOrder + daily_expected_hours?: Prisma.SortOrder + supervisor_id?: Prisma.SortOrder + schedule_preset_id?: Prisma.SortOrder +} + +export type EmployeesMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + external_payroll_id?: Prisma.SortOrder + company_code?: Prisma.SortOrder + daily_expected_hours?: Prisma.SortOrder + first_work_day?: Prisma.SortOrder + last_work_day?: Prisma.SortOrder + supervisor_id?: Prisma.SortOrder + job_title?: Prisma.SortOrder + is_supervisor?: Prisma.SortOrder + schedule_preset_id?: Prisma.SortOrder +} + +export type EmployeesMinOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + external_payroll_id?: Prisma.SortOrder + company_code?: Prisma.SortOrder + daily_expected_hours?: Prisma.SortOrder + first_work_day?: Prisma.SortOrder + last_work_day?: Prisma.SortOrder + supervisor_id?: Prisma.SortOrder + job_title?: Prisma.SortOrder + is_supervisor?: Prisma.SortOrder + schedule_preset_id?: Prisma.SortOrder +} + +export type EmployeesSumOrderByAggregateInput = { + id?: Prisma.SortOrder + external_payroll_id?: Prisma.SortOrder + company_code?: Prisma.SortOrder + daily_expected_hours?: Prisma.SortOrder + supervisor_id?: Prisma.SortOrder + schedule_preset_id?: Prisma.SortOrder +} + +export type EmployeesScalarRelationFilter = { + is?: Prisma.EmployeesWhereInput + isNot?: Prisma.EmployeesWhereInput +} + +export type EmployeesCreateNestedOneWithoutUserInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutUserInput + connect?: Prisma.EmployeesWhereUniqueInput +} + +export type EmployeesUncheckedCreateNestedOneWithoutUserInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutUserInput + connect?: Prisma.EmployeesWhereUniqueInput +} + +export type EmployeesUpdateOneWithoutUserNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutUserInput + upsert?: Prisma.EmployeesUpsertWithoutUserInput + disconnect?: Prisma.EmployeesWhereInput | boolean + delete?: Prisma.EmployeesWhereInput | boolean + connect?: Prisma.EmployeesWhereUniqueInput + update?: Prisma.XOR, Prisma.EmployeesUncheckedUpdateWithoutUserInput> +} + +export type EmployeesUncheckedUpdateOneWithoutUserNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutUserInput + upsert?: Prisma.EmployeesUpsertWithoutUserInput + disconnect?: Prisma.EmployeesWhereInput | boolean + delete?: Prisma.EmployeesWhereInput | boolean + connect?: Prisma.EmployeesWhereUniqueInput + update?: Prisma.XOR, Prisma.EmployeesUncheckedUpdateWithoutUserInput> +} + +export type EmployeesCreateNestedOneWithoutCrewInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutCrewInput + connect?: Prisma.EmployeesWhereUniqueInput +} + +export type EmployeesCreateNestedManyWithoutSupervisorInput = { + create?: Prisma.XOR | Prisma.EmployeesCreateWithoutSupervisorInput[] | Prisma.EmployeesUncheckedCreateWithoutSupervisorInput[] + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSupervisorInput | Prisma.EmployeesCreateOrConnectWithoutSupervisorInput[] + createMany?: Prisma.EmployeesCreateManySupervisorInputEnvelope + connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] +} + +export type EmployeesUncheckedCreateNestedManyWithoutSupervisorInput = { + create?: Prisma.XOR | Prisma.EmployeesCreateWithoutSupervisorInput[] | Prisma.EmployeesUncheckedCreateWithoutSupervisorInput[] + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSupervisorInput | Prisma.EmployeesCreateOrConnectWithoutSupervisorInput[] + createMany?: Prisma.EmployeesCreateManySupervisorInputEnvelope + connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] +} + +export type DateTimeFieldUpdateOperationsInput = { + set?: Date | string +} + +export type NullableDateTimeFieldUpdateOperationsInput = { + set?: Date | string | null +} + +export type EmployeesUpdateOneWithoutCrewNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutCrewInput + upsert?: Prisma.EmployeesUpsertWithoutCrewInput + disconnect?: Prisma.EmployeesWhereInput | boolean + delete?: Prisma.EmployeesWhereInput | boolean + connect?: Prisma.EmployeesWhereUniqueInput + update?: Prisma.XOR, Prisma.EmployeesUncheckedUpdateWithoutCrewInput> +} + +export type EmployeesUpdateManyWithoutSupervisorNestedInput = { + create?: Prisma.XOR | Prisma.EmployeesCreateWithoutSupervisorInput[] | Prisma.EmployeesUncheckedCreateWithoutSupervisorInput[] + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSupervisorInput | Prisma.EmployeesCreateOrConnectWithoutSupervisorInput[] + upsert?: Prisma.EmployeesUpsertWithWhereUniqueWithoutSupervisorInput | Prisma.EmployeesUpsertWithWhereUniqueWithoutSupervisorInput[] + createMany?: Prisma.EmployeesCreateManySupervisorInputEnvelope + set?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + disconnect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + delete?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + update?: Prisma.EmployeesUpdateWithWhereUniqueWithoutSupervisorInput | Prisma.EmployeesUpdateWithWhereUniqueWithoutSupervisorInput[] + updateMany?: Prisma.EmployeesUpdateManyWithWhereWithoutSupervisorInput | Prisma.EmployeesUpdateManyWithWhereWithoutSupervisorInput[] + deleteMany?: Prisma.EmployeesScalarWhereInput | Prisma.EmployeesScalarWhereInput[] +} + +export type NullableIntFieldUpdateOperationsInput = { + set?: number | null + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput = { + create?: Prisma.XOR | Prisma.EmployeesCreateWithoutSupervisorInput[] | Prisma.EmployeesUncheckedCreateWithoutSupervisorInput[] + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSupervisorInput | Prisma.EmployeesCreateOrConnectWithoutSupervisorInput[] + upsert?: Prisma.EmployeesUpsertWithWhereUniqueWithoutSupervisorInput | Prisma.EmployeesUpsertWithWhereUniqueWithoutSupervisorInput[] + createMany?: Prisma.EmployeesCreateManySupervisorInputEnvelope + set?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + disconnect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + delete?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + update?: Prisma.EmployeesUpdateWithWhereUniqueWithoutSupervisorInput | Prisma.EmployeesUpdateWithWhereUniqueWithoutSupervisorInput[] + updateMany?: Prisma.EmployeesUpdateManyWithWhereWithoutSupervisorInput | Prisma.EmployeesUpdateManyWithWhereWithoutSupervisorInput[] + deleteMany?: Prisma.EmployeesScalarWhereInput | Prisma.EmployeesScalarWhereInput[] +} + +export type EmployeesCreateNestedOneWithoutLeave_requestInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutLeave_requestInput + connect?: Prisma.EmployeesWhereUniqueInput +} + +export type EmployeesUpdateOneRequiredWithoutLeave_requestNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutLeave_requestInput + upsert?: Prisma.EmployeesUpsertWithoutLeave_requestInput + connect?: Prisma.EmployeesWhereUniqueInput + update?: Prisma.XOR, Prisma.EmployeesUncheckedUpdateWithoutLeave_requestInput> +} + +export type EmployeesCreateNestedOneWithoutTimesheetInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutTimesheetInput + connect?: Prisma.EmployeesWhereUniqueInput +} + +export type EmployeesUpdateOneRequiredWithoutTimesheetNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutTimesheetInput + upsert?: Prisma.EmployeesUpsertWithoutTimesheetInput + connect?: Prisma.EmployeesWhereUniqueInput + update?: Prisma.XOR, Prisma.EmployeesUncheckedUpdateWithoutTimesheetInput> +} + +export type EmployeesCreateNestedManyWithoutSchedule_presetInput = { + create?: Prisma.XOR | Prisma.EmployeesCreateWithoutSchedule_presetInput[] | Prisma.EmployeesUncheckedCreateWithoutSchedule_presetInput[] + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput | Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput[] + createMany?: Prisma.EmployeesCreateManySchedule_presetInputEnvelope + connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] +} + +export type EmployeesUncheckedCreateNestedManyWithoutSchedule_presetInput = { + create?: Prisma.XOR | Prisma.EmployeesCreateWithoutSchedule_presetInput[] | Prisma.EmployeesUncheckedCreateWithoutSchedule_presetInput[] + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput | Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput[] + createMany?: Prisma.EmployeesCreateManySchedule_presetInputEnvelope + connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] +} + +export type EmployeesUpdateManyWithoutSchedule_presetNestedInput = { + create?: Prisma.XOR | Prisma.EmployeesCreateWithoutSchedule_presetInput[] | Prisma.EmployeesUncheckedCreateWithoutSchedule_presetInput[] + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput | Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput[] + upsert?: Prisma.EmployeesUpsertWithWhereUniqueWithoutSchedule_presetInput | Prisma.EmployeesUpsertWithWhereUniqueWithoutSchedule_presetInput[] + createMany?: Prisma.EmployeesCreateManySchedule_presetInputEnvelope + set?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + disconnect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + delete?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + update?: Prisma.EmployeesUpdateWithWhereUniqueWithoutSchedule_presetInput | Prisma.EmployeesUpdateWithWhereUniqueWithoutSchedule_presetInput[] + updateMany?: Prisma.EmployeesUpdateManyWithWhereWithoutSchedule_presetInput | Prisma.EmployeesUpdateManyWithWhereWithoutSchedule_presetInput[] + deleteMany?: Prisma.EmployeesScalarWhereInput | Prisma.EmployeesScalarWhereInput[] +} + +export type EmployeesUncheckedUpdateManyWithoutSchedule_presetNestedInput = { + create?: Prisma.XOR | Prisma.EmployeesCreateWithoutSchedule_presetInput[] | Prisma.EmployeesUncheckedCreateWithoutSchedule_presetInput[] + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput | Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput[] + upsert?: Prisma.EmployeesUpsertWithWhereUniqueWithoutSchedule_presetInput | Prisma.EmployeesUpsertWithWhereUniqueWithoutSchedule_presetInput[] + createMany?: Prisma.EmployeesCreateManySchedule_presetInputEnvelope + set?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + disconnect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + delete?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[] + update?: Prisma.EmployeesUpdateWithWhereUniqueWithoutSchedule_presetInput | Prisma.EmployeesUpdateWithWhereUniqueWithoutSchedule_presetInput[] + updateMany?: Prisma.EmployeesUpdateManyWithWhereWithoutSchedule_presetInput | Prisma.EmployeesUpdateManyWithWhereWithoutSchedule_presetInput[] + deleteMany?: Prisma.EmployeesScalarWhereInput | Prisma.EmployeesScalarWhereInput[] +} + +export type EmployeesCreateNestedOneWithoutPaid_time_offInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutPaid_time_offInput + connect?: Prisma.EmployeesWhereUniqueInput +} + +export type EmployeesUpdateOneRequiredWithoutPaid_time_offNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutPaid_time_offInput + upsert?: Prisma.EmployeesUpsertWithoutPaid_time_offInput + connect?: Prisma.EmployeesWhereUniqueInput + update?: Prisma.XOR, Prisma.EmployeesUncheckedUpdateWithoutPaid_time_offInput> +} + +export type EmployeesCreateWithoutUserInput = { + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput + supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput + crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput + leave_request?: Prisma.LeaveRequestsCreateNestedManyWithoutEmployeeInput + timesheet?: Prisma.TimesheetsCreateNestedManyWithoutEmployeeInput + paid_time_off?: Prisma.PaidTimeOffCreateNestedOneWithoutEmployeeInput +} + +export type EmployeesUncheckedCreateWithoutUserInput = { + id?: number + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + supervisor_id?: number | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset_id?: number | null + crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput + leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput + timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput + paid_time_off?: Prisma.PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput +} + +export type EmployeesCreateOrConnectWithoutUserInput = { + where: Prisma.EmployeesWhereUniqueInput + create: Prisma.XOR +} + +export type EmployeesUpsertWithoutUserInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.EmployeesWhereInput +} + +export type EmployeesUpdateToOneWithWhereWithoutUserInput = { + where?: Prisma.EmployeesWhereInput + data: Prisma.XOR +} + +export type EmployeesUpdateWithoutUserInput = { + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput + supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput + crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput + leave_request?: Prisma.LeaveRequestsUpdateManyWithoutEmployeeNestedInput + timesheet?: Prisma.TimesheetsUpdateManyWithoutEmployeeNestedInput + paid_time_off?: Prisma.PaidTimeOffUpdateOneWithoutEmployeeNestedInput +} + +export type EmployeesUncheckedUpdateWithoutUserInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput + leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput + timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput + paid_time_off?: Prisma.PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput +} + +export type EmployeesCreateWithoutCrewInput = { + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput + supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput + user: Prisma.UsersCreateNestedOneWithoutEmployeeInput + leave_request?: Prisma.LeaveRequestsCreateNestedManyWithoutEmployeeInput + timesheet?: Prisma.TimesheetsCreateNestedManyWithoutEmployeeInput + paid_time_off?: Prisma.PaidTimeOffCreateNestedOneWithoutEmployeeInput +} + +export type EmployeesUncheckedCreateWithoutCrewInput = { + id?: number + user_id: string + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + supervisor_id?: number | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset_id?: number | null + leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput + timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput + paid_time_off?: Prisma.PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput +} + +export type EmployeesCreateOrConnectWithoutCrewInput = { + where: Prisma.EmployeesWhereUniqueInput + create: Prisma.XOR +} + +export type EmployeesCreateWithoutSupervisorInput = { + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput + crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput + user: Prisma.UsersCreateNestedOneWithoutEmployeeInput + leave_request?: Prisma.LeaveRequestsCreateNestedManyWithoutEmployeeInput + timesheet?: Prisma.TimesheetsCreateNestedManyWithoutEmployeeInput + paid_time_off?: Prisma.PaidTimeOffCreateNestedOneWithoutEmployeeInput +} + +export type EmployeesUncheckedCreateWithoutSupervisorInput = { + id?: number + user_id: string + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset_id?: number | null + crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput + leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput + timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput + paid_time_off?: Prisma.PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput +} + +export type EmployeesCreateOrConnectWithoutSupervisorInput = { + where: Prisma.EmployeesWhereUniqueInput + create: Prisma.XOR +} + +export type EmployeesCreateManySupervisorInputEnvelope = { + data: Prisma.EmployeesCreateManySupervisorInput | Prisma.EmployeesCreateManySupervisorInput[] + skipDuplicates?: boolean +} + +export type EmployeesUpsertWithoutCrewInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.EmployeesWhereInput +} + +export type EmployeesUpdateToOneWithWhereWithoutCrewInput = { + where?: Prisma.EmployeesWhereInput + data: Prisma.XOR +} + +export type EmployeesUpdateWithoutCrewInput = { + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput + supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput + user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput + leave_request?: Prisma.LeaveRequestsUpdateManyWithoutEmployeeNestedInput + timesheet?: Prisma.TimesheetsUpdateManyWithoutEmployeeNestedInput + paid_time_off?: Prisma.PaidTimeOffUpdateOneWithoutEmployeeNestedInput +} + +export type EmployeesUncheckedUpdateWithoutCrewInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + user_id?: Prisma.StringFieldUpdateOperationsInput | string + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput + timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput + paid_time_off?: Prisma.PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput +} + +export type EmployeesUpsertWithWhereUniqueWithoutSupervisorInput = { + where: Prisma.EmployeesWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type EmployeesUpdateWithWhereUniqueWithoutSupervisorInput = { + where: Prisma.EmployeesWhereUniqueInput + data: Prisma.XOR +} + +export type EmployeesUpdateManyWithWhereWithoutSupervisorInput = { + where: Prisma.EmployeesScalarWhereInput + data: Prisma.XOR +} + +export type EmployeesScalarWhereInput = { + AND?: Prisma.EmployeesScalarWhereInput | Prisma.EmployeesScalarWhereInput[] + OR?: Prisma.EmployeesScalarWhereInput[] + NOT?: Prisma.EmployeesScalarWhereInput | Prisma.EmployeesScalarWhereInput[] + id?: Prisma.IntFilter<"Employees"> | number + user_id?: Prisma.UuidFilter<"Employees"> | string + external_payroll_id?: Prisma.IntFilter<"Employees"> | number + company_code?: Prisma.IntFilter<"Employees"> | number + daily_expected_hours?: Prisma.IntFilter<"Employees"> | number + first_work_day?: Prisma.DateTimeFilter<"Employees"> | Date | string + last_work_day?: Prisma.DateTimeNullableFilter<"Employees"> | Date | string | null + supervisor_id?: Prisma.IntNullableFilter<"Employees"> | number | null + job_title?: Prisma.StringNullableFilter<"Employees"> | string | null + is_supervisor?: Prisma.BoolFilter<"Employees"> | boolean + schedule_preset_id?: Prisma.IntNullableFilter<"Employees"> | number | null +} + +export type EmployeesCreateWithoutLeave_requestInput = { + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput + supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput + crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput + user: Prisma.UsersCreateNestedOneWithoutEmployeeInput + timesheet?: Prisma.TimesheetsCreateNestedManyWithoutEmployeeInput + paid_time_off?: Prisma.PaidTimeOffCreateNestedOneWithoutEmployeeInput +} + +export type EmployeesUncheckedCreateWithoutLeave_requestInput = { + id?: number + user_id: string + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + supervisor_id?: number | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset_id?: number | null + crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput + timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput + paid_time_off?: Prisma.PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput +} + +export type EmployeesCreateOrConnectWithoutLeave_requestInput = { + where: Prisma.EmployeesWhereUniqueInput + create: Prisma.XOR +} + +export type EmployeesUpsertWithoutLeave_requestInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.EmployeesWhereInput +} + +export type EmployeesUpdateToOneWithWhereWithoutLeave_requestInput = { + where?: Prisma.EmployeesWhereInput + data: Prisma.XOR +} + +export type EmployeesUpdateWithoutLeave_requestInput = { + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput + supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput + crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput + user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput + timesheet?: Prisma.TimesheetsUpdateManyWithoutEmployeeNestedInput + paid_time_off?: Prisma.PaidTimeOffUpdateOneWithoutEmployeeNestedInput +} + +export type EmployeesUncheckedUpdateWithoutLeave_requestInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + user_id?: Prisma.StringFieldUpdateOperationsInput | string + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput + timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput + paid_time_off?: Prisma.PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput +} + +export type EmployeesCreateWithoutTimesheetInput = { + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput + supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput + crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput + user: Prisma.UsersCreateNestedOneWithoutEmployeeInput + leave_request?: Prisma.LeaveRequestsCreateNestedManyWithoutEmployeeInput + paid_time_off?: Prisma.PaidTimeOffCreateNestedOneWithoutEmployeeInput +} + +export type EmployeesUncheckedCreateWithoutTimesheetInput = { + id?: number + user_id: string + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + supervisor_id?: number | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset_id?: number | null + crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput + leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput + paid_time_off?: Prisma.PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput +} + +export type EmployeesCreateOrConnectWithoutTimesheetInput = { + where: Prisma.EmployeesWhereUniqueInput + create: Prisma.XOR +} + +export type EmployeesUpsertWithoutTimesheetInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.EmployeesWhereInput +} + +export type EmployeesUpdateToOneWithWhereWithoutTimesheetInput = { + where?: Prisma.EmployeesWhereInput + data: Prisma.XOR +} + +export type EmployeesUpdateWithoutTimesheetInput = { + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput + supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput + crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput + user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput + leave_request?: Prisma.LeaveRequestsUpdateManyWithoutEmployeeNestedInput + paid_time_off?: Prisma.PaidTimeOffUpdateOneWithoutEmployeeNestedInput +} + +export type EmployeesUncheckedUpdateWithoutTimesheetInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + user_id?: Prisma.StringFieldUpdateOperationsInput | string + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput + leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput + paid_time_off?: Prisma.PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput +} + +export type EmployeesCreateWithoutSchedule_presetInput = { + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + job_title?: string | null + is_supervisor?: boolean + supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput + crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput + user: Prisma.UsersCreateNestedOneWithoutEmployeeInput + leave_request?: Prisma.LeaveRequestsCreateNestedManyWithoutEmployeeInput + timesheet?: Prisma.TimesheetsCreateNestedManyWithoutEmployeeInput + paid_time_off?: Prisma.PaidTimeOffCreateNestedOneWithoutEmployeeInput +} + +export type EmployeesUncheckedCreateWithoutSchedule_presetInput = { + id?: number + user_id: string + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + supervisor_id?: number | null + job_title?: string | null + is_supervisor?: boolean + crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput + leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput + timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput + paid_time_off?: Prisma.PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput +} + +export type EmployeesCreateOrConnectWithoutSchedule_presetInput = { + where: Prisma.EmployeesWhereUniqueInput + create: Prisma.XOR +} + +export type EmployeesCreateManySchedule_presetInputEnvelope = { + data: Prisma.EmployeesCreateManySchedule_presetInput | Prisma.EmployeesCreateManySchedule_presetInput[] + skipDuplicates?: boolean +} + +export type EmployeesUpsertWithWhereUniqueWithoutSchedule_presetInput = { + where: Prisma.EmployeesWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type EmployeesUpdateWithWhereUniqueWithoutSchedule_presetInput = { + where: Prisma.EmployeesWhereUniqueInput + data: Prisma.XOR +} + +export type EmployeesUpdateManyWithWhereWithoutSchedule_presetInput = { + where: Prisma.EmployeesScalarWhereInput + data: Prisma.XOR +} + +export type EmployeesCreateWithoutPaid_time_offInput = { + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput + supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput + crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput + user: Prisma.UsersCreateNestedOneWithoutEmployeeInput + leave_request?: Prisma.LeaveRequestsCreateNestedManyWithoutEmployeeInput + timesheet?: Prisma.TimesheetsCreateNestedManyWithoutEmployeeInput +} + +export type EmployeesUncheckedCreateWithoutPaid_time_offInput = { + id?: number + user_id: string + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + supervisor_id?: number | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset_id?: number | null + crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput + leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput + timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput +} + +export type EmployeesCreateOrConnectWithoutPaid_time_offInput = { + where: Prisma.EmployeesWhereUniqueInput + create: Prisma.XOR +} + +export type EmployeesUpsertWithoutPaid_time_offInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.EmployeesWhereInput +} + +export type EmployeesUpdateToOneWithWhereWithoutPaid_time_offInput = { + where?: Prisma.EmployeesWhereInput + data: Prisma.XOR +} + +export type EmployeesUpdateWithoutPaid_time_offInput = { + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput + supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput + crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput + user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput + leave_request?: Prisma.LeaveRequestsUpdateManyWithoutEmployeeNestedInput + timesheet?: Prisma.TimesheetsUpdateManyWithoutEmployeeNestedInput +} + +export type EmployeesUncheckedUpdateWithoutPaid_time_offInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + user_id?: Prisma.StringFieldUpdateOperationsInput | string + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput + leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput + timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput +} + +export type EmployeesCreateManySupervisorInput = { + id?: number + user_id: string + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + job_title?: string | null + is_supervisor?: boolean + schedule_preset_id?: number | null +} + +export type EmployeesUpdateWithoutSupervisorInput = { + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput + crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput + user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput + leave_request?: Prisma.LeaveRequestsUpdateManyWithoutEmployeeNestedInput + timesheet?: Prisma.TimesheetsUpdateManyWithoutEmployeeNestedInput + paid_time_off?: Prisma.PaidTimeOffUpdateOneWithoutEmployeeNestedInput +} + +export type EmployeesUncheckedUpdateWithoutSupervisorInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + user_id?: Prisma.StringFieldUpdateOperationsInput | string + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput + leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput + timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput + paid_time_off?: Prisma.PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput +} + +export type EmployeesUncheckedUpdateManyWithoutSupervisorInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + user_id?: Prisma.StringFieldUpdateOperationsInput | string + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type EmployeesCreateManySchedule_presetInput = { + id?: number + user_id: string + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date | string + last_work_day?: Date | string | null + supervisor_id?: number | null + job_title?: string | null + is_supervisor?: boolean +} + +export type EmployeesUpdateWithoutSchedule_presetInput = { + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput + crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput + user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput + leave_request?: Prisma.LeaveRequestsUpdateManyWithoutEmployeeNestedInput + timesheet?: Prisma.TimesheetsUpdateManyWithoutEmployeeNestedInput + paid_time_off?: Prisma.PaidTimeOffUpdateOneWithoutEmployeeNestedInput +} + +export type EmployeesUncheckedUpdateWithoutSchedule_presetInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + user_id?: Prisma.StringFieldUpdateOperationsInput | string + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean + crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput + leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput + timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput + paid_time_off?: Prisma.PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput +} + +export type EmployeesUncheckedUpdateManyWithoutSchedule_presetInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + user_id?: Prisma.StringFieldUpdateOperationsInput | string + external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number + company_code?: Prisma.IntFieldUpdateOperationsInput | number + daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number + first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + + +/** + * Count Type EmployeesCountOutputType + */ + +export type EmployeesCountOutputType = { + crew: number + leave_request: number + timesheet: number +} + +export type EmployeesCountOutputTypeSelect = { + crew?: boolean | EmployeesCountOutputTypeCountCrewArgs + leave_request?: boolean | EmployeesCountOutputTypeCountLeave_requestArgs + timesheet?: boolean | EmployeesCountOutputTypeCountTimesheetArgs +} + +/** + * EmployeesCountOutputType without action + */ +export type EmployeesCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the EmployeesCountOutputType + */ + select?: Prisma.EmployeesCountOutputTypeSelect | null +} + +/** + * EmployeesCountOutputType without action + */ +export type EmployeesCountOutputTypeCountCrewArgs = { + where?: Prisma.EmployeesWhereInput +} + +/** + * EmployeesCountOutputType without action + */ +export type EmployeesCountOutputTypeCountLeave_requestArgs = { + where?: Prisma.LeaveRequestsWhereInput +} + +/** + * EmployeesCountOutputType without action + */ +export type EmployeesCountOutputTypeCountTimesheetArgs = { + where?: Prisma.TimesheetsWhereInput +} + + +export type EmployeesSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + external_payroll_id?: boolean + company_code?: boolean + daily_expected_hours?: boolean + first_work_day?: boolean + last_work_day?: boolean + supervisor_id?: boolean + job_title?: boolean + is_supervisor?: boolean + schedule_preset_id?: boolean + schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs + supervisor?: boolean | Prisma.Employees$supervisorArgs + crew?: boolean | Prisma.Employees$crewArgs + user?: boolean | Prisma.UsersDefaultArgs + leave_request?: boolean | Prisma.Employees$leave_requestArgs + timesheet?: boolean | Prisma.Employees$timesheetArgs + paid_time_off?: boolean | Prisma.Employees$paid_time_offArgs + _count?: boolean | Prisma.EmployeesCountOutputTypeDefaultArgs +}, ExtArgs["result"]["employees"]> + +export type EmployeesSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + external_payroll_id?: boolean + company_code?: boolean + daily_expected_hours?: boolean + first_work_day?: boolean + last_work_day?: boolean + supervisor_id?: boolean + job_title?: boolean + is_supervisor?: boolean + schedule_preset_id?: boolean + schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs + supervisor?: boolean | Prisma.Employees$supervisorArgs + user?: boolean | Prisma.UsersDefaultArgs +}, ExtArgs["result"]["employees"]> + +export type EmployeesSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + external_payroll_id?: boolean + company_code?: boolean + daily_expected_hours?: boolean + first_work_day?: boolean + last_work_day?: boolean + supervisor_id?: boolean + job_title?: boolean + is_supervisor?: boolean + schedule_preset_id?: boolean + schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs + supervisor?: boolean | Prisma.Employees$supervisorArgs + user?: boolean | Prisma.UsersDefaultArgs +}, ExtArgs["result"]["employees"]> + +export type EmployeesSelectScalar = { + id?: boolean + user_id?: boolean + external_payroll_id?: boolean + company_code?: boolean + daily_expected_hours?: boolean + first_work_day?: boolean + last_work_day?: boolean + supervisor_id?: boolean + job_title?: boolean + is_supervisor?: boolean + schedule_preset_id?: boolean +} + +export type EmployeesOmit = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "external_payroll_id" | "company_code" | "daily_expected_hours" | "first_work_day" | "last_work_day" | "supervisor_id" | "job_title" | "is_supervisor" | "schedule_preset_id", ExtArgs["result"]["employees"]> +export type EmployeesInclude = { + schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs + supervisor?: boolean | Prisma.Employees$supervisorArgs + crew?: boolean | Prisma.Employees$crewArgs + user?: boolean | Prisma.UsersDefaultArgs + leave_request?: boolean | Prisma.Employees$leave_requestArgs + timesheet?: boolean | Prisma.Employees$timesheetArgs + paid_time_off?: boolean | Prisma.Employees$paid_time_offArgs + _count?: boolean | Prisma.EmployeesCountOutputTypeDefaultArgs +} +export type EmployeesIncludeCreateManyAndReturn = { + schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs + supervisor?: boolean | Prisma.Employees$supervisorArgs + user?: boolean | Prisma.UsersDefaultArgs +} +export type EmployeesIncludeUpdateManyAndReturn = { + schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs + supervisor?: boolean | Prisma.Employees$supervisorArgs + user?: boolean | Prisma.UsersDefaultArgs +} + +export type $EmployeesPayload = { + name: "Employees" + objects: { + schedule_preset: Prisma.$SchedulePresetsPayload | null + supervisor: Prisma.$EmployeesPayload | null + crew: Prisma.$EmployeesPayload[] + user: Prisma.$UsersPayload + leave_request: Prisma.$LeaveRequestsPayload[] + timesheet: Prisma.$TimesheetsPayload[] + paid_time_off: Prisma.$PaidTimeOffPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + user_id: string + external_payroll_id: number + company_code: number + daily_expected_hours: number + first_work_day: Date + last_work_day: Date | null + supervisor_id: number | null + job_title: string | null + is_supervisor: boolean + schedule_preset_id: number | null + }, ExtArgs["result"]["employees"]> + composites: {} +} + +export type EmployeesGetPayload = runtime.Types.Result.GetResult + +export type EmployeesCountArgs = + Omit & { + select?: EmployeesCountAggregateInputType | true + } + +export interface EmployeesDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Employees'], meta: { name: 'Employees' } } + /** + * Find zero or one Employees that matches the filter. + * @param {EmployeesFindUniqueArgs} args - Arguments to find a Employees + * @example + * // Get one Employees + * const employees = await prisma.employees.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EmployeesClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Employees that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {EmployeesFindUniqueOrThrowArgs} args - Arguments to find a Employees + * @example + * // Get one Employees + * const employees = await prisma.employees.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EmployeesClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Employees 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 {EmployeesFindFirstArgs} args - Arguments to find a Employees + * @example + * // Get one Employees + * const employees = await prisma.employees.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EmployeesClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Employees 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 {EmployeesFindFirstOrThrowArgs} args - Arguments to find a Employees + * @example + * // Get one Employees + * const employees = await prisma.employees.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EmployeesClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Employees 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 {EmployeesFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Employees + * const employees = await prisma.employees.findMany() + * + * // Get first 10 Employees + * const employees = await prisma.employees.findMany({ take: 10 }) + * + * // Only select the `id` + * const employeesWithIdOnly = await prisma.employees.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Employees. + * @param {EmployeesCreateArgs} args - Arguments to create a Employees. + * @example + * // Create one Employees + * const Employees = await prisma.employees.create({ + * data: { + * // ... data to create a Employees + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__EmployeesClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Employees. + * @param {EmployeesCreateManyArgs} args - Arguments to create many Employees. + * @example + * // Create many Employees + * const employees = await prisma.employees.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Employees and returns the data saved in the database. + * @param {EmployeesCreateManyAndReturnArgs} args - Arguments to create many Employees. + * @example + * // Create many Employees + * const employees = await prisma.employees.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Employees and only return the `id` + * const employeesWithIdOnly = await prisma.employees.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 Employees. + * @param {EmployeesDeleteArgs} args - Arguments to delete one Employees. + * @example + * // Delete one Employees + * const Employees = await prisma.employees.delete({ + * where: { + * // ... filter to delete one Employees + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__EmployeesClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Employees. + * @param {EmployeesUpdateArgs} args - Arguments to update one Employees. + * @example + * // Update one Employees + * const employees = await prisma.employees.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__EmployeesClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Employees. + * @param {EmployeesDeleteManyArgs} args - Arguments to filter Employees to delete. + * @example + * // Delete a few Employees + * const { count } = await prisma.employees.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Employees. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EmployeesUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Employees + * const employees = await prisma.employees.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Employees and returns the data updated in the database. + * @param {EmployeesUpdateManyAndReturnArgs} args - Arguments to update many Employees. + * @example + * // Update many Employees + * const employees = await prisma.employees.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Employees and only return the `id` + * const employeesWithIdOnly = await prisma.employees.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 Employees. + * @param {EmployeesUpsertArgs} args - Arguments to update or create a Employees. + * @example + * // Update or create a Employees + * const employees = await prisma.employees.upsert({ + * create: { + * // ... data to create a Employees + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Employees we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EmployeesClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Employees. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EmployeesCountArgs} args - Arguments to filter Employees to count. + * @example + * // Count the number of Employees + * const count = await prisma.employees.count({ + * where: { + * // ... the filter for the Employees 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 Employees. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EmployeesAggregateArgs} 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 Employees. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {EmployeesGroupByArgs} 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 EmployeesGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: EmployeesGroupByArgs['orderBy'] } + : { orderBy?: EmployeesGroupByArgs['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 ? GetEmployeesGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Employees model + */ +readonly fields: EmployeesFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Employees. + * 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__EmployeesClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + schedule_preset = {}>(args?: Prisma.Subset>): Prisma.Prisma__SchedulePresetsClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + supervisor = {}>(args?: Prisma.Subset>): Prisma.Prisma__EmployeesClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + crew = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UsersClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + leave_request = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + timesheet = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + paid_time_off = {}>(args?: Prisma.Subset>): Prisma.Prisma__PaidTimeOffClient, 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 Employees model + */ +export interface EmployeesFieldRefs { + readonly id: Prisma.FieldRef<"Employees", 'Int'> + readonly user_id: Prisma.FieldRef<"Employees", 'String'> + readonly external_payroll_id: Prisma.FieldRef<"Employees", 'Int'> + readonly company_code: Prisma.FieldRef<"Employees", 'Int'> + readonly daily_expected_hours: Prisma.FieldRef<"Employees", 'Int'> + readonly first_work_day: Prisma.FieldRef<"Employees", 'DateTime'> + readonly last_work_day: Prisma.FieldRef<"Employees", 'DateTime'> + readonly supervisor_id: Prisma.FieldRef<"Employees", 'Int'> + readonly job_title: Prisma.FieldRef<"Employees", 'String'> + readonly is_supervisor: Prisma.FieldRef<"Employees", 'Boolean'> + readonly schedule_preset_id: Prisma.FieldRef<"Employees", 'Int'> +} + + +// Custom InputTypes +/** + * Employees findUnique + */ +export type EmployeesFindUniqueArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelect | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesInclude | null + /** + * Filter, which Employees to fetch. + */ + where: Prisma.EmployeesWhereUniqueInput +} + +/** + * Employees findUniqueOrThrow + */ +export type EmployeesFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelect | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesInclude | null + /** + * Filter, which Employees to fetch. + */ + where: Prisma.EmployeesWhereUniqueInput +} + +/** + * Employees findFirst + */ +export type EmployeesFindFirstArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelect | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesInclude | null + /** + * Filter, which Employees to fetch. + */ + where?: Prisma.EmployeesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Employees to fetch. + */ + orderBy?: Prisma.EmployeesOrderByWithRelationInput | Prisma.EmployeesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Employees. + */ + cursor?: Prisma.EmployeesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Employees 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` Employees. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Employees. + */ + distinct?: Prisma.EmployeesScalarFieldEnum | Prisma.EmployeesScalarFieldEnum[] +} + +/** + * Employees findFirstOrThrow + */ +export type EmployeesFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelect | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesInclude | null + /** + * Filter, which Employees to fetch. + */ + where?: Prisma.EmployeesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Employees to fetch. + */ + orderBy?: Prisma.EmployeesOrderByWithRelationInput | Prisma.EmployeesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Employees. + */ + cursor?: Prisma.EmployeesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Employees 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` Employees. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Employees. + */ + distinct?: Prisma.EmployeesScalarFieldEnum | Prisma.EmployeesScalarFieldEnum[] +} + +/** + * Employees findMany + */ +export type EmployeesFindManyArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelect | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesInclude | null + /** + * Filter, which Employees to fetch. + */ + where?: Prisma.EmployeesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Employees to fetch. + */ + orderBy?: Prisma.EmployeesOrderByWithRelationInput | Prisma.EmployeesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Employees. + */ + cursor?: Prisma.EmployeesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Employees 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` Employees. + */ + skip?: number + distinct?: Prisma.EmployeesScalarFieldEnum | Prisma.EmployeesScalarFieldEnum[] +} + +/** + * Employees create + */ +export type EmployeesCreateArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelect | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesInclude | null + /** + * The data needed to create a Employees. + */ + data: Prisma.XOR +} + +/** + * Employees createMany + */ +export type EmployeesCreateManyArgs = { + /** + * The data used to create many Employees. + */ + data: Prisma.EmployeesCreateManyInput | Prisma.EmployeesCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Employees createManyAndReturn + */ +export type EmployeesCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * The data used to create many Employees. + */ + data: Prisma.EmployeesCreateManyInput | Prisma.EmployeesCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesIncludeCreateManyAndReturn | null +} + +/** + * Employees update + */ +export type EmployeesUpdateArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelect | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesInclude | null + /** + * The data needed to update a Employees. + */ + data: Prisma.XOR + /** + * Choose, which Employees to update. + */ + where: Prisma.EmployeesWhereUniqueInput +} + +/** + * Employees updateMany + */ +export type EmployeesUpdateManyArgs = { + /** + * The data used to update Employees. + */ + data: Prisma.XOR + /** + * Filter which Employees to update + */ + where?: Prisma.EmployeesWhereInput + /** + * Limit how many Employees to update. + */ + limit?: number +} + +/** + * Employees updateManyAndReturn + */ +export type EmployeesUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * The data used to update Employees. + */ + data: Prisma.XOR + /** + * Filter which Employees to update + */ + where?: Prisma.EmployeesWhereInput + /** + * Limit how many Employees to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesIncludeUpdateManyAndReturn | null +} + +/** + * Employees upsert + */ +export type EmployeesUpsertArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelect | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesInclude | null + /** + * The filter to search for the Employees to update in case it exists. + */ + where: Prisma.EmployeesWhereUniqueInput + /** + * In case the Employees found by the `where` argument doesn't exist, create a new Employees with this data. + */ + create: Prisma.XOR + /** + * In case the Employees was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Employees delete + */ +export type EmployeesDeleteArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelect | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesInclude | null + /** + * Filter which Employees to delete. + */ + where: Prisma.EmployeesWhereUniqueInput +} + +/** + * Employees deleteMany + */ +export type EmployeesDeleteManyArgs = { + /** + * Filter which Employees to delete + */ + where?: Prisma.EmployeesWhereInput + /** + * Limit how many Employees to delete. + */ + limit?: number +} + +/** + * Employees.schedule_preset + */ +export type Employees$schedule_presetArgs = { + /** + * Select specific fields to fetch from the SchedulePresets + */ + select?: Prisma.SchedulePresetsSelect | null + /** + * Omit specific fields from the SchedulePresets + */ + omit?: Prisma.SchedulePresetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetsInclude | null + where?: Prisma.SchedulePresetsWhereInput +} + +/** + * Employees.supervisor + */ +export type Employees$supervisorArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelect | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesInclude | null + where?: Prisma.EmployeesWhereInput +} + +/** + * Employees.crew + */ +export type Employees$crewArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelect | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesInclude | null + where?: Prisma.EmployeesWhereInput + orderBy?: Prisma.EmployeesOrderByWithRelationInput | Prisma.EmployeesOrderByWithRelationInput[] + cursor?: Prisma.EmployeesWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.EmployeesScalarFieldEnum | Prisma.EmployeesScalarFieldEnum[] +} + +/** + * Employees.leave_request + */ +export type Employees$leave_requestArgs = { + /** + * Select specific fields to fetch from the LeaveRequests + */ + select?: Prisma.LeaveRequestsSelect | null + /** + * Omit specific fields from the LeaveRequests + */ + omit?: Prisma.LeaveRequestsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsInclude | null + where?: Prisma.LeaveRequestsWhereInput + orderBy?: Prisma.LeaveRequestsOrderByWithRelationInput | Prisma.LeaveRequestsOrderByWithRelationInput[] + cursor?: Prisma.LeaveRequestsWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.LeaveRequestsScalarFieldEnum | Prisma.LeaveRequestsScalarFieldEnum[] +} + +/** + * Employees.timesheet + */ +export type Employees$timesheetArgs = { + /** + * Select specific fields to fetch from the Timesheets + */ + select?: Prisma.TimesheetsSelect | null + /** + * Omit specific fields from the Timesheets + */ + omit?: Prisma.TimesheetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsInclude | null + where?: Prisma.TimesheetsWhereInput + orderBy?: Prisma.TimesheetsOrderByWithRelationInput | Prisma.TimesheetsOrderByWithRelationInput[] + cursor?: Prisma.TimesheetsWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.TimesheetsScalarFieldEnum | Prisma.TimesheetsScalarFieldEnum[] +} + +/** + * Employees.paid_time_off + */ +export type Employees$paid_time_offArgs = { + /** + * Select specific fields to fetch from the PaidTimeOff + */ + select?: Prisma.PaidTimeOffSelect | null + /** + * Omit specific fields from the PaidTimeOff + */ + omit?: Prisma.PaidTimeOffOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaidTimeOffInclude | null + where?: Prisma.PaidTimeOffWhereInput +} + +/** + * Employees without action + */ +export type EmployeesDefaultArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelect | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesInclude | null +} diff --git a/prisma/generated/postgres/models/Expenses.ts b/prisma/generated/postgres/models/Expenses.ts new file mode 100644 index 0000000..bca4fad --- /dev/null +++ b/prisma/generated/postgres/models/Expenses.ts @@ -0,0 +1,2070 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Expenses` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model Expenses + * + */ +export type ExpensesModel = runtime.Types.Result.DefaultSelection + +export type AggregateExpenses = { + _count: ExpensesCountAggregateOutputType | null + _avg: ExpensesAvgAggregateOutputType | null + _sum: ExpensesSumAggregateOutputType | null + _min: ExpensesMinAggregateOutputType | null + _max: ExpensesMaxAggregateOutputType | null +} + +export type ExpensesAvgAggregateOutputType = { + id: number | null + timesheet_id: number | null + amount: runtime.Decimal | null + bank_code_id: number | null + attachment: number | null + mileage: runtime.Decimal | null +} + +export type ExpensesSumAggregateOutputType = { + id: number | null + timesheet_id: number | null + amount: runtime.Decimal | null + bank_code_id: number | null + attachment: number | null + mileage: runtime.Decimal | null +} + +export type ExpensesMinAggregateOutputType = { + id: number | null + timesheet_id: number | null + date: Date | null + amount: runtime.Decimal | null + is_approved: boolean | null + supervisor_comment: string | null + bank_code_id: number | null + comment: string | null + attachment: number | null + mileage: runtime.Decimal | null +} + +export type ExpensesMaxAggregateOutputType = { + id: number | null + timesheet_id: number | null + date: Date | null + amount: runtime.Decimal | null + is_approved: boolean | null + supervisor_comment: string | null + bank_code_id: number | null + comment: string | null + attachment: number | null + mileage: runtime.Decimal | null +} + +export type ExpensesCountAggregateOutputType = { + id: number + timesheet_id: number + date: number + amount: number + is_approved: number + supervisor_comment: number + bank_code_id: number + comment: number + attachment: number + mileage: number + _all: number +} + + +export type ExpensesAvgAggregateInputType = { + id?: true + timesheet_id?: true + amount?: true + bank_code_id?: true + attachment?: true + mileage?: true +} + +export type ExpensesSumAggregateInputType = { + id?: true + timesheet_id?: true + amount?: true + bank_code_id?: true + attachment?: true + mileage?: true +} + +export type ExpensesMinAggregateInputType = { + id?: true + timesheet_id?: true + date?: true + amount?: true + is_approved?: true + supervisor_comment?: true + bank_code_id?: true + comment?: true + attachment?: true + mileage?: true +} + +export type ExpensesMaxAggregateInputType = { + id?: true + timesheet_id?: true + date?: true + amount?: true + is_approved?: true + supervisor_comment?: true + bank_code_id?: true + comment?: true + attachment?: true + mileage?: true +} + +export type ExpensesCountAggregateInputType = { + id?: true + timesheet_id?: true + date?: true + amount?: true + is_approved?: true + supervisor_comment?: true + bank_code_id?: true + comment?: true + attachment?: true + mileage?: true + _all?: true +} + +export type ExpensesAggregateArgs = { + /** + * Filter which Expenses to aggregate. + */ + where?: Prisma.ExpensesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Expenses to fetch. + */ + orderBy?: Prisma.ExpensesOrderByWithRelationInput | Prisma.ExpensesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ExpensesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Expenses from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Expenses. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Expenses + **/ + _count?: true | ExpensesCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ExpensesAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ExpensesSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ExpensesMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ExpensesMaxAggregateInputType +} + +export type GetExpensesAggregateType = { + [P in keyof T & keyof AggregateExpenses]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ExpensesGroupByArgs = { + where?: Prisma.ExpensesWhereInput + orderBy?: Prisma.ExpensesOrderByWithAggregationInput | Prisma.ExpensesOrderByWithAggregationInput[] + by: Prisma.ExpensesScalarFieldEnum[] | Prisma.ExpensesScalarFieldEnum + having?: Prisma.ExpensesScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ExpensesCountAggregateInputType | true + _avg?: ExpensesAvgAggregateInputType + _sum?: ExpensesSumAggregateInputType + _min?: ExpensesMinAggregateInputType + _max?: ExpensesMaxAggregateInputType +} + +export type ExpensesGroupByOutputType = { + id: number + timesheet_id: number + date: Date + amount: runtime.Decimal | null + is_approved: boolean + supervisor_comment: string | null + bank_code_id: number + comment: string + attachment: number | null + mileage: runtime.Decimal | null + _count: ExpensesCountAggregateOutputType | null + _avg: ExpensesAvgAggregateOutputType | null + _sum: ExpensesSumAggregateOutputType | null + _min: ExpensesMinAggregateOutputType | null + _max: ExpensesMaxAggregateOutputType | null +} + +type GetExpensesGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ExpensesGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ExpensesWhereInput = { + AND?: Prisma.ExpensesWhereInput | Prisma.ExpensesWhereInput[] + OR?: Prisma.ExpensesWhereInput[] + NOT?: Prisma.ExpensesWhereInput | Prisma.ExpensesWhereInput[] + id?: Prisma.IntFilter<"Expenses"> | number + timesheet_id?: Prisma.IntFilter<"Expenses"> | number + date?: Prisma.DateTimeFilter<"Expenses"> | Date | string + amount?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFilter<"Expenses"> | boolean + supervisor_comment?: Prisma.StringNullableFilter<"Expenses"> | string | null + bank_code_id?: Prisma.IntFilter<"Expenses"> | number + comment?: Prisma.StringFilter<"Expenses"> | string + attachment?: Prisma.IntNullableFilter<"Expenses"> | number | null + mileage?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.XOR | null + bank_code?: Prisma.XOR + timesheet?: Prisma.XOR + archive?: Prisma.ExpensesArchiveListRelationFilter +} + +export type ExpensesOrderByWithRelationInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + is_approved?: Prisma.SortOrder + supervisor_comment?: Prisma.SortOrderInput | Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + attachment?: Prisma.SortOrderInput | Prisma.SortOrder + mileage?: Prisma.SortOrderInput | Prisma.SortOrder + attachment_record?: Prisma.AttachmentsOrderByWithRelationInput + bank_code?: Prisma.BankCodesOrderByWithRelationInput + timesheet?: Prisma.TimesheetsOrderByWithRelationInput + archive?: Prisma.ExpensesArchiveOrderByRelationAggregateInput +} + +export type ExpensesWhereUniqueInput = Prisma.AtLeast<{ + id?: number + unique_ts_id_date_amount_mileage?: Prisma.ExpensesUnique_ts_id_date_amount_mileageCompoundUniqueInput + AND?: Prisma.ExpensesWhereInput | Prisma.ExpensesWhereInput[] + OR?: Prisma.ExpensesWhereInput[] + NOT?: Prisma.ExpensesWhereInput | Prisma.ExpensesWhereInput[] + timesheet_id?: Prisma.IntFilter<"Expenses"> | number + date?: Prisma.DateTimeFilter<"Expenses"> | Date | string + amount?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFilter<"Expenses"> | boolean + supervisor_comment?: Prisma.StringNullableFilter<"Expenses"> | string | null + bank_code_id?: Prisma.IntFilter<"Expenses"> | number + comment?: Prisma.StringFilter<"Expenses"> | string + attachment?: Prisma.IntNullableFilter<"Expenses"> | number | null + mileage?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.XOR | null + bank_code?: Prisma.XOR + timesheet?: Prisma.XOR + archive?: Prisma.ExpensesArchiveListRelationFilter +}, "id" | "unique_ts_id_date_amount_mileage"> + +export type ExpensesOrderByWithAggregationInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + is_approved?: Prisma.SortOrder + supervisor_comment?: Prisma.SortOrderInput | Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + attachment?: Prisma.SortOrderInput | Prisma.SortOrder + mileage?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.ExpensesCountOrderByAggregateInput + _avg?: Prisma.ExpensesAvgOrderByAggregateInput + _max?: Prisma.ExpensesMaxOrderByAggregateInput + _min?: Prisma.ExpensesMinOrderByAggregateInput + _sum?: Prisma.ExpensesSumOrderByAggregateInput +} + +export type ExpensesScalarWhereWithAggregatesInput = { + AND?: Prisma.ExpensesScalarWhereWithAggregatesInput | Prisma.ExpensesScalarWhereWithAggregatesInput[] + OR?: Prisma.ExpensesScalarWhereWithAggregatesInput[] + NOT?: Prisma.ExpensesScalarWhereWithAggregatesInput | Prisma.ExpensesScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"Expenses"> | number + timesheet_id?: Prisma.IntWithAggregatesFilter<"Expenses"> | number + date?: Prisma.DateTimeWithAggregatesFilter<"Expenses"> | Date | string + amount?: Prisma.DecimalNullableWithAggregatesFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolWithAggregatesFilter<"Expenses"> | boolean + supervisor_comment?: Prisma.StringNullableWithAggregatesFilter<"Expenses"> | string | null + bank_code_id?: Prisma.IntWithAggregatesFilter<"Expenses"> | number + comment?: Prisma.StringWithAggregatesFilter<"Expenses"> | string + attachment?: Prisma.IntNullableWithAggregatesFilter<"Expenses"> | number | null + mileage?: Prisma.DecimalNullableWithAggregatesFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesCreateInput = { + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: boolean + supervisor_comment?: string | null + comment: string + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpensesInput + bank_code: Prisma.BankCodesCreateNestedOneWithoutExpensesInput + timesheet: Prisma.TimesheetsCreateNestedOneWithoutExpenseInput + archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutExpenseInput +} + +export type ExpensesUncheckedCreateInput = { + id?: number + timesheet_id: number + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: boolean + supervisor_comment?: string | null + bank_code_id: number + comment: string + attachment?: number | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput +} + +export type ExpensesUpdateInput = { + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.StringFieldUpdateOperationsInput | string + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpensesNestedInput + bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutExpensesNestedInput + timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutExpenseNestedInput + archive?: Prisma.ExpensesArchiveUpdateManyWithoutExpenseNestedInput +} + +export type ExpensesUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput +} + +export type ExpensesCreateManyInput = { + id?: number + timesheet_id: number + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: boolean + supervisor_comment?: string | null + bank_code_id: number + comment: string + attachment?: number | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesUpdateManyMutationInput = { + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.StringFieldUpdateOperationsInput | string + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesListRelationFilter = { + every?: Prisma.ExpensesWhereInput + some?: Prisma.ExpensesWhereInput + none?: Prisma.ExpensesWhereInput +} + +export type ExpensesOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ExpensesUnique_ts_id_date_amount_mileageCompoundUniqueInput = { + timesheet_id: number + date: Date | string + amount: runtime.Decimal | runtime.DecimalJsLike | number | string + mileage: runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type ExpensesCountOrderByAggregateInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + amount?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + supervisor_comment?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + attachment?: Prisma.SortOrder + mileage?: Prisma.SortOrder +} + +export type ExpensesAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + amount?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + attachment?: Prisma.SortOrder + mileage?: Prisma.SortOrder +} + +export type ExpensesMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + amount?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + supervisor_comment?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + attachment?: Prisma.SortOrder + mileage?: Prisma.SortOrder +} + +export type ExpensesMinOrderByAggregateInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + amount?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + supervisor_comment?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + attachment?: Prisma.SortOrder + mileage?: Prisma.SortOrder +} + +export type ExpensesSumOrderByAggregateInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + amount?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + attachment?: Prisma.SortOrder + mileage?: Prisma.SortOrder +} + +export type ExpensesScalarRelationFilter = { + is?: Prisma.ExpensesWhereInput + isNot?: Prisma.ExpensesWhereInput +} + +export type ExpensesCreateNestedManyWithoutTimesheetInput = { + create?: Prisma.XOR | Prisma.ExpensesCreateWithoutTimesheetInput[] | Prisma.ExpensesUncheckedCreateWithoutTimesheetInput[] + connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutTimesheetInput | Prisma.ExpensesCreateOrConnectWithoutTimesheetInput[] + createMany?: Prisma.ExpensesCreateManyTimesheetInputEnvelope + connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] +} + +export type ExpensesUncheckedCreateNestedManyWithoutTimesheetInput = { + create?: Prisma.XOR | Prisma.ExpensesCreateWithoutTimesheetInput[] | Prisma.ExpensesUncheckedCreateWithoutTimesheetInput[] + connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutTimesheetInput | Prisma.ExpensesCreateOrConnectWithoutTimesheetInput[] + createMany?: Prisma.ExpensesCreateManyTimesheetInputEnvelope + connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] +} + +export type ExpensesUpdateManyWithoutTimesheetNestedInput = { + create?: Prisma.XOR | Prisma.ExpensesCreateWithoutTimesheetInput[] | Prisma.ExpensesUncheckedCreateWithoutTimesheetInput[] + connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutTimesheetInput | Prisma.ExpensesCreateOrConnectWithoutTimesheetInput[] + upsert?: Prisma.ExpensesUpsertWithWhereUniqueWithoutTimesheetInput | Prisma.ExpensesUpsertWithWhereUniqueWithoutTimesheetInput[] + createMany?: Prisma.ExpensesCreateManyTimesheetInputEnvelope + set?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + disconnect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + delete?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + update?: Prisma.ExpensesUpdateWithWhereUniqueWithoutTimesheetInput | Prisma.ExpensesUpdateWithWhereUniqueWithoutTimesheetInput[] + updateMany?: Prisma.ExpensesUpdateManyWithWhereWithoutTimesheetInput | Prisma.ExpensesUpdateManyWithWhereWithoutTimesheetInput[] + deleteMany?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[] +} + +export type ExpensesUncheckedUpdateManyWithoutTimesheetNestedInput = { + create?: Prisma.XOR | Prisma.ExpensesCreateWithoutTimesheetInput[] | Prisma.ExpensesUncheckedCreateWithoutTimesheetInput[] + connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutTimesheetInput | Prisma.ExpensesCreateOrConnectWithoutTimesheetInput[] + upsert?: Prisma.ExpensesUpsertWithWhereUniqueWithoutTimesheetInput | Prisma.ExpensesUpsertWithWhereUniqueWithoutTimesheetInput[] + createMany?: Prisma.ExpensesCreateManyTimesheetInputEnvelope + set?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + disconnect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + delete?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + update?: Prisma.ExpensesUpdateWithWhereUniqueWithoutTimesheetInput | Prisma.ExpensesUpdateWithWhereUniqueWithoutTimesheetInput[] + updateMany?: Prisma.ExpensesUpdateManyWithWhereWithoutTimesheetInput | Prisma.ExpensesUpdateManyWithWhereWithoutTimesheetInput[] + deleteMany?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[] +} + +export type ExpensesCreateNestedManyWithoutBank_codeInput = { + create?: Prisma.XOR | Prisma.ExpensesCreateWithoutBank_codeInput[] | Prisma.ExpensesUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutBank_codeInput | Prisma.ExpensesCreateOrConnectWithoutBank_codeInput[] + createMany?: Prisma.ExpensesCreateManyBank_codeInputEnvelope + connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] +} + +export type ExpensesUncheckedCreateNestedManyWithoutBank_codeInput = { + create?: Prisma.XOR | Prisma.ExpensesCreateWithoutBank_codeInput[] | Prisma.ExpensesUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutBank_codeInput | Prisma.ExpensesCreateOrConnectWithoutBank_codeInput[] + createMany?: Prisma.ExpensesCreateManyBank_codeInputEnvelope + connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] +} + +export type ExpensesUpdateManyWithoutBank_codeNestedInput = { + create?: Prisma.XOR | Prisma.ExpensesCreateWithoutBank_codeInput[] | Prisma.ExpensesUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutBank_codeInput | Prisma.ExpensesCreateOrConnectWithoutBank_codeInput[] + upsert?: Prisma.ExpensesUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.ExpensesUpsertWithWhereUniqueWithoutBank_codeInput[] + createMany?: Prisma.ExpensesCreateManyBank_codeInputEnvelope + set?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + disconnect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + delete?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + update?: Prisma.ExpensesUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.ExpensesUpdateWithWhereUniqueWithoutBank_codeInput[] + updateMany?: Prisma.ExpensesUpdateManyWithWhereWithoutBank_codeInput | Prisma.ExpensesUpdateManyWithWhereWithoutBank_codeInput[] + deleteMany?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[] +} + +export type ExpensesUncheckedUpdateManyWithoutBank_codeNestedInput = { + create?: Prisma.XOR | Prisma.ExpensesCreateWithoutBank_codeInput[] | Prisma.ExpensesUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutBank_codeInput | Prisma.ExpensesCreateOrConnectWithoutBank_codeInput[] + upsert?: Prisma.ExpensesUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.ExpensesUpsertWithWhereUniqueWithoutBank_codeInput[] + createMany?: Prisma.ExpensesCreateManyBank_codeInputEnvelope + set?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + disconnect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + delete?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + update?: Prisma.ExpensesUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.ExpensesUpdateWithWhereUniqueWithoutBank_codeInput[] + updateMany?: Prisma.ExpensesUpdateManyWithWhereWithoutBank_codeInput | Prisma.ExpensesUpdateManyWithWhereWithoutBank_codeInput[] + deleteMany?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[] +} + +export type ExpensesCreateNestedOneWithoutArchiveInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutArchiveInput + connect?: Prisma.ExpensesWhereUniqueInput +} + +export type ExpensesUpdateOneRequiredWithoutArchiveNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutArchiveInput + upsert?: Prisma.ExpensesUpsertWithoutArchiveInput + connect?: Prisma.ExpensesWhereUniqueInput + update?: Prisma.XOR, Prisma.ExpensesUncheckedUpdateWithoutArchiveInput> +} + +export type ExpensesCreateNestedManyWithoutAttachment_recordInput = { + create?: Prisma.XOR | Prisma.ExpensesCreateWithoutAttachment_recordInput[] | Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput[] + connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput[] + createMany?: Prisma.ExpensesCreateManyAttachment_recordInputEnvelope + connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] +} + +export type ExpensesUncheckedCreateNestedManyWithoutAttachment_recordInput = { + create?: Prisma.XOR | Prisma.ExpensesCreateWithoutAttachment_recordInput[] | Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput[] + connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput[] + createMany?: Prisma.ExpensesCreateManyAttachment_recordInputEnvelope + connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] +} + +export type ExpensesUpdateManyWithoutAttachment_recordNestedInput = { + create?: Prisma.XOR | Prisma.ExpensesCreateWithoutAttachment_recordInput[] | Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput[] + connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput[] + upsert?: Prisma.ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput[] + createMany?: Prisma.ExpensesCreateManyAttachment_recordInputEnvelope + set?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + disconnect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + delete?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + update?: Prisma.ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput[] + updateMany?: Prisma.ExpensesUpdateManyWithWhereWithoutAttachment_recordInput | Prisma.ExpensesUpdateManyWithWhereWithoutAttachment_recordInput[] + deleteMany?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[] +} + +export type ExpensesUncheckedUpdateManyWithoutAttachment_recordNestedInput = { + create?: Prisma.XOR | Prisma.ExpensesCreateWithoutAttachment_recordInput[] | Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput[] + connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput[] + upsert?: Prisma.ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput[] + createMany?: Prisma.ExpensesCreateManyAttachment_recordInputEnvelope + set?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + disconnect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + delete?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] + update?: Prisma.ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput[] + updateMany?: Prisma.ExpensesUpdateManyWithWhereWithoutAttachment_recordInput | Prisma.ExpensesUpdateManyWithWhereWithoutAttachment_recordInput[] + deleteMany?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[] +} + +export type ExpensesCreateWithoutTimesheetInput = { + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: boolean + supervisor_comment?: string | null + comment: string + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpensesInput + bank_code: Prisma.BankCodesCreateNestedOneWithoutExpensesInput + archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutExpenseInput +} + +export type ExpensesUncheckedCreateWithoutTimesheetInput = { + id?: number + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: boolean + supervisor_comment?: string | null + bank_code_id: number + comment: string + attachment?: number | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput +} + +export type ExpensesCreateOrConnectWithoutTimesheetInput = { + where: Prisma.ExpensesWhereUniqueInput + create: Prisma.XOR +} + +export type ExpensesCreateManyTimesheetInputEnvelope = { + data: Prisma.ExpensesCreateManyTimesheetInput | Prisma.ExpensesCreateManyTimesheetInput[] + skipDuplicates?: boolean +} + +export type ExpensesUpsertWithWhereUniqueWithoutTimesheetInput = { + where: Prisma.ExpensesWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ExpensesUpdateWithWhereUniqueWithoutTimesheetInput = { + where: Prisma.ExpensesWhereUniqueInput + data: Prisma.XOR +} + +export type ExpensesUpdateManyWithWhereWithoutTimesheetInput = { + where: Prisma.ExpensesScalarWhereInput + data: Prisma.XOR +} + +export type ExpensesScalarWhereInput = { + AND?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[] + OR?: Prisma.ExpensesScalarWhereInput[] + NOT?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[] + id?: Prisma.IntFilter<"Expenses"> | number + timesheet_id?: Prisma.IntFilter<"Expenses"> | number + date?: Prisma.DateTimeFilter<"Expenses"> | Date | string + amount?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFilter<"Expenses"> | boolean + supervisor_comment?: Prisma.StringNullableFilter<"Expenses"> | string | null + bank_code_id?: Prisma.IntFilter<"Expenses"> | number + comment?: Prisma.StringFilter<"Expenses"> | string + attachment?: Prisma.IntNullableFilter<"Expenses"> | number | null + mileage?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesCreateWithoutBank_codeInput = { + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: boolean + supervisor_comment?: string | null + comment: string + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpensesInput + timesheet: Prisma.TimesheetsCreateNestedOneWithoutExpenseInput + archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutExpenseInput +} + +export type ExpensesUncheckedCreateWithoutBank_codeInput = { + id?: number + timesheet_id: number + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: boolean + supervisor_comment?: string | null + comment: string + attachment?: number | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput +} + +export type ExpensesCreateOrConnectWithoutBank_codeInput = { + where: Prisma.ExpensesWhereUniqueInput + create: Prisma.XOR +} + +export type ExpensesCreateManyBank_codeInputEnvelope = { + data: Prisma.ExpensesCreateManyBank_codeInput | Prisma.ExpensesCreateManyBank_codeInput[] + skipDuplicates?: boolean +} + +export type ExpensesUpsertWithWhereUniqueWithoutBank_codeInput = { + where: Prisma.ExpensesWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ExpensesUpdateWithWhereUniqueWithoutBank_codeInput = { + where: Prisma.ExpensesWhereUniqueInput + data: Prisma.XOR +} + +export type ExpensesUpdateManyWithWhereWithoutBank_codeInput = { + where: Prisma.ExpensesScalarWhereInput + data: Prisma.XOR +} + +export type ExpensesCreateWithoutArchiveInput = { + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: boolean + supervisor_comment?: string | null + comment: string + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpensesInput + bank_code: Prisma.BankCodesCreateNestedOneWithoutExpensesInput + timesheet: Prisma.TimesheetsCreateNestedOneWithoutExpenseInput +} + +export type ExpensesUncheckedCreateWithoutArchiveInput = { + id?: number + timesheet_id: number + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: boolean + supervisor_comment?: string | null + bank_code_id: number + comment: string + attachment?: number | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesCreateOrConnectWithoutArchiveInput = { + where: Prisma.ExpensesWhereUniqueInput + create: Prisma.XOR +} + +export type ExpensesUpsertWithoutArchiveInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ExpensesWhereInput +} + +export type ExpensesUpdateToOneWithWhereWithoutArchiveInput = { + where?: Prisma.ExpensesWhereInput + data: Prisma.XOR +} + +export type ExpensesUpdateWithoutArchiveInput = { + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.StringFieldUpdateOperationsInput | string + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpensesNestedInput + bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutExpensesNestedInput + timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutExpenseNestedInput +} + +export type ExpensesUncheckedUpdateWithoutArchiveInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesCreateWithoutAttachment_recordInput = { + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: boolean + supervisor_comment?: string | null + comment: string + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + bank_code: Prisma.BankCodesCreateNestedOneWithoutExpensesInput + timesheet: Prisma.TimesheetsCreateNestedOneWithoutExpenseInput + archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutExpenseInput +} + +export type ExpensesUncheckedCreateWithoutAttachment_recordInput = { + id?: number + timesheet_id: number + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: boolean + supervisor_comment?: string | null + bank_code_id: number + comment: string + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput +} + +export type ExpensesCreateOrConnectWithoutAttachment_recordInput = { + where: Prisma.ExpensesWhereUniqueInput + create: Prisma.XOR +} + +export type ExpensesCreateManyAttachment_recordInputEnvelope = { + data: Prisma.ExpensesCreateManyAttachment_recordInput | Prisma.ExpensesCreateManyAttachment_recordInput[] + skipDuplicates?: boolean +} + +export type ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput = { + where: Prisma.ExpensesWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput = { + where: Prisma.ExpensesWhereUniqueInput + data: Prisma.XOR +} + +export type ExpensesUpdateManyWithWhereWithoutAttachment_recordInput = { + where: Prisma.ExpensesScalarWhereInput + data: Prisma.XOR +} + +export type ExpensesCreateManyTimesheetInput = { + id?: number + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: boolean + supervisor_comment?: string | null + bank_code_id: number + comment: string + attachment?: number | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesUpdateWithoutTimesheetInput = { + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.StringFieldUpdateOperationsInput | string + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpensesNestedInput + bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutExpensesNestedInput + archive?: Prisma.ExpensesArchiveUpdateManyWithoutExpenseNestedInput +} + +export type ExpensesUncheckedUpdateWithoutTimesheetInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput +} + +export type ExpensesUncheckedUpdateManyWithoutTimesheetInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesCreateManyBank_codeInput = { + id?: number + timesheet_id: number + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: boolean + supervisor_comment?: string | null + comment: string + attachment?: number | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesUpdateWithoutBank_codeInput = { + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.StringFieldUpdateOperationsInput | string + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpensesNestedInput + timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutExpenseNestedInput + archive?: Prisma.ExpensesArchiveUpdateManyWithoutExpenseNestedInput +} + +export type ExpensesUncheckedUpdateWithoutBank_codeInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput +} + +export type ExpensesUncheckedUpdateManyWithoutBank_codeInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.StringFieldUpdateOperationsInput | string + attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesCreateManyAttachment_recordInput = { + id?: number + timesheet_id: number + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: boolean + supervisor_comment?: string | null + bank_code_id: number + comment: string + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesUpdateWithoutAttachment_recordInput = { + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + comment?: Prisma.StringFieldUpdateOperationsInput | string + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutExpensesNestedInput + timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutExpenseNestedInput + archive?: Prisma.ExpensesArchiveUpdateManyWithoutExpenseNestedInput +} + +export type ExpensesUncheckedUpdateWithoutAttachment_recordInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.StringFieldUpdateOperationsInput | string + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput +} + +export type ExpensesUncheckedUpdateManyWithoutAttachment_recordInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.StringFieldUpdateOperationsInput | string + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + + +/** + * Count Type ExpensesCountOutputType + */ + +export type ExpensesCountOutputType = { + archive: number +} + +export type ExpensesCountOutputTypeSelect = { + archive?: boolean | ExpensesCountOutputTypeCountArchiveArgs +} + +/** + * ExpensesCountOutputType without action + */ +export type ExpensesCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the ExpensesCountOutputType + */ + select?: Prisma.ExpensesCountOutputTypeSelect | null +} + +/** + * ExpensesCountOutputType without action + */ +export type ExpensesCountOutputTypeCountArchiveArgs = { + where?: Prisma.ExpensesArchiveWhereInput +} + + +export type ExpensesSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + timesheet_id?: boolean + date?: boolean + amount?: boolean + is_approved?: boolean + supervisor_comment?: boolean + bank_code_id?: boolean + comment?: boolean + attachment?: boolean + mileage?: boolean + attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs + bank_code?: boolean | Prisma.BankCodesDefaultArgs + timesheet?: boolean | Prisma.TimesheetsDefaultArgs + archive?: boolean | Prisma.Expenses$archiveArgs + _count?: boolean | Prisma.ExpensesCountOutputTypeDefaultArgs +}, ExtArgs["result"]["expenses"]> + +export type ExpensesSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + timesheet_id?: boolean + date?: boolean + amount?: boolean + is_approved?: boolean + supervisor_comment?: boolean + bank_code_id?: boolean + comment?: boolean + attachment?: boolean + mileage?: boolean + attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs + bank_code?: boolean | Prisma.BankCodesDefaultArgs + timesheet?: boolean | Prisma.TimesheetsDefaultArgs +}, ExtArgs["result"]["expenses"]> + +export type ExpensesSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + timesheet_id?: boolean + date?: boolean + amount?: boolean + is_approved?: boolean + supervisor_comment?: boolean + bank_code_id?: boolean + comment?: boolean + attachment?: boolean + mileage?: boolean + attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs + bank_code?: boolean | Prisma.BankCodesDefaultArgs + timesheet?: boolean | Prisma.TimesheetsDefaultArgs +}, ExtArgs["result"]["expenses"]> + +export type ExpensesSelectScalar = { + id?: boolean + timesheet_id?: boolean + date?: boolean + amount?: boolean + is_approved?: boolean + supervisor_comment?: boolean + bank_code_id?: boolean + comment?: boolean + attachment?: boolean + mileage?: boolean +} + +export type ExpensesOmit = runtime.Types.Extensions.GetOmit<"id" | "timesheet_id" | "date" | "amount" | "is_approved" | "supervisor_comment" | "bank_code_id" | "comment" | "attachment" | "mileage", ExtArgs["result"]["expenses"]> +export type ExpensesInclude = { + attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs + bank_code?: boolean | Prisma.BankCodesDefaultArgs + timesheet?: boolean | Prisma.TimesheetsDefaultArgs + archive?: boolean | Prisma.Expenses$archiveArgs + _count?: boolean | Prisma.ExpensesCountOutputTypeDefaultArgs +} +export type ExpensesIncludeCreateManyAndReturn = { + attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs + bank_code?: boolean | Prisma.BankCodesDefaultArgs + timesheet?: boolean | Prisma.TimesheetsDefaultArgs +} +export type ExpensesIncludeUpdateManyAndReturn = { + attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs + bank_code?: boolean | Prisma.BankCodesDefaultArgs + timesheet?: boolean | Prisma.TimesheetsDefaultArgs +} + +export type $ExpensesPayload = { + name: "Expenses" + objects: { + attachment_record: Prisma.$AttachmentsPayload | null + bank_code: Prisma.$BankCodesPayload + timesheet: Prisma.$TimesheetsPayload + archive: Prisma.$ExpensesArchivePayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + timesheet_id: number + date: Date + amount: runtime.Decimal | null + is_approved: boolean + supervisor_comment: string | null + bank_code_id: number + comment: string + attachment: number | null + mileage: runtime.Decimal | null + }, ExtArgs["result"]["expenses"]> + composites: {} +} + +export type ExpensesGetPayload = runtime.Types.Result.GetResult + +export type ExpensesCountArgs = + Omit & { + select?: ExpensesCountAggregateInputType | true + } + +export interface ExpensesDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Expenses'], meta: { name: 'Expenses' } } + /** + * Find zero or one Expenses that matches the filter. + * @param {ExpensesFindUniqueArgs} args - Arguments to find a Expenses + * @example + * // Get one Expenses + * const expenses = await prisma.expenses.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Expenses that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ExpensesFindUniqueOrThrowArgs} args - Arguments to find a Expenses + * @example + * // Get one Expenses + * const expenses = await prisma.expenses.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Expenses that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpensesFindFirstArgs} args - Arguments to find a Expenses + * @example + * // Get one Expenses + * const expenses = await prisma.expenses.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Expenses 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 {ExpensesFindFirstOrThrowArgs} args - Arguments to find a Expenses + * @example + * // Get one Expenses + * const expenses = await prisma.expenses.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Expenses that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpensesFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Expenses + * const expenses = await prisma.expenses.findMany() + * + * // Get first 10 Expenses + * const expenses = await prisma.expenses.findMany({ take: 10 }) + * + * // Only select the `id` + * const expensesWithIdOnly = await prisma.expenses.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Expenses. + * @param {ExpensesCreateArgs} args - Arguments to create a Expenses. + * @example + * // Create one Expenses + * const Expenses = await prisma.expenses.create({ + * data: { + * // ... data to create a Expenses + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Expenses. + * @param {ExpensesCreateManyArgs} args - Arguments to create many Expenses. + * @example + * // Create many Expenses + * const expenses = await prisma.expenses.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Expenses and returns the data saved in the database. + * @param {ExpensesCreateManyAndReturnArgs} args - Arguments to create many Expenses. + * @example + * // Create many Expenses + * const expenses = await prisma.expenses.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Expenses and only return the `id` + * const expensesWithIdOnly = await prisma.expenses.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 Expenses. + * @param {ExpensesDeleteArgs} args - Arguments to delete one Expenses. + * @example + * // Delete one Expenses + * const Expenses = await prisma.expenses.delete({ + * where: { + * // ... filter to delete one Expenses + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Expenses. + * @param {ExpensesUpdateArgs} args - Arguments to update one Expenses. + * @example + * // Update one Expenses + * const expenses = await prisma.expenses.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Expenses. + * @param {ExpensesDeleteManyArgs} args - Arguments to filter Expenses to delete. + * @example + * // Delete a few Expenses + * const { count } = await prisma.expenses.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Expenses. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpensesUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Expenses + * const expenses = await prisma.expenses.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Expenses and returns the data updated in the database. + * @param {ExpensesUpdateManyAndReturnArgs} args - Arguments to update many Expenses. + * @example + * // Update many Expenses + * const expenses = await prisma.expenses.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Expenses and only return the `id` + * const expensesWithIdOnly = await prisma.expenses.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 Expenses. + * @param {ExpensesUpsertArgs} args - Arguments to update or create a Expenses. + * @example + * // Update or create a Expenses + * const expenses = await prisma.expenses.upsert({ + * create: { + * // ... data to create a Expenses + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Expenses we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Expenses. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpensesCountArgs} args - Arguments to filter Expenses to count. + * @example + * // Count the number of Expenses + * const count = await prisma.expenses.count({ + * where: { + * // ... the filter for the Expenses we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Expenses. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpensesAggregateArgs} 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 Expenses. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpensesGroupByArgs} 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 ExpensesGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ExpensesGroupByArgs['orderBy'] } + : { orderBy?: ExpensesGroupByArgs['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 ? GetExpensesGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Expenses model + */ +readonly fields: ExpensesFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Expenses. + * 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__ExpensesClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + attachment_record = {}>(args?: Prisma.Subset>): Prisma.Prisma__AttachmentsClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + bank_code = {}>(args?: Prisma.Subset>): Prisma.Prisma__BankCodesClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + timesheet = {}>(args?: Prisma.Subset>): Prisma.Prisma__TimesheetsClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + archive = {}>(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 Expenses model + */ +export interface ExpensesFieldRefs { + readonly id: Prisma.FieldRef<"Expenses", 'Int'> + readonly timesheet_id: Prisma.FieldRef<"Expenses", 'Int'> + readonly date: Prisma.FieldRef<"Expenses", 'DateTime'> + readonly amount: Prisma.FieldRef<"Expenses", 'Decimal'> + readonly is_approved: Prisma.FieldRef<"Expenses", 'Boolean'> + readonly supervisor_comment: Prisma.FieldRef<"Expenses", 'String'> + readonly bank_code_id: Prisma.FieldRef<"Expenses", 'Int'> + readonly comment: Prisma.FieldRef<"Expenses", 'String'> + readonly attachment: Prisma.FieldRef<"Expenses", 'Int'> + readonly mileage: Prisma.FieldRef<"Expenses", 'Decimal'> +} + + +// Custom InputTypes +/** + * Expenses findUnique + */ +export type ExpensesFindUniqueArgs = { + /** + * Select specific fields to fetch from the Expenses + */ + select?: Prisma.ExpensesSelect | null + /** + * Omit specific fields from the Expenses + */ + omit?: Prisma.ExpensesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesInclude | null + /** + * Filter, which Expenses to fetch. + */ + where: Prisma.ExpensesWhereUniqueInput +} + +/** + * Expenses findUniqueOrThrow + */ +export type ExpensesFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Expenses + */ + select?: Prisma.ExpensesSelect | null + /** + * Omit specific fields from the Expenses + */ + omit?: Prisma.ExpensesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesInclude | null + /** + * Filter, which Expenses to fetch. + */ + where: Prisma.ExpensesWhereUniqueInput +} + +/** + * Expenses findFirst + */ +export type ExpensesFindFirstArgs = { + /** + * Select specific fields to fetch from the Expenses + */ + select?: Prisma.ExpensesSelect | null + /** + * Omit specific fields from the Expenses + */ + omit?: Prisma.ExpensesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesInclude | null + /** + * Filter, which Expenses to fetch. + */ + where?: Prisma.ExpensesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Expenses to fetch. + */ + orderBy?: Prisma.ExpensesOrderByWithRelationInput | Prisma.ExpensesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Expenses. + */ + cursor?: Prisma.ExpensesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Expenses from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Expenses. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Expenses. + */ + distinct?: Prisma.ExpensesScalarFieldEnum | Prisma.ExpensesScalarFieldEnum[] +} + +/** + * Expenses findFirstOrThrow + */ +export type ExpensesFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Expenses + */ + select?: Prisma.ExpensesSelect | null + /** + * Omit specific fields from the Expenses + */ + omit?: Prisma.ExpensesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesInclude | null + /** + * Filter, which Expenses to fetch. + */ + where?: Prisma.ExpensesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Expenses to fetch. + */ + orderBy?: Prisma.ExpensesOrderByWithRelationInput | Prisma.ExpensesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Expenses. + */ + cursor?: Prisma.ExpensesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Expenses from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Expenses. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Expenses. + */ + distinct?: Prisma.ExpensesScalarFieldEnum | Prisma.ExpensesScalarFieldEnum[] +} + +/** + * Expenses findMany + */ +export type ExpensesFindManyArgs = { + /** + * Select specific fields to fetch from the Expenses + */ + select?: Prisma.ExpensesSelect | null + /** + * Omit specific fields from the Expenses + */ + omit?: Prisma.ExpensesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesInclude | null + /** + * Filter, which Expenses to fetch. + */ + where?: Prisma.ExpensesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Expenses to fetch. + */ + orderBy?: Prisma.ExpensesOrderByWithRelationInput | Prisma.ExpensesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Expenses. + */ + cursor?: Prisma.ExpensesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Expenses from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Expenses. + */ + skip?: number + distinct?: Prisma.ExpensesScalarFieldEnum | Prisma.ExpensesScalarFieldEnum[] +} + +/** + * Expenses create + */ +export type ExpensesCreateArgs = { + /** + * Select specific fields to fetch from the Expenses + */ + select?: Prisma.ExpensesSelect | null + /** + * Omit specific fields from the Expenses + */ + omit?: Prisma.ExpensesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesInclude | null + /** + * The data needed to create a Expenses. + */ + data: Prisma.XOR +} + +/** + * Expenses createMany + */ +export type ExpensesCreateManyArgs = { + /** + * The data used to create many Expenses. + */ + data: Prisma.ExpensesCreateManyInput | Prisma.ExpensesCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Expenses createManyAndReturn + */ +export type ExpensesCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Expenses + */ + select?: Prisma.ExpensesSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Expenses + */ + omit?: Prisma.ExpensesOmit | null + /** + * The data used to create many Expenses. + */ + data: Prisma.ExpensesCreateManyInput | Prisma.ExpensesCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesIncludeCreateManyAndReturn | null +} + +/** + * Expenses update + */ +export type ExpensesUpdateArgs = { + /** + * Select specific fields to fetch from the Expenses + */ + select?: Prisma.ExpensesSelect | null + /** + * Omit specific fields from the Expenses + */ + omit?: Prisma.ExpensesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesInclude | null + /** + * The data needed to update a Expenses. + */ + data: Prisma.XOR + /** + * Choose, which Expenses to update. + */ + where: Prisma.ExpensesWhereUniqueInput +} + +/** + * Expenses updateMany + */ +export type ExpensesUpdateManyArgs = { + /** + * The data used to update Expenses. + */ + data: Prisma.XOR + /** + * Filter which Expenses to update + */ + where?: Prisma.ExpensesWhereInput + /** + * Limit how many Expenses to update. + */ + limit?: number +} + +/** + * Expenses updateManyAndReturn + */ +export type ExpensesUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Expenses + */ + select?: Prisma.ExpensesSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Expenses + */ + omit?: Prisma.ExpensesOmit | null + /** + * The data used to update Expenses. + */ + data: Prisma.XOR + /** + * Filter which Expenses to update + */ + where?: Prisma.ExpensesWhereInput + /** + * Limit how many Expenses to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesIncludeUpdateManyAndReturn | null +} + +/** + * Expenses upsert + */ +export type ExpensesUpsertArgs = { + /** + * Select specific fields to fetch from the Expenses + */ + select?: Prisma.ExpensesSelect | null + /** + * Omit specific fields from the Expenses + */ + omit?: Prisma.ExpensesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesInclude | null + /** + * The filter to search for the Expenses to update in case it exists. + */ + where: Prisma.ExpensesWhereUniqueInput + /** + * In case the Expenses found by the `where` argument doesn't exist, create a new Expenses with this data. + */ + create: Prisma.XOR + /** + * In case the Expenses was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Expenses delete + */ +export type ExpensesDeleteArgs = { + /** + * Select specific fields to fetch from the Expenses + */ + select?: Prisma.ExpensesSelect | null + /** + * Omit specific fields from the Expenses + */ + omit?: Prisma.ExpensesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesInclude | null + /** + * Filter which Expenses to delete. + */ + where: Prisma.ExpensesWhereUniqueInput +} + +/** + * Expenses deleteMany + */ +export type ExpensesDeleteManyArgs = { + /** + * Filter which Expenses to delete + */ + where?: Prisma.ExpensesWhereInput + /** + * Limit how many Expenses to delete. + */ + limit?: number +} + +/** + * Expenses.attachment_record + */ +export type Expenses$attachment_recordArgs = { + /** + * Select specific fields to fetch from the Attachments + */ + select?: Prisma.AttachmentsSelect | null + /** + * Omit specific fields from the Attachments + */ + omit?: Prisma.AttachmentsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentsInclude | null + where?: Prisma.AttachmentsWhereInput +} + +/** + * Expenses.archive + */ +export type Expenses$archiveArgs = { + /** + * Select specific fields to fetch from the ExpensesArchive + */ + select?: Prisma.ExpensesArchiveSelect | null + /** + * Omit specific fields from the ExpensesArchive + */ + omit?: Prisma.ExpensesArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesArchiveInclude | null + where?: Prisma.ExpensesArchiveWhereInput + orderBy?: Prisma.ExpensesArchiveOrderByWithRelationInput | Prisma.ExpensesArchiveOrderByWithRelationInput[] + cursor?: Prisma.ExpensesArchiveWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ExpensesArchiveScalarFieldEnum | Prisma.ExpensesArchiveScalarFieldEnum[] +} + +/** + * Expenses without action + */ +export type ExpensesDefaultArgs = { + /** + * Select specific fields to fetch from the Expenses + */ + select?: Prisma.ExpensesSelect | null + /** + * Omit specific fields from the Expenses + */ + omit?: Prisma.ExpensesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesInclude | null +} diff --git a/prisma/generated/postgres/models/ExpensesArchive.ts b/prisma/generated/postgres/models/ExpensesArchive.ts new file mode 100644 index 0000000..214fd85 --- /dev/null +++ b/prisma/generated/postgres/models/ExpensesArchive.ts @@ -0,0 +1,1839 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ExpensesArchive` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model ExpensesArchive + * + */ +export type ExpensesArchiveModel = runtime.Types.Result.DefaultSelection + +export type AggregateExpensesArchive = { + _count: ExpensesArchiveCountAggregateOutputType | null + _avg: ExpensesArchiveAvgAggregateOutputType | null + _sum: ExpensesArchiveSumAggregateOutputType | null + _min: ExpensesArchiveMinAggregateOutputType | null + _max: ExpensesArchiveMaxAggregateOutputType | null +} + +export type ExpensesArchiveAvgAggregateOutputType = { + id: number | null + expense_id: number | null + timesheet_id: number | null + amount: runtime.Decimal | null + bank_code_id: number | null + attachment: number | null + mileage: runtime.Decimal | null +} + +export type ExpensesArchiveSumAggregateOutputType = { + id: number | null + expense_id: number | null + timesheet_id: number | null + amount: runtime.Decimal | null + bank_code_id: number | null + attachment: number | null + mileage: runtime.Decimal | null +} + +export type ExpensesArchiveMinAggregateOutputType = { + id: number | null + expense_id: number | null + timesheet_id: number | null + archived_at: Date | null + date: Date | null + amount: runtime.Decimal | null + is_approved: boolean | null + supervisor_comment: string | null + bank_code_id: number | null + comment: string | null + attachment: number | null + mileage: runtime.Decimal | null +} + +export type ExpensesArchiveMaxAggregateOutputType = { + id: number | null + expense_id: number | null + timesheet_id: number | null + archived_at: Date | null + date: Date | null + amount: runtime.Decimal | null + is_approved: boolean | null + supervisor_comment: string | null + bank_code_id: number | null + comment: string | null + attachment: number | null + mileage: runtime.Decimal | null +} + +export type ExpensesArchiveCountAggregateOutputType = { + id: number + expense_id: number + timesheet_id: number + archived_at: number + date: number + amount: number + is_approved: number + supervisor_comment: number + bank_code_id: number + comment: number + attachment: number + mileage: number + _all: number +} + + +export type ExpensesArchiveAvgAggregateInputType = { + id?: true + expense_id?: true + timesheet_id?: true + amount?: true + bank_code_id?: true + attachment?: true + mileage?: true +} + +export type ExpensesArchiveSumAggregateInputType = { + id?: true + expense_id?: true + timesheet_id?: true + amount?: true + bank_code_id?: true + attachment?: true + mileage?: true +} + +export type ExpensesArchiveMinAggregateInputType = { + id?: true + expense_id?: true + timesheet_id?: true + archived_at?: true + date?: true + amount?: true + is_approved?: true + supervisor_comment?: true + bank_code_id?: true + comment?: true + attachment?: true + mileage?: true +} + +export type ExpensesArchiveMaxAggregateInputType = { + id?: true + expense_id?: true + timesheet_id?: true + archived_at?: true + date?: true + amount?: true + is_approved?: true + supervisor_comment?: true + bank_code_id?: true + comment?: true + attachment?: true + mileage?: true +} + +export type ExpensesArchiveCountAggregateInputType = { + id?: true + expense_id?: true + timesheet_id?: true + archived_at?: true + date?: true + amount?: true + is_approved?: true + supervisor_comment?: true + bank_code_id?: true + comment?: true + attachment?: true + mileage?: true + _all?: true +} + +export type ExpensesArchiveAggregateArgs = { + /** + * Filter which ExpensesArchive to aggregate. + */ + where?: Prisma.ExpensesArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExpensesArchives to fetch. + */ + orderBy?: Prisma.ExpensesArchiveOrderByWithRelationInput | Prisma.ExpensesArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ExpensesArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ExpensesArchives 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` ExpensesArchives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ExpensesArchives + **/ + _count?: true | ExpensesArchiveCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ExpensesArchiveAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ExpensesArchiveSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ExpensesArchiveMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ExpensesArchiveMaxAggregateInputType +} + +export type GetExpensesArchiveAggregateType = { + [P in keyof T & keyof AggregateExpensesArchive]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ExpensesArchiveGroupByArgs = { + where?: Prisma.ExpensesArchiveWhereInput + orderBy?: Prisma.ExpensesArchiveOrderByWithAggregationInput | Prisma.ExpensesArchiveOrderByWithAggregationInput[] + by: Prisma.ExpensesArchiveScalarFieldEnum[] | Prisma.ExpensesArchiveScalarFieldEnum + having?: Prisma.ExpensesArchiveScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ExpensesArchiveCountAggregateInputType | true + _avg?: ExpensesArchiveAvgAggregateInputType + _sum?: ExpensesArchiveSumAggregateInputType + _min?: ExpensesArchiveMinAggregateInputType + _max?: ExpensesArchiveMaxAggregateInputType +} + +export type ExpensesArchiveGroupByOutputType = { + id: number + expense_id: number + timesheet_id: number + archived_at: Date + date: Date + amount: runtime.Decimal | null + is_approved: boolean + supervisor_comment: string | null + bank_code_id: number + comment: string | null + attachment: number | null + mileage: runtime.Decimal | null + _count: ExpensesArchiveCountAggregateOutputType | null + _avg: ExpensesArchiveAvgAggregateOutputType | null + _sum: ExpensesArchiveSumAggregateOutputType | null + _min: ExpensesArchiveMinAggregateOutputType | null + _max: ExpensesArchiveMaxAggregateOutputType | null +} + +type GetExpensesArchiveGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ExpensesArchiveGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ExpensesArchiveWhereInput = { + AND?: Prisma.ExpensesArchiveWhereInput | Prisma.ExpensesArchiveWhereInput[] + OR?: Prisma.ExpensesArchiveWhereInput[] + NOT?: Prisma.ExpensesArchiveWhereInput | Prisma.ExpensesArchiveWhereInput[] + id?: Prisma.IntFilter<"ExpensesArchive"> | number + expense_id?: Prisma.IntFilter<"ExpensesArchive"> | number + timesheet_id?: Prisma.IntFilter<"ExpensesArchive"> | number + archived_at?: Prisma.DateTimeFilter<"ExpensesArchive"> | Date | string + date?: Prisma.DateTimeFilter<"ExpensesArchive"> | Date | string + amount?: Prisma.DecimalNullableFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFilter<"ExpensesArchive"> | boolean + supervisor_comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null + bank_code_id?: Prisma.IntFilter<"ExpensesArchive"> | number + comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null + attachment?: Prisma.IntNullableFilter<"ExpensesArchive"> | number | null + mileage?: Prisma.DecimalNullableFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.XOR | null + expense?: Prisma.XOR +} + +export type ExpensesArchiveOrderByWithRelationInput = { + id?: Prisma.SortOrder + expense_id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + archived_at?: Prisma.SortOrder + date?: Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + is_approved?: Prisma.SortOrder + supervisor_comment?: Prisma.SortOrderInput | Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + attachment?: Prisma.SortOrderInput | Prisma.SortOrder + mileage?: Prisma.SortOrderInput | Prisma.SortOrder + attachment_record?: Prisma.AttachmentsOrderByWithRelationInput + expense?: Prisma.ExpensesOrderByWithRelationInput +} + +export type ExpensesArchiveWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.ExpensesArchiveWhereInput | Prisma.ExpensesArchiveWhereInput[] + OR?: Prisma.ExpensesArchiveWhereInput[] + NOT?: Prisma.ExpensesArchiveWhereInput | Prisma.ExpensesArchiveWhereInput[] + expense_id?: Prisma.IntFilter<"ExpensesArchive"> | number + timesheet_id?: Prisma.IntFilter<"ExpensesArchive"> | number + archived_at?: Prisma.DateTimeFilter<"ExpensesArchive"> | Date | string + date?: Prisma.DateTimeFilter<"ExpensesArchive"> | Date | string + amount?: Prisma.DecimalNullableFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFilter<"ExpensesArchive"> | boolean + supervisor_comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null + bank_code_id?: Prisma.IntFilter<"ExpensesArchive"> | number + comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null + attachment?: Prisma.IntNullableFilter<"ExpensesArchive"> | number | null + mileage?: Prisma.DecimalNullableFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.XOR | null + expense?: Prisma.XOR +}, "id"> + +export type ExpensesArchiveOrderByWithAggregationInput = { + id?: Prisma.SortOrder + expense_id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + archived_at?: Prisma.SortOrder + date?: Prisma.SortOrder + amount?: Prisma.SortOrderInput | Prisma.SortOrder + is_approved?: Prisma.SortOrder + supervisor_comment?: Prisma.SortOrderInput | Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + attachment?: Prisma.SortOrderInput | Prisma.SortOrder + mileage?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.ExpensesArchiveCountOrderByAggregateInput + _avg?: Prisma.ExpensesArchiveAvgOrderByAggregateInput + _max?: Prisma.ExpensesArchiveMaxOrderByAggregateInput + _min?: Prisma.ExpensesArchiveMinOrderByAggregateInput + _sum?: Prisma.ExpensesArchiveSumOrderByAggregateInput +} + +export type ExpensesArchiveScalarWhereWithAggregatesInput = { + AND?: Prisma.ExpensesArchiveScalarWhereWithAggregatesInput | Prisma.ExpensesArchiveScalarWhereWithAggregatesInput[] + OR?: Prisma.ExpensesArchiveScalarWhereWithAggregatesInput[] + NOT?: Prisma.ExpensesArchiveScalarWhereWithAggregatesInput | Prisma.ExpensesArchiveScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"ExpensesArchive"> | number + expense_id?: Prisma.IntWithAggregatesFilter<"ExpensesArchive"> | number + timesheet_id?: Prisma.IntWithAggregatesFilter<"ExpensesArchive"> | number + archived_at?: Prisma.DateTimeWithAggregatesFilter<"ExpensesArchive"> | Date | string + date?: Prisma.DateTimeWithAggregatesFilter<"ExpensesArchive"> | Date | string + amount?: Prisma.DecimalNullableWithAggregatesFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolWithAggregatesFilter<"ExpensesArchive"> | boolean + supervisor_comment?: Prisma.StringNullableWithAggregatesFilter<"ExpensesArchive"> | string | null + bank_code_id?: Prisma.IntWithAggregatesFilter<"ExpensesArchive"> | number + comment?: Prisma.StringNullableWithAggregatesFilter<"ExpensesArchive"> | string | null + attachment?: Prisma.IntNullableWithAggregatesFilter<"ExpensesArchive"> | number | null + mileage?: Prisma.DecimalNullableWithAggregatesFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesArchiveCreateInput = { + timesheet_id: number + archived_at?: Date | string + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved: boolean + supervisor_comment?: string | null + bank_code_id: number + comment?: string | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpenses_archiveInput + expense: Prisma.ExpensesCreateNestedOneWithoutArchiveInput +} + +export type ExpensesArchiveUncheckedCreateInput = { + id?: number + expense_id: number + timesheet_id: number + archived_at?: Date | string + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved: boolean + supervisor_comment?: string | null + bank_code_id: number + comment?: string | null + attachment?: number | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesArchiveUpdateInput = { + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpenses_archiveNestedInput + expense?: Prisma.ExpensesUpdateOneRequiredWithoutArchiveNestedInput +} + +export type ExpensesArchiveUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + expense_id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesArchiveCreateManyInput = { + id?: number + expense_id: number + timesheet_id: number + archived_at?: Date | string + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved: boolean + supervisor_comment?: string | null + bank_code_id: number + comment?: string | null + attachment?: number | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesArchiveUpdateManyMutationInput = { + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesArchiveUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + expense_id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesArchiveListRelationFilter = { + every?: Prisma.ExpensesArchiveWhereInput + some?: Prisma.ExpensesArchiveWhereInput + none?: Prisma.ExpensesArchiveWhereInput +} + +export type ExpensesArchiveOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ExpensesArchiveCountOrderByAggregateInput = { + id?: Prisma.SortOrder + expense_id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + archived_at?: Prisma.SortOrder + date?: Prisma.SortOrder + amount?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + supervisor_comment?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + attachment?: Prisma.SortOrder + mileage?: Prisma.SortOrder +} + +export type ExpensesArchiveAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + expense_id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + amount?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + attachment?: Prisma.SortOrder + mileage?: Prisma.SortOrder +} + +export type ExpensesArchiveMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + expense_id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + archived_at?: Prisma.SortOrder + date?: Prisma.SortOrder + amount?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + supervisor_comment?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + attachment?: Prisma.SortOrder + mileage?: Prisma.SortOrder +} + +export type ExpensesArchiveMinOrderByAggregateInput = { + id?: Prisma.SortOrder + expense_id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + archived_at?: Prisma.SortOrder + date?: Prisma.SortOrder + amount?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + supervisor_comment?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + comment?: Prisma.SortOrder + attachment?: Prisma.SortOrder + mileage?: Prisma.SortOrder +} + +export type ExpensesArchiveSumOrderByAggregateInput = { + id?: Prisma.SortOrder + expense_id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + amount?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + attachment?: Prisma.SortOrder + mileage?: Prisma.SortOrder +} + +export type ExpensesArchiveCreateNestedManyWithoutExpenseInput = { + create?: Prisma.XOR | Prisma.ExpensesArchiveCreateWithoutExpenseInput[] | Prisma.ExpensesArchiveUncheckedCreateWithoutExpenseInput[] + connectOrCreate?: Prisma.ExpensesArchiveCreateOrConnectWithoutExpenseInput | Prisma.ExpensesArchiveCreateOrConnectWithoutExpenseInput[] + createMany?: Prisma.ExpensesArchiveCreateManyExpenseInputEnvelope + connect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] +} + +export type ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput = { + create?: Prisma.XOR | Prisma.ExpensesArchiveCreateWithoutExpenseInput[] | Prisma.ExpensesArchiveUncheckedCreateWithoutExpenseInput[] + connectOrCreate?: Prisma.ExpensesArchiveCreateOrConnectWithoutExpenseInput | Prisma.ExpensesArchiveCreateOrConnectWithoutExpenseInput[] + createMany?: Prisma.ExpensesArchiveCreateManyExpenseInputEnvelope + connect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] +} + +export type ExpensesArchiveUpdateManyWithoutExpenseNestedInput = { + create?: Prisma.XOR | Prisma.ExpensesArchiveCreateWithoutExpenseInput[] | Prisma.ExpensesArchiveUncheckedCreateWithoutExpenseInput[] + connectOrCreate?: Prisma.ExpensesArchiveCreateOrConnectWithoutExpenseInput | Prisma.ExpensesArchiveCreateOrConnectWithoutExpenseInput[] + upsert?: Prisma.ExpensesArchiveUpsertWithWhereUniqueWithoutExpenseInput | Prisma.ExpensesArchiveUpsertWithWhereUniqueWithoutExpenseInput[] + createMany?: Prisma.ExpensesArchiveCreateManyExpenseInputEnvelope + set?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + disconnect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + delete?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + connect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + update?: Prisma.ExpensesArchiveUpdateWithWhereUniqueWithoutExpenseInput | Prisma.ExpensesArchiveUpdateWithWhereUniqueWithoutExpenseInput[] + updateMany?: Prisma.ExpensesArchiveUpdateManyWithWhereWithoutExpenseInput | Prisma.ExpensesArchiveUpdateManyWithWhereWithoutExpenseInput[] + deleteMany?: Prisma.ExpensesArchiveScalarWhereInput | Prisma.ExpensesArchiveScalarWhereInput[] +} + +export type ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput = { + create?: Prisma.XOR | Prisma.ExpensesArchiveCreateWithoutExpenseInput[] | Prisma.ExpensesArchiveUncheckedCreateWithoutExpenseInput[] + connectOrCreate?: Prisma.ExpensesArchiveCreateOrConnectWithoutExpenseInput | Prisma.ExpensesArchiveCreateOrConnectWithoutExpenseInput[] + upsert?: Prisma.ExpensesArchiveUpsertWithWhereUniqueWithoutExpenseInput | Prisma.ExpensesArchiveUpsertWithWhereUniqueWithoutExpenseInput[] + createMany?: Prisma.ExpensesArchiveCreateManyExpenseInputEnvelope + set?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + disconnect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + delete?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + connect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + update?: Prisma.ExpensesArchiveUpdateWithWhereUniqueWithoutExpenseInput | Prisma.ExpensesArchiveUpdateWithWhereUniqueWithoutExpenseInput[] + updateMany?: Prisma.ExpensesArchiveUpdateManyWithWhereWithoutExpenseInput | Prisma.ExpensesArchiveUpdateManyWithWhereWithoutExpenseInput[] + deleteMany?: Prisma.ExpensesArchiveScalarWhereInput | Prisma.ExpensesArchiveScalarWhereInput[] +} + +export type ExpensesArchiveCreateNestedManyWithoutAttachment_recordInput = { + create?: Prisma.XOR | Prisma.ExpensesArchiveCreateWithoutAttachment_recordInput[] | Prisma.ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput[] + connectOrCreate?: Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput[] + createMany?: Prisma.ExpensesArchiveCreateManyAttachment_recordInputEnvelope + connect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] +} + +export type ExpensesArchiveUncheckedCreateNestedManyWithoutAttachment_recordInput = { + create?: Prisma.XOR | Prisma.ExpensesArchiveCreateWithoutAttachment_recordInput[] | Prisma.ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput[] + connectOrCreate?: Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput[] + createMany?: Prisma.ExpensesArchiveCreateManyAttachment_recordInputEnvelope + connect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] +} + +export type ExpensesArchiveUpdateManyWithoutAttachment_recordNestedInput = { + create?: Prisma.XOR | Prisma.ExpensesArchiveCreateWithoutAttachment_recordInput[] | Prisma.ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput[] + connectOrCreate?: Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput[] + upsert?: Prisma.ExpensesArchiveUpsertWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesArchiveUpsertWithWhereUniqueWithoutAttachment_recordInput[] + createMany?: Prisma.ExpensesArchiveCreateManyAttachment_recordInputEnvelope + set?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + disconnect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + delete?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + connect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + update?: Prisma.ExpensesArchiveUpdateWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesArchiveUpdateWithWhereUniqueWithoutAttachment_recordInput[] + updateMany?: Prisma.ExpensesArchiveUpdateManyWithWhereWithoutAttachment_recordInput | Prisma.ExpensesArchiveUpdateManyWithWhereWithoutAttachment_recordInput[] + deleteMany?: Prisma.ExpensesArchiveScalarWhereInput | Prisma.ExpensesArchiveScalarWhereInput[] +} + +export type ExpensesArchiveUncheckedUpdateManyWithoutAttachment_recordNestedInput = { + create?: Prisma.XOR | Prisma.ExpensesArchiveCreateWithoutAttachment_recordInput[] | Prisma.ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput[] + connectOrCreate?: Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput[] + upsert?: Prisma.ExpensesArchiveUpsertWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesArchiveUpsertWithWhereUniqueWithoutAttachment_recordInput[] + createMany?: Prisma.ExpensesArchiveCreateManyAttachment_recordInputEnvelope + set?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + disconnect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + delete?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + connect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[] + update?: Prisma.ExpensesArchiveUpdateWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesArchiveUpdateWithWhereUniqueWithoutAttachment_recordInput[] + updateMany?: Prisma.ExpensesArchiveUpdateManyWithWhereWithoutAttachment_recordInput | Prisma.ExpensesArchiveUpdateManyWithWhereWithoutAttachment_recordInput[] + deleteMany?: Prisma.ExpensesArchiveScalarWhereInput | Prisma.ExpensesArchiveScalarWhereInput[] +} + +export type ExpensesArchiveCreateWithoutExpenseInput = { + timesheet_id: number + archived_at?: Date | string + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved: boolean + supervisor_comment?: string | null + bank_code_id: number + comment?: string | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpenses_archiveInput +} + +export type ExpensesArchiveUncheckedCreateWithoutExpenseInput = { + id?: number + timesheet_id: number + archived_at?: Date | string + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved: boolean + supervisor_comment?: string | null + bank_code_id: number + comment?: string | null + attachment?: number | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesArchiveCreateOrConnectWithoutExpenseInput = { + where: Prisma.ExpensesArchiveWhereUniqueInput + create: Prisma.XOR +} + +export type ExpensesArchiveCreateManyExpenseInputEnvelope = { + data: Prisma.ExpensesArchiveCreateManyExpenseInput | Prisma.ExpensesArchiveCreateManyExpenseInput[] + skipDuplicates?: boolean +} + +export type ExpensesArchiveUpsertWithWhereUniqueWithoutExpenseInput = { + where: Prisma.ExpensesArchiveWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ExpensesArchiveUpdateWithWhereUniqueWithoutExpenseInput = { + where: Prisma.ExpensesArchiveWhereUniqueInput + data: Prisma.XOR +} + +export type ExpensesArchiveUpdateManyWithWhereWithoutExpenseInput = { + where: Prisma.ExpensesArchiveScalarWhereInput + data: Prisma.XOR +} + +export type ExpensesArchiveScalarWhereInput = { + AND?: Prisma.ExpensesArchiveScalarWhereInput | Prisma.ExpensesArchiveScalarWhereInput[] + OR?: Prisma.ExpensesArchiveScalarWhereInput[] + NOT?: Prisma.ExpensesArchiveScalarWhereInput | Prisma.ExpensesArchiveScalarWhereInput[] + id?: Prisma.IntFilter<"ExpensesArchive"> | number + expense_id?: Prisma.IntFilter<"ExpensesArchive"> | number + timesheet_id?: Prisma.IntFilter<"ExpensesArchive"> | number + archived_at?: Prisma.DateTimeFilter<"ExpensesArchive"> | Date | string + date?: Prisma.DateTimeFilter<"ExpensesArchive"> | Date | string + amount?: Prisma.DecimalNullableFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFilter<"ExpensesArchive"> | boolean + supervisor_comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null + bank_code_id?: Prisma.IntFilter<"ExpensesArchive"> | number + comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null + attachment?: Prisma.IntNullableFilter<"ExpensesArchive"> | number | null + mileage?: Prisma.DecimalNullableFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesArchiveCreateWithoutAttachment_recordInput = { + timesheet_id: number + archived_at?: Date | string + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved: boolean + supervisor_comment?: string | null + bank_code_id: number + comment?: string | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + expense: Prisma.ExpensesCreateNestedOneWithoutArchiveInput +} + +export type ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput = { + id?: number + expense_id: number + timesheet_id: number + archived_at?: Date | string + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved: boolean + supervisor_comment?: string | null + bank_code_id: number + comment?: string | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput = { + where: Prisma.ExpensesArchiveWhereUniqueInput + create: Prisma.XOR +} + +export type ExpensesArchiveCreateManyAttachment_recordInputEnvelope = { + data: Prisma.ExpensesArchiveCreateManyAttachment_recordInput | Prisma.ExpensesArchiveCreateManyAttachment_recordInput[] + skipDuplicates?: boolean +} + +export type ExpensesArchiveUpsertWithWhereUniqueWithoutAttachment_recordInput = { + where: Prisma.ExpensesArchiveWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ExpensesArchiveUpdateWithWhereUniqueWithoutAttachment_recordInput = { + where: Prisma.ExpensesArchiveWhereUniqueInput + data: Prisma.XOR +} + +export type ExpensesArchiveUpdateManyWithWhereWithoutAttachment_recordInput = { + where: Prisma.ExpensesArchiveScalarWhereInput + data: Prisma.XOR +} + +export type ExpensesArchiveCreateManyExpenseInput = { + id?: number + timesheet_id: number + archived_at?: Date | string + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved: boolean + supervisor_comment?: string | null + bank_code_id: number + comment?: string | null + attachment?: number | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesArchiveUpdateWithoutExpenseInput = { + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpenses_archiveNestedInput +} + +export type ExpensesArchiveUncheckedUpdateWithoutExpenseInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesArchiveUncheckedUpdateManyWithoutExpenseInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesArchiveCreateManyAttachment_recordInput = { + id?: number + expense_id: number + timesheet_id: number + archived_at?: Date | string + date: Date | string + amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved: boolean + supervisor_comment?: string | null + bank_code_id: number + comment?: string | null + mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesArchiveUpdateWithoutAttachment_recordInput = { + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + expense?: Prisma.ExpensesUpdateOneRequiredWithoutArchiveNestedInput +} + +export type ExpensesArchiveUncheckedUpdateWithoutAttachment_recordInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + expense_id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type ExpensesArchiveUncheckedUpdateManyWithoutAttachment_recordInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + expense_id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + + + +export type ExpensesArchiveSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + expense_id?: boolean + timesheet_id?: boolean + archived_at?: boolean + date?: boolean + amount?: boolean + is_approved?: boolean + supervisor_comment?: boolean + bank_code_id?: boolean + comment?: boolean + attachment?: boolean + mileage?: boolean + attachment_record?: boolean | Prisma.ExpensesArchive$attachment_recordArgs + expense?: boolean | Prisma.ExpensesDefaultArgs +}, ExtArgs["result"]["expensesArchive"]> + +export type ExpensesArchiveSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + expense_id?: boolean + timesheet_id?: boolean + archived_at?: boolean + date?: boolean + amount?: boolean + is_approved?: boolean + supervisor_comment?: boolean + bank_code_id?: boolean + comment?: boolean + attachment?: boolean + mileage?: boolean + attachment_record?: boolean | Prisma.ExpensesArchive$attachment_recordArgs + expense?: boolean | Prisma.ExpensesDefaultArgs +}, ExtArgs["result"]["expensesArchive"]> + +export type ExpensesArchiveSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + expense_id?: boolean + timesheet_id?: boolean + archived_at?: boolean + date?: boolean + amount?: boolean + is_approved?: boolean + supervisor_comment?: boolean + bank_code_id?: boolean + comment?: boolean + attachment?: boolean + mileage?: boolean + attachment_record?: boolean | Prisma.ExpensesArchive$attachment_recordArgs + expense?: boolean | Prisma.ExpensesDefaultArgs +}, ExtArgs["result"]["expensesArchive"]> + +export type ExpensesArchiveSelectScalar = { + id?: boolean + expense_id?: boolean + timesheet_id?: boolean + archived_at?: boolean + date?: boolean + amount?: boolean + is_approved?: boolean + supervisor_comment?: boolean + bank_code_id?: boolean + comment?: boolean + attachment?: boolean + mileage?: boolean +} + +export type ExpensesArchiveOmit = runtime.Types.Extensions.GetOmit<"id" | "expense_id" | "timesheet_id" | "archived_at" | "date" | "amount" | "is_approved" | "supervisor_comment" | "bank_code_id" | "comment" | "attachment" | "mileage", ExtArgs["result"]["expensesArchive"]> +export type ExpensesArchiveInclude = { + attachment_record?: boolean | Prisma.ExpensesArchive$attachment_recordArgs + expense?: boolean | Prisma.ExpensesDefaultArgs +} +export type ExpensesArchiveIncludeCreateManyAndReturn = { + attachment_record?: boolean | Prisma.ExpensesArchive$attachment_recordArgs + expense?: boolean | Prisma.ExpensesDefaultArgs +} +export type ExpensesArchiveIncludeUpdateManyAndReturn = { + attachment_record?: boolean | Prisma.ExpensesArchive$attachment_recordArgs + expense?: boolean | Prisma.ExpensesDefaultArgs +} + +export type $ExpensesArchivePayload = { + name: "ExpensesArchive" + objects: { + attachment_record: Prisma.$AttachmentsPayload | null + expense: Prisma.$ExpensesPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + expense_id: number + timesheet_id: number + archived_at: Date + date: Date + amount: runtime.Decimal | null + is_approved: boolean + supervisor_comment: string | null + bank_code_id: number + comment: string | null + attachment: number | null + mileage: runtime.Decimal | null + }, ExtArgs["result"]["expensesArchive"]> + composites: {} +} + +export type ExpensesArchiveGetPayload = runtime.Types.Result.GetResult + +export type ExpensesArchiveCountArgs = + Omit & { + select?: ExpensesArchiveCountAggregateInputType | true + } + +export interface ExpensesArchiveDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ExpensesArchive'], meta: { name: 'ExpensesArchive' } } + /** + * Find zero or one ExpensesArchive that matches the filter. + * @param {ExpensesArchiveFindUniqueArgs} args - Arguments to find a ExpensesArchive + * @example + * // Get one ExpensesArchive + * const expensesArchive = await prisma.expensesArchive.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesArchiveClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one ExpensesArchive that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ExpensesArchiveFindUniqueOrThrowArgs} args - Arguments to find a ExpensesArchive + * @example + * // Get one ExpensesArchive + * const expensesArchive = await prisma.expensesArchive.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesArchiveClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first ExpensesArchive 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 {ExpensesArchiveFindFirstArgs} args - Arguments to find a ExpensesArchive + * @example + * // Get one ExpensesArchive + * const expensesArchive = await prisma.expensesArchive.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ExpensesArchiveClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first ExpensesArchive 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 {ExpensesArchiveFindFirstOrThrowArgs} args - Arguments to find a ExpensesArchive + * @example + * // Get one ExpensesArchive + * const expensesArchive = await prisma.expensesArchive.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ExpensesArchiveClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more ExpensesArchives 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 {ExpensesArchiveFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all ExpensesArchives + * const expensesArchives = await prisma.expensesArchive.findMany() + * + * // Get first 10 ExpensesArchives + * const expensesArchives = await prisma.expensesArchive.findMany({ take: 10 }) + * + * // Only select the `id` + * const expensesArchiveWithIdOnly = await prisma.expensesArchive.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a ExpensesArchive. + * @param {ExpensesArchiveCreateArgs} args - Arguments to create a ExpensesArchive. + * @example + * // Create one ExpensesArchive + * const ExpensesArchive = await prisma.expensesArchive.create({ + * data: { + * // ... data to create a ExpensesArchive + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesArchiveClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many ExpensesArchives. + * @param {ExpensesArchiveCreateManyArgs} args - Arguments to create many ExpensesArchives. + * @example + * // Create many ExpensesArchives + * const expensesArchive = await prisma.expensesArchive.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many ExpensesArchives and returns the data saved in the database. + * @param {ExpensesArchiveCreateManyAndReturnArgs} args - Arguments to create many ExpensesArchives. + * @example + * // Create many ExpensesArchives + * const expensesArchive = await prisma.expensesArchive.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many ExpensesArchives and only return the `id` + * const expensesArchiveWithIdOnly = await prisma.expensesArchive.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 ExpensesArchive. + * @param {ExpensesArchiveDeleteArgs} args - Arguments to delete one ExpensesArchive. + * @example + * // Delete one ExpensesArchive + * const ExpensesArchive = await prisma.expensesArchive.delete({ + * where: { + * // ... filter to delete one ExpensesArchive + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesArchiveClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one ExpensesArchive. + * @param {ExpensesArchiveUpdateArgs} args - Arguments to update one ExpensesArchive. + * @example + * // Update one ExpensesArchive + * const expensesArchive = await prisma.expensesArchive.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesArchiveClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more ExpensesArchives. + * @param {ExpensesArchiveDeleteManyArgs} args - Arguments to filter ExpensesArchives to delete. + * @example + * // Delete a few ExpensesArchives + * const { count } = await prisma.expensesArchive.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more ExpensesArchives. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpensesArchiveUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many ExpensesArchives + * const expensesArchive = await prisma.expensesArchive.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more ExpensesArchives and returns the data updated in the database. + * @param {ExpensesArchiveUpdateManyAndReturnArgs} args - Arguments to update many ExpensesArchives. + * @example + * // Update many ExpensesArchives + * const expensesArchive = await prisma.expensesArchive.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more ExpensesArchives and only return the `id` + * const expensesArchiveWithIdOnly = await prisma.expensesArchive.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 ExpensesArchive. + * @param {ExpensesArchiveUpsertArgs} args - Arguments to update or create a ExpensesArchive. + * @example + * // Update or create a ExpensesArchive + * const expensesArchive = await prisma.expensesArchive.upsert({ + * create: { + * // ... data to create a ExpensesArchive + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the ExpensesArchive we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesArchiveClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of ExpensesArchives. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpensesArchiveCountArgs} args - Arguments to filter ExpensesArchives to count. + * @example + * // Count the number of ExpensesArchives + * const count = await prisma.expensesArchive.count({ + * where: { + * // ... the filter for the ExpensesArchives 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 ExpensesArchive. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpensesArchiveAggregateArgs} 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 ExpensesArchive. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ExpensesArchiveGroupByArgs} 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 ExpensesArchiveGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ExpensesArchiveGroupByArgs['orderBy'] } + : { orderBy?: ExpensesArchiveGroupByArgs['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 ? GetExpensesArchiveGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ExpensesArchive model + */ +readonly fields: ExpensesArchiveFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ExpensesArchive. + * 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__ExpensesArchiveClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + attachment_record = {}>(args?: Prisma.Subset>): Prisma.Prisma__AttachmentsClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + expense = {}>(args?: Prisma.Subset>): Prisma.Prisma__ExpensesClient, 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 ExpensesArchive model + */ +export interface ExpensesArchiveFieldRefs { + readonly id: Prisma.FieldRef<"ExpensesArchive", 'Int'> + readonly expense_id: Prisma.FieldRef<"ExpensesArchive", 'Int'> + readonly timesheet_id: Prisma.FieldRef<"ExpensesArchive", 'Int'> + readonly archived_at: Prisma.FieldRef<"ExpensesArchive", 'DateTime'> + readonly date: Prisma.FieldRef<"ExpensesArchive", 'DateTime'> + readonly amount: Prisma.FieldRef<"ExpensesArchive", 'Decimal'> + readonly is_approved: Prisma.FieldRef<"ExpensesArchive", 'Boolean'> + readonly supervisor_comment: Prisma.FieldRef<"ExpensesArchive", 'String'> + readonly bank_code_id: Prisma.FieldRef<"ExpensesArchive", 'Int'> + readonly comment: Prisma.FieldRef<"ExpensesArchive", 'String'> + readonly attachment: Prisma.FieldRef<"ExpensesArchive", 'Int'> + readonly mileage: Prisma.FieldRef<"ExpensesArchive", 'Decimal'> +} + + +// Custom InputTypes +/** + * ExpensesArchive findUnique + */ +export type ExpensesArchiveFindUniqueArgs = { + /** + * Select specific fields to fetch from the ExpensesArchive + */ + select?: Prisma.ExpensesArchiveSelect | null + /** + * Omit specific fields from the ExpensesArchive + */ + omit?: Prisma.ExpensesArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesArchiveInclude | null + /** + * Filter, which ExpensesArchive to fetch. + */ + where: Prisma.ExpensesArchiveWhereUniqueInput +} + +/** + * ExpensesArchive findUniqueOrThrow + */ +export type ExpensesArchiveFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ExpensesArchive + */ + select?: Prisma.ExpensesArchiveSelect | null + /** + * Omit specific fields from the ExpensesArchive + */ + omit?: Prisma.ExpensesArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesArchiveInclude | null + /** + * Filter, which ExpensesArchive to fetch. + */ + where: Prisma.ExpensesArchiveWhereUniqueInput +} + +/** + * ExpensesArchive findFirst + */ +export type ExpensesArchiveFindFirstArgs = { + /** + * Select specific fields to fetch from the ExpensesArchive + */ + select?: Prisma.ExpensesArchiveSelect | null + /** + * Omit specific fields from the ExpensesArchive + */ + omit?: Prisma.ExpensesArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesArchiveInclude | null + /** + * Filter, which ExpensesArchive to fetch. + */ + where?: Prisma.ExpensesArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExpensesArchives to fetch. + */ + orderBy?: Prisma.ExpensesArchiveOrderByWithRelationInput | Prisma.ExpensesArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ExpensesArchives. + */ + cursor?: Prisma.ExpensesArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ExpensesArchives 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` ExpensesArchives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ExpensesArchives. + */ + distinct?: Prisma.ExpensesArchiveScalarFieldEnum | Prisma.ExpensesArchiveScalarFieldEnum[] +} + +/** + * ExpensesArchive findFirstOrThrow + */ +export type ExpensesArchiveFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ExpensesArchive + */ + select?: Prisma.ExpensesArchiveSelect | null + /** + * Omit specific fields from the ExpensesArchive + */ + omit?: Prisma.ExpensesArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesArchiveInclude | null + /** + * Filter, which ExpensesArchive to fetch. + */ + where?: Prisma.ExpensesArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExpensesArchives to fetch. + */ + orderBy?: Prisma.ExpensesArchiveOrderByWithRelationInput | Prisma.ExpensesArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ExpensesArchives. + */ + cursor?: Prisma.ExpensesArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ExpensesArchives 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` ExpensesArchives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ExpensesArchives. + */ + distinct?: Prisma.ExpensesArchiveScalarFieldEnum | Prisma.ExpensesArchiveScalarFieldEnum[] +} + +/** + * ExpensesArchive findMany + */ +export type ExpensesArchiveFindManyArgs = { + /** + * Select specific fields to fetch from the ExpensesArchive + */ + select?: Prisma.ExpensesArchiveSelect | null + /** + * Omit specific fields from the ExpensesArchive + */ + omit?: Prisma.ExpensesArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesArchiveInclude | null + /** + * Filter, which ExpensesArchives to fetch. + */ + where?: Prisma.ExpensesArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ExpensesArchives to fetch. + */ + orderBy?: Prisma.ExpensesArchiveOrderByWithRelationInput | Prisma.ExpensesArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ExpensesArchives. + */ + cursor?: Prisma.ExpensesArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ExpensesArchives 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` ExpensesArchives. + */ + skip?: number + distinct?: Prisma.ExpensesArchiveScalarFieldEnum | Prisma.ExpensesArchiveScalarFieldEnum[] +} + +/** + * ExpensesArchive create + */ +export type ExpensesArchiveCreateArgs = { + /** + * Select specific fields to fetch from the ExpensesArchive + */ + select?: Prisma.ExpensesArchiveSelect | null + /** + * Omit specific fields from the ExpensesArchive + */ + omit?: Prisma.ExpensesArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesArchiveInclude | null + /** + * The data needed to create a ExpensesArchive. + */ + data: Prisma.XOR +} + +/** + * ExpensesArchive createMany + */ +export type ExpensesArchiveCreateManyArgs = { + /** + * The data used to create many ExpensesArchives. + */ + data: Prisma.ExpensesArchiveCreateManyInput | Prisma.ExpensesArchiveCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ExpensesArchive createManyAndReturn + */ +export type ExpensesArchiveCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the ExpensesArchive + */ + select?: Prisma.ExpensesArchiveSelectCreateManyAndReturn | null + /** + * Omit specific fields from the ExpensesArchive + */ + omit?: Prisma.ExpensesArchiveOmit | null + /** + * The data used to create many ExpensesArchives. + */ + data: Prisma.ExpensesArchiveCreateManyInput | Prisma.ExpensesArchiveCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesArchiveIncludeCreateManyAndReturn | null +} + +/** + * ExpensesArchive update + */ +export type ExpensesArchiveUpdateArgs = { + /** + * Select specific fields to fetch from the ExpensesArchive + */ + select?: Prisma.ExpensesArchiveSelect | null + /** + * Omit specific fields from the ExpensesArchive + */ + omit?: Prisma.ExpensesArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesArchiveInclude | null + /** + * The data needed to update a ExpensesArchive. + */ + data: Prisma.XOR + /** + * Choose, which ExpensesArchive to update. + */ + where: Prisma.ExpensesArchiveWhereUniqueInput +} + +/** + * ExpensesArchive updateMany + */ +export type ExpensesArchiveUpdateManyArgs = { + /** + * The data used to update ExpensesArchives. + */ + data: Prisma.XOR + /** + * Filter which ExpensesArchives to update + */ + where?: Prisma.ExpensesArchiveWhereInput + /** + * Limit how many ExpensesArchives to update. + */ + limit?: number +} + +/** + * ExpensesArchive updateManyAndReturn + */ +export type ExpensesArchiveUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the ExpensesArchive + */ + select?: Prisma.ExpensesArchiveSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the ExpensesArchive + */ + omit?: Prisma.ExpensesArchiveOmit | null + /** + * The data used to update ExpensesArchives. + */ + data: Prisma.XOR + /** + * Filter which ExpensesArchives to update + */ + where?: Prisma.ExpensesArchiveWhereInput + /** + * Limit how many ExpensesArchives to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesArchiveIncludeUpdateManyAndReturn | null +} + +/** + * ExpensesArchive upsert + */ +export type ExpensesArchiveUpsertArgs = { + /** + * Select specific fields to fetch from the ExpensesArchive + */ + select?: Prisma.ExpensesArchiveSelect | null + /** + * Omit specific fields from the ExpensesArchive + */ + omit?: Prisma.ExpensesArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesArchiveInclude | null + /** + * The filter to search for the ExpensesArchive to update in case it exists. + */ + where: Prisma.ExpensesArchiveWhereUniqueInput + /** + * In case the ExpensesArchive found by the `where` argument doesn't exist, create a new ExpensesArchive with this data. + */ + create: Prisma.XOR + /** + * In case the ExpensesArchive was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ExpensesArchive delete + */ +export type ExpensesArchiveDeleteArgs = { + /** + * Select specific fields to fetch from the ExpensesArchive + */ + select?: Prisma.ExpensesArchiveSelect | null + /** + * Omit specific fields from the ExpensesArchive + */ + omit?: Prisma.ExpensesArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesArchiveInclude | null + /** + * Filter which ExpensesArchive to delete. + */ + where: Prisma.ExpensesArchiveWhereUniqueInput +} + +/** + * ExpensesArchive deleteMany + */ +export type ExpensesArchiveDeleteManyArgs = { + /** + * Filter which ExpensesArchives to delete + */ + where?: Prisma.ExpensesArchiveWhereInput + /** + * Limit how many ExpensesArchives to delete. + */ + limit?: number +} + +/** + * ExpensesArchive.attachment_record + */ +export type ExpensesArchive$attachment_recordArgs = { + /** + * Select specific fields to fetch from the Attachments + */ + select?: Prisma.AttachmentsSelect | null + /** + * Omit specific fields from the Attachments + */ + omit?: Prisma.AttachmentsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.AttachmentsInclude | null + where?: Prisma.AttachmentsWhereInput +} + +/** + * ExpensesArchive without action + */ +export type ExpensesArchiveDefaultArgs = { + /** + * Select specific fields to fetch from the ExpensesArchive + */ + select?: Prisma.ExpensesArchiveSelect | null + /** + * Omit specific fields from the ExpensesArchive + */ + omit?: Prisma.ExpensesArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesArchiveInclude | null +} diff --git a/prisma/generated/postgres/models/LeaveRequests.ts b/prisma/generated/postgres/models/LeaveRequests.ts new file mode 100644 index 0000000..200efce --- /dev/null +++ b/prisma/generated/postgres/models/LeaveRequests.ts @@ -0,0 +1,1838 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `LeaveRequests` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model LeaveRequests + * + */ +export type LeaveRequestsModel = runtime.Types.Result.DefaultSelection + +export type AggregateLeaveRequests = { + _count: LeaveRequestsCountAggregateOutputType | null + _avg: LeaveRequestsAvgAggregateOutputType | null + _sum: LeaveRequestsSumAggregateOutputType | null + _min: LeaveRequestsMinAggregateOutputType | null + _max: LeaveRequestsMaxAggregateOutputType | null +} + +export type LeaveRequestsAvgAggregateOutputType = { + id: number | null + employee_id: number | null + bank_code_id: number | null + payable_hours: runtime.Decimal | null + requested_hours: runtime.Decimal | null +} + +export type LeaveRequestsSumAggregateOutputType = { + id: number | null + employee_id: number | null + bank_code_id: number | null + payable_hours: runtime.Decimal | null + requested_hours: runtime.Decimal | null +} + +export type LeaveRequestsMinAggregateOutputType = { + id: number | null + employee_id: number | null + leave_type: $Enums.LeaveTypes | null + comment: string | null + approval_status: $Enums.LeaveApprovalStatus | null + bank_code_id: number | null + payable_hours: runtime.Decimal | null + requested_hours: runtime.Decimal | null +} + +export type LeaveRequestsMaxAggregateOutputType = { + id: number | null + employee_id: number | null + leave_type: $Enums.LeaveTypes | null + comment: string | null + approval_status: $Enums.LeaveApprovalStatus | null + bank_code_id: number | null + payable_hours: runtime.Decimal | null + requested_hours: runtime.Decimal | null +} + +export type LeaveRequestsCountAggregateOutputType = { + id: number + employee_id: number + leave_type: number + comment: number + approval_status: number + bank_code_id: number + payable_hours: number + requested_hours: number + dates: number + _all: number +} + + +export type LeaveRequestsAvgAggregateInputType = { + id?: true + employee_id?: true + bank_code_id?: true + payable_hours?: true + requested_hours?: true +} + +export type LeaveRequestsSumAggregateInputType = { + id?: true + employee_id?: true + bank_code_id?: true + payable_hours?: true + requested_hours?: true +} + +export type LeaveRequestsMinAggregateInputType = { + id?: true + employee_id?: true + leave_type?: true + comment?: true + approval_status?: true + bank_code_id?: true + payable_hours?: true + requested_hours?: true +} + +export type LeaveRequestsMaxAggregateInputType = { + id?: true + employee_id?: true + leave_type?: true + comment?: true + approval_status?: true + bank_code_id?: true + payable_hours?: true + requested_hours?: true +} + +export type LeaveRequestsCountAggregateInputType = { + id?: true + employee_id?: true + leave_type?: true + comment?: true + approval_status?: true + bank_code_id?: true + payable_hours?: true + requested_hours?: true + dates?: true + _all?: true +} + +export type LeaveRequestsAggregateArgs = { + /** + * Filter which LeaveRequests to aggregate. + */ + where?: Prisma.LeaveRequestsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of LeaveRequests to fetch. + */ + orderBy?: Prisma.LeaveRequestsOrderByWithRelationInput | Prisma.LeaveRequestsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.LeaveRequestsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` LeaveRequests 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` LeaveRequests. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned LeaveRequests + **/ + _count?: true | LeaveRequestsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: LeaveRequestsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: LeaveRequestsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: LeaveRequestsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: LeaveRequestsMaxAggregateInputType +} + +export type GetLeaveRequestsAggregateType = { + [P in keyof T & keyof AggregateLeaveRequests]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type LeaveRequestsGroupByArgs = { + where?: Prisma.LeaveRequestsWhereInput + orderBy?: Prisma.LeaveRequestsOrderByWithAggregationInput | Prisma.LeaveRequestsOrderByWithAggregationInput[] + by: Prisma.LeaveRequestsScalarFieldEnum[] | Prisma.LeaveRequestsScalarFieldEnum + having?: Prisma.LeaveRequestsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: LeaveRequestsCountAggregateInputType | true + _avg?: LeaveRequestsAvgAggregateInputType + _sum?: LeaveRequestsSumAggregateInputType + _min?: LeaveRequestsMinAggregateInputType + _max?: LeaveRequestsMaxAggregateInputType +} + +export type LeaveRequestsGroupByOutputType = { + id: number + employee_id: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status: $Enums.LeaveApprovalStatus + bank_code_id: number + payable_hours: runtime.Decimal | null + requested_hours: runtime.Decimal | null + dates: Date[] + _count: LeaveRequestsCountAggregateOutputType | null + _avg: LeaveRequestsAvgAggregateOutputType | null + _sum: LeaveRequestsSumAggregateOutputType | null + _min: LeaveRequestsMinAggregateOutputType | null + _max: LeaveRequestsMaxAggregateOutputType | null +} + +type GetLeaveRequestsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof LeaveRequestsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type LeaveRequestsWhereInput = { + AND?: Prisma.LeaveRequestsWhereInput | Prisma.LeaveRequestsWhereInput[] + OR?: Prisma.LeaveRequestsWhereInput[] + NOT?: Prisma.LeaveRequestsWhereInput | Prisma.LeaveRequestsWhereInput[] + id?: Prisma.IntFilter<"LeaveRequests"> | number + employee_id?: Prisma.IntFilter<"LeaveRequests"> | number + leave_type?: Prisma.EnumLeaveTypesFilter<"LeaveRequests"> | $Enums.LeaveTypes + comment?: Prisma.StringFilter<"LeaveRequests"> | string + approval_status?: Prisma.EnumLeaveApprovalStatusFilter<"LeaveRequests"> | $Enums.LeaveApprovalStatus + bank_code_id?: Prisma.IntFilter<"LeaveRequests"> | number + payable_hours?: Prisma.DecimalNullableFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.DecimalNullableFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.DateTimeNullableListFilter<"LeaveRequests"> + bank_code?: Prisma.XOR + employee?: Prisma.XOR + archive?: Prisma.XOR | null +} + +export type LeaveRequestsOrderByWithRelationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + leave_type?: Prisma.SortOrder + comment?: Prisma.SortOrder + approval_status?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + payable_hours?: Prisma.SortOrderInput | Prisma.SortOrder + requested_hours?: Prisma.SortOrderInput | Prisma.SortOrder + dates?: Prisma.SortOrder + bank_code?: Prisma.BankCodesOrderByWithRelationInput + employee?: Prisma.EmployeesOrderByWithRelationInput + archive?: Prisma.LeaveRequestsArchiveOrderByWithRelationInput +} + +export type LeaveRequestsWhereUniqueInput = Prisma.AtLeast<{ + id?: number + leave_per_employee_date?: Prisma.LeaveRequestsLeave_per_employee_dateCompoundUniqueInput + AND?: Prisma.LeaveRequestsWhereInput | Prisma.LeaveRequestsWhereInput[] + OR?: Prisma.LeaveRequestsWhereInput[] + NOT?: Prisma.LeaveRequestsWhereInput | Prisma.LeaveRequestsWhereInput[] + employee_id?: Prisma.IntFilter<"LeaveRequests"> | number + leave_type?: Prisma.EnumLeaveTypesFilter<"LeaveRequests"> | $Enums.LeaveTypes + comment?: Prisma.StringFilter<"LeaveRequests"> | string + approval_status?: Prisma.EnumLeaveApprovalStatusFilter<"LeaveRequests"> | $Enums.LeaveApprovalStatus + bank_code_id?: Prisma.IntFilter<"LeaveRequests"> | number + payable_hours?: Prisma.DecimalNullableFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.DecimalNullableFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.DateTimeNullableListFilter<"LeaveRequests"> + bank_code?: Prisma.XOR + employee?: Prisma.XOR + archive?: Prisma.XOR | null +}, "id" | "leave_per_employee_date"> + +export type LeaveRequestsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + leave_type?: Prisma.SortOrder + comment?: Prisma.SortOrder + approval_status?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + payable_hours?: Prisma.SortOrderInput | Prisma.SortOrder + requested_hours?: Prisma.SortOrderInput | Prisma.SortOrder + dates?: Prisma.SortOrder + _count?: Prisma.LeaveRequestsCountOrderByAggregateInput + _avg?: Prisma.LeaveRequestsAvgOrderByAggregateInput + _max?: Prisma.LeaveRequestsMaxOrderByAggregateInput + _min?: Prisma.LeaveRequestsMinOrderByAggregateInput + _sum?: Prisma.LeaveRequestsSumOrderByAggregateInput +} + +export type LeaveRequestsScalarWhereWithAggregatesInput = { + AND?: Prisma.LeaveRequestsScalarWhereWithAggregatesInput | Prisma.LeaveRequestsScalarWhereWithAggregatesInput[] + OR?: Prisma.LeaveRequestsScalarWhereWithAggregatesInput[] + NOT?: Prisma.LeaveRequestsScalarWhereWithAggregatesInput | Prisma.LeaveRequestsScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"LeaveRequests"> | number + employee_id?: Prisma.IntWithAggregatesFilter<"LeaveRequests"> | number + leave_type?: Prisma.EnumLeaveTypesWithAggregatesFilter<"LeaveRequests"> | $Enums.LeaveTypes + comment?: Prisma.StringWithAggregatesFilter<"LeaveRequests"> | string + approval_status?: Prisma.EnumLeaveApprovalStatusWithAggregatesFilter<"LeaveRequests"> | $Enums.LeaveApprovalStatus + bank_code_id?: Prisma.IntWithAggregatesFilter<"LeaveRequests"> | number + payable_hours?: Prisma.DecimalNullableWithAggregatesFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.DecimalNullableWithAggregatesFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.DateTimeNullableListFilter<"LeaveRequests"> +} + +export type LeaveRequestsCreateInput = { + leave_type: $Enums.LeaveTypes + comment: string + approval_status?: $Enums.LeaveApprovalStatus + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] + bank_code: Prisma.BankCodesCreateNestedOneWithoutLeaveRequestsInput + employee: Prisma.EmployeesCreateNestedOneWithoutLeave_requestInput + archive?: Prisma.LeaveRequestsArchiveCreateNestedOneWithoutLeave_requestInput +} + +export type LeaveRequestsUncheckedCreateInput = { + id?: number + employee_id: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status?: $Enums.LeaveApprovalStatus + bank_code_id: number + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] + archive?: Prisma.LeaveRequestsArchiveUncheckedCreateNestedOneWithoutLeave_requestInput +} + +export type LeaveRequestsUpdateInput = { + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] + bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutLeaveRequestsNestedInput + employee?: Prisma.EmployeesUpdateOneRequiredWithoutLeave_requestNestedInput + archive?: Prisma.LeaveRequestsArchiveUpdateOneWithoutLeave_requestNestedInput +} + +export type LeaveRequestsUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] + archive?: Prisma.LeaveRequestsArchiveUncheckedUpdateOneWithoutLeave_requestNestedInput +} + +export type LeaveRequestsCreateManyInput = { + id?: number + employee_id: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status?: $Enums.LeaveApprovalStatus + bank_code_id: number + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] +} + +export type LeaveRequestsUpdateManyMutationInput = { + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] +} + +export type LeaveRequestsUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] +} + +export type LeaveRequestsListRelationFilter = { + every?: Prisma.LeaveRequestsWhereInput + some?: Prisma.LeaveRequestsWhereInput + none?: Prisma.LeaveRequestsWhereInput +} + +export type LeaveRequestsOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type DateTimeNullableListFilter<$PrismaModel = never> = { + equals?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null + has?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null + hasEvery?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + hasSome?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + isEmpty?: boolean +} + +export type LeaveRequestsLeave_per_employee_dateCompoundUniqueInput = { + employee_id: number + leave_type: $Enums.LeaveTypes + dates: Date[] | string[] +} + +export type LeaveRequestsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + leave_type?: Prisma.SortOrder + comment?: Prisma.SortOrder + approval_status?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + payable_hours?: Prisma.SortOrder + requested_hours?: Prisma.SortOrder + dates?: Prisma.SortOrder +} + +export type LeaveRequestsAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + payable_hours?: Prisma.SortOrder + requested_hours?: Prisma.SortOrder +} + +export type LeaveRequestsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + leave_type?: Prisma.SortOrder + comment?: Prisma.SortOrder + approval_status?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + payable_hours?: Prisma.SortOrder + requested_hours?: Prisma.SortOrder +} + +export type LeaveRequestsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + leave_type?: Prisma.SortOrder + comment?: Prisma.SortOrder + approval_status?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + payable_hours?: Prisma.SortOrder + requested_hours?: Prisma.SortOrder +} + +export type LeaveRequestsSumOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + payable_hours?: Prisma.SortOrder + requested_hours?: Prisma.SortOrder +} + +export type LeaveRequestsScalarRelationFilter = { + is?: Prisma.LeaveRequestsWhereInput + isNot?: Prisma.LeaveRequestsWhereInput +} + +export type LeaveRequestsCreateNestedManyWithoutEmployeeInput = { + create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutEmployeeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutEmployeeInput[] + connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput | Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput[] + createMany?: Prisma.LeaveRequestsCreateManyEmployeeInputEnvelope + connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] +} + +export type LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput = { + create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutEmployeeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutEmployeeInput[] + connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput | Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput[] + createMany?: Prisma.LeaveRequestsCreateManyEmployeeInputEnvelope + connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] +} + +export type LeaveRequestsUpdateManyWithoutEmployeeNestedInput = { + create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutEmployeeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutEmployeeInput[] + connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput | Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput[] + upsert?: Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutEmployeeInput | Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutEmployeeInput[] + createMany?: Prisma.LeaveRequestsCreateManyEmployeeInputEnvelope + set?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + disconnect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + delete?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + update?: Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutEmployeeInput | Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutEmployeeInput[] + updateMany?: Prisma.LeaveRequestsUpdateManyWithWhereWithoutEmployeeInput | Prisma.LeaveRequestsUpdateManyWithWhereWithoutEmployeeInput[] + deleteMany?: Prisma.LeaveRequestsScalarWhereInput | Prisma.LeaveRequestsScalarWhereInput[] +} + +export type LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput = { + create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutEmployeeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutEmployeeInput[] + connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput | Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput[] + upsert?: Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutEmployeeInput | Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutEmployeeInput[] + createMany?: Prisma.LeaveRequestsCreateManyEmployeeInputEnvelope + set?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + disconnect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + delete?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + update?: Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutEmployeeInput | Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutEmployeeInput[] + updateMany?: Prisma.LeaveRequestsUpdateManyWithWhereWithoutEmployeeInput | Prisma.LeaveRequestsUpdateManyWithWhereWithoutEmployeeInput[] + deleteMany?: Prisma.LeaveRequestsScalarWhereInput | Prisma.LeaveRequestsScalarWhereInput[] +} + +export type LeaveRequestsCreatedatesInput = { + set: Date[] | string[] +} + +export type EnumLeaveTypesFieldUpdateOperationsInput = { + set?: $Enums.LeaveTypes +} + +export type EnumLeaveApprovalStatusFieldUpdateOperationsInput = { + set?: $Enums.LeaveApprovalStatus +} + +export type NullableDecimalFieldUpdateOperationsInput = { + set?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + increment?: runtime.Decimal | runtime.DecimalJsLike | number | string + decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string + multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string + divide?: runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type LeaveRequestsUpdatedatesInput = { + set?: Date[] | string[] + push?: Date | string | Date[] | string[] +} + +export type LeaveRequestsCreateNestedOneWithoutArchiveInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutArchiveInput + connect?: Prisma.LeaveRequestsWhereUniqueInput +} + +export type LeaveRequestsUpdateOneRequiredWithoutArchiveNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutArchiveInput + upsert?: Prisma.LeaveRequestsUpsertWithoutArchiveInput + connect?: Prisma.LeaveRequestsWhereUniqueInput + update?: Prisma.XOR, Prisma.LeaveRequestsUncheckedUpdateWithoutArchiveInput> +} + +export type LeaveRequestsCreateNestedManyWithoutBank_codeInput = { + create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutBank_codeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput | Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput[] + createMany?: Prisma.LeaveRequestsCreateManyBank_codeInputEnvelope + connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] +} + +export type LeaveRequestsUncheckedCreateNestedManyWithoutBank_codeInput = { + create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutBank_codeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput | Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput[] + createMany?: Prisma.LeaveRequestsCreateManyBank_codeInputEnvelope + connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] +} + +export type LeaveRequestsUpdateManyWithoutBank_codeNestedInput = { + create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutBank_codeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput | Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput[] + upsert?: Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutBank_codeInput[] + createMany?: Prisma.LeaveRequestsCreateManyBank_codeInputEnvelope + set?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + disconnect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + delete?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + update?: Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutBank_codeInput[] + updateMany?: Prisma.LeaveRequestsUpdateManyWithWhereWithoutBank_codeInput | Prisma.LeaveRequestsUpdateManyWithWhereWithoutBank_codeInput[] + deleteMany?: Prisma.LeaveRequestsScalarWhereInput | Prisma.LeaveRequestsScalarWhereInput[] +} + +export type LeaveRequestsUncheckedUpdateManyWithoutBank_codeNestedInput = { + create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutBank_codeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput | Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput[] + upsert?: Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutBank_codeInput[] + createMany?: Prisma.LeaveRequestsCreateManyBank_codeInputEnvelope + set?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + disconnect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + delete?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] + update?: Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutBank_codeInput[] + updateMany?: Prisma.LeaveRequestsUpdateManyWithWhereWithoutBank_codeInput | Prisma.LeaveRequestsUpdateManyWithWhereWithoutBank_codeInput[] + deleteMany?: Prisma.LeaveRequestsScalarWhereInput | Prisma.LeaveRequestsScalarWhereInput[] +} + +export type LeaveRequestsCreateWithoutEmployeeInput = { + leave_type: $Enums.LeaveTypes + comment: string + approval_status?: $Enums.LeaveApprovalStatus + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] + bank_code: Prisma.BankCodesCreateNestedOneWithoutLeaveRequestsInput + archive?: Prisma.LeaveRequestsArchiveCreateNestedOneWithoutLeave_requestInput +} + +export type LeaveRequestsUncheckedCreateWithoutEmployeeInput = { + id?: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status?: $Enums.LeaveApprovalStatus + bank_code_id: number + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] + archive?: Prisma.LeaveRequestsArchiveUncheckedCreateNestedOneWithoutLeave_requestInput +} + +export type LeaveRequestsCreateOrConnectWithoutEmployeeInput = { + where: Prisma.LeaveRequestsWhereUniqueInput + create: Prisma.XOR +} + +export type LeaveRequestsCreateManyEmployeeInputEnvelope = { + data: Prisma.LeaveRequestsCreateManyEmployeeInput | Prisma.LeaveRequestsCreateManyEmployeeInput[] + skipDuplicates?: boolean +} + +export type LeaveRequestsUpsertWithWhereUniqueWithoutEmployeeInput = { + where: Prisma.LeaveRequestsWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type LeaveRequestsUpdateWithWhereUniqueWithoutEmployeeInput = { + where: Prisma.LeaveRequestsWhereUniqueInput + data: Prisma.XOR +} + +export type LeaveRequestsUpdateManyWithWhereWithoutEmployeeInput = { + where: Prisma.LeaveRequestsScalarWhereInput + data: Prisma.XOR +} + +export type LeaveRequestsScalarWhereInput = { + AND?: Prisma.LeaveRequestsScalarWhereInput | Prisma.LeaveRequestsScalarWhereInput[] + OR?: Prisma.LeaveRequestsScalarWhereInput[] + NOT?: Prisma.LeaveRequestsScalarWhereInput | Prisma.LeaveRequestsScalarWhereInput[] + id?: Prisma.IntFilter<"LeaveRequests"> | number + employee_id?: Prisma.IntFilter<"LeaveRequests"> | number + leave_type?: Prisma.EnumLeaveTypesFilter<"LeaveRequests"> | $Enums.LeaveTypes + comment?: Prisma.StringFilter<"LeaveRequests"> | string + approval_status?: Prisma.EnumLeaveApprovalStatusFilter<"LeaveRequests"> | $Enums.LeaveApprovalStatus + bank_code_id?: Prisma.IntFilter<"LeaveRequests"> | number + payable_hours?: Prisma.DecimalNullableFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.DecimalNullableFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.DateTimeNullableListFilter<"LeaveRequests"> +} + +export type LeaveRequestsCreateWithoutArchiveInput = { + leave_type: $Enums.LeaveTypes + comment: string + approval_status?: $Enums.LeaveApprovalStatus + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] + bank_code: Prisma.BankCodesCreateNestedOneWithoutLeaveRequestsInput + employee: Prisma.EmployeesCreateNestedOneWithoutLeave_requestInput +} + +export type LeaveRequestsUncheckedCreateWithoutArchiveInput = { + id?: number + employee_id: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status?: $Enums.LeaveApprovalStatus + bank_code_id: number + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] +} + +export type LeaveRequestsCreateOrConnectWithoutArchiveInput = { + where: Prisma.LeaveRequestsWhereUniqueInput + create: Prisma.XOR +} + +export type LeaveRequestsUpsertWithoutArchiveInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.LeaveRequestsWhereInput +} + +export type LeaveRequestsUpdateToOneWithWhereWithoutArchiveInput = { + where?: Prisma.LeaveRequestsWhereInput + data: Prisma.XOR +} + +export type LeaveRequestsUpdateWithoutArchiveInput = { + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] + bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutLeaveRequestsNestedInput + employee?: Prisma.EmployeesUpdateOneRequiredWithoutLeave_requestNestedInput +} + +export type LeaveRequestsUncheckedUpdateWithoutArchiveInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] +} + +export type LeaveRequestsCreateWithoutBank_codeInput = { + leave_type: $Enums.LeaveTypes + comment: string + approval_status?: $Enums.LeaveApprovalStatus + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] + employee: Prisma.EmployeesCreateNestedOneWithoutLeave_requestInput + archive?: Prisma.LeaveRequestsArchiveCreateNestedOneWithoutLeave_requestInput +} + +export type LeaveRequestsUncheckedCreateWithoutBank_codeInput = { + id?: number + employee_id: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status?: $Enums.LeaveApprovalStatus + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] + archive?: Prisma.LeaveRequestsArchiveUncheckedCreateNestedOneWithoutLeave_requestInput +} + +export type LeaveRequestsCreateOrConnectWithoutBank_codeInput = { + where: Prisma.LeaveRequestsWhereUniqueInput + create: Prisma.XOR +} + +export type LeaveRequestsCreateManyBank_codeInputEnvelope = { + data: Prisma.LeaveRequestsCreateManyBank_codeInput | Prisma.LeaveRequestsCreateManyBank_codeInput[] + skipDuplicates?: boolean +} + +export type LeaveRequestsUpsertWithWhereUniqueWithoutBank_codeInput = { + where: Prisma.LeaveRequestsWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type LeaveRequestsUpdateWithWhereUniqueWithoutBank_codeInput = { + where: Prisma.LeaveRequestsWhereUniqueInput + data: Prisma.XOR +} + +export type LeaveRequestsUpdateManyWithWhereWithoutBank_codeInput = { + where: Prisma.LeaveRequestsScalarWhereInput + data: Prisma.XOR +} + +export type LeaveRequestsCreateManyEmployeeInput = { + id?: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status?: $Enums.LeaveApprovalStatus + bank_code_id: number + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] +} + +export type LeaveRequestsUpdateWithoutEmployeeInput = { + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] + bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutLeaveRequestsNestedInput + archive?: Prisma.LeaveRequestsArchiveUpdateOneWithoutLeave_requestNestedInput +} + +export type LeaveRequestsUncheckedUpdateWithoutEmployeeInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] + archive?: Prisma.LeaveRequestsArchiveUncheckedUpdateOneWithoutLeave_requestNestedInput +} + +export type LeaveRequestsUncheckedUpdateManyWithoutEmployeeInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] +} + +export type LeaveRequestsCreateManyBank_codeInput = { + id?: number + employee_id: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status?: $Enums.LeaveApprovalStatus + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] +} + +export type LeaveRequestsUpdateWithoutBank_codeInput = { + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] + employee?: Prisma.EmployeesUpdateOneRequiredWithoutLeave_requestNestedInput + archive?: Prisma.LeaveRequestsArchiveUpdateOneWithoutLeave_requestNestedInput +} + +export type LeaveRequestsUncheckedUpdateWithoutBank_codeInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] + archive?: Prisma.LeaveRequestsArchiveUncheckedUpdateOneWithoutLeave_requestNestedInput +} + +export type LeaveRequestsUncheckedUpdateManyWithoutBank_codeInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] +} + + + +export type LeaveRequestsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + leave_type?: boolean + comment?: boolean + approval_status?: boolean + bank_code_id?: boolean + payable_hours?: boolean + requested_hours?: boolean + dates?: boolean + bank_code?: boolean | Prisma.BankCodesDefaultArgs + employee?: boolean | Prisma.EmployeesDefaultArgs + archive?: boolean | Prisma.LeaveRequests$archiveArgs +}, ExtArgs["result"]["leaveRequests"]> + +export type LeaveRequestsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + leave_type?: boolean + comment?: boolean + approval_status?: boolean + bank_code_id?: boolean + payable_hours?: boolean + requested_hours?: boolean + dates?: boolean + bank_code?: boolean | Prisma.BankCodesDefaultArgs + employee?: boolean | Prisma.EmployeesDefaultArgs +}, ExtArgs["result"]["leaveRequests"]> + +export type LeaveRequestsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + leave_type?: boolean + comment?: boolean + approval_status?: boolean + bank_code_id?: boolean + payable_hours?: boolean + requested_hours?: boolean + dates?: boolean + bank_code?: boolean | Prisma.BankCodesDefaultArgs + employee?: boolean | Prisma.EmployeesDefaultArgs +}, ExtArgs["result"]["leaveRequests"]> + +export type LeaveRequestsSelectScalar = { + id?: boolean + employee_id?: boolean + leave_type?: boolean + comment?: boolean + approval_status?: boolean + bank_code_id?: boolean + payable_hours?: boolean + requested_hours?: boolean + dates?: boolean +} + +export type LeaveRequestsOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "leave_type" | "comment" | "approval_status" | "bank_code_id" | "payable_hours" | "requested_hours" | "dates", ExtArgs["result"]["leaveRequests"]> +export type LeaveRequestsInclude = { + bank_code?: boolean | Prisma.BankCodesDefaultArgs + employee?: boolean | Prisma.EmployeesDefaultArgs + archive?: boolean | Prisma.LeaveRequests$archiveArgs +} +export type LeaveRequestsIncludeCreateManyAndReturn = { + bank_code?: boolean | Prisma.BankCodesDefaultArgs + employee?: boolean | Prisma.EmployeesDefaultArgs +} +export type LeaveRequestsIncludeUpdateManyAndReturn = { + bank_code?: boolean | Prisma.BankCodesDefaultArgs + employee?: boolean | Prisma.EmployeesDefaultArgs +} + +export type $LeaveRequestsPayload = { + name: "LeaveRequests" + objects: { + bank_code: Prisma.$BankCodesPayload + employee: Prisma.$EmployeesPayload + archive: Prisma.$LeaveRequestsArchivePayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + employee_id: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status: $Enums.LeaveApprovalStatus + bank_code_id: number + payable_hours: runtime.Decimal | null + requested_hours: runtime.Decimal | null + dates: Date[] + }, ExtArgs["result"]["leaveRequests"]> + composites: {} +} + +export type LeaveRequestsGetPayload = runtime.Types.Result.GetResult + +export type LeaveRequestsCountArgs = + Omit & { + select?: LeaveRequestsCountAggregateInputType | true + } + +export interface LeaveRequestsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['LeaveRequests'], meta: { name: 'LeaveRequests' } } + /** + * Find zero or one LeaveRequests that matches the filter. + * @param {LeaveRequestsFindUniqueArgs} args - Arguments to find a LeaveRequests + * @example + * // Get one LeaveRequests + * const leaveRequests = await prisma.leaveRequests.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one LeaveRequests that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {LeaveRequestsFindUniqueOrThrowArgs} args - Arguments to find a LeaveRequests + * @example + * // Get one LeaveRequests + * const leaveRequests = await prisma.leaveRequests.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first LeaveRequests 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 {LeaveRequestsFindFirstArgs} args - Arguments to find a LeaveRequests + * @example + * // Get one LeaveRequests + * const leaveRequests = await prisma.leaveRequests.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first LeaveRequests 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 {LeaveRequestsFindFirstOrThrowArgs} args - Arguments to find a LeaveRequests + * @example + * // Get one LeaveRequests + * const leaveRequests = await prisma.leaveRequests.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more LeaveRequests 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 {LeaveRequestsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all LeaveRequests + * const leaveRequests = await prisma.leaveRequests.findMany() + * + * // Get first 10 LeaveRequests + * const leaveRequests = await prisma.leaveRequests.findMany({ take: 10 }) + * + * // Only select the `id` + * const leaveRequestsWithIdOnly = await prisma.leaveRequests.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a LeaveRequests. + * @param {LeaveRequestsCreateArgs} args - Arguments to create a LeaveRequests. + * @example + * // Create one LeaveRequests + * const LeaveRequests = await prisma.leaveRequests.create({ + * data: { + * // ... data to create a LeaveRequests + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many LeaveRequests. + * @param {LeaveRequestsCreateManyArgs} args - Arguments to create many LeaveRequests. + * @example + * // Create many LeaveRequests + * const leaveRequests = await prisma.leaveRequests.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many LeaveRequests and returns the data saved in the database. + * @param {LeaveRequestsCreateManyAndReturnArgs} args - Arguments to create many LeaveRequests. + * @example + * // Create many LeaveRequests + * const leaveRequests = await prisma.leaveRequests.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many LeaveRequests and only return the `id` + * const leaveRequestsWithIdOnly = await prisma.leaveRequests.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 LeaveRequests. + * @param {LeaveRequestsDeleteArgs} args - Arguments to delete one LeaveRequests. + * @example + * // Delete one LeaveRequests + * const LeaveRequests = await prisma.leaveRequests.delete({ + * where: { + * // ... filter to delete one LeaveRequests + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one LeaveRequests. + * @param {LeaveRequestsUpdateArgs} args - Arguments to update one LeaveRequests. + * @example + * // Update one LeaveRequests + * const leaveRequests = await prisma.leaveRequests.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more LeaveRequests. + * @param {LeaveRequestsDeleteManyArgs} args - Arguments to filter LeaveRequests to delete. + * @example + * // Delete a few LeaveRequests + * const { count } = await prisma.leaveRequests.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more LeaveRequests. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {LeaveRequestsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many LeaveRequests + * const leaveRequests = await prisma.leaveRequests.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more LeaveRequests and returns the data updated in the database. + * @param {LeaveRequestsUpdateManyAndReturnArgs} args - Arguments to update many LeaveRequests. + * @example + * // Update many LeaveRequests + * const leaveRequests = await prisma.leaveRequests.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more LeaveRequests and only return the `id` + * const leaveRequestsWithIdOnly = await prisma.leaveRequests.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 LeaveRequests. + * @param {LeaveRequestsUpsertArgs} args - Arguments to update or create a LeaveRequests. + * @example + * // Update or create a LeaveRequests + * const leaveRequests = await prisma.leaveRequests.upsert({ + * create: { + * // ... data to create a LeaveRequests + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the LeaveRequests we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of LeaveRequests. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {LeaveRequestsCountArgs} args - Arguments to filter LeaveRequests to count. + * @example + * // Count the number of LeaveRequests + * const count = await prisma.leaveRequests.count({ + * where: { + * // ... the filter for the LeaveRequests 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 LeaveRequests. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {LeaveRequestsAggregateArgs} 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 LeaveRequests. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {LeaveRequestsGroupByArgs} 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 LeaveRequestsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: LeaveRequestsGroupByArgs['orderBy'] } + : { orderBy?: LeaveRequestsGroupByArgs['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 ? GetLeaveRequestsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the LeaveRequests model + */ +readonly fields: LeaveRequestsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for LeaveRequests. + * 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__LeaveRequestsClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + bank_code = {}>(args?: Prisma.Subset>): Prisma.Prisma__BankCodesClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + employee = {}>(args?: Prisma.Subset>): Prisma.Prisma__EmployeesClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + archive = {}>(args?: Prisma.Subset>): Prisma.Prisma__LeaveRequestsArchiveClient, 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 LeaveRequests model + */ +export interface LeaveRequestsFieldRefs { + readonly id: Prisma.FieldRef<"LeaveRequests", 'Int'> + readonly employee_id: Prisma.FieldRef<"LeaveRequests", 'Int'> + readonly leave_type: Prisma.FieldRef<"LeaveRequests", 'LeaveTypes'> + readonly comment: Prisma.FieldRef<"LeaveRequests", 'String'> + readonly approval_status: Prisma.FieldRef<"LeaveRequests", 'LeaveApprovalStatus'> + readonly bank_code_id: Prisma.FieldRef<"LeaveRequests", 'Int'> + readonly payable_hours: Prisma.FieldRef<"LeaveRequests", 'Decimal'> + readonly requested_hours: Prisma.FieldRef<"LeaveRequests", 'Decimal'> + readonly dates: Prisma.FieldRef<"LeaveRequests", 'DateTime[]'> +} + + +// Custom InputTypes +/** + * LeaveRequests findUnique + */ +export type LeaveRequestsFindUniqueArgs = { + /** + * Select specific fields to fetch from the LeaveRequests + */ + select?: Prisma.LeaveRequestsSelect | null + /** + * Omit specific fields from the LeaveRequests + */ + omit?: Prisma.LeaveRequestsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsInclude | null + /** + * Filter, which LeaveRequests to fetch. + */ + where: Prisma.LeaveRequestsWhereUniqueInput +} + +/** + * LeaveRequests findUniqueOrThrow + */ +export type LeaveRequestsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the LeaveRequests + */ + select?: Prisma.LeaveRequestsSelect | null + /** + * Omit specific fields from the LeaveRequests + */ + omit?: Prisma.LeaveRequestsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsInclude | null + /** + * Filter, which LeaveRequests to fetch. + */ + where: Prisma.LeaveRequestsWhereUniqueInput +} + +/** + * LeaveRequests findFirst + */ +export type LeaveRequestsFindFirstArgs = { + /** + * Select specific fields to fetch from the LeaveRequests + */ + select?: Prisma.LeaveRequestsSelect | null + /** + * Omit specific fields from the LeaveRequests + */ + omit?: Prisma.LeaveRequestsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsInclude | null + /** + * Filter, which LeaveRequests to fetch. + */ + where?: Prisma.LeaveRequestsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of LeaveRequests to fetch. + */ + orderBy?: Prisma.LeaveRequestsOrderByWithRelationInput | Prisma.LeaveRequestsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for LeaveRequests. + */ + cursor?: Prisma.LeaveRequestsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` LeaveRequests 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` LeaveRequests. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of LeaveRequests. + */ + distinct?: Prisma.LeaveRequestsScalarFieldEnum | Prisma.LeaveRequestsScalarFieldEnum[] +} + +/** + * LeaveRequests findFirstOrThrow + */ +export type LeaveRequestsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the LeaveRequests + */ + select?: Prisma.LeaveRequestsSelect | null + /** + * Omit specific fields from the LeaveRequests + */ + omit?: Prisma.LeaveRequestsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsInclude | null + /** + * Filter, which LeaveRequests to fetch. + */ + where?: Prisma.LeaveRequestsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of LeaveRequests to fetch. + */ + orderBy?: Prisma.LeaveRequestsOrderByWithRelationInput | Prisma.LeaveRequestsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for LeaveRequests. + */ + cursor?: Prisma.LeaveRequestsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` LeaveRequests 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` LeaveRequests. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of LeaveRequests. + */ + distinct?: Prisma.LeaveRequestsScalarFieldEnum | Prisma.LeaveRequestsScalarFieldEnum[] +} + +/** + * LeaveRequests findMany + */ +export type LeaveRequestsFindManyArgs = { + /** + * Select specific fields to fetch from the LeaveRequests + */ + select?: Prisma.LeaveRequestsSelect | null + /** + * Omit specific fields from the LeaveRequests + */ + omit?: Prisma.LeaveRequestsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsInclude | null + /** + * Filter, which LeaveRequests to fetch. + */ + where?: Prisma.LeaveRequestsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of LeaveRequests to fetch. + */ + orderBy?: Prisma.LeaveRequestsOrderByWithRelationInput | Prisma.LeaveRequestsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing LeaveRequests. + */ + cursor?: Prisma.LeaveRequestsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` LeaveRequests 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` LeaveRequests. + */ + skip?: number + distinct?: Prisma.LeaveRequestsScalarFieldEnum | Prisma.LeaveRequestsScalarFieldEnum[] +} + +/** + * LeaveRequests create + */ +export type LeaveRequestsCreateArgs = { + /** + * Select specific fields to fetch from the LeaveRequests + */ + select?: Prisma.LeaveRequestsSelect | null + /** + * Omit specific fields from the LeaveRequests + */ + omit?: Prisma.LeaveRequestsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsInclude | null + /** + * The data needed to create a LeaveRequests. + */ + data: Prisma.XOR +} + +/** + * LeaveRequests createMany + */ +export type LeaveRequestsCreateManyArgs = { + /** + * The data used to create many LeaveRequests. + */ + data: Prisma.LeaveRequestsCreateManyInput | Prisma.LeaveRequestsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * LeaveRequests createManyAndReturn + */ +export type LeaveRequestsCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the LeaveRequests + */ + select?: Prisma.LeaveRequestsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the LeaveRequests + */ + omit?: Prisma.LeaveRequestsOmit | null + /** + * The data used to create many LeaveRequests. + */ + data: Prisma.LeaveRequestsCreateManyInput | Prisma.LeaveRequestsCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsIncludeCreateManyAndReturn | null +} + +/** + * LeaveRequests update + */ +export type LeaveRequestsUpdateArgs = { + /** + * Select specific fields to fetch from the LeaveRequests + */ + select?: Prisma.LeaveRequestsSelect | null + /** + * Omit specific fields from the LeaveRequests + */ + omit?: Prisma.LeaveRequestsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsInclude | null + /** + * The data needed to update a LeaveRequests. + */ + data: Prisma.XOR + /** + * Choose, which LeaveRequests to update. + */ + where: Prisma.LeaveRequestsWhereUniqueInput +} + +/** + * LeaveRequests updateMany + */ +export type LeaveRequestsUpdateManyArgs = { + /** + * The data used to update LeaveRequests. + */ + data: Prisma.XOR + /** + * Filter which LeaveRequests to update + */ + where?: Prisma.LeaveRequestsWhereInput + /** + * Limit how many LeaveRequests to update. + */ + limit?: number +} + +/** + * LeaveRequests updateManyAndReturn + */ +export type LeaveRequestsUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the LeaveRequests + */ + select?: Prisma.LeaveRequestsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the LeaveRequests + */ + omit?: Prisma.LeaveRequestsOmit | null + /** + * The data used to update LeaveRequests. + */ + data: Prisma.XOR + /** + * Filter which LeaveRequests to update + */ + where?: Prisma.LeaveRequestsWhereInput + /** + * Limit how many LeaveRequests to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsIncludeUpdateManyAndReturn | null +} + +/** + * LeaveRequests upsert + */ +export type LeaveRequestsUpsertArgs = { + /** + * Select specific fields to fetch from the LeaveRequests + */ + select?: Prisma.LeaveRequestsSelect | null + /** + * Omit specific fields from the LeaveRequests + */ + omit?: Prisma.LeaveRequestsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsInclude | null + /** + * The filter to search for the LeaveRequests to update in case it exists. + */ + where: Prisma.LeaveRequestsWhereUniqueInput + /** + * In case the LeaveRequests found by the `where` argument doesn't exist, create a new LeaveRequests with this data. + */ + create: Prisma.XOR + /** + * In case the LeaveRequests was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * LeaveRequests delete + */ +export type LeaveRequestsDeleteArgs = { + /** + * Select specific fields to fetch from the LeaveRequests + */ + select?: Prisma.LeaveRequestsSelect | null + /** + * Omit specific fields from the LeaveRequests + */ + omit?: Prisma.LeaveRequestsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsInclude | null + /** + * Filter which LeaveRequests to delete. + */ + where: Prisma.LeaveRequestsWhereUniqueInput +} + +/** + * LeaveRequests deleteMany + */ +export type LeaveRequestsDeleteManyArgs = { + /** + * Filter which LeaveRequests to delete + */ + where?: Prisma.LeaveRequestsWhereInput + /** + * Limit how many LeaveRequests to delete. + */ + limit?: number +} + +/** + * LeaveRequests.archive + */ +export type LeaveRequests$archiveArgs = { + /** + * Select specific fields to fetch from the LeaveRequestsArchive + */ + select?: Prisma.LeaveRequestsArchiveSelect | null + /** + * Omit specific fields from the LeaveRequestsArchive + */ + omit?: Prisma.LeaveRequestsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsArchiveInclude | null + where?: Prisma.LeaveRequestsArchiveWhereInput +} + +/** + * LeaveRequests without action + */ +export type LeaveRequestsDefaultArgs = { + /** + * Select specific fields to fetch from the LeaveRequests + */ + select?: Prisma.LeaveRequestsSelect | null + /** + * Omit specific fields from the LeaveRequests + */ + omit?: Prisma.LeaveRequestsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsInclude | null +} diff --git a/prisma/generated/postgres/models/LeaveRequestsArchive.ts b/prisma/generated/postgres/models/LeaveRequestsArchive.ts new file mode 100644 index 0000000..f1cd383 --- /dev/null +++ b/prisma/generated/postgres/models/LeaveRequestsArchive.ts @@ -0,0 +1,1513 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `LeaveRequestsArchive` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model LeaveRequestsArchive + * + */ +export type LeaveRequestsArchiveModel = runtime.Types.Result.DefaultSelection + +export type AggregateLeaveRequestsArchive = { + _count: LeaveRequestsArchiveCountAggregateOutputType | null + _avg: LeaveRequestsArchiveAvgAggregateOutputType | null + _sum: LeaveRequestsArchiveSumAggregateOutputType | null + _min: LeaveRequestsArchiveMinAggregateOutputType | null + _max: LeaveRequestsArchiveMaxAggregateOutputType | null +} + +export type LeaveRequestsArchiveAvgAggregateOutputType = { + id: number | null + leave_request_id: number | null + employee_id: number | null + payable_hours: runtime.Decimal | null + requested_hours: runtime.Decimal | null +} + +export type LeaveRequestsArchiveSumAggregateOutputType = { + id: number | null + leave_request_id: number | null + employee_id: number | null + payable_hours: runtime.Decimal | null + requested_hours: runtime.Decimal | null +} + +export type LeaveRequestsArchiveMinAggregateOutputType = { + id: number | null + leave_request_id: number | null + archived_at: Date | null + employee_id: number | null + leave_type: $Enums.LeaveTypes | null + comment: string | null + approval_status: $Enums.LeaveApprovalStatus | null + date: Date | null + payable_hours: runtime.Decimal | null + requested_hours: runtime.Decimal | null +} + +export type LeaveRequestsArchiveMaxAggregateOutputType = { + id: number | null + leave_request_id: number | null + archived_at: Date | null + employee_id: number | null + leave_type: $Enums.LeaveTypes | null + comment: string | null + approval_status: $Enums.LeaveApprovalStatus | null + date: Date | null + payable_hours: runtime.Decimal | null + requested_hours: runtime.Decimal | null +} + +export type LeaveRequestsArchiveCountAggregateOutputType = { + id: number + leave_request_id: number + archived_at: number + employee_id: number + leave_type: number + comment: number + approval_status: number + date: number + payable_hours: number + requested_hours: number + _all: number +} + + +export type LeaveRequestsArchiveAvgAggregateInputType = { + id?: true + leave_request_id?: true + employee_id?: true + payable_hours?: true + requested_hours?: true +} + +export type LeaveRequestsArchiveSumAggregateInputType = { + id?: true + leave_request_id?: true + employee_id?: true + payable_hours?: true + requested_hours?: true +} + +export type LeaveRequestsArchiveMinAggregateInputType = { + id?: true + leave_request_id?: true + archived_at?: true + employee_id?: true + leave_type?: true + comment?: true + approval_status?: true + date?: true + payable_hours?: true + requested_hours?: true +} + +export type LeaveRequestsArchiveMaxAggregateInputType = { + id?: true + leave_request_id?: true + archived_at?: true + employee_id?: true + leave_type?: true + comment?: true + approval_status?: true + date?: true + payable_hours?: true + requested_hours?: true +} + +export type LeaveRequestsArchiveCountAggregateInputType = { + id?: true + leave_request_id?: true + archived_at?: true + employee_id?: true + leave_type?: true + comment?: true + approval_status?: true + date?: true + payable_hours?: true + requested_hours?: true + _all?: true +} + +export type LeaveRequestsArchiveAggregateArgs = { + /** + * Filter which LeaveRequestsArchive to aggregate. + */ + where?: Prisma.LeaveRequestsArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of LeaveRequestsArchives to fetch. + */ + orderBy?: Prisma.LeaveRequestsArchiveOrderByWithRelationInput | Prisma.LeaveRequestsArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.LeaveRequestsArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` LeaveRequestsArchives 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` LeaveRequestsArchives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned LeaveRequestsArchives + **/ + _count?: true | LeaveRequestsArchiveCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: LeaveRequestsArchiveAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: LeaveRequestsArchiveSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: LeaveRequestsArchiveMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: LeaveRequestsArchiveMaxAggregateInputType +} + +export type GetLeaveRequestsArchiveAggregateType = { + [P in keyof T & keyof AggregateLeaveRequestsArchive]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type LeaveRequestsArchiveGroupByArgs = { + where?: Prisma.LeaveRequestsArchiveWhereInput + orderBy?: Prisma.LeaveRequestsArchiveOrderByWithAggregationInput | Prisma.LeaveRequestsArchiveOrderByWithAggregationInput[] + by: Prisma.LeaveRequestsArchiveScalarFieldEnum[] | Prisma.LeaveRequestsArchiveScalarFieldEnum + having?: Prisma.LeaveRequestsArchiveScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: LeaveRequestsArchiveCountAggregateInputType | true + _avg?: LeaveRequestsArchiveAvgAggregateInputType + _sum?: LeaveRequestsArchiveSumAggregateInputType + _min?: LeaveRequestsArchiveMinAggregateInputType + _max?: LeaveRequestsArchiveMaxAggregateInputType +} + +export type LeaveRequestsArchiveGroupByOutputType = { + id: number + leave_request_id: number + archived_at: Date + employee_id: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status: $Enums.LeaveApprovalStatus + date: Date + payable_hours: runtime.Decimal | null + requested_hours: runtime.Decimal | null + _count: LeaveRequestsArchiveCountAggregateOutputType | null + _avg: LeaveRequestsArchiveAvgAggregateOutputType | null + _sum: LeaveRequestsArchiveSumAggregateOutputType | null + _min: LeaveRequestsArchiveMinAggregateOutputType | null + _max: LeaveRequestsArchiveMaxAggregateOutputType | null +} + +type GetLeaveRequestsArchiveGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof LeaveRequestsArchiveGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type LeaveRequestsArchiveWhereInput = { + AND?: Prisma.LeaveRequestsArchiveWhereInput | Prisma.LeaveRequestsArchiveWhereInput[] + OR?: Prisma.LeaveRequestsArchiveWhereInput[] + NOT?: Prisma.LeaveRequestsArchiveWhereInput | Prisma.LeaveRequestsArchiveWhereInput[] + id?: Prisma.IntFilter<"LeaveRequestsArchive"> | number + leave_request_id?: Prisma.IntFilter<"LeaveRequestsArchive"> | number + archived_at?: Prisma.DateTimeFilter<"LeaveRequestsArchive"> | Date | string + employee_id?: Prisma.IntFilter<"LeaveRequestsArchive"> | number + leave_type?: Prisma.EnumLeaveTypesFilter<"LeaveRequestsArchive"> | $Enums.LeaveTypes + comment?: Prisma.StringFilter<"LeaveRequestsArchive"> | string + approval_status?: Prisma.EnumLeaveApprovalStatusFilter<"LeaveRequestsArchive"> | $Enums.LeaveApprovalStatus + date?: Prisma.DateTimeFilter<"LeaveRequestsArchive"> | Date | string + payable_hours?: Prisma.DecimalNullableFilter<"LeaveRequestsArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.DecimalNullableFilter<"LeaveRequestsArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + leave_request?: Prisma.XOR +} + +export type LeaveRequestsArchiveOrderByWithRelationInput = { + id?: Prisma.SortOrder + leave_request_id?: Prisma.SortOrder + archived_at?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + leave_type?: Prisma.SortOrder + comment?: Prisma.SortOrder + approval_status?: Prisma.SortOrder + date?: Prisma.SortOrder + payable_hours?: Prisma.SortOrderInput | Prisma.SortOrder + requested_hours?: Prisma.SortOrderInput | Prisma.SortOrder + leave_request?: Prisma.LeaveRequestsOrderByWithRelationInput +} + +export type LeaveRequestsArchiveWhereUniqueInput = Prisma.AtLeast<{ + id?: number + leave_request_id?: number + AND?: Prisma.LeaveRequestsArchiveWhereInput | Prisma.LeaveRequestsArchiveWhereInput[] + OR?: Prisma.LeaveRequestsArchiveWhereInput[] + NOT?: Prisma.LeaveRequestsArchiveWhereInput | Prisma.LeaveRequestsArchiveWhereInput[] + archived_at?: Prisma.DateTimeFilter<"LeaveRequestsArchive"> | Date | string + employee_id?: Prisma.IntFilter<"LeaveRequestsArchive"> | number + leave_type?: Prisma.EnumLeaveTypesFilter<"LeaveRequestsArchive"> | $Enums.LeaveTypes + comment?: Prisma.StringFilter<"LeaveRequestsArchive"> | string + approval_status?: Prisma.EnumLeaveApprovalStatusFilter<"LeaveRequestsArchive"> | $Enums.LeaveApprovalStatus + date?: Prisma.DateTimeFilter<"LeaveRequestsArchive"> | Date | string + payable_hours?: Prisma.DecimalNullableFilter<"LeaveRequestsArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.DecimalNullableFilter<"LeaveRequestsArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + leave_request?: Prisma.XOR +}, "id" | "leave_request_id"> + +export type LeaveRequestsArchiveOrderByWithAggregationInput = { + id?: Prisma.SortOrder + leave_request_id?: Prisma.SortOrder + archived_at?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + leave_type?: Prisma.SortOrder + comment?: Prisma.SortOrder + approval_status?: Prisma.SortOrder + date?: Prisma.SortOrder + payable_hours?: Prisma.SortOrderInput | Prisma.SortOrder + requested_hours?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.LeaveRequestsArchiveCountOrderByAggregateInput + _avg?: Prisma.LeaveRequestsArchiveAvgOrderByAggregateInput + _max?: Prisma.LeaveRequestsArchiveMaxOrderByAggregateInput + _min?: Prisma.LeaveRequestsArchiveMinOrderByAggregateInput + _sum?: Prisma.LeaveRequestsArchiveSumOrderByAggregateInput +} + +export type LeaveRequestsArchiveScalarWhereWithAggregatesInput = { + AND?: Prisma.LeaveRequestsArchiveScalarWhereWithAggregatesInput | Prisma.LeaveRequestsArchiveScalarWhereWithAggregatesInput[] + OR?: Prisma.LeaveRequestsArchiveScalarWhereWithAggregatesInput[] + NOT?: Prisma.LeaveRequestsArchiveScalarWhereWithAggregatesInput | Prisma.LeaveRequestsArchiveScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"LeaveRequestsArchive"> | number + leave_request_id?: Prisma.IntWithAggregatesFilter<"LeaveRequestsArchive"> | number + archived_at?: Prisma.DateTimeWithAggregatesFilter<"LeaveRequestsArchive"> | Date | string + employee_id?: Prisma.IntWithAggregatesFilter<"LeaveRequestsArchive"> | number + leave_type?: Prisma.EnumLeaveTypesWithAggregatesFilter<"LeaveRequestsArchive"> | $Enums.LeaveTypes + comment?: Prisma.StringWithAggregatesFilter<"LeaveRequestsArchive"> | string + approval_status?: Prisma.EnumLeaveApprovalStatusWithAggregatesFilter<"LeaveRequestsArchive"> | $Enums.LeaveApprovalStatus + date?: Prisma.DateTimeWithAggregatesFilter<"LeaveRequestsArchive"> | Date | string + payable_hours?: Prisma.DecimalNullableWithAggregatesFilter<"LeaveRequestsArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.DecimalNullableWithAggregatesFilter<"LeaveRequestsArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type LeaveRequestsArchiveCreateInput = { + archived_at?: Date | string + employee_id: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status: $Enums.LeaveApprovalStatus + date: Date | string + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + leave_request: Prisma.LeaveRequestsCreateNestedOneWithoutArchiveInput +} + +export type LeaveRequestsArchiveUncheckedCreateInput = { + id?: number + leave_request_id: number + archived_at?: Date | string + employee_id: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status: $Enums.LeaveApprovalStatus + date: Date | string + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type LeaveRequestsArchiveUpdateInput = { + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + leave_request?: Prisma.LeaveRequestsUpdateOneRequiredWithoutArchiveNestedInput +} + +export type LeaveRequestsArchiveUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + leave_request_id?: Prisma.IntFieldUpdateOperationsInput | number + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type LeaveRequestsArchiveCreateManyInput = { + id?: number + leave_request_id: number + archived_at?: Date | string + employee_id: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status: $Enums.LeaveApprovalStatus + date: Date | string + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type LeaveRequestsArchiveUpdateManyMutationInput = { + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type LeaveRequestsArchiveUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + leave_request_id?: Prisma.IntFieldUpdateOperationsInput | number + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type LeaveRequestsArchiveNullableScalarRelationFilter = { + is?: Prisma.LeaveRequestsArchiveWhereInput | null + isNot?: Prisma.LeaveRequestsArchiveWhereInput | null +} + +export type LeaveRequestsArchiveCountOrderByAggregateInput = { + id?: Prisma.SortOrder + leave_request_id?: Prisma.SortOrder + archived_at?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + leave_type?: Prisma.SortOrder + comment?: Prisma.SortOrder + approval_status?: Prisma.SortOrder + date?: Prisma.SortOrder + payable_hours?: Prisma.SortOrder + requested_hours?: Prisma.SortOrder +} + +export type LeaveRequestsArchiveAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + leave_request_id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + payable_hours?: Prisma.SortOrder + requested_hours?: Prisma.SortOrder +} + +export type LeaveRequestsArchiveMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + leave_request_id?: Prisma.SortOrder + archived_at?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + leave_type?: Prisma.SortOrder + comment?: Prisma.SortOrder + approval_status?: Prisma.SortOrder + date?: Prisma.SortOrder + payable_hours?: Prisma.SortOrder + requested_hours?: Prisma.SortOrder +} + +export type LeaveRequestsArchiveMinOrderByAggregateInput = { + id?: Prisma.SortOrder + leave_request_id?: Prisma.SortOrder + archived_at?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + leave_type?: Prisma.SortOrder + comment?: Prisma.SortOrder + approval_status?: Prisma.SortOrder + date?: Prisma.SortOrder + payable_hours?: Prisma.SortOrder + requested_hours?: Prisma.SortOrder +} + +export type LeaveRequestsArchiveSumOrderByAggregateInput = { + id?: Prisma.SortOrder + leave_request_id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + payable_hours?: Prisma.SortOrder + requested_hours?: Prisma.SortOrder +} + +export type LeaveRequestsArchiveCreateNestedOneWithoutLeave_requestInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.LeaveRequestsArchiveCreateOrConnectWithoutLeave_requestInput + connect?: Prisma.LeaveRequestsArchiveWhereUniqueInput +} + +export type LeaveRequestsArchiveUncheckedCreateNestedOneWithoutLeave_requestInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.LeaveRequestsArchiveCreateOrConnectWithoutLeave_requestInput + connect?: Prisma.LeaveRequestsArchiveWhereUniqueInput +} + +export type LeaveRequestsArchiveUpdateOneWithoutLeave_requestNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.LeaveRequestsArchiveCreateOrConnectWithoutLeave_requestInput + upsert?: Prisma.LeaveRequestsArchiveUpsertWithoutLeave_requestInput + disconnect?: Prisma.LeaveRequestsArchiveWhereInput | boolean + delete?: Prisma.LeaveRequestsArchiveWhereInput | boolean + connect?: Prisma.LeaveRequestsArchiveWhereUniqueInput + update?: Prisma.XOR, Prisma.LeaveRequestsArchiveUncheckedUpdateWithoutLeave_requestInput> +} + +export type LeaveRequestsArchiveUncheckedUpdateOneWithoutLeave_requestNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.LeaveRequestsArchiveCreateOrConnectWithoutLeave_requestInput + upsert?: Prisma.LeaveRequestsArchiveUpsertWithoutLeave_requestInput + disconnect?: Prisma.LeaveRequestsArchiveWhereInput | boolean + delete?: Prisma.LeaveRequestsArchiveWhereInput | boolean + connect?: Prisma.LeaveRequestsArchiveWhereUniqueInput + update?: Prisma.XOR, Prisma.LeaveRequestsArchiveUncheckedUpdateWithoutLeave_requestInput> +} + +export type LeaveRequestsArchiveCreateWithoutLeave_requestInput = { + archived_at?: Date | string + employee_id: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status: $Enums.LeaveApprovalStatus + date: Date | string + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type LeaveRequestsArchiveUncheckedCreateWithoutLeave_requestInput = { + id?: number + archived_at?: Date | string + employee_id: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status: $Enums.LeaveApprovalStatus + date: Date | string + payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type LeaveRequestsArchiveCreateOrConnectWithoutLeave_requestInput = { + where: Prisma.LeaveRequestsArchiveWhereUniqueInput + create: Prisma.XOR +} + +export type LeaveRequestsArchiveUpsertWithoutLeave_requestInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.LeaveRequestsArchiveWhereInput +} + +export type LeaveRequestsArchiveUpdateToOneWithWhereWithoutLeave_requestInput = { + where?: Prisma.LeaveRequestsArchiveWhereInput + data: Prisma.XOR +} + +export type LeaveRequestsArchiveUpdateWithoutLeave_requestInput = { + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + +export type LeaveRequestsArchiveUncheckedUpdateWithoutLeave_requestInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes + comment?: Prisma.StringFieldUpdateOperationsInput | string + approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null + requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null +} + + + +export type LeaveRequestsArchiveSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + leave_request_id?: boolean + archived_at?: boolean + employee_id?: boolean + leave_type?: boolean + comment?: boolean + approval_status?: boolean + date?: boolean + payable_hours?: boolean + requested_hours?: boolean + leave_request?: boolean | Prisma.LeaveRequestsDefaultArgs +}, ExtArgs["result"]["leaveRequestsArchive"]> + +export type LeaveRequestsArchiveSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + leave_request_id?: boolean + archived_at?: boolean + employee_id?: boolean + leave_type?: boolean + comment?: boolean + approval_status?: boolean + date?: boolean + payable_hours?: boolean + requested_hours?: boolean + leave_request?: boolean | Prisma.LeaveRequestsDefaultArgs +}, ExtArgs["result"]["leaveRequestsArchive"]> + +export type LeaveRequestsArchiveSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + leave_request_id?: boolean + archived_at?: boolean + employee_id?: boolean + leave_type?: boolean + comment?: boolean + approval_status?: boolean + date?: boolean + payable_hours?: boolean + requested_hours?: boolean + leave_request?: boolean | Prisma.LeaveRequestsDefaultArgs +}, ExtArgs["result"]["leaveRequestsArchive"]> + +export type LeaveRequestsArchiveSelectScalar = { + id?: boolean + leave_request_id?: boolean + archived_at?: boolean + employee_id?: boolean + leave_type?: boolean + comment?: boolean + approval_status?: boolean + date?: boolean + payable_hours?: boolean + requested_hours?: boolean +} + +export type LeaveRequestsArchiveOmit = runtime.Types.Extensions.GetOmit<"id" | "leave_request_id" | "archived_at" | "employee_id" | "leave_type" | "comment" | "approval_status" | "date" | "payable_hours" | "requested_hours", ExtArgs["result"]["leaveRequestsArchive"]> +export type LeaveRequestsArchiveInclude = { + leave_request?: boolean | Prisma.LeaveRequestsDefaultArgs +} +export type LeaveRequestsArchiveIncludeCreateManyAndReturn = { + leave_request?: boolean | Prisma.LeaveRequestsDefaultArgs +} +export type LeaveRequestsArchiveIncludeUpdateManyAndReturn = { + leave_request?: boolean | Prisma.LeaveRequestsDefaultArgs +} + +export type $LeaveRequestsArchivePayload = { + name: "LeaveRequestsArchive" + objects: { + leave_request: Prisma.$LeaveRequestsPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + leave_request_id: number + archived_at: Date + employee_id: number + leave_type: $Enums.LeaveTypes + comment: string + approval_status: $Enums.LeaveApprovalStatus + date: Date + payable_hours: runtime.Decimal | null + requested_hours: runtime.Decimal | null + }, ExtArgs["result"]["leaveRequestsArchive"]> + composites: {} +} + +export type LeaveRequestsArchiveGetPayload = runtime.Types.Result.GetResult + +export type LeaveRequestsArchiveCountArgs = + Omit & { + select?: LeaveRequestsArchiveCountAggregateInputType | true + } + +export interface LeaveRequestsArchiveDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['LeaveRequestsArchive'], meta: { name: 'LeaveRequestsArchive' } } + /** + * Find zero or one LeaveRequestsArchive that matches the filter. + * @param {LeaveRequestsArchiveFindUniqueArgs} args - Arguments to find a LeaveRequestsArchive + * @example + * // Get one LeaveRequestsArchive + * const leaveRequestsArchive = await prisma.leaveRequestsArchive.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsArchiveClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one LeaveRequestsArchive that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {LeaveRequestsArchiveFindUniqueOrThrowArgs} args - Arguments to find a LeaveRequestsArchive + * @example + * // Get one LeaveRequestsArchive + * const leaveRequestsArchive = await prisma.leaveRequestsArchive.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsArchiveClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first LeaveRequestsArchive 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 {LeaveRequestsArchiveFindFirstArgs} args - Arguments to find a LeaveRequestsArchive + * @example + * // Get one LeaveRequestsArchive + * const leaveRequestsArchive = await prisma.leaveRequestsArchive.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsArchiveClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first LeaveRequestsArchive 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 {LeaveRequestsArchiveFindFirstOrThrowArgs} args - Arguments to find a LeaveRequestsArchive + * @example + * // Get one LeaveRequestsArchive + * const leaveRequestsArchive = await prisma.leaveRequestsArchive.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsArchiveClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more LeaveRequestsArchives 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 {LeaveRequestsArchiveFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all LeaveRequestsArchives + * const leaveRequestsArchives = await prisma.leaveRequestsArchive.findMany() + * + * // Get first 10 LeaveRequestsArchives + * const leaveRequestsArchives = await prisma.leaveRequestsArchive.findMany({ take: 10 }) + * + * // Only select the `id` + * const leaveRequestsArchiveWithIdOnly = await prisma.leaveRequestsArchive.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a LeaveRequestsArchive. + * @param {LeaveRequestsArchiveCreateArgs} args - Arguments to create a LeaveRequestsArchive. + * @example + * // Create one LeaveRequestsArchive + * const LeaveRequestsArchive = await prisma.leaveRequestsArchive.create({ + * data: { + * // ... data to create a LeaveRequestsArchive + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsArchiveClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many LeaveRequestsArchives. + * @param {LeaveRequestsArchiveCreateManyArgs} args - Arguments to create many LeaveRequestsArchives. + * @example + * // Create many LeaveRequestsArchives + * const leaveRequestsArchive = await prisma.leaveRequestsArchive.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many LeaveRequestsArchives and returns the data saved in the database. + * @param {LeaveRequestsArchiveCreateManyAndReturnArgs} args - Arguments to create many LeaveRequestsArchives. + * @example + * // Create many LeaveRequestsArchives + * const leaveRequestsArchive = await prisma.leaveRequestsArchive.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many LeaveRequestsArchives and only return the `id` + * const leaveRequestsArchiveWithIdOnly = await prisma.leaveRequestsArchive.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 LeaveRequestsArchive. + * @param {LeaveRequestsArchiveDeleteArgs} args - Arguments to delete one LeaveRequestsArchive. + * @example + * // Delete one LeaveRequestsArchive + * const LeaveRequestsArchive = await prisma.leaveRequestsArchive.delete({ + * where: { + * // ... filter to delete one LeaveRequestsArchive + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsArchiveClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one LeaveRequestsArchive. + * @param {LeaveRequestsArchiveUpdateArgs} args - Arguments to update one LeaveRequestsArchive. + * @example + * // Update one LeaveRequestsArchive + * const leaveRequestsArchive = await prisma.leaveRequestsArchive.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsArchiveClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more LeaveRequestsArchives. + * @param {LeaveRequestsArchiveDeleteManyArgs} args - Arguments to filter LeaveRequestsArchives to delete. + * @example + * // Delete a few LeaveRequestsArchives + * const { count } = await prisma.leaveRequestsArchive.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more LeaveRequestsArchives. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {LeaveRequestsArchiveUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many LeaveRequestsArchives + * const leaveRequestsArchive = await prisma.leaveRequestsArchive.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more LeaveRequestsArchives and returns the data updated in the database. + * @param {LeaveRequestsArchiveUpdateManyAndReturnArgs} args - Arguments to update many LeaveRequestsArchives. + * @example + * // Update many LeaveRequestsArchives + * const leaveRequestsArchive = await prisma.leaveRequestsArchive.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more LeaveRequestsArchives and only return the `id` + * const leaveRequestsArchiveWithIdOnly = await prisma.leaveRequestsArchive.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 LeaveRequestsArchive. + * @param {LeaveRequestsArchiveUpsertArgs} args - Arguments to update or create a LeaveRequestsArchive. + * @example + * // Update or create a LeaveRequestsArchive + * const leaveRequestsArchive = await prisma.leaveRequestsArchive.upsert({ + * create: { + * // ... data to create a LeaveRequestsArchive + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the LeaveRequestsArchive we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsArchiveClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of LeaveRequestsArchives. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {LeaveRequestsArchiveCountArgs} args - Arguments to filter LeaveRequestsArchives to count. + * @example + * // Count the number of LeaveRequestsArchives + * const count = await prisma.leaveRequestsArchive.count({ + * where: { + * // ... the filter for the LeaveRequestsArchives 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 LeaveRequestsArchive. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {LeaveRequestsArchiveAggregateArgs} 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 LeaveRequestsArchive. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {LeaveRequestsArchiveGroupByArgs} 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 LeaveRequestsArchiveGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: LeaveRequestsArchiveGroupByArgs['orderBy'] } + : { orderBy?: LeaveRequestsArchiveGroupByArgs['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 ? GetLeaveRequestsArchiveGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the LeaveRequestsArchive model + */ +readonly fields: LeaveRequestsArchiveFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for LeaveRequestsArchive. + * 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__LeaveRequestsArchiveClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + leave_request = {}>(args?: Prisma.Subset>): Prisma.Prisma__LeaveRequestsClient, 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 LeaveRequestsArchive model + */ +export interface LeaveRequestsArchiveFieldRefs { + readonly id: Prisma.FieldRef<"LeaveRequestsArchive", 'Int'> + readonly leave_request_id: Prisma.FieldRef<"LeaveRequestsArchive", 'Int'> + readonly archived_at: Prisma.FieldRef<"LeaveRequestsArchive", 'DateTime'> + readonly employee_id: Prisma.FieldRef<"LeaveRequestsArchive", 'Int'> + readonly leave_type: Prisma.FieldRef<"LeaveRequestsArchive", 'LeaveTypes'> + readonly comment: Prisma.FieldRef<"LeaveRequestsArchive", 'String'> + readonly approval_status: Prisma.FieldRef<"LeaveRequestsArchive", 'LeaveApprovalStatus'> + readonly date: Prisma.FieldRef<"LeaveRequestsArchive", 'DateTime'> + readonly payable_hours: Prisma.FieldRef<"LeaveRequestsArchive", 'Decimal'> + readonly requested_hours: Prisma.FieldRef<"LeaveRequestsArchive", 'Decimal'> +} + + +// Custom InputTypes +/** + * LeaveRequestsArchive findUnique + */ +export type LeaveRequestsArchiveFindUniqueArgs = { + /** + * Select specific fields to fetch from the LeaveRequestsArchive + */ + select?: Prisma.LeaveRequestsArchiveSelect | null + /** + * Omit specific fields from the LeaveRequestsArchive + */ + omit?: Prisma.LeaveRequestsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsArchiveInclude | null + /** + * Filter, which LeaveRequestsArchive to fetch. + */ + where: Prisma.LeaveRequestsArchiveWhereUniqueInput +} + +/** + * LeaveRequestsArchive findUniqueOrThrow + */ +export type LeaveRequestsArchiveFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the LeaveRequestsArchive + */ + select?: Prisma.LeaveRequestsArchiveSelect | null + /** + * Omit specific fields from the LeaveRequestsArchive + */ + omit?: Prisma.LeaveRequestsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsArchiveInclude | null + /** + * Filter, which LeaveRequestsArchive to fetch. + */ + where: Prisma.LeaveRequestsArchiveWhereUniqueInput +} + +/** + * LeaveRequestsArchive findFirst + */ +export type LeaveRequestsArchiveFindFirstArgs = { + /** + * Select specific fields to fetch from the LeaveRequestsArchive + */ + select?: Prisma.LeaveRequestsArchiveSelect | null + /** + * Omit specific fields from the LeaveRequestsArchive + */ + omit?: Prisma.LeaveRequestsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsArchiveInclude | null + /** + * Filter, which LeaveRequestsArchive to fetch. + */ + where?: Prisma.LeaveRequestsArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of LeaveRequestsArchives to fetch. + */ + orderBy?: Prisma.LeaveRequestsArchiveOrderByWithRelationInput | Prisma.LeaveRequestsArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for LeaveRequestsArchives. + */ + cursor?: Prisma.LeaveRequestsArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` LeaveRequestsArchives 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` LeaveRequestsArchives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of LeaveRequestsArchives. + */ + distinct?: Prisma.LeaveRequestsArchiveScalarFieldEnum | Prisma.LeaveRequestsArchiveScalarFieldEnum[] +} + +/** + * LeaveRequestsArchive findFirstOrThrow + */ +export type LeaveRequestsArchiveFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the LeaveRequestsArchive + */ + select?: Prisma.LeaveRequestsArchiveSelect | null + /** + * Omit specific fields from the LeaveRequestsArchive + */ + omit?: Prisma.LeaveRequestsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsArchiveInclude | null + /** + * Filter, which LeaveRequestsArchive to fetch. + */ + where?: Prisma.LeaveRequestsArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of LeaveRequestsArchives to fetch. + */ + orderBy?: Prisma.LeaveRequestsArchiveOrderByWithRelationInput | Prisma.LeaveRequestsArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for LeaveRequestsArchives. + */ + cursor?: Prisma.LeaveRequestsArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` LeaveRequestsArchives 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` LeaveRequestsArchives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of LeaveRequestsArchives. + */ + distinct?: Prisma.LeaveRequestsArchiveScalarFieldEnum | Prisma.LeaveRequestsArchiveScalarFieldEnum[] +} + +/** + * LeaveRequestsArchive findMany + */ +export type LeaveRequestsArchiveFindManyArgs = { + /** + * Select specific fields to fetch from the LeaveRequestsArchive + */ + select?: Prisma.LeaveRequestsArchiveSelect | null + /** + * Omit specific fields from the LeaveRequestsArchive + */ + omit?: Prisma.LeaveRequestsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsArchiveInclude | null + /** + * Filter, which LeaveRequestsArchives to fetch. + */ + where?: Prisma.LeaveRequestsArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of LeaveRequestsArchives to fetch. + */ + orderBy?: Prisma.LeaveRequestsArchiveOrderByWithRelationInput | Prisma.LeaveRequestsArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing LeaveRequestsArchives. + */ + cursor?: Prisma.LeaveRequestsArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` LeaveRequestsArchives 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` LeaveRequestsArchives. + */ + skip?: number + distinct?: Prisma.LeaveRequestsArchiveScalarFieldEnum | Prisma.LeaveRequestsArchiveScalarFieldEnum[] +} + +/** + * LeaveRequestsArchive create + */ +export type LeaveRequestsArchiveCreateArgs = { + /** + * Select specific fields to fetch from the LeaveRequestsArchive + */ + select?: Prisma.LeaveRequestsArchiveSelect | null + /** + * Omit specific fields from the LeaveRequestsArchive + */ + omit?: Prisma.LeaveRequestsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsArchiveInclude | null + /** + * The data needed to create a LeaveRequestsArchive. + */ + data: Prisma.XOR +} + +/** + * LeaveRequestsArchive createMany + */ +export type LeaveRequestsArchiveCreateManyArgs = { + /** + * The data used to create many LeaveRequestsArchives. + */ + data: Prisma.LeaveRequestsArchiveCreateManyInput | Prisma.LeaveRequestsArchiveCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * LeaveRequestsArchive createManyAndReturn + */ +export type LeaveRequestsArchiveCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the LeaveRequestsArchive + */ + select?: Prisma.LeaveRequestsArchiveSelectCreateManyAndReturn | null + /** + * Omit specific fields from the LeaveRequestsArchive + */ + omit?: Prisma.LeaveRequestsArchiveOmit | null + /** + * The data used to create many LeaveRequestsArchives. + */ + data: Prisma.LeaveRequestsArchiveCreateManyInput | Prisma.LeaveRequestsArchiveCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsArchiveIncludeCreateManyAndReturn | null +} + +/** + * LeaveRequestsArchive update + */ +export type LeaveRequestsArchiveUpdateArgs = { + /** + * Select specific fields to fetch from the LeaveRequestsArchive + */ + select?: Prisma.LeaveRequestsArchiveSelect | null + /** + * Omit specific fields from the LeaveRequestsArchive + */ + omit?: Prisma.LeaveRequestsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsArchiveInclude | null + /** + * The data needed to update a LeaveRequestsArchive. + */ + data: Prisma.XOR + /** + * Choose, which LeaveRequestsArchive to update. + */ + where: Prisma.LeaveRequestsArchiveWhereUniqueInput +} + +/** + * LeaveRequestsArchive updateMany + */ +export type LeaveRequestsArchiveUpdateManyArgs = { + /** + * The data used to update LeaveRequestsArchives. + */ + data: Prisma.XOR + /** + * Filter which LeaveRequestsArchives to update + */ + where?: Prisma.LeaveRequestsArchiveWhereInput + /** + * Limit how many LeaveRequestsArchives to update. + */ + limit?: number +} + +/** + * LeaveRequestsArchive updateManyAndReturn + */ +export type LeaveRequestsArchiveUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the LeaveRequestsArchive + */ + select?: Prisma.LeaveRequestsArchiveSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the LeaveRequestsArchive + */ + omit?: Prisma.LeaveRequestsArchiveOmit | null + /** + * The data used to update LeaveRequestsArchives. + */ + data: Prisma.XOR + /** + * Filter which LeaveRequestsArchives to update + */ + where?: Prisma.LeaveRequestsArchiveWhereInput + /** + * Limit how many LeaveRequestsArchives to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsArchiveIncludeUpdateManyAndReturn | null +} + +/** + * LeaveRequestsArchive upsert + */ +export type LeaveRequestsArchiveUpsertArgs = { + /** + * Select specific fields to fetch from the LeaveRequestsArchive + */ + select?: Prisma.LeaveRequestsArchiveSelect | null + /** + * Omit specific fields from the LeaveRequestsArchive + */ + omit?: Prisma.LeaveRequestsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsArchiveInclude | null + /** + * The filter to search for the LeaveRequestsArchive to update in case it exists. + */ + where: Prisma.LeaveRequestsArchiveWhereUniqueInput + /** + * In case the LeaveRequestsArchive found by the `where` argument doesn't exist, create a new LeaveRequestsArchive with this data. + */ + create: Prisma.XOR + /** + * In case the LeaveRequestsArchive was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * LeaveRequestsArchive delete + */ +export type LeaveRequestsArchiveDeleteArgs = { + /** + * Select specific fields to fetch from the LeaveRequestsArchive + */ + select?: Prisma.LeaveRequestsArchiveSelect | null + /** + * Omit specific fields from the LeaveRequestsArchive + */ + omit?: Prisma.LeaveRequestsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsArchiveInclude | null + /** + * Filter which LeaveRequestsArchive to delete. + */ + where: Prisma.LeaveRequestsArchiveWhereUniqueInput +} + +/** + * LeaveRequestsArchive deleteMany + */ +export type LeaveRequestsArchiveDeleteManyArgs = { + /** + * Filter which LeaveRequestsArchives to delete + */ + where?: Prisma.LeaveRequestsArchiveWhereInput + /** + * Limit how many LeaveRequestsArchives to delete. + */ + limit?: number +} + +/** + * LeaveRequestsArchive without action + */ +export type LeaveRequestsArchiveDefaultArgs = { + /** + * Select specific fields to fetch from the LeaveRequestsArchive + */ + select?: Prisma.LeaveRequestsArchiveSelect | null + /** + * Omit specific fields from the LeaveRequestsArchive + */ + omit?: Prisma.LeaveRequestsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.LeaveRequestsArchiveInclude | null +} diff --git a/prisma/generated/postgres/models/OAuthSessions.ts b/prisma/generated/postgres/models/OAuthSessions.ts new file mode 100644 index 0000000..36f61bd --- /dev/null +++ b/prisma/generated/postgres/models/OAuthSessions.ts @@ -0,0 +1,1579 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `OAuthSessions` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model OAuthSessions + * + */ +export type OAuthSessionsModel = runtime.Types.Result.DefaultSelection + +export type AggregateOAuthSessions = { + _count: OAuthSessionsCountAggregateOutputType | null + _min: OAuthSessionsMinAggregateOutputType | null + _max: OAuthSessionsMaxAggregateOutputType | null +} + +export type OAuthSessionsMinAggregateOutputType = { + id: string | null + user_id: string | null + application: string | null + access_token: string | null + refresh_token: string | null + access_token_expiry: Date | null + refresh_token_expiry: Date | null + is_revoked: boolean | null + created_at: Date | null + updated_at: Date | null + sid: string | null +} + +export type OAuthSessionsMaxAggregateOutputType = { + id: string | null + user_id: string | null + application: string | null + access_token: string | null + refresh_token: string | null + access_token_expiry: Date | null + refresh_token_expiry: Date | null + is_revoked: boolean | null + created_at: Date | null + updated_at: Date | null + sid: string | null +} + +export type OAuthSessionsCountAggregateOutputType = { + id: number + user_id: number + application: number + access_token: number + refresh_token: number + access_token_expiry: number + refresh_token_expiry: number + is_revoked: number + scopes: number + created_at: number + updated_at: number + sid: number + _all: number +} + + +export type OAuthSessionsMinAggregateInputType = { + id?: true + user_id?: true + application?: true + access_token?: true + refresh_token?: true + access_token_expiry?: true + refresh_token_expiry?: true + is_revoked?: true + created_at?: true + updated_at?: true + sid?: true +} + +export type OAuthSessionsMaxAggregateInputType = { + id?: true + user_id?: true + application?: true + access_token?: true + refresh_token?: true + access_token_expiry?: true + refresh_token_expiry?: true + is_revoked?: true + created_at?: true + updated_at?: true + sid?: true +} + +export type OAuthSessionsCountAggregateInputType = { + id?: true + user_id?: true + application?: true + access_token?: true + refresh_token?: true + access_token_expiry?: true + refresh_token_expiry?: true + is_revoked?: true + scopes?: true + created_at?: true + updated_at?: true + sid?: true + _all?: true +} + +export type OAuthSessionsAggregateArgs = { + /** + * Filter which OAuthSessions to aggregate. + */ + where?: Prisma.OAuthSessionsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of OAuthSessions to fetch. + */ + orderBy?: Prisma.OAuthSessionsOrderByWithRelationInput | Prisma.OAuthSessionsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.OAuthSessionsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` OAuthSessions 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` OAuthSessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned OAuthSessions + **/ + _count?: true | OAuthSessionsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: OAuthSessionsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: OAuthSessionsMaxAggregateInputType +} + +export type GetOAuthSessionsAggregateType = { + [P in keyof T & keyof AggregateOAuthSessions]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type OAuthSessionsGroupByArgs = { + where?: Prisma.OAuthSessionsWhereInput + orderBy?: Prisma.OAuthSessionsOrderByWithAggregationInput | Prisma.OAuthSessionsOrderByWithAggregationInput[] + by: Prisma.OAuthSessionsScalarFieldEnum[] | Prisma.OAuthSessionsScalarFieldEnum + having?: Prisma.OAuthSessionsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: OAuthSessionsCountAggregateInputType | true + _min?: OAuthSessionsMinAggregateInputType + _max?: OAuthSessionsMaxAggregateInputType +} + +export type OAuthSessionsGroupByOutputType = { + id: string + user_id: string + application: string + access_token: string + refresh_token: string + access_token_expiry: Date + refresh_token_expiry: Date | null + is_revoked: boolean + scopes: runtime.JsonValue + created_at: Date + updated_at: Date | null + sid: string + _count: OAuthSessionsCountAggregateOutputType | null + _min: OAuthSessionsMinAggregateOutputType | null + _max: OAuthSessionsMaxAggregateOutputType | null +} + +type GetOAuthSessionsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof OAuthSessionsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type OAuthSessionsWhereInput = { + AND?: Prisma.OAuthSessionsWhereInput | Prisma.OAuthSessionsWhereInput[] + OR?: Prisma.OAuthSessionsWhereInput[] + NOT?: Prisma.OAuthSessionsWhereInput | Prisma.OAuthSessionsWhereInput[] + id?: Prisma.StringFilter<"OAuthSessions"> | string + user_id?: Prisma.UuidFilter<"OAuthSessions"> | string + application?: Prisma.StringFilter<"OAuthSessions"> | string + access_token?: Prisma.StringFilter<"OAuthSessions"> | string + refresh_token?: Prisma.StringFilter<"OAuthSessions"> | string + access_token_expiry?: Prisma.DateTimeFilter<"OAuthSessions"> | Date | string + refresh_token_expiry?: Prisma.DateTimeNullableFilter<"OAuthSessions"> | Date | string | null + is_revoked?: Prisma.BoolFilter<"OAuthSessions"> | boolean + scopes?: Prisma.JsonFilter<"OAuthSessions"> + created_at?: Prisma.DateTimeFilter<"OAuthSessions"> | Date | string + updated_at?: Prisma.DateTimeNullableFilter<"OAuthSessions"> | Date | string | null + sid?: Prisma.StringFilter<"OAuthSessions"> | string + user?: Prisma.XOR +} + +export type OAuthSessionsOrderByWithRelationInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + application?: Prisma.SortOrder + access_token?: Prisma.SortOrder + refresh_token?: Prisma.SortOrder + access_token_expiry?: Prisma.SortOrder + refresh_token_expiry?: Prisma.SortOrderInput | Prisma.SortOrder + is_revoked?: Prisma.SortOrder + scopes?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + sid?: Prisma.SortOrder + user?: Prisma.UsersOrderByWithRelationInput +} + +export type OAuthSessionsWhereUniqueInput = Prisma.AtLeast<{ + id?: string + access_token?: string + refresh_token?: string + sid?: string + AND?: Prisma.OAuthSessionsWhereInput | Prisma.OAuthSessionsWhereInput[] + OR?: Prisma.OAuthSessionsWhereInput[] + NOT?: Prisma.OAuthSessionsWhereInput | Prisma.OAuthSessionsWhereInput[] + user_id?: Prisma.UuidFilter<"OAuthSessions"> | string + application?: Prisma.StringFilter<"OAuthSessions"> | string + access_token_expiry?: Prisma.DateTimeFilter<"OAuthSessions"> | Date | string + refresh_token_expiry?: Prisma.DateTimeNullableFilter<"OAuthSessions"> | Date | string | null + is_revoked?: Prisma.BoolFilter<"OAuthSessions"> | boolean + scopes?: Prisma.JsonFilter<"OAuthSessions"> + created_at?: Prisma.DateTimeFilter<"OAuthSessions"> | Date | string + updated_at?: Prisma.DateTimeNullableFilter<"OAuthSessions"> | Date | string | null + user?: Prisma.XOR +}, "id" | "access_token" | "refresh_token" | "sid"> + +export type OAuthSessionsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + application?: Prisma.SortOrder + access_token?: Prisma.SortOrder + refresh_token?: Prisma.SortOrder + access_token_expiry?: Prisma.SortOrder + refresh_token_expiry?: Prisma.SortOrderInput | Prisma.SortOrder + is_revoked?: Prisma.SortOrder + scopes?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrderInput | Prisma.SortOrder + sid?: Prisma.SortOrder + _count?: Prisma.OAuthSessionsCountOrderByAggregateInput + _max?: Prisma.OAuthSessionsMaxOrderByAggregateInput + _min?: Prisma.OAuthSessionsMinOrderByAggregateInput +} + +export type OAuthSessionsScalarWhereWithAggregatesInput = { + AND?: Prisma.OAuthSessionsScalarWhereWithAggregatesInput | Prisma.OAuthSessionsScalarWhereWithAggregatesInput[] + OR?: Prisma.OAuthSessionsScalarWhereWithAggregatesInput[] + NOT?: Prisma.OAuthSessionsScalarWhereWithAggregatesInput | Prisma.OAuthSessionsScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"OAuthSessions"> | string + user_id?: Prisma.UuidWithAggregatesFilter<"OAuthSessions"> | string + application?: Prisma.StringWithAggregatesFilter<"OAuthSessions"> | string + access_token?: Prisma.StringWithAggregatesFilter<"OAuthSessions"> | string + refresh_token?: Prisma.StringWithAggregatesFilter<"OAuthSessions"> | string + access_token_expiry?: Prisma.DateTimeWithAggregatesFilter<"OAuthSessions"> | Date | string + refresh_token_expiry?: Prisma.DateTimeNullableWithAggregatesFilter<"OAuthSessions"> | Date | string | null + is_revoked?: Prisma.BoolWithAggregatesFilter<"OAuthSessions"> | boolean + scopes?: Prisma.JsonWithAggregatesFilter<"OAuthSessions"> + created_at?: Prisma.DateTimeWithAggregatesFilter<"OAuthSessions"> | Date | string + updated_at?: Prisma.DateTimeNullableWithAggregatesFilter<"OAuthSessions"> | Date | string | null + sid?: Prisma.StringWithAggregatesFilter<"OAuthSessions"> | string +} + +export type OAuthSessionsCreateInput = { + id?: string + application: string + access_token: string + refresh_token: string + access_token_expiry: Date | string + refresh_token_expiry?: Date | string | null + is_revoked?: boolean + scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue + created_at?: Date | string + updated_at?: Date | string | null + sid: string + user: Prisma.UsersCreateNestedOneWithoutOauth_sessionsInput +} + +export type OAuthSessionsUncheckedCreateInput = { + id?: string + user_id: string + application: string + access_token: string + refresh_token: string + access_token_expiry: Date | string + refresh_token_expiry?: Date | string | null + is_revoked?: boolean + scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue + created_at?: Date | string + updated_at?: Date | string | null + sid: string +} + +export type OAuthSessionsUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + application?: Prisma.StringFieldUpdateOperationsInput | string + access_token?: Prisma.StringFieldUpdateOperationsInput | string + refresh_token?: Prisma.StringFieldUpdateOperationsInput | string + access_token_expiry?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + refresh_token_expiry?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + is_revoked?: Prisma.BoolFieldUpdateOperationsInput | boolean + scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sid?: Prisma.StringFieldUpdateOperationsInput | string + user?: Prisma.UsersUpdateOneRequiredWithoutOauth_sessionsNestedInput +} + +export type OAuthSessionsUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + user_id?: Prisma.StringFieldUpdateOperationsInput | string + application?: Prisma.StringFieldUpdateOperationsInput | string + access_token?: Prisma.StringFieldUpdateOperationsInput | string + refresh_token?: Prisma.StringFieldUpdateOperationsInput | string + access_token_expiry?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + refresh_token_expiry?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + is_revoked?: Prisma.BoolFieldUpdateOperationsInput | boolean + scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sid?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type OAuthSessionsCreateManyInput = { + id?: string + user_id: string + application: string + access_token: string + refresh_token: string + access_token_expiry: Date | string + refresh_token_expiry?: Date | string | null + is_revoked?: boolean + scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue + created_at?: Date | string + updated_at?: Date | string | null + sid: string +} + +export type OAuthSessionsUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + application?: Prisma.StringFieldUpdateOperationsInput | string + access_token?: Prisma.StringFieldUpdateOperationsInput | string + refresh_token?: Prisma.StringFieldUpdateOperationsInput | string + access_token_expiry?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + refresh_token_expiry?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + is_revoked?: Prisma.BoolFieldUpdateOperationsInput | boolean + scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sid?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type OAuthSessionsUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + user_id?: Prisma.StringFieldUpdateOperationsInput | string + application?: Prisma.StringFieldUpdateOperationsInput | string + access_token?: Prisma.StringFieldUpdateOperationsInput | string + refresh_token?: Prisma.StringFieldUpdateOperationsInput | string + access_token_expiry?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + refresh_token_expiry?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + is_revoked?: Prisma.BoolFieldUpdateOperationsInput | boolean + scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sid?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type OAuthSessionsListRelationFilter = { + every?: Prisma.OAuthSessionsWhereInput + some?: Prisma.OAuthSessionsWhereInput + none?: Prisma.OAuthSessionsWhereInput +} + +export type OAuthSessionsOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type OAuthSessionsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + application?: Prisma.SortOrder + access_token?: Prisma.SortOrder + refresh_token?: Prisma.SortOrder + access_token_expiry?: Prisma.SortOrder + refresh_token_expiry?: Prisma.SortOrder + is_revoked?: Prisma.SortOrder + scopes?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + sid?: Prisma.SortOrder +} + +export type OAuthSessionsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + application?: Prisma.SortOrder + access_token?: Prisma.SortOrder + refresh_token?: Prisma.SortOrder + access_token_expiry?: Prisma.SortOrder + refresh_token_expiry?: Prisma.SortOrder + is_revoked?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + sid?: Prisma.SortOrder +} + +export type OAuthSessionsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + application?: Prisma.SortOrder + access_token?: Prisma.SortOrder + refresh_token?: Prisma.SortOrder + access_token_expiry?: Prisma.SortOrder + refresh_token_expiry?: Prisma.SortOrder + is_revoked?: Prisma.SortOrder + created_at?: Prisma.SortOrder + updated_at?: Prisma.SortOrder + sid?: Prisma.SortOrder +} + +export type OAuthSessionsCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.OAuthSessionsCreateWithoutUserInput[] | Prisma.OAuthSessionsUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.OAuthSessionsCreateOrConnectWithoutUserInput | Prisma.OAuthSessionsCreateOrConnectWithoutUserInput[] + createMany?: Prisma.OAuthSessionsCreateManyUserInputEnvelope + connect?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] +} + +export type OAuthSessionsUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.OAuthSessionsCreateWithoutUserInput[] | Prisma.OAuthSessionsUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.OAuthSessionsCreateOrConnectWithoutUserInput | Prisma.OAuthSessionsCreateOrConnectWithoutUserInput[] + createMany?: Prisma.OAuthSessionsCreateManyUserInputEnvelope + connect?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] +} + +export type OAuthSessionsUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.OAuthSessionsCreateWithoutUserInput[] | Prisma.OAuthSessionsUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.OAuthSessionsCreateOrConnectWithoutUserInput | Prisma.OAuthSessionsCreateOrConnectWithoutUserInput[] + upsert?: Prisma.OAuthSessionsUpsertWithWhereUniqueWithoutUserInput | Prisma.OAuthSessionsUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.OAuthSessionsCreateManyUserInputEnvelope + set?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] + disconnect?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] + delete?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] + connect?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] + update?: Prisma.OAuthSessionsUpdateWithWhereUniqueWithoutUserInput | Prisma.OAuthSessionsUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.OAuthSessionsUpdateManyWithWhereWithoutUserInput | Prisma.OAuthSessionsUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.OAuthSessionsScalarWhereInput | Prisma.OAuthSessionsScalarWhereInput[] +} + +export type OAuthSessionsUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.OAuthSessionsCreateWithoutUserInput[] | Prisma.OAuthSessionsUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.OAuthSessionsCreateOrConnectWithoutUserInput | Prisma.OAuthSessionsCreateOrConnectWithoutUserInput[] + upsert?: Prisma.OAuthSessionsUpsertWithWhereUniqueWithoutUserInput | Prisma.OAuthSessionsUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.OAuthSessionsCreateManyUserInputEnvelope + set?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] + disconnect?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] + delete?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] + connect?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] + update?: Prisma.OAuthSessionsUpdateWithWhereUniqueWithoutUserInput | Prisma.OAuthSessionsUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.OAuthSessionsUpdateManyWithWhereWithoutUserInput | Prisma.OAuthSessionsUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.OAuthSessionsScalarWhereInput | Prisma.OAuthSessionsScalarWhereInput[] +} + +export type OAuthSessionsCreateWithoutUserInput = { + id?: string + application: string + access_token: string + refresh_token: string + access_token_expiry: Date | string + refresh_token_expiry?: Date | string | null + is_revoked?: boolean + scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue + created_at?: Date | string + updated_at?: Date | string | null + sid: string +} + +export type OAuthSessionsUncheckedCreateWithoutUserInput = { + id?: string + application: string + access_token: string + refresh_token: string + access_token_expiry: Date | string + refresh_token_expiry?: Date | string | null + is_revoked?: boolean + scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue + created_at?: Date | string + updated_at?: Date | string | null + sid: string +} + +export type OAuthSessionsCreateOrConnectWithoutUserInput = { + where: Prisma.OAuthSessionsWhereUniqueInput + create: Prisma.XOR +} + +export type OAuthSessionsCreateManyUserInputEnvelope = { + data: Prisma.OAuthSessionsCreateManyUserInput | Prisma.OAuthSessionsCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type OAuthSessionsUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.OAuthSessionsWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type OAuthSessionsUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.OAuthSessionsWhereUniqueInput + data: Prisma.XOR +} + +export type OAuthSessionsUpdateManyWithWhereWithoutUserInput = { + where: Prisma.OAuthSessionsScalarWhereInput + data: Prisma.XOR +} + +export type OAuthSessionsScalarWhereInput = { + AND?: Prisma.OAuthSessionsScalarWhereInput | Prisma.OAuthSessionsScalarWhereInput[] + OR?: Prisma.OAuthSessionsScalarWhereInput[] + NOT?: Prisma.OAuthSessionsScalarWhereInput | Prisma.OAuthSessionsScalarWhereInput[] + id?: Prisma.StringFilter<"OAuthSessions"> | string + user_id?: Prisma.UuidFilter<"OAuthSessions"> | string + application?: Prisma.StringFilter<"OAuthSessions"> | string + access_token?: Prisma.StringFilter<"OAuthSessions"> | string + refresh_token?: Prisma.StringFilter<"OAuthSessions"> | string + access_token_expiry?: Prisma.DateTimeFilter<"OAuthSessions"> | Date | string + refresh_token_expiry?: Prisma.DateTimeNullableFilter<"OAuthSessions"> | Date | string | null + is_revoked?: Prisma.BoolFilter<"OAuthSessions"> | boolean + scopes?: Prisma.JsonFilter<"OAuthSessions"> + created_at?: Prisma.DateTimeFilter<"OAuthSessions"> | Date | string + updated_at?: Prisma.DateTimeNullableFilter<"OAuthSessions"> | Date | string | null + sid?: Prisma.StringFilter<"OAuthSessions"> | string +} + +export type OAuthSessionsCreateManyUserInput = { + id?: string + application: string + access_token: string + refresh_token: string + access_token_expiry: Date | string + refresh_token_expiry?: Date | string | null + is_revoked?: boolean + scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue + created_at?: Date | string + updated_at?: Date | string | null + sid: string +} + +export type OAuthSessionsUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + application?: Prisma.StringFieldUpdateOperationsInput | string + access_token?: Prisma.StringFieldUpdateOperationsInput | string + refresh_token?: Prisma.StringFieldUpdateOperationsInput | string + access_token_expiry?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + refresh_token_expiry?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + is_revoked?: Prisma.BoolFieldUpdateOperationsInput | boolean + scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sid?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type OAuthSessionsUncheckedUpdateWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + application?: Prisma.StringFieldUpdateOperationsInput | string + access_token?: Prisma.StringFieldUpdateOperationsInput | string + refresh_token?: Prisma.StringFieldUpdateOperationsInput | string + access_token_expiry?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + refresh_token_expiry?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + is_revoked?: Prisma.BoolFieldUpdateOperationsInput | boolean + scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sid?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type OAuthSessionsUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + application?: Prisma.StringFieldUpdateOperationsInput | string + access_token?: Prisma.StringFieldUpdateOperationsInput | string + refresh_token?: Prisma.StringFieldUpdateOperationsInput | string + access_token_expiry?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + refresh_token_expiry?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + is_revoked?: Prisma.BoolFieldUpdateOperationsInput | boolean + scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue + created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + sid?: Prisma.StringFieldUpdateOperationsInput | string +} + + + +export type OAuthSessionsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + application?: boolean + access_token?: boolean + refresh_token?: boolean + access_token_expiry?: boolean + refresh_token_expiry?: boolean + is_revoked?: boolean + scopes?: boolean + created_at?: boolean + updated_at?: boolean + sid?: boolean + user?: boolean | Prisma.UsersDefaultArgs +}, ExtArgs["result"]["oAuthSessions"]> + +export type OAuthSessionsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + application?: boolean + access_token?: boolean + refresh_token?: boolean + access_token_expiry?: boolean + refresh_token_expiry?: boolean + is_revoked?: boolean + scopes?: boolean + created_at?: boolean + updated_at?: boolean + sid?: boolean + user?: boolean | Prisma.UsersDefaultArgs +}, ExtArgs["result"]["oAuthSessions"]> + +export type OAuthSessionsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + application?: boolean + access_token?: boolean + refresh_token?: boolean + access_token_expiry?: boolean + refresh_token_expiry?: boolean + is_revoked?: boolean + scopes?: boolean + created_at?: boolean + updated_at?: boolean + sid?: boolean + user?: boolean | Prisma.UsersDefaultArgs +}, ExtArgs["result"]["oAuthSessions"]> + +export type OAuthSessionsSelectScalar = { + id?: boolean + user_id?: boolean + application?: boolean + access_token?: boolean + refresh_token?: boolean + access_token_expiry?: boolean + refresh_token_expiry?: boolean + is_revoked?: boolean + scopes?: boolean + created_at?: boolean + updated_at?: boolean + sid?: boolean +} + +export type OAuthSessionsOmit = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "application" | "access_token" | "refresh_token" | "access_token_expiry" | "refresh_token_expiry" | "is_revoked" | "scopes" | "created_at" | "updated_at" | "sid", ExtArgs["result"]["oAuthSessions"]> +export type OAuthSessionsInclude = { + user?: boolean | Prisma.UsersDefaultArgs +} +export type OAuthSessionsIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UsersDefaultArgs +} +export type OAuthSessionsIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UsersDefaultArgs +} + +export type $OAuthSessionsPayload = { + name: "OAuthSessions" + objects: { + user: Prisma.$UsersPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + user_id: string + application: string + access_token: string + refresh_token: string + access_token_expiry: Date + refresh_token_expiry: Date | null + is_revoked: boolean + scopes: runtime.JsonValue + created_at: Date + updated_at: Date | null + sid: string + }, ExtArgs["result"]["oAuthSessions"]> + composites: {} +} + +export type OAuthSessionsGetPayload = runtime.Types.Result.GetResult + +export type OAuthSessionsCountArgs = + Omit & { + select?: OAuthSessionsCountAggregateInputType | true + } + +export interface OAuthSessionsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['OAuthSessions'], meta: { name: 'OAuthSessions' } } + /** + * Find zero or one OAuthSessions that matches the filter. + * @param {OAuthSessionsFindUniqueArgs} args - Arguments to find a OAuthSessions + * @example + * // Get one OAuthSessions + * const oAuthSessions = await prisma.oAuthSessions.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one OAuthSessions that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {OAuthSessionsFindUniqueOrThrowArgs} args - Arguments to find a OAuthSessions + * @example + * // Get one OAuthSessions + * const oAuthSessions = await prisma.oAuthSessions.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first OAuthSessions 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 {OAuthSessionsFindFirstArgs} args - Arguments to find a OAuthSessions + * @example + * // Get one OAuthSessions + * const oAuthSessions = await prisma.oAuthSessions.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first OAuthSessions 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 {OAuthSessionsFindFirstOrThrowArgs} args - Arguments to find a OAuthSessions + * @example + * // Get one OAuthSessions + * const oAuthSessions = await prisma.oAuthSessions.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more OAuthSessions 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 {OAuthSessionsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all OAuthSessions + * const oAuthSessions = await prisma.oAuthSessions.findMany() + * + * // Get first 10 OAuthSessions + * const oAuthSessions = await prisma.oAuthSessions.findMany({ take: 10 }) + * + * // Only select the `id` + * const oAuthSessionsWithIdOnly = await prisma.oAuthSessions.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a OAuthSessions. + * @param {OAuthSessionsCreateArgs} args - Arguments to create a OAuthSessions. + * @example + * // Create one OAuthSessions + * const OAuthSessions = await prisma.oAuthSessions.create({ + * data: { + * // ... data to create a OAuthSessions + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many OAuthSessions. + * @param {OAuthSessionsCreateManyArgs} args - Arguments to create many OAuthSessions. + * @example + * // Create many OAuthSessions + * const oAuthSessions = await prisma.oAuthSessions.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many OAuthSessions and returns the data saved in the database. + * @param {OAuthSessionsCreateManyAndReturnArgs} args - Arguments to create many OAuthSessions. + * @example + * // Create many OAuthSessions + * const oAuthSessions = await prisma.oAuthSessions.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many OAuthSessions and only return the `id` + * const oAuthSessionsWithIdOnly = await prisma.oAuthSessions.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 OAuthSessions. + * @param {OAuthSessionsDeleteArgs} args - Arguments to delete one OAuthSessions. + * @example + * // Delete one OAuthSessions + * const OAuthSessions = await prisma.oAuthSessions.delete({ + * where: { + * // ... filter to delete one OAuthSessions + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one OAuthSessions. + * @param {OAuthSessionsUpdateArgs} args - Arguments to update one OAuthSessions. + * @example + * // Update one OAuthSessions + * const oAuthSessions = await prisma.oAuthSessions.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more OAuthSessions. + * @param {OAuthSessionsDeleteManyArgs} args - Arguments to filter OAuthSessions to delete. + * @example + * // Delete a few OAuthSessions + * const { count } = await prisma.oAuthSessions.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more OAuthSessions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {OAuthSessionsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many OAuthSessions + * const oAuthSessions = await prisma.oAuthSessions.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more OAuthSessions and returns the data updated in the database. + * @param {OAuthSessionsUpdateManyAndReturnArgs} args - Arguments to update many OAuthSessions. + * @example + * // Update many OAuthSessions + * const oAuthSessions = await prisma.oAuthSessions.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more OAuthSessions and only return the `id` + * const oAuthSessionsWithIdOnly = await prisma.oAuthSessions.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 OAuthSessions. + * @param {OAuthSessionsUpsertArgs} args - Arguments to update or create a OAuthSessions. + * @example + * // Update or create a OAuthSessions + * const oAuthSessions = await prisma.oAuthSessions.upsert({ + * create: { + * // ... data to create a OAuthSessions + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the OAuthSessions we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of OAuthSessions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {OAuthSessionsCountArgs} args - Arguments to filter OAuthSessions to count. + * @example + * // Count the number of OAuthSessions + * const count = await prisma.oAuthSessions.count({ + * where: { + * // ... the filter for the OAuthSessions 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 OAuthSessions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {OAuthSessionsAggregateArgs} 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 OAuthSessions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {OAuthSessionsGroupByArgs} 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 OAuthSessionsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: OAuthSessionsGroupByArgs['orderBy'] } + : { orderBy?: OAuthSessionsGroupByArgs['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 ? GetOAuthSessionsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the OAuthSessions model + */ +readonly fields: OAuthSessionsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for OAuthSessions. + * 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__OAuthSessionsClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UsersClient, 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 OAuthSessions model + */ +export interface OAuthSessionsFieldRefs { + readonly id: Prisma.FieldRef<"OAuthSessions", 'String'> + readonly user_id: Prisma.FieldRef<"OAuthSessions", 'String'> + readonly application: Prisma.FieldRef<"OAuthSessions", 'String'> + readonly access_token: Prisma.FieldRef<"OAuthSessions", 'String'> + readonly refresh_token: Prisma.FieldRef<"OAuthSessions", 'String'> + readonly access_token_expiry: Prisma.FieldRef<"OAuthSessions", 'DateTime'> + readonly refresh_token_expiry: Prisma.FieldRef<"OAuthSessions", 'DateTime'> + readonly is_revoked: Prisma.FieldRef<"OAuthSessions", 'Boolean'> + readonly scopes: Prisma.FieldRef<"OAuthSessions", 'Json'> + readonly created_at: Prisma.FieldRef<"OAuthSessions", 'DateTime'> + readonly updated_at: Prisma.FieldRef<"OAuthSessions", 'DateTime'> + readonly sid: Prisma.FieldRef<"OAuthSessions", 'String'> +} + + +// Custom InputTypes +/** + * OAuthSessions findUnique + */ +export type OAuthSessionsFindUniqueArgs = { + /** + * Select specific fields to fetch from the OAuthSessions + */ + select?: Prisma.OAuthSessionsSelect | null + /** + * Omit specific fields from the OAuthSessions + */ + omit?: Prisma.OAuthSessionsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthSessionsInclude | null + /** + * Filter, which OAuthSessions to fetch. + */ + where: Prisma.OAuthSessionsWhereUniqueInput +} + +/** + * OAuthSessions findUniqueOrThrow + */ +export type OAuthSessionsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the OAuthSessions + */ + select?: Prisma.OAuthSessionsSelect | null + /** + * Omit specific fields from the OAuthSessions + */ + omit?: Prisma.OAuthSessionsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthSessionsInclude | null + /** + * Filter, which OAuthSessions to fetch. + */ + where: Prisma.OAuthSessionsWhereUniqueInput +} + +/** + * OAuthSessions findFirst + */ +export type OAuthSessionsFindFirstArgs = { + /** + * Select specific fields to fetch from the OAuthSessions + */ + select?: Prisma.OAuthSessionsSelect | null + /** + * Omit specific fields from the OAuthSessions + */ + omit?: Prisma.OAuthSessionsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthSessionsInclude | null + /** + * Filter, which OAuthSessions to fetch. + */ + where?: Prisma.OAuthSessionsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of OAuthSessions to fetch. + */ + orderBy?: Prisma.OAuthSessionsOrderByWithRelationInput | Prisma.OAuthSessionsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for OAuthSessions. + */ + cursor?: Prisma.OAuthSessionsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` OAuthSessions 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` OAuthSessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of OAuthSessions. + */ + distinct?: Prisma.OAuthSessionsScalarFieldEnum | Prisma.OAuthSessionsScalarFieldEnum[] +} + +/** + * OAuthSessions findFirstOrThrow + */ +export type OAuthSessionsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the OAuthSessions + */ + select?: Prisma.OAuthSessionsSelect | null + /** + * Omit specific fields from the OAuthSessions + */ + omit?: Prisma.OAuthSessionsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthSessionsInclude | null + /** + * Filter, which OAuthSessions to fetch. + */ + where?: Prisma.OAuthSessionsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of OAuthSessions to fetch. + */ + orderBy?: Prisma.OAuthSessionsOrderByWithRelationInput | Prisma.OAuthSessionsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for OAuthSessions. + */ + cursor?: Prisma.OAuthSessionsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` OAuthSessions 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` OAuthSessions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of OAuthSessions. + */ + distinct?: Prisma.OAuthSessionsScalarFieldEnum | Prisma.OAuthSessionsScalarFieldEnum[] +} + +/** + * OAuthSessions findMany + */ +export type OAuthSessionsFindManyArgs = { + /** + * Select specific fields to fetch from the OAuthSessions + */ + select?: Prisma.OAuthSessionsSelect | null + /** + * Omit specific fields from the OAuthSessions + */ + omit?: Prisma.OAuthSessionsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthSessionsInclude | null + /** + * Filter, which OAuthSessions to fetch. + */ + where?: Prisma.OAuthSessionsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of OAuthSessions to fetch. + */ + orderBy?: Prisma.OAuthSessionsOrderByWithRelationInput | Prisma.OAuthSessionsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing OAuthSessions. + */ + cursor?: Prisma.OAuthSessionsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` OAuthSessions 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` OAuthSessions. + */ + skip?: number + distinct?: Prisma.OAuthSessionsScalarFieldEnum | Prisma.OAuthSessionsScalarFieldEnum[] +} + +/** + * OAuthSessions create + */ +export type OAuthSessionsCreateArgs = { + /** + * Select specific fields to fetch from the OAuthSessions + */ + select?: Prisma.OAuthSessionsSelect | null + /** + * Omit specific fields from the OAuthSessions + */ + omit?: Prisma.OAuthSessionsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthSessionsInclude | null + /** + * The data needed to create a OAuthSessions. + */ + data: Prisma.XOR +} + +/** + * OAuthSessions createMany + */ +export type OAuthSessionsCreateManyArgs = { + /** + * The data used to create many OAuthSessions. + */ + data: Prisma.OAuthSessionsCreateManyInput | Prisma.OAuthSessionsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * OAuthSessions createManyAndReturn + */ +export type OAuthSessionsCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the OAuthSessions + */ + select?: Prisma.OAuthSessionsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the OAuthSessions + */ + omit?: Prisma.OAuthSessionsOmit | null + /** + * The data used to create many OAuthSessions. + */ + data: Prisma.OAuthSessionsCreateManyInput | Prisma.OAuthSessionsCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthSessionsIncludeCreateManyAndReturn | null +} + +/** + * OAuthSessions update + */ +export type OAuthSessionsUpdateArgs = { + /** + * Select specific fields to fetch from the OAuthSessions + */ + select?: Prisma.OAuthSessionsSelect | null + /** + * Omit specific fields from the OAuthSessions + */ + omit?: Prisma.OAuthSessionsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthSessionsInclude | null + /** + * The data needed to update a OAuthSessions. + */ + data: Prisma.XOR + /** + * Choose, which OAuthSessions to update. + */ + where: Prisma.OAuthSessionsWhereUniqueInput +} + +/** + * OAuthSessions updateMany + */ +export type OAuthSessionsUpdateManyArgs = { + /** + * The data used to update OAuthSessions. + */ + data: Prisma.XOR + /** + * Filter which OAuthSessions to update + */ + where?: Prisma.OAuthSessionsWhereInput + /** + * Limit how many OAuthSessions to update. + */ + limit?: number +} + +/** + * OAuthSessions updateManyAndReturn + */ +export type OAuthSessionsUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the OAuthSessions + */ + select?: Prisma.OAuthSessionsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the OAuthSessions + */ + omit?: Prisma.OAuthSessionsOmit | null + /** + * The data used to update OAuthSessions. + */ + data: Prisma.XOR + /** + * Filter which OAuthSessions to update + */ + where?: Prisma.OAuthSessionsWhereInput + /** + * Limit how many OAuthSessions to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthSessionsIncludeUpdateManyAndReturn | null +} + +/** + * OAuthSessions upsert + */ +export type OAuthSessionsUpsertArgs = { + /** + * Select specific fields to fetch from the OAuthSessions + */ + select?: Prisma.OAuthSessionsSelect | null + /** + * Omit specific fields from the OAuthSessions + */ + omit?: Prisma.OAuthSessionsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthSessionsInclude | null + /** + * The filter to search for the OAuthSessions to update in case it exists. + */ + where: Prisma.OAuthSessionsWhereUniqueInput + /** + * In case the OAuthSessions found by the `where` argument doesn't exist, create a new OAuthSessions with this data. + */ + create: Prisma.XOR + /** + * In case the OAuthSessions was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * OAuthSessions delete + */ +export type OAuthSessionsDeleteArgs = { + /** + * Select specific fields to fetch from the OAuthSessions + */ + select?: Prisma.OAuthSessionsSelect | null + /** + * Omit specific fields from the OAuthSessions + */ + omit?: Prisma.OAuthSessionsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthSessionsInclude | null + /** + * Filter which OAuthSessions to delete. + */ + where: Prisma.OAuthSessionsWhereUniqueInput +} + +/** + * OAuthSessions deleteMany + */ +export type OAuthSessionsDeleteManyArgs = { + /** + * Filter which OAuthSessions to delete + */ + where?: Prisma.OAuthSessionsWhereInput + /** + * Limit how many OAuthSessions to delete. + */ + limit?: number +} + +/** + * OAuthSessions without action + */ +export type OAuthSessionsDefaultArgs = { + /** + * Select specific fields to fetch from the OAuthSessions + */ + select?: Prisma.OAuthSessionsSelect | null + /** + * Omit specific fields from the OAuthSessions + */ + omit?: Prisma.OAuthSessionsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthSessionsInclude | null +} diff --git a/prisma/generated/postgres/models/PaidTimeOff.ts b/prisma/generated/postgres/models/PaidTimeOff.ts new file mode 100644 index 0000000..69ec8ff --- /dev/null +++ b/prisma/generated/postgres/models/PaidTimeOff.ts @@ -0,0 +1,1393 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `PaidTimeOff` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model PaidTimeOff + * + */ +export type PaidTimeOffModel = runtime.Types.Result.DefaultSelection + +export type AggregatePaidTimeOff = { + _count: PaidTimeOffCountAggregateOutputType | null + _avg: PaidTimeOffAvgAggregateOutputType | null + _sum: PaidTimeOffSumAggregateOutputType | null + _min: PaidTimeOffMinAggregateOutputType | null + _max: PaidTimeOffMaxAggregateOutputType | null +} + +export type PaidTimeOffAvgAggregateOutputType = { + id: number | null + employee_id: number | null + vacation_hours: runtime.Decimal | null + banked_hours: runtime.Decimal | null + sick_hours: runtime.Decimal | null +} + +export type PaidTimeOffSumAggregateOutputType = { + id: number | null + employee_id: number | null + vacation_hours: runtime.Decimal | null + banked_hours: runtime.Decimal | null + sick_hours: runtime.Decimal | null +} + +export type PaidTimeOffMinAggregateOutputType = { + id: number | null + employee_id: number | null + vacation_hours: runtime.Decimal | null + banked_hours: runtime.Decimal | null + sick_hours: runtime.Decimal | null + last_updated: Date | null +} + +export type PaidTimeOffMaxAggregateOutputType = { + id: number | null + employee_id: number | null + vacation_hours: runtime.Decimal | null + banked_hours: runtime.Decimal | null + sick_hours: runtime.Decimal | null + last_updated: Date | null +} + +export type PaidTimeOffCountAggregateOutputType = { + id: number + employee_id: number + vacation_hours: number + banked_hours: number + sick_hours: number + last_updated: number + _all: number +} + + +export type PaidTimeOffAvgAggregateInputType = { + id?: true + employee_id?: true + vacation_hours?: true + banked_hours?: true + sick_hours?: true +} + +export type PaidTimeOffSumAggregateInputType = { + id?: true + employee_id?: true + vacation_hours?: true + banked_hours?: true + sick_hours?: true +} + +export type PaidTimeOffMinAggregateInputType = { + id?: true + employee_id?: true + vacation_hours?: true + banked_hours?: true + sick_hours?: true + last_updated?: true +} + +export type PaidTimeOffMaxAggregateInputType = { + id?: true + employee_id?: true + vacation_hours?: true + banked_hours?: true + sick_hours?: true + last_updated?: true +} + +export type PaidTimeOffCountAggregateInputType = { + id?: true + employee_id?: true + vacation_hours?: true + banked_hours?: true + sick_hours?: true + last_updated?: true + _all?: true +} + +export type PaidTimeOffAggregateArgs = { + /** + * Filter which PaidTimeOff to aggregate. + */ + where?: Prisma.PaidTimeOffWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of PaidTimeOffs to fetch. + */ + orderBy?: Prisma.PaidTimeOffOrderByWithRelationInput | Prisma.PaidTimeOffOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.PaidTimeOffWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` PaidTimeOffs 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` PaidTimeOffs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned PaidTimeOffs + **/ + _count?: true | PaidTimeOffCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: PaidTimeOffAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: PaidTimeOffSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: PaidTimeOffMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: PaidTimeOffMaxAggregateInputType +} + +export type GetPaidTimeOffAggregateType = { + [P in keyof T & keyof AggregatePaidTimeOff]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type PaidTimeOffGroupByArgs = { + where?: Prisma.PaidTimeOffWhereInput + orderBy?: Prisma.PaidTimeOffOrderByWithAggregationInput | Prisma.PaidTimeOffOrderByWithAggregationInput[] + by: Prisma.PaidTimeOffScalarFieldEnum[] | Prisma.PaidTimeOffScalarFieldEnum + having?: Prisma.PaidTimeOffScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: PaidTimeOffCountAggregateInputType | true + _avg?: PaidTimeOffAvgAggregateInputType + _sum?: PaidTimeOffSumAggregateInputType + _min?: PaidTimeOffMinAggregateInputType + _max?: PaidTimeOffMaxAggregateInputType +} + +export type PaidTimeOffGroupByOutputType = { + id: number + employee_id: number + vacation_hours: runtime.Decimal + banked_hours: runtime.Decimal + sick_hours: runtime.Decimal + last_updated: Date | null + _count: PaidTimeOffCountAggregateOutputType | null + _avg: PaidTimeOffAvgAggregateOutputType | null + _sum: PaidTimeOffSumAggregateOutputType | null + _min: PaidTimeOffMinAggregateOutputType | null + _max: PaidTimeOffMaxAggregateOutputType | null +} + +type GetPaidTimeOffGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof PaidTimeOffGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type PaidTimeOffWhereInput = { + AND?: Prisma.PaidTimeOffWhereInput | Prisma.PaidTimeOffWhereInput[] + OR?: Prisma.PaidTimeOffWhereInput[] + NOT?: Prisma.PaidTimeOffWhereInput | Prisma.PaidTimeOffWhereInput[] + id?: Prisma.IntFilter<"PaidTimeOff"> | number + employee_id?: Prisma.IntFilter<"PaidTimeOff"> | number + vacation_hours?: Prisma.DecimalFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string + banked_hours?: Prisma.DecimalFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string + sick_hours?: Prisma.DecimalFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string + last_updated?: Prisma.DateTimeNullableFilter<"PaidTimeOff"> | Date | string | null + employee?: Prisma.XOR +} + +export type PaidTimeOffOrderByWithRelationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + vacation_hours?: Prisma.SortOrder + banked_hours?: Prisma.SortOrder + sick_hours?: Prisma.SortOrder + last_updated?: Prisma.SortOrderInput | Prisma.SortOrder + employee?: Prisma.EmployeesOrderByWithRelationInput +} + +export type PaidTimeOffWhereUniqueInput = Prisma.AtLeast<{ + id?: number + employee_id?: number + AND?: Prisma.PaidTimeOffWhereInput | Prisma.PaidTimeOffWhereInput[] + OR?: Prisma.PaidTimeOffWhereInput[] + NOT?: Prisma.PaidTimeOffWhereInput | Prisma.PaidTimeOffWhereInput[] + vacation_hours?: Prisma.DecimalFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string + banked_hours?: Prisma.DecimalFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string + sick_hours?: Prisma.DecimalFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string + last_updated?: Prisma.DateTimeNullableFilter<"PaidTimeOff"> | Date | string | null + employee?: Prisma.XOR +}, "id" | "employee_id"> + +export type PaidTimeOffOrderByWithAggregationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + vacation_hours?: Prisma.SortOrder + banked_hours?: Prisma.SortOrder + sick_hours?: Prisma.SortOrder + last_updated?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.PaidTimeOffCountOrderByAggregateInput + _avg?: Prisma.PaidTimeOffAvgOrderByAggregateInput + _max?: Prisma.PaidTimeOffMaxOrderByAggregateInput + _min?: Prisma.PaidTimeOffMinOrderByAggregateInput + _sum?: Prisma.PaidTimeOffSumOrderByAggregateInput +} + +export type PaidTimeOffScalarWhereWithAggregatesInput = { + AND?: Prisma.PaidTimeOffScalarWhereWithAggregatesInput | Prisma.PaidTimeOffScalarWhereWithAggregatesInput[] + OR?: Prisma.PaidTimeOffScalarWhereWithAggregatesInput[] + NOT?: Prisma.PaidTimeOffScalarWhereWithAggregatesInput | Prisma.PaidTimeOffScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"PaidTimeOff"> | number + employee_id?: Prisma.IntWithAggregatesFilter<"PaidTimeOff"> | number + vacation_hours?: Prisma.DecimalWithAggregatesFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string + banked_hours?: Prisma.DecimalWithAggregatesFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string + sick_hours?: Prisma.DecimalWithAggregatesFilter<"PaidTimeOff"> | runtime.Decimal | runtime.DecimalJsLike | number | string + last_updated?: Prisma.DateTimeNullableWithAggregatesFilter<"PaidTimeOff"> | Date | string | null +} + +export type PaidTimeOffCreateInput = { + vacation_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string + banked_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string + sick_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string + last_updated?: Date | string | null + employee: Prisma.EmployeesCreateNestedOneWithoutPaid_time_offInput +} + +export type PaidTimeOffUncheckedCreateInput = { + id?: number + employee_id: number + vacation_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string + banked_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string + sick_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string + last_updated?: Date | string | null +} + +export type PaidTimeOffUpdateInput = { + vacation_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + banked_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + sick_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + last_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null + employee?: Prisma.EmployeesUpdateOneRequiredWithoutPaid_time_offNestedInput +} + +export type PaidTimeOffUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + vacation_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + banked_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + sick_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + last_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null +} + +export type PaidTimeOffCreateManyInput = { + id?: number + employee_id: number + vacation_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string + banked_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string + sick_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string + last_updated?: Date | string | null +} + +export type PaidTimeOffUpdateManyMutationInput = { + vacation_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + banked_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + sick_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + last_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null +} + +export type PaidTimeOffUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + vacation_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + banked_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + sick_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + last_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null +} + +export type PaidTimeOffNullableScalarRelationFilter = { + is?: Prisma.PaidTimeOffWhereInput | null + isNot?: Prisma.PaidTimeOffWhereInput | null +} + +export type PaidTimeOffCountOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + vacation_hours?: Prisma.SortOrder + banked_hours?: Prisma.SortOrder + sick_hours?: Prisma.SortOrder + last_updated?: Prisma.SortOrder +} + +export type PaidTimeOffAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + vacation_hours?: Prisma.SortOrder + banked_hours?: Prisma.SortOrder + sick_hours?: Prisma.SortOrder +} + +export type PaidTimeOffMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + vacation_hours?: Prisma.SortOrder + banked_hours?: Prisma.SortOrder + sick_hours?: Prisma.SortOrder + last_updated?: Prisma.SortOrder +} + +export type PaidTimeOffMinOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + vacation_hours?: Prisma.SortOrder + banked_hours?: Prisma.SortOrder + sick_hours?: Prisma.SortOrder + last_updated?: Prisma.SortOrder +} + +export type PaidTimeOffSumOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + vacation_hours?: Prisma.SortOrder + banked_hours?: Prisma.SortOrder + sick_hours?: Prisma.SortOrder +} + +export type PaidTimeOffCreateNestedOneWithoutEmployeeInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.PaidTimeOffCreateOrConnectWithoutEmployeeInput + connect?: Prisma.PaidTimeOffWhereUniqueInput +} + +export type PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.PaidTimeOffCreateOrConnectWithoutEmployeeInput + connect?: Prisma.PaidTimeOffWhereUniqueInput +} + +export type PaidTimeOffUpdateOneWithoutEmployeeNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.PaidTimeOffCreateOrConnectWithoutEmployeeInput + upsert?: Prisma.PaidTimeOffUpsertWithoutEmployeeInput + disconnect?: Prisma.PaidTimeOffWhereInput | boolean + delete?: Prisma.PaidTimeOffWhereInput | boolean + connect?: Prisma.PaidTimeOffWhereUniqueInput + update?: Prisma.XOR, Prisma.PaidTimeOffUncheckedUpdateWithoutEmployeeInput> +} + +export type PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.PaidTimeOffCreateOrConnectWithoutEmployeeInput + upsert?: Prisma.PaidTimeOffUpsertWithoutEmployeeInput + disconnect?: Prisma.PaidTimeOffWhereInput | boolean + delete?: Prisma.PaidTimeOffWhereInput | boolean + connect?: Prisma.PaidTimeOffWhereUniqueInput + update?: Prisma.XOR, Prisma.PaidTimeOffUncheckedUpdateWithoutEmployeeInput> +} + +export type DecimalFieldUpdateOperationsInput = { + set?: runtime.Decimal | runtime.DecimalJsLike | number | string + increment?: runtime.Decimal | runtime.DecimalJsLike | number | string + decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string + multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string + divide?: runtime.Decimal | runtime.DecimalJsLike | number | string +} + +export type PaidTimeOffCreateWithoutEmployeeInput = { + vacation_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string + banked_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string + sick_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string + last_updated?: Date | string | null +} + +export type PaidTimeOffUncheckedCreateWithoutEmployeeInput = { + id?: number + vacation_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string + banked_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string + sick_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string + last_updated?: Date | string | null +} + +export type PaidTimeOffCreateOrConnectWithoutEmployeeInput = { + where: Prisma.PaidTimeOffWhereUniqueInput + create: Prisma.XOR +} + +export type PaidTimeOffUpsertWithoutEmployeeInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.PaidTimeOffWhereInput +} + +export type PaidTimeOffUpdateToOneWithWhereWithoutEmployeeInput = { + where?: Prisma.PaidTimeOffWhereInput + data: Prisma.XOR +} + +export type PaidTimeOffUpdateWithoutEmployeeInput = { + vacation_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + banked_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + sick_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + last_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null +} + +export type PaidTimeOffUncheckedUpdateWithoutEmployeeInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + vacation_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + banked_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + sick_hours?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string + last_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null +} + + + +export type PaidTimeOffSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + vacation_hours?: boolean + banked_hours?: boolean + sick_hours?: boolean + last_updated?: boolean + employee?: boolean | Prisma.EmployeesDefaultArgs +}, ExtArgs["result"]["paidTimeOff"]> + +export type PaidTimeOffSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + vacation_hours?: boolean + banked_hours?: boolean + sick_hours?: boolean + last_updated?: boolean + employee?: boolean | Prisma.EmployeesDefaultArgs +}, ExtArgs["result"]["paidTimeOff"]> + +export type PaidTimeOffSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + vacation_hours?: boolean + banked_hours?: boolean + sick_hours?: boolean + last_updated?: boolean + employee?: boolean | Prisma.EmployeesDefaultArgs +}, ExtArgs["result"]["paidTimeOff"]> + +export type PaidTimeOffSelectScalar = { + id?: boolean + employee_id?: boolean + vacation_hours?: boolean + banked_hours?: boolean + sick_hours?: boolean + last_updated?: boolean +} + +export type PaidTimeOffOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "vacation_hours" | "banked_hours" | "sick_hours" | "last_updated", ExtArgs["result"]["paidTimeOff"]> +export type PaidTimeOffInclude = { + employee?: boolean | Prisma.EmployeesDefaultArgs +} +export type PaidTimeOffIncludeCreateManyAndReturn = { + employee?: boolean | Prisma.EmployeesDefaultArgs +} +export type PaidTimeOffIncludeUpdateManyAndReturn = { + employee?: boolean | Prisma.EmployeesDefaultArgs +} + +export type $PaidTimeOffPayload = { + name: "PaidTimeOff" + objects: { + employee: Prisma.$EmployeesPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + employee_id: number + vacation_hours: runtime.Decimal + banked_hours: runtime.Decimal + sick_hours: runtime.Decimal + last_updated: Date | null + }, ExtArgs["result"]["paidTimeOff"]> + composites: {} +} + +export type PaidTimeOffGetPayload = runtime.Types.Result.GetResult + +export type PaidTimeOffCountArgs = + Omit & { + select?: PaidTimeOffCountAggregateInputType | true + } + +export interface PaidTimeOffDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['PaidTimeOff'], meta: { name: 'PaidTimeOff' } } + /** + * Find zero or one PaidTimeOff that matches the filter. + * @param {PaidTimeOffFindUniqueArgs} args - Arguments to find a PaidTimeOff + * @example + * // Get one PaidTimeOff + * const paidTimeOff = await prisma.paidTimeOff.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one PaidTimeOff that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {PaidTimeOffFindUniqueOrThrowArgs} args - Arguments to find a PaidTimeOff + * @example + * // Get one PaidTimeOff + * const paidTimeOff = await prisma.paidTimeOff.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first PaidTimeOff 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 {PaidTimeOffFindFirstArgs} args - Arguments to find a PaidTimeOff + * @example + * // Get one PaidTimeOff + * const paidTimeOff = await prisma.paidTimeOff.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first PaidTimeOff 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 {PaidTimeOffFindFirstOrThrowArgs} args - Arguments to find a PaidTimeOff + * @example + * // Get one PaidTimeOff + * const paidTimeOff = await prisma.paidTimeOff.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more PaidTimeOffs 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 {PaidTimeOffFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all PaidTimeOffs + * const paidTimeOffs = await prisma.paidTimeOff.findMany() + * + * // Get first 10 PaidTimeOffs + * const paidTimeOffs = await prisma.paidTimeOff.findMany({ take: 10 }) + * + * // Only select the `id` + * const paidTimeOffWithIdOnly = await prisma.paidTimeOff.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a PaidTimeOff. + * @param {PaidTimeOffCreateArgs} args - Arguments to create a PaidTimeOff. + * @example + * // Create one PaidTimeOff + * const PaidTimeOff = await prisma.paidTimeOff.create({ + * data: { + * // ... data to create a PaidTimeOff + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many PaidTimeOffs. + * @param {PaidTimeOffCreateManyArgs} args - Arguments to create many PaidTimeOffs. + * @example + * // Create many PaidTimeOffs + * const paidTimeOff = await prisma.paidTimeOff.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many PaidTimeOffs and returns the data saved in the database. + * @param {PaidTimeOffCreateManyAndReturnArgs} args - Arguments to create many PaidTimeOffs. + * @example + * // Create many PaidTimeOffs + * const paidTimeOff = await prisma.paidTimeOff.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many PaidTimeOffs and only return the `id` + * const paidTimeOffWithIdOnly = await prisma.paidTimeOff.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 PaidTimeOff. + * @param {PaidTimeOffDeleteArgs} args - Arguments to delete one PaidTimeOff. + * @example + * // Delete one PaidTimeOff + * const PaidTimeOff = await prisma.paidTimeOff.delete({ + * where: { + * // ... filter to delete one PaidTimeOff + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one PaidTimeOff. + * @param {PaidTimeOffUpdateArgs} args - Arguments to update one PaidTimeOff. + * @example + * // Update one PaidTimeOff + * const paidTimeOff = await prisma.paidTimeOff.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more PaidTimeOffs. + * @param {PaidTimeOffDeleteManyArgs} args - Arguments to filter PaidTimeOffs to delete. + * @example + * // Delete a few PaidTimeOffs + * const { count } = await prisma.paidTimeOff.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more PaidTimeOffs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PaidTimeOffUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many PaidTimeOffs + * const paidTimeOff = await prisma.paidTimeOff.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more PaidTimeOffs and returns the data updated in the database. + * @param {PaidTimeOffUpdateManyAndReturnArgs} args - Arguments to update many PaidTimeOffs. + * @example + * // Update many PaidTimeOffs + * const paidTimeOff = await prisma.paidTimeOff.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more PaidTimeOffs and only return the `id` + * const paidTimeOffWithIdOnly = await prisma.paidTimeOff.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 PaidTimeOff. + * @param {PaidTimeOffUpsertArgs} args - Arguments to update or create a PaidTimeOff. + * @example + * // Update or create a PaidTimeOff + * const paidTimeOff = await prisma.paidTimeOff.upsert({ + * create: { + * // ... data to create a PaidTimeOff + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the PaidTimeOff we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__PaidTimeOffClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of PaidTimeOffs. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PaidTimeOffCountArgs} args - Arguments to filter PaidTimeOffs to count. + * @example + * // Count the number of PaidTimeOffs + * const count = await prisma.paidTimeOff.count({ + * where: { + * // ... the filter for the PaidTimeOffs 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 PaidTimeOff. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PaidTimeOffAggregateArgs} 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 PaidTimeOff. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PaidTimeOffGroupByArgs} 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 PaidTimeOffGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: PaidTimeOffGroupByArgs['orderBy'] } + : { orderBy?: PaidTimeOffGroupByArgs['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 ? GetPaidTimeOffGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the PaidTimeOff model + */ +readonly fields: PaidTimeOffFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for PaidTimeOff. + * 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__PaidTimeOffClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + employee = {}>(args?: Prisma.Subset>): Prisma.Prisma__EmployeesClient, 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 PaidTimeOff model + */ +export interface PaidTimeOffFieldRefs { + readonly id: Prisma.FieldRef<"PaidTimeOff", 'Int'> + readonly employee_id: Prisma.FieldRef<"PaidTimeOff", 'Int'> + readonly vacation_hours: Prisma.FieldRef<"PaidTimeOff", 'Decimal'> + readonly banked_hours: Prisma.FieldRef<"PaidTimeOff", 'Decimal'> + readonly sick_hours: Prisma.FieldRef<"PaidTimeOff", 'Decimal'> + readonly last_updated: Prisma.FieldRef<"PaidTimeOff", 'DateTime'> +} + + +// Custom InputTypes +/** + * PaidTimeOff findUnique + */ +export type PaidTimeOffFindUniqueArgs = { + /** + * Select specific fields to fetch from the PaidTimeOff + */ + select?: Prisma.PaidTimeOffSelect | null + /** + * Omit specific fields from the PaidTimeOff + */ + omit?: Prisma.PaidTimeOffOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaidTimeOffInclude | null + /** + * Filter, which PaidTimeOff to fetch. + */ + where: Prisma.PaidTimeOffWhereUniqueInput +} + +/** + * PaidTimeOff findUniqueOrThrow + */ +export type PaidTimeOffFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the PaidTimeOff + */ + select?: Prisma.PaidTimeOffSelect | null + /** + * Omit specific fields from the PaidTimeOff + */ + omit?: Prisma.PaidTimeOffOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaidTimeOffInclude | null + /** + * Filter, which PaidTimeOff to fetch. + */ + where: Prisma.PaidTimeOffWhereUniqueInput +} + +/** + * PaidTimeOff findFirst + */ +export type PaidTimeOffFindFirstArgs = { + /** + * Select specific fields to fetch from the PaidTimeOff + */ + select?: Prisma.PaidTimeOffSelect | null + /** + * Omit specific fields from the PaidTimeOff + */ + omit?: Prisma.PaidTimeOffOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaidTimeOffInclude | null + /** + * Filter, which PaidTimeOff to fetch. + */ + where?: Prisma.PaidTimeOffWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of PaidTimeOffs to fetch. + */ + orderBy?: Prisma.PaidTimeOffOrderByWithRelationInput | Prisma.PaidTimeOffOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for PaidTimeOffs. + */ + cursor?: Prisma.PaidTimeOffWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` PaidTimeOffs 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` PaidTimeOffs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of PaidTimeOffs. + */ + distinct?: Prisma.PaidTimeOffScalarFieldEnum | Prisma.PaidTimeOffScalarFieldEnum[] +} + +/** + * PaidTimeOff findFirstOrThrow + */ +export type PaidTimeOffFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the PaidTimeOff + */ + select?: Prisma.PaidTimeOffSelect | null + /** + * Omit specific fields from the PaidTimeOff + */ + omit?: Prisma.PaidTimeOffOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaidTimeOffInclude | null + /** + * Filter, which PaidTimeOff to fetch. + */ + where?: Prisma.PaidTimeOffWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of PaidTimeOffs to fetch. + */ + orderBy?: Prisma.PaidTimeOffOrderByWithRelationInput | Prisma.PaidTimeOffOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for PaidTimeOffs. + */ + cursor?: Prisma.PaidTimeOffWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` PaidTimeOffs 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` PaidTimeOffs. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of PaidTimeOffs. + */ + distinct?: Prisma.PaidTimeOffScalarFieldEnum | Prisma.PaidTimeOffScalarFieldEnum[] +} + +/** + * PaidTimeOff findMany + */ +export type PaidTimeOffFindManyArgs = { + /** + * Select specific fields to fetch from the PaidTimeOff + */ + select?: Prisma.PaidTimeOffSelect | null + /** + * Omit specific fields from the PaidTimeOff + */ + omit?: Prisma.PaidTimeOffOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaidTimeOffInclude | null + /** + * Filter, which PaidTimeOffs to fetch. + */ + where?: Prisma.PaidTimeOffWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of PaidTimeOffs to fetch. + */ + orderBy?: Prisma.PaidTimeOffOrderByWithRelationInput | Prisma.PaidTimeOffOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing PaidTimeOffs. + */ + cursor?: Prisma.PaidTimeOffWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` PaidTimeOffs 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` PaidTimeOffs. + */ + skip?: number + distinct?: Prisma.PaidTimeOffScalarFieldEnum | Prisma.PaidTimeOffScalarFieldEnum[] +} + +/** + * PaidTimeOff create + */ +export type PaidTimeOffCreateArgs = { + /** + * Select specific fields to fetch from the PaidTimeOff + */ + select?: Prisma.PaidTimeOffSelect | null + /** + * Omit specific fields from the PaidTimeOff + */ + omit?: Prisma.PaidTimeOffOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaidTimeOffInclude | null + /** + * The data needed to create a PaidTimeOff. + */ + data: Prisma.XOR +} + +/** + * PaidTimeOff createMany + */ +export type PaidTimeOffCreateManyArgs = { + /** + * The data used to create many PaidTimeOffs. + */ + data: Prisma.PaidTimeOffCreateManyInput | Prisma.PaidTimeOffCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * PaidTimeOff createManyAndReturn + */ +export type PaidTimeOffCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the PaidTimeOff + */ + select?: Prisma.PaidTimeOffSelectCreateManyAndReturn | null + /** + * Omit specific fields from the PaidTimeOff + */ + omit?: Prisma.PaidTimeOffOmit | null + /** + * The data used to create many PaidTimeOffs. + */ + data: Prisma.PaidTimeOffCreateManyInput | Prisma.PaidTimeOffCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaidTimeOffIncludeCreateManyAndReturn | null +} + +/** + * PaidTimeOff update + */ +export type PaidTimeOffUpdateArgs = { + /** + * Select specific fields to fetch from the PaidTimeOff + */ + select?: Prisma.PaidTimeOffSelect | null + /** + * Omit specific fields from the PaidTimeOff + */ + omit?: Prisma.PaidTimeOffOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaidTimeOffInclude | null + /** + * The data needed to update a PaidTimeOff. + */ + data: Prisma.XOR + /** + * Choose, which PaidTimeOff to update. + */ + where: Prisma.PaidTimeOffWhereUniqueInput +} + +/** + * PaidTimeOff updateMany + */ +export type PaidTimeOffUpdateManyArgs = { + /** + * The data used to update PaidTimeOffs. + */ + data: Prisma.XOR + /** + * Filter which PaidTimeOffs to update + */ + where?: Prisma.PaidTimeOffWhereInput + /** + * Limit how many PaidTimeOffs to update. + */ + limit?: number +} + +/** + * PaidTimeOff updateManyAndReturn + */ +export type PaidTimeOffUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the PaidTimeOff + */ + select?: Prisma.PaidTimeOffSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the PaidTimeOff + */ + omit?: Prisma.PaidTimeOffOmit | null + /** + * The data used to update PaidTimeOffs. + */ + data: Prisma.XOR + /** + * Filter which PaidTimeOffs to update + */ + where?: Prisma.PaidTimeOffWhereInput + /** + * Limit how many PaidTimeOffs to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaidTimeOffIncludeUpdateManyAndReturn | null +} + +/** + * PaidTimeOff upsert + */ +export type PaidTimeOffUpsertArgs = { + /** + * Select specific fields to fetch from the PaidTimeOff + */ + select?: Prisma.PaidTimeOffSelect | null + /** + * Omit specific fields from the PaidTimeOff + */ + omit?: Prisma.PaidTimeOffOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaidTimeOffInclude | null + /** + * The filter to search for the PaidTimeOff to update in case it exists. + */ + where: Prisma.PaidTimeOffWhereUniqueInput + /** + * In case the PaidTimeOff found by the `where` argument doesn't exist, create a new PaidTimeOff with this data. + */ + create: Prisma.XOR + /** + * In case the PaidTimeOff was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * PaidTimeOff delete + */ +export type PaidTimeOffDeleteArgs = { + /** + * Select specific fields to fetch from the PaidTimeOff + */ + select?: Prisma.PaidTimeOffSelect | null + /** + * Omit specific fields from the PaidTimeOff + */ + omit?: Prisma.PaidTimeOffOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaidTimeOffInclude | null + /** + * Filter which PaidTimeOff to delete. + */ + where: Prisma.PaidTimeOffWhereUniqueInput +} + +/** + * PaidTimeOff deleteMany + */ +export type PaidTimeOffDeleteManyArgs = { + /** + * Filter which PaidTimeOffs to delete + */ + where?: Prisma.PaidTimeOffWhereInput + /** + * Limit how many PaidTimeOffs to delete. + */ + limit?: number +} + +/** + * PaidTimeOff without action + */ +export type PaidTimeOffDefaultArgs = { + /** + * Select specific fields to fetch from the PaidTimeOff + */ + select?: Prisma.PaidTimeOffSelect | null + /** + * Omit specific fields from the PaidTimeOff + */ + omit?: Prisma.PaidTimeOffOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PaidTimeOffInclude | null +} diff --git a/prisma/generated/postgres/models/PayPeriods.ts b/prisma/generated/postgres/models/PayPeriods.ts new file mode 100644 index 0000000..64e3557 --- /dev/null +++ b/prisma/generated/postgres/models/PayPeriods.ts @@ -0,0 +1,719 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `PayPeriods` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model PayPeriods + * + */ +export type PayPeriodsModel = runtime.Types.Result.DefaultSelection + +export type AggregatePayPeriods = { + _count: PayPeriodsCountAggregateOutputType | null + _avg: PayPeriodsAvgAggregateOutputType | null + _sum: PayPeriodsSumAggregateOutputType | null + _min: PayPeriodsMinAggregateOutputType | null + _max: PayPeriodsMaxAggregateOutputType | null +} + +export type PayPeriodsAvgAggregateOutputType = { + pay_year: number | null + pay_period_no: number | null +} + +export type PayPeriodsSumAggregateOutputType = { + pay_year: number | null + pay_period_no: number | null +} + +export type PayPeriodsMinAggregateOutputType = { + pay_year: number | null + pay_period_no: number | null + period_start: Date | null + period_end: Date | null + payday: Date | null + label: string | null +} + +export type PayPeriodsMaxAggregateOutputType = { + pay_year: number | null + pay_period_no: number | null + period_start: Date | null + period_end: Date | null + payday: Date | null + label: string | null +} + +export type PayPeriodsCountAggregateOutputType = { + pay_year: number + pay_period_no: number + period_start: number + period_end: number + payday: number + label: number + _all: number +} + + +export type PayPeriodsAvgAggregateInputType = { + pay_year?: true + pay_period_no?: true +} + +export type PayPeriodsSumAggregateInputType = { + pay_year?: true + pay_period_no?: true +} + +export type PayPeriodsMinAggregateInputType = { + pay_year?: true + pay_period_no?: true + period_start?: true + period_end?: true + payday?: true + label?: true +} + +export type PayPeriodsMaxAggregateInputType = { + pay_year?: true + pay_period_no?: true + period_start?: true + period_end?: true + payday?: true + label?: true +} + +export type PayPeriodsCountAggregateInputType = { + pay_year?: true + pay_period_no?: true + period_start?: true + period_end?: true + payday?: true + label?: true + _all?: true +} + +export type PayPeriodsAggregateArgs = { + /** + * Filter which PayPeriods to aggregate. + */ + where?: Prisma.PayPeriodsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of PayPeriods to fetch. + */ + orderBy?: Prisma.PayPeriodsOrderByWithRelationInput | Prisma.PayPeriodsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` PayPeriods 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` PayPeriods. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned PayPeriods + **/ + _count?: true | PayPeriodsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: PayPeriodsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: PayPeriodsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: PayPeriodsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: PayPeriodsMaxAggregateInputType +} + +export type GetPayPeriodsAggregateType = { + [P in keyof T & keyof AggregatePayPeriods]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type PayPeriodsGroupByArgs = { + where?: Prisma.PayPeriodsWhereInput + orderBy?: Prisma.PayPeriodsOrderByWithAggregationInput | Prisma.PayPeriodsOrderByWithAggregationInput[] + by: Prisma.PayPeriodsScalarFieldEnum[] | Prisma.PayPeriodsScalarFieldEnum + having?: Prisma.PayPeriodsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: PayPeriodsCountAggregateInputType | true + _avg?: PayPeriodsAvgAggregateInputType + _sum?: PayPeriodsSumAggregateInputType + _min?: PayPeriodsMinAggregateInputType + _max?: PayPeriodsMaxAggregateInputType +} + +export type PayPeriodsGroupByOutputType = { + pay_year: number + pay_period_no: number + period_start: Date + period_end: Date + payday: Date + label: string + _count: PayPeriodsCountAggregateOutputType | null + _avg: PayPeriodsAvgAggregateOutputType | null + _sum: PayPeriodsSumAggregateOutputType | null + _min: PayPeriodsMinAggregateOutputType | null + _max: PayPeriodsMaxAggregateOutputType | null +} + +type GetPayPeriodsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof PayPeriodsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type PayPeriodsWhereInput = { + AND?: Prisma.PayPeriodsWhereInput | Prisma.PayPeriodsWhereInput[] + OR?: Prisma.PayPeriodsWhereInput[] + NOT?: Prisma.PayPeriodsWhereInput | Prisma.PayPeriodsWhereInput[] + pay_year?: Prisma.IntFilter<"PayPeriods"> | number + pay_period_no?: Prisma.IntFilter<"PayPeriods"> | number + period_start?: Prisma.DateTimeFilter<"PayPeriods"> | Date | string + period_end?: Prisma.DateTimeFilter<"PayPeriods"> | Date | string + payday?: Prisma.DateTimeFilter<"PayPeriods"> | Date | string + label?: Prisma.StringFilter<"PayPeriods"> | string +} + +export type PayPeriodsOrderByWithRelationInput = { + pay_year?: Prisma.SortOrder + pay_period_no?: Prisma.SortOrder + period_start?: Prisma.SortOrder + period_end?: Prisma.SortOrder + payday?: Prisma.SortOrder + label?: Prisma.SortOrder +} + +export type PayPeriodsOrderByWithAggregationInput = { + pay_year?: Prisma.SortOrder + pay_period_no?: Prisma.SortOrder + period_start?: Prisma.SortOrder + period_end?: Prisma.SortOrder + payday?: Prisma.SortOrder + label?: Prisma.SortOrder + _count?: Prisma.PayPeriodsCountOrderByAggregateInput + _avg?: Prisma.PayPeriodsAvgOrderByAggregateInput + _max?: Prisma.PayPeriodsMaxOrderByAggregateInput + _min?: Prisma.PayPeriodsMinOrderByAggregateInput + _sum?: Prisma.PayPeriodsSumOrderByAggregateInput +} + +export type PayPeriodsScalarWhereWithAggregatesInput = { + AND?: Prisma.PayPeriodsScalarWhereWithAggregatesInput | Prisma.PayPeriodsScalarWhereWithAggregatesInput[] + OR?: Prisma.PayPeriodsScalarWhereWithAggregatesInput[] + NOT?: Prisma.PayPeriodsScalarWhereWithAggregatesInput | Prisma.PayPeriodsScalarWhereWithAggregatesInput[] + pay_year?: Prisma.IntWithAggregatesFilter<"PayPeriods"> | number + pay_period_no?: Prisma.IntWithAggregatesFilter<"PayPeriods"> | number + period_start?: Prisma.DateTimeWithAggregatesFilter<"PayPeriods"> | Date | string + period_end?: Prisma.DateTimeWithAggregatesFilter<"PayPeriods"> | Date | string + payday?: Prisma.DateTimeWithAggregatesFilter<"PayPeriods"> | Date | string + label?: Prisma.StringWithAggregatesFilter<"PayPeriods"> | string +} + +export type PayPeriodsCountOrderByAggregateInput = { + pay_year?: Prisma.SortOrder + pay_period_no?: Prisma.SortOrder + period_start?: Prisma.SortOrder + period_end?: Prisma.SortOrder + payday?: Prisma.SortOrder + label?: Prisma.SortOrder +} + +export type PayPeriodsAvgOrderByAggregateInput = { + pay_year?: Prisma.SortOrder + pay_period_no?: Prisma.SortOrder +} + +export type PayPeriodsMaxOrderByAggregateInput = { + pay_year?: Prisma.SortOrder + pay_period_no?: Prisma.SortOrder + period_start?: Prisma.SortOrder + period_end?: Prisma.SortOrder + payday?: Prisma.SortOrder + label?: Prisma.SortOrder +} + +export type PayPeriodsMinOrderByAggregateInput = { + pay_year?: Prisma.SortOrder + pay_period_no?: Prisma.SortOrder + period_start?: Prisma.SortOrder + period_end?: Prisma.SortOrder + payday?: Prisma.SortOrder + label?: Prisma.SortOrder +} + +export type PayPeriodsSumOrderByAggregateInput = { + pay_year?: Prisma.SortOrder + pay_period_no?: Prisma.SortOrder +} + + + +export type PayPeriodsSelect = runtime.Types.Extensions.GetSelect<{ + pay_year?: boolean + pay_period_no?: boolean + period_start?: boolean + period_end?: boolean + payday?: boolean + label?: boolean +}, ExtArgs["result"]["payPeriods"]> + + + +export type PayPeriodsSelectScalar = { + pay_year?: boolean + pay_period_no?: boolean + period_start?: boolean + period_end?: boolean + payday?: boolean + label?: boolean +} + +export type PayPeriodsOmit = runtime.Types.Extensions.GetOmit<"pay_year" | "pay_period_no" | "period_start" | "period_end" | "payday" | "label", ExtArgs["result"]["payPeriods"]> + +export type $PayPeriodsPayload = { + name: "PayPeriods" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + pay_year: number + pay_period_no: number + period_start: Date + period_end: Date + payday: Date + label: string + }, ExtArgs["result"]["payPeriods"]> + composites: {} +} + +export type PayPeriodsGetPayload = runtime.Types.Result.GetResult + +export type PayPeriodsCountArgs = + Omit & { + select?: PayPeriodsCountAggregateInputType | true + } + +export interface PayPeriodsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['PayPeriods'], meta: { name: 'PayPeriods' } } + /** + * Find the first PayPeriods 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 {PayPeriodsFindFirstArgs} args - Arguments to find a PayPeriods + * @example + * // Get one PayPeriods + * const payPeriods = await prisma.payPeriods.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst ? { + orderBy: {} + } : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys ? { + orderBy: {} + } : {}>(args?: Prisma.SelectSubset> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__PayPeriodsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first PayPeriods 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 {PayPeriodsFindFirstOrThrowArgs} args - Arguments to find a PayPeriods + * @example + * // Get one PayPeriods + * const payPeriods = await prisma.payPeriods.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow ? { + orderBy: {} + } : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys ? { + orderBy: {} + } : {}>(args?: Prisma.SelectSubset> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__PayPeriodsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more PayPeriods 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 {PayPeriodsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all PayPeriods + * const payPeriods = await prisma.payPeriods.findMany() + * + * // Get first 10 PayPeriods + * const payPeriods = await prisma.payPeriods.findMany({ take: 10 }) + * + * // Only select the `pay_year` + * const payPeriodsWithPay_yearOnly = await prisma.payPeriods.findMany({ select: { pay_year: true } }) + * + */ + findMany ? { + orderBy: {} + } : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys ? { + orderBy: {} + } : {}>(args?: Prisma.SelectSubset> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + + /** + * Count the number of PayPeriods. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PayPeriodsCountArgs} args - Arguments to filter PayPeriods to count. + * @example + * // Count the number of PayPeriods + * const count = await prisma.payPeriods.count({ + * where: { + * // ... the filter for the PayPeriods 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 PayPeriods. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PayPeriodsAggregateArgs} 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 PayPeriods. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PayPeriodsGroupByArgs} 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 PayPeriodsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: PayPeriodsGroupByArgs['orderBy'] } + : { orderBy?: PayPeriodsGroupByArgs['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 ? GetPayPeriodsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the PayPeriods model + */ +readonly fields: PayPeriodsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for PayPeriods. + * 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__PayPeriodsClient 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 PayPeriods model + */ +export interface PayPeriodsFieldRefs { + readonly pay_year: Prisma.FieldRef<"PayPeriods", 'Int'> + readonly pay_period_no: Prisma.FieldRef<"PayPeriods", 'Int'> + readonly period_start: Prisma.FieldRef<"PayPeriods", 'DateTime'> + readonly period_end: Prisma.FieldRef<"PayPeriods", 'DateTime'> + readonly payday: Prisma.FieldRef<"PayPeriods", 'DateTime'> + readonly label: Prisma.FieldRef<"PayPeriods", 'String'> +} + + +// Custom InputTypes +/** + * PayPeriods findFirst + */ +export type PayPeriodsFindFirstArgs = { + /** + * Select specific fields to fetch from the PayPeriods + */ + select?: Prisma.PayPeriodsSelect | null + /** + * Omit specific fields from the PayPeriods + */ + omit?: Prisma.PayPeriodsOmit | null + /** + * Filter, which PayPeriods to fetch. + */ + where?: Prisma.PayPeriodsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of PayPeriods to fetch. + */ + orderBy?: Prisma.PayPeriodsOrderByWithRelationInput | Prisma.PayPeriodsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` PayPeriods 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` PayPeriods. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of PayPeriods. + */ + distinct?: Prisma.PayPeriodsScalarFieldEnum | Prisma.PayPeriodsScalarFieldEnum[] +} + +/** + * PayPeriods findFirstOrThrow + */ +export type PayPeriodsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the PayPeriods + */ + select?: Prisma.PayPeriodsSelect | null + /** + * Omit specific fields from the PayPeriods + */ + omit?: Prisma.PayPeriodsOmit | null + /** + * Filter, which PayPeriods to fetch. + */ + where?: Prisma.PayPeriodsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of PayPeriods to fetch. + */ + orderBy?: Prisma.PayPeriodsOrderByWithRelationInput | Prisma.PayPeriodsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` PayPeriods 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` PayPeriods. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of PayPeriods. + */ + distinct?: Prisma.PayPeriodsScalarFieldEnum | Prisma.PayPeriodsScalarFieldEnum[] +} + +/** + * PayPeriods findMany + */ +export type PayPeriodsFindManyArgs = { + /** + * Select specific fields to fetch from the PayPeriods + */ + select?: Prisma.PayPeriodsSelect | null + /** + * Omit specific fields from the PayPeriods + */ + omit?: Prisma.PayPeriodsOmit | null + /** + * Filter, which PayPeriods to fetch. + */ + where?: Prisma.PayPeriodsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of PayPeriods to fetch. + */ + orderBy?: Prisma.PayPeriodsOrderByWithRelationInput | Prisma.PayPeriodsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` PayPeriods 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` PayPeriods. + */ + skip?: number + distinct?: Prisma.PayPeriodsScalarFieldEnum | Prisma.PayPeriodsScalarFieldEnum[] +} + +/** + * PayPeriods without action + */ +export type PayPeriodsDefaultArgs = { + /** + * Select specific fields to fetch from the PayPeriods + */ + select?: Prisma.PayPeriodsSelect | null + /** + * Omit specific fields from the PayPeriods + */ + omit?: Prisma.PayPeriodsOmit | null +} diff --git a/prisma/generated/postgres/models/Preferences.ts b/prisma/generated/postgres/models/Preferences.ts new file mode 100644 index 0000000..f25ea5b --- /dev/null +++ b/prisma/generated/postgres/models/Preferences.ts @@ -0,0 +1,1429 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Preferences` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model Preferences + * + */ +export type PreferencesModel = runtime.Types.Result.DefaultSelection + +export type AggregatePreferences = { + _count: PreferencesCountAggregateOutputType | null + _avg: PreferencesAvgAggregateOutputType | null + _sum: PreferencesSumAggregateOutputType | null + _min: PreferencesMinAggregateOutputType | null + _max: PreferencesMaxAggregateOutputType | null +} + +export type PreferencesAvgAggregateOutputType = { + id: number | null +} + +export type PreferencesSumAggregateOutputType = { + id: number | null +} + +export type PreferencesMinAggregateOutputType = { + user_id: string | null + id: number | null + display_language: string | null + is_dark_mode: boolean | null + is_employee_list_grid: boolean | null + is_lefty_mode: boolean | null + is_timesheet_approval_grid: boolean | null + notifications: boolean | null +} + +export type PreferencesMaxAggregateOutputType = { + user_id: string | null + id: number | null + display_language: string | null + is_dark_mode: boolean | null + is_employee_list_grid: boolean | null + is_lefty_mode: boolean | null + is_timesheet_approval_grid: boolean | null + notifications: boolean | null +} + +export type PreferencesCountAggregateOutputType = { + user_id: number + id: number + display_language: number + is_dark_mode: number + is_employee_list_grid: number + is_lefty_mode: number + is_timesheet_approval_grid: number + notifications: number + _all: number +} + + +export type PreferencesAvgAggregateInputType = { + id?: true +} + +export type PreferencesSumAggregateInputType = { + id?: true +} + +export type PreferencesMinAggregateInputType = { + user_id?: true + id?: true + display_language?: true + is_dark_mode?: true + is_employee_list_grid?: true + is_lefty_mode?: true + is_timesheet_approval_grid?: true + notifications?: true +} + +export type PreferencesMaxAggregateInputType = { + user_id?: true + id?: true + display_language?: true + is_dark_mode?: true + is_employee_list_grid?: true + is_lefty_mode?: true + is_timesheet_approval_grid?: true + notifications?: true +} + +export type PreferencesCountAggregateInputType = { + user_id?: true + id?: true + display_language?: true + is_dark_mode?: true + is_employee_list_grid?: true + is_lefty_mode?: true + is_timesheet_approval_grid?: true + notifications?: true + _all?: true +} + +export type PreferencesAggregateArgs = { + /** + * Filter which Preferences to aggregate. + */ + where?: Prisma.PreferencesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Preferences to fetch. + */ + orderBy?: Prisma.PreferencesOrderByWithRelationInput | Prisma.PreferencesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.PreferencesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Preferences 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` Preferences. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Preferences + **/ + _count?: true | PreferencesCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: PreferencesAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: PreferencesSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: PreferencesMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: PreferencesMaxAggregateInputType +} + +export type GetPreferencesAggregateType = { + [P in keyof T & keyof AggregatePreferences]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type PreferencesGroupByArgs = { + where?: Prisma.PreferencesWhereInput + orderBy?: Prisma.PreferencesOrderByWithAggregationInput | Prisma.PreferencesOrderByWithAggregationInput[] + by: Prisma.PreferencesScalarFieldEnum[] | Prisma.PreferencesScalarFieldEnum + having?: Prisma.PreferencesScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: PreferencesCountAggregateInputType | true + _avg?: PreferencesAvgAggregateInputType + _sum?: PreferencesSumAggregateInputType + _min?: PreferencesMinAggregateInputType + _max?: PreferencesMaxAggregateInputType +} + +export type PreferencesGroupByOutputType = { + user_id: string + id: number + display_language: string + is_dark_mode: boolean | null + is_employee_list_grid: boolean + is_lefty_mode: boolean + is_timesheet_approval_grid: boolean + notifications: boolean + _count: PreferencesCountAggregateOutputType | null + _avg: PreferencesAvgAggregateOutputType | null + _sum: PreferencesSumAggregateOutputType | null + _min: PreferencesMinAggregateOutputType | null + _max: PreferencesMaxAggregateOutputType | null +} + +type GetPreferencesGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof PreferencesGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type PreferencesWhereInput = { + AND?: Prisma.PreferencesWhereInput | Prisma.PreferencesWhereInput[] + OR?: Prisma.PreferencesWhereInput[] + NOT?: Prisma.PreferencesWhereInput | Prisma.PreferencesWhereInput[] + user_id?: Prisma.UuidFilter<"Preferences"> | string + id?: Prisma.IntFilter<"Preferences"> | number + display_language?: Prisma.StringFilter<"Preferences"> | string + is_dark_mode?: Prisma.BoolNullableFilter<"Preferences"> | boolean | null + is_employee_list_grid?: Prisma.BoolFilter<"Preferences"> | boolean + is_lefty_mode?: Prisma.BoolFilter<"Preferences"> | boolean + is_timesheet_approval_grid?: Prisma.BoolFilter<"Preferences"> | boolean + notifications?: Prisma.BoolFilter<"Preferences"> | boolean + user?: Prisma.XOR +} + +export type PreferencesOrderByWithRelationInput = { + user_id?: Prisma.SortOrder + id?: Prisma.SortOrder + display_language?: Prisma.SortOrder + is_dark_mode?: Prisma.SortOrderInput | Prisma.SortOrder + is_employee_list_grid?: Prisma.SortOrder + is_lefty_mode?: Prisma.SortOrder + is_timesheet_approval_grid?: Prisma.SortOrder + notifications?: Prisma.SortOrder + user?: Prisma.UsersOrderByWithRelationInput +} + +export type PreferencesWhereUniqueInput = Prisma.AtLeast<{ + user_id?: string + id?: number + AND?: Prisma.PreferencesWhereInput | Prisma.PreferencesWhereInput[] + OR?: Prisma.PreferencesWhereInput[] + NOT?: Prisma.PreferencesWhereInput | Prisma.PreferencesWhereInput[] + display_language?: Prisma.StringFilter<"Preferences"> | string + is_dark_mode?: Prisma.BoolNullableFilter<"Preferences"> | boolean | null + is_employee_list_grid?: Prisma.BoolFilter<"Preferences"> | boolean + is_lefty_mode?: Prisma.BoolFilter<"Preferences"> | boolean + is_timesheet_approval_grid?: Prisma.BoolFilter<"Preferences"> | boolean + notifications?: Prisma.BoolFilter<"Preferences"> | boolean + user?: Prisma.XOR +}, "id" | "user_id"> + +export type PreferencesOrderByWithAggregationInput = { + user_id?: Prisma.SortOrder + id?: Prisma.SortOrder + display_language?: Prisma.SortOrder + is_dark_mode?: Prisma.SortOrderInput | Prisma.SortOrder + is_employee_list_grid?: Prisma.SortOrder + is_lefty_mode?: Prisma.SortOrder + is_timesheet_approval_grid?: Prisma.SortOrder + notifications?: Prisma.SortOrder + _count?: Prisma.PreferencesCountOrderByAggregateInput + _avg?: Prisma.PreferencesAvgOrderByAggregateInput + _max?: Prisma.PreferencesMaxOrderByAggregateInput + _min?: Prisma.PreferencesMinOrderByAggregateInput + _sum?: Prisma.PreferencesSumOrderByAggregateInput +} + +export type PreferencesScalarWhereWithAggregatesInput = { + AND?: Prisma.PreferencesScalarWhereWithAggregatesInput | Prisma.PreferencesScalarWhereWithAggregatesInput[] + OR?: Prisma.PreferencesScalarWhereWithAggregatesInput[] + NOT?: Prisma.PreferencesScalarWhereWithAggregatesInput | Prisma.PreferencesScalarWhereWithAggregatesInput[] + user_id?: Prisma.UuidWithAggregatesFilter<"Preferences"> | string + id?: Prisma.IntWithAggregatesFilter<"Preferences"> | number + display_language?: Prisma.StringWithAggregatesFilter<"Preferences"> | string + is_dark_mode?: Prisma.BoolNullableWithAggregatesFilter<"Preferences"> | boolean | null + is_employee_list_grid?: Prisma.BoolWithAggregatesFilter<"Preferences"> | boolean + is_lefty_mode?: Prisma.BoolWithAggregatesFilter<"Preferences"> | boolean + is_timesheet_approval_grid?: Prisma.BoolWithAggregatesFilter<"Preferences"> | boolean + notifications?: Prisma.BoolWithAggregatesFilter<"Preferences"> | boolean +} + +export type PreferencesCreateInput = { + display_language?: string + is_dark_mode?: boolean | null + is_employee_list_grid?: boolean + is_lefty_mode?: boolean + is_timesheet_approval_grid?: boolean + notifications?: boolean + user: Prisma.UsersCreateNestedOneWithoutPreferencesInput +} + +export type PreferencesUncheckedCreateInput = { + user_id: string + id?: number + display_language?: string + is_dark_mode?: boolean | null + is_employee_list_grid?: boolean + is_lefty_mode?: boolean + is_timesheet_approval_grid?: boolean + notifications?: boolean +} + +export type PreferencesUpdateInput = { + display_language?: Prisma.StringFieldUpdateOperationsInput | string + is_dark_mode?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + is_employee_list_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_lefty_mode?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_timesheet_approval_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean + notifications?: Prisma.BoolFieldUpdateOperationsInput | boolean + user?: Prisma.UsersUpdateOneRequiredWithoutPreferencesNestedInput +} + +export type PreferencesUncheckedUpdateInput = { + user_id?: Prisma.StringFieldUpdateOperationsInput | string + id?: Prisma.IntFieldUpdateOperationsInput | number + display_language?: Prisma.StringFieldUpdateOperationsInput | string + is_dark_mode?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + is_employee_list_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_lefty_mode?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_timesheet_approval_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean + notifications?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type PreferencesCreateManyInput = { + user_id: string + id?: number + display_language?: string + is_dark_mode?: boolean | null + is_employee_list_grid?: boolean + is_lefty_mode?: boolean + is_timesheet_approval_grid?: boolean + notifications?: boolean +} + +export type PreferencesUpdateManyMutationInput = { + display_language?: Prisma.StringFieldUpdateOperationsInput | string + is_dark_mode?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + is_employee_list_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_lefty_mode?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_timesheet_approval_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean + notifications?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type PreferencesUncheckedUpdateManyInput = { + user_id?: Prisma.StringFieldUpdateOperationsInput | string + id?: Prisma.IntFieldUpdateOperationsInput | number + display_language?: Prisma.StringFieldUpdateOperationsInput | string + is_dark_mode?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + is_employee_list_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_lefty_mode?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_timesheet_approval_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean + notifications?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type PreferencesNullableScalarRelationFilter = { + is?: Prisma.PreferencesWhereInput | null + isNot?: Prisma.PreferencesWhereInput | null +} + +export type PreferencesCountOrderByAggregateInput = { + user_id?: Prisma.SortOrder + id?: Prisma.SortOrder + display_language?: Prisma.SortOrder + is_dark_mode?: Prisma.SortOrder + is_employee_list_grid?: Prisma.SortOrder + is_lefty_mode?: Prisma.SortOrder + is_timesheet_approval_grid?: Prisma.SortOrder + notifications?: Prisma.SortOrder +} + +export type PreferencesAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type PreferencesMaxOrderByAggregateInput = { + user_id?: Prisma.SortOrder + id?: Prisma.SortOrder + display_language?: Prisma.SortOrder + is_dark_mode?: Prisma.SortOrder + is_employee_list_grid?: Prisma.SortOrder + is_lefty_mode?: Prisma.SortOrder + is_timesheet_approval_grid?: Prisma.SortOrder + notifications?: Prisma.SortOrder +} + +export type PreferencesMinOrderByAggregateInput = { + user_id?: Prisma.SortOrder + id?: Prisma.SortOrder + display_language?: Prisma.SortOrder + is_dark_mode?: Prisma.SortOrder + is_employee_list_grid?: Prisma.SortOrder + is_lefty_mode?: Prisma.SortOrder + is_timesheet_approval_grid?: Prisma.SortOrder + notifications?: Prisma.SortOrder +} + +export type PreferencesSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type PreferencesCreateNestedOneWithoutUserInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.PreferencesCreateOrConnectWithoutUserInput + connect?: Prisma.PreferencesWhereUniqueInput +} + +export type PreferencesUncheckedCreateNestedOneWithoutUserInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.PreferencesCreateOrConnectWithoutUserInput + connect?: Prisma.PreferencesWhereUniqueInput +} + +export type PreferencesUpdateOneWithoutUserNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.PreferencesCreateOrConnectWithoutUserInput + upsert?: Prisma.PreferencesUpsertWithoutUserInput + disconnect?: Prisma.PreferencesWhereInput | boolean + delete?: Prisma.PreferencesWhereInput | boolean + connect?: Prisma.PreferencesWhereUniqueInput + update?: Prisma.XOR, Prisma.PreferencesUncheckedUpdateWithoutUserInput> +} + +export type PreferencesUncheckedUpdateOneWithoutUserNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.PreferencesCreateOrConnectWithoutUserInput + upsert?: Prisma.PreferencesUpsertWithoutUserInput + disconnect?: Prisma.PreferencesWhereInput | boolean + delete?: Prisma.PreferencesWhereInput | boolean + connect?: Prisma.PreferencesWhereUniqueInput + update?: Prisma.XOR, Prisma.PreferencesUncheckedUpdateWithoutUserInput> +} + +export type NullableBoolFieldUpdateOperationsInput = { + set?: boolean | null +} + +export type PreferencesCreateWithoutUserInput = { + display_language?: string + is_dark_mode?: boolean | null + is_employee_list_grid?: boolean + is_lefty_mode?: boolean + is_timesheet_approval_grid?: boolean + notifications?: boolean +} + +export type PreferencesUncheckedCreateWithoutUserInput = { + id?: number + display_language?: string + is_dark_mode?: boolean | null + is_employee_list_grid?: boolean + is_lefty_mode?: boolean + is_timesheet_approval_grid?: boolean + notifications?: boolean +} + +export type PreferencesCreateOrConnectWithoutUserInput = { + where: Prisma.PreferencesWhereUniqueInput + create: Prisma.XOR +} + +export type PreferencesUpsertWithoutUserInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.PreferencesWhereInput +} + +export type PreferencesUpdateToOneWithWhereWithoutUserInput = { + where?: Prisma.PreferencesWhereInput + data: Prisma.XOR +} + +export type PreferencesUpdateWithoutUserInput = { + display_language?: Prisma.StringFieldUpdateOperationsInput | string + is_dark_mode?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + is_employee_list_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_lefty_mode?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_timesheet_approval_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean + notifications?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type PreferencesUncheckedUpdateWithoutUserInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + display_language?: Prisma.StringFieldUpdateOperationsInput | string + is_dark_mode?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null + is_employee_list_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_lefty_mode?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_timesheet_approval_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean + notifications?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + + + +export type PreferencesSelect = runtime.Types.Extensions.GetSelect<{ + user_id?: boolean + id?: boolean + display_language?: boolean + is_dark_mode?: boolean + is_employee_list_grid?: boolean + is_lefty_mode?: boolean + is_timesheet_approval_grid?: boolean + notifications?: boolean + user?: boolean | Prisma.UsersDefaultArgs +}, ExtArgs["result"]["preferences"]> + +export type PreferencesSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + user_id?: boolean + id?: boolean + display_language?: boolean + is_dark_mode?: boolean + is_employee_list_grid?: boolean + is_lefty_mode?: boolean + is_timesheet_approval_grid?: boolean + notifications?: boolean + user?: boolean | Prisma.UsersDefaultArgs +}, ExtArgs["result"]["preferences"]> + +export type PreferencesSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + user_id?: boolean + id?: boolean + display_language?: boolean + is_dark_mode?: boolean + is_employee_list_grid?: boolean + is_lefty_mode?: boolean + is_timesheet_approval_grid?: boolean + notifications?: boolean + user?: boolean | Prisma.UsersDefaultArgs +}, ExtArgs["result"]["preferences"]> + +export type PreferencesSelectScalar = { + user_id?: boolean + id?: boolean + display_language?: boolean + is_dark_mode?: boolean + is_employee_list_grid?: boolean + is_lefty_mode?: boolean + is_timesheet_approval_grid?: boolean + notifications?: boolean +} + +export type PreferencesOmit = runtime.Types.Extensions.GetOmit<"user_id" | "id" | "display_language" | "is_dark_mode" | "is_employee_list_grid" | "is_lefty_mode" | "is_timesheet_approval_grid" | "notifications", ExtArgs["result"]["preferences"]> +export type PreferencesInclude = { + user?: boolean | Prisma.UsersDefaultArgs +} +export type PreferencesIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UsersDefaultArgs +} +export type PreferencesIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UsersDefaultArgs +} + +export type $PreferencesPayload = { + name: "Preferences" + objects: { + user: Prisma.$UsersPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + user_id: string + id: number + display_language: string + is_dark_mode: boolean | null + is_employee_list_grid: boolean + is_lefty_mode: boolean + is_timesheet_approval_grid: boolean + notifications: boolean + }, ExtArgs["result"]["preferences"]> + composites: {} +} + +export type PreferencesGetPayload = runtime.Types.Result.GetResult + +export type PreferencesCountArgs = + Omit & { + select?: PreferencesCountAggregateInputType | true + } + +export interface PreferencesDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Preferences'], meta: { name: 'Preferences' } } + /** + * Find zero or one Preferences that matches the filter. + * @param {PreferencesFindUniqueArgs} args - Arguments to find a Preferences + * @example + * // Get one Preferences + * const preferences = await prisma.preferences.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Preferences that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {PreferencesFindUniqueOrThrowArgs} args - Arguments to find a Preferences + * @example + * // Get one Preferences + * const preferences = await prisma.preferences.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Preferences 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 {PreferencesFindFirstArgs} args - Arguments to find a Preferences + * @example + * // Get one Preferences + * const preferences = await prisma.preferences.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Preferences 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 {PreferencesFindFirstOrThrowArgs} args - Arguments to find a Preferences + * @example + * // Get one Preferences + * const preferences = await prisma.preferences.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Preferences 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 {PreferencesFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Preferences + * const preferences = await prisma.preferences.findMany() + * + * // Get first 10 Preferences + * const preferences = await prisma.preferences.findMany({ take: 10 }) + * + * // Only select the `user_id` + * const preferencesWithUser_idOnly = await prisma.preferences.findMany({ select: { user_id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Preferences. + * @param {PreferencesCreateArgs} args - Arguments to create a Preferences. + * @example + * // Create one Preferences + * const Preferences = await prisma.preferences.create({ + * data: { + * // ... data to create a Preferences + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Preferences. + * @param {PreferencesCreateManyArgs} args - Arguments to create many Preferences. + * @example + * // Create many Preferences + * const preferences = await prisma.preferences.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Preferences and returns the data saved in the database. + * @param {PreferencesCreateManyAndReturnArgs} args - Arguments to create many Preferences. + * @example + * // Create many Preferences + * const preferences = await prisma.preferences.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Preferences and only return the `user_id` + * const preferencesWithUser_idOnly = await prisma.preferences.createManyAndReturn({ + * select: { user_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 Preferences. + * @param {PreferencesDeleteArgs} args - Arguments to delete one Preferences. + * @example + * // Delete one Preferences + * const Preferences = await prisma.preferences.delete({ + * where: { + * // ... filter to delete one Preferences + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Preferences. + * @param {PreferencesUpdateArgs} args - Arguments to update one Preferences. + * @example + * // Update one Preferences + * const preferences = await prisma.preferences.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Preferences. + * @param {PreferencesDeleteManyArgs} args - Arguments to filter Preferences to delete. + * @example + * // Delete a few Preferences + * const { count } = await prisma.preferences.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Preferences. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PreferencesUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Preferences + * const preferences = await prisma.preferences.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Preferences and returns the data updated in the database. + * @param {PreferencesUpdateManyAndReturnArgs} args - Arguments to update many Preferences. + * @example + * // Update many Preferences + * const preferences = await prisma.preferences.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Preferences and only return the `user_id` + * const preferencesWithUser_idOnly = await prisma.preferences.updateManyAndReturn({ + * select: { user_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 Preferences. + * @param {PreferencesUpsertArgs} args - Arguments to update or create a Preferences. + * @example + * // Update or create a Preferences + * const preferences = await prisma.preferences.upsert({ + * create: { + * // ... data to create a Preferences + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Preferences we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Preferences. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PreferencesCountArgs} args - Arguments to filter Preferences to count. + * @example + * // Count the number of Preferences + * const count = await prisma.preferences.count({ + * where: { + * // ... the filter for the Preferences 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 Preferences. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PreferencesAggregateArgs} 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 Preferences. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PreferencesGroupByArgs} 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 PreferencesGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: PreferencesGroupByArgs['orderBy'] } + : { orderBy?: PreferencesGroupByArgs['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 ? GetPreferencesGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Preferences model + */ +readonly fields: PreferencesFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Preferences. + * 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__PreferencesClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UsersClient, 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 Preferences model + */ +export interface PreferencesFieldRefs { + readonly user_id: Prisma.FieldRef<"Preferences", 'String'> + readonly id: Prisma.FieldRef<"Preferences", 'Int'> + readonly display_language: Prisma.FieldRef<"Preferences", 'String'> + readonly is_dark_mode: Prisma.FieldRef<"Preferences", 'Boolean'> + readonly is_employee_list_grid: Prisma.FieldRef<"Preferences", 'Boolean'> + readonly is_lefty_mode: Prisma.FieldRef<"Preferences", 'Boolean'> + readonly is_timesheet_approval_grid: Prisma.FieldRef<"Preferences", 'Boolean'> + readonly notifications: Prisma.FieldRef<"Preferences", 'Boolean'> +} + + +// Custom InputTypes +/** + * Preferences findUnique + */ +export type PreferencesFindUniqueArgs = { + /** + * Select specific fields to fetch from the Preferences + */ + select?: Prisma.PreferencesSelect | null + /** + * Omit specific fields from the Preferences + */ + omit?: Prisma.PreferencesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PreferencesInclude | null + /** + * Filter, which Preferences to fetch. + */ + where: Prisma.PreferencesWhereUniqueInput +} + +/** + * Preferences findUniqueOrThrow + */ +export type PreferencesFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Preferences + */ + select?: Prisma.PreferencesSelect | null + /** + * Omit specific fields from the Preferences + */ + omit?: Prisma.PreferencesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PreferencesInclude | null + /** + * Filter, which Preferences to fetch. + */ + where: Prisma.PreferencesWhereUniqueInput +} + +/** + * Preferences findFirst + */ +export type PreferencesFindFirstArgs = { + /** + * Select specific fields to fetch from the Preferences + */ + select?: Prisma.PreferencesSelect | null + /** + * Omit specific fields from the Preferences + */ + omit?: Prisma.PreferencesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PreferencesInclude | null + /** + * Filter, which Preferences to fetch. + */ + where?: Prisma.PreferencesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Preferences to fetch. + */ + orderBy?: Prisma.PreferencesOrderByWithRelationInput | Prisma.PreferencesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Preferences. + */ + cursor?: Prisma.PreferencesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Preferences 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` Preferences. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Preferences. + */ + distinct?: Prisma.PreferencesScalarFieldEnum | Prisma.PreferencesScalarFieldEnum[] +} + +/** + * Preferences findFirstOrThrow + */ +export type PreferencesFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Preferences + */ + select?: Prisma.PreferencesSelect | null + /** + * Omit specific fields from the Preferences + */ + omit?: Prisma.PreferencesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PreferencesInclude | null + /** + * Filter, which Preferences to fetch. + */ + where?: Prisma.PreferencesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Preferences to fetch. + */ + orderBy?: Prisma.PreferencesOrderByWithRelationInput | Prisma.PreferencesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Preferences. + */ + cursor?: Prisma.PreferencesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Preferences 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` Preferences. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Preferences. + */ + distinct?: Prisma.PreferencesScalarFieldEnum | Prisma.PreferencesScalarFieldEnum[] +} + +/** + * Preferences findMany + */ +export type PreferencesFindManyArgs = { + /** + * Select specific fields to fetch from the Preferences + */ + select?: Prisma.PreferencesSelect | null + /** + * Omit specific fields from the Preferences + */ + omit?: Prisma.PreferencesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PreferencesInclude | null + /** + * Filter, which Preferences to fetch. + */ + where?: Prisma.PreferencesWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Preferences to fetch. + */ + orderBy?: Prisma.PreferencesOrderByWithRelationInput | Prisma.PreferencesOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Preferences. + */ + cursor?: Prisma.PreferencesWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Preferences 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` Preferences. + */ + skip?: number + distinct?: Prisma.PreferencesScalarFieldEnum | Prisma.PreferencesScalarFieldEnum[] +} + +/** + * Preferences create + */ +export type PreferencesCreateArgs = { + /** + * Select specific fields to fetch from the Preferences + */ + select?: Prisma.PreferencesSelect | null + /** + * Omit specific fields from the Preferences + */ + omit?: Prisma.PreferencesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PreferencesInclude | null + /** + * The data needed to create a Preferences. + */ + data: Prisma.XOR +} + +/** + * Preferences createMany + */ +export type PreferencesCreateManyArgs = { + /** + * The data used to create many Preferences. + */ + data: Prisma.PreferencesCreateManyInput | Prisma.PreferencesCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Preferences createManyAndReturn + */ +export type PreferencesCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Preferences + */ + select?: Prisma.PreferencesSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Preferences + */ + omit?: Prisma.PreferencesOmit | null + /** + * The data used to create many Preferences. + */ + data: Prisma.PreferencesCreateManyInput | Prisma.PreferencesCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PreferencesIncludeCreateManyAndReturn | null +} + +/** + * Preferences update + */ +export type PreferencesUpdateArgs = { + /** + * Select specific fields to fetch from the Preferences + */ + select?: Prisma.PreferencesSelect | null + /** + * Omit specific fields from the Preferences + */ + omit?: Prisma.PreferencesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PreferencesInclude | null + /** + * The data needed to update a Preferences. + */ + data: Prisma.XOR + /** + * Choose, which Preferences to update. + */ + where: Prisma.PreferencesWhereUniqueInput +} + +/** + * Preferences updateMany + */ +export type PreferencesUpdateManyArgs = { + /** + * The data used to update Preferences. + */ + data: Prisma.XOR + /** + * Filter which Preferences to update + */ + where?: Prisma.PreferencesWhereInput + /** + * Limit how many Preferences to update. + */ + limit?: number +} + +/** + * Preferences updateManyAndReturn + */ +export type PreferencesUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Preferences + */ + select?: Prisma.PreferencesSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Preferences + */ + omit?: Prisma.PreferencesOmit | null + /** + * The data used to update Preferences. + */ + data: Prisma.XOR + /** + * Filter which Preferences to update + */ + where?: Prisma.PreferencesWhereInput + /** + * Limit how many Preferences to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PreferencesIncludeUpdateManyAndReturn | null +} + +/** + * Preferences upsert + */ +export type PreferencesUpsertArgs = { + /** + * Select specific fields to fetch from the Preferences + */ + select?: Prisma.PreferencesSelect | null + /** + * Omit specific fields from the Preferences + */ + omit?: Prisma.PreferencesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PreferencesInclude | null + /** + * The filter to search for the Preferences to update in case it exists. + */ + where: Prisma.PreferencesWhereUniqueInput + /** + * In case the Preferences found by the `where` argument doesn't exist, create a new Preferences with this data. + */ + create: Prisma.XOR + /** + * In case the Preferences was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Preferences delete + */ +export type PreferencesDeleteArgs = { + /** + * Select specific fields to fetch from the Preferences + */ + select?: Prisma.PreferencesSelect | null + /** + * Omit specific fields from the Preferences + */ + omit?: Prisma.PreferencesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PreferencesInclude | null + /** + * Filter which Preferences to delete. + */ + where: Prisma.PreferencesWhereUniqueInput +} + +/** + * Preferences deleteMany + */ +export type PreferencesDeleteManyArgs = { + /** + * Filter which Preferences to delete + */ + where?: Prisma.PreferencesWhereInput + /** + * Limit how many Preferences to delete. + */ + limit?: number +} + +/** + * Preferences without action + */ +export type PreferencesDefaultArgs = { + /** + * Select specific fields to fetch from the Preferences + */ + select?: Prisma.PreferencesSelect | null + /** + * Omit specific fields from the Preferences + */ + omit?: Prisma.PreferencesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PreferencesInclude | null +} diff --git a/prisma/generated/postgres/models/SchedulePresetShifts.ts b/prisma/generated/postgres/models/SchedulePresetShifts.ts new file mode 100644 index 0000000..3fa6ae2 --- /dev/null +++ b/prisma/generated/postgres/models/SchedulePresetShifts.ts @@ -0,0 +1,1595 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `SchedulePresetShifts` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model SchedulePresetShifts + * + */ +export type SchedulePresetShiftsModel = runtime.Types.Result.DefaultSelection + +export type AggregateSchedulePresetShifts = { + _count: SchedulePresetShiftsCountAggregateOutputType | null + _avg: SchedulePresetShiftsAvgAggregateOutputType | null + _sum: SchedulePresetShiftsSumAggregateOutputType | null + _min: SchedulePresetShiftsMinAggregateOutputType | null + _max: SchedulePresetShiftsMaxAggregateOutputType | null +} + +export type SchedulePresetShiftsAvgAggregateOutputType = { + id: number | null + preset_id: number | null + bank_code_id: number | null +} + +export type SchedulePresetShiftsSumAggregateOutputType = { + id: number | null + preset_id: number | null + bank_code_id: number | null +} + +export type SchedulePresetShiftsMinAggregateOutputType = { + id: number | null + preset_id: number | null + bank_code_id: number | null + start_time: Date | null + end_time: Date | null + is_remote: boolean | null + week_day: $Enums.Weekday | null +} + +export type SchedulePresetShiftsMaxAggregateOutputType = { + id: number | null + preset_id: number | null + bank_code_id: number | null + start_time: Date | null + end_time: Date | null + is_remote: boolean | null + week_day: $Enums.Weekday | null +} + +export type SchedulePresetShiftsCountAggregateOutputType = { + id: number + preset_id: number + bank_code_id: number + start_time: number + end_time: number + is_remote: number + week_day: number + _all: number +} + + +export type SchedulePresetShiftsAvgAggregateInputType = { + id?: true + preset_id?: true + bank_code_id?: true +} + +export type SchedulePresetShiftsSumAggregateInputType = { + id?: true + preset_id?: true + bank_code_id?: true +} + +export type SchedulePresetShiftsMinAggregateInputType = { + id?: true + preset_id?: true + bank_code_id?: true + start_time?: true + end_time?: true + is_remote?: true + week_day?: true +} + +export type SchedulePresetShiftsMaxAggregateInputType = { + id?: true + preset_id?: true + bank_code_id?: true + start_time?: true + end_time?: true + is_remote?: true + week_day?: true +} + +export type SchedulePresetShiftsCountAggregateInputType = { + id?: true + preset_id?: true + bank_code_id?: true + start_time?: true + end_time?: true + is_remote?: true + week_day?: true + _all?: true +} + +export type SchedulePresetShiftsAggregateArgs = { + /** + * Filter which SchedulePresetShifts to aggregate. + */ + where?: Prisma.SchedulePresetShiftsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SchedulePresetShifts to fetch. + */ + orderBy?: Prisma.SchedulePresetShiftsOrderByWithRelationInput | Prisma.SchedulePresetShiftsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.SchedulePresetShiftsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` SchedulePresetShifts 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` SchedulePresetShifts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned SchedulePresetShifts + **/ + _count?: true | SchedulePresetShiftsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: SchedulePresetShiftsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: SchedulePresetShiftsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: SchedulePresetShiftsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: SchedulePresetShiftsMaxAggregateInputType +} + +export type GetSchedulePresetShiftsAggregateType = { + [P in keyof T & keyof AggregateSchedulePresetShifts]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type SchedulePresetShiftsGroupByArgs = { + where?: Prisma.SchedulePresetShiftsWhereInput + orderBy?: Prisma.SchedulePresetShiftsOrderByWithAggregationInput | Prisma.SchedulePresetShiftsOrderByWithAggregationInput[] + by: Prisma.SchedulePresetShiftsScalarFieldEnum[] | Prisma.SchedulePresetShiftsScalarFieldEnum + having?: Prisma.SchedulePresetShiftsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: SchedulePresetShiftsCountAggregateInputType | true + _avg?: SchedulePresetShiftsAvgAggregateInputType + _sum?: SchedulePresetShiftsSumAggregateInputType + _min?: SchedulePresetShiftsMinAggregateInputType + _max?: SchedulePresetShiftsMaxAggregateInputType +} + +export type SchedulePresetShiftsGroupByOutputType = { + id: number + preset_id: number + bank_code_id: number + start_time: Date + end_time: Date + is_remote: boolean + week_day: $Enums.Weekday + _count: SchedulePresetShiftsCountAggregateOutputType | null + _avg: SchedulePresetShiftsAvgAggregateOutputType | null + _sum: SchedulePresetShiftsSumAggregateOutputType | null + _min: SchedulePresetShiftsMinAggregateOutputType | null + _max: SchedulePresetShiftsMaxAggregateOutputType | null +} + +type GetSchedulePresetShiftsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof SchedulePresetShiftsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type SchedulePresetShiftsWhereInput = { + AND?: Prisma.SchedulePresetShiftsWhereInput | Prisma.SchedulePresetShiftsWhereInput[] + OR?: Prisma.SchedulePresetShiftsWhereInput[] + NOT?: Prisma.SchedulePresetShiftsWhereInput | Prisma.SchedulePresetShiftsWhereInput[] + id?: Prisma.IntFilter<"SchedulePresetShifts"> | number + preset_id?: Prisma.IntFilter<"SchedulePresetShifts"> | number + bank_code_id?: Prisma.IntFilter<"SchedulePresetShifts"> | number + start_time?: Prisma.DateTimeFilter<"SchedulePresetShifts"> | Date | string + end_time?: Prisma.DateTimeFilter<"SchedulePresetShifts"> | Date | string + is_remote?: Prisma.BoolFilter<"SchedulePresetShifts"> | boolean + week_day?: Prisma.EnumWeekdayFilter<"SchedulePresetShifts"> | $Enums.Weekday + bank_code?: Prisma.XOR + preset?: Prisma.XOR +} + +export type SchedulePresetShiftsOrderByWithRelationInput = { + id?: Prisma.SortOrder + preset_id?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + is_remote?: Prisma.SortOrder + week_day?: Prisma.SortOrder + bank_code?: Prisma.BankCodesOrderByWithRelationInput + preset?: Prisma.SchedulePresetsOrderByWithRelationInput +} + +export type SchedulePresetShiftsWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.SchedulePresetShiftsWhereInput | Prisma.SchedulePresetShiftsWhereInput[] + OR?: Prisma.SchedulePresetShiftsWhereInput[] + NOT?: Prisma.SchedulePresetShiftsWhereInput | Prisma.SchedulePresetShiftsWhereInput[] + preset_id?: Prisma.IntFilter<"SchedulePresetShifts"> | number + bank_code_id?: Prisma.IntFilter<"SchedulePresetShifts"> | number + start_time?: Prisma.DateTimeFilter<"SchedulePresetShifts"> | Date | string + end_time?: Prisma.DateTimeFilter<"SchedulePresetShifts"> | Date | string + is_remote?: Prisma.BoolFilter<"SchedulePresetShifts"> | boolean + week_day?: Prisma.EnumWeekdayFilter<"SchedulePresetShifts"> | $Enums.Weekday + bank_code?: Prisma.XOR + preset?: Prisma.XOR +}, "id"> + +export type SchedulePresetShiftsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + preset_id?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + is_remote?: Prisma.SortOrder + week_day?: Prisma.SortOrder + _count?: Prisma.SchedulePresetShiftsCountOrderByAggregateInput + _avg?: Prisma.SchedulePresetShiftsAvgOrderByAggregateInput + _max?: Prisma.SchedulePresetShiftsMaxOrderByAggregateInput + _min?: Prisma.SchedulePresetShiftsMinOrderByAggregateInput + _sum?: Prisma.SchedulePresetShiftsSumOrderByAggregateInput +} + +export type SchedulePresetShiftsScalarWhereWithAggregatesInput = { + AND?: Prisma.SchedulePresetShiftsScalarWhereWithAggregatesInput | Prisma.SchedulePresetShiftsScalarWhereWithAggregatesInput[] + OR?: Prisma.SchedulePresetShiftsScalarWhereWithAggregatesInput[] + NOT?: Prisma.SchedulePresetShiftsScalarWhereWithAggregatesInput | Prisma.SchedulePresetShiftsScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"SchedulePresetShifts"> | number + preset_id?: Prisma.IntWithAggregatesFilter<"SchedulePresetShifts"> | number + bank_code_id?: Prisma.IntWithAggregatesFilter<"SchedulePresetShifts"> | number + start_time?: Prisma.DateTimeWithAggregatesFilter<"SchedulePresetShifts"> | Date | string + end_time?: Prisma.DateTimeWithAggregatesFilter<"SchedulePresetShifts"> | Date | string + is_remote?: Prisma.BoolWithAggregatesFilter<"SchedulePresetShifts"> | boolean + week_day?: Prisma.EnumWeekdayWithAggregatesFilter<"SchedulePresetShifts"> | $Enums.Weekday +} + +export type SchedulePresetShiftsCreateInput = { + start_time: Date | string + end_time: Date | string + is_remote?: boolean + week_day: $Enums.Weekday + bank_code: Prisma.BankCodesCreateNestedOneWithoutSchedulePresetShiftsInput + preset: Prisma.SchedulePresetsCreateNestedOneWithoutShiftsInput +} + +export type SchedulePresetShiftsUncheckedCreateInput = { + id?: number + preset_id: number + bank_code_id: number + start_time: Date | string + end_time: Date | string + is_remote?: boolean + week_day: $Enums.Weekday +} + +export type SchedulePresetShiftsUpdateInput = { + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday + bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutSchedulePresetShiftsNestedInput + preset?: Prisma.SchedulePresetsUpdateOneRequiredWithoutShiftsNestedInput +} + +export type SchedulePresetShiftsUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + preset_id?: Prisma.IntFieldUpdateOperationsInput | number + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday +} + +export type SchedulePresetShiftsCreateManyInput = { + id?: number + preset_id: number + bank_code_id: number + start_time: Date | string + end_time: Date | string + is_remote?: boolean + week_day: $Enums.Weekday +} + +export type SchedulePresetShiftsUpdateManyMutationInput = { + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday +} + +export type SchedulePresetShiftsUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + preset_id?: Prisma.IntFieldUpdateOperationsInput | number + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday +} + +export type SchedulePresetShiftsListRelationFilter = { + every?: Prisma.SchedulePresetShiftsWhereInput + some?: Prisma.SchedulePresetShiftsWhereInput + none?: Prisma.SchedulePresetShiftsWhereInput +} + +export type SchedulePresetShiftsOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type SchedulePresetShiftsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + preset_id?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + is_remote?: Prisma.SortOrder + week_day?: Prisma.SortOrder +} + +export type SchedulePresetShiftsAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + preset_id?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder +} + +export type SchedulePresetShiftsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + preset_id?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + is_remote?: Prisma.SortOrder + week_day?: Prisma.SortOrder +} + +export type SchedulePresetShiftsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + preset_id?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + is_remote?: Prisma.SortOrder + week_day?: Prisma.SortOrder +} + +export type SchedulePresetShiftsSumOrderByAggregateInput = { + id?: Prisma.SortOrder + preset_id?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder +} + +export type SchedulePresetShiftsCreateNestedManyWithoutPresetInput = { + create?: Prisma.XOR | Prisma.SchedulePresetShiftsCreateWithoutPresetInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutPresetInput[] + connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput[] + createMany?: Prisma.SchedulePresetShiftsCreateManyPresetInputEnvelope + connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] +} + +export type SchedulePresetShiftsUncheckedCreateNestedManyWithoutPresetInput = { + create?: Prisma.XOR | Prisma.SchedulePresetShiftsCreateWithoutPresetInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutPresetInput[] + connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput[] + createMany?: Prisma.SchedulePresetShiftsCreateManyPresetInputEnvelope + connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] +} + +export type SchedulePresetShiftsUpdateManyWithoutPresetNestedInput = { + create?: Prisma.XOR | Prisma.SchedulePresetShiftsCreateWithoutPresetInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutPresetInput[] + connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput[] + upsert?: Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutPresetInput | Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutPresetInput[] + createMany?: Prisma.SchedulePresetShiftsCreateManyPresetInputEnvelope + set?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + disconnect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + delete?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + update?: Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutPresetInput | Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutPresetInput[] + updateMany?: Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutPresetInput | Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutPresetInput[] + deleteMany?: Prisma.SchedulePresetShiftsScalarWhereInput | Prisma.SchedulePresetShiftsScalarWhereInput[] +} + +export type SchedulePresetShiftsUncheckedUpdateManyWithoutPresetNestedInput = { + create?: Prisma.XOR | Prisma.SchedulePresetShiftsCreateWithoutPresetInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutPresetInput[] + connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput[] + upsert?: Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutPresetInput | Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutPresetInput[] + createMany?: Prisma.SchedulePresetShiftsCreateManyPresetInputEnvelope + set?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + disconnect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + delete?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + update?: Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutPresetInput | Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutPresetInput[] + updateMany?: Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutPresetInput | Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutPresetInput[] + deleteMany?: Prisma.SchedulePresetShiftsScalarWhereInput | Prisma.SchedulePresetShiftsScalarWhereInput[] +} + +export type EnumWeekdayFieldUpdateOperationsInput = { + set?: $Enums.Weekday +} + +export type SchedulePresetShiftsCreateNestedManyWithoutBank_codeInput = { + create?: Prisma.XOR | Prisma.SchedulePresetShiftsCreateWithoutBank_codeInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput[] + createMany?: Prisma.SchedulePresetShiftsCreateManyBank_codeInputEnvelope + connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] +} + +export type SchedulePresetShiftsUncheckedCreateNestedManyWithoutBank_codeInput = { + create?: Prisma.XOR | Prisma.SchedulePresetShiftsCreateWithoutBank_codeInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput[] + createMany?: Prisma.SchedulePresetShiftsCreateManyBank_codeInputEnvelope + connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] +} + +export type SchedulePresetShiftsUpdateManyWithoutBank_codeNestedInput = { + create?: Prisma.XOR | Prisma.SchedulePresetShiftsCreateWithoutBank_codeInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput[] + upsert?: Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutBank_codeInput[] + createMany?: Prisma.SchedulePresetShiftsCreateManyBank_codeInputEnvelope + set?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + disconnect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + delete?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + update?: Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutBank_codeInput[] + updateMany?: Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutBank_codeInput | Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutBank_codeInput[] + deleteMany?: Prisma.SchedulePresetShiftsScalarWhereInput | Prisma.SchedulePresetShiftsScalarWhereInput[] +} + +export type SchedulePresetShiftsUncheckedUpdateManyWithoutBank_codeNestedInput = { + create?: Prisma.XOR | Prisma.SchedulePresetShiftsCreateWithoutBank_codeInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput[] + upsert?: Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutBank_codeInput[] + createMany?: Prisma.SchedulePresetShiftsCreateManyBank_codeInputEnvelope + set?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + disconnect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + delete?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[] + update?: Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutBank_codeInput[] + updateMany?: Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutBank_codeInput | Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutBank_codeInput[] + deleteMany?: Prisma.SchedulePresetShiftsScalarWhereInput | Prisma.SchedulePresetShiftsScalarWhereInput[] +} + +export type SchedulePresetShiftsCreateWithoutPresetInput = { + start_time: Date | string + end_time: Date | string + is_remote?: boolean + week_day: $Enums.Weekday + bank_code: Prisma.BankCodesCreateNestedOneWithoutSchedulePresetShiftsInput +} + +export type SchedulePresetShiftsUncheckedCreateWithoutPresetInput = { + id?: number + bank_code_id: number + start_time: Date | string + end_time: Date | string + is_remote?: boolean + week_day: $Enums.Weekday +} + +export type SchedulePresetShiftsCreateOrConnectWithoutPresetInput = { + where: Prisma.SchedulePresetShiftsWhereUniqueInput + create: Prisma.XOR +} + +export type SchedulePresetShiftsCreateManyPresetInputEnvelope = { + data: Prisma.SchedulePresetShiftsCreateManyPresetInput | Prisma.SchedulePresetShiftsCreateManyPresetInput[] + skipDuplicates?: boolean +} + +export type SchedulePresetShiftsUpsertWithWhereUniqueWithoutPresetInput = { + where: Prisma.SchedulePresetShiftsWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type SchedulePresetShiftsUpdateWithWhereUniqueWithoutPresetInput = { + where: Prisma.SchedulePresetShiftsWhereUniqueInput + data: Prisma.XOR +} + +export type SchedulePresetShiftsUpdateManyWithWhereWithoutPresetInput = { + where: Prisma.SchedulePresetShiftsScalarWhereInput + data: Prisma.XOR +} + +export type SchedulePresetShiftsScalarWhereInput = { + AND?: Prisma.SchedulePresetShiftsScalarWhereInput | Prisma.SchedulePresetShiftsScalarWhereInput[] + OR?: Prisma.SchedulePresetShiftsScalarWhereInput[] + NOT?: Prisma.SchedulePresetShiftsScalarWhereInput | Prisma.SchedulePresetShiftsScalarWhereInput[] + id?: Prisma.IntFilter<"SchedulePresetShifts"> | number + preset_id?: Prisma.IntFilter<"SchedulePresetShifts"> | number + bank_code_id?: Prisma.IntFilter<"SchedulePresetShifts"> | number + start_time?: Prisma.DateTimeFilter<"SchedulePresetShifts"> | Date | string + end_time?: Prisma.DateTimeFilter<"SchedulePresetShifts"> | Date | string + is_remote?: Prisma.BoolFilter<"SchedulePresetShifts"> | boolean + week_day?: Prisma.EnumWeekdayFilter<"SchedulePresetShifts"> | $Enums.Weekday +} + +export type SchedulePresetShiftsCreateWithoutBank_codeInput = { + start_time: Date | string + end_time: Date | string + is_remote?: boolean + week_day: $Enums.Weekday + preset: Prisma.SchedulePresetsCreateNestedOneWithoutShiftsInput +} + +export type SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput = { + id?: number + preset_id: number + start_time: Date | string + end_time: Date | string + is_remote?: boolean + week_day: $Enums.Weekday +} + +export type SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput = { + where: Prisma.SchedulePresetShiftsWhereUniqueInput + create: Prisma.XOR +} + +export type SchedulePresetShiftsCreateManyBank_codeInputEnvelope = { + data: Prisma.SchedulePresetShiftsCreateManyBank_codeInput | Prisma.SchedulePresetShiftsCreateManyBank_codeInput[] + skipDuplicates?: boolean +} + +export type SchedulePresetShiftsUpsertWithWhereUniqueWithoutBank_codeInput = { + where: Prisma.SchedulePresetShiftsWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type SchedulePresetShiftsUpdateWithWhereUniqueWithoutBank_codeInput = { + where: Prisma.SchedulePresetShiftsWhereUniqueInput + data: Prisma.XOR +} + +export type SchedulePresetShiftsUpdateManyWithWhereWithoutBank_codeInput = { + where: Prisma.SchedulePresetShiftsScalarWhereInput + data: Prisma.XOR +} + +export type SchedulePresetShiftsCreateManyPresetInput = { + id?: number + bank_code_id: number + start_time: Date | string + end_time: Date | string + is_remote?: boolean + week_day: $Enums.Weekday +} + +export type SchedulePresetShiftsUpdateWithoutPresetInput = { + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday + bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutSchedulePresetShiftsNestedInput +} + +export type SchedulePresetShiftsUncheckedUpdateWithoutPresetInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday +} + +export type SchedulePresetShiftsUncheckedUpdateManyWithoutPresetInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday +} + +export type SchedulePresetShiftsCreateManyBank_codeInput = { + id?: number + preset_id: number + start_time: Date | string + end_time: Date | string + is_remote?: boolean + week_day: $Enums.Weekday +} + +export type SchedulePresetShiftsUpdateWithoutBank_codeInput = { + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday + preset?: Prisma.SchedulePresetsUpdateOneRequiredWithoutShiftsNestedInput +} + +export type SchedulePresetShiftsUncheckedUpdateWithoutBank_codeInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + preset_id?: Prisma.IntFieldUpdateOperationsInput | number + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday +} + +export type SchedulePresetShiftsUncheckedUpdateManyWithoutBank_codeInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + preset_id?: Prisma.IntFieldUpdateOperationsInput | number + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday +} + + + +export type SchedulePresetShiftsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + preset_id?: boolean + bank_code_id?: boolean + start_time?: boolean + end_time?: boolean + is_remote?: boolean + week_day?: boolean + bank_code?: boolean | Prisma.BankCodesDefaultArgs + preset?: boolean | Prisma.SchedulePresetsDefaultArgs +}, ExtArgs["result"]["schedulePresetShifts"]> + +export type SchedulePresetShiftsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + preset_id?: boolean + bank_code_id?: boolean + start_time?: boolean + end_time?: boolean + is_remote?: boolean + week_day?: boolean + bank_code?: boolean | Prisma.BankCodesDefaultArgs + preset?: boolean | Prisma.SchedulePresetsDefaultArgs +}, ExtArgs["result"]["schedulePresetShifts"]> + +export type SchedulePresetShiftsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + preset_id?: boolean + bank_code_id?: boolean + start_time?: boolean + end_time?: boolean + is_remote?: boolean + week_day?: boolean + bank_code?: boolean | Prisma.BankCodesDefaultArgs + preset?: boolean | Prisma.SchedulePresetsDefaultArgs +}, ExtArgs["result"]["schedulePresetShifts"]> + +export type SchedulePresetShiftsSelectScalar = { + id?: boolean + preset_id?: boolean + bank_code_id?: boolean + start_time?: boolean + end_time?: boolean + is_remote?: boolean + week_day?: boolean +} + +export type SchedulePresetShiftsOmit = runtime.Types.Extensions.GetOmit<"id" | "preset_id" | "bank_code_id" | "start_time" | "end_time" | "is_remote" | "week_day", ExtArgs["result"]["schedulePresetShifts"]> +export type SchedulePresetShiftsInclude = { + bank_code?: boolean | Prisma.BankCodesDefaultArgs + preset?: boolean | Prisma.SchedulePresetsDefaultArgs +} +export type SchedulePresetShiftsIncludeCreateManyAndReturn = { + bank_code?: boolean | Prisma.BankCodesDefaultArgs + preset?: boolean | Prisma.SchedulePresetsDefaultArgs +} +export type SchedulePresetShiftsIncludeUpdateManyAndReturn = { + bank_code?: boolean | Prisma.BankCodesDefaultArgs + preset?: boolean | Prisma.SchedulePresetsDefaultArgs +} + +export type $SchedulePresetShiftsPayload = { + name: "SchedulePresetShifts" + objects: { + bank_code: Prisma.$BankCodesPayload + preset: Prisma.$SchedulePresetsPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + preset_id: number + bank_code_id: number + start_time: Date + end_time: Date + is_remote: boolean + week_day: $Enums.Weekday + }, ExtArgs["result"]["schedulePresetShifts"]> + composites: {} +} + +export type SchedulePresetShiftsGetPayload = runtime.Types.Result.GetResult + +export type SchedulePresetShiftsCountArgs = + Omit & { + select?: SchedulePresetShiftsCountAggregateInputType | true + } + +export interface SchedulePresetShiftsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['SchedulePresetShifts'], meta: { name: 'SchedulePresetShifts' } } + /** + * Find zero or one SchedulePresetShifts that matches the filter. + * @param {SchedulePresetShiftsFindUniqueArgs} args - Arguments to find a SchedulePresetShifts + * @example + * // Get one SchedulePresetShifts + * const schedulePresetShifts = await prisma.schedulePresetShifts.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetShiftsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one SchedulePresetShifts that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {SchedulePresetShiftsFindUniqueOrThrowArgs} args - Arguments to find a SchedulePresetShifts + * @example + * // Get one SchedulePresetShifts + * const schedulePresetShifts = await prisma.schedulePresetShifts.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetShiftsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first SchedulePresetShifts 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 {SchedulePresetShiftsFindFirstArgs} args - Arguments to find a SchedulePresetShifts + * @example + * // Get one SchedulePresetShifts + * const schedulePresetShifts = await prisma.schedulePresetShifts.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetShiftsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first SchedulePresetShifts 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 {SchedulePresetShiftsFindFirstOrThrowArgs} args - Arguments to find a SchedulePresetShifts + * @example + * // Get one SchedulePresetShifts + * const schedulePresetShifts = await prisma.schedulePresetShifts.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetShiftsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more SchedulePresetShifts 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 {SchedulePresetShiftsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all SchedulePresetShifts + * const schedulePresetShifts = await prisma.schedulePresetShifts.findMany() + * + * // Get first 10 SchedulePresetShifts + * const schedulePresetShifts = await prisma.schedulePresetShifts.findMany({ take: 10 }) + * + * // Only select the `id` + * const schedulePresetShiftsWithIdOnly = await prisma.schedulePresetShifts.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a SchedulePresetShifts. + * @param {SchedulePresetShiftsCreateArgs} args - Arguments to create a SchedulePresetShifts. + * @example + * // Create one SchedulePresetShifts + * const SchedulePresetShifts = await prisma.schedulePresetShifts.create({ + * data: { + * // ... data to create a SchedulePresetShifts + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetShiftsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many SchedulePresetShifts. + * @param {SchedulePresetShiftsCreateManyArgs} args - Arguments to create many SchedulePresetShifts. + * @example + * // Create many SchedulePresetShifts + * const schedulePresetShifts = await prisma.schedulePresetShifts.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many SchedulePresetShifts and returns the data saved in the database. + * @param {SchedulePresetShiftsCreateManyAndReturnArgs} args - Arguments to create many SchedulePresetShifts. + * @example + * // Create many SchedulePresetShifts + * const schedulePresetShifts = await prisma.schedulePresetShifts.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many SchedulePresetShifts and only return the `id` + * const schedulePresetShiftsWithIdOnly = await prisma.schedulePresetShifts.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 SchedulePresetShifts. + * @param {SchedulePresetShiftsDeleteArgs} args - Arguments to delete one SchedulePresetShifts. + * @example + * // Delete one SchedulePresetShifts + * const SchedulePresetShifts = await prisma.schedulePresetShifts.delete({ + * where: { + * // ... filter to delete one SchedulePresetShifts + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetShiftsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one SchedulePresetShifts. + * @param {SchedulePresetShiftsUpdateArgs} args - Arguments to update one SchedulePresetShifts. + * @example + * // Update one SchedulePresetShifts + * const schedulePresetShifts = await prisma.schedulePresetShifts.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetShiftsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more SchedulePresetShifts. + * @param {SchedulePresetShiftsDeleteManyArgs} args - Arguments to filter SchedulePresetShifts to delete. + * @example + * // Delete a few SchedulePresetShifts + * const { count } = await prisma.schedulePresetShifts.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more SchedulePresetShifts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SchedulePresetShiftsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many SchedulePresetShifts + * const schedulePresetShifts = await prisma.schedulePresetShifts.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more SchedulePresetShifts and returns the data updated in the database. + * @param {SchedulePresetShiftsUpdateManyAndReturnArgs} args - Arguments to update many SchedulePresetShifts. + * @example + * // Update many SchedulePresetShifts + * const schedulePresetShifts = await prisma.schedulePresetShifts.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more SchedulePresetShifts and only return the `id` + * const schedulePresetShiftsWithIdOnly = await prisma.schedulePresetShifts.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 SchedulePresetShifts. + * @param {SchedulePresetShiftsUpsertArgs} args - Arguments to update or create a SchedulePresetShifts. + * @example + * // Update or create a SchedulePresetShifts + * const schedulePresetShifts = await prisma.schedulePresetShifts.upsert({ + * create: { + * // ... data to create a SchedulePresetShifts + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the SchedulePresetShifts we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetShiftsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of SchedulePresetShifts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SchedulePresetShiftsCountArgs} args - Arguments to filter SchedulePresetShifts to count. + * @example + * // Count the number of SchedulePresetShifts + * const count = await prisma.schedulePresetShifts.count({ + * where: { + * // ... the filter for the SchedulePresetShifts 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 SchedulePresetShifts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SchedulePresetShiftsAggregateArgs} 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 SchedulePresetShifts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SchedulePresetShiftsGroupByArgs} 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 SchedulePresetShiftsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: SchedulePresetShiftsGroupByArgs['orderBy'] } + : { orderBy?: SchedulePresetShiftsGroupByArgs['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 ? GetSchedulePresetShiftsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the SchedulePresetShifts model + */ +readonly fields: SchedulePresetShiftsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for SchedulePresetShifts. + * 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__SchedulePresetShiftsClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + bank_code = {}>(args?: Prisma.Subset>): Prisma.Prisma__BankCodesClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + preset = {}>(args?: Prisma.Subset>): Prisma.Prisma__SchedulePresetsClient, 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 SchedulePresetShifts model + */ +export interface SchedulePresetShiftsFieldRefs { + readonly id: Prisma.FieldRef<"SchedulePresetShifts", 'Int'> + readonly preset_id: Prisma.FieldRef<"SchedulePresetShifts", 'Int'> + readonly bank_code_id: Prisma.FieldRef<"SchedulePresetShifts", 'Int'> + readonly start_time: Prisma.FieldRef<"SchedulePresetShifts", 'DateTime'> + readonly end_time: Prisma.FieldRef<"SchedulePresetShifts", 'DateTime'> + readonly is_remote: Prisma.FieldRef<"SchedulePresetShifts", 'Boolean'> + readonly week_day: Prisma.FieldRef<"SchedulePresetShifts", 'Weekday'> +} + + +// Custom InputTypes +/** + * SchedulePresetShifts findUnique + */ +export type SchedulePresetShiftsFindUniqueArgs = { + /** + * Select specific fields to fetch from the SchedulePresetShifts + */ + select?: Prisma.SchedulePresetShiftsSelect | null + /** + * Omit specific fields from the SchedulePresetShifts + */ + omit?: Prisma.SchedulePresetShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetShiftsInclude | null + /** + * Filter, which SchedulePresetShifts to fetch. + */ + where: Prisma.SchedulePresetShiftsWhereUniqueInput +} + +/** + * SchedulePresetShifts findUniqueOrThrow + */ +export type SchedulePresetShiftsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the SchedulePresetShifts + */ + select?: Prisma.SchedulePresetShiftsSelect | null + /** + * Omit specific fields from the SchedulePresetShifts + */ + omit?: Prisma.SchedulePresetShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetShiftsInclude | null + /** + * Filter, which SchedulePresetShifts to fetch. + */ + where: Prisma.SchedulePresetShiftsWhereUniqueInput +} + +/** + * SchedulePresetShifts findFirst + */ +export type SchedulePresetShiftsFindFirstArgs = { + /** + * Select specific fields to fetch from the SchedulePresetShifts + */ + select?: Prisma.SchedulePresetShiftsSelect | null + /** + * Omit specific fields from the SchedulePresetShifts + */ + omit?: Prisma.SchedulePresetShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetShiftsInclude | null + /** + * Filter, which SchedulePresetShifts to fetch. + */ + where?: Prisma.SchedulePresetShiftsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SchedulePresetShifts to fetch. + */ + orderBy?: Prisma.SchedulePresetShiftsOrderByWithRelationInput | Prisma.SchedulePresetShiftsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for SchedulePresetShifts. + */ + cursor?: Prisma.SchedulePresetShiftsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` SchedulePresetShifts 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` SchedulePresetShifts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of SchedulePresetShifts. + */ + distinct?: Prisma.SchedulePresetShiftsScalarFieldEnum | Prisma.SchedulePresetShiftsScalarFieldEnum[] +} + +/** + * SchedulePresetShifts findFirstOrThrow + */ +export type SchedulePresetShiftsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the SchedulePresetShifts + */ + select?: Prisma.SchedulePresetShiftsSelect | null + /** + * Omit specific fields from the SchedulePresetShifts + */ + omit?: Prisma.SchedulePresetShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetShiftsInclude | null + /** + * Filter, which SchedulePresetShifts to fetch. + */ + where?: Prisma.SchedulePresetShiftsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SchedulePresetShifts to fetch. + */ + orderBy?: Prisma.SchedulePresetShiftsOrderByWithRelationInput | Prisma.SchedulePresetShiftsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for SchedulePresetShifts. + */ + cursor?: Prisma.SchedulePresetShiftsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` SchedulePresetShifts 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` SchedulePresetShifts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of SchedulePresetShifts. + */ + distinct?: Prisma.SchedulePresetShiftsScalarFieldEnum | Prisma.SchedulePresetShiftsScalarFieldEnum[] +} + +/** + * SchedulePresetShifts findMany + */ +export type SchedulePresetShiftsFindManyArgs = { + /** + * Select specific fields to fetch from the SchedulePresetShifts + */ + select?: Prisma.SchedulePresetShiftsSelect | null + /** + * Omit specific fields from the SchedulePresetShifts + */ + omit?: Prisma.SchedulePresetShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetShiftsInclude | null + /** + * Filter, which SchedulePresetShifts to fetch. + */ + where?: Prisma.SchedulePresetShiftsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SchedulePresetShifts to fetch. + */ + orderBy?: Prisma.SchedulePresetShiftsOrderByWithRelationInput | Prisma.SchedulePresetShiftsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing SchedulePresetShifts. + */ + cursor?: Prisma.SchedulePresetShiftsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` SchedulePresetShifts 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` SchedulePresetShifts. + */ + skip?: number + distinct?: Prisma.SchedulePresetShiftsScalarFieldEnum | Prisma.SchedulePresetShiftsScalarFieldEnum[] +} + +/** + * SchedulePresetShifts create + */ +export type SchedulePresetShiftsCreateArgs = { + /** + * Select specific fields to fetch from the SchedulePresetShifts + */ + select?: Prisma.SchedulePresetShiftsSelect | null + /** + * Omit specific fields from the SchedulePresetShifts + */ + omit?: Prisma.SchedulePresetShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetShiftsInclude | null + /** + * The data needed to create a SchedulePresetShifts. + */ + data: Prisma.XOR +} + +/** + * SchedulePresetShifts createMany + */ +export type SchedulePresetShiftsCreateManyArgs = { + /** + * The data used to create many SchedulePresetShifts. + */ + data: Prisma.SchedulePresetShiftsCreateManyInput | Prisma.SchedulePresetShiftsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * SchedulePresetShifts createManyAndReturn + */ +export type SchedulePresetShiftsCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the SchedulePresetShifts + */ + select?: Prisma.SchedulePresetShiftsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the SchedulePresetShifts + */ + omit?: Prisma.SchedulePresetShiftsOmit | null + /** + * The data used to create many SchedulePresetShifts. + */ + data: Prisma.SchedulePresetShiftsCreateManyInput | Prisma.SchedulePresetShiftsCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetShiftsIncludeCreateManyAndReturn | null +} + +/** + * SchedulePresetShifts update + */ +export type SchedulePresetShiftsUpdateArgs = { + /** + * Select specific fields to fetch from the SchedulePresetShifts + */ + select?: Prisma.SchedulePresetShiftsSelect | null + /** + * Omit specific fields from the SchedulePresetShifts + */ + omit?: Prisma.SchedulePresetShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetShiftsInclude | null + /** + * The data needed to update a SchedulePresetShifts. + */ + data: Prisma.XOR + /** + * Choose, which SchedulePresetShifts to update. + */ + where: Prisma.SchedulePresetShiftsWhereUniqueInput +} + +/** + * SchedulePresetShifts updateMany + */ +export type SchedulePresetShiftsUpdateManyArgs = { + /** + * The data used to update SchedulePresetShifts. + */ + data: Prisma.XOR + /** + * Filter which SchedulePresetShifts to update + */ + where?: Prisma.SchedulePresetShiftsWhereInput + /** + * Limit how many SchedulePresetShifts to update. + */ + limit?: number +} + +/** + * SchedulePresetShifts updateManyAndReturn + */ +export type SchedulePresetShiftsUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the SchedulePresetShifts + */ + select?: Prisma.SchedulePresetShiftsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the SchedulePresetShifts + */ + omit?: Prisma.SchedulePresetShiftsOmit | null + /** + * The data used to update SchedulePresetShifts. + */ + data: Prisma.XOR + /** + * Filter which SchedulePresetShifts to update + */ + where?: Prisma.SchedulePresetShiftsWhereInput + /** + * Limit how many SchedulePresetShifts to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetShiftsIncludeUpdateManyAndReturn | null +} + +/** + * SchedulePresetShifts upsert + */ +export type SchedulePresetShiftsUpsertArgs = { + /** + * Select specific fields to fetch from the SchedulePresetShifts + */ + select?: Prisma.SchedulePresetShiftsSelect | null + /** + * Omit specific fields from the SchedulePresetShifts + */ + omit?: Prisma.SchedulePresetShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetShiftsInclude | null + /** + * The filter to search for the SchedulePresetShifts to update in case it exists. + */ + where: Prisma.SchedulePresetShiftsWhereUniqueInput + /** + * In case the SchedulePresetShifts found by the `where` argument doesn't exist, create a new SchedulePresetShifts with this data. + */ + create: Prisma.XOR + /** + * In case the SchedulePresetShifts was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * SchedulePresetShifts delete + */ +export type SchedulePresetShiftsDeleteArgs = { + /** + * Select specific fields to fetch from the SchedulePresetShifts + */ + select?: Prisma.SchedulePresetShiftsSelect | null + /** + * Omit specific fields from the SchedulePresetShifts + */ + omit?: Prisma.SchedulePresetShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetShiftsInclude | null + /** + * Filter which SchedulePresetShifts to delete. + */ + where: Prisma.SchedulePresetShiftsWhereUniqueInput +} + +/** + * SchedulePresetShifts deleteMany + */ +export type SchedulePresetShiftsDeleteManyArgs = { + /** + * Filter which SchedulePresetShifts to delete + */ + where?: Prisma.SchedulePresetShiftsWhereInput + /** + * Limit how many SchedulePresetShifts to delete. + */ + limit?: number +} + +/** + * SchedulePresetShifts without action + */ +export type SchedulePresetShiftsDefaultArgs = { + /** + * Select specific fields to fetch from the SchedulePresetShifts + */ + select?: Prisma.SchedulePresetShiftsSelect | null + /** + * Omit specific fields from the SchedulePresetShifts + */ + omit?: Prisma.SchedulePresetShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetShiftsInclude | null +} diff --git a/prisma/generated/postgres/models/SchedulePresets.ts b/prisma/generated/postgres/models/SchedulePresets.ts new file mode 100644 index 0000000..ed215f4 --- /dev/null +++ b/prisma/generated/postgres/models/SchedulePresets.ts @@ -0,0 +1,1408 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `SchedulePresets` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model SchedulePresets + * + */ +export type SchedulePresetsModel = runtime.Types.Result.DefaultSelection + +export type AggregateSchedulePresets = { + _count: SchedulePresetsCountAggregateOutputType | null + _avg: SchedulePresetsAvgAggregateOutputType | null + _sum: SchedulePresetsSumAggregateOutputType | null + _min: SchedulePresetsMinAggregateOutputType | null + _max: SchedulePresetsMaxAggregateOutputType | null +} + +export type SchedulePresetsAvgAggregateOutputType = { + id: number | null +} + +export type SchedulePresetsSumAggregateOutputType = { + id: number | null +} + +export type SchedulePresetsMinAggregateOutputType = { + id: number | null + name: string | null + is_default: boolean | null +} + +export type SchedulePresetsMaxAggregateOutputType = { + id: number | null + name: string | null + is_default: boolean | null +} + +export type SchedulePresetsCountAggregateOutputType = { + id: number + name: number + is_default: number + _all: number +} + + +export type SchedulePresetsAvgAggregateInputType = { + id?: true +} + +export type SchedulePresetsSumAggregateInputType = { + id?: true +} + +export type SchedulePresetsMinAggregateInputType = { + id?: true + name?: true + is_default?: true +} + +export type SchedulePresetsMaxAggregateInputType = { + id?: true + name?: true + is_default?: true +} + +export type SchedulePresetsCountAggregateInputType = { + id?: true + name?: true + is_default?: true + _all?: true +} + +export type SchedulePresetsAggregateArgs = { + /** + * Filter which SchedulePresets to aggregate. + */ + where?: Prisma.SchedulePresetsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SchedulePresets to fetch. + */ + orderBy?: Prisma.SchedulePresetsOrderByWithRelationInput | Prisma.SchedulePresetsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.SchedulePresetsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` SchedulePresets 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` SchedulePresets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned SchedulePresets + **/ + _count?: true | SchedulePresetsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: SchedulePresetsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: SchedulePresetsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: SchedulePresetsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: SchedulePresetsMaxAggregateInputType +} + +export type GetSchedulePresetsAggregateType = { + [P in keyof T & keyof AggregateSchedulePresets]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type SchedulePresetsGroupByArgs = { + where?: Prisma.SchedulePresetsWhereInput + orderBy?: Prisma.SchedulePresetsOrderByWithAggregationInput | Prisma.SchedulePresetsOrderByWithAggregationInput[] + by: Prisma.SchedulePresetsScalarFieldEnum[] | Prisma.SchedulePresetsScalarFieldEnum + having?: Prisma.SchedulePresetsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: SchedulePresetsCountAggregateInputType | true + _avg?: SchedulePresetsAvgAggregateInputType + _sum?: SchedulePresetsSumAggregateInputType + _min?: SchedulePresetsMinAggregateInputType + _max?: SchedulePresetsMaxAggregateInputType +} + +export type SchedulePresetsGroupByOutputType = { + id: number + name: string + is_default: boolean + _count: SchedulePresetsCountAggregateOutputType | null + _avg: SchedulePresetsAvgAggregateOutputType | null + _sum: SchedulePresetsSumAggregateOutputType | null + _min: SchedulePresetsMinAggregateOutputType | null + _max: SchedulePresetsMaxAggregateOutputType | null +} + +type GetSchedulePresetsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof SchedulePresetsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type SchedulePresetsWhereInput = { + AND?: Prisma.SchedulePresetsWhereInput | Prisma.SchedulePresetsWhereInput[] + OR?: Prisma.SchedulePresetsWhereInput[] + NOT?: Prisma.SchedulePresetsWhereInput | Prisma.SchedulePresetsWhereInput[] + id?: Prisma.IntFilter<"SchedulePresets"> | number + name?: Prisma.StringFilter<"SchedulePresets"> | string + is_default?: Prisma.BoolFilter<"SchedulePresets"> | boolean + employees?: Prisma.EmployeesListRelationFilter + shifts?: Prisma.SchedulePresetShiftsListRelationFilter +} + +export type SchedulePresetsOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + is_default?: Prisma.SortOrder + employees?: Prisma.EmployeesOrderByRelationAggregateInput + shifts?: Prisma.SchedulePresetShiftsOrderByRelationAggregateInput +} + +export type SchedulePresetsWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.SchedulePresetsWhereInput | Prisma.SchedulePresetsWhereInput[] + OR?: Prisma.SchedulePresetsWhereInput[] + NOT?: Prisma.SchedulePresetsWhereInput | Prisma.SchedulePresetsWhereInput[] + name?: Prisma.StringFilter<"SchedulePresets"> | string + is_default?: Prisma.BoolFilter<"SchedulePresets"> | boolean + employees?: Prisma.EmployeesListRelationFilter + shifts?: Prisma.SchedulePresetShiftsListRelationFilter +}, "id"> + +export type SchedulePresetsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + is_default?: Prisma.SortOrder + _count?: Prisma.SchedulePresetsCountOrderByAggregateInput + _avg?: Prisma.SchedulePresetsAvgOrderByAggregateInput + _max?: Prisma.SchedulePresetsMaxOrderByAggregateInput + _min?: Prisma.SchedulePresetsMinOrderByAggregateInput + _sum?: Prisma.SchedulePresetsSumOrderByAggregateInput +} + +export type SchedulePresetsScalarWhereWithAggregatesInput = { + AND?: Prisma.SchedulePresetsScalarWhereWithAggregatesInput | Prisma.SchedulePresetsScalarWhereWithAggregatesInput[] + OR?: Prisma.SchedulePresetsScalarWhereWithAggregatesInput[] + NOT?: Prisma.SchedulePresetsScalarWhereWithAggregatesInput | Prisma.SchedulePresetsScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"SchedulePresets"> | number + name?: Prisma.StringWithAggregatesFilter<"SchedulePresets"> | string + is_default?: Prisma.BoolWithAggregatesFilter<"SchedulePresets"> | boolean +} + +export type SchedulePresetsCreateInput = { + name: string + is_default?: boolean + employees?: Prisma.EmployeesCreateNestedManyWithoutSchedule_presetInput + shifts?: Prisma.SchedulePresetShiftsCreateNestedManyWithoutPresetInput +} + +export type SchedulePresetsUncheckedCreateInput = { + id?: number + name: string + is_default?: boolean + employees?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSchedule_presetInput + shifts?: Prisma.SchedulePresetShiftsUncheckedCreateNestedManyWithoutPresetInput +} + +export type SchedulePresetsUpdateInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean + employees?: Prisma.EmployeesUpdateManyWithoutSchedule_presetNestedInput + shifts?: Prisma.SchedulePresetShiftsUpdateManyWithoutPresetNestedInput +} + +export type SchedulePresetsUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean + employees?: Prisma.EmployeesUncheckedUpdateManyWithoutSchedule_presetNestedInput + shifts?: Prisma.SchedulePresetShiftsUncheckedUpdateManyWithoutPresetNestedInput +} + +export type SchedulePresetsCreateManyInput = { + id?: number + name: string + is_default?: boolean +} + +export type SchedulePresetsUpdateManyMutationInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type SchedulePresetsUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type SchedulePresetsNullableScalarRelationFilter = { + is?: Prisma.SchedulePresetsWhereInput | null + isNot?: Prisma.SchedulePresetsWhereInput | null +} + +export type SchedulePresetsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + is_default?: Prisma.SortOrder +} + +export type SchedulePresetsAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type SchedulePresetsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + is_default?: Prisma.SortOrder +} + +export type SchedulePresetsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + is_default?: Prisma.SortOrder +} + +export type SchedulePresetsSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type SchedulePresetsScalarRelationFilter = { + is?: Prisma.SchedulePresetsWhereInput + isNot?: Prisma.SchedulePresetsWhereInput +} + +export type SchedulePresetsCreateNestedOneWithoutEmployeesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.SchedulePresetsCreateOrConnectWithoutEmployeesInput + connect?: Prisma.SchedulePresetsWhereUniqueInput +} + +export type SchedulePresetsUpdateOneWithoutEmployeesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.SchedulePresetsCreateOrConnectWithoutEmployeesInput + upsert?: Prisma.SchedulePresetsUpsertWithoutEmployeesInput + disconnect?: Prisma.SchedulePresetsWhereInput | boolean + delete?: Prisma.SchedulePresetsWhereInput | boolean + connect?: Prisma.SchedulePresetsWhereUniqueInput + update?: Prisma.XOR, Prisma.SchedulePresetsUncheckedUpdateWithoutEmployeesInput> +} + +export type SchedulePresetsCreateNestedOneWithoutShiftsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.SchedulePresetsCreateOrConnectWithoutShiftsInput + connect?: Prisma.SchedulePresetsWhereUniqueInput +} + +export type SchedulePresetsUpdateOneRequiredWithoutShiftsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.SchedulePresetsCreateOrConnectWithoutShiftsInput + upsert?: Prisma.SchedulePresetsUpsertWithoutShiftsInput + connect?: Prisma.SchedulePresetsWhereUniqueInput + update?: Prisma.XOR, Prisma.SchedulePresetsUncheckedUpdateWithoutShiftsInput> +} + +export type SchedulePresetsCreateWithoutEmployeesInput = { + name: string + is_default?: boolean + shifts?: Prisma.SchedulePresetShiftsCreateNestedManyWithoutPresetInput +} + +export type SchedulePresetsUncheckedCreateWithoutEmployeesInput = { + id?: number + name: string + is_default?: boolean + shifts?: Prisma.SchedulePresetShiftsUncheckedCreateNestedManyWithoutPresetInput +} + +export type SchedulePresetsCreateOrConnectWithoutEmployeesInput = { + where: Prisma.SchedulePresetsWhereUniqueInput + create: Prisma.XOR +} + +export type SchedulePresetsUpsertWithoutEmployeesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.SchedulePresetsWhereInput +} + +export type SchedulePresetsUpdateToOneWithWhereWithoutEmployeesInput = { + where?: Prisma.SchedulePresetsWhereInput + data: Prisma.XOR +} + +export type SchedulePresetsUpdateWithoutEmployeesInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean + shifts?: Prisma.SchedulePresetShiftsUpdateManyWithoutPresetNestedInput +} + +export type SchedulePresetsUncheckedUpdateWithoutEmployeesInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean + shifts?: Prisma.SchedulePresetShiftsUncheckedUpdateManyWithoutPresetNestedInput +} + +export type SchedulePresetsCreateWithoutShiftsInput = { + name: string + is_default?: boolean + employees?: Prisma.EmployeesCreateNestedManyWithoutSchedule_presetInput +} + +export type SchedulePresetsUncheckedCreateWithoutShiftsInput = { + id?: number + name: string + is_default?: boolean + employees?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSchedule_presetInput +} + +export type SchedulePresetsCreateOrConnectWithoutShiftsInput = { + where: Prisma.SchedulePresetsWhereUniqueInput + create: Prisma.XOR +} + +export type SchedulePresetsUpsertWithoutShiftsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.SchedulePresetsWhereInput +} + +export type SchedulePresetsUpdateToOneWithWhereWithoutShiftsInput = { + where?: Prisma.SchedulePresetsWhereInput + data: Prisma.XOR +} + +export type SchedulePresetsUpdateWithoutShiftsInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean + employees?: Prisma.EmployeesUpdateManyWithoutSchedule_presetNestedInput +} + +export type SchedulePresetsUncheckedUpdateWithoutShiftsInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + is_default?: Prisma.BoolFieldUpdateOperationsInput | boolean + employees?: Prisma.EmployeesUncheckedUpdateManyWithoutSchedule_presetNestedInput +} + + +/** + * Count Type SchedulePresetsCountOutputType + */ + +export type SchedulePresetsCountOutputType = { + employees: number + shifts: number +} + +export type SchedulePresetsCountOutputTypeSelect = { + employees?: boolean | SchedulePresetsCountOutputTypeCountEmployeesArgs + shifts?: boolean | SchedulePresetsCountOutputTypeCountShiftsArgs +} + +/** + * SchedulePresetsCountOutputType without action + */ +export type SchedulePresetsCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the SchedulePresetsCountOutputType + */ + select?: Prisma.SchedulePresetsCountOutputTypeSelect | null +} + +/** + * SchedulePresetsCountOutputType without action + */ +export type SchedulePresetsCountOutputTypeCountEmployeesArgs = { + where?: Prisma.EmployeesWhereInput +} + +/** + * SchedulePresetsCountOutputType without action + */ +export type SchedulePresetsCountOutputTypeCountShiftsArgs = { + where?: Prisma.SchedulePresetShiftsWhereInput +} + + +export type SchedulePresetsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + is_default?: boolean + employees?: boolean | Prisma.SchedulePresets$employeesArgs + shifts?: boolean | Prisma.SchedulePresets$shiftsArgs + _count?: boolean | Prisma.SchedulePresetsCountOutputTypeDefaultArgs +}, ExtArgs["result"]["schedulePresets"]> + +export type SchedulePresetsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + is_default?: boolean +}, ExtArgs["result"]["schedulePresets"]> + +export type SchedulePresetsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + is_default?: boolean +}, ExtArgs["result"]["schedulePresets"]> + +export type SchedulePresetsSelectScalar = { + id?: boolean + name?: boolean + is_default?: boolean +} + +export type SchedulePresetsOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "is_default", ExtArgs["result"]["schedulePresets"]> +export type SchedulePresetsInclude = { + employees?: boolean | Prisma.SchedulePresets$employeesArgs + shifts?: boolean | Prisma.SchedulePresets$shiftsArgs + _count?: boolean | Prisma.SchedulePresetsCountOutputTypeDefaultArgs +} +export type SchedulePresetsIncludeCreateManyAndReturn = {} +export type SchedulePresetsIncludeUpdateManyAndReturn = {} + +export type $SchedulePresetsPayload = { + name: "SchedulePresets" + objects: { + employees: Prisma.$EmployeesPayload[] + shifts: Prisma.$SchedulePresetShiftsPayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name: string + is_default: boolean + }, ExtArgs["result"]["schedulePresets"]> + composites: {} +} + +export type SchedulePresetsGetPayload = runtime.Types.Result.GetResult + +export type SchedulePresetsCountArgs = + Omit & { + select?: SchedulePresetsCountAggregateInputType | true + } + +export interface SchedulePresetsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['SchedulePresets'], meta: { name: 'SchedulePresets' } } + /** + * Find zero or one SchedulePresets that matches the filter. + * @param {SchedulePresetsFindUniqueArgs} args - Arguments to find a SchedulePresets + * @example + * // Get one SchedulePresets + * const schedulePresets = await prisma.schedulePresets.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one SchedulePresets that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {SchedulePresetsFindUniqueOrThrowArgs} args - Arguments to find a SchedulePresets + * @example + * // Get one SchedulePresets + * const schedulePresets = await prisma.schedulePresets.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first SchedulePresets 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 {SchedulePresetsFindFirstArgs} args - Arguments to find a SchedulePresets + * @example + * // Get one SchedulePresets + * const schedulePresets = await prisma.schedulePresets.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first SchedulePresets 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 {SchedulePresetsFindFirstOrThrowArgs} args - Arguments to find a SchedulePresets + * @example + * // Get one SchedulePresets + * const schedulePresets = await prisma.schedulePresets.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more SchedulePresets 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 {SchedulePresetsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all SchedulePresets + * const schedulePresets = await prisma.schedulePresets.findMany() + * + * // Get first 10 SchedulePresets + * const schedulePresets = await prisma.schedulePresets.findMany({ take: 10 }) + * + * // Only select the `id` + * const schedulePresetsWithIdOnly = await prisma.schedulePresets.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a SchedulePresets. + * @param {SchedulePresetsCreateArgs} args - Arguments to create a SchedulePresets. + * @example + * // Create one SchedulePresets + * const SchedulePresets = await prisma.schedulePresets.create({ + * data: { + * // ... data to create a SchedulePresets + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many SchedulePresets. + * @param {SchedulePresetsCreateManyArgs} args - Arguments to create many SchedulePresets. + * @example + * // Create many SchedulePresets + * const schedulePresets = await prisma.schedulePresets.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many SchedulePresets and returns the data saved in the database. + * @param {SchedulePresetsCreateManyAndReturnArgs} args - Arguments to create many SchedulePresets. + * @example + * // Create many SchedulePresets + * const schedulePresets = await prisma.schedulePresets.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many SchedulePresets and only return the `id` + * const schedulePresetsWithIdOnly = await prisma.schedulePresets.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 SchedulePresets. + * @param {SchedulePresetsDeleteArgs} args - Arguments to delete one SchedulePresets. + * @example + * // Delete one SchedulePresets + * const SchedulePresets = await prisma.schedulePresets.delete({ + * where: { + * // ... filter to delete one SchedulePresets + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one SchedulePresets. + * @param {SchedulePresetsUpdateArgs} args - Arguments to update one SchedulePresets. + * @example + * // Update one SchedulePresets + * const schedulePresets = await prisma.schedulePresets.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more SchedulePresets. + * @param {SchedulePresetsDeleteManyArgs} args - Arguments to filter SchedulePresets to delete. + * @example + * // Delete a few SchedulePresets + * const { count } = await prisma.schedulePresets.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more SchedulePresets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SchedulePresetsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many SchedulePresets + * const schedulePresets = await prisma.schedulePresets.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more SchedulePresets and returns the data updated in the database. + * @param {SchedulePresetsUpdateManyAndReturnArgs} args - Arguments to update many SchedulePresets. + * @example + * // Update many SchedulePresets + * const schedulePresets = await prisma.schedulePresets.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more SchedulePresets and only return the `id` + * const schedulePresetsWithIdOnly = await prisma.schedulePresets.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 SchedulePresets. + * @param {SchedulePresetsUpsertArgs} args - Arguments to update or create a SchedulePresets. + * @example + * // Update or create a SchedulePresets + * const schedulePresets = await prisma.schedulePresets.upsert({ + * create: { + * // ... data to create a SchedulePresets + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the SchedulePresets we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SchedulePresetsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of SchedulePresets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SchedulePresetsCountArgs} args - Arguments to filter SchedulePresets to count. + * @example + * // Count the number of SchedulePresets + * const count = await prisma.schedulePresets.count({ + * where: { + * // ... the filter for the SchedulePresets 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 SchedulePresets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SchedulePresetsAggregateArgs} 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 SchedulePresets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SchedulePresetsGroupByArgs} 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 SchedulePresetsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: SchedulePresetsGroupByArgs['orderBy'] } + : { orderBy?: SchedulePresetsGroupByArgs['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 ? GetSchedulePresetsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the SchedulePresets model + */ +readonly fields: SchedulePresetsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for SchedulePresets. + * 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__SchedulePresetsClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + employees = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + shifts = {}>(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 SchedulePresets model + */ +export interface SchedulePresetsFieldRefs { + readonly id: Prisma.FieldRef<"SchedulePresets", 'Int'> + readonly name: Prisma.FieldRef<"SchedulePresets", 'String'> + readonly is_default: Prisma.FieldRef<"SchedulePresets", 'Boolean'> +} + + +// Custom InputTypes +/** + * SchedulePresets findUnique + */ +export type SchedulePresetsFindUniqueArgs = { + /** + * Select specific fields to fetch from the SchedulePresets + */ + select?: Prisma.SchedulePresetsSelect | null + /** + * Omit specific fields from the SchedulePresets + */ + omit?: Prisma.SchedulePresetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetsInclude | null + /** + * Filter, which SchedulePresets to fetch. + */ + where: Prisma.SchedulePresetsWhereUniqueInput +} + +/** + * SchedulePresets findUniqueOrThrow + */ +export type SchedulePresetsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the SchedulePresets + */ + select?: Prisma.SchedulePresetsSelect | null + /** + * Omit specific fields from the SchedulePresets + */ + omit?: Prisma.SchedulePresetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetsInclude | null + /** + * Filter, which SchedulePresets to fetch. + */ + where: Prisma.SchedulePresetsWhereUniqueInput +} + +/** + * SchedulePresets findFirst + */ +export type SchedulePresetsFindFirstArgs = { + /** + * Select specific fields to fetch from the SchedulePresets + */ + select?: Prisma.SchedulePresetsSelect | null + /** + * Omit specific fields from the SchedulePresets + */ + omit?: Prisma.SchedulePresetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetsInclude | null + /** + * Filter, which SchedulePresets to fetch. + */ + where?: Prisma.SchedulePresetsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SchedulePresets to fetch. + */ + orderBy?: Prisma.SchedulePresetsOrderByWithRelationInput | Prisma.SchedulePresetsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for SchedulePresets. + */ + cursor?: Prisma.SchedulePresetsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` SchedulePresets 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` SchedulePresets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of SchedulePresets. + */ + distinct?: Prisma.SchedulePresetsScalarFieldEnum | Prisma.SchedulePresetsScalarFieldEnum[] +} + +/** + * SchedulePresets findFirstOrThrow + */ +export type SchedulePresetsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the SchedulePresets + */ + select?: Prisma.SchedulePresetsSelect | null + /** + * Omit specific fields from the SchedulePresets + */ + omit?: Prisma.SchedulePresetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetsInclude | null + /** + * Filter, which SchedulePresets to fetch. + */ + where?: Prisma.SchedulePresetsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SchedulePresets to fetch. + */ + orderBy?: Prisma.SchedulePresetsOrderByWithRelationInput | Prisma.SchedulePresetsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for SchedulePresets. + */ + cursor?: Prisma.SchedulePresetsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` SchedulePresets 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` SchedulePresets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of SchedulePresets. + */ + distinct?: Prisma.SchedulePresetsScalarFieldEnum | Prisma.SchedulePresetsScalarFieldEnum[] +} + +/** + * SchedulePresets findMany + */ +export type SchedulePresetsFindManyArgs = { + /** + * Select specific fields to fetch from the SchedulePresets + */ + select?: Prisma.SchedulePresetsSelect | null + /** + * Omit specific fields from the SchedulePresets + */ + omit?: Prisma.SchedulePresetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetsInclude | null + /** + * Filter, which SchedulePresets to fetch. + */ + where?: Prisma.SchedulePresetsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of SchedulePresets to fetch. + */ + orderBy?: Prisma.SchedulePresetsOrderByWithRelationInput | Prisma.SchedulePresetsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing SchedulePresets. + */ + cursor?: Prisma.SchedulePresetsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` SchedulePresets 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` SchedulePresets. + */ + skip?: number + distinct?: Prisma.SchedulePresetsScalarFieldEnum | Prisma.SchedulePresetsScalarFieldEnum[] +} + +/** + * SchedulePresets create + */ +export type SchedulePresetsCreateArgs = { + /** + * Select specific fields to fetch from the SchedulePresets + */ + select?: Prisma.SchedulePresetsSelect | null + /** + * Omit specific fields from the SchedulePresets + */ + omit?: Prisma.SchedulePresetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetsInclude | null + /** + * The data needed to create a SchedulePresets. + */ + data: Prisma.XOR +} + +/** + * SchedulePresets createMany + */ +export type SchedulePresetsCreateManyArgs = { + /** + * The data used to create many SchedulePresets. + */ + data: Prisma.SchedulePresetsCreateManyInput | Prisma.SchedulePresetsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * SchedulePresets createManyAndReturn + */ +export type SchedulePresetsCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the SchedulePresets + */ + select?: Prisma.SchedulePresetsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the SchedulePresets + */ + omit?: Prisma.SchedulePresetsOmit | null + /** + * The data used to create many SchedulePresets. + */ + data: Prisma.SchedulePresetsCreateManyInput | Prisma.SchedulePresetsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * SchedulePresets update + */ +export type SchedulePresetsUpdateArgs = { + /** + * Select specific fields to fetch from the SchedulePresets + */ + select?: Prisma.SchedulePresetsSelect | null + /** + * Omit specific fields from the SchedulePresets + */ + omit?: Prisma.SchedulePresetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetsInclude | null + /** + * The data needed to update a SchedulePresets. + */ + data: Prisma.XOR + /** + * Choose, which SchedulePresets to update. + */ + where: Prisma.SchedulePresetsWhereUniqueInput +} + +/** + * SchedulePresets updateMany + */ +export type SchedulePresetsUpdateManyArgs = { + /** + * The data used to update SchedulePresets. + */ + data: Prisma.XOR + /** + * Filter which SchedulePresets to update + */ + where?: Prisma.SchedulePresetsWhereInput + /** + * Limit how many SchedulePresets to update. + */ + limit?: number +} + +/** + * SchedulePresets updateManyAndReturn + */ +export type SchedulePresetsUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the SchedulePresets + */ + select?: Prisma.SchedulePresetsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the SchedulePresets + */ + omit?: Prisma.SchedulePresetsOmit | null + /** + * The data used to update SchedulePresets. + */ + data: Prisma.XOR + /** + * Filter which SchedulePresets to update + */ + where?: Prisma.SchedulePresetsWhereInput + /** + * Limit how many SchedulePresets to update. + */ + limit?: number +} + +/** + * SchedulePresets upsert + */ +export type SchedulePresetsUpsertArgs = { + /** + * Select specific fields to fetch from the SchedulePresets + */ + select?: Prisma.SchedulePresetsSelect | null + /** + * Omit specific fields from the SchedulePresets + */ + omit?: Prisma.SchedulePresetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetsInclude | null + /** + * The filter to search for the SchedulePresets to update in case it exists. + */ + where: Prisma.SchedulePresetsWhereUniqueInput + /** + * In case the SchedulePresets found by the `where` argument doesn't exist, create a new SchedulePresets with this data. + */ + create: Prisma.XOR + /** + * In case the SchedulePresets was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * SchedulePresets delete + */ +export type SchedulePresetsDeleteArgs = { + /** + * Select specific fields to fetch from the SchedulePresets + */ + select?: Prisma.SchedulePresetsSelect | null + /** + * Omit specific fields from the SchedulePresets + */ + omit?: Prisma.SchedulePresetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetsInclude | null + /** + * Filter which SchedulePresets to delete. + */ + where: Prisma.SchedulePresetsWhereUniqueInput +} + +/** + * SchedulePresets deleteMany + */ +export type SchedulePresetsDeleteManyArgs = { + /** + * Filter which SchedulePresets to delete + */ + where?: Prisma.SchedulePresetsWhereInput + /** + * Limit how many SchedulePresets to delete. + */ + limit?: number +} + +/** + * SchedulePresets.employees + */ +export type SchedulePresets$employeesArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelect | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesInclude | null + where?: Prisma.EmployeesWhereInput + orderBy?: Prisma.EmployeesOrderByWithRelationInput | Prisma.EmployeesOrderByWithRelationInput[] + cursor?: Prisma.EmployeesWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.EmployeesScalarFieldEnum | Prisma.EmployeesScalarFieldEnum[] +} + +/** + * SchedulePresets.shifts + */ +export type SchedulePresets$shiftsArgs = { + /** + * Select specific fields to fetch from the SchedulePresetShifts + */ + select?: Prisma.SchedulePresetShiftsSelect | null + /** + * Omit specific fields from the SchedulePresetShifts + */ + omit?: Prisma.SchedulePresetShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetShiftsInclude | null + where?: Prisma.SchedulePresetShiftsWhereInput + orderBy?: Prisma.SchedulePresetShiftsOrderByWithRelationInput | Prisma.SchedulePresetShiftsOrderByWithRelationInput[] + cursor?: Prisma.SchedulePresetShiftsWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.SchedulePresetShiftsScalarFieldEnum | Prisma.SchedulePresetShiftsScalarFieldEnum[] +} + +/** + * SchedulePresets without action + */ +export type SchedulePresetsDefaultArgs = { + /** + * Select specific fields to fetch from the SchedulePresets + */ + select?: Prisma.SchedulePresetsSelect | null + /** + * Omit specific fields from the SchedulePresets + */ + omit?: Prisma.SchedulePresetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.SchedulePresetsInclude | null +} diff --git a/prisma/generated/postgres/models/Sessions.ts b/prisma/generated/postgres/models/Sessions.ts new file mode 100644 index 0000000..fe01bc6 --- /dev/null +++ b/prisma/generated/postgres/models/Sessions.ts @@ -0,0 +1,1116 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Sessions` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model Sessions + * + */ +export type SessionsModel = runtime.Types.Result.DefaultSelection + +export type AggregateSessions = { + _count: SessionsCountAggregateOutputType | null + _min: SessionsMinAggregateOutputType | null + _max: SessionsMaxAggregateOutputType | null +} + +export type SessionsMinAggregateOutputType = { + id: string | null + sid: string | null + data: string | null + expiresAt: Date | null +} + +export type SessionsMaxAggregateOutputType = { + id: string | null + sid: string | null + data: string | null + expiresAt: Date | null +} + +export type SessionsCountAggregateOutputType = { + id: number + sid: number + data: number + expiresAt: number + _all: number +} + + +export type SessionsMinAggregateInputType = { + id?: true + sid?: true + data?: true + expiresAt?: true +} + +export type SessionsMaxAggregateInputType = { + id?: true + sid?: true + data?: true + expiresAt?: true +} + +export type SessionsCountAggregateInputType = { + id?: true + sid?: true + data?: true + expiresAt?: true + _all?: true +} + +export type SessionsAggregateArgs = { + /** + * Filter which Sessions to aggregate. + */ + where?: Prisma.SessionsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionsOrderByWithRelationInput | Prisma.SessionsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.SessionsWhereUniqueInput + /** + * {@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 | SessionsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: SessionsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: SessionsMaxAggregateInputType +} + +export type GetSessionsAggregateType = { + [P in keyof T & keyof AggregateSessions]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type SessionsGroupByArgs = { + where?: Prisma.SessionsWhereInput + orderBy?: Prisma.SessionsOrderByWithAggregationInput | Prisma.SessionsOrderByWithAggregationInput[] + by: Prisma.SessionsScalarFieldEnum[] | Prisma.SessionsScalarFieldEnum + having?: Prisma.SessionsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: SessionsCountAggregateInputType | true + _min?: SessionsMinAggregateInputType + _max?: SessionsMaxAggregateInputType +} + +export type SessionsGroupByOutputType = { + id: string + sid: string + data: string + expiresAt: Date + _count: SessionsCountAggregateOutputType | null + _min: SessionsMinAggregateOutputType | null + _max: SessionsMaxAggregateOutputType | null +} + +type GetSessionsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof SessionsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type SessionsWhereInput = { + AND?: Prisma.SessionsWhereInput | Prisma.SessionsWhereInput[] + OR?: Prisma.SessionsWhereInput[] + NOT?: Prisma.SessionsWhereInput | Prisma.SessionsWhereInput[] + id?: Prisma.StringFilter<"Sessions"> | string + sid?: Prisma.StringFilter<"Sessions"> | string + data?: Prisma.StringFilter<"Sessions"> | string + expiresAt?: Prisma.DateTimeFilter<"Sessions"> | Date | string +} + +export type SessionsOrderByWithRelationInput = { + id?: Prisma.SortOrder + sid?: Prisma.SortOrder + data?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder +} + +export type SessionsWhereUniqueInput = Prisma.AtLeast<{ + id?: string + sid?: string + AND?: Prisma.SessionsWhereInput | Prisma.SessionsWhereInput[] + OR?: Prisma.SessionsWhereInput[] + NOT?: Prisma.SessionsWhereInput | Prisma.SessionsWhereInput[] + data?: Prisma.StringFilter<"Sessions"> | string + expiresAt?: Prisma.DateTimeFilter<"Sessions"> | Date | string +}, "id" | "sid"> + +export type SessionsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + sid?: Prisma.SortOrder + data?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder + _count?: Prisma.SessionsCountOrderByAggregateInput + _max?: Prisma.SessionsMaxOrderByAggregateInput + _min?: Prisma.SessionsMinOrderByAggregateInput +} + +export type SessionsScalarWhereWithAggregatesInput = { + AND?: Prisma.SessionsScalarWhereWithAggregatesInput | Prisma.SessionsScalarWhereWithAggregatesInput[] + OR?: Prisma.SessionsScalarWhereWithAggregatesInput[] + NOT?: Prisma.SessionsScalarWhereWithAggregatesInput | Prisma.SessionsScalarWhereWithAggregatesInput[] + id?: Prisma.StringWithAggregatesFilter<"Sessions"> | string + sid?: Prisma.StringWithAggregatesFilter<"Sessions"> | string + data?: Prisma.StringWithAggregatesFilter<"Sessions"> | string + expiresAt?: Prisma.DateTimeWithAggregatesFilter<"Sessions"> | Date | string +} + +export type SessionsCreateInput = { + id: string + sid: string + data: string + expiresAt: Date | string +} + +export type SessionsUncheckedCreateInput = { + id: string + sid: string + data: string + expiresAt: Date | string +} + +export type SessionsUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + sid?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SessionsUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + sid?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SessionsCreateManyInput = { + id: string + sid: string + data: string + expiresAt: Date | string +} + +export type SessionsUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + sid?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SessionsUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + sid?: Prisma.StringFieldUpdateOperationsInput | string + data?: Prisma.StringFieldUpdateOperationsInput | string + expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type SessionsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + sid?: Prisma.SortOrder + data?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder +} + +export type SessionsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + sid?: Prisma.SortOrder + data?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder +} + +export type SessionsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + sid?: Prisma.SortOrder + data?: Prisma.SortOrder + expiresAt?: Prisma.SortOrder +} + + + +export type SessionsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + sid?: boolean + data?: boolean + expiresAt?: boolean +}, ExtArgs["result"]["sessions"]> + +export type SessionsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + sid?: boolean + data?: boolean + expiresAt?: boolean +}, ExtArgs["result"]["sessions"]> + +export type SessionsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + sid?: boolean + data?: boolean + expiresAt?: boolean +}, ExtArgs["result"]["sessions"]> + +export type SessionsSelectScalar = { + id?: boolean + sid?: boolean + data?: boolean + expiresAt?: boolean +} + +export type SessionsOmit = runtime.Types.Extensions.GetOmit<"id" | "sid" | "data" | "expiresAt", ExtArgs["result"]["sessions"]> + +export type $SessionsPayload = { + name: "Sessions" + objects: {} + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + sid: string + data: string + expiresAt: Date + }, ExtArgs["result"]["sessions"]> + composites: {} +} + +export type SessionsGetPayload = runtime.Types.Result.GetResult + +export type SessionsCountArgs = + Omit & { + select?: SessionsCountAggregateInputType | true + } + +export interface SessionsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Sessions'], meta: { name: 'Sessions' } } + /** + * Find zero or one Sessions that matches the filter. + * @param {SessionsFindUniqueArgs} args - Arguments to find a Sessions + * @example + * // Get one Sessions + * const sessions = await prisma.sessions.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SessionsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Sessions that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {SessionsFindUniqueOrThrowArgs} args - Arguments to find a Sessions + * @example + * // Get one Sessions + * const sessions = await prisma.sessions.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SessionsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first 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 {SessionsFindFirstArgs} args - Arguments to find a Sessions + * @example + * // Get one Sessions + * const sessions = await prisma.sessions.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Sessions 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 {SessionsFindFirstOrThrowArgs} args - Arguments to find a Sessions + * @example + * // Get one Sessions + * const sessions = await prisma.sessions.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionsClient, 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 {SessionsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Sessions + * const sessions = await prisma.sessions.findMany() + * + * // Get first 10 Sessions + * const sessions = await prisma.sessions.findMany({ take: 10 }) + * + * // Only select the `id` + * const sessionsWithIdOnly = await prisma.sessions.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Sessions. + * @param {SessionsCreateArgs} args - Arguments to create a Sessions. + * @example + * // Create one Sessions + * const Sessions = await prisma.sessions.create({ + * data: { + * // ... data to create a Sessions + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__SessionsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Sessions. + * @param {SessionsCreateManyArgs} args - Arguments to create many Sessions. + * @example + * // Create many Sessions + * const sessions = await prisma.sessions.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Sessions and returns the data saved in the database. + * @param {SessionsCreateManyAndReturnArgs} args - Arguments to create many Sessions. + * @example + * // Create many Sessions + * const sessions = await prisma.sessions.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Sessions and only return the `id` + * const sessionsWithIdOnly = await prisma.sessions.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 Sessions. + * @param {SessionsDeleteArgs} args - Arguments to delete one Sessions. + * @example + * // Delete one Sessions + * const Sessions = await prisma.sessions.delete({ + * where: { + * // ... filter to delete one Sessions + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__SessionsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Sessions. + * @param {SessionsUpdateArgs} args - Arguments to update one Sessions. + * @example + * // Update one Sessions + * const sessions = await prisma.sessions.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__SessionsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Sessions. + * @param {SessionsDeleteManyArgs} args - Arguments to filter Sessions to delete. + * @example + * // Delete a few Sessions + * const { count } = await prisma.sessions.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 {SessionsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Sessions + * const sessions = await prisma.sessions.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 {SessionsUpdateManyAndReturnArgs} args - Arguments to update many Sessions. + * @example + * // Update many Sessions + * const sessions = await prisma.sessions.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Sessions and only return the `id` + * const sessionsWithIdOnly = await prisma.sessions.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 Sessions. + * @param {SessionsUpsertArgs} args - Arguments to update or create a Sessions. + * @example + * // Update or create a Sessions + * const sessions = await prisma.sessions.upsert({ + * create: { + * // ... data to create a Sessions + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Sessions we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SessionsClient, 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 {SessionsCountArgs} args - Arguments to filter Sessions to count. + * @example + * // Count the number of Sessions + * const count = await prisma.sessions.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 Sessions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionsAggregateArgs} 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 Sessions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SessionsGroupByArgs} 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 SessionsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: SessionsGroupByArgs['orderBy'] } + : { orderBy?: SessionsGroupByArgs['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 ? GetSessionsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Sessions model + */ +readonly fields: SessionsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Sessions. + * 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__SessionsClient 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 Sessions model + */ +export interface SessionsFieldRefs { + readonly id: Prisma.FieldRef<"Sessions", 'String'> + readonly sid: Prisma.FieldRef<"Sessions", 'String'> + readonly data: Prisma.FieldRef<"Sessions", 'String'> + readonly expiresAt: Prisma.FieldRef<"Sessions", 'DateTime'> +} + + +// Custom InputTypes +/** + * Sessions findUnique + */ +export type SessionsFindUniqueArgs = { + /** + * Select specific fields to fetch from the Sessions + */ + select?: Prisma.SessionsSelect | null + /** + * Omit specific fields from the Sessions + */ + omit?: Prisma.SessionsOmit | null + /** + * Filter, which Sessions to fetch. + */ + where: Prisma.SessionsWhereUniqueInput +} + +/** + * Sessions findUniqueOrThrow + */ +export type SessionsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Sessions + */ + select?: Prisma.SessionsSelect | null + /** + * Omit specific fields from the Sessions + */ + omit?: Prisma.SessionsOmit | null + /** + * Filter, which Sessions to fetch. + */ + where: Prisma.SessionsWhereUniqueInput +} + +/** + * Sessions findFirst + */ +export type SessionsFindFirstArgs = { + /** + * Select specific fields to fetch from the Sessions + */ + select?: Prisma.SessionsSelect | null + /** + * Omit specific fields from the Sessions + */ + omit?: Prisma.SessionsOmit | null + /** + * Filter, which Sessions to fetch. + */ + where?: Prisma.SessionsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionsOrderByWithRelationInput | Prisma.SessionsOrderByWithRelationInput[] + /** + * {@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.SessionsWhereUniqueInput + /** + * {@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.SessionsScalarFieldEnum | Prisma.SessionsScalarFieldEnum[] +} + +/** + * Sessions findFirstOrThrow + */ +export type SessionsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Sessions + */ + select?: Prisma.SessionsSelect | null + /** + * Omit specific fields from the Sessions + */ + omit?: Prisma.SessionsOmit | null + /** + * Filter, which Sessions to fetch. + */ + where?: Prisma.SessionsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionsOrderByWithRelationInput | Prisma.SessionsOrderByWithRelationInput[] + /** + * {@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.SessionsWhereUniqueInput + /** + * {@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.SessionsScalarFieldEnum | Prisma.SessionsScalarFieldEnum[] +} + +/** + * Sessions findMany + */ +export type SessionsFindManyArgs = { + /** + * Select specific fields to fetch from the Sessions + */ + select?: Prisma.SessionsSelect | null + /** + * Omit specific fields from the Sessions + */ + omit?: Prisma.SessionsOmit | null + /** + * Filter, which Sessions to fetch. + */ + where?: Prisma.SessionsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Sessions to fetch. + */ + orderBy?: Prisma.SessionsOrderByWithRelationInput | Prisma.SessionsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Sessions. + */ + cursor?: Prisma.SessionsWhereUniqueInput + /** + * {@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.SessionsScalarFieldEnum | Prisma.SessionsScalarFieldEnum[] +} + +/** + * Sessions create + */ +export type SessionsCreateArgs = { + /** + * Select specific fields to fetch from the Sessions + */ + select?: Prisma.SessionsSelect | null + /** + * Omit specific fields from the Sessions + */ + omit?: Prisma.SessionsOmit | null + /** + * The data needed to create a Sessions. + */ + data: Prisma.XOR +} + +/** + * Sessions createMany + */ +export type SessionsCreateManyArgs = { + /** + * The data used to create many Sessions. + */ + data: Prisma.SessionsCreateManyInput | Prisma.SessionsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Sessions createManyAndReturn + */ +export type SessionsCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Sessions + */ + select?: Prisma.SessionsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Sessions + */ + omit?: Prisma.SessionsOmit | null + /** + * The data used to create many Sessions. + */ + data: Prisma.SessionsCreateManyInput | Prisma.SessionsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Sessions update + */ +export type SessionsUpdateArgs = { + /** + * Select specific fields to fetch from the Sessions + */ + select?: Prisma.SessionsSelect | null + /** + * Omit specific fields from the Sessions + */ + omit?: Prisma.SessionsOmit | null + /** + * The data needed to update a Sessions. + */ + data: Prisma.XOR + /** + * Choose, which Sessions to update. + */ + where: Prisma.SessionsWhereUniqueInput +} + +/** + * Sessions updateMany + */ +export type SessionsUpdateManyArgs = { + /** + * The data used to update Sessions. + */ + data: Prisma.XOR + /** + * Filter which Sessions to update + */ + where?: Prisma.SessionsWhereInput + /** + * Limit how many Sessions to update. + */ + limit?: number +} + +/** + * Sessions updateManyAndReturn + */ +export type SessionsUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Sessions + */ + select?: Prisma.SessionsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Sessions + */ + omit?: Prisma.SessionsOmit | null + /** + * The data used to update Sessions. + */ + data: Prisma.XOR + /** + * Filter which Sessions to update + */ + where?: Prisma.SessionsWhereInput + /** + * Limit how many Sessions to update. + */ + limit?: number +} + +/** + * Sessions upsert + */ +export type SessionsUpsertArgs = { + /** + * Select specific fields to fetch from the Sessions + */ + select?: Prisma.SessionsSelect | null + /** + * Omit specific fields from the Sessions + */ + omit?: Prisma.SessionsOmit | null + /** + * The filter to search for the Sessions to update in case it exists. + */ + where: Prisma.SessionsWhereUniqueInput + /** + * In case the Sessions found by the `where` argument doesn't exist, create a new Sessions with this data. + */ + create: Prisma.XOR + /** + * In case the Sessions was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Sessions delete + */ +export type SessionsDeleteArgs = { + /** + * Select specific fields to fetch from the Sessions + */ + select?: Prisma.SessionsSelect | null + /** + * Omit specific fields from the Sessions + */ + omit?: Prisma.SessionsOmit | null + /** + * Filter which Sessions to delete. + */ + where: Prisma.SessionsWhereUniqueInput +} + +/** + * Sessions deleteMany + */ +export type SessionsDeleteManyArgs = { + /** + * Filter which Sessions to delete + */ + where?: Prisma.SessionsWhereInput + /** + * Limit how many Sessions to delete. + */ + limit?: number +} + +/** + * Sessions without action + */ +export type SessionsDefaultArgs = { + /** + * Select specific fields to fetch from the Sessions + */ + select?: Prisma.SessionsSelect | null + /** + * Omit specific fields from the Sessions + */ + omit?: Prisma.SessionsOmit | null +} diff --git a/prisma/generated/postgres/models/Shifts.ts b/prisma/generated/postgres/models/Shifts.ts new file mode 100644 index 0000000..97f82ce --- /dev/null +++ b/prisma/generated/postgres/models/Shifts.ts @@ -0,0 +1,1828 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Shifts` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model Shifts + * + */ +export type ShiftsModel = runtime.Types.Result.DefaultSelection + +export type AggregateShifts = { + _count: ShiftsCountAggregateOutputType | null + _avg: ShiftsAvgAggregateOutputType | null + _sum: ShiftsSumAggregateOutputType | null + _min: ShiftsMinAggregateOutputType | null + _max: ShiftsMaxAggregateOutputType | null +} + +export type ShiftsAvgAggregateOutputType = { + id: number | null + timesheet_id: number | null + bank_code_id: number | null +} + +export type ShiftsSumAggregateOutputType = { + id: number | null + timesheet_id: number | null + bank_code_id: number | null +} + +export type ShiftsMinAggregateOutputType = { + id: number | null + timesheet_id: number | null + date: Date | null + start_time: Date | null + end_time: Date | null + bank_code_id: number | null + is_approved: boolean | null + is_remote: boolean | null + comment: string | null +} + +export type ShiftsMaxAggregateOutputType = { + id: number | null + timesheet_id: number | null + date: Date | null + start_time: Date | null + end_time: Date | null + bank_code_id: number | null + is_approved: boolean | null + is_remote: boolean | null + comment: string | null +} + +export type ShiftsCountAggregateOutputType = { + id: number + timesheet_id: number + date: number + start_time: number + end_time: number + bank_code_id: number + is_approved: number + is_remote: number + comment: number + _all: number +} + + +export type ShiftsAvgAggregateInputType = { + id?: true + timesheet_id?: true + bank_code_id?: true +} + +export type ShiftsSumAggregateInputType = { + id?: true + timesheet_id?: true + bank_code_id?: true +} + +export type ShiftsMinAggregateInputType = { + id?: true + timesheet_id?: true + date?: true + start_time?: true + end_time?: true + bank_code_id?: true + is_approved?: true + is_remote?: true + comment?: true +} + +export type ShiftsMaxAggregateInputType = { + id?: true + timesheet_id?: true + date?: true + start_time?: true + end_time?: true + bank_code_id?: true + is_approved?: true + is_remote?: true + comment?: true +} + +export type ShiftsCountAggregateInputType = { + id?: true + timesheet_id?: true + date?: true + start_time?: true + end_time?: true + bank_code_id?: true + is_approved?: true + is_remote?: true + comment?: true + _all?: true +} + +export type ShiftsAggregateArgs = { + /** + * Filter which Shifts to aggregate. + */ + where?: Prisma.ShiftsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Shifts to fetch. + */ + orderBy?: Prisma.ShiftsOrderByWithRelationInput | Prisma.ShiftsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ShiftsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Shifts 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` Shifts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Shifts + **/ + _count?: true | ShiftsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ShiftsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ShiftsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ShiftsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ShiftsMaxAggregateInputType +} + +export type GetShiftsAggregateType = { + [P in keyof T & keyof AggregateShifts]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ShiftsGroupByArgs = { + where?: Prisma.ShiftsWhereInput + orderBy?: Prisma.ShiftsOrderByWithAggregationInput | Prisma.ShiftsOrderByWithAggregationInput[] + by: Prisma.ShiftsScalarFieldEnum[] | Prisma.ShiftsScalarFieldEnum + having?: Prisma.ShiftsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ShiftsCountAggregateInputType | true + _avg?: ShiftsAvgAggregateInputType + _sum?: ShiftsSumAggregateInputType + _min?: ShiftsMinAggregateInputType + _max?: ShiftsMaxAggregateInputType +} + +export type ShiftsGroupByOutputType = { + id: number + timesheet_id: number + date: Date + start_time: Date + end_time: Date + bank_code_id: number + is_approved: boolean + is_remote: boolean + comment: string | null + _count: ShiftsCountAggregateOutputType | null + _avg: ShiftsAvgAggregateOutputType | null + _sum: ShiftsSumAggregateOutputType | null + _min: ShiftsMinAggregateOutputType | null + _max: ShiftsMaxAggregateOutputType | null +} + +type GetShiftsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ShiftsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ShiftsWhereInput = { + AND?: Prisma.ShiftsWhereInput | Prisma.ShiftsWhereInput[] + OR?: Prisma.ShiftsWhereInput[] + NOT?: Prisma.ShiftsWhereInput | Prisma.ShiftsWhereInput[] + id?: Prisma.IntFilter<"Shifts"> | number + timesheet_id?: Prisma.IntFilter<"Shifts"> | number + date?: Prisma.DateTimeFilter<"Shifts"> | Date | string + start_time?: Prisma.DateTimeFilter<"Shifts"> | Date | string + end_time?: Prisma.DateTimeFilter<"Shifts"> | Date | string + bank_code_id?: Prisma.IntFilter<"Shifts"> | number + is_approved?: Prisma.BoolFilter<"Shifts"> | boolean + is_remote?: Prisma.BoolFilter<"Shifts"> | boolean + comment?: Prisma.StringNullableFilter<"Shifts"> | string | null + bank_code?: Prisma.XOR + timesheet?: Prisma.XOR + archive?: Prisma.ShiftsArchiveListRelationFilter +} + +export type ShiftsOrderByWithRelationInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + is_remote?: Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + bank_code?: Prisma.BankCodesOrderByWithRelationInput + timesheet?: Prisma.TimesheetsOrderByWithRelationInput + archive?: Prisma.ShiftsArchiveOrderByRelationAggregateInput +} + +export type ShiftsWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.ShiftsWhereInput | Prisma.ShiftsWhereInput[] + OR?: Prisma.ShiftsWhereInput[] + NOT?: Prisma.ShiftsWhereInput | Prisma.ShiftsWhereInput[] + timesheet_id?: Prisma.IntFilter<"Shifts"> | number + date?: Prisma.DateTimeFilter<"Shifts"> | Date | string + start_time?: Prisma.DateTimeFilter<"Shifts"> | Date | string + end_time?: Prisma.DateTimeFilter<"Shifts"> | Date | string + bank_code_id?: Prisma.IntFilter<"Shifts"> | number + is_approved?: Prisma.BoolFilter<"Shifts"> | boolean + is_remote?: Prisma.BoolFilter<"Shifts"> | boolean + comment?: Prisma.StringNullableFilter<"Shifts"> | string | null + bank_code?: Prisma.XOR + timesheet?: Prisma.XOR + archive?: Prisma.ShiftsArchiveListRelationFilter +}, "id"> + +export type ShiftsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + is_remote?: Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.ShiftsCountOrderByAggregateInput + _avg?: Prisma.ShiftsAvgOrderByAggregateInput + _max?: Prisma.ShiftsMaxOrderByAggregateInput + _min?: Prisma.ShiftsMinOrderByAggregateInput + _sum?: Prisma.ShiftsSumOrderByAggregateInput +} + +export type ShiftsScalarWhereWithAggregatesInput = { + AND?: Prisma.ShiftsScalarWhereWithAggregatesInput | Prisma.ShiftsScalarWhereWithAggregatesInput[] + OR?: Prisma.ShiftsScalarWhereWithAggregatesInput[] + NOT?: Prisma.ShiftsScalarWhereWithAggregatesInput | Prisma.ShiftsScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"Shifts"> | number + timesheet_id?: Prisma.IntWithAggregatesFilter<"Shifts"> | number + date?: Prisma.DateTimeWithAggregatesFilter<"Shifts"> | Date | string + start_time?: Prisma.DateTimeWithAggregatesFilter<"Shifts"> | Date | string + end_time?: Prisma.DateTimeWithAggregatesFilter<"Shifts"> | Date | string + bank_code_id?: Prisma.IntWithAggregatesFilter<"Shifts"> | number + is_approved?: Prisma.BoolWithAggregatesFilter<"Shifts"> | boolean + is_remote?: Prisma.BoolWithAggregatesFilter<"Shifts"> | boolean + comment?: Prisma.StringNullableWithAggregatesFilter<"Shifts"> | string | null +} + +export type ShiftsCreateInput = { + date: Date | string + start_time: Date | string + end_time: Date | string + is_approved?: boolean + is_remote?: boolean + comment?: string | null + bank_code: Prisma.BankCodesCreateNestedOneWithoutShiftsInput + timesheet: Prisma.TimesheetsCreateNestedOneWithoutShiftInput + archive?: Prisma.ShiftsArchiveCreateNestedManyWithoutShiftInput +} + +export type ShiftsUncheckedCreateInput = { + id?: number + timesheet_id: number + date: Date | string + start_time: Date | string + end_time: Date | string + bank_code_id: number + is_approved?: boolean + is_remote?: boolean + comment?: string | null + archive?: Prisma.ShiftsArchiveUncheckedCreateNestedManyWithoutShiftInput +} + +export type ShiftsUpdateInput = { + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutShiftsNestedInput + timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutShiftNestedInput + archive?: Prisma.ShiftsArchiveUpdateManyWithoutShiftNestedInput +} + +export type ShiftsUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + archive?: Prisma.ShiftsArchiveUncheckedUpdateManyWithoutShiftNestedInput +} + +export type ShiftsCreateManyInput = { + id?: number + timesheet_id: number + date: Date | string + start_time: Date | string + end_time: Date | string + bank_code_id: number + is_approved?: boolean + is_remote?: boolean + comment?: string | null +} + +export type ShiftsUpdateManyMutationInput = { + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ShiftsUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ShiftsListRelationFilter = { + every?: Prisma.ShiftsWhereInput + some?: Prisma.ShiftsWhereInput + none?: Prisma.ShiftsWhereInput +} + +export type ShiftsOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ShiftsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + is_remote?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type ShiftsAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder +} + +export type ShiftsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + is_remote?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type ShiftsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + is_remote?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type ShiftsSumOrderByAggregateInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder +} + +export type ShiftsScalarRelationFilter = { + is?: Prisma.ShiftsWhereInput + isNot?: Prisma.ShiftsWhereInput +} + +export type ShiftsCreateNestedManyWithoutTimesheetInput = { + create?: Prisma.XOR | Prisma.ShiftsCreateWithoutTimesheetInput[] | Prisma.ShiftsUncheckedCreateWithoutTimesheetInput[] + connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutTimesheetInput | Prisma.ShiftsCreateOrConnectWithoutTimesheetInput[] + createMany?: Prisma.ShiftsCreateManyTimesheetInputEnvelope + connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] +} + +export type ShiftsUncheckedCreateNestedManyWithoutTimesheetInput = { + create?: Prisma.XOR | Prisma.ShiftsCreateWithoutTimesheetInput[] | Prisma.ShiftsUncheckedCreateWithoutTimesheetInput[] + connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutTimesheetInput | Prisma.ShiftsCreateOrConnectWithoutTimesheetInput[] + createMany?: Prisma.ShiftsCreateManyTimesheetInputEnvelope + connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] +} + +export type ShiftsUpdateManyWithoutTimesheetNestedInput = { + create?: Prisma.XOR | Prisma.ShiftsCreateWithoutTimesheetInput[] | Prisma.ShiftsUncheckedCreateWithoutTimesheetInput[] + connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutTimesheetInput | Prisma.ShiftsCreateOrConnectWithoutTimesheetInput[] + upsert?: Prisma.ShiftsUpsertWithWhereUniqueWithoutTimesheetInput | Prisma.ShiftsUpsertWithWhereUniqueWithoutTimesheetInput[] + createMany?: Prisma.ShiftsCreateManyTimesheetInputEnvelope + set?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + disconnect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + delete?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + update?: Prisma.ShiftsUpdateWithWhereUniqueWithoutTimesheetInput | Prisma.ShiftsUpdateWithWhereUniqueWithoutTimesheetInput[] + updateMany?: Prisma.ShiftsUpdateManyWithWhereWithoutTimesheetInput | Prisma.ShiftsUpdateManyWithWhereWithoutTimesheetInput[] + deleteMany?: Prisma.ShiftsScalarWhereInput | Prisma.ShiftsScalarWhereInput[] +} + +export type ShiftsUncheckedUpdateManyWithoutTimesheetNestedInput = { + create?: Prisma.XOR | Prisma.ShiftsCreateWithoutTimesheetInput[] | Prisma.ShiftsUncheckedCreateWithoutTimesheetInput[] + connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutTimesheetInput | Prisma.ShiftsCreateOrConnectWithoutTimesheetInput[] + upsert?: Prisma.ShiftsUpsertWithWhereUniqueWithoutTimesheetInput | Prisma.ShiftsUpsertWithWhereUniqueWithoutTimesheetInput[] + createMany?: Prisma.ShiftsCreateManyTimesheetInputEnvelope + set?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + disconnect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + delete?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + update?: Prisma.ShiftsUpdateWithWhereUniqueWithoutTimesheetInput | Prisma.ShiftsUpdateWithWhereUniqueWithoutTimesheetInput[] + updateMany?: Prisma.ShiftsUpdateManyWithWhereWithoutTimesheetInput | Prisma.ShiftsUpdateManyWithWhereWithoutTimesheetInput[] + deleteMany?: Prisma.ShiftsScalarWhereInput | Prisma.ShiftsScalarWhereInput[] +} + +export type ShiftsCreateNestedOneWithoutArchiveInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutArchiveInput + connect?: Prisma.ShiftsWhereUniqueInput +} + +export type ShiftsUpdateOneRequiredWithoutArchiveNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutArchiveInput + upsert?: Prisma.ShiftsUpsertWithoutArchiveInput + connect?: Prisma.ShiftsWhereUniqueInput + update?: Prisma.XOR, Prisma.ShiftsUncheckedUpdateWithoutArchiveInput> +} + +export type ShiftsCreateNestedManyWithoutBank_codeInput = { + create?: Prisma.XOR | Prisma.ShiftsCreateWithoutBank_codeInput[] | Prisma.ShiftsUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutBank_codeInput | Prisma.ShiftsCreateOrConnectWithoutBank_codeInput[] + createMany?: Prisma.ShiftsCreateManyBank_codeInputEnvelope + connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] +} + +export type ShiftsUncheckedCreateNestedManyWithoutBank_codeInput = { + create?: Prisma.XOR | Prisma.ShiftsCreateWithoutBank_codeInput[] | Prisma.ShiftsUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutBank_codeInput | Prisma.ShiftsCreateOrConnectWithoutBank_codeInput[] + createMany?: Prisma.ShiftsCreateManyBank_codeInputEnvelope + connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] +} + +export type ShiftsUpdateManyWithoutBank_codeNestedInput = { + create?: Prisma.XOR | Prisma.ShiftsCreateWithoutBank_codeInput[] | Prisma.ShiftsUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutBank_codeInput | Prisma.ShiftsCreateOrConnectWithoutBank_codeInput[] + upsert?: Prisma.ShiftsUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.ShiftsUpsertWithWhereUniqueWithoutBank_codeInput[] + createMany?: Prisma.ShiftsCreateManyBank_codeInputEnvelope + set?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + disconnect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + delete?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + update?: Prisma.ShiftsUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.ShiftsUpdateWithWhereUniqueWithoutBank_codeInput[] + updateMany?: Prisma.ShiftsUpdateManyWithWhereWithoutBank_codeInput | Prisma.ShiftsUpdateManyWithWhereWithoutBank_codeInput[] + deleteMany?: Prisma.ShiftsScalarWhereInput | Prisma.ShiftsScalarWhereInput[] +} + +export type ShiftsUncheckedUpdateManyWithoutBank_codeNestedInput = { + create?: Prisma.XOR | Prisma.ShiftsCreateWithoutBank_codeInput[] | Prisma.ShiftsUncheckedCreateWithoutBank_codeInput[] + connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutBank_codeInput | Prisma.ShiftsCreateOrConnectWithoutBank_codeInput[] + upsert?: Prisma.ShiftsUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.ShiftsUpsertWithWhereUniqueWithoutBank_codeInput[] + createMany?: Prisma.ShiftsCreateManyBank_codeInputEnvelope + set?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + disconnect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + delete?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] + update?: Prisma.ShiftsUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.ShiftsUpdateWithWhereUniqueWithoutBank_codeInput[] + updateMany?: Prisma.ShiftsUpdateManyWithWhereWithoutBank_codeInput | Prisma.ShiftsUpdateManyWithWhereWithoutBank_codeInput[] + deleteMany?: Prisma.ShiftsScalarWhereInput | Prisma.ShiftsScalarWhereInput[] +} + +export type ShiftsCreateWithoutTimesheetInput = { + date: Date | string + start_time: Date | string + end_time: Date | string + is_approved?: boolean + is_remote?: boolean + comment?: string | null + bank_code: Prisma.BankCodesCreateNestedOneWithoutShiftsInput + archive?: Prisma.ShiftsArchiveCreateNestedManyWithoutShiftInput +} + +export type ShiftsUncheckedCreateWithoutTimesheetInput = { + id?: number + date: Date | string + start_time: Date | string + end_time: Date | string + bank_code_id: number + is_approved?: boolean + is_remote?: boolean + comment?: string | null + archive?: Prisma.ShiftsArchiveUncheckedCreateNestedManyWithoutShiftInput +} + +export type ShiftsCreateOrConnectWithoutTimesheetInput = { + where: Prisma.ShiftsWhereUniqueInput + create: Prisma.XOR +} + +export type ShiftsCreateManyTimesheetInputEnvelope = { + data: Prisma.ShiftsCreateManyTimesheetInput | Prisma.ShiftsCreateManyTimesheetInput[] + skipDuplicates?: boolean +} + +export type ShiftsUpsertWithWhereUniqueWithoutTimesheetInput = { + where: Prisma.ShiftsWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ShiftsUpdateWithWhereUniqueWithoutTimesheetInput = { + where: Prisma.ShiftsWhereUniqueInput + data: Prisma.XOR +} + +export type ShiftsUpdateManyWithWhereWithoutTimesheetInput = { + where: Prisma.ShiftsScalarWhereInput + data: Prisma.XOR +} + +export type ShiftsScalarWhereInput = { + AND?: Prisma.ShiftsScalarWhereInput | Prisma.ShiftsScalarWhereInput[] + OR?: Prisma.ShiftsScalarWhereInput[] + NOT?: Prisma.ShiftsScalarWhereInput | Prisma.ShiftsScalarWhereInput[] + id?: Prisma.IntFilter<"Shifts"> | number + timesheet_id?: Prisma.IntFilter<"Shifts"> | number + date?: Prisma.DateTimeFilter<"Shifts"> | Date | string + start_time?: Prisma.DateTimeFilter<"Shifts"> | Date | string + end_time?: Prisma.DateTimeFilter<"Shifts"> | Date | string + bank_code_id?: Prisma.IntFilter<"Shifts"> | number + is_approved?: Prisma.BoolFilter<"Shifts"> | boolean + is_remote?: Prisma.BoolFilter<"Shifts"> | boolean + comment?: Prisma.StringNullableFilter<"Shifts"> | string | null +} + +export type ShiftsCreateWithoutArchiveInput = { + date: Date | string + start_time: Date | string + end_time: Date | string + is_approved?: boolean + is_remote?: boolean + comment?: string | null + bank_code: Prisma.BankCodesCreateNestedOneWithoutShiftsInput + timesheet: Prisma.TimesheetsCreateNestedOneWithoutShiftInput +} + +export type ShiftsUncheckedCreateWithoutArchiveInput = { + id?: number + timesheet_id: number + date: Date | string + start_time: Date | string + end_time: Date | string + bank_code_id: number + is_approved?: boolean + is_remote?: boolean + comment?: string | null +} + +export type ShiftsCreateOrConnectWithoutArchiveInput = { + where: Prisma.ShiftsWhereUniqueInput + create: Prisma.XOR +} + +export type ShiftsUpsertWithoutArchiveInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ShiftsWhereInput +} + +export type ShiftsUpdateToOneWithWhereWithoutArchiveInput = { + where?: Prisma.ShiftsWhereInput + data: Prisma.XOR +} + +export type ShiftsUpdateWithoutArchiveInput = { + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutShiftsNestedInput + timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutShiftNestedInput +} + +export type ShiftsUncheckedUpdateWithoutArchiveInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ShiftsCreateWithoutBank_codeInput = { + date: Date | string + start_time: Date | string + end_time: Date | string + is_approved?: boolean + is_remote?: boolean + comment?: string | null + timesheet: Prisma.TimesheetsCreateNestedOneWithoutShiftInput + archive?: Prisma.ShiftsArchiveCreateNestedManyWithoutShiftInput +} + +export type ShiftsUncheckedCreateWithoutBank_codeInput = { + id?: number + timesheet_id: number + date: Date | string + start_time: Date | string + end_time: Date | string + is_approved?: boolean + is_remote?: boolean + comment?: string | null + archive?: Prisma.ShiftsArchiveUncheckedCreateNestedManyWithoutShiftInput +} + +export type ShiftsCreateOrConnectWithoutBank_codeInput = { + where: Prisma.ShiftsWhereUniqueInput + create: Prisma.XOR +} + +export type ShiftsCreateManyBank_codeInputEnvelope = { + data: Prisma.ShiftsCreateManyBank_codeInput | Prisma.ShiftsCreateManyBank_codeInput[] + skipDuplicates?: boolean +} + +export type ShiftsUpsertWithWhereUniqueWithoutBank_codeInput = { + where: Prisma.ShiftsWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ShiftsUpdateWithWhereUniqueWithoutBank_codeInput = { + where: Prisma.ShiftsWhereUniqueInput + data: Prisma.XOR +} + +export type ShiftsUpdateManyWithWhereWithoutBank_codeInput = { + where: Prisma.ShiftsScalarWhereInput + data: Prisma.XOR +} + +export type ShiftsCreateManyTimesheetInput = { + id?: number + date: Date | string + start_time: Date | string + end_time: Date | string + bank_code_id: number + is_approved?: boolean + is_remote?: boolean + comment?: string | null +} + +export type ShiftsUpdateWithoutTimesheetInput = { + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutShiftsNestedInput + archive?: Prisma.ShiftsArchiveUpdateManyWithoutShiftNestedInput +} + +export type ShiftsUncheckedUpdateWithoutTimesheetInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + archive?: Prisma.ShiftsArchiveUncheckedUpdateManyWithoutShiftNestedInput +} + +export type ShiftsUncheckedUpdateManyWithoutTimesheetInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ShiftsCreateManyBank_codeInput = { + id?: number + timesheet_id: number + date: Date | string + start_time: Date | string + end_time: Date | string + is_approved?: boolean + is_remote?: boolean + comment?: string | null +} + +export type ShiftsUpdateWithoutBank_codeInput = { + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutShiftNestedInput + archive?: Prisma.ShiftsArchiveUpdateManyWithoutShiftNestedInput +} + +export type ShiftsUncheckedUpdateWithoutBank_codeInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + archive?: Prisma.ShiftsArchiveUncheckedUpdateManyWithoutShiftNestedInput +} + +export type ShiftsUncheckedUpdateManyWithoutBank_codeInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + + +/** + * Count Type ShiftsCountOutputType + */ + +export type ShiftsCountOutputType = { + archive: number +} + +export type ShiftsCountOutputTypeSelect = { + archive?: boolean | ShiftsCountOutputTypeCountArchiveArgs +} + +/** + * ShiftsCountOutputType without action + */ +export type ShiftsCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the ShiftsCountOutputType + */ + select?: Prisma.ShiftsCountOutputTypeSelect | null +} + +/** + * ShiftsCountOutputType without action + */ +export type ShiftsCountOutputTypeCountArchiveArgs = { + where?: Prisma.ShiftsArchiveWhereInput +} + + +export type ShiftsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + timesheet_id?: boolean + date?: boolean + start_time?: boolean + end_time?: boolean + bank_code_id?: boolean + is_approved?: boolean + is_remote?: boolean + comment?: boolean + bank_code?: boolean | Prisma.BankCodesDefaultArgs + timesheet?: boolean | Prisma.TimesheetsDefaultArgs + archive?: boolean | Prisma.Shifts$archiveArgs + _count?: boolean | Prisma.ShiftsCountOutputTypeDefaultArgs +}, ExtArgs["result"]["shifts"]> + +export type ShiftsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + timesheet_id?: boolean + date?: boolean + start_time?: boolean + end_time?: boolean + bank_code_id?: boolean + is_approved?: boolean + is_remote?: boolean + comment?: boolean + bank_code?: boolean | Prisma.BankCodesDefaultArgs + timesheet?: boolean | Prisma.TimesheetsDefaultArgs +}, ExtArgs["result"]["shifts"]> + +export type ShiftsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + timesheet_id?: boolean + date?: boolean + start_time?: boolean + end_time?: boolean + bank_code_id?: boolean + is_approved?: boolean + is_remote?: boolean + comment?: boolean + bank_code?: boolean | Prisma.BankCodesDefaultArgs + timesheet?: boolean | Prisma.TimesheetsDefaultArgs +}, ExtArgs["result"]["shifts"]> + +export type ShiftsSelectScalar = { + id?: boolean + timesheet_id?: boolean + date?: boolean + start_time?: boolean + end_time?: boolean + bank_code_id?: boolean + is_approved?: boolean + is_remote?: boolean + comment?: boolean +} + +export type ShiftsOmit = runtime.Types.Extensions.GetOmit<"id" | "timesheet_id" | "date" | "start_time" | "end_time" | "bank_code_id" | "is_approved" | "is_remote" | "comment", ExtArgs["result"]["shifts"]> +export type ShiftsInclude = { + bank_code?: boolean | Prisma.BankCodesDefaultArgs + timesheet?: boolean | Prisma.TimesheetsDefaultArgs + archive?: boolean | Prisma.Shifts$archiveArgs + _count?: boolean | Prisma.ShiftsCountOutputTypeDefaultArgs +} +export type ShiftsIncludeCreateManyAndReturn = { + bank_code?: boolean | Prisma.BankCodesDefaultArgs + timesheet?: boolean | Prisma.TimesheetsDefaultArgs +} +export type ShiftsIncludeUpdateManyAndReturn = { + bank_code?: boolean | Prisma.BankCodesDefaultArgs + timesheet?: boolean | Prisma.TimesheetsDefaultArgs +} + +export type $ShiftsPayload = { + name: "Shifts" + objects: { + bank_code: Prisma.$BankCodesPayload + timesheet: Prisma.$TimesheetsPayload + archive: Prisma.$ShiftsArchivePayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + timesheet_id: number + date: Date + start_time: Date + end_time: Date + bank_code_id: number + is_approved: boolean + is_remote: boolean + comment: string | null + }, ExtArgs["result"]["shifts"]> + composites: {} +} + +export type ShiftsGetPayload = runtime.Types.Result.GetResult + +export type ShiftsCountArgs = + Omit & { + select?: ShiftsCountAggregateInputType | true + } + +export interface ShiftsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Shifts'], meta: { name: 'Shifts' } } + /** + * Find zero or one Shifts that matches the filter. + * @param {ShiftsFindUniqueArgs} args - Arguments to find a Shifts + * @example + * // Get one Shifts + * const shifts = await prisma.shifts.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Shifts that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ShiftsFindUniqueOrThrowArgs} args - Arguments to find a Shifts + * @example + * // Get one Shifts + * const shifts = await prisma.shifts.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Shifts 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 {ShiftsFindFirstArgs} args - Arguments to find a Shifts + * @example + * // Get one Shifts + * const shifts = await prisma.shifts.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Shifts 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 {ShiftsFindFirstOrThrowArgs} args - Arguments to find a Shifts + * @example + * // Get one Shifts + * const shifts = await prisma.shifts.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Shifts 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 {ShiftsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Shifts + * const shifts = await prisma.shifts.findMany() + * + * // Get first 10 Shifts + * const shifts = await prisma.shifts.findMany({ take: 10 }) + * + * // Only select the `id` + * const shiftsWithIdOnly = await prisma.shifts.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Shifts. + * @param {ShiftsCreateArgs} args - Arguments to create a Shifts. + * @example + * // Create one Shifts + * const Shifts = await prisma.shifts.create({ + * data: { + * // ... data to create a Shifts + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Shifts. + * @param {ShiftsCreateManyArgs} args - Arguments to create many Shifts. + * @example + * // Create many Shifts + * const shifts = await prisma.shifts.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Shifts and returns the data saved in the database. + * @param {ShiftsCreateManyAndReturnArgs} args - Arguments to create many Shifts. + * @example + * // Create many Shifts + * const shifts = await prisma.shifts.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Shifts and only return the `id` + * const shiftsWithIdOnly = await prisma.shifts.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 Shifts. + * @param {ShiftsDeleteArgs} args - Arguments to delete one Shifts. + * @example + * // Delete one Shifts + * const Shifts = await prisma.shifts.delete({ + * where: { + * // ... filter to delete one Shifts + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Shifts. + * @param {ShiftsUpdateArgs} args - Arguments to update one Shifts. + * @example + * // Update one Shifts + * const shifts = await prisma.shifts.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Shifts. + * @param {ShiftsDeleteManyArgs} args - Arguments to filter Shifts to delete. + * @example + * // Delete a few Shifts + * const { count } = await prisma.shifts.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Shifts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShiftsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Shifts + * const shifts = await prisma.shifts.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Shifts and returns the data updated in the database. + * @param {ShiftsUpdateManyAndReturnArgs} args - Arguments to update many Shifts. + * @example + * // Update many Shifts + * const shifts = await prisma.shifts.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Shifts and only return the `id` + * const shiftsWithIdOnly = await prisma.shifts.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 Shifts. + * @param {ShiftsUpsertArgs} args - Arguments to update or create a Shifts. + * @example + * // Update or create a Shifts + * const shifts = await prisma.shifts.upsert({ + * create: { + * // ... data to create a Shifts + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Shifts we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Shifts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShiftsCountArgs} args - Arguments to filter Shifts to count. + * @example + * // Count the number of Shifts + * const count = await prisma.shifts.count({ + * where: { + * // ... the filter for the Shifts 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 Shifts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShiftsAggregateArgs} 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 Shifts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShiftsGroupByArgs} 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 ShiftsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ShiftsGroupByArgs['orderBy'] } + : { orderBy?: ShiftsGroupByArgs['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 ? GetShiftsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Shifts model + */ +readonly fields: ShiftsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Shifts. + * 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__ShiftsClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + bank_code = {}>(args?: Prisma.Subset>): Prisma.Prisma__BankCodesClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + timesheet = {}>(args?: Prisma.Subset>): Prisma.Prisma__TimesheetsClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + archive = {}>(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 Shifts model + */ +export interface ShiftsFieldRefs { + readonly id: Prisma.FieldRef<"Shifts", 'Int'> + readonly timesheet_id: Prisma.FieldRef<"Shifts", 'Int'> + readonly date: Prisma.FieldRef<"Shifts", 'DateTime'> + readonly start_time: Prisma.FieldRef<"Shifts", 'DateTime'> + readonly end_time: Prisma.FieldRef<"Shifts", 'DateTime'> + readonly bank_code_id: Prisma.FieldRef<"Shifts", 'Int'> + readonly is_approved: Prisma.FieldRef<"Shifts", 'Boolean'> + readonly is_remote: Prisma.FieldRef<"Shifts", 'Boolean'> + readonly comment: Prisma.FieldRef<"Shifts", 'String'> +} + + +// Custom InputTypes +/** + * Shifts findUnique + */ +export type ShiftsFindUniqueArgs = { + /** + * Select specific fields to fetch from the Shifts + */ + select?: Prisma.ShiftsSelect | null + /** + * Omit specific fields from the Shifts + */ + omit?: Prisma.ShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsInclude | null + /** + * Filter, which Shifts to fetch. + */ + where: Prisma.ShiftsWhereUniqueInput +} + +/** + * Shifts findUniqueOrThrow + */ +export type ShiftsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Shifts + */ + select?: Prisma.ShiftsSelect | null + /** + * Omit specific fields from the Shifts + */ + omit?: Prisma.ShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsInclude | null + /** + * Filter, which Shifts to fetch. + */ + where: Prisma.ShiftsWhereUniqueInput +} + +/** + * Shifts findFirst + */ +export type ShiftsFindFirstArgs = { + /** + * Select specific fields to fetch from the Shifts + */ + select?: Prisma.ShiftsSelect | null + /** + * Omit specific fields from the Shifts + */ + omit?: Prisma.ShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsInclude | null + /** + * Filter, which Shifts to fetch. + */ + where?: Prisma.ShiftsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Shifts to fetch. + */ + orderBy?: Prisma.ShiftsOrderByWithRelationInput | Prisma.ShiftsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Shifts. + */ + cursor?: Prisma.ShiftsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Shifts 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` Shifts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Shifts. + */ + distinct?: Prisma.ShiftsScalarFieldEnum | Prisma.ShiftsScalarFieldEnum[] +} + +/** + * Shifts findFirstOrThrow + */ +export type ShiftsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Shifts + */ + select?: Prisma.ShiftsSelect | null + /** + * Omit specific fields from the Shifts + */ + omit?: Prisma.ShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsInclude | null + /** + * Filter, which Shifts to fetch. + */ + where?: Prisma.ShiftsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Shifts to fetch. + */ + orderBy?: Prisma.ShiftsOrderByWithRelationInput | Prisma.ShiftsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Shifts. + */ + cursor?: Prisma.ShiftsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Shifts 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` Shifts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Shifts. + */ + distinct?: Prisma.ShiftsScalarFieldEnum | Prisma.ShiftsScalarFieldEnum[] +} + +/** + * Shifts findMany + */ +export type ShiftsFindManyArgs = { + /** + * Select specific fields to fetch from the Shifts + */ + select?: Prisma.ShiftsSelect | null + /** + * Omit specific fields from the Shifts + */ + omit?: Prisma.ShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsInclude | null + /** + * Filter, which Shifts to fetch. + */ + where?: Prisma.ShiftsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Shifts to fetch. + */ + orderBy?: Prisma.ShiftsOrderByWithRelationInput | Prisma.ShiftsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Shifts. + */ + cursor?: Prisma.ShiftsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Shifts 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` Shifts. + */ + skip?: number + distinct?: Prisma.ShiftsScalarFieldEnum | Prisma.ShiftsScalarFieldEnum[] +} + +/** + * Shifts create + */ +export type ShiftsCreateArgs = { + /** + * Select specific fields to fetch from the Shifts + */ + select?: Prisma.ShiftsSelect | null + /** + * Omit specific fields from the Shifts + */ + omit?: Prisma.ShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsInclude | null + /** + * The data needed to create a Shifts. + */ + data: Prisma.XOR +} + +/** + * Shifts createMany + */ +export type ShiftsCreateManyArgs = { + /** + * The data used to create many Shifts. + */ + data: Prisma.ShiftsCreateManyInput | Prisma.ShiftsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Shifts createManyAndReturn + */ +export type ShiftsCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Shifts + */ + select?: Prisma.ShiftsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Shifts + */ + omit?: Prisma.ShiftsOmit | null + /** + * The data used to create many Shifts. + */ + data: Prisma.ShiftsCreateManyInput | Prisma.ShiftsCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsIncludeCreateManyAndReturn | null +} + +/** + * Shifts update + */ +export type ShiftsUpdateArgs = { + /** + * Select specific fields to fetch from the Shifts + */ + select?: Prisma.ShiftsSelect | null + /** + * Omit specific fields from the Shifts + */ + omit?: Prisma.ShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsInclude | null + /** + * The data needed to update a Shifts. + */ + data: Prisma.XOR + /** + * Choose, which Shifts to update. + */ + where: Prisma.ShiftsWhereUniqueInput +} + +/** + * Shifts updateMany + */ +export type ShiftsUpdateManyArgs = { + /** + * The data used to update Shifts. + */ + data: Prisma.XOR + /** + * Filter which Shifts to update + */ + where?: Prisma.ShiftsWhereInput + /** + * Limit how many Shifts to update. + */ + limit?: number +} + +/** + * Shifts updateManyAndReturn + */ +export type ShiftsUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Shifts + */ + select?: Prisma.ShiftsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Shifts + */ + omit?: Prisma.ShiftsOmit | null + /** + * The data used to update Shifts. + */ + data: Prisma.XOR + /** + * Filter which Shifts to update + */ + where?: Prisma.ShiftsWhereInput + /** + * Limit how many Shifts to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsIncludeUpdateManyAndReturn | null +} + +/** + * Shifts upsert + */ +export type ShiftsUpsertArgs = { + /** + * Select specific fields to fetch from the Shifts + */ + select?: Prisma.ShiftsSelect | null + /** + * Omit specific fields from the Shifts + */ + omit?: Prisma.ShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsInclude | null + /** + * The filter to search for the Shifts to update in case it exists. + */ + where: Prisma.ShiftsWhereUniqueInput + /** + * In case the Shifts found by the `where` argument doesn't exist, create a new Shifts with this data. + */ + create: Prisma.XOR + /** + * In case the Shifts was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Shifts delete + */ +export type ShiftsDeleteArgs = { + /** + * Select specific fields to fetch from the Shifts + */ + select?: Prisma.ShiftsSelect | null + /** + * Omit specific fields from the Shifts + */ + omit?: Prisma.ShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsInclude | null + /** + * Filter which Shifts to delete. + */ + where: Prisma.ShiftsWhereUniqueInput +} + +/** + * Shifts deleteMany + */ +export type ShiftsDeleteManyArgs = { + /** + * Filter which Shifts to delete + */ + where?: Prisma.ShiftsWhereInput + /** + * Limit how many Shifts to delete. + */ + limit?: number +} + +/** + * Shifts.archive + */ +export type Shifts$archiveArgs = { + /** + * Select specific fields to fetch from the ShiftsArchive + */ + select?: Prisma.ShiftsArchiveSelect | null + /** + * Omit specific fields from the ShiftsArchive + */ + omit?: Prisma.ShiftsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsArchiveInclude | null + where?: Prisma.ShiftsArchiveWhereInput + orderBy?: Prisma.ShiftsArchiveOrderByWithRelationInput | Prisma.ShiftsArchiveOrderByWithRelationInput[] + cursor?: Prisma.ShiftsArchiveWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ShiftsArchiveScalarFieldEnum | Prisma.ShiftsArchiveScalarFieldEnum[] +} + +/** + * Shifts without action + */ +export type ShiftsDefaultArgs = { + /** + * Select specific fields to fetch from the Shifts + */ + select?: Prisma.ShiftsSelect | null + /** + * Omit specific fields from the Shifts + */ + omit?: Prisma.ShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsInclude | null +} diff --git a/prisma/generated/postgres/models/ShiftsArchive.ts b/prisma/generated/postgres/models/ShiftsArchive.ts new file mode 100644 index 0000000..ce822bc --- /dev/null +++ b/prisma/generated/postgres/models/ShiftsArchive.ts @@ -0,0 +1,1537 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `ShiftsArchive` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model ShiftsArchive + * + */ +export type ShiftsArchiveModel = runtime.Types.Result.DefaultSelection + +export type AggregateShiftsArchive = { + _count: ShiftsArchiveCountAggregateOutputType | null + _avg: ShiftsArchiveAvgAggregateOutputType | null + _sum: ShiftsArchiveSumAggregateOutputType | null + _min: ShiftsArchiveMinAggregateOutputType | null + _max: ShiftsArchiveMaxAggregateOutputType | null +} + +export type ShiftsArchiveAvgAggregateOutputType = { + id: number | null + shift_id: number | null + timesheet_id: number | null + bank_code_id: number | null +} + +export type ShiftsArchiveSumAggregateOutputType = { + id: number | null + shift_id: number | null + timesheet_id: number | null + bank_code_id: number | null +} + +export type ShiftsArchiveMinAggregateOutputType = { + id: number | null + shift_id: number | null + archive_at: Date | null + timesheet_id: number | null + date: Date | null + start_time: Date | null + end_time: Date | null + bank_code_id: number | null + comment: string | null +} + +export type ShiftsArchiveMaxAggregateOutputType = { + id: number | null + shift_id: number | null + archive_at: Date | null + timesheet_id: number | null + date: Date | null + start_time: Date | null + end_time: Date | null + bank_code_id: number | null + comment: string | null +} + +export type ShiftsArchiveCountAggregateOutputType = { + id: number + shift_id: number + archive_at: number + timesheet_id: number + date: number + start_time: number + end_time: number + bank_code_id: number + comment: number + _all: number +} + + +export type ShiftsArchiveAvgAggregateInputType = { + id?: true + shift_id?: true + timesheet_id?: true + bank_code_id?: true +} + +export type ShiftsArchiveSumAggregateInputType = { + id?: true + shift_id?: true + timesheet_id?: true + bank_code_id?: true +} + +export type ShiftsArchiveMinAggregateInputType = { + id?: true + shift_id?: true + archive_at?: true + timesheet_id?: true + date?: true + start_time?: true + end_time?: true + bank_code_id?: true + comment?: true +} + +export type ShiftsArchiveMaxAggregateInputType = { + id?: true + shift_id?: true + archive_at?: true + timesheet_id?: true + date?: true + start_time?: true + end_time?: true + bank_code_id?: true + comment?: true +} + +export type ShiftsArchiveCountAggregateInputType = { + id?: true + shift_id?: true + archive_at?: true + timesheet_id?: true + date?: true + start_time?: true + end_time?: true + bank_code_id?: true + comment?: true + _all?: true +} + +export type ShiftsArchiveAggregateArgs = { + /** + * Filter which ShiftsArchive to aggregate. + */ + where?: Prisma.ShiftsArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ShiftsArchives to fetch. + */ + orderBy?: Prisma.ShiftsArchiveOrderByWithRelationInput | Prisma.ShiftsArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.ShiftsArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ShiftsArchives 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` ShiftsArchives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned ShiftsArchives + **/ + _count?: true | ShiftsArchiveCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ShiftsArchiveAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: ShiftsArchiveSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: ShiftsArchiveMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ShiftsArchiveMaxAggregateInputType +} + +export type GetShiftsArchiveAggregateType = { + [P in keyof T & keyof AggregateShiftsArchive]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type ShiftsArchiveGroupByArgs = { + where?: Prisma.ShiftsArchiveWhereInput + orderBy?: Prisma.ShiftsArchiveOrderByWithAggregationInput | Prisma.ShiftsArchiveOrderByWithAggregationInput[] + by: Prisma.ShiftsArchiveScalarFieldEnum[] | Prisma.ShiftsArchiveScalarFieldEnum + having?: Prisma.ShiftsArchiveScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: ShiftsArchiveCountAggregateInputType | true + _avg?: ShiftsArchiveAvgAggregateInputType + _sum?: ShiftsArchiveSumAggregateInputType + _min?: ShiftsArchiveMinAggregateInputType + _max?: ShiftsArchiveMaxAggregateInputType +} + +export type ShiftsArchiveGroupByOutputType = { + id: number + shift_id: number + archive_at: Date + timesheet_id: number + date: Date + start_time: Date + end_time: Date + bank_code_id: number + comment: string | null + _count: ShiftsArchiveCountAggregateOutputType | null + _avg: ShiftsArchiveAvgAggregateOutputType | null + _sum: ShiftsArchiveSumAggregateOutputType | null + _min: ShiftsArchiveMinAggregateOutputType | null + _max: ShiftsArchiveMaxAggregateOutputType | null +} + +type GetShiftsArchiveGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof ShiftsArchiveGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type ShiftsArchiveWhereInput = { + AND?: Prisma.ShiftsArchiveWhereInput | Prisma.ShiftsArchiveWhereInput[] + OR?: Prisma.ShiftsArchiveWhereInput[] + NOT?: Prisma.ShiftsArchiveWhereInput | Prisma.ShiftsArchiveWhereInput[] + id?: Prisma.IntFilter<"ShiftsArchive"> | number + shift_id?: Prisma.IntFilter<"ShiftsArchive"> | number + archive_at?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string + timesheet_id?: Prisma.IntFilter<"ShiftsArchive"> | number + date?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string + start_time?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string + end_time?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string + bank_code_id?: Prisma.IntFilter<"ShiftsArchive"> | number + comment?: Prisma.StringNullableFilter<"ShiftsArchive"> | string | null + shift?: Prisma.XOR +} + +export type ShiftsArchiveOrderByWithRelationInput = { + id?: Prisma.SortOrder + shift_id?: Prisma.SortOrder + archive_at?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + shift?: Prisma.ShiftsOrderByWithRelationInput +} + +export type ShiftsArchiveWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.ShiftsArchiveWhereInput | Prisma.ShiftsArchiveWhereInput[] + OR?: Prisma.ShiftsArchiveWhereInput[] + NOT?: Prisma.ShiftsArchiveWhereInput | Prisma.ShiftsArchiveWhereInput[] + shift_id?: Prisma.IntFilter<"ShiftsArchive"> | number + archive_at?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string + timesheet_id?: Prisma.IntFilter<"ShiftsArchive"> | number + date?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string + start_time?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string + end_time?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string + bank_code_id?: Prisma.IntFilter<"ShiftsArchive"> | number + comment?: Prisma.StringNullableFilter<"ShiftsArchive"> | string | null + shift?: Prisma.XOR +}, "id"> + +export type ShiftsArchiveOrderByWithAggregationInput = { + id?: Prisma.SortOrder + shift_id?: Prisma.SortOrder + archive_at?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + comment?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.ShiftsArchiveCountOrderByAggregateInput + _avg?: Prisma.ShiftsArchiveAvgOrderByAggregateInput + _max?: Prisma.ShiftsArchiveMaxOrderByAggregateInput + _min?: Prisma.ShiftsArchiveMinOrderByAggregateInput + _sum?: Prisma.ShiftsArchiveSumOrderByAggregateInput +} + +export type ShiftsArchiveScalarWhereWithAggregatesInput = { + AND?: Prisma.ShiftsArchiveScalarWhereWithAggregatesInput | Prisma.ShiftsArchiveScalarWhereWithAggregatesInput[] + OR?: Prisma.ShiftsArchiveScalarWhereWithAggregatesInput[] + NOT?: Prisma.ShiftsArchiveScalarWhereWithAggregatesInput | Prisma.ShiftsArchiveScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"ShiftsArchive"> | number + shift_id?: Prisma.IntWithAggregatesFilter<"ShiftsArchive"> | number + archive_at?: Prisma.DateTimeWithAggregatesFilter<"ShiftsArchive"> | Date | string + timesheet_id?: Prisma.IntWithAggregatesFilter<"ShiftsArchive"> | number + date?: Prisma.DateTimeWithAggregatesFilter<"ShiftsArchive"> | Date | string + start_time?: Prisma.DateTimeWithAggregatesFilter<"ShiftsArchive"> | Date | string + end_time?: Prisma.DateTimeWithAggregatesFilter<"ShiftsArchive"> | Date | string + bank_code_id?: Prisma.IntWithAggregatesFilter<"ShiftsArchive"> | number + comment?: Prisma.StringNullableWithAggregatesFilter<"ShiftsArchive"> | string | null +} + +export type ShiftsArchiveCreateInput = { + archive_at?: Date | string + timesheet_id: number + date: Date | string + start_time: Date | string + end_time: Date | string + bank_code_id: number + comment?: string | null + shift: Prisma.ShiftsCreateNestedOneWithoutArchiveInput +} + +export type ShiftsArchiveUncheckedCreateInput = { + id?: number + shift_id: number + archive_at?: Date | string + timesheet_id: number + date: Date | string + start_time: Date | string + end_time: Date | string + bank_code_id: number + comment?: string | null +} + +export type ShiftsArchiveUpdateInput = { + archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + shift?: Prisma.ShiftsUpdateOneRequiredWithoutArchiveNestedInput +} + +export type ShiftsArchiveUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + shift_id?: Prisma.IntFieldUpdateOperationsInput | number + archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ShiftsArchiveCreateManyInput = { + id?: number + shift_id: number + archive_at?: Date | string + timesheet_id: number + date: Date | string + start_time: Date | string + end_time: Date | string + bank_code_id: number + comment?: string | null +} + +export type ShiftsArchiveUpdateManyMutationInput = { + archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ShiftsArchiveUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + shift_id?: Prisma.IntFieldUpdateOperationsInput | number + archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ShiftsArchiveListRelationFilter = { + every?: Prisma.ShiftsArchiveWhereInput + some?: Prisma.ShiftsArchiveWhereInput + none?: Prisma.ShiftsArchiveWhereInput +} + +export type ShiftsArchiveOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type ShiftsArchiveCountOrderByAggregateInput = { + id?: Prisma.SortOrder + shift_id?: Prisma.SortOrder + archive_at?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type ShiftsArchiveAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + shift_id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder +} + +export type ShiftsArchiveMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + shift_id?: Prisma.SortOrder + archive_at?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type ShiftsArchiveMinOrderByAggregateInput = { + id?: Prisma.SortOrder + shift_id?: Prisma.SortOrder + archive_at?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + date?: Prisma.SortOrder + start_time?: Prisma.SortOrder + end_time?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder + comment?: Prisma.SortOrder +} + +export type ShiftsArchiveSumOrderByAggregateInput = { + id?: Prisma.SortOrder + shift_id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + bank_code_id?: Prisma.SortOrder +} + +export type ShiftsArchiveCreateNestedManyWithoutShiftInput = { + create?: Prisma.XOR | Prisma.ShiftsArchiveCreateWithoutShiftInput[] | Prisma.ShiftsArchiveUncheckedCreateWithoutShiftInput[] + connectOrCreate?: Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput | Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput[] + createMany?: Prisma.ShiftsArchiveCreateManyShiftInputEnvelope + connect?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[] +} + +export type ShiftsArchiveUncheckedCreateNestedManyWithoutShiftInput = { + create?: Prisma.XOR | Prisma.ShiftsArchiveCreateWithoutShiftInput[] | Prisma.ShiftsArchiveUncheckedCreateWithoutShiftInput[] + connectOrCreate?: Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput | Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput[] + createMany?: Prisma.ShiftsArchiveCreateManyShiftInputEnvelope + connect?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[] +} + +export type ShiftsArchiveUpdateManyWithoutShiftNestedInput = { + create?: Prisma.XOR | Prisma.ShiftsArchiveCreateWithoutShiftInput[] | Prisma.ShiftsArchiveUncheckedCreateWithoutShiftInput[] + connectOrCreate?: Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput | Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput[] + upsert?: Prisma.ShiftsArchiveUpsertWithWhereUniqueWithoutShiftInput | Prisma.ShiftsArchiveUpsertWithWhereUniqueWithoutShiftInput[] + createMany?: Prisma.ShiftsArchiveCreateManyShiftInputEnvelope + set?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[] + disconnect?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[] + delete?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[] + connect?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[] + update?: Prisma.ShiftsArchiveUpdateWithWhereUniqueWithoutShiftInput | Prisma.ShiftsArchiveUpdateWithWhereUniqueWithoutShiftInput[] + updateMany?: Prisma.ShiftsArchiveUpdateManyWithWhereWithoutShiftInput | Prisma.ShiftsArchiveUpdateManyWithWhereWithoutShiftInput[] + deleteMany?: Prisma.ShiftsArchiveScalarWhereInput | Prisma.ShiftsArchiveScalarWhereInput[] +} + +export type ShiftsArchiveUncheckedUpdateManyWithoutShiftNestedInput = { + create?: Prisma.XOR | Prisma.ShiftsArchiveCreateWithoutShiftInput[] | Prisma.ShiftsArchiveUncheckedCreateWithoutShiftInput[] + connectOrCreate?: Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput | Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput[] + upsert?: Prisma.ShiftsArchiveUpsertWithWhereUniqueWithoutShiftInput | Prisma.ShiftsArchiveUpsertWithWhereUniqueWithoutShiftInput[] + createMany?: Prisma.ShiftsArchiveCreateManyShiftInputEnvelope + set?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[] + disconnect?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[] + delete?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[] + connect?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[] + update?: Prisma.ShiftsArchiveUpdateWithWhereUniqueWithoutShiftInput | Prisma.ShiftsArchiveUpdateWithWhereUniqueWithoutShiftInput[] + updateMany?: Prisma.ShiftsArchiveUpdateManyWithWhereWithoutShiftInput | Prisma.ShiftsArchiveUpdateManyWithWhereWithoutShiftInput[] + deleteMany?: Prisma.ShiftsArchiveScalarWhereInput | Prisma.ShiftsArchiveScalarWhereInput[] +} + +export type ShiftsArchiveCreateWithoutShiftInput = { + archive_at?: Date | string + timesheet_id: number + date: Date | string + start_time: Date | string + end_time: Date | string + bank_code_id: number + comment?: string | null +} + +export type ShiftsArchiveUncheckedCreateWithoutShiftInput = { + id?: number + archive_at?: Date | string + timesheet_id: number + date: Date | string + start_time: Date | string + end_time: Date | string + bank_code_id: number + comment?: string | null +} + +export type ShiftsArchiveCreateOrConnectWithoutShiftInput = { + where: Prisma.ShiftsArchiveWhereUniqueInput + create: Prisma.XOR +} + +export type ShiftsArchiveCreateManyShiftInputEnvelope = { + data: Prisma.ShiftsArchiveCreateManyShiftInput | Prisma.ShiftsArchiveCreateManyShiftInput[] + skipDuplicates?: boolean +} + +export type ShiftsArchiveUpsertWithWhereUniqueWithoutShiftInput = { + where: Prisma.ShiftsArchiveWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type ShiftsArchiveUpdateWithWhereUniqueWithoutShiftInput = { + where: Prisma.ShiftsArchiveWhereUniqueInput + data: Prisma.XOR +} + +export type ShiftsArchiveUpdateManyWithWhereWithoutShiftInput = { + where: Prisma.ShiftsArchiveScalarWhereInput + data: Prisma.XOR +} + +export type ShiftsArchiveScalarWhereInput = { + AND?: Prisma.ShiftsArchiveScalarWhereInput | Prisma.ShiftsArchiveScalarWhereInput[] + OR?: Prisma.ShiftsArchiveScalarWhereInput[] + NOT?: Prisma.ShiftsArchiveScalarWhereInput | Prisma.ShiftsArchiveScalarWhereInput[] + id?: Prisma.IntFilter<"ShiftsArchive"> | number + shift_id?: Prisma.IntFilter<"ShiftsArchive"> | number + archive_at?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string + timesheet_id?: Prisma.IntFilter<"ShiftsArchive"> | number + date?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string + start_time?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string + end_time?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string + bank_code_id?: Prisma.IntFilter<"ShiftsArchive"> | number + comment?: Prisma.StringNullableFilter<"ShiftsArchive"> | string | null +} + +export type ShiftsArchiveCreateManyShiftInput = { + id?: number + archive_at?: Date | string + timesheet_id: number + date: Date | string + start_time: Date | string + end_time: Date | string + bank_code_id: number + comment?: string | null +} + +export type ShiftsArchiveUpdateWithoutShiftInput = { + archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ShiftsArchiveUncheckedUpdateWithoutShiftInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + +export type ShiftsArchiveUncheckedUpdateManyWithoutShiftInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number + comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null +} + + + +export type ShiftsArchiveSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + shift_id?: boolean + archive_at?: boolean + timesheet_id?: boolean + date?: boolean + start_time?: boolean + end_time?: boolean + bank_code_id?: boolean + comment?: boolean + shift?: boolean | Prisma.ShiftsDefaultArgs +}, ExtArgs["result"]["shiftsArchive"]> + +export type ShiftsArchiveSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + shift_id?: boolean + archive_at?: boolean + timesheet_id?: boolean + date?: boolean + start_time?: boolean + end_time?: boolean + bank_code_id?: boolean + comment?: boolean + shift?: boolean | Prisma.ShiftsDefaultArgs +}, ExtArgs["result"]["shiftsArchive"]> + +export type ShiftsArchiveSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + shift_id?: boolean + archive_at?: boolean + timesheet_id?: boolean + date?: boolean + start_time?: boolean + end_time?: boolean + bank_code_id?: boolean + comment?: boolean + shift?: boolean | Prisma.ShiftsDefaultArgs +}, ExtArgs["result"]["shiftsArchive"]> + +export type ShiftsArchiveSelectScalar = { + id?: boolean + shift_id?: boolean + archive_at?: boolean + timesheet_id?: boolean + date?: boolean + start_time?: boolean + end_time?: boolean + bank_code_id?: boolean + comment?: boolean +} + +export type ShiftsArchiveOmit = runtime.Types.Extensions.GetOmit<"id" | "shift_id" | "archive_at" | "timesheet_id" | "date" | "start_time" | "end_time" | "bank_code_id" | "comment", ExtArgs["result"]["shiftsArchive"]> +export type ShiftsArchiveInclude = { + shift?: boolean | Prisma.ShiftsDefaultArgs +} +export type ShiftsArchiveIncludeCreateManyAndReturn = { + shift?: boolean | Prisma.ShiftsDefaultArgs +} +export type ShiftsArchiveIncludeUpdateManyAndReturn = { + shift?: boolean | Prisma.ShiftsDefaultArgs +} + +export type $ShiftsArchivePayload = { + name: "ShiftsArchive" + objects: { + shift: Prisma.$ShiftsPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + shift_id: number + archive_at: Date + timesheet_id: number + date: Date + start_time: Date + end_time: Date + bank_code_id: number + comment: string | null + }, ExtArgs["result"]["shiftsArchive"]> + composites: {} +} + +export type ShiftsArchiveGetPayload = runtime.Types.Result.GetResult + +export type ShiftsArchiveCountArgs = + Omit & { + select?: ShiftsArchiveCountAggregateInputType | true + } + +export interface ShiftsArchiveDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['ShiftsArchive'], meta: { name: 'ShiftsArchive' } } + /** + * Find zero or one ShiftsArchive that matches the filter. + * @param {ShiftsArchiveFindUniqueArgs} args - Arguments to find a ShiftsArchive + * @example + * // Get one ShiftsArchive + * const shiftsArchive = await prisma.shiftsArchive.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsArchiveClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one ShiftsArchive that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ShiftsArchiveFindUniqueOrThrowArgs} args - Arguments to find a ShiftsArchive + * @example + * // Get one ShiftsArchive + * const shiftsArchive = await prisma.shiftsArchive.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsArchiveClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first ShiftsArchive 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 {ShiftsArchiveFindFirstArgs} args - Arguments to find a ShiftsArchive + * @example + * // Get one ShiftsArchive + * const shiftsArchive = await prisma.shiftsArchive.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ShiftsArchiveClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first ShiftsArchive 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 {ShiftsArchiveFindFirstOrThrowArgs} args - Arguments to find a ShiftsArchive + * @example + * // Get one ShiftsArchive + * const shiftsArchive = await prisma.shiftsArchive.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ShiftsArchiveClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more ShiftsArchives 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 {ShiftsArchiveFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all ShiftsArchives + * const shiftsArchives = await prisma.shiftsArchive.findMany() + * + * // Get first 10 ShiftsArchives + * const shiftsArchives = await prisma.shiftsArchive.findMany({ take: 10 }) + * + * // Only select the `id` + * const shiftsArchiveWithIdOnly = await prisma.shiftsArchive.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a ShiftsArchive. + * @param {ShiftsArchiveCreateArgs} args - Arguments to create a ShiftsArchive. + * @example + * // Create one ShiftsArchive + * const ShiftsArchive = await prisma.shiftsArchive.create({ + * data: { + * // ... data to create a ShiftsArchive + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsArchiveClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many ShiftsArchives. + * @param {ShiftsArchiveCreateManyArgs} args - Arguments to create many ShiftsArchives. + * @example + * // Create many ShiftsArchives + * const shiftsArchive = await prisma.shiftsArchive.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many ShiftsArchives and returns the data saved in the database. + * @param {ShiftsArchiveCreateManyAndReturnArgs} args - Arguments to create many ShiftsArchives. + * @example + * // Create many ShiftsArchives + * const shiftsArchive = await prisma.shiftsArchive.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many ShiftsArchives and only return the `id` + * const shiftsArchiveWithIdOnly = await prisma.shiftsArchive.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 ShiftsArchive. + * @param {ShiftsArchiveDeleteArgs} args - Arguments to delete one ShiftsArchive. + * @example + * // Delete one ShiftsArchive + * const ShiftsArchive = await prisma.shiftsArchive.delete({ + * where: { + * // ... filter to delete one ShiftsArchive + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsArchiveClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one ShiftsArchive. + * @param {ShiftsArchiveUpdateArgs} args - Arguments to update one ShiftsArchive. + * @example + * // Update one ShiftsArchive + * const shiftsArchive = await prisma.shiftsArchive.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsArchiveClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more ShiftsArchives. + * @param {ShiftsArchiveDeleteManyArgs} args - Arguments to filter ShiftsArchives to delete. + * @example + * // Delete a few ShiftsArchives + * const { count } = await prisma.shiftsArchive.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more ShiftsArchives. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShiftsArchiveUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many ShiftsArchives + * const shiftsArchive = await prisma.shiftsArchive.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more ShiftsArchives and returns the data updated in the database. + * @param {ShiftsArchiveUpdateManyAndReturnArgs} args - Arguments to update many ShiftsArchives. + * @example + * // Update many ShiftsArchives + * const shiftsArchive = await prisma.shiftsArchive.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more ShiftsArchives and only return the `id` + * const shiftsArchiveWithIdOnly = await prisma.shiftsArchive.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 ShiftsArchive. + * @param {ShiftsArchiveUpsertArgs} args - Arguments to update or create a ShiftsArchive. + * @example + * // Update or create a ShiftsArchive + * const shiftsArchive = await prisma.shiftsArchive.upsert({ + * create: { + * // ... data to create a ShiftsArchive + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the ShiftsArchive we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsArchiveClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of ShiftsArchives. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShiftsArchiveCountArgs} args - Arguments to filter ShiftsArchives to count. + * @example + * // Count the number of ShiftsArchives + * const count = await prisma.shiftsArchive.count({ + * where: { + * // ... the filter for the ShiftsArchives 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 ShiftsArchive. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShiftsArchiveAggregateArgs} 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 ShiftsArchive. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ShiftsArchiveGroupByArgs} 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 ShiftsArchiveGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ShiftsArchiveGroupByArgs['orderBy'] } + : { orderBy?: ShiftsArchiveGroupByArgs['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 ? GetShiftsArchiveGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the ShiftsArchive model + */ +readonly fields: ShiftsArchiveFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for ShiftsArchive. + * 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__ShiftsArchiveClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + shift = {}>(args?: Prisma.Subset>): Prisma.Prisma__ShiftsClient, 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 ShiftsArchive model + */ +export interface ShiftsArchiveFieldRefs { + readonly id: Prisma.FieldRef<"ShiftsArchive", 'Int'> + readonly shift_id: Prisma.FieldRef<"ShiftsArchive", 'Int'> + readonly archive_at: Prisma.FieldRef<"ShiftsArchive", 'DateTime'> + readonly timesheet_id: Prisma.FieldRef<"ShiftsArchive", 'Int'> + readonly date: Prisma.FieldRef<"ShiftsArchive", 'DateTime'> + readonly start_time: Prisma.FieldRef<"ShiftsArchive", 'DateTime'> + readonly end_time: Prisma.FieldRef<"ShiftsArchive", 'DateTime'> + readonly bank_code_id: Prisma.FieldRef<"ShiftsArchive", 'Int'> + readonly comment: Prisma.FieldRef<"ShiftsArchive", 'String'> +} + + +// Custom InputTypes +/** + * ShiftsArchive findUnique + */ +export type ShiftsArchiveFindUniqueArgs = { + /** + * Select specific fields to fetch from the ShiftsArchive + */ + select?: Prisma.ShiftsArchiveSelect | null + /** + * Omit specific fields from the ShiftsArchive + */ + omit?: Prisma.ShiftsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsArchiveInclude | null + /** + * Filter, which ShiftsArchive to fetch. + */ + where: Prisma.ShiftsArchiveWhereUniqueInput +} + +/** + * ShiftsArchive findUniqueOrThrow + */ +export type ShiftsArchiveFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the ShiftsArchive + */ + select?: Prisma.ShiftsArchiveSelect | null + /** + * Omit specific fields from the ShiftsArchive + */ + omit?: Prisma.ShiftsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsArchiveInclude | null + /** + * Filter, which ShiftsArchive to fetch. + */ + where: Prisma.ShiftsArchiveWhereUniqueInput +} + +/** + * ShiftsArchive findFirst + */ +export type ShiftsArchiveFindFirstArgs = { + /** + * Select specific fields to fetch from the ShiftsArchive + */ + select?: Prisma.ShiftsArchiveSelect | null + /** + * Omit specific fields from the ShiftsArchive + */ + omit?: Prisma.ShiftsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsArchiveInclude | null + /** + * Filter, which ShiftsArchive to fetch. + */ + where?: Prisma.ShiftsArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ShiftsArchives to fetch. + */ + orderBy?: Prisma.ShiftsArchiveOrderByWithRelationInput | Prisma.ShiftsArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ShiftsArchives. + */ + cursor?: Prisma.ShiftsArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ShiftsArchives 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` ShiftsArchives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ShiftsArchives. + */ + distinct?: Prisma.ShiftsArchiveScalarFieldEnum | Prisma.ShiftsArchiveScalarFieldEnum[] +} + +/** + * ShiftsArchive findFirstOrThrow + */ +export type ShiftsArchiveFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the ShiftsArchive + */ + select?: Prisma.ShiftsArchiveSelect | null + /** + * Omit specific fields from the ShiftsArchive + */ + omit?: Prisma.ShiftsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsArchiveInclude | null + /** + * Filter, which ShiftsArchive to fetch. + */ + where?: Prisma.ShiftsArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ShiftsArchives to fetch. + */ + orderBy?: Prisma.ShiftsArchiveOrderByWithRelationInput | Prisma.ShiftsArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for ShiftsArchives. + */ + cursor?: Prisma.ShiftsArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ShiftsArchives 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` ShiftsArchives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of ShiftsArchives. + */ + distinct?: Prisma.ShiftsArchiveScalarFieldEnum | Prisma.ShiftsArchiveScalarFieldEnum[] +} + +/** + * ShiftsArchive findMany + */ +export type ShiftsArchiveFindManyArgs = { + /** + * Select specific fields to fetch from the ShiftsArchive + */ + select?: Prisma.ShiftsArchiveSelect | null + /** + * Omit specific fields from the ShiftsArchive + */ + omit?: Prisma.ShiftsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsArchiveInclude | null + /** + * Filter, which ShiftsArchives to fetch. + */ + where?: Prisma.ShiftsArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of ShiftsArchives to fetch. + */ + orderBy?: Prisma.ShiftsArchiveOrderByWithRelationInput | Prisma.ShiftsArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing ShiftsArchives. + */ + cursor?: Prisma.ShiftsArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` ShiftsArchives 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` ShiftsArchives. + */ + skip?: number + distinct?: Prisma.ShiftsArchiveScalarFieldEnum | Prisma.ShiftsArchiveScalarFieldEnum[] +} + +/** + * ShiftsArchive create + */ +export type ShiftsArchiveCreateArgs = { + /** + * Select specific fields to fetch from the ShiftsArchive + */ + select?: Prisma.ShiftsArchiveSelect | null + /** + * Omit specific fields from the ShiftsArchive + */ + omit?: Prisma.ShiftsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsArchiveInclude | null + /** + * The data needed to create a ShiftsArchive. + */ + data: Prisma.XOR +} + +/** + * ShiftsArchive createMany + */ +export type ShiftsArchiveCreateManyArgs = { + /** + * The data used to create many ShiftsArchives. + */ + data: Prisma.ShiftsArchiveCreateManyInput | Prisma.ShiftsArchiveCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * ShiftsArchive createManyAndReturn + */ +export type ShiftsArchiveCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the ShiftsArchive + */ + select?: Prisma.ShiftsArchiveSelectCreateManyAndReturn | null + /** + * Omit specific fields from the ShiftsArchive + */ + omit?: Prisma.ShiftsArchiveOmit | null + /** + * The data used to create many ShiftsArchives. + */ + data: Prisma.ShiftsArchiveCreateManyInput | Prisma.ShiftsArchiveCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsArchiveIncludeCreateManyAndReturn | null +} + +/** + * ShiftsArchive update + */ +export type ShiftsArchiveUpdateArgs = { + /** + * Select specific fields to fetch from the ShiftsArchive + */ + select?: Prisma.ShiftsArchiveSelect | null + /** + * Omit specific fields from the ShiftsArchive + */ + omit?: Prisma.ShiftsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsArchiveInclude | null + /** + * The data needed to update a ShiftsArchive. + */ + data: Prisma.XOR + /** + * Choose, which ShiftsArchive to update. + */ + where: Prisma.ShiftsArchiveWhereUniqueInput +} + +/** + * ShiftsArchive updateMany + */ +export type ShiftsArchiveUpdateManyArgs = { + /** + * The data used to update ShiftsArchives. + */ + data: Prisma.XOR + /** + * Filter which ShiftsArchives to update + */ + where?: Prisma.ShiftsArchiveWhereInput + /** + * Limit how many ShiftsArchives to update. + */ + limit?: number +} + +/** + * ShiftsArchive updateManyAndReturn + */ +export type ShiftsArchiveUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the ShiftsArchive + */ + select?: Prisma.ShiftsArchiveSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the ShiftsArchive + */ + omit?: Prisma.ShiftsArchiveOmit | null + /** + * The data used to update ShiftsArchives. + */ + data: Prisma.XOR + /** + * Filter which ShiftsArchives to update + */ + where?: Prisma.ShiftsArchiveWhereInput + /** + * Limit how many ShiftsArchives to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsArchiveIncludeUpdateManyAndReturn | null +} + +/** + * ShiftsArchive upsert + */ +export type ShiftsArchiveUpsertArgs = { + /** + * Select specific fields to fetch from the ShiftsArchive + */ + select?: Prisma.ShiftsArchiveSelect | null + /** + * Omit specific fields from the ShiftsArchive + */ + omit?: Prisma.ShiftsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsArchiveInclude | null + /** + * The filter to search for the ShiftsArchive to update in case it exists. + */ + where: Prisma.ShiftsArchiveWhereUniqueInput + /** + * In case the ShiftsArchive found by the `where` argument doesn't exist, create a new ShiftsArchive with this data. + */ + create: Prisma.XOR + /** + * In case the ShiftsArchive was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * ShiftsArchive delete + */ +export type ShiftsArchiveDeleteArgs = { + /** + * Select specific fields to fetch from the ShiftsArchive + */ + select?: Prisma.ShiftsArchiveSelect | null + /** + * Omit specific fields from the ShiftsArchive + */ + omit?: Prisma.ShiftsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsArchiveInclude | null + /** + * Filter which ShiftsArchive to delete. + */ + where: Prisma.ShiftsArchiveWhereUniqueInput +} + +/** + * ShiftsArchive deleteMany + */ +export type ShiftsArchiveDeleteManyArgs = { + /** + * Filter which ShiftsArchives to delete + */ + where?: Prisma.ShiftsArchiveWhereInput + /** + * Limit how many ShiftsArchives to delete. + */ + limit?: number +} + +/** + * ShiftsArchive without action + */ +export type ShiftsArchiveDefaultArgs = { + /** + * Select specific fields to fetch from the ShiftsArchive + */ + select?: Prisma.ShiftsArchiveSelect | null + /** + * Omit specific fields from the ShiftsArchive + */ + omit?: Prisma.ShiftsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsArchiveInclude | null +} diff --git a/prisma/generated/postgres/models/Timesheets.ts b/prisma/generated/postgres/models/Timesheets.ts new file mode 100644 index 0000000..7ebbbe6 --- /dev/null +++ b/prisma/generated/postgres/models/Timesheets.ts @@ -0,0 +1,1713 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Timesheets` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model Timesheets + * + */ +export type TimesheetsModel = runtime.Types.Result.DefaultSelection + +export type AggregateTimesheets = { + _count: TimesheetsCountAggregateOutputType | null + _avg: TimesheetsAvgAggregateOutputType | null + _sum: TimesheetsSumAggregateOutputType | null + _min: TimesheetsMinAggregateOutputType | null + _max: TimesheetsMaxAggregateOutputType | null +} + +export type TimesheetsAvgAggregateOutputType = { + id: number | null + employee_id: number | null +} + +export type TimesheetsSumAggregateOutputType = { + id: number | null + employee_id: number | null +} + +export type TimesheetsMinAggregateOutputType = { + id: number | null + employee_id: number | null + is_approved: boolean | null + start_date: Date | null +} + +export type TimesheetsMaxAggregateOutputType = { + id: number | null + employee_id: number | null + is_approved: boolean | null + start_date: Date | null +} + +export type TimesheetsCountAggregateOutputType = { + id: number + employee_id: number + is_approved: number + start_date: number + _all: number +} + + +export type TimesheetsAvgAggregateInputType = { + id?: true + employee_id?: true +} + +export type TimesheetsSumAggregateInputType = { + id?: true + employee_id?: true +} + +export type TimesheetsMinAggregateInputType = { + id?: true + employee_id?: true + is_approved?: true + start_date?: true +} + +export type TimesheetsMaxAggregateInputType = { + id?: true + employee_id?: true + is_approved?: true + start_date?: true +} + +export type TimesheetsCountAggregateInputType = { + id?: true + employee_id?: true + is_approved?: true + start_date?: true + _all?: true +} + +export type TimesheetsAggregateArgs = { + /** + * Filter which Timesheets to aggregate. + */ + where?: Prisma.TimesheetsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Timesheets to fetch. + */ + orderBy?: Prisma.TimesheetsOrderByWithRelationInput | Prisma.TimesheetsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.TimesheetsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Timesheets 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` Timesheets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Timesheets + **/ + _count?: true | TimesheetsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: TimesheetsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: TimesheetsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: TimesheetsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: TimesheetsMaxAggregateInputType +} + +export type GetTimesheetsAggregateType = { + [P in keyof T & keyof AggregateTimesheets]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type TimesheetsGroupByArgs = { + where?: Prisma.TimesheetsWhereInput + orderBy?: Prisma.TimesheetsOrderByWithAggregationInput | Prisma.TimesheetsOrderByWithAggregationInput[] + by: Prisma.TimesheetsScalarFieldEnum[] | Prisma.TimesheetsScalarFieldEnum + having?: Prisma.TimesheetsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: TimesheetsCountAggregateInputType | true + _avg?: TimesheetsAvgAggregateInputType + _sum?: TimesheetsSumAggregateInputType + _min?: TimesheetsMinAggregateInputType + _max?: TimesheetsMaxAggregateInputType +} + +export type TimesheetsGroupByOutputType = { + id: number + employee_id: number + is_approved: boolean + start_date: Date + _count: TimesheetsCountAggregateOutputType | null + _avg: TimesheetsAvgAggregateOutputType | null + _sum: TimesheetsSumAggregateOutputType | null + _min: TimesheetsMinAggregateOutputType | null + _max: TimesheetsMaxAggregateOutputType | null +} + +type GetTimesheetsGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof TimesheetsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type TimesheetsWhereInput = { + AND?: Prisma.TimesheetsWhereInput | Prisma.TimesheetsWhereInput[] + OR?: Prisma.TimesheetsWhereInput[] + NOT?: Prisma.TimesheetsWhereInput | Prisma.TimesheetsWhereInput[] + id?: Prisma.IntFilter<"Timesheets"> | number + employee_id?: Prisma.IntFilter<"Timesheets"> | number + is_approved?: Prisma.BoolFilter<"Timesheets"> | boolean + start_date?: Prisma.DateTimeFilter<"Timesheets"> | Date | string + expense?: Prisma.ExpensesListRelationFilter + shift?: Prisma.ShiftsListRelationFilter + employee?: Prisma.XOR + archive?: Prisma.TimesheetsArchiveListRelationFilter +} + +export type TimesheetsOrderByWithRelationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + start_date?: Prisma.SortOrder + expense?: Prisma.ExpensesOrderByRelationAggregateInput + shift?: Prisma.ShiftsOrderByRelationAggregateInput + employee?: Prisma.EmployeesOrderByWithRelationInput + archive?: Prisma.TimesheetsArchiveOrderByRelationAggregateInput +} + +export type TimesheetsWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.TimesheetsWhereInput | Prisma.TimesheetsWhereInput[] + OR?: Prisma.TimesheetsWhereInput[] + NOT?: Prisma.TimesheetsWhereInput | Prisma.TimesheetsWhereInput[] + employee_id?: Prisma.IntFilter<"Timesheets"> | number + is_approved?: Prisma.BoolFilter<"Timesheets"> | boolean + start_date?: Prisma.DateTimeFilter<"Timesheets"> | Date | string + expense?: Prisma.ExpensesListRelationFilter + shift?: Prisma.ShiftsListRelationFilter + employee?: Prisma.XOR + archive?: Prisma.TimesheetsArchiveListRelationFilter +}, "id"> + +export type TimesheetsOrderByWithAggregationInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + start_date?: Prisma.SortOrder + _count?: Prisma.TimesheetsCountOrderByAggregateInput + _avg?: Prisma.TimesheetsAvgOrderByAggregateInput + _max?: Prisma.TimesheetsMaxOrderByAggregateInput + _min?: Prisma.TimesheetsMinOrderByAggregateInput + _sum?: Prisma.TimesheetsSumOrderByAggregateInput +} + +export type TimesheetsScalarWhereWithAggregatesInput = { + AND?: Prisma.TimesheetsScalarWhereWithAggregatesInput | Prisma.TimesheetsScalarWhereWithAggregatesInput[] + OR?: Prisma.TimesheetsScalarWhereWithAggregatesInput[] + NOT?: Prisma.TimesheetsScalarWhereWithAggregatesInput | Prisma.TimesheetsScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"Timesheets"> | number + employee_id?: Prisma.IntWithAggregatesFilter<"Timesheets"> | number + is_approved?: Prisma.BoolWithAggregatesFilter<"Timesheets"> | boolean + start_date?: Prisma.DateTimeWithAggregatesFilter<"Timesheets"> | Date | string +} + +export type TimesheetsCreateInput = { + is_approved?: boolean + start_date: Date | string + expense?: Prisma.ExpensesCreateNestedManyWithoutTimesheetInput + shift?: Prisma.ShiftsCreateNestedManyWithoutTimesheetInput + employee: Prisma.EmployeesCreateNestedOneWithoutTimesheetInput + archive?: Prisma.TimesheetsArchiveCreateNestedManyWithoutTimesheetInput +} + +export type TimesheetsUncheckedCreateInput = { + id?: number + employee_id: number + is_approved?: boolean + start_date: Date | string + expense?: Prisma.ExpensesUncheckedCreateNestedManyWithoutTimesheetInput + shift?: Prisma.ShiftsUncheckedCreateNestedManyWithoutTimesheetInput + archive?: Prisma.TimesheetsArchiveUncheckedCreateNestedManyWithoutTimesheetInput +} + +export type TimesheetsUpdateInput = { + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpensesUpdateManyWithoutTimesheetNestedInput + shift?: Prisma.ShiftsUpdateManyWithoutTimesheetNestedInput + employee?: Prisma.EmployeesUpdateOneRequiredWithoutTimesheetNestedInput + archive?: Prisma.TimesheetsArchiveUpdateManyWithoutTimesheetNestedInput +} + +export type TimesheetsUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpensesUncheckedUpdateManyWithoutTimesheetNestedInput + shift?: Prisma.ShiftsUncheckedUpdateManyWithoutTimesheetNestedInput + archive?: Prisma.TimesheetsArchiveUncheckedUpdateManyWithoutTimesheetNestedInput +} + +export type TimesheetsCreateManyInput = { + id?: number + employee_id: number + is_approved?: boolean + start_date: Date | string +} + +export type TimesheetsUpdateManyMutationInput = { + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type TimesheetsUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type TimesheetsListRelationFilter = { + every?: Prisma.TimesheetsWhereInput + some?: Prisma.TimesheetsWhereInput + none?: Prisma.TimesheetsWhereInput +} + +export type TimesheetsOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type TimesheetsCountOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + start_date?: Prisma.SortOrder +} + +export type TimesheetsAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder +} + +export type TimesheetsMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + start_date?: Prisma.SortOrder +} + +export type TimesheetsMinOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + start_date?: Prisma.SortOrder +} + +export type TimesheetsSumOrderByAggregateInput = { + id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder +} + +export type TimesheetsScalarRelationFilter = { + is?: Prisma.TimesheetsWhereInput + isNot?: Prisma.TimesheetsWhereInput +} + +export type TimesheetsCreateNestedManyWithoutEmployeeInput = { + create?: Prisma.XOR | Prisma.TimesheetsCreateWithoutEmployeeInput[] | Prisma.TimesheetsUncheckedCreateWithoutEmployeeInput[] + connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput | Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput[] + createMany?: Prisma.TimesheetsCreateManyEmployeeInputEnvelope + connect?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] +} + +export type TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput = { + create?: Prisma.XOR | Prisma.TimesheetsCreateWithoutEmployeeInput[] | Prisma.TimesheetsUncheckedCreateWithoutEmployeeInput[] + connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput | Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput[] + createMany?: Prisma.TimesheetsCreateManyEmployeeInputEnvelope + connect?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] +} + +export type TimesheetsUpdateManyWithoutEmployeeNestedInput = { + create?: Prisma.XOR | Prisma.TimesheetsCreateWithoutEmployeeInput[] | Prisma.TimesheetsUncheckedCreateWithoutEmployeeInput[] + connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput | Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput[] + upsert?: Prisma.TimesheetsUpsertWithWhereUniqueWithoutEmployeeInput | Prisma.TimesheetsUpsertWithWhereUniqueWithoutEmployeeInput[] + createMany?: Prisma.TimesheetsCreateManyEmployeeInputEnvelope + set?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] + disconnect?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] + delete?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] + connect?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] + update?: Prisma.TimesheetsUpdateWithWhereUniqueWithoutEmployeeInput | Prisma.TimesheetsUpdateWithWhereUniqueWithoutEmployeeInput[] + updateMany?: Prisma.TimesheetsUpdateManyWithWhereWithoutEmployeeInput | Prisma.TimesheetsUpdateManyWithWhereWithoutEmployeeInput[] + deleteMany?: Prisma.TimesheetsScalarWhereInput | Prisma.TimesheetsScalarWhereInput[] +} + +export type TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput = { + create?: Prisma.XOR | Prisma.TimesheetsCreateWithoutEmployeeInput[] | Prisma.TimesheetsUncheckedCreateWithoutEmployeeInput[] + connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput | Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput[] + upsert?: Prisma.TimesheetsUpsertWithWhereUniqueWithoutEmployeeInput | Prisma.TimesheetsUpsertWithWhereUniqueWithoutEmployeeInput[] + createMany?: Prisma.TimesheetsCreateManyEmployeeInputEnvelope + set?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] + disconnect?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] + delete?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] + connect?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] + update?: Prisma.TimesheetsUpdateWithWhereUniqueWithoutEmployeeInput | Prisma.TimesheetsUpdateWithWhereUniqueWithoutEmployeeInput[] + updateMany?: Prisma.TimesheetsUpdateManyWithWhereWithoutEmployeeInput | Prisma.TimesheetsUpdateManyWithWhereWithoutEmployeeInput[] + deleteMany?: Prisma.TimesheetsScalarWhereInput | Prisma.TimesheetsScalarWhereInput[] +} + +export type TimesheetsCreateNestedOneWithoutArchiveInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutArchiveInput + connect?: Prisma.TimesheetsWhereUniqueInput +} + +export type TimesheetsUpdateOneRequiredWithoutArchiveNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutArchiveInput + upsert?: Prisma.TimesheetsUpsertWithoutArchiveInput + connect?: Prisma.TimesheetsWhereUniqueInput + update?: Prisma.XOR, Prisma.TimesheetsUncheckedUpdateWithoutArchiveInput> +} + +export type TimesheetsCreateNestedOneWithoutShiftInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutShiftInput + connect?: Prisma.TimesheetsWhereUniqueInput +} + +export type TimesheetsUpdateOneRequiredWithoutShiftNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutShiftInput + upsert?: Prisma.TimesheetsUpsertWithoutShiftInput + connect?: Prisma.TimesheetsWhereUniqueInput + update?: Prisma.XOR, Prisma.TimesheetsUncheckedUpdateWithoutShiftInput> +} + +export type TimesheetsCreateNestedOneWithoutExpenseInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutExpenseInput + connect?: Prisma.TimesheetsWhereUniqueInput +} + +export type TimesheetsUpdateOneRequiredWithoutExpenseNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutExpenseInput + upsert?: Prisma.TimesheetsUpsertWithoutExpenseInput + connect?: Prisma.TimesheetsWhereUniqueInput + update?: Prisma.XOR, Prisma.TimesheetsUncheckedUpdateWithoutExpenseInput> +} + +export type TimesheetsCreateWithoutEmployeeInput = { + is_approved?: boolean + start_date: Date | string + expense?: Prisma.ExpensesCreateNestedManyWithoutTimesheetInput + shift?: Prisma.ShiftsCreateNestedManyWithoutTimesheetInput + archive?: Prisma.TimesheetsArchiveCreateNestedManyWithoutTimesheetInput +} + +export type TimesheetsUncheckedCreateWithoutEmployeeInput = { + id?: number + is_approved?: boolean + start_date: Date | string + expense?: Prisma.ExpensesUncheckedCreateNestedManyWithoutTimesheetInput + shift?: Prisma.ShiftsUncheckedCreateNestedManyWithoutTimesheetInput + archive?: Prisma.TimesheetsArchiveUncheckedCreateNestedManyWithoutTimesheetInput +} + +export type TimesheetsCreateOrConnectWithoutEmployeeInput = { + where: Prisma.TimesheetsWhereUniqueInput + create: Prisma.XOR +} + +export type TimesheetsCreateManyEmployeeInputEnvelope = { + data: Prisma.TimesheetsCreateManyEmployeeInput | Prisma.TimesheetsCreateManyEmployeeInput[] + skipDuplicates?: boolean +} + +export type TimesheetsUpsertWithWhereUniqueWithoutEmployeeInput = { + where: Prisma.TimesheetsWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type TimesheetsUpdateWithWhereUniqueWithoutEmployeeInput = { + where: Prisma.TimesheetsWhereUniqueInput + data: Prisma.XOR +} + +export type TimesheetsUpdateManyWithWhereWithoutEmployeeInput = { + where: Prisma.TimesheetsScalarWhereInput + data: Prisma.XOR +} + +export type TimesheetsScalarWhereInput = { + AND?: Prisma.TimesheetsScalarWhereInput | Prisma.TimesheetsScalarWhereInput[] + OR?: Prisma.TimesheetsScalarWhereInput[] + NOT?: Prisma.TimesheetsScalarWhereInput | Prisma.TimesheetsScalarWhereInput[] + id?: Prisma.IntFilter<"Timesheets"> | number + employee_id?: Prisma.IntFilter<"Timesheets"> | number + is_approved?: Prisma.BoolFilter<"Timesheets"> | boolean + start_date?: Prisma.DateTimeFilter<"Timesheets"> | Date | string +} + +export type TimesheetsCreateWithoutArchiveInput = { + is_approved?: boolean + start_date: Date | string + expense?: Prisma.ExpensesCreateNestedManyWithoutTimesheetInput + shift?: Prisma.ShiftsCreateNestedManyWithoutTimesheetInput + employee: Prisma.EmployeesCreateNestedOneWithoutTimesheetInput +} + +export type TimesheetsUncheckedCreateWithoutArchiveInput = { + id?: number + employee_id: number + is_approved?: boolean + start_date: Date | string + expense?: Prisma.ExpensesUncheckedCreateNestedManyWithoutTimesheetInput + shift?: Prisma.ShiftsUncheckedCreateNestedManyWithoutTimesheetInput +} + +export type TimesheetsCreateOrConnectWithoutArchiveInput = { + where: Prisma.TimesheetsWhereUniqueInput + create: Prisma.XOR +} + +export type TimesheetsUpsertWithoutArchiveInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.TimesheetsWhereInput +} + +export type TimesheetsUpdateToOneWithWhereWithoutArchiveInput = { + where?: Prisma.TimesheetsWhereInput + data: Prisma.XOR +} + +export type TimesheetsUpdateWithoutArchiveInput = { + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpensesUpdateManyWithoutTimesheetNestedInput + shift?: Prisma.ShiftsUpdateManyWithoutTimesheetNestedInput + employee?: Prisma.EmployeesUpdateOneRequiredWithoutTimesheetNestedInput +} + +export type TimesheetsUncheckedUpdateWithoutArchiveInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpensesUncheckedUpdateManyWithoutTimesheetNestedInput + shift?: Prisma.ShiftsUncheckedUpdateManyWithoutTimesheetNestedInput +} + +export type TimesheetsCreateWithoutShiftInput = { + is_approved?: boolean + start_date: Date | string + expense?: Prisma.ExpensesCreateNestedManyWithoutTimesheetInput + employee: Prisma.EmployeesCreateNestedOneWithoutTimesheetInput + archive?: Prisma.TimesheetsArchiveCreateNestedManyWithoutTimesheetInput +} + +export type TimesheetsUncheckedCreateWithoutShiftInput = { + id?: number + employee_id: number + is_approved?: boolean + start_date: Date | string + expense?: Prisma.ExpensesUncheckedCreateNestedManyWithoutTimesheetInput + archive?: Prisma.TimesheetsArchiveUncheckedCreateNestedManyWithoutTimesheetInput +} + +export type TimesheetsCreateOrConnectWithoutShiftInput = { + where: Prisma.TimesheetsWhereUniqueInput + create: Prisma.XOR +} + +export type TimesheetsUpsertWithoutShiftInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.TimesheetsWhereInput +} + +export type TimesheetsUpdateToOneWithWhereWithoutShiftInput = { + where?: Prisma.TimesheetsWhereInput + data: Prisma.XOR +} + +export type TimesheetsUpdateWithoutShiftInput = { + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpensesUpdateManyWithoutTimesheetNestedInput + employee?: Prisma.EmployeesUpdateOneRequiredWithoutTimesheetNestedInput + archive?: Prisma.TimesheetsArchiveUpdateManyWithoutTimesheetNestedInput +} + +export type TimesheetsUncheckedUpdateWithoutShiftInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpensesUncheckedUpdateManyWithoutTimesheetNestedInput + archive?: Prisma.TimesheetsArchiveUncheckedUpdateManyWithoutTimesheetNestedInput +} + +export type TimesheetsCreateWithoutExpenseInput = { + is_approved?: boolean + start_date: Date | string + shift?: Prisma.ShiftsCreateNestedManyWithoutTimesheetInput + employee: Prisma.EmployeesCreateNestedOneWithoutTimesheetInput + archive?: Prisma.TimesheetsArchiveCreateNestedManyWithoutTimesheetInput +} + +export type TimesheetsUncheckedCreateWithoutExpenseInput = { + id?: number + employee_id: number + is_approved?: boolean + start_date: Date | string + shift?: Prisma.ShiftsUncheckedCreateNestedManyWithoutTimesheetInput + archive?: Prisma.TimesheetsArchiveUncheckedCreateNestedManyWithoutTimesheetInput +} + +export type TimesheetsCreateOrConnectWithoutExpenseInput = { + where: Prisma.TimesheetsWhereUniqueInput + create: Prisma.XOR +} + +export type TimesheetsUpsertWithoutExpenseInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.TimesheetsWhereInput +} + +export type TimesheetsUpdateToOneWithWhereWithoutExpenseInput = { + where?: Prisma.TimesheetsWhereInput + data: Prisma.XOR +} + +export type TimesheetsUpdateWithoutExpenseInput = { + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + shift?: Prisma.ShiftsUpdateManyWithoutTimesheetNestedInput + employee?: Prisma.EmployeesUpdateOneRequiredWithoutTimesheetNestedInput + archive?: Prisma.TimesheetsArchiveUpdateManyWithoutTimesheetNestedInput +} + +export type TimesheetsUncheckedUpdateWithoutExpenseInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + shift?: Prisma.ShiftsUncheckedUpdateManyWithoutTimesheetNestedInput + archive?: Prisma.TimesheetsArchiveUncheckedUpdateManyWithoutTimesheetNestedInput +} + +export type TimesheetsCreateManyEmployeeInput = { + id?: number + is_approved?: boolean + start_date: Date | string +} + +export type TimesheetsUpdateWithoutEmployeeInput = { + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpensesUpdateManyWithoutTimesheetNestedInput + shift?: Prisma.ShiftsUpdateManyWithoutTimesheetNestedInput + archive?: Prisma.TimesheetsArchiveUpdateManyWithoutTimesheetNestedInput +} + +export type TimesheetsUncheckedUpdateWithoutEmployeeInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + expense?: Prisma.ExpensesUncheckedUpdateManyWithoutTimesheetNestedInput + shift?: Prisma.ShiftsUncheckedUpdateManyWithoutTimesheetNestedInput + archive?: Prisma.TimesheetsArchiveUncheckedUpdateManyWithoutTimesheetNestedInput +} + +export type TimesheetsUncheckedUpdateManyWithoutEmployeeInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + +/** + * Count Type TimesheetsCountOutputType + */ + +export type TimesheetsCountOutputType = { + expense: number + shift: number + archive: number +} + +export type TimesheetsCountOutputTypeSelect = { + expense?: boolean | TimesheetsCountOutputTypeCountExpenseArgs + shift?: boolean | TimesheetsCountOutputTypeCountShiftArgs + archive?: boolean | TimesheetsCountOutputTypeCountArchiveArgs +} + +/** + * TimesheetsCountOutputType without action + */ +export type TimesheetsCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the TimesheetsCountOutputType + */ + select?: Prisma.TimesheetsCountOutputTypeSelect | null +} + +/** + * TimesheetsCountOutputType without action + */ +export type TimesheetsCountOutputTypeCountExpenseArgs = { + where?: Prisma.ExpensesWhereInput +} + +/** + * TimesheetsCountOutputType without action + */ +export type TimesheetsCountOutputTypeCountShiftArgs = { + where?: Prisma.ShiftsWhereInput +} + +/** + * TimesheetsCountOutputType without action + */ +export type TimesheetsCountOutputTypeCountArchiveArgs = { + where?: Prisma.TimesheetsArchiveWhereInput +} + + +export type TimesheetsSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + is_approved?: boolean + start_date?: boolean + expense?: boolean | Prisma.Timesheets$expenseArgs + shift?: boolean | Prisma.Timesheets$shiftArgs + employee?: boolean | Prisma.EmployeesDefaultArgs + archive?: boolean | Prisma.Timesheets$archiveArgs + _count?: boolean | Prisma.TimesheetsCountOutputTypeDefaultArgs +}, ExtArgs["result"]["timesheets"]> + +export type TimesheetsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + is_approved?: boolean + start_date?: boolean + employee?: boolean | Prisma.EmployeesDefaultArgs +}, ExtArgs["result"]["timesheets"]> + +export type TimesheetsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + employee_id?: boolean + is_approved?: boolean + start_date?: boolean + employee?: boolean | Prisma.EmployeesDefaultArgs +}, ExtArgs["result"]["timesheets"]> + +export type TimesheetsSelectScalar = { + id?: boolean + employee_id?: boolean + is_approved?: boolean + start_date?: boolean +} + +export type TimesheetsOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "is_approved" | "start_date", ExtArgs["result"]["timesheets"]> +export type TimesheetsInclude = { + expense?: boolean | Prisma.Timesheets$expenseArgs + shift?: boolean | Prisma.Timesheets$shiftArgs + employee?: boolean | Prisma.EmployeesDefaultArgs + archive?: boolean | Prisma.Timesheets$archiveArgs + _count?: boolean | Prisma.TimesheetsCountOutputTypeDefaultArgs +} +export type TimesheetsIncludeCreateManyAndReturn = { + employee?: boolean | Prisma.EmployeesDefaultArgs +} +export type TimesheetsIncludeUpdateManyAndReturn = { + employee?: boolean | Prisma.EmployeesDefaultArgs +} + +export type $TimesheetsPayload = { + name: "Timesheets" + objects: { + expense: Prisma.$ExpensesPayload[] + shift: Prisma.$ShiftsPayload[] + employee: Prisma.$EmployeesPayload + archive: Prisma.$TimesheetsArchivePayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + employee_id: number + is_approved: boolean + start_date: Date + }, ExtArgs["result"]["timesheets"]> + composites: {} +} + +export type TimesheetsGetPayload = runtime.Types.Result.GetResult + +export type TimesheetsCountArgs = + Omit & { + select?: TimesheetsCountAggregateInputType | true + } + +export interface TimesheetsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Timesheets'], meta: { name: 'Timesheets' } } + /** + * Find zero or one Timesheets that matches the filter. + * @param {TimesheetsFindUniqueArgs} args - Arguments to find a Timesheets + * @example + * // Get one Timesheets + * const timesheets = await prisma.timesheets.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Timesheets that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {TimesheetsFindUniqueOrThrowArgs} args - Arguments to find a Timesheets + * @example + * // Get one Timesheets + * const timesheets = await prisma.timesheets.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Timesheets 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 {TimesheetsFindFirstArgs} args - Arguments to find a Timesheets + * @example + * // Get one Timesheets + * const timesheets = await prisma.timesheets.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Timesheets 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 {TimesheetsFindFirstOrThrowArgs} args - Arguments to find a Timesheets + * @example + * // Get one Timesheets + * const timesheets = await prisma.timesheets.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Timesheets 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 {TimesheetsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Timesheets + * const timesheets = await prisma.timesheets.findMany() + * + * // Get first 10 Timesheets + * const timesheets = await prisma.timesheets.findMany({ take: 10 }) + * + * // Only select the `id` + * const timesheetsWithIdOnly = await prisma.timesheets.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Timesheets. + * @param {TimesheetsCreateArgs} args - Arguments to create a Timesheets. + * @example + * // Create one Timesheets + * const Timesheets = await prisma.timesheets.create({ + * data: { + * // ... data to create a Timesheets + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Timesheets. + * @param {TimesheetsCreateManyArgs} args - Arguments to create many Timesheets. + * @example + * // Create many Timesheets + * const timesheets = await prisma.timesheets.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Timesheets and returns the data saved in the database. + * @param {TimesheetsCreateManyAndReturnArgs} args - Arguments to create many Timesheets. + * @example + * // Create many Timesheets + * const timesheets = await prisma.timesheets.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Timesheets and only return the `id` + * const timesheetsWithIdOnly = await prisma.timesheets.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 Timesheets. + * @param {TimesheetsDeleteArgs} args - Arguments to delete one Timesheets. + * @example + * // Delete one Timesheets + * const Timesheets = await prisma.timesheets.delete({ + * where: { + * // ... filter to delete one Timesheets + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Timesheets. + * @param {TimesheetsUpdateArgs} args - Arguments to update one Timesheets. + * @example + * // Update one Timesheets + * const timesheets = await prisma.timesheets.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Timesheets. + * @param {TimesheetsDeleteManyArgs} args - Arguments to filter Timesheets to delete. + * @example + * // Delete a few Timesheets + * const { count } = await prisma.timesheets.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Timesheets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TimesheetsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Timesheets + * const timesheets = await prisma.timesheets.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Timesheets and returns the data updated in the database. + * @param {TimesheetsUpdateManyAndReturnArgs} args - Arguments to update many Timesheets. + * @example + * // Update many Timesheets + * const timesheets = await prisma.timesheets.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Timesheets and only return the `id` + * const timesheetsWithIdOnly = await prisma.timesheets.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 Timesheets. + * @param {TimesheetsUpsertArgs} args - Arguments to update or create a Timesheets. + * @example + * // Update or create a Timesheets + * const timesheets = await prisma.timesheets.upsert({ + * create: { + * // ... data to create a Timesheets + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Timesheets we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Timesheets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TimesheetsCountArgs} args - Arguments to filter Timesheets to count. + * @example + * // Count the number of Timesheets + * const count = await prisma.timesheets.count({ + * where: { + * // ... the filter for the Timesheets 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 Timesheets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TimesheetsAggregateArgs} 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 Timesheets. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TimesheetsGroupByArgs} 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 TimesheetsGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: TimesheetsGroupByArgs['orderBy'] } + : { orderBy?: TimesheetsGroupByArgs['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 ? GetTimesheetsGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Timesheets model + */ +readonly fields: TimesheetsFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Timesheets. + * 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__TimesheetsClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + expense = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + shift = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + employee = {}>(args?: Prisma.Subset>): Prisma.Prisma__EmployeesClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + archive = {}>(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 Timesheets model + */ +export interface TimesheetsFieldRefs { + readonly id: Prisma.FieldRef<"Timesheets", 'Int'> + readonly employee_id: Prisma.FieldRef<"Timesheets", 'Int'> + readonly is_approved: Prisma.FieldRef<"Timesheets", 'Boolean'> + readonly start_date: Prisma.FieldRef<"Timesheets", 'DateTime'> +} + + +// Custom InputTypes +/** + * Timesheets findUnique + */ +export type TimesheetsFindUniqueArgs = { + /** + * Select specific fields to fetch from the Timesheets + */ + select?: Prisma.TimesheetsSelect | null + /** + * Omit specific fields from the Timesheets + */ + omit?: Prisma.TimesheetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsInclude | null + /** + * Filter, which Timesheets to fetch. + */ + where: Prisma.TimesheetsWhereUniqueInput +} + +/** + * Timesheets findUniqueOrThrow + */ +export type TimesheetsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Timesheets + */ + select?: Prisma.TimesheetsSelect | null + /** + * Omit specific fields from the Timesheets + */ + omit?: Prisma.TimesheetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsInclude | null + /** + * Filter, which Timesheets to fetch. + */ + where: Prisma.TimesheetsWhereUniqueInput +} + +/** + * Timesheets findFirst + */ +export type TimesheetsFindFirstArgs = { + /** + * Select specific fields to fetch from the Timesheets + */ + select?: Prisma.TimesheetsSelect | null + /** + * Omit specific fields from the Timesheets + */ + omit?: Prisma.TimesheetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsInclude | null + /** + * Filter, which Timesheets to fetch. + */ + where?: Prisma.TimesheetsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Timesheets to fetch. + */ + orderBy?: Prisma.TimesheetsOrderByWithRelationInput | Prisma.TimesheetsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Timesheets. + */ + cursor?: Prisma.TimesheetsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Timesheets 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` Timesheets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Timesheets. + */ + distinct?: Prisma.TimesheetsScalarFieldEnum | Prisma.TimesheetsScalarFieldEnum[] +} + +/** + * Timesheets findFirstOrThrow + */ +export type TimesheetsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Timesheets + */ + select?: Prisma.TimesheetsSelect | null + /** + * Omit specific fields from the Timesheets + */ + omit?: Prisma.TimesheetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsInclude | null + /** + * Filter, which Timesheets to fetch. + */ + where?: Prisma.TimesheetsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Timesheets to fetch. + */ + orderBy?: Prisma.TimesheetsOrderByWithRelationInput | Prisma.TimesheetsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Timesheets. + */ + cursor?: Prisma.TimesheetsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Timesheets 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` Timesheets. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Timesheets. + */ + distinct?: Prisma.TimesheetsScalarFieldEnum | Prisma.TimesheetsScalarFieldEnum[] +} + +/** + * Timesheets findMany + */ +export type TimesheetsFindManyArgs = { + /** + * Select specific fields to fetch from the Timesheets + */ + select?: Prisma.TimesheetsSelect | null + /** + * Omit specific fields from the Timesheets + */ + omit?: Prisma.TimesheetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsInclude | null + /** + * Filter, which Timesheets to fetch. + */ + where?: Prisma.TimesheetsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Timesheets to fetch. + */ + orderBy?: Prisma.TimesheetsOrderByWithRelationInput | Prisma.TimesheetsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Timesheets. + */ + cursor?: Prisma.TimesheetsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` Timesheets 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` Timesheets. + */ + skip?: number + distinct?: Prisma.TimesheetsScalarFieldEnum | Prisma.TimesheetsScalarFieldEnum[] +} + +/** + * Timesheets create + */ +export type TimesheetsCreateArgs = { + /** + * Select specific fields to fetch from the Timesheets + */ + select?: Prisma.TimesheetsSelect | null + /** + * Omit specific fields from the Timesheets + */ + omit?: Prisma.TimesheetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsInclude | null + /** + * The data needed to create a Timesheets. + */ + data: Prisma.XOR +} + +/** + * Timesheets createMany + */ +export type TimesheetsCreateManyArgs = { + /** + * The data used to create many Timesheets. + */ + data: Prisma.TimesheetsCreateManyInput | Prisma.TimesheetsCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Timesheets createManyAndReturn + */ +export type TimesheetsCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Timesheets + */ + select?: Prisma.TimesheetsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Timesheets + */ + omit?: Prisma.TimesheetsOmit | null + /** + * The data used to create many Timesheets. + */ + data: Prisma.TimesheetsCreateManyInput | Prisma.TimesheetsCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsIncludeCreateManyAndReturn | null +} + +/** + * Timesheets update + */ +export type TimesheetsUpdateArgs = { + /** + * Select specific fields to fetch from the Timesheets + */ + select?: Prisma.TimesheetsSelect | null + /** + * Omit specific fields from the Timesheets + */ + omit?: Prisma.TimesheetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsInclude | null + /** + * The data needed to update a Timesheets. + */ + data: Prisma.XOR + /** + * Choose, which Timesheets to update. + */ + where: Prisma.TimesheetsWhereUniqueInput +} + +/** + * Timesheets updateMany + */ +export type TimesheetsUpdateManyArgs = { + /** + * The data used to update Timesheets. + */ + data: Prisma.XOR + /** + * Filter which Timesheets to update + */ + where?: Prisma.TimesheetsWhereInput + /** + * Limit how many Timesheets to update. + */ + limit?: number +} + +/** + * Timesheets updateManyAndReturn + */ +export type TimesheetsUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Timesheets + */ + select?: Prisma.TimesheetsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Timesheets + */ + omit?: Prisma.TimesheetsOmit | null + /** + * The data used to update Timesheets. + */ + data: Prisma.XOR + /** + * Filter which Timesheets to update + */ + where?: Prisma.TimesheetsWhereInput + /** + * Limit how many Timesheets to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsIncludeUpdateManyAndReturn | null +} + +/** + * Timesheets upsert + */ +export type TimesheetsUpsertArgs = { + /** + * Select specific fields to fetch from the Timesheets + */ + select?: Prisma.TimesheetsSelect | null + /** + * Omit specific fields from the Timesheets + */ + omit?: Prisma.TimesheetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsInclude | null + /** + * The filter to search for the Timesheets to update in case it exists. + */ + where: Prisma.TimesheetsWhereUniqueInput + /** + * In case the Timesheets found by the `where` argument doesn't exist, create a new Timesheets with this data. + */ + create: Prisma.XOR + /** + * In case the Timesheets was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Timesheets delete + */ +export type TimesheetsDeleteArgs = { + /** + * Select specific fields to fetch from the Timesheets + */ + select?: Prisma.TimesheetsSelect | null + /** + * Omit specific fields from the Timesheets + */ + omit?: Prisma.TimesheetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsInclude | null + /** + * Filter which Timesheets to delete. + */ + where: Prisma.TimesheetsWhereUniqueInput +} + +/** + * Timesheets deleteMany + */ +export type TimesheetsDeleteManyArgs = { + /** + * Filter which Timesheets to delete + */ + where?: Prisma.TimesheetsWhereInput + /** + * Limit how many Timesheets to delete. + */ + limit?: number +} + +/** + * Timesheets.expense + */ +export type Timesheets$expenseArgs = { + /** + * Select specific fields to fetch from the Expenses + */ + select?: Prisma.ExpensesSelect | null + /** + * Omit specific fields from the Expenses + */ + omit?: Prisma.ExpensesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ExpensesInclude | null + where?: Prisma.ExpensesWhereInput + orderBy?: Prisma.ExpensesOrderByWithRelationInput | Prisma.ExpensesOrderByWithRelationInput[] + cursor?: Prisma.ExpensesWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ExpensesScalarFieldEnum | Prisma.ExpensesScalarFieldEnum[] +} + +/** + * Timesheets.shift + */ +export type Timesheets$shiftArgs = { + /** + * Select specific fields to fetch from the Shifts + */ + select?: Prisma.ShiftsSelect | null + /** + * Omit specific fields from the Shifts + */ + omit?: Prisma.ShiftsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ShiftsInclude | null + where?: Prisma.ShiftsWhereInput + orderBy?: Prisma.ShiftsOrderByWithRelationInput | Prisma.ShiftsOrderByWithRelationInput[] + cursor?: Prisma.ShiftsWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.ShiftsScalarFieldEnum | Prisma.ShiftsScalarFieldEnum[] +} + +/** + * Timesheets.archive + */ +export type Timesheets$archiveArgs = { + /** + * Select specific fields to fetch from the TimesheetsArchive + */ + select?: Prisma.TimesheetsArchiveSelect | null + /** + * Omit specific fields from the TimesheetsArchive + */ + omit?: Prisma.TimesheetsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsArchiveInclude | null + where?: Prisma.TimesheetsArchiveWhereInput + orderBy?: Prisma.TimesheetsArchiveOrderByWithRelationInput | Prisma.TimesheetsArchiveOrderByWithRelationInput[] + cursor?: Prisma.TimesheetsArchiveWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.TimesheetsArchiveScalarFieldEnum | Prisma.TimesheetsArchiveScalarFieldEnum[] +} + +/** + * Timesheets without action + */ +export type TimesheetsDefaultArgs = { + /** + * Select specific fields to fetch from the Timesheets + */ + select?: Prisma.TimesheetsSelect | null + /** + * Omit specific fields from the Timesheets + */ + omit?: Prisma.TimesheetsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsInclude | null +} diff --git a/prisma/generated/postgres/models/TimesheetsArchive.ts b/prisma/generated/postgres/models/TimesheetsArchive.ts new file mode 100644 index 0000000..0e1d428 --- /dev/null +++ b/prisma/generated/postgres/models/TimesheetsArchive.ts @@ -0,0 +1,1391 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `TimesheetsArchive` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model TimesheetsArchive + * + */ +export type TimesheetsArchiveModel = runtime.Types.Result.DefaultSelection + +export type AggregateTimesheetsArchive = { + _count: TimesheetsArchiveCountAggregateOutputType | null + _avg: TimesheetsArchiveAvgAggregateOutputType | null + _sum: TimesheetsArchiveSumAggregateOutputType | null + _min: TimesheetsArchiveMinAggregateOutputType | null + _max: TimesheetsArchiveMaxAggregateOutputType | null +} + +export type TimesheetsArchiveAvgAggregateOutputType = { + id: number | null + timesheet_id: number | null + employee_id: number | null +} + +export type TimesheetsArchiveSumAggregateOutputType = { + id: number | null + timesheet_id: number | null + employee_id: number | null +} + +export type TimesheetsArchiveMinAggregateOutputType = { + id: number | null + timesheet_id: number | null + archive_at: Date | null + employee_id: number | null + is_approved: boolean | null +} + +export type TimesheetsArchiveMaxAggregateOutputType = { + id: number | null + timesheet_id: number | null + archive_at: Date | null + employee_id: number | null + is_approved: boolean | null +} + +export type TimesheetsArchiveCountAggregateOutputType = { + id: number + timesheet_id: number + archive_at: number + employee_id: number + is_approved: number + _all: number +} + + +export type TimesheetsArchiveAvgAggregateInputType = { + id?: true + timesheet_id?: true + employee_id?: true +} + +export type TimesheetsArchiveSumAggregateInputType = { + id?: true + timesheet_id?: true + employee_id?: true +} + +export type TimesheetsArchiveMinAggregateInputType = { + id?: true + timesheet_id?: true + archive_at?: true + employee_id?: true + is_approved?: true +} + +export type TimesheetsArchiveMaxAggregateInputType = { + id?: true + timesheet_id?: true + archive_at?: true + employee_id?: true + is_approved?: true +} + +export type TimesheetsArchiveCountAggregateInputType = { + id?: true + timesheet_id?: true + archive_at?: true + employee_id?: true + is_approved?: true + _all?: true +} + +export type TimesheetsArchiveAggregateArgs = { + /** + * Filter which TimesheetsArchive to aggregate. + */ + where?: Prisma.TimesheetsArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of TimesheetsArchives to fetch. + */ + orderBy?: Prisma.TimesheetsArchiveOrderByWithRelationInput | Prisma.TimesheetsArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.TimesheetsArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` TimesheetsArchives 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` TimesheetsArchives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned TimesheetsArchives + **/ + _count?: true | TimesheetsArchiveCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: TimesheetsArchiveAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: TimesheetsArchiveSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: TimesheetsArchiveMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: TimesheetsArchiveMaxAggregateInputType +} + +export type GetTimesheetsArchiveAggregateType = { + [P in keyof T & keyof AggregateTimesheetsArchive]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type TimesheetsArchiveGroupByArgs = { + where?: Prisma.TimesheetsArchiveWhereInput + orderBy?: Prisma.TimesheetsArchiveOrderByWithAggregationInput | Prisma.TimesheetsArchiveOrderByWithAggregationInput[] + by: Prisma.TimesheetsArchiveScalarFieldEnum[] | Prisma.TimesheetsArchiveScalarFieldEnum + having?: Prisma.TimesheetsArchiveScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: TimesheetsArchiveCountAggregateInputType | true + _avg?: TimesheetsArchiveAvgAggregateInputType + _sum?: TimesheetsArchiveSumAggregateInputType + _min?: TimesheetsArchiveMinAggregateInputType + _max?: TimesheetsArchiveMaxAggregateInputType +} + +export type TimesheetsArchiveGroupByOutputType = { + id: number + timesheet_id: number + archive_at: Date + employee_id: number + is_approved: boolean + _count: TimesheetsArchiveCountAggregateOutputType | null + _avg: TimesheetsArchiveAvgAggregateOutputType | null + _sum: TimesheetsArchiveSumAggregateOutputType | null + _min: TimesheetsArchiveMinAggregateOutputType | null + _max: TimesheetsArchiveMaxAggregateOutputType | null +} + +type GetTimesheetsArchiveGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof TimesheetsArchiveGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type TimesheetsArchiveWhereInput = { + AND?: Prisma.TimesheetsArchiveWhereInput | Prisma.TimesheetsArchiveWhereInput[] + OR?: Prisma.TimesheetsArchiveWhereInput[] + NOT?: Prisma.TimesheetsArchiveWhereInput | Prisma.TimesheetsArchiveWhereInput[] + id?: Prisma.IntFilter<"TimesheetsArchive"> | number + timesheet_id?: Prisma.IntFilter<"TimesheetsArchive"> | number + archive_at?: Prisma.DateTimeFilter<"TimesheetsArchive"> | Date | string + employee_id?: Prisma.IntFilter<"TimesheetsArchive"> | number + is_approved?: Prisma.BoolFilter<"TimesheetsArchive"> | boolean + timesheet?: Prisma.XOR +} + +export type TimesheetsArchiveOrderByWithRelationInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + archive_at?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + timesheet?: Prisma.TimesheetsOrderByWithRelationInput +} + +export type TimesheetsArchiveWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.TimesheetsArchiveWhereInput | Prisma.TimesheetsArchiveWhereInput[] + OR?: Prisma.TimesheetsArchiveWhereInput[] + NOT?: Prisma.TimesheetsArchiveWhereInput | Prisma.TimesheetsArchiveWhereInput[] + timesheet_id?: Prisma.IntFilter<"TimesheetsArchive"> | number + archive_at?: Prisma.DateTimeFilter<"TimesheetsArchive"> | Date | string + employee_id?: Prisma.IntFilter<"TimesheetsArchive"> | number + is_approved?: Prisma.BoolFilter<"TimesheetsArchive"> | boolean + timesheet?: Prisma.XOR +}, "id"> + +export type TimesheetsArchiveOrderByWithAggregationInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + archive_at?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + is_approved?: Prisma.SortOrder + _count?: Prisma.TimesheetsArchiveCountOrderByAggregateInput + _avg?: Prisma.TimesheetsArchiveAvgOrderByAggregateInput + _max?: Prisma.TimesheetsArchiveMaxOrderByAggregateInput + _min?: Prisma.TimesheetsArchiveMinOrderByAggregateInput + _sum?: Prisma.TimesheetsArchiveSumOrderByAggregateInput +} + +export type TimesheetsArchiveScalarWhereWithAggregatesInput = { + AND?: Prisma.TimesheetsArchiveScalarWhereWithAggregatesInput | Prisma.TimesheetsArchiveScalarWhereWithAggregatesInput[] + OR?: Prisma.TimesheetsArchiveScalarWhereWithAggregatesInput[] + NOT?: Prisma.TimesheetsArchiveScalarWhereWithAggregatesInput | Prisma.TimesheetsArchiveScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"TimesheetsArchive"> | number + timesheet_id?: Prisma.IntWithAggregatesFilter<"TimesheetsArchive"> | number + archive_at?: Prisma.DateTimeWithAggregatesFilter<"TimesheetsArchive"> | Date | string + employee_id?: Prisma.IntWithAggregatesFilter<"TimesheetsArchive"> | number + is_approved?: Prisma.BoolWithAggregatesFilter<"TimesheetsArchive"> | boolean +} + +export type TimesheetsArchiveCreateInput = { + archive_at?: Date | string + employee_id: number + is_approved: boolean + timesheet: Prisma.TimesheetsCreateNestedOneWithoutArchiveInput +} + +export type TimesheetsArchiveUncheckedCreateInput = { + id?: number + timesheet_id: number + archive_at?: Date | string + employee_id: number + is_approved: boolean +} + +export type TimesheetsArchiveUpdateInput = { + archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean + timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutArchiveNestedInput +} + +export type TimesheetsArchiveUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type TimesheetsArchiveCreateManyInput = { + id?: number + timesheet_id: number + archive_at?: Date | string + employee_id: number + is_approved: boolean +} + +export type TimesheetsArchiveUpdateManyMutationInput = { + archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type TimesheetsArchiveUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number + archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type TimesheetsArchiveListRelationFilter = { + every?: Prisma.TimesheetsArchiveWhereInput + some?: Prisma.TimesheetsArchiveWhereInput + none?: Prisma.TimesheetsArchiveWhereInput +} + +export type TimesheetsArchiveOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type TimesheetsArchiveCountOrderByAggregateInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + archive_at?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + is_approved?: Prisma.SortOrder +} + +export type TimesheetsArchiveAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder +} + +export type TimesheetsArchiveMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + archive_at?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + is_approved?: Prisma.SortOrder +} + +export type TimesheetsArchiveMinOrderByAggregateInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + archive_at?: Prisma.SortOrder + employee_id?: Prisma.SortOrder + is_approved?: Prisma.SortOrder +} + +export type TimesheetsArchiveSumOrderByAggregateInput = { + id?: Prisma.SortOrder + timesheet_id?: Prisma.SortOrder + employee_id?: Prisma.SortOrder +} + +export type TimesheetsArchiveCreateNestedManyWithoutTimesheetInput = { + create?: Prisma.XOR | Prisma.TimesheetsArchiveCreateWithoutTimesheetInput[] | Prisma.TimesheetsArchiveUncheckedCreateWithoutTimesheetInput[] + connectOrCreate?: Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput | Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput[] + createMany?: Prisma.TimesheetsArchiveCreateManyTimesheetInputEnvelope + connect?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[] +} + +export type TimesheetsArchiveUncheckedCreateNestedManyWithoutTimesheetInput = { + create?: Prisma.XOR | Prisma.TimesheetsArchiveCreateWithoutTimesheetInput[] | Prisma.TimesheetsArchiveUncheckedCreateWithoutTimesheetInput[] + connectOrCreate?: Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput | Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput[] + createMany?: Prisma.TimesheetsArchiveCreateManyTimesheetInputEnvelope + connect?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[] +} + +export type TimesheetsArchiveUpdateManyWithoutTimesheetNestedInput = { + create?: Prisma.XOR | Prisma.TimesheetsArchiveCreateWithoutTimesheetInput[] | Prisma.TimesheetsArchiveUncheckedCreateWithoutTimesheetInput[] + connectOrCreate?: Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput | Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput[] + upsert?: Prisma.TimesheetsArchiveUpsertWithWhereUniqueWithoutTimesheetInput | Prisma.TimesheetsArchiveUpsertWithWhereUniqueWithoutTimesheetInput[] + createMany?: Prisma.TimesheetsArchiveCreateManyTimesheetInputEnvelope + set?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[] + disconnect?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[] + delete?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[] + connect?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[] + update?: Prisma.TimesheetsArchiveUpdateWithWhereUniqueWithoutTimesheetInput | Prisma.TimesheetsArchiveUpdateWithWhereUniqueWithoutTimesheetInput[] + updateMany?: Prisma.TimesheetsArchiveUpdateManyWithWhereWithoutTimesheetInput | Prisma.TimesheetsArchiveUpdateManyWithWhereWithoutTimesheetInput[] + deleteMany?: Prisma.TimesheetsArchiveScalarWhereInput | Prisma.TimesheetsArchiveScalarWhereInput[] +} + +export type TimesheetsArchiveUncheckedUpdateManyWithoutTimesheetNestedInput = { + create?: Prisma.XOR | Prisma.TimesheetsArchiveCreateWithoutTimesheetInput[] | Prisma.TimesheetsArchiveUncheckedCreateWithoutTimesheetInput[] + connectOrCreate?: Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput | Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput[] + upsert?: Prisma.TimesheetsArchiveUpsertWithWhereUniqueWithoutTimesheetInput | Prisma.TimesheetsArchiveUpsertWithWhereUniqueWithoutTimesheetInput[] + createMany?: Prisma.TimesheetsArchiveCreateManyTimesheetInputEnvelope + set?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[] + disconnect?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[] + delete?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[] + connect?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[] + update?: Prisma.TimesheetsArchiveUpdateWithWhereUniqueWithoutTimesheetInput | Prisma.TimesheetsArchiveUpdateWithWhereUniqueWithoutTimesheetInput[] + updateMany?: Prisma.TimesheetsArchiveUpdateManyWithWhereWithoutTimesheetInput | Prisma.TimesheetsArchiveUpdateManyWithWhereWithoutTimesheetInput[] + deleteMany?: Prisma.TimesheetsArchiveScalarWhereInput | Prisma.TimesheetsArchiveScalarWhereInput[] +} + +export type TimesheetsArchiveCreateWithoutTimesheetInput = { + archive_at?: Date | string + employee_id: number + is_approved: boolean +} + +export type TimesheetsArchiveUncheckedCreateWithoutTimesheetInput = { + id?: number + archive_at?: Date | string + employee_id: number + is_approved: boolean +} + +export type TimesheetsArchiveCreateOrConnectWithoutTimesheetInput = { + where: Prisma.TimesheetsArchiveWhereUniqueInput + create: Prisma.XOR +} + +export type TimesheetsArchiveCreateManyTimesheetInputEnvelope = { + data: Prisma.TimesheetsArchiveCreateManyTimesheetInput | Prisma.TimesheetsArchiveCreateManyTimesheetInput[] + skipDuplicates?: boolean +} + +export type TimesheetsArchiveUpsertWithWhereUniqueWithoutTimesheetInput = { + where: Prisma.TimesheetsArchiveWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type TimesheetsArchiveUpdateWithWhereUniqueWithoutTimesheetInput = { + where: Prisma.TimesheetsArchiveWhereUniqueInput + data: Prisma.XOR +} + +export type TimesheetsArchiveUpdateManyWithWhereWithoutTimesheetInput = { + where: Prisma.TimesheetsArchiveScalarWhereInput + data: Prisma.XOR +} + +export type TimesheetsArchiveScalarWhereInput = { + AND?: Prisma.TimesheetsArchiveScalarWhereInput | Prisma.TimesheetsArchiveScalarWhereInput[] + OR?: Prisma.TimesheetsArchiveScalarWhereInput[] + NOT?: Prisma.TimesheetsArchiveScalarWhereInput | Prisma.TimesheetsArchiveScalarWhereInput[] + id?: Prisma.IntFilter<"TimesheetsArchive"> | number + timesheet_id?: Prisma.IntFilter<"TimesheetsArchive"> | number + archive_at?: Prisma.DateTimeFilter<"TimesheetsArchive"> | Date | string + employee_id?: Prisma.IntFilter<"TimesheetsArchive"> | number + is_approved?: Prisma.BoolFilter<"TimesheetsArchive"> | boolean +} + +export type TimesheetsArchiveCreateManyTimesheetInput = { + id?: number + archive_at?: Date | string + employee_id: number + is_approved: boolean +} + +export type TimesheetsArchiveUpdateWithoutTimesheetInput = { + archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type TimesheetsArchiveUncheckedUpdateWithoutTimesheetInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type TimesheetsArchiveUncheckedUpdateManyWithoutTimesheetInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + employee_id?: Prisma.IntFieldUpdateOperationsInput | number + is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + + + +export type TimesheetsArchiveSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + timesheet_id?: boolean + archive_at?: boolean + employee_id?: boolean + is_approved?: boolean + timesheet?: boolean | Prisma.TimesheetsDefaultArgs +}, ExtArgs["result"]["timesheetsArchive"]> + +export type TimesheetsArchiveSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + timesheet_id?: boolean + archive_at?: boolean + employee_id?: boolean + is_approved?: boolean + timesheet?: boolean | Prisma.TimesheetsDefaultArgs +}, ExtArgs["result"]["timesheetsArchive"]> + +export type TimesheetsArchiveSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + timesheet_id?: boolean + archive_at?: boolean + employee_id?: boolean + is_approved?: boolean + timesheet?: boolean | Prisma.TimesheetsDefaultArgs +}, ExtArgs["result"]["timesheetsArchive"]> + +export type TimesheetsArchiveSelectScalar = { + id?: boolean + timesheet_id?: boolean + archive_at?: boolean + employee_id?: boolean + is_approved?: boolean +} + +export type TimesheetsArchiveOmit = runtime.Types.Extensions.GetOmit<"id" | "timesheet_id" | "archive_at" | "employee_id" | "is_approved", ExtArgs["result"]["timesheetsArchive"]> +export type TimesheetsArchiveInclude = { + timesheet?: boolean | Prisma.TimesheetsDefaultArgs +} +export type TimesheetsArchiveIncludeCreateManyAndReturn = { + timesheet?: boolean | Prisma.TimesheetsDefaultArgs +} +export type TimesheetsArchiveIncludeUpdateManyAndReturn = { + timesheet?: boolean | Prisma.TimesheetsDefaultArgs +} + +export type $TimesheetsArchivePayload = { + name: "TimesheetsArchive" + objects: { + timesheet: Prisma.$TimesheetsPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + timesheet_id: number + archive_at: Date + employee_id: number + is_approved: boolean + }, ExtArgs["result"]["timesheetsArchive"]> + composites: {} +} + +export type TimesheetsArchiveGetPayload = runtime.Types.Result.GetResult + +export type TimesheetsArchiveCountArgs = + Omit & { + select?: TimesheetsArchiveCountAggregateInputType | true + } + +export interface TimesheetsArchiveDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['TimesheetsArchive'], meta: { name: 'TimesheetsArchive' } } + /** + * Find zero or one TimesheetsArchive that matches the filter. + * @param {TimesheetsArchiveFindUniqueArgs} args - Arguments to find a TimesheetsArchive + * @example + * // Get one TimesheetsArchive + * const timesheetsArchive = await prisma.timesheetsArchive.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsArchiveClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one TimesheetsArchive that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {TimesheetsArchiveFindUniqueOrThrowArgs} args - Arguments to find a TimesheetsArchive + * @example + * // Get one TimesheetsArchive + * const timesheetsArchive = await prisma.timesheetsArchive.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsArchiveClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first TimesheetsArchive 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 {TimesheetsArchiveFindFirstArgs} args - Arguments to find a TimesheetsArchive + * @example + * // Get one TimesheetsArchive + * const timesheetsArchive = await prisma.timesheetsArchive.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsArchiveClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first TimesheetsArchive 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 {TimesheetsArchiveFindFirstOrThrowArgs} args - Arguments to find a TimesheetsArchive + * @example + * // Get one TimesheetsArchive + * const timesheetsArchive = await prisma.timesheetsArchive.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsArchiveClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more TimesheetsArchives 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 {TimesheetsArchiveFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all TimesheetsArchives + * const timesheetsArchives = await prisma.timesheetsArchive.findMany() + * + * // Get first 10 TimesheetsArchives + * const timesheetsArchives = await prisma.timesheetsArchive.findMany({ take: 10 }) + * + * // Only select the `id` + * const timesheetsArchiveWithIdOnly = await prisma.timesheetsArchive.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a TimesheetsArchive. + * @param {TimesheetsArchiveCreateArgs} args - Arguments to create a TimesheetsArchive. + * @example + * // Create one TimesheetsArchive + * const TimesheetsArchive = await prisma.timesheetsArchive.create({ + * data: { + * // ... data to create a TimesheetsArchive + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsArchiveClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many TimesheetsArchives. + * @param {TimesheetsArchiveCreateManyArgs} args - Arguments to create many TimesheetsArchives. + * @example + * // Create many TimesheetsArchives + * const timesheetsArchive = await prisma.timesheetsArchive.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many TimesheetsArchives and returns the data saved in the database. + * @param {TimesheetsArchiveCreateManyAndReturnArgs} args - Arguments to create many TimesheetsArchives. + * @example + * // Create many TimesheetsArchives + * const timesheetsArchive = await prisma.timesheetsArchive.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many TimesheetsArchives and only return the `id` + * const timesheetsArchiveWithIdOnly = await prisma.timesheetsArchive.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 TimesheetsArchive. + * @param {TimesheetsArchiveDeleteArgs} args - Arguments to delete one TimesheetsArchive. + * @example + * // Delete one TimesheetsArchive + * const TimesheetsArchive = await prisma.timesheetsArchive.delete({ + * where: { + * // ... filter to delete one TimesheetsArchive + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsArchiveClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one TimesheetsArchive. + * @param {TimesheetsArchiveUpdateArgs} args - Arguments to update one TimesheetsArchive. + * @example + * // Update one TimesheetsArchive + * const timesheetsArchive = await prisma.timesheetsArchive.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsArchiveClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more TimesheetsArchives. + * @param {TimesheetsArchiveDeleteManyArgs} args - Arguments to filter TimesheetsArchives to delete. + * @example + * // Delete a few TimesheetsArchives + * const { count } = await prisma.timesheetsArchive.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more TimesheetsArchives. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TimesheetsArchiveUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many TimesheetsArchives + * const timesheetsArchive = await prisma.timesheetsArchive.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more TimesheetsArchives and returns the data updated in the database. + * @param {TimesheetsArchiveUpdateManyAndReturnArgs} args - Arguments to update many TimesheetsArchives. + * @example + * // Update many TimesheetsArchives + * const timesheetsArchive = await prisma.timesheetsArchive.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more TimesheetsArchives and only return the `id` + * const timesheetsArchiveWithIdOnly = await prisma.timesheetsArchive.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 TimesheetsArchive. + * @param {TimesheetsArchiveUpsertArgs} args - Arguments to update or create a TimesheetsArchive. + * @example + * // Update or create a TimesheetsArchive + * const timesheetsArchive = await prisma.timesheetsArchive.upsert({ + * create: { + * // ... data to create a TimesheetsArchive + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the TimesheetsArchive we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsArchiveClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of TimesheetsArchives. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TimesheetsArchiveCountArgs} args - Arguments to filter TimesheetsArchives to count. + * @example + * // Count the number of TimesheetsArchives + * const count = await prisma.timesheetsArchive.count({ + * where: { + * // ... the filter for the TimesheetsArchives 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 TimesheetsArchive. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TimesheetsArchiveAggregateArgs} 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 TimesheetsArchive. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {TimesheetsArchiveGroupByArgs} 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 TimesheetsArchiveGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: TimesheetsArchiveGroupByArgs['orderBy'] } + : { orderBy?: TimesheetsArchiveGroupByArgs['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 ? GetTimesheetsArchiveGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the TimesheetsArchive model + */ +readonly fields: TimesheetsArchiveFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for TimesheetsArchive. + * 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__TimesheetsArchiveClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + timesheet = {}>(args?: Prisma.Subset>): Prisma.Prisma__TimesheetsClient, 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 TimesheetsArchive model + */ +export interface TimesheetsArchiveFieldRefs { + readonly id: Prisma.FieldRef<"TimesheetsArchive", 'Int'> + readonly timesheet_id: Prisma.FieldRef<"TimesheetsArchive", 'Int'> + readonly archive_at: Prisma.FieldRef<"TimesheetsArchive", 'DateTime'> + readonly employee_id: Prisma.FieldRef<"TimesheetsArchive", 'Int'> + readonly is_approved: Prisma.FieldRef<"TimesheetsArchive", 'Boolean'> +} + + +// Custom InputTypes +/** + * TimesheetsArchive findUnique + */ +export type TimesheetsArchiveFindUniqueArgs = { + /** + * Select specific fields to fetch from the TimesheetsArchive + */ + select?: Prisma.TimesheetsArchiveSelect | null + /** + * Omit specific fields from the TimesheetsArchive + */ + omit?: Prisma.TimesheetsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsArchiveInclude | null + /** + * Filter, which TimesheetsArchive to fetch. + */ + where: Prisma.TimesheetsArchiveWhereUniqueInput +} + +/** + * TimesheetsArchive findUniqueOrThrow + */ +export type TimesheetsArchiveFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the TimesheetsArchive + */ + select?: Prisma.TimesheetsArchiveSelect | null + /** + * Omit specific fields from the TimesheetsArchive + */ + omit?: Prisma.TimesheetsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsArchiveInclude | null + /** + * Filter, which TimesheetsArchive to fetch. + */ + where: Prisma.TimesheetsArchiveWhereUniqueInput +} + +/** + * TimesheetsArchive findFirst + */ +export type TimesheetsArchiveFindFirstArgs = { + /** + * Select specific fields to fetch from the TimesheetsArchive + */ + select?: Prisma.TimesheetsArchiveSelect | null + /** + * Omit specific fields from the TimesheetsArchive + */ + omit?: Prisma.TimesheetsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsArchiveInclude | null + /** + * Filter, which TimesheetsArchive to fetch. + */ + where?: Prisma.TimesheetsArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of TimesheetsArchives to fetch. + */ + orderBy?: Prisma.TimesheetsArchiveOrderByWithRelationInput | Prisma.TimesheetsArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for TimesheetsArchives. + */ + cursor?: Prisma.TimesheetsArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` TimesheetsArchives 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` TimesheetsArchives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of TimesheetsArchives. + */ + distinct?: Prisma.TimesheetsArchiveScalarFieldEnum | Prisma.TimesheetsArchiveScalarFieldEnum[] +} + +/** + * TimesheetsArchive findFirstOrThrow + */ +export type TimesheetsArchiveFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the TimesheetsArchive + */ + select?: Prisma.TimesheetsArchiveSelect | null + /** + * Omit specific fields from the TimesheetsArchive + */ + omit?: Prisma.TimesheetsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsArchiveInclude | null + /** + * Filter, which TimesheetsArchive to fetch. + */ + where?: Prisma.TimesheetsArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of TimesheetsArchives to fetch. + */ + orderBy?: Prisma.TimesheetsArchiveOrderByWithRelationInput | Prisma.TimesheetsArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for TimesheetsArchives. + */ + cursor?: Prisma.TimesheetsArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` TimesheetsArchives 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` TimesheetsArchives. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of TimesheetsArchives. + */ + distinct?: Prisma.TimesheetsArchiveScalarFieldEnum | Prisma.TimesheetsArchiveScalarFieldEnum[] +} + +/** + * TimesheetsArchive findMany + */ +export type TimesheetsArchiveFindManyArgs = { + /** + * Select specific fields to fetch from the TimesheetsArchive + */ + select?: Prisma.TimesheetsArchiveSelect | null + /** + * Omit specific fields from the TimesheetsArchive + */ + omit?: Prisma.TimesheetsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsArchiveInclude | null + /** + * Filter, which TimesheetsArchives to fetch. + */ + where?: Prisma.TimesheetsArchiveWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of TimesheetsArchives to fetch. + */ + orderBy?: Prisma.TimesheetsArchiveOrderByWithRelationInput | Prisma.TimesheetsArchiveOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing TimesheetsArchives. + */ + cursor?: Prisma.TimesheetsArchiveWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` TimesheetsArchives 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` TimesheetsArchives. + */ + skip?: number + distinct?: Prisma.TimesheetsArchiveScalarFieldEnum | Prisma.TimesheetsArchiveScalarFieldEnum[] +} + +/** + * TimesheetsArchive create + */ +export type TimesheetsArchiveCreateArgs = { + /** + * Select specific fields to fetch from the TimesheetsArchive + */ + select?: Prisma.TimesheetsArchiveSelect | null + /** + * Omit specific fields from the TimesheetsArchive + */ + omit?: Prisma.TimesheetsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsArchiveInclude | null + /** + * The data needed to create a TimesheetsArchive. + */ + data: Prisma.XOR +} + +/** + * TimesheetsArchive createMany + */ +export type TimesheetsArchiveCreateManyArgs = { + /** + * The data used to create many TimesheetsArchives. + */ + data: Prisma.TimesheetsArchiveCreateManyInput | Prisma.TimesheetsArchiveCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * TimesheetsArchive createManyAndReturn + */ +export type TimesheetsArchiveCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the TimesheetsArchive + */ + select?: Prisma.TimesheetsArchiveSelectCreateManyAndReturn | null + /** + * Omit specific fields from the TimesheetsArchive + */ + omit?: Prisma.TimesheetsArchiveOmit | null + /** + * The data used to create many TimesheetsArchives. + */ + data: Prisma.TimesheetsArchiveCreateManyInput | Prisma.TimesheetsArchiveCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsArchiveIncludeCreateManyAndReturn | null +} + +/** + * TimesheetsArchive update + */ +export type TimesheetsArchiveUpdateArgs = { + /** + * Select specific fields to fetch from the TimesheetsArchive + */ + select?: Prisma.TimesheetsArchiveSelect | null + /** + * Omit specific fields from the TimesheetsArchive + */ + omit?: Prisma.TimesheetsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsArchiveInclude | null + /** + * The data needed to update a TimesheetsArchive. + */ + data: Prisma.XOR + /** + * Choose, which TimesheetsArchive to update. + */ + where: Prisma.TimesheetsArchiveWhereUniqueInput +} + +/** + * TimesheetsArchive updateMany + */ +export type TimesheetsArchiveUpdateManyArgs = { + /** + * The data used to update TimesheetsArchives. + */ + data: Prisma.XOR + /** + * Filter which TimesheetsArchives to update + */ + where?: Prisma.TimesheetsArchiveWhereInput + /** + * Limit how many TimesheetsArchives to update. + */ + limit?: number +} + +/** + * TimesheetsArchive updateManyAndReturn + */ +export type TimesheetsArchiveUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the TimesheetsArchive + */ + select?: Prisma.TimesheetsArchiveSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the TimesheetsArchive + */ + omit?: Prisma.TimesheetsArchiveOmit | null + /** + * The data used to update TimesheetsArchives. + */ + data: Prisma.XOR + /** + * Filter which TimesheetsArchives to update + */ + where?: Prisma.TimesheetsArchiveWhereInput + /** + * Limit how many TimesheetsArchives to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsArchiveIncludeUpdateManyAndReturn | null +} + +/** + * TimesheetsArchive upsert + */ +export type TimesheetsArchiveUpsertArgs = { + /** + * Select specific fields to fetch from the TimesheetsArchive + */ + select?: Prisma.TimesheetsArchiveSelect | null + /** + * Omit specific fields from the TimesheetsArchive + */ + omit?: Prisma.TimesheetsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsArchiveInclude | null + /** + * The filter to search for the TimesheetsArchive to update in case it exists. + */ + where: Prisma.TimesheetsArchiveWhereUniqueInput + /** + * In case the TimesheetsArchive found by the `where` argument doesn't exist, create a new TimesheetsArchive with this data. + */ + create: Prisma.XOR + /** + * In case the TimesheetsArchive was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * TimesheetsArchive delete + */ +export type TimesheetsArchiveDeleteArgs = { + /** + * Select specific fields to fetch from the TimesheetsArchive + */ + select?: Prisma.TimesheetsArchiveSelect | null + /** + * Omit specific fields from the TimesheetsArchive + */ + omit?: Prisma.TimesheetsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsArchiveInclude | null + /** + * Filter which TimesheetsArchive to delete. + */ + where: Prisma.TimesheetsArchiveWhereUniqueInput +} + +/** + * TimesheetsArchive deleteMany + */ +export type TimesheetsArchiveDeleteManyArgs = { + /** + * Filter which TimesheetsArchives to delete + */ + where?: Prisma.TimesheetsArchiveWhereInput + /** + * Limit how many TimesheetsArchives to delete. + */ + limit?: number +} + +/** + * TimesheetsArchive without action + */ +export type TimesheetsArchiveDefaultArgs = { + /** + * Select specific fields to fetch from the TimesheetsArchive + */ + select?: Prisma.TimesheetsArchiveSelect | null + /** + * Omit specific fields from the TimesheetsArchive + */ + omit?: Prisma.TimesheetsArchiveOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.TimesheetsArchiveInclude | null +} diff --git a/prisma/generated/postgres/models/Users.ts b/prisma/generated/postgres/models/Users.ts new file mode 100644 index 0000000..46c7a84 --- /dev/null +++ b/prisma/generated/postgres/models/Users.ts @@ -0,0 +1,1746 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Users` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model Users + * + */ +export type UsersModel = runtime.Types.Result.DefaultSelection + +export type AggregateUsers = { + _count: UsersCountAggregateOutputType | null + _min: UsersMinAggregateOutputType | null + _max: UsersMaxAggregateOutputType | null +} + +export type UsersMinAggregateOutputType = { + id: string | null + first_name: string | null + last_name: string | null + email: string | null + phone_number: string | null + residence: string | null + role: $Enums.Roles | null +} + +export type UsersMaxAggregateOutputType = { + id: string | null + first_name: string | null + last_name: string | null + email: string | null + phone_number: string | null + residence: string | null + role: $Enums.Roles | null +} + +export type UsersCountAggregateOutputType = { + id: number + first_name: number + last_name: number + email: number + phone_number: number + residence: number + role: number + _all: number +} + + +export type UsersMinAggregateInputType = { + id?: true + first_name?: true + last_name?: true + email?: true + phone_number?: true + residence?: true + role?: true +} + +export type UsersMaxAggregateInputType = { + id?: true + first_name?: true + last_name?: true + email?: true + phone_number?: true + residence?: true + role?: true +} + +export type UsersCountAggregateInputType = { + id?: true + first_name?: true + last_name?: true + email?: true + phone_number?: true + residence?: true + role?: true + _all?: true +} + +export type UsersAggregateArgs = { + /** + * Filter which Users to aggregate. + */ + where?: Prisma.UsersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UsersOrderByWithRelationInput | Prisma.UsersOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.UsersWhereUniqueInput + /** + * {@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 | UsersCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: UsersMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: UsersMaxAggregateInputType +} + +export type GetUsersAggregateType = { + [P in keyof T & keyof AggregateUsers]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type UsersGroupByArgs = { + where?: Prisma.UsersWhereInput + orderBy?: Prisma.UsersOrderByWithAggregationInput | Prisma.UsersOrderByWithAggregationInput[] + by: Prisma.UsersScalarFieldEnum[] | Prisma.UsersScalarFieldEnum + having?: Prisma.UsersScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: UsersCountAggregateInputType | true + _min?: UsersMinAggregateInputType + _max?: UsersMaxAggregateInputType +} + +export type UsersGroupByOutputType = { + id: string + first_name: string + last_name: string + email: string + phone_number: string + residence: string | null + role: $Enums.Roles + _count: UsersCountAggregateOutputType | null + _min: UsersMinAggregateOutputType | null + _max: UsersMaxAggregateOutputType | null +} + +type GetUsersGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof UsersGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type UsersWhereInput = { + AND?: Prisma.UsersWhereInput | Prisma.UsersWhereInput[] + OR?: Prisma.UsersWhereInput[] + NOT?: Prisma.UsersWhereInput | Prisma.UsersWhereInput[] + id?: Prisma.UuidFilter<"Users"> | string + first_name?: Prisma.StringFilter<"Users"> | string + last_name?: Prisma.StringFilter<"Users"> | string + email?: Prisma.StringFilter<"Users"> | string + phone_number?: Prisma.StringFilter<"Users"> | string + residence?: Prisma.StringNullableFilter<"Users"> | string | null + role?: Prisma.EnumRolesFilter<"Users"> | $Enums.Roles + employee?: Prisma.XOR | null + oauth_sessions?: Prisma.OAuthSessionsListRelationFilter + preferences?: Prisma.XOR | null + user_module_access?: Prisma.XOR | null +} + +export type UsersOrderByWithRelationInput = { + id?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + email?: Prisma.SortOrder + phone_number?: Prisma.SortOrder + residence?: Prisma.SortOrderInput | Prisma.SortOrder + role?: Prisma.SortOrder + employee?: Prisma.EmployeesOrderByWithRelationInput + oauth_sessions?: Prisma.OAuthSessionsOrderByRelationAggregateInput + preferences?: Prisma.PreferencesOrderByWithRelationInput + user_module_access?: Prisma.userModuleAccessOrderByWithRelationInput +} + +export type UsersWhereUniqueInput = Prisma.AtLeast<{ + id?: string + email?: string + AND?: Prisma.UsersWhereInput | Prisma.UsersWhereInput[] + OR?: Prisma.UsersWhereInput[] + NOT?: Prisma.UsersWhereInput | Prisma.UsersWhereInput[] + first_name?: Prisma.StringFilter<"Users"> | string + last_name?: Prisma.StringFilter<"Users"> | string + phone_number?: Prisma.StringFilter<"Users"> | string + residence?: Prisma.StringNullableFilter<"Users"> | string | null + role?: Prisma.EnumRolesFilter<"Users"> | $Enums.Roles + employee?: Prisma.XOR | null + oauth_sessions?: Prisma.OAuthSessionsListRelationFilter + preferences?: Prisma.XOR | null + user_module_access?: Prisma.XOR | null +}, "id" | "email"> + +export type UsersOrderByWithAggregationInput = { + id?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + email?: Prisma.SortOrder + phone_number?: Prisma.SortOrder + residence?: Prisma.SortOrderInput | Prisma.SortOrder + role?: Prisma.SortOrder + _count?: Prisma.UsersCountOrderByAggregateInput + _max?: Prisma.UsersMaxOrderByAggregateInput + _min?: Prisma.UsersMinOrderByAggregateInput +} + +export type UsersScalarWhereWithAggregatesInput = { + AND?: Prisma.UsersScalarWhereWithAggregatesInput | Prisma.UsersScalarWhereWithAggregatesInput[] + OR?: Prisma.UsersScalarWhereWithAggregatesInput[] + NOT?: Prisma.UsersScalarWhereWithAggregatesInput | Prisma.UsersScalarWhereWithAggregatesInput[] + id?: Prisma.UuidWithAggregatesFilter<"Users"> | string + first_name?: Prisma.StringWithAggregatesFilter<"Users"> | string + last_name?: Prisma.StringWithAggregatesFilter<"Users"> | string + email?: Prisma.StringWithAggregatesFilter<"Users"> | string + phone_number?: Prisma.StringWithAggregatesFilter<"Users"> | string + residence?: Prisma.StringNullableWithAggregatesFilter<"Users"> | string | null + role?: Prisma.EnumRolesWithAggregatesFilter<"Users"> | $Enums.Roles +} + +export type UsersCreateInput = { + id?: string + first_name: string + last_name: string + email: string + phone_number: string + residence?: string | null + role?: $Enums.Roles + employee?: Prisma.EmployeesCreateNestedOneWithoutUserInput + oauth_sessions?: Prisma.OAuthSessionsCreateNestedManyWithoutUserInput + preferences?: Prisma.PreferencesCreateNestedOneWithoutUserInput + user_module_access?: Prisma.userModuleAccessCreateNestedOneWithoutUserInput +} + +export type UsersUncheckedCreateInput = { + id?: string + first_name: string + last_name: string + email: string + phone_number: string + residence?: string | null + role?: $Enums.Roles + employee?: Prisma.EmployeesUncheckedCreateNestedOneWithoutUserInput + oauth_sessions?: Prisma.OAuthSessionsUncheckedCreateNestedManyWithoutUserInput + preferences?: Prisma.PreferencesUncheckedCreateNestedOneWithoutUserInput + user_module_access?: Prisma.userModuleAccessUncheckedCreateNestedOneWithoutUserInput +} + +export type UsersUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + phone_number?: Prisma.StringFieldUpdateOperationsInput | string + residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles + employee?: Prisma.EmployeesUpdateOneWithoutUserNestedInput + oauth_sessions?: Prisma.OAuthSessionsUpdateManyWithoutUserNestedInput + preferences?: Prisma.PreferencesUpdateOneWithoutUserNestedInput + user_module_access?: Prisma.userModuleAccessUpdateOneWithoutUserNestedInput +} + +export type UsersUncheckedUpdateInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + phone_number?: Prisma.StringFieldUpdateOperationsInput | string + residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles + employee?: Prisma.EmployeesUncheckedUpdateOneWithoutUserNestedInput + oauth_sessions?: Prisma.OAuthSessionsUncheckedUpdateManyWithoutUserNestedInput + preferences?: Prisma.PreferencesUncheckedUpdateOneWithoutUserNestedInput + user_module_access?: Prisma.userModuleAccessUncheckedUpdateOneWithoutUserNestedInput +} + +export type UsersCreateManyInput = { + id?: string + first_name: string + last_name: string + email: string + phone_number: string + residence?: string | null + role?: $Enums.Roles +} + +export type UsersUpdateManyMutationInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + phone_number?: Prisma.StringFieldUpdateOperationsInput | string + residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles +} + +export type UsersUncheckedUpdateManyInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + phone_number?: Prisma.StringFieldUpdateOperationsInput | string + residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles +} + +export type UsersCountOrderByAggregateInput = { + id?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + email?: Prisma.SortOrder + phone_number?: Prisma.SortOrder + residence?: Prisma.SortOrder + role?: Prisma.SortOrder +} + +export type UsersMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + email?: Prisma.SortOrder + phone_number?: Prisma.SortOrder + residence?: Prisma.SortOrder + role?: Prisma.SortOrder +} + +export type UsersMinOrderByAggregateInput = { + id?: Prisma.SortOrder + first_name?: Prisma.SortOrder + last_name?: Prisma.SortOrder + email?: Prisma.SortOrder + phone_number?: Prisma.SortOrder + residence?: Prisma.SortOrder + role?: Prisma.SortOrder +} + +export type UsersScalarRelationFilter = { + is?: Prisma.UsersWhereInput + isNot?: Prisma.UsersWhereInput +} + +export type StringFieldUpdateOperationsInput = { + set?: string +} + +export type NullableStringFieldUpdateOperationsInput = { + set?: string | null +} + +export type EnumRolesFieldUpdateOperationsInput = { + set?: $Enums.Roles +} + +export type UsersCreateNestedOneWithoutUser_module_accessInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UsersCreateOrConnectWithoutUser_module_accessInput + connect?: Prisma.UsersWhereUniqueInput +} + +export type UsersUpdateOneRequiredWithoutUser_module_accessNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UsersCreateOrConnectWithoutUser_module_accessInput + upsert?: Prisma.UsersUpsertWithoutUser_module_accessInput + connect?: Prisma.UsersWhereUniqueInput + update?: Prisma.XOR, Prisma.UsersUncheckedUpdateWithoutUser_module_accessInput> +} + +export type UsersCreateNestedOneWithoutEmployeeInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UsersCreateOrConnectWithoutEmployeeInput + connect?: Prisma.UsersWhereUniqueInput +} + +export type UsersUpdateOneRequiredWithoutEmployeeNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UsersCreateOrConnectWithoutEmployeeInput + upsert?: Prisma.UsersUpsertWithoutEmployeeInput + connect?: Prisma.UsersWhereUniqueInput + update?: Prisma.XOR, Prisma.UsersUncheckedUpdateWithoutEmployeeInput> +} + +export type UsersCreateNestedOneWithoutOauth_sessionsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UsersCreateOrConnectWithoutOauth_sessionsInput + connect?: Prisma.UsersWhereUniqueInput +} + +export type UsersUpdateOneRequiredWithoutOauth_sessionsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UsersCreateOrConnectWithoutOauth_sessionsInput + upsert?: Prisma.UsersUpsertWithoutOauth_sessionsInput + connect?: Prisma.UsersWhereUniqueInput + update?: Prisma.XOR, Prisma.UsersUncheckedUpdateWithoutOauth_sessionsInput> +} + +export type UsersCreateNestedOneWithoutPreferencesInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UsersCreateOrConnectWithoutPreferencesInput + connect?: Prisma.UsersWhereUniqueInput +} + +export type UsersUpdateOneRequiredWithoutPreferencesNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UsersCreateOrConnectWithoutPreferencesInput + upsert?: Prisma.UsersUpsertWithoutPreferencesInput + connect?: Prisma.UsersWhereUniqueInput + update?: Prisma.XOR, Prisma.UsersUncheckedUpdateWithoutPreferencesInput> +} + +export type UsersCreateWithoutUser_module_accessInput = { + id?: string + first_name: string + last_name: string + email: string + phone_number: string + residence?: string | null + role?: $Enums.Roles + employee?: Prisma.EmployeesCreateNestedOneWithoutUserInput + oauth_sessions?: Prisma.OAuthSessionsCreateNestedManyWithoutUserInput + preferences?: Prisma.PreferencesCreateNestedOneWithoutUserInput +} + +export type UsersUncheckedCreateWithoutUser_module_accessInput = { + id?: string + first_name: string + last_name: string + email: string + phone_number: string + residence?: string | null + role?: $Enums.Roles + employee?: Prisma.EmployeesUncheckedCreateNestedOneWithoutUserInput + oauth_sessions?: Prisma.OAuthSessionsUncheckedCreateNestedManyWithoutUserInput + preferences?: Prisma.PreferencesUncheckedCreateNestedOneWithoutUserInput +} + +export type UsersCreateOrConnectWithoutUser_module_accessInput = { + where: Prisma.UsersWhereUniqueInput + create: Prisma.XOR +} + +export type UsersUpsertWithoutUser_module_accessInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UsersWhereInput +} + +export type UsersUpdateToOneWithWhereWithoutUser_module_accessInput = { + where?: Prisma.UsersWhereInput + data: Prisma.XOR +} + +export type UsersUpdateWithoutUser_module_accessInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + phone_number?: Prisma.StringFieldUpdateOperationsInput | string + residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles + employee?: Prisma.EmployeesUpdateOneWithoutUserNestedInput + oauth_sessions?: Prisma.OAuthSessionsUpdateManyWithoutUserNestedInput + preferences?: Prisma.PreferencesUpdateOneWithoutUserNestedInput +} + +export type UsersUncheckedUpdateWithoutUser_module_accessInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + phone_number?: Prisma.StringFieldUpdateOperationsInput | string + residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles + employee?: Prisma.EmployeesUncheckedUpdateOneWithoutUserNestedInput + oauth_sessions?: Prisma.OAuthSessionsUncheckedUpdateManyWithoutUserNestedInput + preferences?: Prisma.PreferencesUncheckedUpdateOneWithoutUserNestedInput +} + +export type UsersCreateWithoutEmployeeInput = { + id?: string + first_name: string + last_name: string + email: string + phone_number: string + residence?: string | null + role?: $Enums.Roles + oauth_sessions?: Prisma.OAuthSessionsCreateNestedManyWithoutUserInput + preferences?: Prisma.PreferencesCreateNestedOneWithoutUserInput + user_module_access?: Prisma.userModuleAccessCreateNestedOneWithoutUserInput +} + +export type UsersUncheckedCreateWithoutEmployeeInput = { + id?: string + first_name: string + last_name: string + email: string + phone_number: string + residence?: string | null + role?: $Enums.Roles + oauth_sessions?: Prisma.OAuthSessionsUncheckedCreateNestedManyWithoutUserInput + preferences?: Prisma.PreferencesUncheckedCreateNestedOneWithoutUserInput + user_module_access?: Prisma.userModuleAccessUncheckedCreateNestedOneWithoutUserInput +} + +export type UsersCreateOrConnectWithoutEmployeeInput = { + where: Prisma.UsersWhereUniqueInput + create: Prisma.XOR +} + +export type UsersUpsertWithoutEmployeeInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UsersWhereInput +} + +export type UsersUpdateToOneWithWhereWithoutEmployeeInput = { + where?: Prisma.UsersWhereInput + data: Prisma.XOR +} + +export type UsersUpdateWithoutEmployeeInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + phone_number?: Prisma.StringFieldUpdateOperationsInput | string + residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles + oauth_sessions?: Prisma.OAuthSessionsUpdateManyWithoutUserNestedInput + preferences?: Prisma.PreferencesUpdateOneWithoutUserNestedInput + user_module_access?: Prisma.userModuleAccessUpdateOneWithoutUserNestedInput +} + +export type UsersUncheckedUpdateWithoutEmployeeInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + phone_number?: Prisma.StringFieldUpdateOperationsInput | string + residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles + oauth_sessions?: Prisma.OAuthSessionsUncheckedUpdateManyWithoutUserNestedInput + preferences?: Prisma.PreferencesUncheckedUpdateOneWithoutUserNestedInput + user_module_access?: Prisma.userModuleAccessUncheckedUpdateOneWithoutUserNestedInput +} + +export type UsersCreateWithoutOauth_sessionsInput = { + id?: string + first_name: string + last_name: string + email: string + phone_number: string + residence?: string | null + role?: $Enums.Roles + employee?: Prisma.EmployeesCreateNestedOneWithoutUserInput + preferences?: Prisma.PreferencesCreateNestedOneWithoutUserInput + user_module_access?: Prisma.userModuleAccessCreateNestedOneWithoutUserInput +} + +export type UsersUncheckedCreateWithoutOauth_sessionsInput = { + id?: string + first_name: string + last_name: string + email: string + phone_number: string + residence?: string | null + role?: $Enums.Roles + employee?: Prisma.EmployeesUncheckedCreateNestedOneWithoutUserInput + preferences?: Prisma.PreferencesUncheckedCreateNestedOneWithoutUserInput + user_module_access?: Prisma.userModuleAccessUncheckedCreateNestedOneWithoutUserInput +} + +export type UsersCreateOrConnectWithoutOauth_sessionsInput = { + where: Prisma.UsersWhereUniqueInput + create: Prisma.XOR +} + +export type UsersUpsertWithoutOauth_sessionsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UsersWhereInput +} + +export type UsersUpdateToOneWithWhereWithoutOauth_sessionsInput = { + where?: Prisma.UsersWhereInput + data: Prisma.XOR +} + +export type UsersUpdateWithoutOauth_sessionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + phone_number?: Prisma.StringFieldUpdateOperationsInput | string + residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles + employee?: Prisma.EmployeesUpdateOneWithoutUserNestedInput + preferences?: Prisma.PreferencesUpdateOneWithoutUserNestedInput + user_module_access?: Prisma.userModuleAccessUpdateOneWithoutUserNestedInput +} + +export type UsersUncheckedUpdateWithoutOauth_sessionsInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + phone_number?: Prisma.StringFieldUpdateOperationsInput | string + residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles + employee?: Prisma.EmployeesUncheckedUpdateOneWithoutUserNestedInput + preferences?: Prisma.PreferencesUncheckedUpdateOneWithoutUserNestedInput + user_module_access?: Prisma.userModuleAccessUncheckedUpdateOneWithoutUserNestedInput +} + +export type UsersCreateWithoutPreferencesInput = { + id?: string + first_name: string + last_name: string + email: string + phone_number: string + residence?: string | null + role?: $Enums.Roles + employee?: Prisma.EmployeesCreateNestedOneWithoutUserInput + oauth_sessions?: Prisma.OAuthSessionsCreateNestedManyWithoutUserInput + user_module_access?: Prisma.userModuleAccessCreateNestedOneWithoutUserInput +} + +export type UsersUncheckedCreateWithoutPreferencesInput = { + id?: string + first_name: string + last_name: string + email: string + phone_number: string + residence?: string | null + role?: $Enums.Roles + employee?: Prisma.EmployeesUncheckedCreateNestedOneWithoutUserInput + oauth_sessions?: Prisma.OAuthSessionsUncheckedCreateNestedManyWithoutUserInput + user_module_access?: Prisma.userModuleAccessUncheckedCreateNestedOneWithoutUserInput +} + +export type UsersCreateOrConnectWithoutPreferencesInput = { + where: Prisma.UsersWhereUniqueInput + create: Prisma.XOR +} + +export type UsersUpsertWithoutPreferencesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UsersWhereInput +} + +export type UsersUpdateToOneWithWhereWithoutPreferencesInput = { + where?: Prisma.UsersWhereInput + data: Prisma.XOR +} + +export type UsersUpdateWithoutPreferencesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + phone_number?: Prisma.StringFieldUpdateOperationsInput | string + residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles + employee?: Prisma.EmployeesUpdateOneWithoutUserNestedInput + oauth_sessions?: Prisma.OAuthSessionsUpdateManyWithoutUserNestedInput + user_module_access?: Prisma.userModuleAccessUpdateOneWithoutUserNestedInput +} + +export type UsersUncheckedUpdateWithoutPreferencesInput = { + id?: Prisma.StringFieldUpdateOperationsInput | string + first_name?: Prisma.StringFieldUpdateOperationsInput | string + last_name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + phone_number?: Prisma.StringFieldUpdateOperationsInput | string + residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles + employee?: Prisma.EmployeesUncheckedUpdateOneWithoutUserNestedInput + oauth_sessions?: Prisma.OAuthSessionsUncheckedUpdateManyWithoutUserNestedInput + user_module_access?: Prisma.userModuleAccessUncheckedUpdateOneWithoutUserNestedInput +} + + +/** + * Count Type UsersCountOutputType + */ + +export type UsersCountOutputType = { + oauth_sessions: number +} + +export type UsersCountOutputTypeSelect = { + oauth_sessions?: boolean | UsersCountOutputTypeCountOauth_sessionsArgs +} + +/** + * UsersCountOutputType without action + */ +export type UsersCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the UsersCountOutputType + */ + select?: Prisma.UsersCountOutputTypeSelect | null +} + +/** + * UsersCountOutputType without action + */ +export type UsersCountOutputTypeCountOauth_sessionsArgs = { + where?: Prisma.OAuthSessionsWhereInput +} + + +export type UsersSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + first_name?: boolean + last_name?: boolean + email?: boolean + phone_number?: boolean + residence?: boolean + role?: boolean + employee?: boolean | Prisma.Users$employeeArgs + oauth_sessions?: boolean | Prisma.Users$oauth_sessionsArgs + preferences?: boolean | Prisma.Users$preferencesArgs + user_module_access?: boolean | Prisma.Users$user_module_accessArgs + _count?: boolean | Prisma.UsersCountOutputTypeDefaultArgs +}, ExtArgs["result"]["users"]> + +export type UsersSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + first_name?: boolean + last_name?: boolean + email?: boolean + phone_number?: boolean + residence?: boolean + role?: boolean +}, ExtArgs["result"]["users"]> + +export type UsersSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + first_name?: boolean + last_name?: boolean + email?: boolean + phone_number?: boolean + residence?: boolean + role?: boolean +}, ExtArgs["result"]["users"]> + +export type UsersSelectScalar = { + id?: boolean + first_name?: boolean + last_name?: boolean + email?: boolean + phone_number?: boolean + residence?: boolean + role?: boolean +} + +export type UsersOmit = runtime.Types.Extensions.GetOmit<"id" | "first_name" | "last_name" | "email" | "phone_number" | "residence" | "role", ExtArgs["result"]["users"]> +export type UsersInclude = { + employee?: boolean | Prisma.Users$employeeArgs + oauth_sessions?: boolean | Prisma.Users$oauth_sessionsArgs + preferences?: boolean | Prisma.Users$preferencesArgs + user_module_access?: boolean | Prisma.Users$user_module_accessArgs + _count?: boolean | Prisma.UsersCountOutputTypeDefaultArgs +} +export type UsersIncludeCreateManyAndReturn = {} +export type UsersIncludeUpdateManyAndReturn = {} + +export type $UsersPayload = { + name: "Users" + objects: { + employee: Prisma.$EmployeesPayload | null + oauth_sessions: Prisma.$OAuthSessionsPayload[] + preferences: Prisma.$PreferencesPayload | null + user_module_access: Prisma.$userModuleAccessPayload | null + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: string + first_name: string + last_name: string + email: string + phone_number: string + residence: string | null + role: $Enums.Roles + }, ExtArgs["result"]["users"]> + composites: {} +} + +export type UsersGetPayload = runtime.Types.Result.GetResult + +export type UsersCountArgs = + Omit & { + select?: UsersCountAggregateInputType | true + } + +export interface UsersDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Users'], meta: { name: 'Users' } } + /** + * Find zero or one Users that matches the filter. + * @param {UsersFindUniqueArgs} args - Arguments to find a Users + * @example + * // Get one Users + * const users = await prisma.users.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UsersClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Users that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {UsersFindUniqueOrThrowArgs} args - Arguments to find a Users + * @example + * // Get one Users + * const users = await prisma.users.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UsersClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first 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 {UsersFindFirstArgs} args - Arguments to find a Users + * @example + * // Get one Users + * const users = await prisma.users.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UsersClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Users 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 {UsersFindFirstOrThrowArgs} args - Arguments to find a Users + * @example + * // Get one Users + * const users = await prisma.users.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UsersClient, 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 {UsersFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Users + * const users = await prisma.users.findMany() + * + * // Get first 10 Users + * const users = await prisma.users.findMany({ take: 10 }) + * + * // Only select the `id` + * const usersWithIdOnly = await prisma.users.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Users. + * @param {UsersCreateArgs} args - Arguments to create a Users. + * @example + * // Create one Users + * const Users = await prisma.users.create({ + * data: { + * // ... data to create a Users + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__UsersClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Users. + * @param {UsersCreateManyArgs} args - Arguments to create many Users. + * @example + * // Create many Users + * const users = await prisma.users.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Users and returns the data saved in the database. + * @param {UsersCreateManyAndReturnArgs} args - Arguments to create many Users. + * @example + * // Create many Users + * const users = await prisma.users.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Users and only return the `id` + * const usersWithIdOnly = await prisma.users.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 Users. + * @param {UsersDeleteArgs} args - Arguments to delete one Users. + * @example + * // Delete one Users + * const Users = await prisma.users.delete({ + * where: { + * // ... filter to delete one Users + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__UsersClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Users. + * @param {UsersUpdateArgs} args - Arguments to update one Users. + * @example + * // Update one Users + * const users = await prisma.users.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__UsersClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Users. + * @param {UsersDeleteManyArgs} args - Arguments to filter Users to delete. + * @example + * // Delete a few Users + * const { count } = await prisma.users.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 {UsersUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Users + * const users = await prisma.users.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 {UsersUpdateManyAndReturnArgs} args - Arguments to update many Users. + * @example + * // Update many Users + * const users = await prisma.users.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Users and only return the `id` + * const usersWithIdOnly = await prisma.users.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 Users. + * @param {UsersUpsertArgs} args - Arguments to update or create a Users. + * @example + * // Update or create a Users + * const users = await prisma.users.upsert({ + * create: { + * // ... data to create a Users + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Users we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UsersClient, 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 {UsersCountArgs} args - Arguments to filter Users to count. + * @example + * // Count the number of Users + * const count = await prisma.users.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 Users. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UsersAggregateArgs} 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 Users. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UsersGroupByArgs} 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 UsersGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: UsersGroupByArgs['orderBy'] } + : { orderBy?: UsersGroupByArgs['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 ? GetUsersGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Users model + */ +readonly fields: UsersFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Users. + * 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__UsersClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + employee = {}>(args?: Prisma.Subset>): Prisma.Prisma__EmployeesClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + oauth_sessions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + preferences = {}>(args?: Prisma.Subset>): Prisma.Prisma__PreferencesClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + user_module_access = {}>(args?: Prisma.Subset>): Prisma.Prisma__userModuleAccessClient, 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 Users model + */ +export interface UsersFieldRefs { + readonly id: Prisma.FieldRef<"Users", 'String'> + readonly first_name: Prisma.FieldRef<"Users", 'String'> + readonly last_name: Prisma.FieldRef<"Users", 'String'> + readonly email: Prisma.FieldRef<"Users", 'String'> + readonly phone_number: Prisma.FieldRef<"Users", 'String'> + readonly residence: Prisma.FieldRef<"Users", 'String'> + readonly role: Prisma.FieldRef<"Users", 'Roles'> +} + + +// Custom InputTypes +/** + * Users findUnique + */ +export type UsersFindUniqueArgs = { + /** + * Select specific fields to fetch from the Users + */ + select?: Prisma.UsersSelect | null + /** + * Omit specific fields from the Users + */ + omit?: Prisma.UsersOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UsersInclude | null + /** + * Filter, which Users to fetch. + */ + where: Prisma.UsersWhereUniqueInput +} + +/** + * Users findUniqueOrThrow + */ +export type UsersFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Users + */ + select?: Prisma.UsersSelect | null + /** + * Omit specific fields from the Users + */ + omit?: Prisma.UsersOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UsersInclude | null + /** + * Filter, which Users to fetch. + */ + where: Prisma.UsersWhereUniqueInput +} + +/** + * Users findFirst + */ +export type UsersFindFirstArgs = { + /** + * Select specific fields to fetch from the Users + */ + select?: Prisma.UsersSelect | null + /** + * Omit specific fields from the Users + */ + omit?: Prisma.UsersOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UsersInclude | null + /** + * Filter, which Users to fetch. + */ + where?: Prisma.UsersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UsersOrderByWithRelationInput | Prisma.UsersOrderByWithRelationInput[] + /** + * {@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.UsersWhereUniqueInput + /** + * {@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.UsersScalarFieldEnum | Prisma.UsersScalarFieldEnum[] +} + +/** + * Users findFirstOrThrow + */ +export type UsersFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Users + */ + select?: Prisma.UsersSelect | null + /** + * Omit specific fields from the Users + */ + omit?: Prisma.UsersOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UsersInclude | null + /** + * Filter, which Users to fetch. + */ + where?: Prisma.UsersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UsersOrderByWithRelationInput | Prisma.UsersOrderByWithRelationInput[] + /** + * {@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.UsersWhereUniqueInput + /** + * {@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.UsersScalarFieldEnum | Prisma.UsersScalarFieldEnum[] +} + +/** + * Users findMany + */ +export type UsersFindManyArgs = { + /** + * Select specific fields to fetch from the Users + */ + select?: Prisma.UsersSelect | null + /** + * Omit specific fields from the Users + */ + omit?: Prisma.UsersOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UsersInclude | null + /** + * Filter, which Users to fetch. + */ + where?: Prisma.UsersWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Users to fetch. + */ + orderBy?: Prisma.UsersOrderByWithRelationInput | Prisma.UsersOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Users. + */ + cursor?: Prisma.UsersWhereUniqueInput + /** + * {@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.UsersScalarFieldEnum | Prisma.UsersScalarFieldEnum[] +} + +/** + * Users create + */ +export type UsersCreateArgs = { + /** + * Select specific fields to fetch from the Users + */ + select?: Prisma.UsersSelect | null + /** + * Omit specific fields from the Users + */ + omit?: Prisma.UsersOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UsersInclude | null + /** + * The data needed to create a Users. + */ + data: Prisma.XOR +} + +/** + * Users createMany + */ +export type UsersCreateManyArgs = { + /** + * The data used to create many Users. + */ + data: Prisma.UsersCreateManyInput | Prisma.UsersCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Users createManyAndReturn + */ +export type UsersCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Users + */ + select?: Prisma.UsersSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Users + */ + omit?: Prisma.UsersOmit | null + /** + * The data used to create many Users. + */ + data: Prisma.UsersCreateManyInput | Prisma.UsersCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * Users update + */ +export type UsersUpdateArgs = { + /** + * Select specific fields to fetch from the Users + */ + select?: Prisma.UsersSelect | null + /** + * Omit specific fields from the Users + */ + omit?: Prisma.UsersOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UsersInclude | null + /** + * The data needed to update a Users. + */ + data: Prisma.XOR + /** + * Choose, which Users to update. + */ + where: Prisma.UsersWhereUniqueInput +} + +/** + * Users updateMany + */ +export type UsersUpdateManyArgs = { + /** + * The data used to update Users. + */ + data: Prisma.XOR + /** + * Filter which Users to update + */ + where?: Prisma.UsersWhereInput + /** + * Limit how many Users to update. + */ + limit?: number +} + +/** + * Users updateManyAndReturn + */ +export type UsersUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Users + */ + select?: Prisma.UsersSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Users + */ + omit?: Prisma.UsersOmit | null + /** + * The data used to update Users. + */ + data: Prisma.XOR + /** + * Filter which Users to update + */ + where?: Prisma.UsersWhereInput + /** + * Limit how many Users to update. + */ + limit?: number +} + +/** + * Users upsert + */ +export type UsersUpsertArgs = { + /** + * Select specific fields to fetch from the Users + */ + select?: Prisma.UsersSelect | null + /** + * Omit specific fields from the Users + */ + omit?: Prisma.UsersOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UsersInclude | null + /** + * The filter to search for the Users to update in case it exists. + */ + where: Prisma.UsersWhereUniqueInput + /** + * In case the Users found by the `where` argument doesn't exist, create a new Users with this data. + */ + create: Prisma.XOR + /** + * In case the Users was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Users delete + */ +export type UsersDeleteArgs = { + /** + * Select specific fields to fetch from the Users + */ + select?: Prisma.UsersSelect | null + /** + * Omit specific fields from the Users + */ + omit?: Prisma.UsersOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UsersInclude | null + /** + * Filter which Users to delete. + */ + where: Prisma.UsersWhereUniqueInput +} + +/** + * Users deleteMany + */ +export type UsersDeleteManyArgs = { + /** + * Filter which Users to delete + */ + where?: Prisma.UsersWhereInput + /** + * Limit how many Users to delete. + */ + limit?: number +} + +/** + * Users.employee + */ +export type Users$employeeArgs = { + /** + * Select specific fields to fetch from the Employees + */ + select?: Prisma.EmployeesSelect | null + /** + * Omit specific fields from the Employees + */ + omit?: Prisma.EmployeesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.EmployeesInclude | null + where?: Prisma.EmployeesWhereInput +} + +/** + * Users.oauth_sessions + */ +export type Users$oauth_sessionsArgs = { + /** + * Select specific fields to fetch from the OAuthSessions + */ + select?: Prisma.OAuthSessionsSelect | null + /** + * Omit specific fields from the OAuthSessions + */ + omit?: Prisma.OAuthSessionsOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthSessionsInclude | null + where?: Prisma.OAuthSessionsWhereInput + orderBy?: Prisma.OAuthSessionsOrderByWithRelationInput | Prisma.OAuthSessionsOrderByWithRelationInput[] + cursor?: Prisma.OAuthSessionsWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.OAuthSessionsScalarFieldEnum | Prisma.OAuthSessionsScalarFieldEnum[] +} + +/** + * Users.preferences + */ +export type Users$preferencesArgs = { + /** + * Select specific fields to fetch from the Preferences + */ + select?: Prisma.PreferencesSelect | null + /** + * Omit specific fields from the Preferences + */ + omit?: Prisma.PreferencesOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PreferencesInclude | null + where?: Prisma.PreferencesWhereInput +} + +/** + * Users.user_module_access + */ +export type Users$user_module_accessArgs = { + /** + * Select specific fields to fetch from the userModuleAccess + */ + select?: Prisma.userModuleAccessSelect | null + /** + * Omit specific fields from the userModuleAccess + */ + omit?: Prisma.userModuleAccessOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.userModuleAccessInclude | null + where?: Prisma.userModuleAccessWhereInput +} + +/** + * Users without action + */ +export type UsersDefaultArgs = { + /** + * Select specific fields to fetch from the Users + */ + select?: Prisma.UsersSelect | null + /** + * Omit specific fields from the Users + */ + omit?: Prisma.UsersOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.UsersInclude | null +} diff --git a/prisma/generated/postgres/models/userModuleAccess.ts b/prisma/generated/postgres/models/userModuleAccess.ts new file mode 100644 index 0000000..f567a88 --- /dev/null +++ b/prisma/generated/postgres/models/userModuleAccess.ts @@ -0,0 +1,1469 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `userModuleAccess` model and its related types. + * + * ๐ŸŸข You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums" +import type * as Prisma from "../internal/prismaNamespace" + +/** + * Model userModuleAccess + * + */ +export type userModuleAccessModel = runtime.Types.Result.DefaultSelection + +export type AggregateUserModuleAccess = { + _count: UserModuleAccessCountAggregateOutputType | null + _avg: UserModuleAccessAvgAggregateOutputType | null + _sum: UserModuleAccessSumAggregateOutputType | null + _min: UserModuleAccessMinAggregateOutputType | null + _max: UserModuleAccessMaxAggregateOutputType | null +} + +export type UserModuleAccessAvgAggregateOutputType = { + id: number | null +} + +export type UserModuleAccessSumAggregateOutputType = { + id: number | null +} + +export type UserModuleAccessMinAggregateOutputType = { + id: number | null + user_id: string | null + timesheets: boolean | null + timesheets_approval: boolean | null + employee_list: boolean | null + employee_management: boolean | null + personal_profile: boolean | null + dashboard: boolean | null + chatbot: boolean | null +} + +export type UserModuleAccessMaxAggregateOutputType = { + id: number | null + user_id: string | null + timesheets: boolean | null + timesheets_approval: boolean | null + employee_list: boolean | null + employee_management: boolean | null + personal_profile: boolean | null + dashboard: boolean | null + chatbot: boolean | null +} + +export type UserModuleAccessCountAggregateOutputType = { + id: number + user_id: number + timesheets: number + timesheets_approval: number + employee_list: number + employee_management: number + personal_profile: number + dashboard: number + chatbot: number + _all: number +} + + +export type UserModuleAccessAvgAggregateInputType = { + id?: true +} + +export type UserModuleAccessSumAggregateInputType = { + id?: true +} + +export type UserModuleAccessMinAggregateInputType = { + id?: true + user_id?: true + timesheets?: true + timesheets_approval?: true + employee_list?: true + employee_management?: true + personal_profile?: true + dashboard?: true + chatbot?: true +} + +export type UserModuleAccessMaxAggregateInputType = { + id?: true + user_id?: true + timesheets?: true + timesheets_approval?: true + employee_list?: true + employee_management?: true + personal_profile?: true + dashboard?: true + chatbot?: true +} + +export type UserModuleAccessCountAggregateInputType = { + id?: true + user_id?: true + timesheets?: true + timesheets_approval?: true + employee_list?: true + employee_management?: true + personal_profile?: true + dashboard?: true + chatbot?: true + _all?: true +} + +export type UserModuleAccessAggregateArgs = { + /** + * Filter which userModuleAccess to aggregate. + */ + where?: Prisma.userModuleAccessWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of userModuleAccesses to fetch. + */ + orderBy?: Prisma.userModuleAccessOrderByWithRelationInput | Prisma.userModuleAccessOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.userModuleAccessWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` userModuleAccesses 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` userModuleAccesses. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned userModuleAccesses + **/ + _count?: true | UserModuleAccessCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: UserModuleAccessAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: UserModuleAccessSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: UserModuleAccessMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: UserModuleAccessMaxAggregateInputType +} + +export type GetUserModuleAccessAggregateType = { + [P in keyof T & keyof AggregateUserModuleAccess]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type userModuleAccessGroupByArgs = { + where?: Prisma.userModuleAccessWhereInput + orderBy?: Prisma.userModuleAccessOrderByWithAggregationInput | Prisma.userModuleAccessOrderByWithAggregationInput[] + by: Prisma.UserModuleAccessScalarFieldEnum[] | Prisma.UserModuleAccessScalarFieldEnum + having?: Prisma.userModuleAccessScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: UserModuleAccessCountAggregateInputType | true + _avg?: UserModuleAccessAvgAggregateInputType + _sum?: UserModuleAccessSumAggregateInputType + _min?: UserModuleAccessMinAggregateInputType + _max?: UserModuleAccessMaxAggregateInputType +} + +export type UserModuleAccessGroupByOutputType = { + id: number + user_id: string + timesheets: boolean + timesheets_approval: boolean + employee_list: boolean + employee_management: boolean + personal_profile: boolean + dashboard: boolean + chatbot: boolean + _count: UserModuleAccessCountAggregateOutputType | null + _avg: UserModuleAccessAvgAggregateOutputType | null + _sum: UserModuleAccessSumAggregateOutputType | null + _min: UserModuleAccessMinAggregateOutputType | null + _max: UserModuleAccessMaxAggregateOutputType | null +} + +type GetUserModuleAccessGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof UserModuleAccessGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type userModuleAccessWhereInput = { + AND?: Prisma.userModuleAccessWhereInput | Prisma.userModuleAccessWhereInput[] + OR?: Prisma.userModuleAccessWhereInput[] + NOT?: Prisma.userModuleAccessWhereInput | Prisma.userModuleAccessWhereInput[] + id?: Prisma.IntFilter<"userModuleAccess"> | number + user_id?: Prisma.UuidFilter<"userModuleAccess"> | string + timesheets?: Prisma.BoolFilter<"userModuleAccess"> | boolean + timesheets_approval?: Prisma.BoolFilter<"userModuleAccess"> | boolean + employee_list?: Prisma.BoolFilter<"userModuleAccess"> | boolean + employee_management?: Prisma.BoolFilter<"userModuleAccess"> | boolean + personal_profile?: Prisma.BoolFilter<"userModuleAccess"> | boolean + dashboard?: Prisma.BoolFilter<"userModuleAccess"> | boolean + chatbot?: Prisma.BoolFilter<"userModuleAccess"> | boolean + user?: Prisma.XOR +} + +export type userModuleAccessOrderByWithRelationInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + timesheets?: Prisma.SortOrder + timesheets_approval?: Prisma.SortOrder + employee_list?: Prisma.SortOrder + employee_management?: Prisma.SortOrder + personal_profile?: Prisma.SortOrder + dashboard?: Prisma.SortOrder + chatbot?: Prisma.SortOrder + user?: Prisma.UsersOrderByWithRelationInput +} + +export type userModuleAccessWhereUniqueInput = Prisma.AtLeast<{ + id?: number + user_id?: string + AND?: Prisma.userModuleAccessWhereInput | Prisma.userModuleAccessWhereInput[] + OR?: Prisma.userModuleAccessWhereInput[] + NOT?: Prisma.userModuleAccessWhereInput | Prisma.userModuleAccessWhereInput[] + timesheets?: Prisma.BoolFilter<"userModuleAccess"> | boolean + timesheets_approval?: Prisma.BoolFilter<"userModuleAccess"> | boolean + employee_list?: Prisma.BoolFilter<"userModuleAccess"> | boolean + employee_management?: Prisma.BoolFilter<"userModuleAccess"> | boolean + personal_profile?: Prisma.BoolFilter<"userModuleAccess"> | boolean + dashboard?: Prisma.BoolFilter<"userModuleAccess"> | boolean + chatbot?: Prisma.BoolFilter<"userModuleAccess"> | boolean + user?: Prisma.XOR +}, "id" | "user_id"> + +export type userModuleAccessOrderByWithAggregationInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + timesheets?: Prisma.SortOrder + timesheets_approval?: Prisma.SortOrder + employee_list?: Prisma.SortOrder + employee_management?: Prisma.SortOrder + personal_profile?: Prisma.SortOrder + dashboard?: Prisma.SortOrder + chatbot?: Prisma.SortOrder + _count?: Prisma.userModuleAccessCountOrderByAggregateInput + _avg?: Prisma.userModuleAccessAvgOrderByAggregateInput + _max?: Prisma.userModuleAccessMaxOrderByAggregateInput + _min?: Prisma.userModuleAccessMinOrderByAggregateInput + _sum?: Prisma.userModuleAccessSumOrderByAggregateInput +} + +export type userModuleAccessScalarWhereWithAggregatesInput = { + AND?: Prisma.userModuleAccessScalarWhereWithAggregatesInput | Prisma.userModuleAccessScalarWhereWithAggregatesInput[] + OR?: Prisma.userModuleAccessScalarWhereWithAggregatesInput[] + NOT?: Prisma.userModuleAccessScalarWhereWithAggregatesInput | Prisma.userModuleAccessScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"userModuleAccess"> | number + user_id?: Prisma.UuidWithAggregatesFilter<"userModuleAccess"> | string + timesheets?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean + timesheets_approval?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean + employee_list?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean + employee_management?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean + personal_profile?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean + dashboard?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean + chatbot?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean +} + +export type userModuleAccessCreateInput = { + timesheets?: boolean + timesheets_approval?: boolean + employee_list?: boolean + employee_management?: boolean + personal_profile?: boolean + dashboard?: boolean + chatbot?: boolean + user: Prisma.UsersCreateNestedOneWithoutUser_module_accessInput +} + +export type userModuleAccessUncheckedCreateInput = { + id?: number + user_id: string + timesheets?: boolean + timesheets_approval?: boolean + employee_list?: boolean + employee_management?: boolean + personal_profile?: boolean + dashboard?: boolean + chatbot?: boolean +} + +export type userModuleAccessUpdateInput = { + timesheets?: Prisma.BoolFieldUpdateOperationsInput | boolean + timesheets_approval?: Prisma.BoolFieldUpdateOperationsInput | boolean + employee_list?: Prisma.BoolFieldUpdateOperationsInput | boolean + employee_management?: Prisma.BoolFieldUpdateOperationsInput | boolean + personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean + dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean + chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean + user?: Prisma.UsersUpdateOneRequiredWithoutUser_module_accessNestedInput +} + +export type userModuleAccessUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + user_id?: Prisma.StringFieldUpdateOperationsInput | string + timesheets?: Prisma.BoolFieldUpdateOperationsInput | boolean + timesheets_approval?: Prisma.BoolFieldUpdateOperationsInput | boolean + employee_list?: Prisma.BoolFieldUpdateOperationsInput | boolean + employee_management?: Prisma.BoolFieldUpdateOperationsInput | boolean + personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean + dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean + chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type userModuleAccessCreateManyInput = { + id?: number + user_id: string + timesheets?: boolean + timesheets_approval?: boolean + employee_list?: boolean + employee_management?: boolean + personal_profile?: boolean + dashboard?: boolean + chatbot?: boolean +} + +export type userModuleAccessUpdateManyMutationInput = { + timesheets?: Prisma.BoolFieldUpdateOperationsInput | boolean + timesheets_approval?: Prisma.BoolFieldUpdateOperationsInput | boolean + employee_list?: Prisma.BoolFieldUpdateOperationsInput | boolean + employee_management?: Prisma.BoolFieldUpdateOperationsInput | boolean + personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean + dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean + chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type userModuleAccessUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + user_id?: Prisma.StringFieldUpdateOperationsInput | string + timesheets?: Prisma.BoolFieldUpdateOperationsInput | boolean + timesheets_approval?: Prisma.BoolFieldUpdateOperationsInput | boolean + employee_list?: Prisma.BoolFieldUpdateOperationsInput | boolean + employee_management?: Prisma.BoolFieldUpdateOperationsInput | boolean + personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean + dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean + chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type UserModuleAccessNullableScalarRelationFilter = { + is?: Prisma.userModuleAccessWhereInput | null + isNot?: Prisma.userModuleAccessWhereInput | null +} + +export type userModuleAccessCountOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + timesheets?: Prisma.SortOrder + timesheets_approval?: Prisma.SortOrder + employee_list?: Prisma.SortOrder + employee_management?: Prisma.SortOrder + personal_profile?: Prisma.SortOrder + dashboard?: Prisma.SortOrder + chatbot?: Prisma.SortOrder +} + +export type userModuleAccessAvgOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type userModuleAccessMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + timesheets?: Prisma.SortOrder + timesheets_approval?: Prisma.SortOrder + employee_list?: Prisma.SortOrder + employee_management?: Prisma.SortOrder + personal_profile?: Prisma.SortOrder + dashboard?: Prisma.SortOrder + chatbot?: Prisma.SortOrder +} + +export type userModuleAccessMinOrderByAggregateInput = { + id?: Prisma.SortOrder + user_id?: Prisma.SortOrder + timesheets?: Prisma.SortOrder + timesheets_approval?: Prisma.SortOrder + employee_list?: Prisma.SortOrder + employee_management?: Prisma.SortOrder + personal_profile?: Prisma.SortOrder + dashboard?: Prisma.SortOrder + chatbot?: Prisma.SortOrder +} + +export type userModuleAccessSumOrderByAggregateInput = { + id?: Prisma.SortOrder +} + +export type userModuleAccessCreateNestedOneWithoutUserInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.userModuleAccessCreateOrConnectWithoutUserInput + connect?: Prisma.userModuleAccessWhereUniqueInput +} + +export type userModuleAccessUncheckedCreateNestedOneWithoutUserInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.userModuleAccessCreateOrConnectWithoutUserInput + connect?: Prisma.userModuleAccessWhereUniqueInput +} + +export type userModuleAccessUpdateOneWithoutUserNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.userModuleAccessCreateOrConnectWithoutUserInput + upsert?: Prisma.userModuleAccessUpsertWithoutUserInput + disconnect?: Prisma.userModuleAccessWhereInput | boolean + delete?: Prisma.userModuleAccessWhereInput | boolean + connect?: Prisma.userModuleAccessWhereUniqueInput + update?: Prisma.XOR, Prisma.userModuleAccessUncheckedUpdateWithoutUserInput> +} + +export type userModuleAccessUncheckedUpdateOneWithoutUserNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.userModuleAccessCreateOrConnectWithoutUserInput + upsert?: Prisma.userModuleAccessUpsertWithoutUserInput + disconnect?: Prisma.userModuleAccessWhereInput | boolean + delete?: Prisma.userModuleAccessWhereInput | boolean + connect?: Prisma.userModuleAccessWhereUniqueInput + update?: Prisma.XOR, Prisma.userModuleAccessUncheckedUpdateWithoutUserInput> +} + +export type BoolFieldUpdateOperationsInput = { + set?: boolean +} + +export type IntFieldUpdateOperationsInput = { + set?: number + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type userModuleAccessCreateWithoutUserInput = { + timesheets?: boolean + timesheets_approval?: boolean + employee_list?: boolean + employee_management?: boolean + personal_profile?: boolean + dashboard?: boolean + chatbot?: boolean +} + +export type userModuleAccessUncheckedCreateWithoutUserInput = { + id?: number + timesheets?: boolean + timesheets_approval?: boolean + employee_list?: boolean + employee_management?: boolean + personal_profile?: boolean + dashboard?: boolean + chatbot?: boolean +} + +export type userModuleAccessCreateOrConnectWithoutUserInput = { + where: Prisma.userModuleAccessWhereUniqueInput + create: Prisma.XOR +} + +export type userModuleAccessUpsertWithoutUserInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.userModuleAccessWhereInput +} + +export type userModuleAccessUpdateToOneWithWhereWithoutUserInput = { + where?: Prisma.userModuleAccessWhereInput + data: Prisma.XOR +} + +export type userModuleAccessUpdateWithoutUserInput = { + timesheets?: Prisma.BoolFieldUpdateOperationsInput | boolean + timesheets_approval?: Prisma.BoolFieldUpdateOperationsInput | boolean + employee_list?: Prisma.BoolFieldUpdateOperationsInput | boolean + employee_management?: Prisma.BoolFieldUpdateOperationsInput | boolean + personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean + dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean + chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + +export type userModuleAccessUncheckedUpdateWithoutUserInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + timesheets?: Prisma.BoolFieldUpdateOperationsInput | boolean + timesheets_approval?: Prisma.BoolFieldUpdateOperationsInput | boolean + employee_list?: Prisma.BoolFieldUpdateOperationsInput | boolean + employee_management?: Prisma.BoolFieldUpdateOperationsInput | boolean + personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean + dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean + chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean +} + + + +export type userModuleAccessSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + timesheets?: boolean + timesheets_approval?: boolean + employee_list?: boolean + employee_management?: boolean + personal_profile?: boolean + dashboard?: boolean + chatbot?: boolean + user?: boolean | Prisma.UsersDefaultArgs +}, ExtArgs["result"]["userModuleAccess"]> + +export type userModuleAccessSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + timesheets?: boolean + timesheets_approval?: boolean + employee_list?: boolean + employee_management?: boolean + personal_profile?: boolean + dashboard?: boolean + chatbot?: boolean + user?: boolean | Prisma.UsersDefaultArgs +}, ExtArgs["result"]["userModuleAccess"]> + +export type userModuleAccessSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + user_id?: boolean + timesheets?: boolean + timesheets_approval?: boolean + employee_list?: boolean + employee_management?: boolean + personal_profile?: boolean + dashboard?: boolean + chatbot?: boolean + user?: boolean | Prisma.UsersDefaultArgs +}, ExtArgs["result"]["userModuleAccess"]> + +export type userModuleAccessSelectScalar = { + id?: boolean + user_id?: boolean + timesheets?: boolean + timesheets_approval?: boolean + employee_list?: boolean + employee_management?: boolean + personal_profile?: boolean + dashboard?: boolean + chatbot?: boolean +} + +export type userModuleAccessOmit = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "timesheets" | "timesheets_approval" | "employee_list" | "employee_management" | "personal_profile" | "dashboard" | "chatbot", ExtArgs["result"]["userModuleAccess"]> +export type userModuleAccessInclude = { + user?: boolean | Prisma.UsersDefaultArgs +} +export type userModuleAccessIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UsersDefaultArgs +} +export type userModuleAccessIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UsersDefaultArgs +} + +export type $userModuleAccessPayload = { + name: "userModuleAccess" + objects: { + user: Prisma.$UsersPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + user_id: string + timesheets: boolean + timesheets_approval: boolean + employee_list: boolean + employee_management: boolean + personal_profile: boolean + dashboard: boolean + chatbot: boolean + }, ExtArgs["result"]["userModuleAccess"]> + composites: {} +} + +export type userModuleAccessGetPayload = runtime.Types.Result.GetResult + +export type userModuleAccessCountArgs = + Omit & { + select?: UserModuleAccessCountAggregateInputType | true + } + +export interface userModuleAccessDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['userModuleAccess'], meta: { name: 'userModuleAccess' } } + /** + * Find zero or one UserModuleAccess that matches the filter. + * @param {userModuleAccessFindUniqueArgs} args - Arguments to find a UserModuleAccess + * @example + * // Get one UserModuleAccess + * const userModuleAccess = await prisma.userModuleAccess.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__userModuleAccessClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one UserModuleAccess that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {userModuleAccessFindUniqueOrThrowArgs} args - Arguments to find a UserModuleAccess + * @example + * // Get one UserModuleAccess + * const userModuleAccess = await prisma.userModuleAccess.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__userModuleAccessClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first UserModuleAccess 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 {userModuleAccessFindFirstArgs} args - Arguments to find a UserModuleAccess + * @example + * // Get one UserModuleAccess + * const userModuleAccess = await prisma.userModuleAccess.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__userModuleAccessClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first UserModuleAccess 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 {userModuleAccessFindFirstOrThrowArgs} args - Arguments to find a UserModuleAccess + * @example + * // Get one UserModuleAccess + * const userModuleAccess = await prisma.userModuleAccess.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__userModuleAccessClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more UserModuleAccesses 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 {userModuleAccessFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all UserModuleAccesses + * const userModuleAccesses = await prisma.userModuleAccess.findMany() + * + * // Get first 10 UserModuleAccesses + * const userModuleAccesses = await prisma.userModuleAccess.findMany({ take: 10 }) + * + * // Only select the `id` + * const userModuleAccessWithIdOnly = await prisma.userModuleAccess.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a UserModuleAccess. + * @param {userModuleAccessCreateArgs} args - Arguments to create a UserModuleAccess. + * @example + * // Create one UserModuleAccess + * const UserModuleAccess = await prisma.userModuleAccess.create({ + * data: { + * // ... data to create a UserModuleAccess + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__userModuleAccessClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many UserModuleAccesses. + * @param {userModuleAccessCreateManyArgs} args - Arguments to create many UserModuleAccesses. + * @example + * // Create many UserModuleAccesses + * const userModuleAccess = await prisma.userModuleAccess.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many UserModuleAccesses and returns the data saved in the database. + * @param {userModuleAccessCreateManyAndReturnArgs} args - Arguments to create many UserModuleAccesses. + * @example + * // Create many UserModuleAccesses + * const userModuleAccess = await prisma.userModuleAccess.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many UserModuleAccesses and only return the `id` + * const userModuleAccessWithIdOnly = await prisma.userModuleAccess.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 UserModuleAccess. + * @param {userModuleAccessDeleteArgs} args - Arguments to delete one UserModuleAccess. + * @example + * // Delete one UserModuleAccess + * const UserModuleAccess = await prisma.userModuleAccess.delete({ + * where: { + * // ... filter to delete one UserModuleAccess + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__userModuleAccessClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one UserModuleAccess. + * @param {userModuleAccessUpdateArgs} args - Arguments to update one UserModuleAccess. + * @example + * // Update one UserModuleAccess + * const userModuleAccess = await prisma.userModuleAccess.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__userModuleAccessClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more UserModuleAccesses. + * @param {userModuleAccessDeleteManyArgs} args - Arguments to filter UserModuleAccesses to delete. + * @example + * // Delete a few UserModuleAccesses + * const { count } = await prisma.userModuleAccess.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more UserModuleAccesses. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {userModuleAccessUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many UserModuleAccesses + * const userModuleAccess = await prisma.userModuleAccess.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more UserModuleAccesses and returns the data updated in the database. + * @param {userModuleAccessUpdateManyAndReturnArgs} args - Arguments to update many UserModuleAccesses. + * @example + * // Update many UserModuleAccesses + * const userModuleAccess = await prisma.userModuleAccess.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more UserModuleAccesses and only return the `id` + * const userModuleAccessWithIdOnly = await prisma.userModuleAccess.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 UserModuleAccess. + * @param {userModuleAccessUpsertArgs} args - Arguments to update or create a UserModuleAccess. + * @example + * // Update or create a UserModuleAccess + * const userModuleAccess = await prisma.userModuleAccess.upsert({ + * create: { + * // ... data to create a UserModuleAccess + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the UserModuleAccess we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__userModuleAccessClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of UserModuleAccesses. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {userModuleAccessCountArgs} args - Arguments to filter UserModuleAccesses to count. + * @example + * // Count the number of UserModuleAccesses + * const count = await prisma.userModuleAccess.count({ + * where: { + * // ... the filter for the UserModuleAccesses 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 UserModuleAccess. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserModuleAccessAggregateArgs} 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 UserModuleAccess. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {userModuleAccessGroupByArgs} 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 userModuleAccessGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: userModuleAccessGroupByArgs['orderBy'] } + : { orderBy?: userModuleAccessGroupByArgs['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 ? GetUserModuleAccessGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the userModuleAccess model + */ +readonly fields: userModuleAccessFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for userModuleAccess. + * 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__userModuleAccessClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UsersClient, 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 userModuleAccess model + */ +export interface userModuleAccessFieldRefs { + readonly id: Prisma.FieldRef<"userModuleAccess", 'Int'> + readonly user_id: Prisma.FieldRef<"userModuleAccess", 'String'> + readonly timesheets: Prisma.FieldRef<"userModuleAccess", 'Boolean'> + readonly timesheets_approval: Prisma.FieldRef<"userModuleAccess", 'Boolean'> + readonly employee_list: Prisma.FieldRef<"userModuleAccess", 'Boolean'> + readonly employee_management: Prisma.FieldRef<"userModuleAccess", 'Boolean'> + readonly personal_profile: Prisma.FieldRef<"userModuleAccess", 'Boolean'> + readonly dashboard: Prisma.FieldRef<"userModuleAccess", 'Boolean'> + readonly chatbot: Prisma.FieldRef<"userModuleAccess", 'Boolean'> +} + + +// Custom InputTypes +/** + * userModuleAccess findUnique + */ +export type userModuleAccessFindUniqueArgs = { + /** + * Select specific fields to fetch from the userModuleAccess + */ + select?: Prisma.userModuleAccessSelect | null + /** + * Omit specific fields from the userModuleAccess + */ + omit?: Prisma.userModuleAccessOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.userModuleAccessInclude | null + /** + * Filter, which userModuleAccess to fetch. + */ + where: Prisma.userModuleAccessWhereUniqueInput +} + +/** + * userModuleAccess findUniqueOrThrow + */ +export type userModuleAccessFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the userModuleAccess + */ + select?: Prisma.userModuleAccessSelect | null + /** + * Omit specific fields from the userModuleAccess + */ + omit?: Prisma.userModuleAccessOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.userModuleAccessInclude | null + /** + * Filter, which userModuleAccess to fetch. + */ + where: Prisma.userModuleAccessWhereUniqueInput +} + +/** + * userModuleAccess findFirst + */ +export type userModuleAccessFindFirstArgs = { + /** + * Select specific fields to fetch from the userModuleAccess + */ + select?: Prisma.userModuleAccessSelect | null + /** + * Omit specific fields from the userModuleAccess + */ + omit?: Prisma.userModuleAccessOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.userModuleAccessInclude | null + /** + * Filter, which userModuleAccess to fetch. + */ + where?: Prisma.userModuleAccessWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of userModuleAccesses to fetch. + */ + orderBy?: Prisma.userModuleAccessOrderByWithRelationInput | Prisma.userModuleAccessOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for userModuleAccesses. + */ + cursor?: Prisma.userModuleAccessWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` userModuleAccesses 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` userModuleAccesses. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of userModuleAccesses. + */ + distinct?: Prisma.UserModuleAccessScalarFieldEnum | Prisma.UserModuleAccessScalarFieldEnum[] +} + +/** + * userModuleAccess findFirstOrThrow + */ +export type userModuleAccessFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the userModuleAccess + */ + select?: Prisma.userModuleAccessSelect | null + /** + * Omit specific fields from the userModuleAccess + */ + omit?: Prisma.userModuleAccessOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.userModuleAccessInclude | null + /** + * Filter, which userModuleAccess to fetch. + */ + where?: Prisma.userModuleAccessWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of userModuleAccesses to fetch. + */ + orderBy?: Prisma.userModuleAccessOrderByWithRelationInput | Prisma.userModuleAccessOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for userModuleAccesses. + */ + cursor?: Prisma.userModuleAccessWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` userModuleAccesses 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` userModuleAccesses. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of userModuleAccesses. + */ + distinct?: Prisma.UserModuleAccessScalarFieldEnum | Prisma.UserModuleAccessScalarFieldEnum[] +} + +/** + * userModuleAccess findMany + */ +export type userModuleAccessFindManyArgs = { + /** + * Select specific fields to fetch from the userModuleAccess + */ + select?: Prisma.userModuleAccessSelect | null + /** + * Omit specific fields from the userModuleAccess + */ + omit?: Prisma.userModuleAccessOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.userModuleAccessInclude | null + /** + * Filter, which userModuleAccesses to fetch. + */ + where?: Prisma.userModuleAccessWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of userModuleAccesses to fetch. + */ + orderBy?: Prisma.userModuleAccessOrderByWithRelationInput | Prisma.userModuleAccessOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing userModuleAccesses. + */ + cursor?: Prisma.userModuleAccessWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `ยฑn` userModuleAccesses 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` userModuleAccesses. + */ + skip?: number + distinct?: Prisma.UserModuleAccessScalarFieldEnum | Prisma.UserModuleAccessScalarFieldEnum[] +} + +/** + * userModuleAccess create + */ +export type userModuleAccessCreateArgs = { + /** + * Select specific fields to fetch from the userModuleAccess + */ + select?: Prisma.userModuleAccessSelect | null + /** + * Omit specific fields from the userModuleAccess + */ + omit?: Prisma.userModuleAccessOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.userModuleAccessInclude | null + /** + * The data needed to create a userModuleAccess. + */ + data: Prisma.XOR +} + +/** + * userModuleAccess createMany + */ +export type userModuleAccessCreateManyArgs = { + /** + * The data used to create many userModuleAccesses. + */ + data: Prisma.userModuleAccessCreateManyInput | Prisma.userModuleAccessCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * userModuleAccess createManyAndReturn + */ +export type userModuleAccessCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the userModuleAccess + */ + select?: Prisma.userModuleAccessSelectCreateManyAndReturn | null + /** + * Omit specific fields from the userModuleAccess + */ + omit?: Prisma.userModuleAccessOmit | null + /** + * The data used to create many userModuleAccesses. + */ + data: Prisma.userModuleAccessCreateManyInput | Prisma.userModuleAccessCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.userModuleAccessIncludeCreateManyAndReturn | null +} + +/** + * userModuleAccess update + */ +export type userModuleAccessUpdateArgs = { + /** + * Select specific fields to fetch from the userModuleAccess + */ + select?: Prisma.userModuleAccessSelect | null + /** + * Omit specific fields from the userModuleAccess + */ + omit?: Prisma.userModuleAccessOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.userModuleAccessInclude | null + /** + * The data needed to update a userModuleAccess. + */ + data: Prisma.XOR + /** + * Choose, which userModuleAccess to update. + */ + where: Prisma.userModuleAccessWhereUniqueInput +} + +/** + * userModuleAccess updateMany + */ +export type userModuleAccessUpdateManyArgs = { + /** + * The data used to update userModuleAccesses. + */ + data: Prisma.XOR + /** + * Filter which userModuleAccesses to update + */ + where?: Prisma.userModuleAccessWhereInput + /** + * Limit how many userModuleAccesses to update. + */ + limit?: number +} + +/** + * userModuleAccess updateManyAndReturn + */ +export type userModuleAccessUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the userModuleAccess + */ + select?: Prisma.userModuleAccessSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the userModuleAccess + */ + omit?: Prisma.userModuleAccessOmit | null + /** + * The data used to update userModuleAccesses. + */ + data: Prisma.XOR + /** + * Filter which userModuleAccesses to update + */ + where?: Prisma.userModuleAccessWhereInput + /** + * Limit how many userModuleAccesses to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.userModuleAccessIncludeUpdateManyAndReturn | null +} + +/** + * userModuleAccess upsert + */ +export type userModuleAccessUpsertArgs = { + /** + * Select specific fields to fetch from the userModuleAccess + */ + select?: Prisma.userModuleAccessSelect | null + /** + * Omit specific fields from the userModuleAccess + */ + omit?: Prisma.userModuleAccessOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.userModuleAccessInclude | null + /** + * The filter to search for the userModuleAccess to update in case it exists. + */ + where: Prisma.userModuleAccessWhereUniqueInput + /** + * In case the userModuleAccess found by the `where` argument doesn't exist, create a new userModuleAccess with this data. + */ + create: Prisma.XOR + /** + * In case the userModuleAccess was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * userModuleAccess delete + */ +export type userModuleAccessDeleteArgs = { + /** + * Select specific fields to fetch from the userModuleAccess + */ + select?: Prisma.userModuleAccessSelect | null + /** + * Omit specific fields from the userModuleAccess + */ + omit?: Prisma.userModuleAccessOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.userModuleAccessInclude | null + /** + * Filter which userModuleAccess to delete. + */ + where: Prisma.userModuleAccessWhereUniqueInput +} + +/** + * userModuleAccess deleteMany + */ +export type userModuleAccessDeleteManyArgs = { + /** + * Filter which userModuleAccesses to delete + */ + where?: Prisma.userModuleAccessWhereInput + /** + * Limit how many userModuleAccesses to delete. + */ + limit?: number +} + +/** + * userModuleAccess without action + */ +export type userModuleAccessDefaultArgs = { + /** + * Select specific fields to fetch from the userModuleAccess + */ + select?: Prisma.userModuleAccessSelect | null + /** + * Omit specific fields from the userModuleAccess + */ + omit?: Prisma.userModuleAccessOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.userModuleAccessInclude | null +} diff --git a/prisma/mariadb/models/account.prisma b/prisma/mariadb/models/account.prisma new file mode 100644 index 0000000..c2c1d3a --- /dev/null +++ b/prisma/mariadb/models/account.prisma @@ -0,0 +1,91 @@ +model account { + id BigInt @id @default(autoincrement()) + customer_id String? @db.VarChar(32) //variable string, composition varies a lot, used by customers to identify their account + date_orig BigInt? //timestamp + date_last BigInt? //timestamp + date_expire BigInt? //not used + language_id String @default(dbgenerated("(francais)")) @db.VarChar(32) //either "anglais", "francais" + country_id Int @default(124) //124 (canada), 450 (Madagascar) or 840 (Virgin island) + currency_id Int? //not used + username String? @db.VarChar(128) + password String? @db.VarChar(128) + group_id Int @default(6) @db.TinyInt //refers to the account_group table + misc String? @db.VarChar(128) //comments of some sort + status Int? //1-actif, 2-suspension,3- non paiement, 4- terminรฉ, 5- recouvre, 6-creance + first_name String? @db.VarChar(128) + middle_name String? @db.VarChar(128) //not used + last_name String? @db.VarChar(128) + mandataire String? @db.VarChar(128) //sometimes the first_name and last_name are found here, sometimes its the name of someone who manage the account + title String? @db.VarChar(128) //Mme, Mrs, Mr., M., "" + email String? @db.VarChar(255) + email_autre String? @db.VarChar(255) //second email + company String? @db.VarChar(255) //name of the company account + contact String @db.Text //name of the contact at the company or account contact + address1 String? @db.VarChar(128) + address2 String? @db.VarChar(128) //sometimes used to specify the unit, the suit, the camping lot or used as a note??? + city String? @db.VarChar(128) + state String? @db.VarChar(32) + zip String? @db.VarChar(16) + tel_home String? @db.VarChar(16) + tel_office String? @db.VarChar(16) + tel_office_ext String? @db.VarChar(4) + cell String? @db.VarChar(16) + fax String? @db.VarChar(16) + invoice_delivery Int @default(2) //1-email, 2-poste, 3-default + land_owner Boolean @default(false) //tinyInt boolean + frais Boolean @default(false) //tinyInt boolean + ppa Boolean @default(false) + ppa_all_invoice Int @default(0) @db.TinyInt + ppa_name String? @db.VarChar(64) + ppa_code String? @db.VarChar(255) + ppa_branch String? @db.VarChar(255) + ppa_account String? @db.VarChar(255) + ppa_amount Decimal @default(0.00) @db.Decimal(6, 2) + ppa_amount_buffer Float @default(30.00) + ppa_all_tmp Int @default(0) @db.TinyInt + ppa_fixed Boolean @default(false) + commercial Boolean @default(false) + vip Boolean @default(false) + tax_group Int @default(1) @db.TinyInt + data_check Boolean @default(false) + created_by Int? + notes_client String? @db.VarChar(256) //comments left by customer via the "portail" + keyword String? @db.VarChar(512) + terminate_reason String? @db.VarChar(32) //install,demenage, cie, autre, NULL + terminate_cie String? @db.VarChar(32) // null, bell, autre, videotron, cogeco, deery, explirnet, sftl, haut-richelieu + terminate_note String? @db.MediumText // comment on the termination of the account + terminate_date String? @db.VarChar(16) + call Boolean @default(false) //tinyInt boolean + pub Boolean @default(true) //TinyInt boolean + portal_client_log Boolean @default(false) //TinyInt boolean + mauvais_payeur Boolean @default(false) //TinyInt boolean + renew_phone Boolean @default(false) //TinyInt boolean + ppa_cc Int @default(0) @db.TinyInt + stripe_id String? @db.VarChar(32) + + @@index([customer_id], map: "customer_id") + @@index([id, status], map: "id") + @@index([status], map: "status") +} + +model account_group { + id Int @id @default(autoincrement()) @db.TinyInt //see group_id in account table for references + date_orig BigInt? + group_name String? @db.VarChar(64) //group name +} + +// this table could be ignored ? see comment on memo column +model account_memo { + id BigInt @id @default(autoincrement()) + date_orig BigInt? + last_updated BigInt @default(0) @db.UnsignedBigInt + staff_id BigInt? + account_id BigInt? + memo String? @db.VarChar(1024) //comment, seems to be a copy paste of a form, giving a bunch of infos on the account, should be queried instead of copied + color String @default(dbgenerated("(000000)")) @db.VarChar(6) //CSS + bcolor String @default(dbgenerated("(E0E0E0)")) @db.VarChar(6) //CSS + border String @default(dbgenerated("(000000)")) @db.VarChar(6) //CSS + + @@index([account_id], map: "account_id") + @@index([staff_id], map: "staff_id") +} diff --git a/prisma/mariadb/models/compta.prisma b/prisma/mariadb/models/compta.prisma new file mode 100644 index 0000000..e069df7 --- /dev/null +++ b/prisma/mariadb/models/compta.prisma @@ -0,0 +1,124 @@ +model compta_comptes { + id BigInt @id @default(autoincrement()) + category String? @db.VarChar(64) + num_compte String? @db.VarChar(16) + desc String? @db.MediumText +} + +model compta_comptes_soldes { + id BigInt @id @default(autoincrement()) + num_compte Int + year Int + amount Float @db.Float + comment String @db.VarChar(64) + type String @db.VarChar(3) +} + +model compta_journal_ecriture { + id BigInt @id @default(autoincrement()) + date_orig BigInt? + type String? @db.VarChar(4) + num BigInt? + customer_id String? @db.VarChar(32) + full_name String? @db.VarChar(256) + desc String? @db.MediumText + mo String? @db.VarChar(4) + em Int @default(0) @db.TinyInt + + @@index([customer_id], map: "customer_id") + @@index([date_orig], map: "date_orig") + @@index([num], map: "num") +} + +model compta_journal_ecriture_bk { + id BigInt @id @default(autoincrement()) + date_orig BigInt? + type String? @db.VarChar(4) + num BigInt? + customer_id String? @db.VarChar(32) + full_name String? @db.VarChar(256) + desc String? @db.MediumText + mo String? @db.VarChar(4) + em Int @default(0) @db.TinyInt + + @@index([customer_id], map: "customer_id") + @@index([date_orig], map: "date_orig") + @@index([num], map: "num") +} + +model compta_journal_ecriture_detail { + id BigInt @id @default(autoincrement()) + journal_id BigInt? + num_compte BigInt? + amount Float? + action String? @db.VarChar(16) + + @@index([journal_id], map: "journal_id") +} + +model compta_journal_ecriture_detail_bk { + id BigInt @id @default(autoincrement()) + journal_id BigInt? + num_compte BigInt? + amount Float? + action String? @db.VarChar(16) + + @@index([journal_id], map: "journal_id") +} + +model compta_periode { + month Int @id @default(7) +} + +/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments +model compta_ppa_file_id { + last_id Int @id @default(1) +} + +model compta_setup { + setup_id Int @id @default(1) + period_month Int @default(7) + ppa_id Int @default(1) + excedent_max Float @default(0) + month_closed BigInt? + pay_week_closed Int @db.UnsignedTinyInt + attachment_ext String @db.MediumText + netadmin_dispo Int @default(0) @db.UnsignedInt + imap_token String? @db.Text +} + +model credit_code { + id Int @id @default(autoincrement()) + code String @db.VarChar(16) + desc String @db.VarChar(256) +} + +model tax { + id Int @id @default(autoincrement()) + name String? @db.VarChar(128) + description String? @db.VarChar(255) + rate Float? +} + +model tax_group { + id Int @id @default(autoincrement()) + name String? @db.VarChar(128) + description String? @db.VarChar(255) + tax String? @db.VarChar(128) +} + +model td_payable { + id Int @id @default(autoincrement()) @db.UnsignedInt + ticket_id Int @default(0) @db.UnsignedInt + invoice String @default(dbgenerated("()")) @db.VarChar(32) + date_invoice String @db.VarChar(20) + fournisseur String? @default(dbgenerated("()")) @db.VarChar(128) + montant Decimal @default(0.00) @db.Decimal(15, 2) + devise String @default(dbgenerated("(ca)")) @db.VarChar(2) + methode String? @default(dbgenerated("()")) @db.VarChar(64) + reference String? @default(dbgenerated("()")) @db.VarChar(128) + date_paiement String? @default(dbgenerated("()")) @db.VarChar(20) + releve String? @db.VarChar(128) + + @@index([ticket_id], map: "ticket_id") +} \ No newline at end of file diff --git a/prisma/mariadb/models/conso.prisma b/prisma/mariadb/models/conso.prisma new file mode 100644 index 0000000..e5805d8 --- /dev/null +++ b/prisma/mariadb/models/conso.prisma @@ -0,0 +1,102 @@ +model conso { + id BigInt @id @default(autoincrement()) + ip_id String? @db.VarChar(16) + date BigInt? + total BigInt? @default(0) + total_day BigInt? @default(0) + total_night BigInt? @default(0) + + @@index([ip_id], map: "ip_id") +} + +model conso_archive { + id BigInt @id @default(autoincrement()) + ip_id String? @db.VarChar(16) + date BigInt? + total BigInt? @default(0) + total_day BigInt? @default(0) + total_night BigInt? @default(0) + + @@index([ip_id], map: "ip_id") +} + +model conso_avis { + id Int @id @default(autoincrement()) @db.UnsignedInt + date BigInt + account_id Int @db.UnsignedInt + delivery_id Int @default(0) @db.UnsignedInt + service_id Int @default(0) @db.UnsignedInt + ip_id Int + avis String @db.VarChar(32) +} + +model conso_radius { + id BigInt @id @default(autoincrement()) @db.UnsignedBigInt + username String @db.VarChar(32) + date String @db.VarChar(32) + download String @db.Text + upload String @db.Text + nb_sess Int @default(0) @db.UnsignedInt + + @@index([date], map: "date") + @@index([username], map: "username") +} + +model conso_radius_daily { + id Int @id @default(autoincrement()) @db.UnsignedInt + username String @db.VarChar(32) + date String @db.VarChar(32) + download_nuit String @db.Text + upload_nuit String @db.Text + download_jour String @db.Text + upload_jour String @db.Text + + @@index([date], map: "date") + @@index([username], map: "username") +} + +model conso_radius_daily2 { + id BigInt @id @default(autoincrement()) @db.UnsignedBigInt + username String @db.VarChar(32) + date String @db.VarChar(32) + download_nuit String @default(dbgenerated("(0)")) @db.VarChar(64) + upload_nuit String @default(dbgenerated("(0)")) @db.VarChar(64) + download_jour String @default(dbgenerated("(0)")) @db.VarChar(64) + upload_jour String @default(dbgenerated("(0)")) @db.VarChar(64) + + @@index([date], map: "date") + @@index([username], map: "username") +} + +model conso_radius_hourly { + id Int @id @default(autoincrement()) @db.UnsignedInt + username String @db.VarChar(32) + date String @db.VarChar(32) + download String @db.Text + upload String @db.Text + + @@index([date], map: "date") + @@index([username], map: "username") +} + +model conso_radius_monthly { + id Int @id @default(autoincrement()) @db.UnsignedInt + date String @db.VarChar(32) + username String @db.VarChar(32) + nuit String @db.Text + jour String @db.Text + + @@index([date], map: "date") + @@index([username], map: "username") +} + +model conso_radius_monthly2 { + id Int @id @default(autoincrement()) @db.UnsignedInt + date String @db.VarChar(32) + username String @db.VarChar(32) + nuit String @default(dbgenerated("(0)")) @db.VarChar(64) + jour String @default(dbgenerated("(0)")) @db.VarChar(64) + + @@index([date], map: "date") + @@index([username], map: "username") +} diff --git a/prisma/mariadb/models/delivery.prisma b/prisma/mariadb/models/delivery.prisma new file mode 100644 index 0000000..6c5a22b --- /dev/null +++ b/prisma/mariadb/models/delivery.prisma @@ -0,0 +1,42 @@ +model delivery { + id BigInt @id @default(autoincrement()) + account_id BigInt? + name String @db.VarChar(32) + comment String @db.VarChar(512) + date_orig BigInt? + address1 String? @db.VarChar(128) + address2 String? @db.VarChar(128) + city String? @db.VarChar(32) + state String? @db.VarChar(32) + zip String? @db.VarChar(16) + longitude Decimal @db.Decimal(12, 7) + latitude Decimal @db.Decimal(12, 7) + tel_home String? @db.VarChar(16) + tel_office String? @db.VarChar(16) + tel_office_ext String? @db.VarChar(4) + cell String? @db.VarChar(12) + fax String? @db.VarChar(12) + email String? @db.VarChar(255) + quota_max_day BigInt @default(0) @db.UnsignedBigInt + quota_max_night BigInt @default(0) @db.UnsignedBigInt + contact String? @db.VarChar(128) + expanded Int? @default(0) @db.TinyInt + placemarks_id BigInt? @db.UnsignedBigInt + epg_subid Int @default(0) @db.UnsignedInt + + @@index([account_id], map: "account_id") + @@index([placemarks_id], map: "placemarks_id") +} + +model delivery_history { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + date_orig BigInt @db.UnsignedBigInt + address1 String @db.VarChar(128) + address2 String @db.VarChar(128) + city String @db.VarChar(128) + state String @db.VarChar(32) + zip String @db.VarChar(8) + + @@index([account_id], map: "account_id") +} \ No newline at end of file diff --git a/prisma/mariadb/models/deprecated.prisma b/prisma/mariadb/models/deprecated.prisma new file mode 100644 index 0000000..112f2de --- /dev/null +++ b/prisma/mariadb/models/deprecated.prisma @@ -0,0 +1,151 @@ +/// ************** DEPRECATED ******************************************** +model debug { + id BigInt @id @default(autoincrement()) + autor String? @db.VarChar(32) + url String? @db.VarChar(128) + date_last BigInt? + desc String? @db.MediumText + note4autor String? @db.MediumText + note4dev String? @db.MediumText + status String? @db.VarChar(64) +} + +model carte_temps { + id Int @id @default(autoincrement()) @db.UnsignedInt + week Int @db.UnsignedTinyInt + year Int? @db.UnsignedInt + date BigInt @db.UnsignedBigInt + staff_id BigInt @db.UnsignedBigInt + start_am BigInt? @db.UnsignedBigInt + end_am BigInt? @db.UnsignedBigInt + start_pm BigInt? @db.UnsignedBigInt + end_pm BigInt? @db.UnsignedBigInt + start_night BigInt? @db.UnsignedBigInt + end_night BigInt? @db.UnsignedBigInt + relais Float? + comment String? @db.Text + note_int String? @db.Text + conge Int @default(0) @db.UnsignedTinyInt + appr String? @db.VarChar(8) + appr_dir String? @db.VarChar(8) + + @@index([staff_id], map: "staff_id") +} + +model carte_temps_periode { + id Int @id @default(autoincrement()) @db.UnsignedSmallInt + debut String @db.VarChar(16) + fin String @db.VarChar(16) + paid String @db.VarChar(16) + periode Int @db.UnsignedTinyInt + annee Int @db.UnsignedSmallInt +} + +model banque_heure_staff { + id Int @id @default(autoincrement()) @db.UnsignedInt + staff_id Int @db.UnsignedInt + week Int @db.UnsignedTinyInt + year Int @db.UnsignedSmallInt + sunday String? @db.VarChar(16) + heure Float + + @@index([staff_id], map: "staff_id") +} + +model hour_bank { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id BigInt @db.UnsignedBigInt + remaining_time Int @default(0) + expiration_date BigInt @default(0) @db.UnsignedBigInt + note String? @db.MediumText + recurrence Int @default(0) @db.UnsignedTinyInt + reset_value Int @default(0) @db.UnsignedSmallInt + + @@index([account_id], map: "account_id") +} + +model hour_bank_detail { + id Int @id @default(autoincrement()) + hour_id Int + staff_id BigInt? @db.UnsignedBigInt + date_orig BigInt @db.UnsignedBigInt + used_time Int @default(0) @db.SmallInt + ticket_id BigInt? @db.UnsignedBigInt + working_order String? @db.VarChar(16) + detail String? @db.MediumText + + @@index([hour_id], map: "hour_id") +} + + +model test { + id Int @id @default(autoincrement()) @db.UnsignedInt + text String @db.Text + c2 Int @default(1) +} + +//this table is for CSS class only, no other uses +model account_memo_template { + id Int @id @default(autoincrement()) + name String @db.VarChar(32) + color String @db.VarChar(6) + bcolor String @db.VarChar(6) + border String @default(dbgenerated("(000000)")) @db.VarChar(6) +} + +//not used +model notes { + id Int @id @default(autoincrement()) + account_id Int @db.UnsignedInt + notes String @db.MediumText +} + +//NOT USED +model email { + id Int @id @default(autoincrement()) + account_id BigInt? + email String? @db.VarChar(128) + password String? @db.VarChar(128) +} + +//not relevant to ticket module +model client_pwd { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + date BigInt @db.UnsignedBigInt + uid String @db.VarChar(32) + used Boolean @default(false) +} + + +//NO USES FOR TICKETING PURPOSES +model account_profile { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + profile_id String @db.VarChar(64) + address_id String @db.VarChar(64) + card_id String @db.VarChar(64) + token String @db.VarChar(32) + initial_transaction String @db.VarChar(128) +} + + +//not relevant to ticket module +model deposit_slip { + id Int @id @default(autoincrement()) + customer_id String? @db.VarChar(32) + name String? @db.VarChar(512) + amount Float @default(0) + type String @db.VarChar(32) + desc String? @db.VarChar(255) + date BigInt? @db.UnsignedBigInt +} + +//this table display suspended account +model account_suspension { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @unique(map: "account_id") @db.UnsignedInt + date_start BigInt @db.UnsignedBigInt + date_end BigInt @db.UnsignedBigInt + note String @db.VarChar(128) +} \ No newline at end of file diff --git a/prisma/mariadb/models/device.prisma b/prisma/mariadb/models/device.prisma new file mode 100644 index 0000000..52fd58a --- /dev/null +++ b/prisma/mariadb/models/device.prisma @@ -0,0 +1,72 @@ +model device { + id Int @id @default(autoincrement()) @db.UnsignedInt + delivery_id Int @db.UnsignedInt + category String @db.VarChar(64) + name String @db.VarChar(128) + manufacturier String? @db.VarChar(128) + model String? @db.VarChar(128) + sn String? @db.VarChar(128) + mac String? @db.VarChar(32) + manage String @db.VarChar(256) + port String @default(dbgenerated("()")) @db.VarChar(5) + protocol String @default(dbgenerated("(https)")) @db.VarChar(8) + manage_cli String @db.VarChar(256) + port_cli String @default(dbgenerated("()")) @db.VarChar(5) + protocol_cli String @db.VarChar(8) + user String @db.VarChar(64) + pass String @db.VarChar(128) + parent Int @default(0) @db.UnsignedInt + + @@index([delivery_id], map: "delivery_id") + @@index([sn], map: "sn") +} + +model device_archive { + id Int @id @default(autoincrement()) @db.UnsignedInt + delivery_id Int @db.UnsignedInt + category String @db.VarChar(64) + name String @db.VarChar(128) + manufacturier String? @db.VarChar(128) + model String? @db.VarChar(128) + sn String? @db.VarChar(128) + mac String? @db.VarChar(32) + manage String @db.VarChar(256) + port String @default(dbgenerated("()")) @db.VarChar(5) + protocol String @default(dbgenerated("(https)")) @db.VarChar(8) + manage_cli String @db.VarChar(256) + port_cli String @default(dbgenerated("()")) @db.VarChar(5) + protocol_cli String @db.VarChar(8) + user String @db.VarChar(64) + pass String @db.VarChar(128) + parent Int @default(0) @db.UnsignedInt + + @@index([delivery_id], map: "delivery_id") + @@index([sn], map: "sn") +} + +model device_attr { + id Int @id @default(autoincrement()) @db.UnsignedInt + device_id Int @db.UnsignedInt + attr String @db.VarChar(128) + value String @db.VarChar(128) + + @@index([device_id], map: "device_id") +} + +model device_link { + id Int @id @default(autoincrement()) @db.UnsignedInt + parent Int @db.UnsignedInt + child Int @db.UnsignedInt +} + +model device_template { + id Int @id @default(autoincrement()) @db.UnsignedInt + nom String @db.VarChar(128) +} + +model device_template_attr { + id Int @id @default(autoincrement()) @db.UnsignedInt + template_id Int @db.UnsignedInt + attr String @db.VarChar(128) + default_val String @db.VarChar(128) +} \ No newline at end of file diff --git a/prisma/mariadb/models/enum.prisma b/prisma/mariadb/models/enum.prisma new file mode 100644 index 0000000..214173e --- /dev/null +++ b/prisma/mariadb/models/enum.prisma @@ -0,0 +1,4 @@ +enum phone_addr_enhanced_capable { + Y + N +} \ No newline at end of file diff --git a/prisma/mariadb/models/fibre.prisma b/prisma/mariadb/models/fibre.prisma new file mode 100644 index 0000000..deac539 --- /dev/null +++ b/prisma/mariadb/models/fibre.prisma @@ -0,0 +1,81 @@ +model fibre { + id Int @id @default(autoincrement()) @db.UnsignedInt + terrain String @db.VarChar(16) + rue String @db.VarChar(128) + ville String @db.VarChar(128) + zip String @default(dbgenerated("()")) @db.VarChar(7) + ontid Int? @db.UnsignedInt + sn String? @db.VarChar(32) + tech Int @default(2) @db.UnsignedSmallInt + info_connect String @default(dbgenerated("(172.17.0.2)")) @db.VarChar(64) + frame Int? @db.UnsignedTinyInt + slot Int? @db.UnsignedTinyInt + port Int? @db.UnsignedTinyInt + vlan_manage Int? @db.UnsignedInt + vlan_internet Int? @db.UnsignedInt + vlan_telephone Int? @db.UnsignedInt + vlan_tele Int? @db.UnsignedInt + manage_service_id Int? @db.UnsignedInt + internet_service_id Int? @db.UnsignedInt + telephone_service_id Int? @db.UnsignedInt + tele_service_id Int? @db.UnsignedInt + service_id Int? @db.UnsignedInt + nb_drop Int @default(0) @db.UnsignedInt + placemarks_id BigInt? @db.UnsignedBigInt + appartements_id BigInt? @db.UnsignedBigInt + latitude Float? @db.Float + longitude Float? @db.Float + boitier_pas_install Int? @db.UnsignedTinyInt + description String? @db.VarChar(50) + suite Int @default(0) @db.UnsignedTinyInt + distance Int? @db.UnsignedInt + nb_portees Int? @db.UnsignedTinyInt + + @@index([appartements_id, sn], map: "appartements_id") + @@index([info_connect, appartements_id, sn, slot, port], map: "info_connect") + @@index([placemarks_id, sn], map: "placemarks_id") + @@index([service_id], map: "service_id") +} + +model fibre_olt { + id Int @id @default(autoincrement()) @db.UnsignedInt + tech Int @db.UnsignedSmallInt + ip String @db.VarChar(64) + description String @db.VarChar(128) +} + +model fibre_service_port { + id Int @id @default(autoincrement()) @db.UnsignedInt + last_service_id Int @db.UnsignedInt +} + +model fibre_suivi { + id Int @id @default(autoincrement()) @db.UnsignedInt + customer_id String? @db.VarChar(32) + first_name String @db.VarChar(64) + last_name String @db.VarChar(64) + address String @db.VarChar(128) + city String @db.VarChar(128) + zip String @db.VarChar(7) + phone String @db.VarChar(10) + email String? @db.VarChar(64) + longitude Decimal @db.Decimal(12, 7) + latitude Decimal @db.Decimal(12, 7) + called Int @default(-1) @db.TinyInt + create_by Int @default(0) @db.UnsignedInt + note String @db.Text +} + +model fibre_tech { + id Int @id @default(autoincrement()) @db.UnsignedInt + description String @db.VarChar(128) +} + +model fibre_videotron { + id Int @id @default(autoincrement()) @db.UnsignedInt + date String @db.VarChar(16) + download String @default(dbgenerated("(0)")) @db.VarChar(128) + upload String @default(dbgenerated("(0)")) @db.VarChar(128) + ethernet String @default(dbgenerated("()")) @db.VarChar(64) + interface String @default(dbgenerated("()")) @db.VarChar(128) +} \ No newline at end of file diff --git a/prisma/mariadb/models/gantt.prisma b/prisma/mariadb/models/gantt.prisma new file mode 100644 index 0000000..5012bb9 --- /dev/null +++ b/prisma/mariadb/models/gantt.prisma @@ -0,0 +1,14 @@ + +model gantt { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @default(0) @db.UnsignedInt + name String? @db.VarChar(128) + gantt String @db.Text + closed Int @default(0) @db.TinyInt +} + +model gantt_template { + id Int @id @default(autoincrement()) @db.UnsignedInt + name String? @db.VarChar(128) + gantt String @db.Text +} \ No newline at end of file diff --git a/prisma/mariadb/models/intranet.prisma b/prisma/mariadb/models/intranet.prisma new file mode 100644 index 0000000..6b08e88 --- /dev/null +++ b/prisma/mariadb/models/intranet.prisma @@ -0,0 +1,89 @@ +model intranet_doc { + id BigInt @id @default(autoincrement()) + account_id BigInt + date BigInt + title String @db.VarChar(128) + msg String @db.MediumText + attachment String @db.VarChar(256) + unread_csv String @db.MediumText + path_id Int @db.UnsignedInt + priority_order Int @default(1) + update_timestamp DateTime @default(now()) @db.Timestamp(0) + + @@index([account_id], map: "account_id") + @@index([path_id], map: "path_id") +} + +model intranet_doc_paths { + id Int @id @default(autoincrement()) @db.UnsignedInt + description String @db.VarChar(256) + parent_id Int? @db.UnsignedInt + priority_order Int @default(1) +} + +model intranet_doc_reply { + id BigInt @id @default(autoincrement()) + feed_id BigInt + date BigInt + account_id BigInt + msg String @db.MediumText + attachment BigInt @default(0) + update_timestamp DateTime @default(now()) @db.Timestamp(0) +} + +model intranet_feed { + id BigInt @id @default(autoincrement()) + account_id BigInt + date BigInt + title String @db.VarChar(128) + msg String @db.MediumText + attachment String @db.VarChar(256) + unread_csv String @db.MediumText +} + +model intranet_feed_reply { + id BigInt @id @default(autoincrement()) + feed_id BigInt + date BigInt + account_id BigInt + msg String @db.MediumText + attachment BigInt +} + +model intranet_techniciens { + id BigInt @id @default(autoincrement()) + account_id BigInt + date BigInt + title String @db.VarChar(128) + msg String @db.MediumText + attachment String @db.VarChar(256) + unread_csv String @db.MediumText +} + +model intranet_techniciens_reply { + id BigInt @id @default(autoincrement()) + feed_id BigInt + date BigInt + account_id BigInt + msg String @db.MediumText + attachment BigInt +} + +model intranet_techno { + id BigInt @id @default(autoincrement()) + account_id BigInt + date BigInt + title String @db.VarChar(128) + msg String @db.MediumText + attachment String @db.VarChar(256) + unread_csv String @db.MediumText +} + +model intranet_techno_reply { + id BigInt @id @default(autoincrement()) + feed_id BigInt + date BigInt + account_id BigInt + msg String @db.MediumText + attachment BigInt +} \ No newline at end of file diff --git a/prisma/mariadb/models/invoice.prisma b/prisma/mariadb/models/invoice.prisma new file mode 100644 index 0000000..d1c6782 --- /dev/null +++ b/prisma/mariadb/models/invoice.prisma @@ -0,0 +1,150 @@ +/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments +model invoice { + id BigInt @id @default(autoincrement()) + date_orig BigInt? + process_status Int? @db.TinyInt + billing_status Int? @db.TinyInt + refund_status Int? @db.TinyInt + print_status Int? @db.TinyInt + account_id BigInt? + total_amt Float? + billed_amt Float? + due_date BigInt? + notes String? @db.MediumText + template_message String? @db.MediumText + email_status Int? @db.TinyInt + working_order String? @db.VarChar(64) + correction Int @default(0) @db.TinyInt + ppa_charge Int @default(0) @db.TinyInt + credit_code_id Int @default(0) @db.TinyInt + + @@index([account_id], map: "account_id") + @@index([billing_status], map: "billing_status") + @@index([date_orig], map: "date_orig") + @@index([refund_status], map: "refund_status") +} + +/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments +model invoice_bk { + id BigInt @id @default(autoincrement()) + date_orig BigInt? + process_status Int? @db.TinyInt + billing_status Int? @db.TinyInt + refund_status Int? @db.TinyInt + print_status Int? @db.TinyInt + account_id BigInt? + total_amt Float? + billed_amt Float? + due_date BigInt? + notes String? @db.MediumText + template_message String? @db.MediumText + email_status Int? @db.TinyInt + working_order String? @db.VarChar(64) + correction Int @default(0) @db.TinyInt + ppa_charge Int @default(0) @db.TinyInt + credit_code_id Int @default(0) @db.TinyInt + + @@index([account_id], map: "account_id") + @@index([billing_status], map: "billing_status") + @@index([date_orig], map: "date_orig") + @@index([refund_status], map: "refund_status") +} + +model invoice_call { + id Int @id @default(autoincrement()) @db.UnsignedInt + date BigInt @db.UnsignedBigInt + number String @db.VarChar(10) + amount Float +} + +model invoice_item { + id BigInt @id @default(autoincrement()) + service_id BigInt? + invoice_id BigInt? + sku String? @db.VarChar(128) + quantity Float @default(0) + product_name String? @db.VarChar(512) + unitary_price Float? + nosub Boolean @default(false) + delivery_name String? @db.VarChar(32) + + @@index([invoice_id], map: "invoice_id") +} + +model invoice_item_bk { + id BigInt @id @default(autoincrement()) + service_id BigInt? + invoice_id BigInt? + sku String? @db.VarChar(128) + quantity Float @default(0) + product_name String? @db.VarChar(512) + unitary_price Float? + nosub Boolean @default(false) + delivery_name String? @db.VarChar(32) + + @@index([invoice_id], map: "invoice_id") +} + +model invoice_msg_template { + id BigInt @id @default(autoincrement()) + name String? @db.VarChar(32) + message String? @db.MediumText +} + +model invoice_tax { + id BigInt @id @default(autoincrement()) + invoice_id BigInt? + tax_name String? @db.VarChar(128) + tax_description String? @db.VarChar(128) + tax_rate Float? + amount Float? + + @@index([invoice_id], map: "invoice_id") +} + +model invoice_tax_bk { + id BigInt @id @default(autoincrement()) + invoice_id BigInt? + tax_name String? @db.VarChar(128) + tax_description String? @db.VarChar(128) + tax_rate Float? + amount Float? + + @@index([invoice_id], map: "invoice_id") +} + +/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments +model accord_paiement { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + date_accord BigInt + date_echeance BigInt + date_coupure BigInt @db.UnsignedBigInt + raison_changement String? @db.Text + montant Decimal @db.Decimal(10, 2) + method Int @default(0) @db.UnsignedTinyInt + ferie Boolean @default(false) + note String? @db.Text + status Int @default(-1) @db.TinyInt + staff_id Int @default(1) @db.UnsignedInt + date_create String @db.VarChar(16) + + @@index([account_id], map: "account_id") +} + +model autologin { + id Int @id @default(autoincrement()) @db.UnsignedInt + token String @db.VarChar(32) + date String @db.VarChar(16) + staff Int @db.UnsignedInt +} + +model statement { + id BigInt @id @default(autoincrement()) + date BigInt? + type String? @db.VarChar(2) + number BigInt? + reference String? @db.MediumText + amt Float? + paid_amt Float? +} \ No newline at end of file diff --git a/prisma/mariadb/models/ip.prisma b/prisma/mariadb/models/ip.prisma new file mode 100644 index 0000000..79920f5 --- /dev/null +++ b/prisma/mariadb/models/ip.prisma @@ -0,0 +1,58 @@ +model ip { + id Int @id @default(autoincrement()) + service_id BigInt? + ip String? @db.VarChar(32) + prive String? @db.VarChar(32) + ip_relais String? @db.VarChar(128) + technology String? @db.VarChar(32) + name_access_point String? @db.VarChar(64) + mac String? @db.VarChar(32) + web_link String? @db.VarChar(128) + link_relais String? @db.VarChar(128) + ip_conso Int @default(0) @db.TinyInt + actif Int @default(1) @db.TinyInt + comment String? @db.MediumText + cidr String? @db.VarChar(32) + last_updated DateTime @default(now()) @db.DateTime(0) + + @@index([ip], map: "ip") + @@index([prive], map: "prive") + @@index([service_id], map: "service_id") +} + +model ip_admin { + id Int @id @default(autoincrement()) @db.UnsignedInt + ip String @db.VarChar(20) + comment String? @db.VarChar(128) +} + +model ip_history { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + delivery_id Int @db.UnsignedInt + service_id Int @db.UnsignedInt + ip String @db.VarChar(32) + date BigInt @db.UnsignedBigInt +} + +model ip_pp { + id Int @id @default(autoincrement()) @db.UnsignedInt + ip_prive String @db.VarChar(32) + ip_public String @db.VarChar(32) + date BigInt @db.UnsignedBigInt + ip_id String @default(dbgenerated("(0)")) @db.VarChar(64) +} + +model ip_static { + id Int @id @default(autoincrement()) @db.UnsignedInt + ip String @unique(map: "ip") @db.VarChar(32) + static Boolean @default(false) + reverse String? @db.VarChar(128) +} + +model ip_targo { + id Int @id @default(autoincrement()) @db.UnsignedInt + ip String @db.VarChar(15) + cidr Int @db.UnsignedTinyInt + comment String? @db.VarChar(128) +} \ No newline at end of file diff --git a/prisma/mariadb/models/licence.prisma b/prisma/mariadb/models/licence.prisma new file mode 100644 index 0000000..54ce0ea --- /dev/null +++ b/prisma/mariadb/models/licence.prisma @@ -0,0 +1,19 @@ + +model licence { + id Int @id @default(autoincrement()) @db.UnsignedInt + nom String @db.VarChar(128) + date String @db.VarChar(10) + can_manage String @db.VarChar(64) + comment String? @db.Text +} + +model licence_key { + id Int @id @default(autoincrement()) @db.UnsignedInt + licence_id Int @db.UnsignedInt + licence_key String @db.Text + date String @db.VarChar(10) + date_expire String? @db.VarChar(10) + comment String @db.Text + + @@index([licence_id], map: "licence_id") +} \ No newline at end of file diff --git a/prisma/mariadb/models/localisation.prisma b/prisma/mariadb/models/localisation.prisma new file mode 100644 index 0000000..f615219 --- /dev/null +++ b/prisma/mariadb/models/localisation.prisma @@ -0,0 +1,43 @@ +/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client. +model country { + id Int? @unique(map: "IDS") + name_en String? @db.VarChar(128) + name_fr String? @db.VarChar(128) + description String? @db.VarChar(128) + notes String? @db.VarChar(128) + two_code String? @db.VarChar(16) + three_code String? @db.VarChar(16) + + @@ignore +} + +model municipalite { + id Int @id @default(autoincrement()) @db.UnsignedInt + nom String @db.VarChar(64) + code String @db.VarChar(4) + administration String @db.VarChar(64) + often_used Boolean @default(false) +} + + +model sommaire_porte { + id Int @id @default(autoincrement()) @db.UnsignedInt + fibre_id Int @default(0) @db.UnsignedInt + id_adresse String @db.VarChar(48) + id_subvention String @db.VarChar(32) + adresse_subvention String @db.VarChar(128) + ville_subvention String @db.VarChar(128) + latitude String @db.VarChar(32) + longitude String @db.VarChar(32) + contest_adresse Int @default(0) @db.UnsignedTinyInt + new_adresse Int @default(0) @db.UnsignedTinyInt + placemarks_id BigInt @db.UnsignedBigInt +} + +model state { + id Int @id @default(autoincrement()) @db.UnsignedTinyInt + name_en String @db.VarChar(64) + name_fr String @db.VarChar(64) + abbrev String @db.VarChar(2) + country String @db.VarChar(8) +} diff --git a/prisma/mariadb/models/notification.prisma b/prisma/mariadb/models/notification.prisma new file mode 100644 index 0000000..fb608a2 --- /dev/null +++ b/prisma/mariadb/models/notification.prisma @@ -0,0 +1,18 @@ +model notification { + id Int @id @default(autoincrement()) @db.UnsignedInt + staff_id Int + endpoint String @db.Text + authToken String @db.Text + publicKey String @db.Text + contentEncoding String @default(dbgenerated("(aesgcm)")) @db.VarChar(128) + plateforme String? @db.VarChar(128) + + @@index([staff_id], map: "staff_id") +} + +model notification_payload { + id Int @id @default(autoincrement()) @db.UnsignedInt + notification_id Int @db.UnsignedInt + payload String @db.Text + timestamp DateTime @default(now()) @db.Timestamp(0) +} \ No newline at end of file diff --git a/prisma/mariadb/models/password.prisma b/prisma/mariadb/models/password.prisma new file mode 100644 index 0000000..23882ba --- /dev/null +++ b/prisma/mariadb/models/password.prisma @@ -0,0 +1,32 @@ +model passwords_manager { + id BigInt @id @default(autoincrement()) + title String @db.VarChar(64) + login String @db.VarChar(255) + pass String @db.Text + url String? @db.VarChar(255) + email String? @db.VarChar(128) + phone String? @db.VarChar(32) + category String? @db.VarChar(32) + subcategory String? @db.VarChar(32) + desc String? @db.MediumText + notes String? @db.MediumText + logs String? @db.MediumText + date_orig BigInt + date_last BigInt + users_granted String? @db.MediumText + group_granted String? @db.Text + created_by BigInt + keywords String? @db.MediumText +} + +model passwords_manager_cat { + id Int @id @default(autoincrement()) @db.TinyInt + title String @db.VarChar(32) + desc String? @db.VarChar(255) +} + +model passwords_manager_group { + id Int @id @default(autoincrement()) @db.UnsignedInt + name String @db.VarChar(32) + users String? @db.Text +} \ No newline at end of file diff --git a/prisma/mariadb/models/payment.prisma b/prisma/mariadb/models/payment.prisma new file mode 100644 index 0000000..107a608 --- /dev/null +++ b/prisma/mariadb/models/payment.prisma @@ -0,0 +1,28 @@ +model payment { + id BigInt @id @default(autoincrement()) + account_id BigInt? + date_orig BigInt? + amount Float? + applied_amt Float? + type String? @db.VarChar(25) + memo String? @db.VarChar(512) + reference String? @db.VarChar(128) + excedent Int @default(0) @db.TinyInt + correction Int @default(0) @db.TinyInt + cr Int @default(0) @db.TinyInt + uniqsess String? @db.VarChar(32) + + @@index([account_id], map: "account_id") + @@index([date_orig], map: "date_orig") +} + +model payment_item { + id BigInt @id @default(autoincrement()) + payment_id BigInt? + invoice_id BigInt? + amount Float? + date_orig BigInt? + + @@index([invoice_id], map: "invoice_id") + @@index([payment_id], map: "payment_id") +} \ No newline at end of file diff --git a/prisma/mariadb/models/pbx.prisma b/prisma/mariadb/models/pbx.prisma new file mode 100644 index 0000000..a3c07c2 --- /dev/null +++ b/prisma/mariadb/models/pbx.prisma @@ -0,0 +1,80 @@ + +/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments +model pbx { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + delivery_id Int @db.UnsignedInt + service_id Int @db.UnsignedInt + phone String @db.VarChar(10) + name String? @db.VarChar(32) + password String @db.VarChar(8) + vm_password String @default(dbgenerated("(1234)")) @db.VarChar(16) + has_vm Int @default(1) @db.TinyInt + vm_email String? @db.VarChar(64) + keep_msg Int @default(0) @db.TinyInt + vm_disk_quota Int @default(180) @db.UnsignedInt + int_code String @db.VarChar(4) + language String @default(dbgenerated("(fr)")) @db.VarChar(2) + call_911 String @db.VarChar(11) + max_calls Int @default(2) @db.UnsignedTinyInt + call_timeout Int @default(30) @db.UnsignedSmallInt + user_context String @default(dbgenerated("(sip.targo.ca)")) @db.VarChar(32) + country_whitelist String @db.Text + date_origin BigInt @db.UnsignedBigInt + date_update BigInt @db.UnsignedBigInt + update_by Int? @db.UnsignedInt + + @@index([phone], map: "phone") +} + +model pbx_app { + id Int @id @default(autoincrement()) @db.UnsignedInt + pbx_id Int @db.UnsignedInt + username String @db.VarChar(16) + mac String @db.VarChar(16) + app String @default(dbgenerated("(ht502)")) @db.VarChar(16) + note String @db.Text + date_origin BigInt @db.UnsignedBigInt + date_update BigInt @db.UnsignedBigInt + update_by Int? @db.UnsignedInt + + @@index([pbx_id], map: "pbx_id") +} + +model pbx_com { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + delivery_id Int @db.UnsignedInt + service_id Int @db.UnsignedInt + phone String @db.VarChar(10) + name String @db.VarChar(32) + failover String @db.VarChar(16) + auth_method String @default(dbgenerated("(password)")) @db.VarChar(8) + password String @db.VarChar(8) + ip String @db.VarChar(16) + int_code String @db.VarChar(4) + country_whitelist String @db.Text + language String @db.VarChar(2) + call_911 String @db.VarChar(16) + max_calls Int @db.UnsignedTinyInt + user_context String @db.VarChar(32) + date_origin String @db.VarChar(16) + date_update String @db.VarChar(16) + update_by Int @db.UnsignedInt +} + +model pbx_com_wl { + id Int @id @default(autoincrement()) + phone String @unique(map: "phone") @db.VarChar(10) + country_whitelist String @db.Text +} + +model pbx_fax { + id Int @id @default(autoincrement()) @db.UnsignedInt + number String @db.VarChar(10) + email String @db.VarChar(128) + description String? @db.VarChar(128) + service_id Int @default(0) @db.UnsignedInt + + @@index([number], map: "number") +} diff --git a/prisma/mariadb/models/phone.prisma b/prisma/mariadb/models/phone.prisma new file mode 100644 index 0000000..6df9e32 --- /dev/null +++ b/prisma/mariadb/models/phone.prisma @@ -0,0 +1,154 @@ +model phone { + id Int @id @default(autoincrement()) @db.UnsignedInt + service_id Int @db.UnsignedInt + phone_num String @db.VarChar(16) + note String? @db.Text + fournisseur String? @db.VarChar(64) +} + +model phone_addr { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + phone String @db.VarChar(16) + street_number String @db.VarChar(10) + apt String @db.VarChar(30) + street_name String @db.VarChar(84) + city String @db.VarChar(38) + state String @db.VarChar(2) + zip String @db.VarChar(10) + first_name String @db.VarChar(38) + last_name String @db.VarChar(100) + info String @db.VarChar(100) + enhanced_capable phone_addr_enhanced_capable @default(dbgenerated("(Y)")) + code_cauca String? @db.VarChar(3) + class_service String @default(dbgenerated("(RES)")) @db.VarChar(3) +} + +model phone_comwave { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id BigInt? + service_id BigInt? + requestId Int @unique(map: "requestId") @db.UnsignedInt + phoneNumber String @db.VarChar(10) + status String @default(dbgenerated("(P)")) @db.VarChar(1) + date String? @db.VarChar(10) + reason String? @db.Text +} + +model phone_note { + id Int @id @default(autoincrement()) @db.UnsignedInt + phone String @unique(map: "phone") @db.VarChar(11) + rate_center String? @db.VarChar(128) + fournisseur String @default(dbgenerated("(comwave)")) @db.VarChar(64) + note String? @db.Text +} + +model phone_provisioning { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + delivery_id Int @db.UnsignedInt + service_id Int @db.UnsignedInt + phone String @db.VarChar(10) + app String @db.VarChar(16) + mac String @db.VarChar(16) + password String @db.VarChar(32) + internationnal String? @db.VarChar(6) + date_orig BigInt @db.UnsignedBigInt + date_update BigInt @db.UnsignedBigInt +} + +model phonecall_channel { + id Int @id @default(autoincrement()) @db.UnsignedInt + timestamp BigInt @unique(map: "timestamp") @db.UnsignedBigInt + max_tinktell Int @default(0) @db.UnsignedTinyInt + max_outgoing_thinktell Int @default(0) @db.UnsignedTinyInt + max_comwave Int @default(0) @db.UnsignedTinyInt + max_outgoing_comwave Int @default(0) @db.UnsignedTinyInt + max_total Int @default(0) @db.UnsignedTinyInt +} + +model phonecall_log_2025 { + id Int @id @default(autoincrement()) @db.UnsignedInt + caller_id_name String @db.VarChar(64) + caller_id_number String @db.VarChar(32) + destination_number String @db.VarChar(32) + start_stamp DateTime @db.DateTime(0) + answer_stamp DateTime @db.DateTime(0) + end_stamp DateTime @db.DateTime(0) + duration Int + billing Decimal @default(0.00000) @db.Decimal(15, 5) + hangup_cause String @db.VarChar(32) + uuid String @unique(map: "uuid") @db.VarChar(64) +} + +model phonecall_log_2026 { + id Int @id @default(autoincrement()) @db.UnsignedInt + caller_id_name String @db.VarChar(64) + caller_id_number String @db.VarChar(32) + destination_number String @db.VarChar(32) + start_stamp DateTime @db.DateTime(0) + answer_stamp DateTime @db.DateTime(0) + end_stamp DateTime @db.DateTime(0) + duration Int + billing Decimal @default(0.00000) @db.Decimal(15, 5) + hangup_cause String @db.VarChar(32) + uuid String @unique(map: "uuid") @db.VarChar(64) +} + +model voicemeup { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + date BigInt @db.UnsignedBigInt + duration Int @db.UnsignedInt + destination String @db.VarChar(16) + country String @db.VarChar(256) + state String? @db.VarChar(128) + district String? @db.VarChar(128) + amount Float + uuid String? @db.VarChar(64) +} + +/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client. +model babytel { + date_time BigInt? + record_type String? @db.VarChar(20) + record_format_version Int? + id String? @db.VarChar(24) + rate_id String? @db.VarChar(20) + cost Float? @db.Float + calling_user String? @db.VarChar(24) + called_user String? @db.VarChar(24) + calling_domain String? @db.VarChar(24) + called_domain String? @db.VarChar(24) + destination String? @db.VarChar(24) + duration_seconds String? @db.VarChar(24) + call_start String? @db.VarChar(24) + call_type String? @db.VarChar(24) + call_direction String? @db.VarChar(24) + test_call String? @db.VarChar(24) + calling_number String? @db.VarChar(24) + called_number_e164 String? @db.VarChar(24) + billable_duration String? @db.VarChar(24) + billed_duration_outbound_seconds String? @db.VarChar(24) + reseller_cost Float? @db.Float + master_account_id String? @db.VarChar(24) + forwarded_to String? @db.VarChar(24) + master_account_pk String? @db.VarChar(24) + account_pk String? @db.VarChar(24) + reseller_rate_id String? @db.VarChar(24) + internal_information1 String? @db.VarChar(24) + concurrents_calls String? @db.VarChar(24) + external_id String? @db.VarChar(24) + commission Float? @db.Float + minute_plan_id String? @db.VarChar(24) + internal_information2 String? @db.VarChar(24) + internal_information3 String? @db.VarChar(24) + billed_duration_inbound_seconds String? @db.VarChar(24) + selected_destination String? @db.VarChar(24) + internal_information4 String? @db.VarChar(24) + internal_information5 String? @db.VarChar(24) + cost_center String? @db.VarChar(24) + subscriber_group String? @db.VarChar(24) + + @@ignore +} \ No newline at end of file diff --git a/prisma/mariadb/models/product.prisma b/prisma/mariadb/models/product.prisma new file mode 100644 index 0000000..031989c --- /dev/null +++ b/prisma/mariadb/models/product.prisma @@ -0,0 +1,122 @@ +model product { + id Int @id @default(autoincrement()) + date_orig BigInt? + sku String? @db.VarChar(32) + active Int? @db.TinyInt + price Float? + price_recurr_type Int? @db.TinyInt + price_recurr_weekday Int? + price_recurr_week Int? + price_recurr_schedule Int? @db.TinyInt + download_speed BigInt? + upload_speed BigInt? + night_package Int @default(0) @db.TinyInt + quota_day BigInt? @db.UnsignedBigInt + quota_night BigInt? @db.UnsignedBigInt + category Int? @db.TinyInt + uniq_charge Int @default(0) @db.TinyInt + commercial Boolean @default(false) + portal_hidden Boolean @default(false) + inv_keep Boolean @default(false) + inv_tag String? @db.VarChar(255) + inv_threshold Int @default(0) @db.UnsignedInt + inv_qte Int @default(0) @db.UnsignedInt + emplacement String @default(dbgenerated("()")) @db.VarChar(16) + list_tech Int @default(0) @db.UnsignedTinyInt + type Int @default(0) @db.UnsignedTinyInt + combo_ready Int @default(0) @db.UnsignedTinyInt + fibre_lineprofile String? @db.VarChar(8) + fibre_serviceprofile String? @db.VarChar(8) + + @@index([sku], map: "sku") +} + +model product_cat { + id Int @id @default(autoincrement()) + name String? @db.VarChar(255) + notes String? @db.VarChar(255) + status Int? @db.TinyInt + num_compte BigInt? + combo_dispo Int @default(0) @db.UnsignedTinyInt +} + +model product_format { + id BigInt @id @default(autoincrement()) + date_orig BigInt? + name String? @db.VarChar(255) + type Int? @db.TinyInt + product_idx String? @db.MediumText + description String? @db.MediumText +} + +model product_fournisseur { + id Int @id @default(autoincrement()) @db.UnsignedInt + product_id Int @db.UnsignedInt + nom_fournisseur String @db.VarChar(255) + prix_us Boolean @default(false) + prix_achat Float @default(0.00) + prix_livr String @default(dbgenerated("()")) @db.VarChar(16) + delais_livr String @default(dbgenerated("()")) @db.VarChar(128) + comment String @default(dbgenerated("()")) @db.VarChar(128) + + @@index([product_id], map: "product_id") +} + +model product_profile { + id Int @id @default(autoincrement()) @db.UnsignedInt + product_id Int @db.UnsignedInt + device_type String @db.VarChar(64) + line_profile Int @db.UnsignedInt + service_profile Int @db.UnsignedInt +} + +model product_speciaux { + id BigInt @id @default(autoincrement()) + product_zone_id BigInt + product_id BigInt + price Float? + price_install Float? + exp_timestamp BigInt? + duree_contrat Int? @db.UnsignedTinyInt + + @@index([product_zone_id], map: "product_zone_id") +} + +model product_translate { + id Int @id @default(autoincrement()) + product_id Int? + language_id String? @db.VarChar(16) + name String? @db.VarChar(512) + description_short String? @db.LongText + description_full String? @db.LongText + + @@index([language_id], map: "language_id") + @@index([product_id], map: "product_id") +} + +model product_zone { + id BigInt @id @default(autoincrement()) + zoneNumber Int @db.UnsignedInt + description String? @db.VarChar(255) + + @@index([zoneNumber], map: "zoneNumber") +} + +model product_zone_placemarks { + id BigInt @id @default(autoincrement()) + product_zone_id BigInt @db.UnsignedBigInt + placemarks_id BigInt @db.UnsignedBigInt + + @@index([placemarks_id], map: "placemarks_id") +} + +model inventaire_log { + id Int @id @default(autoincrement()) @db.UnsignedInt + prod_tag String @db.VarChar(255) + staff_id Int @db.UnsignedInt + action String @db.VarChar(1) + qte Int @db.UnsignedInt + timestamp String @db.VarChar(10) + + @@index([prod_tag], map: "prod_tag") +} \ No newline at end of file diff --git a/prisma/mariadb/models/project.prisma b/prisma/mariadb/models/project.prisma new file mode 100644 index 0000000..2e329de --- /dev/null +++ b/prisma/mariadb/models/project.prisma @@ -0,0 +1,92 @@ +model project { + id Int @id @default(autoincrement()) @db.UnsignedInt + name String @db.VarChar(128) + status String @db.VarChar(16) + desc String? @db.Text + date_start BigInt? @db.UnsignedBigInt + date_end BigInt? @db.UnsignedBigInt + manager_name String? @db.VarChar(64) +} + +model project_cmd { + id Int @id @default(autoincrement()) @db.UnsignedInt + project_id Int @db.UnsignedInt + date BigInt @db.UnsignedBigInt + vendeur String? @db.VarChar(128) + no_cmd String? @db.VarChar(64) + po String? @db.VarChar(32) + staff_id Int @default(4667) @db.UnsignedInt + + @@index([project_id], map: "project_id") +} + +model project_cmd_item { + id Int @id @default(autoincrement()) @db.UnsignedInt + cmd_id Int @db.UnsignedInt + product_id Int @default(0) @db.UnsignedInt + desc String @db.Text + qte Float + price Float + usd Boolean @default(false) + recu Int @default(0) @db.TinyInt + qte_recu Float @default(0) + date_recu String? @db.VarChar(64) + comment String? @db.VarChar(128) + eta String? @db.VarChar(10) + status Int @default(0) @db.UnsignedTinyInt + + @@index([cmd_id], map: "cmd_id") + @@index([product_id], map: "product_id") +} + +model project_manager_cat { + id Int @id @default(autoincrement()) @db.UnsignedInt + pos Int @db.UnsignedTinyInt + name String @db.VarChar(32) + color String @default(dbgenerated("(ffffff)")) @db.VarChar(7) + text_color String @default(dbgenerated("(#000000)")) @db.VarChar(7) +} + +model project_manager_checklist { + id Int @id @default(autoincrement()) @db.UnsignedInt + task_id Int @db.UnsignedInt + ticket_id Int @db.UnsignedInt + desc String @db.VarChar(128) + poids Int @default(1) @db.UnsignedTinyInt + done Int @default(0) @db.TinyInt + + @@index([task_id], map: "task_id") +} + +model project_manager_comment { + id Int @id @default(autoincrement()) @db.UnsignedInt + task_id Int @db.UnsignedInt + comment String @db.Text + staff_id Int @db.UnsignedInt + date String @db.VarChar(16) + unread String @db.Text + + @@index([task_id], map: "task_id") +} + +model project_manager_task { + id Int @id @default(autoincrement()) @db.UnsignedInt + category_id Int @db.UnsignedInt + pos Int @db.UnsignedTinyInt + titre String @db.VarChar(255) + color String @default(dbgenerated("(#ffffff)")) @db.VarChar(7) + text_color String @default(dbgenerated("(#000000)")) @db.VarChar(7) + desc String @db.Text + ticket_id String? @db.VarChar(16) + date_start String? @db.VarChar(16) + date_deadline String? @db.VarChar(16) + deadline_watch Int @default(1) @db.UnsignedTinyInt + assign_staff String? @db.Text + priority Int @default(0) @db.UnsignedTinyInt + done Boolean @default(false) + create_by Int @db.UnsignedInt + date_creation String? @db.VarChar(16) + date_update String? @db.VarChar(16) + + @@index([category_id], map: "category_id") +} \ No newline at end of file diff --git a/prisma/mariadb/models/service.prisma b/prisma/mariadb/models/service.prisma new file mode 100644 index 0000000..86d17ec --- /dev/null +++ b/prisma/mariadb/models/service.prisma @@ -0,0 +1,44 @@ +model service { + id BigInt @id @default(autoincrement()) + date_orig BigInt? + date_suspended BigInt? + date_next_invoice BigInt? + date_last_invoice BigInt? + delivery_id Int? + device_id Int @default(0) @db.UnsignedInt + product_id Int? + comment String? @db.VarChar(255) + payment_recurrence Int? @db.TinyInt + status Int? @db.TinyInt + hijack Int @default(0) @db.TinyInt + hijack_price Float @default(0) + hijack_desc String? @db.VarChar(512) + hijack_download_speed BigInt? + hijack_upload_speed BigInt? + hijack_quota_day BigInt? + hijack_quota_night BigInt? + date_end_contract BigInt? + actif_until BigInt? + forfait_internet Int @default(0) @db.TinyInt + radius_user String @db.VarChar(24) + radius_pwd String @db.VarChar(16) + radius_conso Boolean @default(false) + + @@index([date_orig], map: "date_orig") + @@index([delivery_id], map: "delivery_id") + @@index([device_id], map: "device_id") + @@index([id, status], map: "id") + @@index([product_id], map: "product_id") +} + +model service_snapshot { + id Int @id @default(autoincrement()) @db.UnsignedInt + date BigInt @db.UnsignedBigInt + account_id Int @db.UnsignedInt + service_id Int @db.UnsignedInt + quota_day BigInt @default(0) @db.UnsignedBigInt + quota_night BigInt @default(0) @db.UnsignedBigInt + + @@index([account_id], map: "account_id") + @@index([service_id], map: "service_id") +} \ No newline at end of file diff --git a/prisma/mariadb/models/soumission.prisma b/prisma/mariadb/models/soumission.prisma new file mode 100644 index 0000000..babf2af --- /dev/null +++ b/prisma/mariadb/models/soumission.prisma @@ -0,0 +1,20 @@ +model soumission { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id BigInt + name String @db.VarChar(64) + po String? @db.VarChar(64) + date String @db.VarChar(10) + tax Int @db.UnsignedTinyInt + materiel String? @db.LongText + mensuel String? @db.LongText + text String? @db.Text + + @@index([account_id], map: "account_id") +} + +model soumission_template { + id Int @id @default(autoincrement()) @db.UnsignedInt + name String @db.VarChar(64) + materiel String @db.LongText + mensuel String @db.LongText +} \ No newline at end of file diff --git a/prisma/mariadb/models/staff.prisma b/prisma/mariadb/models/staff.prisma new file mode 100644 index 0000000..45c7d86 --- /dev/null +++ b/prisma/mariadb/models/staff.prisma @@ -0,0 +1,36 @@ +model staff { + id Int @id @default(autoincrement()) @db.UnsignedInt + status Int @db.TinyInt + username String @unique(map: "username") @db.VarChar(32) + password String @db.VarChar(128) + vpn String @db.VarChar(64) + first_name String @db.VarChar(64) + last_name String @db.VarChar(64) + email String @db.VarChar(64) + ext String @db.VarChar(16) + cell String @db.VarChar(16) + gpin String? @db.VarChar(4) + rights String @db.Text + date_embauche String? @db.VarChar(20) + fete String? @db.VarChar(16) + supp String? @db.Text + group_ad String @default(dbgenerated("()")) @db.VarChar(64) + dept_list String @db.Text + notification String @db.Text + darkmode Boolean @default(false) + matricule_desjardins Int? @db.UnsignedInt + compagnie_desjardins String? @db.VarChar(8) + ldap_id Int? +} + +model staff_dispo { + id Int @id @default(autoincrement()) @db.TinyInt + day_num Int @db.TinyInt + staff_id Int? +} + +model staff_supp { + id Int @id @default(autoincrement()) @db.UnsignedInt + nom String @db.VarChar(64) + staff_ids String @db.VarChar(128) +} \ No newline at end of file diff --git a/prisma/mariadb/models/television.prisma b/prisma/mariadb/models/television.prisma new file mode 100644 index 0000000..f9a1e97 --- /dev/null +++ b/prisma/mariadb/models/television.prisma @@ -0,0 +1,85 @@ +model tele_carte { + id Int @id @default(autoincrement()) @db.UnsignedInt + delivery_id Int @unique(map: "delivery_id") @default(0) @db.UnsignedInt + service_id Int @db.UnsignedInt + channels String @db.Text +} + +model tele_channel { + id Int @id @default(autoincrement()) @db.UnsignedInt + proprio String @db.VarChar(128) + poste String @db.VarChar(128) + pack_min Int @default(0) @db.UnsignedTinyInt + pack_redevance Decimal @default(0.00) @db.Decimal(5, 2) + pack_prix_vendu Decimal @default(0.00) @db.Decimal(5, 2) + carte_percentage Decimal @db.Decimal(5, 2) + carte_redevance_min Decimal @db.Decimal(5, 2) + carte_prix_vendu Decimal @db.Decimal(5, 2) + monthly_min Decimal @default(0.00) @db.Decimal(5, 2) + has_penetration_rate Int @default(0) @db.UnsignedTinyInt + penetration_actuel Decimal @default(0.00) @db.Decimal(3, 2) + is_commercial Int @default(0) @db.UnsignedTinyInt + note String @db.Text + epgId Int @default(0) @db.UnsignedInt + uptele_no Int @db.UnsignedInt + uptele_code String @db.VarChar(32) + abbr String @db.VarChar(32) + groupe_id Int @default(0) @db.UnsignedInt + ccsa_packageID Int @db.UnsignedInt + ccsa_desc String @db.VarChar(256) + rapport_bell Int @default(0) @db.TinyInt +} + +model tele_groupe { + id Int @id @default(autoincrement()) @db.UnsignedInt + nom String @db.VarChar(128) + small_desc String @db.VarChar(128) +} + +model tele_network { + id Int @id @default(autoincrement()) @db.UnsignedInt + network_name String @db.VarChar(128) + fournisseur String @db.VarChar(128) +} + +model tele_pack { + id Int @id @default(autoincrement()) + product_id Int @db.UnsignedInt + channels String @db.Text + actif Boolean @default(true) + ccsa_packageID Int @db.UnsignedInt + ccsa_desc String @db.VarChar(256) + rapport_bell Int @default(0) @db.TinyInt + bell_name String? @db.VarChar(64) + epgId Int? @db.UnsignedInt +} + +model tele_penetration { + id Int @id @default(autoincrement()) @db.UnsignedInt + id_channel Int @db.UnsignedInt + percentage Decimal @db.Decimal(3, 2) + prix Decimal @db.Decimal(10, 5) +} + +model tele_sub_archive { + id Int @id @default(autoincrement()) + date_archive String @db.VarChar(16) + subs String @db.Text +} + +model tele_wiz { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + delivery_id Int @db.UnsignedInt + ticket_id Int @db.UnsignedInt + nb_stb Int @db.UnsignedTinyInt + credit Int @db.UnsignedTinyInt + fbase Int @db.UnsignedInt + fthem String @db.Text +} + +model tv_mac { + id Int @id @default(autoincrement()) @db.UnsignedInt + service_id Int @db.UnsignedInt + mac String @db.VarChar(12) +} \ No newline at end of file diff --git a/prisma/mariadb/models/ticket.prisma b/prisma/mariadb/models/ticket.prisma new file mode 100644 index 0000000..af23f7c --- /dev/null +++ b/prisma/mariadb/models/ticket.prisma @@ -0,0 +1,99 @@ +model ticket { + id BigInt @id @default(autoincrement()) @db.UnsignedBigInt + ost_id Int? @db.UnsignedInt + parent BigInt @default(0) + account_id BigInt? + delivery_id BigInt @default(0) + bon_id Int? @db.UnsignedInt + subject String? @db.VarChar(256) + dept_id Int? + open_by Int @default(1) + email_from String @db.VarChar(128) + assign_to Int @default(0) + status String @default(dbgenerated("(open)")) @db.VarChar(32) + due_date BigInt @default(0) + due_time String @default(dbgenerated("(day)")) @db.VarChar(8) + date_create BigInt? + last_update BigInt? + date_closed String @default(dbgenerated("()")) @db.VarChar(16) + pending_to_open BigInt @default(0) @db.UnsignedBigInt + waiting_for BigInt? @db.UnsignedBigInt + lock_name String @db.VarChar(64) + public Boolean? @default(false) + priority Int @default(2) @db.TinyInt + install_success Int @default(0) @db.TinyInt + wizard String? @db.Text + wizard_fibre String? @db.VarChar(64) + important Int @default(0) @db.TinyInt + followed_by String @db.Text + participant String @db.Text + update_timestamp DateTime @default(now()) @db.Timestamp(0) + closed_by Int @default(0) @db.UnsignedInt + + @@index([account_id], map: "account_id") + @@index([assign_to], map: "assign_to") + @@index([dept_id], map: "dept_id") +} + +model ticket_calendar_lock { + id Int @id @default(autoincrement()) @db.UnsignedInt + date_lock BigInt @default(0) @db.UnsignedBigInt + dept_id Int @default(12) @db.UnsignedInt + nb_install Int @default(0) @db.UnsignedSmallInt + create_by Int @db.UnsignedInt + update_by Int @db.UnsignedInt + last_update DateTime @default(now()) @db.Timestamp(0) + + @@unique([date_lock, dept_id], map: "date_dept") +} + +model ticket_calendar_staff_lock { + id Int @id @default(autoincrement()) @db.UnsignedInt + date BigInt + staff_id Int @db.UnsignedInt +} + +model ticket_conge { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + name String @db.VarChar(128) + date BigInt @db.UnsignedBigInt + desc String @db.VarChar(255) + ticket_id Int? @db.UnsignedInt + + @@index([account_id], map: "account_id") +} + +model ticket_dept { + id Int @id @default(autoincrement()) @db.UnsignedInt + parent Int @default(0) + name String @unique(map: "name") @default(dbgenerated("()")) @db.VarChar(32) + hasChild Int @default(0) @db.SmallInt + email String @db.VarChar(64) + manager_id Int @default(0) @db.UnsignedInt + member_only Boolean @default(false) + protected Boolean @default(false) + default_staff Int @default(0) @db.UnsignedInt + default_follow String @default(dbgenerated("(0)")) @db.VarChar(64) +} + +model ticket_msg { + id BigInt @id @default(autoincrement()) @db.UnsignedBigInt + ticket_id BigInt + staff_id BigInt @default(0) + msg String? @db.MediumText + date_orig BigInt? + unread_csv String @db.MediumText + public Boolean? @default(false) + important Int @default(0) @db.TinyInt + update_timestamp DateTime @default(now()) @db.Timestamp(0) + + @@index([staff_id], map: "staff_id") + @@index([ticket_id], map: "ticket_id") +} + +model ticket_template { + id Int @id @default(autoincrement()) @db.UnsignedInt + name String @db.VarChar(128) + template String @db.Text +} \ No newline at end of file diff --git a/prisma/mariadb/models/tmp.prisma b/prisma/mariadb/models/tmp.prisma new file mode 100644 index 0000000..a196c23 --- /dev/null +++ b/prisma/mariadb/models/tmp.prisma @@ -0,0 +1,17 @@ +/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client. +model tmp { + id Int @db.UnsignedInt + prive String @db.VarChar(20) + public String @db.VarChar(20) + + @@ignore +} + +model tmp_vpn { + id Int @id + username String @db.VarChar(64) + password String @db.VarChar(64) + ad_done Boolean @default(false) + tacacs Boolean @default(false) + m Int @default(2000) @db.UnsignedInt +} \ No newline at end of file diff --git a/prisma/mariadb/prisma-mariadb.module.ts b/prisma/mariadb/prisma-mariadb.module.ts new file mode 100644 index 0000000..756ae56 --- /dev/null +++ b/prisma/mariadb/prisma-mariadb.module.ts @@ -0,0 +1,10 @@ +import { Global, Module } from '@nestjs/common'; +import { PrismaMariaDbService } from 'prisma/mariadb/prisma-mariadb.service'; + + +@Global() +@Module({ + providers: [PrismaMariaDbService], + exports: [PrismaMariaDbService], +}) +export class PrismaPostgresModule {} diff --git a/prisma/mariadb/prisma-mariadb.service.ts b/prisma/mariadb/prisma-mariadb.service.ts new file mode 100644 index 0000000..94cb24e --- /dev/null +++ b/prisma/mariadb/prisma-mariadb.service.ts @@ -0,0 +1,19 @@ +import { Injectable, OnModuleInit, OnModuleDestroy } from '@nestjs/common'; +import { adapterMariaDb } from 'prisma.config.mariadb'; +import { PrismaClient } from 'prisma/generated/mariadb/client'; + +@Injectable() +export class PrismaMariaDbService extends PrismaClient + implements OnModuleInit, OnModuleDestroy { + constructor() { + super({ adapter: adapterMariaDb }) + } + + async onModuleInit() { + await this.$connect(); + } + + async onModuleDestroy() { + await this.$disconnect(); + } +} diff --git a/prisma/mariadb/schema.prisma b/prisma/mariadb/schema.prisma index e69de29..f083ff0 100644 --- a/prisma/mariadb/schema.prisma +++ b/prisma/mariadb/schema.prisma @@ -0,0 +1,2013 @@ +generator client { + provider = "prisma-client" + output = "../generated/mariadb" +} + +datasource db { + provider = "mysql" +} + +model account { + id BigInt @id @default(autoincrement()) + customer_id String? @db.VarChar(32) //variable string, composition varies a lot, used by customers to identify their account + date_orig BigInt? //timestamp + date_last BigInt? //timestamp + date_expire BigInt? //not used + language_id String @default(dbgenerated("(francais)")) @db.VarChar(32) //either "anglais", "francais" + country_id Int @default(124) //124 (canada), 450 (Madagascar) or 840 (Virgin island) + currency_id Int? //not used + username String? @db.VarChar(128) + password String? @db.VarChar(128) + group_id Int @default(6) @db.TinyInt //refers to the account_group table + misc String? @db.VarChar(128) //comments of some sort + status Int? //1-actif, 2-suspension,3- non paiement, 4- terminรฉ, 5- recouvre, 6-creance + first_name String? @db.VarChar(128) + middle_name String? @db.VarChar(128) //not used + last_name String? @db.VarChar(128) + mandataire String? @db.VarChar(128) //sometimes the first_name and last_name are found here, sometimes its the name of someone who manage the account + title String? @db.VarChar(128) //Mme, Mrs, Mr., M., "" + email String? @db.VarChar(255) + email_autre String? @db.VarChar(255) //second email + company String? @db.VarChar(255) //name of the company account + contact String @db.Text //name of the contact at the company or account contact + address1 String? @db.VarChar(128) + address2 String? @db.VarChar(128) //sometimes used to specify the unit, the suit, the camping lot or used as a note??? + city String? @db.VarChar(128) + state String? @db.VarChar(32) + zip String? @db.VarChar(16) + tel_home String? @db.VarChar(16) + tel_office String? @db.VarChar(16) + tel_office_ext String? @db.VarChar(4) + cell String? @db.VarChar(16) + fax String? @db.VarChar(16) + invoice_delivery Int @default(2) //1-email, 2-poste, 3-default + land_owner Boolean @default(false) //tinyInt boolean + frais Boolean @default(false) //tinyInt boolean + ppa Boolean @default(false) + ppa_all_invoice Int @default(0) @db.TinyInt + ppa_name String? @db.VarChar(64) + ppa_code String? @db.VarChar(255) + ppa_branch String? @db.VarChar(255) + ppa_account String? @db.VarChar(255) + ppa_amount Decimal @default(0.00) @db.Decimal(6, 2) + ppa_amount_buffer Float @default(30.00) + ppa_all_tmp Int @default(0) @db.TinyInt + ppa_fixed Boolean @default(false) + commercial Boolean @default(false) + vip Boolean @default(false) + tax_group Int @default(1) @db.TinyInt + data_check Boolean @default(false) + created_by Int? + notes_client String? @db.VarChar(256) //comments left by customer via the "portail" + keyword String? @db.VarChar(512) + terminate_reason String? @db.VarChar(32) //install,demenage, cie, autre, NULL + terminate_cie String? @db.VarChar(32) // null, bell, autre, videotron, cogeco, deery, explirnet, sftl, haut-richelieu + terminate_note String? @db.MediumText // comment on the termination of the account + terminate_date String? @db.VarChar(16) + call Boolean @default(false) //tinyInt boolean + pub Boolean @default(true) //TinyInt boolean + portal_client_log Boolean @default(false) //TinyInt boolean + mauvais_payeur Boolean @default(false) //TinyInt boolean + renew_phone Boolean @default(false) //TinyInt boolean + ppa_cc Int @default(0) @db.TinyInt + stripe_id String? @db.VarChar(32) + + @@index([customer_id], map: "customer_id") + @@index([id, status], map: "id") + @@index([status], map: "status") +} + +model account_group { + id Int @id @default(autoincrement()) @db.TinyInt //see group_id in account table for references + date_orig BigInt? + group_name String? @db.VarChar(64) //group name +} + +// this table could be ignored ? see comment on memo column +model account_memo { + id BigInt @id @default(autoincrement()) + date_orig BigInt? + last_updated BigInt @default(0) @db.UnsignedBigInt + staff_id BigInt? + account_id BigInt? + memo String? @db.VarChar(1024) //comment, seems to be a copy paste of a form, giving a bunch of infos on the account, should be queried instead of copied + color String @default(dbgenerated("(000000)")) @db.VarChar(6) //CSS + bcolor String @default(dbgenerated("(E0E0E0)")) @db.VarChar(6) //CSS + border String @default(dbgenerated("(000000)")) @db.VarChar(6) //CSS + + @@index([account_id], map: "account_id") + @@index([staff_id], map: "staff_id") +} + + +model compta_comptes { + id BigInt @id @default(autoincrement()) + category String? @db.VarChar(64) + num_compte String? @db.VarChar(16) + desc String? @db.MediumText +} + +model compta_comptes_soldes { + id BigInt @id @default(autoincrement()) + num_compte Int + year Int + amount Float @db.Float + comment String @db.VarChar(64) + type String @db.VarChar(3) +} + +model compta_journal_ecriture { + id BigInt @id @default(autoincrement()) + date_orig BigInt? + type String? @db.VarChar(4) + num BigInt? + customer_id String? @db.VarChar(32) + full_name String? @db.VarChar(256) + desc String? @db.MediumText + mo String? @db.VarChar(4) + em Int @default(0) @db.TinyInt + + @@index([customer_id], map: "customer_id") + @@index([date_orig], map: "date_orig") + @@index([num], map: "num") +} + +model compta_journal_ecriture_bk { + id BigInt @id @default(autoincrement()) + date_orig BigInt? + type String? @db.VarChar(4) + num BigInt? + customer_id String? @db.VarChar(32) + full_name String? @db.VarChar(256) + desc String? @db.MediumText + mo String? @db.VarChar(4) + em Int @default(0) @db.TinyInt + + @@index([customer_id], map: "customer_id") + @@index([date_orig], map: "date_orig") + @@index([num], map: "num") +} + +model compta_journal_ecriture_detail { + id BigInt @id @default(autoincrement()) + journal_id BigInt? + num_compte BigInt? + amount Float? + action String? @db.VarChar(16) + + @@index([journal_id], map: "journal_id") +} + +model compta_journal_ecriture_detail_bk { + id BigInt @id @default(autoincrement()) + journal_id BigInt? + num_compte BigInt? + amount Float? + action String? @db.VarChar(16) + + @@index([journal_id], map: "journal_id") +} + +model compta_periode { + month Int @id @default(7) +} + +/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments +model compta_ppa_file_id { + last_id Int @id @default(1) +} + +model compta_setup { + setup_id Int @id @default(1) + period_month Int @default(7) + ppa_id Int @default(1) + excedent_max Float @default(0) + month_closed BigInt? + pay_week_closed Int @db.UnsignedTinyInt + attachment_ext String @db.MediumText + netadmin_dispo Int @default(0) @db.UnsignedInt + imap_token String? @db.Text +} + +model credit_code { + id Int @id @default(autoincrement()) + code String @db.VarChar(16) + desc String @db.VarChar(256) +} + +model tax { + id Int @id @default(autoincrement()) + name String? @db.VarChar(128) + description String? @db.VarChar(255) + rate Float? +} + +model tax_group { + id Int @id @default(autoincrement()) + name String? @db.VarChar(128) + description String? @db.VarChar(255) + tax String? @db.VarChar(128) +} + +model td_payable { + id Int @id @default(autoincrement()) @db.UnsignedInt + ticket_id Int @default(0) @db.UnsignedInt + invoice String @default(dbgenerated("()")) @db.VarChar(32) + date_invoice String @db.VarChar(20) + fournisseur String? @default(dbgenerated("()")) @db.VarChar(128) + montant Decimal @default(0.00) @db.Decimal(15, 2) + devise String @default(dbgenerated("(ca)")) @db.VarChar(2) + methode String? @default(dbgenerated("()")) @db.VarChar(64) + reference String? @default(dbgenerated("()")) @db.VarChar(128) + date_paiement String? @default(dbgenerated("()")) @db.VarChar(20) + releve String? @db.VarChar(128) + + @@index([ticket_id], map: "ticket_id") +} + +model conso { + id BigInt @id @default(autoincrement()) + ip_id String? @db.VarChar(16) + date BigInt? + total BigInt? @default(0) + total_day BigInt? @default(0) + total_night BigInt? @default(0) + + @@index([ip_id], map: "ip_id") +} + +model conso_archive { + id BigInt @id @default(autoincrement()) + ip_id String? @db.VarChar(16) + date BigInt? + total BigInt? @default(0) + total_day BigInt? @default(0) + total_night BigInt? @default(0) + + @@index([ip_id], map: "ip_id") +} + +model conso_avis { + id Int @id @default(autoincrement()) @db.UnsignedInt + date BigInt + account_id Int @db.UnsignedInt + delivery_id Int @default(0) @db.UnsignedInt + service_id Int @default(0) @db.UnsignedInt + ip_id Int + avis String @db.VarChar(32) +} + +model conso_radius { + id BigInt @id @default(autoincrement()) @db.UnsignedBigInt + username String @db.VarChar(32) + date String @db.VarChar(32) + download String @db.Text + upload String @db.Text + nb_sess Int @default(0) @db.UnsignedInt + + @@index([date], map: "date") + @@index([username], map: "username") +} + +model conso_radius_daily { + id Int @id @default(autoincrement()) @db.UnsignedInt + username String @db.VarChar(32) + date String @db.VarChar(32) + download_nuit String @db.Text + upload_nuit String @db.Text + download_jour String @db.Text + upload_jour String @db.Text + + @@index([date], map: "date") + @@index([username], map: "username") +} + +model conso_radius_daily2 { + id BigInt @id @default(autoincrement()) @db.UnsignedBigInt + username String @db.VarChar(32) + date String @db.VarChar(32) + download_nuit String @default(dbgenerated("(0)")) @db.VarChar(64) + upload_nuit String @default(dbgenerated("(0)")) @db.VarChar(64) + download_jour String @default(dbgenerated("(0)")) @db.VarChar(64) + upload_jour String @default(dbgenerated("(0)")) @db.VarChar(64) + + @@index([date], map: "date") + @@index([username], map: "username") +} + +model conso_radius_hourly { + id Int @id @default(autoincrement()) @db.UnsignedInt + username String @db.VarChar(32) + date String @db.VarChar(32) + download String @db.Text + upload String @db.Text + + @@index([date], map: "date") + @@index([username], map: "username") +} + +model conso_radius_monthly { + id Int @id @default(autoincrement()) @db.UnsignedInt + date String @db.VarChar(32) + username String @db.VarChar(32) + nuit String @db.Text + jour String @db.Text + + @@index([date], map: "date") + @@index([username], map: "username") +} + +model conso_radius_monthly2 { + id Int @id @default(autoincrement()) @db.UnsignedInt + date String @db.VarChar(32) + username String @db.VarChar(32) + nuit String @default(dbgenerated("(0)")) @db.VarChar(64) + jour String @default(dbgenerated("(0)")) @db.VarChar(64) + + @@index([date], map: "date") + @@index([username], map: "username") +} + + +model delivery { + id BigInt @id @default(autoincrement()) + account_id BigInt? + name String @db.VarChar(32) + comment String @db.VarChar(512) + date_orig BigInt? + address1 String? @db.VarChar(128) + address2 String? @db.VarChar(128) + city String? @db.VarChar(32) + state String? @db.VarChar(32) + zip String? @db.VarChar(16) + longitude Decimal @db.Decimal(12, 7) + latitude Decimal @db.Decimal(12, 7) + tel_home String? @db.VarChar(16) + tel_office String? @db.VarChar(16) + tel_office_ext String? @db.VarChar(4) + cell String? @db.VarChar(12) + fax String? @db.VarChar(12) + email String? @db.VarChar(255) + quota_max_day BigInt @default(0) @db.UnsignedBigInt + quota_max_night BigInt @default(0) @db.UnsignedBigInt + contact String? @db.VarChar(128) + expanded Int? @default(0) @db.TinyInt + placemarks_id BigInt? @db.UnsignedBigInt + epg_subid Int @default(0) @db.UnsignedInt + + @@index([account_id], map: "account_id") + @@index([placemarks_id], map: "placemarks_id") +} + +model delivery_history { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + date_orig BigInt @db.UnsignedBigInt + address1 String @db.VarChar(128) + address2 String @db.VarChar(128) + city String @db.VarChar(128) + state String @db.VarChar(32) + zip String @db.VarChar(8) + + @@index([account_id], map: "account_id") +} + +model device { + id Int @id @default(autoincrement()) @db.UnsignedInt + delivery_id Int @db.UnsignedInt + category String @db.VarChar(64) + name String @db.VarChar(128) + manufacturier String? @db.VarChar(128) + model String? @db.VarChar(128) + sn String? @db.VarChar(128) + mac String? @db.VarChar(32) + manage String @db.VarChar(256) + port String @default(dbgenerated("()")) @db.VarChar(5) + protocol String @default(dbgenerated("(https)")) @db.VarChar(8) + manage_cli String @db.VarChar(256) + port_cli String @default(dbgenerated("()")) @db.VarChar(5) + protocol_cli String @db.VarChar(8) + user String @db.VarChar(64) + pass String @db.VarChar(128) + parent Int @default(0) @db.UnsignedInt + + @@index([delivery_id], map: "delivery_id") + @@index([sn], map: "sn") +} + +model device_archive { + id Int @id @default(autoincrement()) @db.UnsignedInt + delivery_id Int @db.UnsignedInt + category String @db.VarChar(64) + name String @db.VarChar(128) + manufacturier String? @db.VarChar(128) + model String? @db.VarChar(128) + sn String? @db.VarChar(128) + mac String? @db.VarChar(32) + manage String @db.VarChar(256) + port String @default(dbgenerated("()")) @db.VarChar(5) + protocol String @default(dbgenerated("(https)")) @db.VarChar(8) + manage_cli String @db.VarChar(256) + port_cli String @default(dbgenerated("()")) @db.VarChar(5) + protocol_cli String @db.VarChar(8) + user String @db.VarChar(64) + pass String @db.VarChar(128) + parent Int @default(0) @db.UnsignedInt + + @@index([delivery_id], map: "delivery_id") + @@index([sn], map: "sn") +} + +model device_attr { + id Int @id @default(autoincrement()) @db.UnsignedInt + device_id Int @db.UnsignedInt + attr String @db.VarChar(128) + value String @db.VarChar(128) + + @@index([device_id], map: "device_id") +} + +model device_link { + id Int @id @default(autoincrement()) @db.UnsignedInt + parent Int @db.UnsignedInt + child Int @db.UnsignedInt +} + +model device_template { + id Int @id @default(autoincrement()) @db.UnsignedInt + nom String @db.VarChar(128) +} + +model device_template_attr { + id Int @id @default(autoincrement()) @db.UnsignedInt + template_id Int @db.UnsignedInt + attr String @db.VarChar(128) + default_val String @db.VarChar(128) +} + +model product { + id Int @id @default(autoincrement()) + date_orig BigInt? + sku String? @db.VarChar(32) + active Int? @db.TinyInt + price Float? + price_recurr_type Int? @db.TinyInt + price_recurr_weekday Int? + price_recurr_week Int? + price_recurr_schedule Int? @db.TinyInt + download_speed BigInt? + upload_speed BigInt? + night_package Int @default(0) @db.TinyInt + quota_day BigInt? @db.UnsignedBigInt + quota_night BigInt? @db.UnsignedBigInt + category Int? @db.TinyInt + uniq_charge Int @default(0) @db.TinyInt + commercial Boolean @default(false) + portal_hidden Boolean @default(false) + inv_keep Boolean @default(false) + inv_tag String? @db.VarChar(255) + inv_threshold Int @default(0) @db.UnsignedInt + inv_qte Int @default(0) @db.UnsignedInt + emplacement String @default(dbgenerated("()")) @db.VarChar(16) + list_tech Int @default(0) @db.UnsignedTinyInt + type Int @default(0) @db.UnsignedTinyInt + combo_ready Int @default(0) @db.UnsignedTinyInt + fibre_lineprofile String? @db.VarChar(8) + fibre_serviceprofile String? @db.VarChar(8) + + @@index([sku], map: "sku") +} + +model product_cat { + id Int @id @default(autoincrement()) + name String? @db.VarChar(255) + notes String? @db.VarChar(255) + status Int? @db.TinyInt + num_compte BigInt? + combo_dispo Int @default(0) @db.UnsignedTinyInt +} + +model product_format { + id BigInt @id @default(autoincrement()) + date_orig BigInt? + name String? @db.VarChar(255) + type Int? @db.TinyInt + product_idx String? @db.MediumText + description String? @db.MediumText +} + +model product_fournisseur { + id Int @id @default(autoincrement()) @db.UnsignedInt + product_id Int @db.UnsignedInt + nom_fournisseur String @db.VarChar(255) + prix_us Boolean @default(false) + prix_achat Float @default(0.00) + prix_livr String @default(dbgenerated("()")) @db.VarChar(16) + delais_livr String @default(dbgenerated("()")) @db.VarChar(128) + comment String @default(dbgenerated("()")) @db.VarChar(128) + + @@index([product_id], map: "product_id") +} + +model product_profile { + id Int @id @default(autoincrement()) @db.UnsignedInt + product_id Int @db.UnsignedInt + device_type String @db.VarChar(64) + line_profile Int @db.UnsignedInt + service_profile Int @db.UnsignedInt +} + +model product_speciaux { + id BigInt @id @default(autoincrement()) + product_zone_id BigInt + product_id BigInt + price Float? + price_install Float? + exp_timestamp BigInt? + duree_contrat Int? @db.UnsignedTinyInt + + @@index([product_zone_id], map: "product_zone_id") +} + +model product_translate { + id Int @id @default(autoincrement()) + product_id Int? + language_id String? @db.VarChar(16) + name String? @db.VarChar(512) + description_short String? @db.LongText + description_full String? @db.LongText + + @@index([language_id], map: "language_id") + @@index([product_id], map: "product_id") +} + +model product_zone { + id BigInt @id @default(autoincrement()) + zoneNumber Int @db.UnsignedInt + description String? @db.VarChar(255) + + @@index([zoneNumber], map: "zoneNumber") +} + +model product_zone_placemarks { + id BigInt @id @default(autoincrement()) + product_zone_id BigInt @db.UnsignedBigInt + placemarks_id BigInt @db.UnsignedBigInt + + @@index([placemarks_id], map: "placemarks_id") +} + +model inventaire_log { + id Int @id @default(autoincrement()) @db.UnsignedInt + prod_tag String @db.VarChar(255) + staff_id Int @db.UnsignedInt + action String @db.VarChar(1) + qte Int @db.UnsignedInt + timestamp String @db.VarChar(10) + + @@index([prod_tag], map: "prod_tag") +} + +model phone { + id Int @id @default(autoincrement()) @db.UnsignedInt + service_id Int @db.UnsignedInt + phone_num String @db.VarChar(16) + note String? @db.Text + fournisseur String? @db.VarChar(64) +} + +model phone_addr { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + phone String @db.VarChar(16) + street_number String @db.VarChar(10) + apt String @db.VarChar(30) + street_name String @db.VarChar(84) + city String @db.VarChar(38) + state String @db.VarChar(2) + zip String @db.VarChar(10) + first_name String @db.VarChar(38) + last_name String @db.VarChar(100) + info String @db.VarChar(100) + enhanced_capable phone_addr_enhanced_capable @default(dbgenerated("(Y)")) + code_cauca String? @db.VarChar(3) + class_service String @default(dbgenerated("(RES)")) @db.VarChar(3) +} + +model phone_comwave { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id BigInt? + service_id BigInt? + requestId Int @unique(map: "requestId") @db.UnsignedInt + phoneNumber String @db.VarChar(10) + status String @default(dbgenerated("(P)")) @db.VarChar(1) + date String? @db.VarChar(10) + reason String? @db.Text +} + +model phone_note { + id Int @id @default(autoincrement()) @db.UnsignedInt + phone String @unique(map: "phone") @db.VarChar(11) + rate_center String? @db.VarChar(128) + fournisseur String @default(dbgenerated("(comwave)")) @db.VarChar(64) + note String? @db.Text +} + +model phone_provisioning { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + delivery_id Int @db.UnsignedInt + service_id Int @db.UnsignedInt + phone String @db.VarChar(10) + app String @db.VarChar(16) + mac String @db.VarChar(16) + password String @db.VarChar(32) + internationnal String? @db.VarChar(6) + date_orig BigInt @db.UnsignedBigInt + date_update BigInt @db.UnsignedBigInt +} + +model phonecall_channel { + id Int @id @default(autoincrement()) @db.UnsignedInt + timestamp BigInt @unique(map: "timestamp") @db.UnsignedBigInt + max_tinktell Int @default(0) @db.UnsignedTinyInt + max_outgoing_thinktell Int @default(0) @db.UnsignedTinyInt + max_comwave Int @default(0) @db.UnsignedTinyInt + max_outgoing_comwave Int @default(0) @db.UnsignedTinyInt + max_total Int @default(0) @db.UnsignedTinyInt +} + +model phonecall_log_2025 { + id Int @id @default(autoincrement()) @db.UnsignedInt + caller_id_name String @db.VarChar(64) + caller_id_number String @db.VarChar(32) + destination_number String @db.VarChar(32) + start_stamp DateTime @db.DateTime(0) + answer_stamp DateTime @db.DateTime(0) + end_stamp DateTime @db.DateTime(0) + duration Int + billing Decimal @default(0.00000) @db.Decimal(15, 5) + hangup_cause String @db.VarChar(32) + uuid String @unique(map: "uuid") @db.VarChar(64) +} + +model phonecall_log_2026 { + id Int @id @default(autoincrement()) @db.UnsignedInt + caller_id_name String @db.VarChar(64) + caller_id_number String @db.VarChar(32) + destination_number String @db.VarChar(32) + start_stamp DateTime @db.DateTime(0) + answer_stamp DateTime @db.DateTime(0) + end_stamp DateTime @db.DateTime(0) + duration Int + billing Decimal @default(0.00000) @db.Decimal(15, 5) + hangup_cause String @db.VarChar(32) + uuid String @unique(map: "uuid") @db.VarChar(64) +} + +model voicemeup { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + date BigInt @db.UnsignedBigInt + duration Int @db.UnsignedInt + destination String @db.VarChar(16) + country String @db.VarChar(256) + state String? @db.VarChar(128) + district String? @db.VarChar(128) + amount Float + uuid String? @db.VarChar(64) +} + +/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client. +model babytel { + date_time BigInt? + record_type String? @db.VarChar(20) + record_format_version Int? + id String? @db.VarChar(24) + rate_id String? @db.VarChar(20) + cost Float? @db.Float + calling_user String? @db.VarChar(24) + called_user String? @db.VarChar(24) + calling_domain String? @db.VarChar(24) + called_domain String? @db.VarChar(24) + destination String? @db.VarChar(24) + duration_seconds String? @db.VarChar(24) + call_start String? @db.VarChar(24) + call_type String? @db.VarChar(24) + call_direction String? @db.VarChar(24) + test_call String? @db.VarChar(24) + calling_number String? @db.VarChar(24) + called_number_e164 String? @db.VarChar(24) + billable_duration String? @db.VarChar(24) + billed_duration_outbound_seconds String? @db.VarChar(24) + reseller_cost Float? @db.Float + master_account_id String? @db.VarChar(24) + forwarded_to String? @db.VarChar(24) + master_account_pk String? @db.VarChar(24) + account_pk String? @db.VarChar(24) + reseller_rate_id String? @db.VarChar(24) + internal_information1 String? @db.VarChar(24) + concurrents_calls String? @db.VarChar(24) + external_id String? @db.VarChar(24) + commission Float? @db.Float + minute_plan_id String? @db.VarChar(24) + internal_information2 String? @db.VarChar(24) + internal_information3 String? @db.VarChar(24) + billed_duration_inbound_seconds String? @db.VarChar(24) + selected_destination String? @db.VarChar(24) + internal_information4 String? @db.VarChar(24) + internal_information5 String? @db.VarChar(24) + cost_center String? @db.VarChar(24) + subscriber_group String? @db.VarChar(24) + + @@ignore +} + + +/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments +model pbx { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + delivery_id Int @db.UnsignedInt + service_id Int @db.UnsignedInt + phone String @db.VarChar(10) + name String? @db.VarChar(32) + password String @db.VarChar(8) + vm_password String @default(dbgenerated("(1234)")) @db.VarChar(16) + has_vm Int @default(1) @db.TinyInt + vm_email String? @db.VarChar(64) + keep_msg Int @default(0) @db.TinyInt + vm_disk_quota Int @default(180) @db.UnsignedInt + int_code String @db.VarChar(4) + language String @default(dbgenerated("(fr)")) @db.VarChar(2) + call_911 String @db.VarChar(11) + max_calls Int @default(2) @db.UnsignedTinyInt + call_timeout Int @default(30) @db.UnsignedSmallInt + user_context String @default(dbgenerated("(sip.targo.ca)")) @db.VarChar(32) + country_whitelist String @db.Text + date_origin BigInt @db.UnsignedBigInt + date_update BigInt @db.UnsignedBigInt + update_by Int? @db.UnsignedInt + + @@index([phone], map: "phone") +} + +model pbx_app { + id Int @id @default(autoincrement()) @db.UnsignedInt + pbx_id Int @db.UnsignedInt + username String @db.VarChar(16) + mac String @db.VarChar(16) + app String @default(dbgenerated("(ht502)")) @db.VarChar(16) + note String @db.Text + date_origin BigInt @db.UnsignedBigInt + date_update BigInt @db.UnsignedBigInt + update_by Int? @db.UnsignedInt + + @@index([pbx_id], map: "pbx_id") +} + +model pbx_com { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + delivery_id Int @db.UnsignedInt + service_id Int @db.UnsignedInt + phone String @db.VarChar(10) + name String @db.VarChar(32) + failover String @db.VarChar(16) + auth_method String @default(dbgenerated("(password)")) @db.VarChar(8) + password String @db.VarChar(8) + ip String @db.VarChar(16) + int_code String @db.VarChar(4) + country_whitelist String @db.Text + language String @db.VarChar(2) + call_911 String @db.VarChar(16) + max_calls Int @db.UnsignedTinyInt + user_context String @db.VarChar(32) + date_origin String @db.VarChar(16) + date_update String @db.VarChar(16) + update_by Int @db.UnsignedInt +} + +model pbx_com_wl { + id Int @id @default(autoincrement()) + phone String @unique(map: "phone") @db.VarChar(10) + country_whitelist String @db.Text +} + +model pbx_fax { + id Int @id @default(autoincrement()) @db.UnsignedInt + number String @db.VarChar(10) + email String @db.VarChar(128) + description String? @db.VarChar(128) + service_id Int @default(0) @db.UnsignedInt + + @@index([number], map: "number") +} + +model payment { + id BigInt @id @default(autoincrement()) + account_id BigInt? + date_orig BigInt? + amount Float? + applied_amt Float? + type String? @db.VarChar(25) + memo String? @db.VarChar(512) + reference String? @db.VarChar(128) + excedent Int @default(0) @db.TinyInt + correction Int @default(0) @db.TinyInt + cr Int @default(0) @db.TinyInt + uniqsess String? @db.VarChar(32) + + @@index([account_id], map: "account_id") + @@index([date_orig], map: "date_orig") +} + +model payment_item { + id BigInt @id @default(autoincrement()) + payment_id BigInt? + invoice_id BigInt? + amount Float? + date_orig BigInt? + + @@index([invoice_id], map: "invoice_id") + @@index([payment_id], map: "payment_id") +} + +model passwords_manager { + id BigInt @id @default(autoincrement()) + title String @db.VarChar(64) + login String @db.VarChar(255) + pass String @db.Text + url String? @db.VarChar(255) + email String? @db.VarChar(128) + phone String? @db.VarChar(32) + category String? @db.VarChar(32) + subcategory String? @db.VarChar(32) + desc String? @db.MediumText + notes String? @db.MediumText + logs String? @db.MediumText + date_orig BigInt + date_last BigInt + users_granted String? @db.MediumText + group_granted String? @db.Text + created_by BigInt + keywords String? @db.MediumText +} + +model passwords_manager_cat { + id Int @id @default(autoincrement()) @db.TinyInt + title String @db.VarChar(32) + desc String? @db.VarChar(255) +} + +model passwords_manager_group { + id Int @id @default(autoincrement()) @db.UnsignedInt + name String @db.VarChar(32) + users String? @db.Text +} + +model notification { + id Int @id @default(autoincrement()) @db.UnsignedInt + staff_id Int + endpoint String @db.Text + authToken String @db.Text + publicKey String @db.Text + contentEncoding String @default(dbgenerated("(aesgcm)")) @db.VarChar(128) + plateforme String? @db.VarChar(128) + + @@index([staff_id], map: "staff_id") +} + +model notification_payload { + id Int @id @default(autoincrement()) @db.UnsignedInt + notification_id Int @db.UnsignedInt + payload String @db.Text + timestamp DateTime @default(now()) @db.Timestamp(0) +} + +/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client. +model country { + id Int? @unique(map: "IDS") + name_en String? @db.VarChar(128) + name_fr String? @db.VarChar(128) + description String? @db.VarChar(128) + notes String? @db.VarChar(128) + two_code String? @db.VarChar(16) + three_code String? @db.VarChar(16) + + @@ignore +} + +model municipalite { + id Int @id @default(autoincrement()) @db.UnsignedInt + nom String @db.VarChar(64) + code String @db.VarChar(4) + administration String @db.VarChar(64) + often_used Boolean @default(false) +} + + +model sommaire_porte { + id Int @id @default(autoincrement()) @db.UnsignedInt + fibre_id Int @default(0) @db.UnsignedInt + id_adresse String @db.VarChar(48) + id_subvention String @db.VarChar(32) + adresse_subvention String @db.VarChar(128) + ville_subvention String @db.VarChar(128) + latitude String @db.VarChar(32) + longitude String @db.VarChar(32) + contest_adresse Int @default(0) @db.UnsignedTinyInt + new_adresse Int @default(0) @db.UnsignedTinyInt + placemarks_id BigInt @db.UnsignedBigInt +} + +model state { + id Int @id @default(autoincrement()) @db.UnsignedTinyInt + name_en String @db.VarChar(64) + name_fr String @db.VarChar(64) + abbrev String @db.VarChar(2) + country String @db.VarChar(8) +} + + +model licence { + id Int @id @default(autoincrement()) @db.UnsignedInt + nom String @db.VarChar(128) + date String @db.VarChar(10) + can_manage String @db.VarChar(64) + comment String? @db.Text +} + +model licence_key { + id Int @id @default(autoincrement()) @db.UnsignedInt + licence_id Int @db.UnsignedInt + licence_key String @db.Text + date String @db.VarChar(10) + date_expire String? @db.VarChar(10) + comment String @db.Text + + @@index([licence_id], map: "licence_id") +} + +model ip { + id Int @id @default(autoincrement()) + service_id BigInt? + ip String? @db.VarChar(32) + prive String? @db.VarChar(32) + ip_relais String? @db.VarChar(128) + technology String? @db.VarChar(32) + name_access_point String? @db.VarChar(64) + mac String? @db.VarChar(32) + web_link String? @db.VarChar(128) + link_relais String? @db.VarChar(128) + ip_conso Int @default(0) @db.TinyInt + actif Int @default(1) @db.TinyInt + comment String? @db.MediumText + cidr String? @db.VarChar(32) + last_updated DateTime @default(now()) @db.DateTime(0) + + @@index([ip], map: "ip") + @@index([prive], map: "prive") + @@index([service_id], map: "service_id") +} + +model ip_admin { + id Int @id @default(autoincrement()) @db.UnsignedInt + ip String @db.VarChar(20) + comment String? @db.VarChar(128) +} + +model ip_history { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + delivery_id Int @db.UnsignedInt + service_id Int @db.UnsignedInt + ip String @db.VarChar(32) + date BigInt @db.UnsignedBigInt +} + +model ip_pp { + id Int @id @default(autoincrement()) @db.UnsignedInt + ip_prive String @db.VarChar(32) + ip_public String @db.VarChar(32) + date BigInt @db.UnsignedBigInt + ip_id String @default(dbgenerated("(0)")) @db.VarChar(64) +} + +model ip_static { + id Int @id @default(autoincrement()) @db.UnsignedInt + ip String @unique(map: "ip") @db.VarChar(32) + static Boolean @default(false) + reverse String? @db.VarChar(128) +} + +model ip_targo { + id Int @id @default(autoincrement()) @db.UnsignedInt + ip String @db.VarChar(15) + cidr Int @db.UnsignedTinyInt + comment String? @db.VarChar(128) +} + +/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments +model invoice { + id BigInt @id @default(autoincrement()) + date_orig BigInt? + process_status Int? @db.TinyInt + billing_status Int? @db.TinyInt + refund_status Int? @db.TinyInt + print_status Int? @db.TinyInt + account_id BigInt? + total_amt Float? + billed_amt Float? + due_date BigInt? + notes String? @db.MediumText + template_message String? @db.MediumText + email_status Int? @db.TinyInt + working_order String? @db.VarChar(64) + correction Int @default(0) @db.TinyInt + ppa_charge Int @default(0) @db.TinyInt + credit_code_id Int @default(0) @db.TinyInt + + @@index([account_id], map: "account_id") + @@index([billing_status], map: "billing_status") + @@index([date_orig], map: "date_orig") + @@index([refund_status], map: "refund_status") +} + +/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments +model invoice_bk { + id BigInt @id @default(autoincrement()) + date_orig BigInt? + process_status Int? @db.TinyInt + billing_status Int? @db.TinyInt + refund_status Int? @db.TinyInt + print_status Int? @db.TinyInt + account_id BigInt? + total_amt Float? + billed_amt Float? + due_date BigInt? + notes String? @db.MediumText + template_message String? @db.MediumText + email_status Int? @db.TinyInt + working_order String? @db.VarChar(64) + correction Int @default(0) @db.TinyInt + ppa_charge Int @default(0) @db.TinyInt + credit_code_id Int @default(0) @db.TinyInt + + @@index([account_id], map: "account_id") + @@index([billing_status], map: "billing_status") + @@index([date_orig], map: "date_orig") + @@index([refund_status], map: "refund_status") +} + +model invoice_call { + id Int @id @default(autoincrement()) @db.UnsignedInt + date BigInt @db.UnsignedBigInt + number String @db.VarChar(10) + amount Float +} + +model invoice_item { + id BigInt @id @default(autoincrement()) + service_id BigInt? + invoice_id BigInt? + sku String? @db.VarChar(128) + quantity Float @default(0) + product_name String? @db.VarChar(512) + unitary_price Float? + nosub Boolean @default(false) + delivery_name String? @db.VarChar(32) + + @@index([invoice_id], map: "invoice_id") +} + +model invoice_item_bk { + id BigInt @id @default(autoincrement()) + service_id BigInt? + invoice_id BigInt? + sku String? @db.VarChar(128) + quantity Float @default(0) + product_name String? @db.VarChar(512) + unitary_price Float? + nosub Boolean @default(false) + delivery_name String? @db.VarChar(32) + + @@index([invoice_id], map: "invoice_id") +} + +model invoice_msg_template { + id BigInt @id @default(autoincrement()) + name String? @db.VarChar(32) + message String? @db.MediumText +} + +model invoice_tax { + id BigInt @id @default(autoincrement()) + invoice_id BigInt? + tax_name String? @db.VarChar(128) + tax_description String? @db.VarChar(128) + tax_rate Float? + amount Float? + + @@index([invoice_id], map: "invoice_id") +} + +model invoice_tax_bk { + id BigInt @id @default(autoincrement()) + invoice_id BigInt? + tax_name String? @db.VarChar(128) + tax_description String? @db.VarChar(128) + tax_rate Float? + amount Float? + + @@index([invoice_id], map: "invoice_id") +} + +/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments +model accord_paiement { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + date_accord BigInt + date_echeance BigInt + date_coupure BigInt @db.UnsignedBigInt + raison_changement String? @db.Text + montant Decimal @db.Decimal(10, 2) + method Int @default(0) @db.UnsignedTinyInt + ferie Boolean @default(false) + note String? @db.Text + status Int @default(-1) @db.TinyInt + staff_id Int @default(1) @db.UnsignedInt + date_create String @db.VarChar(16) + + @@index([account_id], map: "account_id") +} + +model autologin { + id Int @id @default(autoincrement()) @db.UnsignedInt + token String @db.VarChar(32) + date String @db.VarChar(16) + staff Int @db.UnsignedInt +} + +model statement { + id BigInt @id @default(autoincrement()) + date BigInt? + type String? @db.VarChar(2) + number BigInt? + reference String? @db.MediumText + amt Float? + paid_amt Float? +} + +model intranet_doc { + id BigInt @id @default(autoincrement()) + account_id BigInt + date BigInt + title String @db.VarChar(128) + msg String @db.MediumText + attachment String @db.VarChar(256) + unread_csv String @db.MediumText + path_id Int @db.UnsignedInt + priority_order Int @default(1) + update_timestamp DateTime @default(now()) @db.Timestamp(0) + + @@index([account_id], map: "account_id") + @@index([path_id], map: "path_id") +} + +model intranet_doc_paths { + id Int @id @default(autoincrement()) @db.UnsignedInt + description String @db.VarChar(256) + parent_id Int? @db.UnsignedInt + priority_order Int @default(1) +} + +model intranet_doc_reply { + id BigInt @id @default(autoincrement()) + feed_id BigInt + date BigInt + account_id BigInt + msg String @db.MediumText + attachment BigInt @default(0) + update_timestamp DateTime @default(now()) @db.Timestamp(0) +} + +model intranet_feed { + id BigInt @id @default(autoincrement()) + account_id BigInt + date BigInt + title String @db.VarChar(128) + msg String @db.MediumText + attachment String @db.VarChar(256) + unread_csv String @db.MediumText +} + +model intranet_feed_reply { + id BigInt @id @default(autoincrement()) + feed_id BigInt + date BigInt + account_id BigInt + msg String @db.MediumText + attachment BigInt +} + +model intranet_techniciens { + id BigInt @id @default(autoincrement()) + account_id BigInt + date BigInt + title String @db.VarChar(128) + msg String @db.MediumText + attachment String @db.VarChar(256) + unread_csv String @db.MediumText +} + +model intranet_techniciens_reply { + id BigInt @id @default(autoincrement()) + feed_id BigInt + date BigInt + account_id BigInt + msg String @db.MediumText + attachment BigInt +} + +model intranet_techno { + id BigInt @id @default(autoincrement()) + account_id BigInt + date BigInt + title String @db.VarChar(128) + msg String @db.MediumText + attachment String @db.VarChar(256) + unread_csv String @db.MediumText +} + +model intranet_techno_reply { + id BigInt @id @default(autoincrement()) + feed_id BigInt + date BigInt + account_id BigInt + msg String @db.MediumText + attachment BigInt +} + +model fibre { + id Int @id @default(autoincrement()) @db.UnsignedInt + terrain String @db.VarChar(16) + rue String @db.VarChar(128) + ville String @db.VarChar(128) + zip String @default(dbgenerated("()")) @db.VarChar(7) + ontid Int? @db.UnsignedInt + sn String? @db.VarChar(32) + tech Int @default(2) @db.UnsignedSmallInt + info_connect String @default(dbgenerated("(172.17.0.2)")) @db.VarChar(64) + frame Int? @db.UnsignedTinyInt + slot Int? @db.UnsignedTinyInt + port Int? @db.UnsignedTinyInt + vlan_manage Int? @db.UnsignedInt + vlan_internet Int? @db.UnsignedInt + vlan_telephone Int? @db.UnsignedInt + vlan_tele Int? @db.UnsignedInt + manage_service_id Int? @db.UnsignedInt + internet_service_id Int? @db.UnsignedInt + telephone_service_id Int? @db.UnsignedInt + tele_service_id Int? @db.UnsignedInt + service_id Int? @db.UnsignedInt + nb_drop Int @default(0) @db.UnsignedInt + placemarks_id BigInt? @db.UnsignedBigInt + appartements_id BigInt? @db.UnsignedBigInt + latitude Float? @db.Float + longitude Float? @db.Float + boitier_pas_install Int? @db.UnsignedTinyInt + description String? @db.VarChar(50) + suite Int @default(0) @db.UnsignedTinyInt + distance Int? @db.UnsignedInt + nb_portees Int? @db.UnsignedTinyInt + + @@index([appartements_id, sn], map: "appartements_id") + @@index([info_connect, appartements_id, sn, slot, port], map: "info_connect") + @@index([placemarks_id, sn], map: "placemarks_id") + @@index([service_id], map: "service_id") +} + +model fibre_olt { + id Int @id @default(autoincrement()) @db.UnsignedInt + tech Int @db.UnsignedSmallInt + ip String @db.VarChar(64) + description String @db.VarChar(128) +} + +model fibre_service_port { + id Int @id @default(autoincrement()) @db.UnsignedInt + last_service_id Int @db.UnsignedInt +} + +model fibre_suivi { + id Int @id @default(autoincrement()) @db.UnsignedInt + customer_id String? @db.VarChar(32) + first_name String @db.VarChar(64) + last_name String @db.VarChar(64) + address String @db.VarChar(128) + city String @db.VarChar(128) + zip String @db.VarChar(7) + phone String @db.VarChar(10) + email String? @db.VarChar(64) + longitude Decimal @db.Decimal(12, 7) + latitude Decimal @db.Decimal(12, 7) + called Int @default(-1) @db.TinyInt + create_by Int @default(0) @db.UnsignedInt + note String @db.Text +} + +model fibre_tech { + id Int @id @default(autoincrement()) @db.UnsignedInt + description String @db.VarChar(128) +} + +model fibre_videotron { + id Int @id @default(autoincrement()) @db.UnsignedInt + date String @db.VarChar(16) + download String @default(dbgenerated("(0)")) @db.VarChar(128) + upload String @default(dbgenerated("(0)")) @db.VarChar(128) + ethernet String @default(dbgenerated("()")) @db.VarChar(64) + interface String @default(dbgenerated("()")) @db.VarChar(128) +} + +model gantt { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @default(0) @db.UnsignedInt + name String? @db.VarChar(128) + gantt String @db.Text + closed Int @default(0) @db.TinyInt +} + +model gantt_template { + id Int @id @default(autoincrement()) @db.UnsignedInt + name String? @db.VarChar(128) + gantt String @db.Text +} + +model project { + id Int @id @default(autoincrement()) @db.UnsignedInt + name String @db.VarChar(128) + status String @db.VarChar(16) + desc String? @db.Text + date_start BigInt? @db.UnsignedBigInt + date_end BigInt? @db.UnsignedBigInt + manager_name String? @db.VarChar(64) +} + +model project_cmd { + id Int @id @default(autoincrement()) @db.UnsignedInt + project_id Int @db.UnsignedInt + date BigInt @db.UnsignedBigInt + vendeur String? @db.VarChar(128) + no_cmd String? @db.VarChar(64) + po String? @db.VarChar(32) + staff_id Int @default(4667) @db.UnsignedInt + + @@index([project_id], map: "project_id") +} + +model project_cmd_item { + id Int @id @default(autoincrement()) @db.UnsignedInt + cmd_id Int @db.UnsignedInt + product_id Int @default(0) @db.UnsignedInt + desc String @db.Text + qte Float + price Float + usd Boolean @default(false) + recu Int @default(0) @db.TinyInt + qte_recu Float @default(0) + date_recu String? @db.VarChar(64) + comment String? @db.VarChar(128) + eta String? @db.VarChar(10) + status Int @default(0) @db.UnsignedTinyInt + + @@index([cmd_id], map: "cmd_id") + @@index([product_id], map: "product_id") +} + +model project_manager_cat { + id Int @id @default(autoincrement()) @db.UnsignedInt + pos Int @db.UnsignedTinyInt + name String @db.VarChar(32) + color String @default(dbgenerated("(ffffff)")) @db.VarChar(7) + text_color String @default(dbgenerated("(#000000)")) @db.VarChar(7) +} + +model project_manager_checklist { + id Int @id @default(autoincrement()) @db.UnsignedInt + task_id Int @db.UnsignedInt + ticket_id Int @db.UnsignedInt + desc String @db.VarChar(128) + poids Int @default(1) @db.UnsignedTinyInt + done Int @default(0) @db.TinyInt + + @@index([task_id], map: "task_id") +} + +model project_manager_comment { + id Int @id @default(autoincrement()) @db.UnsignedInt + task_id Int @db.UnsignedInt + comment String @db.Text + staff_id Int @db.UnsignedInt + date String @db.VarChar(16) + unread String @db.Text + + @@index([task_id], map: "task_id") +} + +model project_manager_task { + id Int @id @default(autoincrement()) @db.UnsignedInt + category_id Int @db.UnsignedInt + pos Int @db.UnsignedTinyInt + titre String @db.VarChar(255) + color String @default(dbgenerated("(#ffffff)")) @db.VarChar(7) + text_color String @default(dbgenerated("(#000000)")) @db.VarChar(7) + desc String @db.Text + ticket_id String? @db.VarChar(16) + date_start String? @db.VarChar(16) + date_deadline String? @db.VarChar(16) + deadline_watch Int @default(1) @db.UnsignedTinyInt + assign_staff String? @db.Text + priority Int @default(0) @db.UnsignedTinyInt + done Boolean @default(false) + create_by Int @db.UnsignedInt + date_creation String? @db.VarChar(16) + date_update String? @db.VarChar(16) + + @@index([category_id], map: "category_id") +} + +model service { + id BigInt @id @default(autoincrement()) + date_orig BigInt? + date_suspended BigInt? + date_next_invoice BigInt? + date_last_invoice BigInt? + delivery_id Int? + device_id Int @default(0) @db.UnsignedInt + product_id Int? + comment String? @db.VarChar(255) + payment_recurrence Int? @db.TinyInt + status Int? @db.TinyInt + hijack Int @default(0) @db.TinyInt + hijack_price Float @default(0) + hijack_desc String? @db.VarChar(512) + hijack_download_speed BigInt? + hijack_upload_speed BigInt? + hijack_quota_day BigInt? + hijack_quota_night BigInt? + date_end_contract BigInt? + actif_until BigInt? + forfait_internet Int @default(0) @db.TinyInt + radius_user String @db.VarChar(24) + radius_pwd String @db.VarChar(16) + radius_conso Boolean @default(false) + + @@index([date_orig], map: "date_orig") + @@index([delivery_id], map: "delivery_id") + @@index([device_id], map: "device_id") + @@index([id, status], map: "id") + @@index([product_id], map: "product_id") +} + +model service_snapshot { + id Int @id @default(autoincrement()) @db.UnsignedInt + date BigInt @db.UnsignedBigInt + account_id Int @db.UnsignedInt + service_id Int @db.UnsignedInt + quota_day BigInt @default(0) @db.UnsignedBigInt + quota_night BigInt @default(0) @db.UnsignedBigInt + + @@index([account_id], map: "account_id") + @@index([service_id], map: "service_id") +} + +model soumission { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id BigInt + name String @db.VarChar(64) + po String? @db.VarChar(64) + date String @db.VarChar(10) + tax Int @db.UnsignedTinyInt + materiel String? @db.LongText + mensuel String? @db.LongText + text String? @db.Text + + @@index([account_id], map: "account_id") +} + +model soumission_template { + id Int @id @default(autoincrement()) @db.UnsignedInt + name String @db.VarChar(64) + materiel String @db.LongText + mensuel String @db.LongText +} + +model staff { + id Int @id @default(autoincrement()) @db.UnsignedInt + status Int @db.TinyInt + username String @unique(map: "username") @db.VarChar(32) + password String @db.VarChar(128) + vpn String @db.VarChar(64) + first_name String @db.VarChar(64) + last_name String @db.VarChar(64) + email String @db.VarChar(64) + ext String @db.VarChar(16) + cell String @db.VarChar(16) + gpin String? @db.VarChar(4) + rights String @db.Text + date_embauche String? @db.VarChar(20) + fete String? @db.VarChar(16) + supp String? @db.Text + group_ad String @default(dbgenerated("()")) @db.VarChar(64) + dept_list String @db.Text + notification String @db.Text + darkmode Boolean @default(false) + matricule_desjardins Int? @db.UnsignedInt + compagnie_desjardins String? @db.VarChar(8) + ldap_id Int? +} + +model staff_dispo { + id Int @id @default(autoincrement()) @db.TinyInt + day_num Int @db.TinyInt + staff_id Int? +} + +model staff_supp { + id Int @id @default(autoincrement()) @db.UnsignedInt + nom String @db.VarChar(64) + staff_ids String @db.VarChar(128) +} + +model tele_carte { + id Int @id @default(autoincrement()) @db.UnsignedInt + delivery_id Int @unique(map: "delivery_id") @default(0) @db.UnsignedInt + service_id Int @db.UnsignedInt + channels String @db.Text +} + +model tele_channel { + id Int @id @default(autoincrement()) @db.UnsignedInt + proprio String @db.VarChar(128) + poste String @db.VarChar(128) + pack_min Int @default(0) @db.UnsignedTinyInt + pack_redevance Decimal @default(0.00) @db.Decimal(5, 2) + pack_prix_vendu Decimal @default(0.00) @db.Decimal(5, 2) + carte_percentage Decimal @db.Decimal(5, 2) + carte_redevance_min Decimal @db.Decimal(5, 2) + carte_prix_vendu Decimal @db.Decimal(5, 2) + monthly_min Decimal @default(0.00) @db.Decimal(5, 2) + has_penetration_rate Int @default(0) @db.UnsignedTinyInt + penetration_actuel Decimal @default(0.00) @db.Decimal(3, 2) + is_commercial Int @default(0) @db.UnsignedTinyInt + note String @db.Text + epgId Int @default(0) @db.UnsignedInt + uptele_no Int @db.UnsignedInt + uptele_code String @db.VarChar(32) + abbr String @db.VarChar(32) + groupe_id Int @default(0) @db.UnsignedInt + ccsa_packageID Int @db.UnsignedInt + ccsa_desc String @db.VarChar(256) + rapport_bell Int @default(0) @db.TinyInt +} + +model tele_groupe { + id Int @id @default(autoincrement()) @db.UnsignedInt + nom String @db.VarChar(128) + small_desc String @db.VarChar(128) +} + +model tele_network { + id Int @id @default(autoincrement()) @db.UnsignedInt + network_name String @db.VarChar(128) + fournisseur String @db.VarChar(128) +} + +model tele_pack { + id Int @id @default(autoincrement()) + product_id Int @db.UnsignedInt + channels String @db.Text + actif Boolean @default(true) + ccsa_packageID Int @db.UnsignedInt + ccsa_desc String @db.VarChar(256) + rapport_bell Int @default(0) @db.TinyInt + bell_name String? @db.VarChar(64) + epgId Int? @db.UnsignedInt +} + +model tele_penetration { + id Int @id @default(autoincrement()) @db.UnsignedInt + id_channel Int @db.UnsignedInt + percentage Decimal @db.Decimal(3, 2) + prix Decimal @db.Decimal(10, 5) +} + +model tele_sub_archive { + id Int @id @default(autoincrement()) + date_archive String @db.VarChar(16) + subs String @db.Text +} + +model tele_wiz { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + delivery_id Int @db.UnsignedInt + ticket_id Int @db.UnsignedInt + nb_stb Int @db.UnsignedTinyInt + credit Int @db.UnsignedTinyInt + fbase Int @db.UnsignedInt + fthem String @db.Text +} + +model tv_mac { + id Int @id @default(autoincrement()) @db.UnsignedInt + service_id Int @db.UnsignedInt + mac String @db.VarChar(12) +} + +model ticket { + id BigInt @id @default(autoincrement()) @db.UnsignedBigInt + ost_id Int? @db.UnsignedInt + parent BigInt @default(0) + account_id BigInt? + delivery_id BigInt @default(0) + bon_id Int? @db.UnsignedInt + subject String? @db.VarChar(256) + dept_id Int? + open_by Int @default(1) + email_from String @db.VarChar(128) + assign_to Int @default(0) + status String @default(dbgenerated("(open)")) @db.VarChar(32) + due_date BigInt @default(0) + due_time String @default(dbgenerated("(day)")) @db.VarChar(8) + date_create BigInt? + last_update BigInt? + date_closed String @default(dbgenerated("()")) @db.VarChar(16) + pending_to_open BigInt @default(0) @db.UnsignedBigInt + waiting_for BigInt? @db.UnsignedBigInt + lock_name String @db.VarChar(64) + public Boolean? @default(false) + priority Int @default(2) @db.TinyInt + install_success Int @default(0) @db.TinyInt + wizard String? @db.Text + wizard_fibre String? @db.VarChar(64) + important Int @default(0) @db.TinyInt + followed_by String @db.Text + participant String @db.Text + update_timestamp DateTime @default(now()) @db.Timestamp(0) + closed_by Int @default(0) @db.UnsignedInt + + @@index([account_id], map: "account_id") + @@index([assign_to], map: "assign_to") + @@index([dept_id], map: "dept_id") +} + +model ticket_calendar_lock { + id Int @id @default(autoincrement()) @db.UnsignedInt + date_lock BigInt @default(0) @db.UnsignedBigInt + dept_id Int @default(12) @db.UnsignedInt + nb_install Int @default(0) @db.UnsignedSmallInt + create_by Int @db.UnsignedInt + update_by Int @db.UnsignedInt + last_update DateTime @default(now()) @db.Timestamp(0) + + @@unique([date_lock, dept_id], map: "date_dept") +} + +model ticket_calendar_staff_lock { + id Int @id @default(autoincrement()) @db.UnsignedInt + date BigInt + staff_id Int @db.UnsignedInt +} + +model ticket_conge { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + name String @db.VarChar(128) + date BigInt @db.UnsignedBigInt + desc String @db.VarChar(255) + ticket_id Int? @db.UnsignedInt + + @@index([account_id], map: "account_id") +} + +model ticket_dept { + id Int @id @default(autoincrement()) @db.UnsignedInt + parent Int @default(0) + name String @unique(map: "name") @default(dbgenerated("()")) @db.VarChar(32) + hasChild Int @default(0) @db.SmallInt + email String @db.VarChar(64) + manager_id Int @default(0) @db.UnsignedInt + member_only Boolean @default(false) + protected Boolean @default(false) + default_staff Int @default(0) @db.UnsignedInt + default_follow String @default(dbgenerated("(0)")) @db.VarChar(64) +} + +model ticket_msg { + id BigInt @id @default(autoincrement()) @db.UnsignedBigInt + ticket_id BigInt + staff_id BigInt @default(0) + msg String? @db.MediumText + date_orig BigInt? + unread_csv String @db.MediumText + public Boolean? @default(false) + important Int @default(0) @db.TinyInt + update_timestamp DateTime @default(now()) @db.Timestamp(0) + + @@index([staff_id], map: "staff_id") + @@index([ticket_id], map: "ticket_id") +} + +model ticket_template { + id Int @id @default(autoincrement()) @db.UnsignedInt + name String @db.VarChar(128) + template String @db.Text +} + +/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client. +model tmp { + id Int @db.UnsignedInt + prive String @db.VarChar(20) + public String @db.VarChar(20) + + @@ignore +} + +model tmp_vpn { + id Int @id + username String @db.VarChar(64) + password String @db.VarChar(64) + ad_done Boolean @default(false) + tacacs Boolean @default(false) + m Int @default(2000) @db.UnsignedInt +} + +model bon_travail { + id Int @id @default(autoincrement()) @db.UnsignedInt + date BigInt? @db.UnsignedBigInt + account_id Int @db.UnsignedInt + tech1 Int? @db.UnsignedInt + heure_arrive_t1 String? @db.VarChar(10) + heure_depart_t1 String? @db.VarChar(10) + tech2 Int? @db.UnsignedInt + heure_arrive_t2 String? @db.VarChar(10) + heure_depart_t2 String? @db.VarChar(10) + note String? @db.Text + subtotal Decimal? @db.Decimal(10, 2) + tps Decimal? @db.Decimal(10, 2) + tvq Decimal? @db.Decimal(10, 2) + total Decimal? @db.Decimal(10, 2) +} + +model bon_travail_item { + id Int @id @default(autoincrement()) @db.UnsignedInt + bon_id Int @db.UnsignedInt + product_id Int @db.UnsignedInt + qte Int + price Decimal @db.Decimal(10, 2) + desc String @db.Text +} + +model checklist_relais { + id Int @id @default(autoincrement()) @db.UnsignedInt + site_id Int @unique(map: "site_id") @db.UnsignedInt + site_name String? @db.VarChar(128) + account_id Int @db.UnsignedInt + priority Int @default(2) @db.UnsignedTinyInt + done Int @default(0) @db.UnsignedTinyInt + equipement String? @db.Text + connecteur String? @db.Text + grounding String? @db.Text + surge_lightning String? @db.Text + switch_poe String? @db.Text + switch_giga_shield String? @db.Text + batterie String? @db.Text + solidity String? @db.Text + redondance String? @db.Text + antenne_58_360 String? @db.Text + antenne_24_360 String? @db.Text + rspro_maj String? @db.Text + boite String? @db.Text + cable String? @db.Text + staros_ubnt String? @db.Text + autre String? @db.Text +} + +/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments +model conference { + id Int @id @default(autoincrement()) @db.UnsignedInt + room_id Int @db.UnsignedInt + time_start String @db.VarChar(16) + time_end String @db.VarChar(16) + name String @db.VarChar(128) + description String? @db.Text + host Int @db.UnsignedInt + participant String @db.Text +} + +model conference_room { + id Int @id @default(autoincrement()) @db.UnsignedInt + name String @db.VarChar(128) + status Int @default(1) @db.TinyInt + location String? @db.VarChar(128) + description String? @db.Text +} + +model fournisseur { + id Int @id @default(autoincrement()) @db.UnsignedInt + nom String @db.VarChar(128) + email String @db.VarChar(64) + actif Boolean @default(true) +} + +model notice_gui { + id Int @id @default(autoincrement()) @db.UnsignedInt + staff_id Int @db.UnsignedInt + message String @db.Text + is_read Int @default(0) + timestamp String @db.VarChar(10) +} + +model promo { + id Int @id @default(autoincrement()) @db.UnsignedInt + name String? @db.VarChar(64) + desc String? @db.Text + date_start BigInt? @db.UnsignedBigInt + date_end BigInt? @db.UnsignedBigInt + date_orig BigInt? + visible_until BigInt? + actif Int @default(0) @db.TinyInt +} + +model stbs { + id Int @id @default(autoincrement()) @db.UnsignedInt + mac String @unique(map: "mac") @db.VarChar(32) + sn String @db.VarChar(32) + targo String? @db.VarChar(16) +} + +model tech_dispo { + id Int @id @default(autoincrement()) @db.UnsignedInt + date BigInt @unique(map: "date") @db.UnsignedBigInt + tech Int? @db.UnsignedInt +} + +enum phone_addr_enhanced_capable { + Y + N +} + +/// ************** DEPRECATED ******************************************** +model debug { + id BigInt @id @default(autoincrement()) + autor String? @db.VarChar(32) + url String? @db.VarChar(128) + date_last BigInt? + desc String? @db.MediumText + note4autor String? @db.MediumText + note4dev String? @db.MediumText + status String? @db.VarChar(64) +} + +model carte_temps { + id Int @id @default(autoincrement()) @db.UnsignedInt + week Int @db.UnsignedTinyInt + year Int? @db.UnsignedInt + date BigInt @db.UnsignedBigInt + staff_id BigInt @db.UnsignedBigInt + start_am BigInt? @db.UnsignedBigInt + end_am BigInt? @db.UnsignedBigInt + start_pm BigInt? @db.UnsignedBigInt + end_pm BigInt? @db.UnsignedBigInt + start_night BigInt? @db.UnsignedBigInt + end_night BigInt? @db.UnsignedBigInt + relais Float? + comment String? @db.Text + note_int String? @db.Text + conge Int @default(0) @db.UnsignedTinyInt + appr String? @db.VarChar(8) + appr_dir String? @db.VarChar(8) + + @@index([staff_id], map: "staff_id") +} + +model carte_temps_periode { + id Int @id @default(autoincrement()) @db.UnsignedSmallInt + debut String @db.VarChar(16) + fin String @db.VarChar(16) + paid String @db.VarChar(16) + periode Int @db.UnsignedTinyInt + annee Int @db.UnsignedSmallInt +} + +model banque_heure_staff { + id Int @id @default(autoincrement()) @db.UnsignedInt + staff_id Int @db.UnsignedInt + week Int @db.UnsignedTinyInt + year Int @db.UnsignedSmallInt + sunday String? @db.VarChar(16) + heure Float + + @@index([staff_id], map: "staff_id") +} + +model hour_bank { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id BigInt @db.UnsignedBigInt + remaining_time Int @default(0) + expiration_date BigInt @default(0) @db.UnsignedBigInt + note String? @db.MediumText + recurrence Int @default(0) @db.UnsignedTinyInt + reset_value Int @default(0) @db.UnsignedSmallInt + + @@index([account_id], map: "account_id") +} + +model hour_bank_detail { + id Int @id @default(autoincrement()) + hour_id Int + staff_id BigInt? @db.UnsignedBigInt + date_orig BigInt @db.UnsignedBigInt + used_time Int @default(0) @db.SmallInt + ticket_id BigInt? @db.UnsignedBigInt + working_order String? @db.VarChar(16) + detail String? @db.MediumText + + @@index([hour_id], map: "hour_id") +} + + +model test { + id Int @id @default(autoincrement()) @db.UnsignedInt + text String @db.Text + c2 Int @default(1) +} + +//this table is for CSS class only, no other uses +model account_memo_template { + id Int @id @default(autoincrement()) + name String @db.VarChar(32) + color String @db.VarChar(6) + bcolor String @db.VarChar(6) + border String @default(dbgenerated("(000000)")) @db.VarChar(6) +} + +//not used +model notes { + id Int @id @default(autoincrement()) + account_id Int @db.UnsignedInt + notes String @db.MediumText +} + +//NOT USED +model email { + id Int @id @default(autoincrement()) + account_id BigInt? + email String? @db.VarChar(128) + password String? @db.VarChar(128) +} + +//not relevant to ticket module +model client_pwd { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + date BigInt @db.UnsignedBigInt + uid String @db.VarChar(32) + used Boolean @default(false) +} + + +//NO USES FOR TICKETING PURPOSES +model account_profile { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @db.UnsignedInt + profile_id String @db.VarChar(64) + address_id String @db.VarChar(64) + card_id String @db.VarChar(64) + token String @db.VarChar(32) + initial_transaction String @db.VarChar(128) +} + + +//not relevant to ticket module +model deposit_slip { + id Int @id @default(autoincrement()) + customer_id String? @db.VarChar(32) + name String? @db.VarChar(512) + amount Float @default(0) + type String @db.VarChar(32) + desc String? @db.VarChar(255) + date BigInt? @db.UnsignedBigInt +} + +//this table display suspended account +model account_suspension { + id Int @id @default(autoincrement()) @db.UnsignedInt + account_id Int @unique(map: "account_id") @db.UnsignedInt + date_start BigInt @db.UnsignedBigInt + date_end BigInt @db.UnsignedBigInt + note String @db.VarChar(128) +} \ No newline at end of file diff --git a/prisma/postgres/prisma-postgres.module.ts b/prisma/postgres/prisma-postgres.module.ts index af56e18..6e3bf0a 100644 --- a/prisma/postgres/prisma-postgres.module.ts +++ b/prisma/postgres/prisma-postgres.module.ts @@ -1,5 +1,6 @@ import { Global, Module } from '@nestjs/common'; -import { PrismaPostgresService } from './prisma-postgres.service'; +import { PrismaPostgresService } from 'prisma/postgres/prisma-postgres.service'; + @Global() @Module({ diff --git a/prisma/postgres/prisma-postgres.service.ts b/prisma/postgres/prisma-postgres.service.ts index e346266..cd68ca5 100644 --- a/prisma/postgres/prisma-postgres.service.ts +++ b/prisma/postgres/prisma-postgres.service.ts @@ -1,18 +1,19 @@ import { Injectable, OnModuleInit, OnModuleDestroy } from '@nestjs/common'; -import { PrismaClient } from '@prisma/client'; - -//Gestion des connections ร  la DB +import { adapterPostgres } from 'prisma.config.postgres'; +import { PrismaClient } from 'prisma/generated/postgres/client'; @Injectable() -export class PrismaPostgresService - extends PrismaClient - implements OnModuleInit, OnModuleDestroy -{ - async onModuleInit() { - await this.$connect(); - } +export class PrismaPostgresService extends PrismaClient + implements OnModuleInit, OnModuleDestroy { + constructor() { + super({ adapter: adapterPostgres }) + } - async onModuleDestroy() { - await this.$disconnect(); - } + async onModuleInit() { + await this.$connect(); + } + + async onModuleDestroy() { + await this.$disconnect(); + } } diff --git a/prisma/postgres/schema.prisma b/prisma/postgres/schema.prisma index e9107a4..46d6491 100644 --- a/prisma/postgres/schema.prisma +++ b/prisma/postgres/schema.prisma @@ -1,5 +1,6 @@ generator client { - provider = "prisma-client-js" + provider = "prisma-client" + output = "../generated/postgres" previewFeatures = ["views"] } diff --git a/prisma/prisma-legacy/prisma-legacy.module.ts b/prisma/prisma-legacy/prisma-legacy.module.ts new file mode 100644 index 0000000..f4522cd --- /dev/null +++ b/prisma/prisma-legacy/prisma-legacy.module.ts @@ -0,0 +1,10 @@ +import { Global, Module } from '@nestjs/common'; +import { PrismaLegacyService } from 'prisma/prisma-legacy/prisma-legacy.service'; + + +@Global() +@Module({ + providers: [PrismaLegacyService], + exports: [PrismaLegacyService], +}) +export class PrismaPostgresModule {} diff --git a/prisma/prisma-legacy/prisma-legacy.service.ts b/prisma/prisma-legacy/prisma-legacy.service.ts new file mode 100644 index 0000000..f354e63 --- /dev/null +++ b/prisma/prisma-legacy/prisma-legacy.service.ts @@ -0,0 +1,19 @@ +import { Injectable, OnModuleInit, OnModuleDestroy } from '@nestjs/common'; +import { adapterLegacy } from 'prisma.config.legacy'; +import { PrismaClient } from 'prisma/generated/legacy/client'; + +@Injectable() +export class PrismaLegacyService extends PrismaClient + implements OnModuleInit, OnModuleDestroy { + constructor() { + super({ adapter: adapterLegacy }) + } + + async onModuleInit() { + await this.$connect(); + } + + async onModuleDestroy() { + await this.$disconnect(); + } +} diff --git a/prisma-legacy/schema.prisma b/prisma/prisma-legacy/schema.prisma similarity index 97% rename from prisma-legacy/schema.prisma rename to prisma/prisma-legacy/schema.prisma index e12d8be..9adcc70 100644 --- a/prisma-legacy/schema.prisma +++ b/prisma/prisma-legacy/schema.prisma @@ -1,11 +1,10 @@ generator client { - provider = "prisma-client-js" - output = "../node_modules/@prisma/client-legacy" + provider = "prisma-client" + output = "../generated/legacy" } datasource db { provider = "postgresql" - url = env("DATABASE_URL_LEGACY") } model codeDesjardins { diff --git a/src/app.module.ts b/src/app.module.ts index 0f9610e..2e096a6 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -13,6 +13,7 @@ import { AuthenticationModule } from 'src/identity-and-account/authentication/au import { IdentityAndAccountModule } from 'src/identity-and-account/identity-and-account.module'; import { PrismaLegacyModule } from 'src/prisma-legacy/prisma.module'; import { ChatbotModule } from 'src/chatbot/chatbot.module'; +import { PrismaMariaDbService } from 'prisma/mariadb/prisma-mariadb.service'; @Module({ imports: [ @@ -21,6 +22,7 @@ import { ChatbotModule } from 'src/chatbot/chatbot.module'; ScheduleModule.forRoot(), //cronjobs NotificationsModule, PrismaPostgresModule, + PrismaMariaDbService, PrismaLegacyModule, TimeAndAttendanceModule, IdentityAndAccountModule, diff --git a/src/common/mappers/bank-type-id.mapper.ts b/src/common/mappers/bank-type-id.mapper.ts index 32d60d2..60fc88a 100644 --- a/src/common/mappers/bank-type-id.mapper.ts +++ b/src/common/mappers/bank-type-id.mapper.ts @@ -1,13 +1,13 @@ import { Injectable, NotFoundException } from "@nestjs/common"; import { LeaveTypes, Prisma, PrismaClient } from "@prisma/client"; import { Result } from "src/common/errors/result-error.factory"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; type Tx = Prisma.TransactionClient | PrismaClient; @Injectable() export class BankCodesResolver { - constructor(private readonly prisma: PrismaService) { } + constructor(private readonly prisma: PrismaPostgresService) { } //find id and modifier by type readonly findIdAndModifierByType = async (type: string, client?: Tx diff --git a/src/common/mappers/email-id.mapper.ts b/src/common/mappers/email-id.mapper.ts index a9c4c1a..80551ab 100644 --- a/src/common/mappers/email-id.mapper.ts +++ b/src/common/mappers/email-id.mapper.ts @@ -1,5 +1,5 @@ import { Prisma, PrismaClient } from "@prisma/client"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { Injectable } from "@nestjs/common"; import { Result } from "src/common/errors/result-error.factory"; @@ -8,7 +8,7 @@ type Tx = Prisma.TransactionClient | PrismaClient; @Injectable() export class EmailToIdResolver { - constructor(private readonly prisma: PrismaService) { } + constructor(private readonly prisma: PrismaPostgresService) { } // find employee_id using email readonly findIdByEmail = async (email: string, client?: Tx diff --git a/src/common/mappers/full-name.mapper.ts b/src/common/mappers/full-name.mapper.ts index 10ed1b9..3408592 100644 --- a/src/common/mappers/full-name.mapper.ts +++ b/src/common/mappers/full-name.mapper.ts @@ -1,13 +1,13 @@ import { Injectable } from "@nestjs/common"; import { Prisma, PrismaClient } from "@prisma/client"; import { Result } from "src/common/errors/result-error.factory"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; type Tx = Prisma.TransactionClient | PrismaClient; @Injectable() export class FullNameResolver { - constructor(private readonly prisma: PrismaService){} + constructor(private readonly prisma: PrismaPostgresService){} readonly resolveFullName = async (employee_id: number, client?: Tx): Promise> =>{ const db = client ?? this.prisma; diff --git a/src/common/mappers/shifts-id.mapper.ts b/src/common/mappers/shifts-id.mapper.ts index 8b4bcca..a24d13a 100644 --- a/src/common/mappers/shifts-id.mapper.ts +++ b/src/common/mappers/shifts-id.mapper.ts @@ -1,5 +1,5 @@ import { Prisma, PrismaClient } from "@prisma/client"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { Result } from "src/common/errors/result-error.factory"; type Tx = Prisma.TransactionClient | PrismaClient; @@ -15,7 +15,7 @@ interface ShiftKey { } export class ShiftIdResolver { - constructor(private readonly prisma: PrismaService) { } + constructor(private readonly prisma: PrismaPostgresService) { } readonly findShiftIdByData = async (key: ShiftKey, client?: Tx ): Promise> => { diff --git a/src/common/mappers/timesheet.mapper.ts b/src/common/mappers/timesheet.mapper.ts index 28f324e..2592aec 100644 --- a/src/common/mappers/timesheet.mapper.ts +++ b/src/common/mappers/timesheet.mapper.ts @@ -1,6 +1,6 @@ import { Injectable, NotFoundException } from "@nestjs/common"; import { Prisma, PrismaClient } from "@prisma/client"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { EmailToIdResolver } from "./email-id.mapper"; import { Result } from "src/common/errors/result-error.factory"; import { weekStartSunday } from "src/common/utils/date-utils"; @@ -11,7 +11,7 @@ type Tx = Prisma.TransactionClient | PrismaClient; @Injectable() export class EmployeeTimesheetResolver { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly emailResolver: EmailToIdResolver, ) { } diff --git a/src/common/shared/base-approval.service.ts b/src/common/shared/base-approval.service.ts index 23a2908..6f8ccc3 100644 --- a/src/common/shared/base-approval.service.ts +++ b/src/common/shared/base-approval.service.ts @@ -1,7 +1,7 @@ import { NotFoundException } from "@nestjs/common"; import { Prisma } from "@prisma/client"; -import { PrismaClientKnownRequestError } from "@prisma/client/runtime/library"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaClientKnownRequestError } from "@prisma/client/runtime/client"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; type UpdatableDelegate = { @@ -13,7 +13,7 @@ type UpdatableDelegate = { //abstract class for approving or rejecting a shift, expense, timesheet or pay-period export abstract class BaseApprovalService { - protected constructor(protected readonly prisma: PrismaService) {} + protected constructor(protected readonly prisma: PrismaPostgresService) {} //returns the corresponding Prisma delegate protected abstract get delegate(): UpdatableDelegate; diff --git a/src/customer-support/accounts/account.controller.ts b/src/customer-support/accounts/account.controller.ts new file mode 100644 index 0000000..dde850e --- /dev/null +++ b/src/customer-support/accounts/account.controller.ts @@ -0,0 +1,19 @@ +import { Controller } from "@nestjs/common"; +import { AccountService } from "src/customer-support/accounts/account.service"; + + +@Controller() +export class AccountController { + constructor(private readonly accountService: AccountService) { } + + findAllAccounts = async() => { + return await this.accountService.findAllAccounts(); + } + + findMemosByAccountId = async( + accountId:number, + ) => { + return await this.accountService.findMemosByAccountId(accountId); + } + +} \ No newline at end of file diff --git a/src/customer-support/accounts/account.dto.ts b/src/customer-support/accounts/account.dto.ts new file mode 100644 index 0000000..d5bba5e --- /dev/null +++ b/src/customer-support/accounts/account.dto.ts @@ -0,0 +1,37 @@ +export class Account { + id: number; + customerId?: string; + language: string; + username?: string; + password?: string; + groupId: number; + status?: number; + firstName?: string; + lastName?: string; + mandataire?: string; //sometimes the first_name and last_name are found here, sometimes its the name of someone who manage the account + title?: string; + email?: string[]; + company?: string; + contact: string; + address?: string[]; //string of country, city, state, zip, road, number, apt concat. + telHome?: string; + telOffice?: string; + telOffice_ext?: string; + cell?: string; + fax?: string; + landOwner: boolean; + commercial: boolean; + vip: boolean; + notes_client?: string; + terminateReason?: string; + terminateCie?: string; + terminateNote?: string; + terminateDate?: string; + mauvaisPayeur: boolean; +}; + +export class AccountMemo { + last_updated: number; + staff_id: number; + memo?: string; +}; diff --git a/src/customer-support/accounts/account.module.ts b/src/customer-support/accounts/account.module.ts new file mode 100644 index 0000000..61d8c37 --- /dev/null +++ b/src/customer-support/accounts/account.module.ts @@ -0,0 +1,13 @@ +import { Module } from "@nestjs/common"; +import { AccountController } from "src/customer-support/accounts/account.controller"; +import { AccountService } from "src/customer-support/accounts/account.service"; + + +@Module({ + providers: [ + AccountService + ], + controllers: [ + AccountController + ], +}) export class AccountModule { }; \ No newline at end of file diff --git a/src/customer-support/accounts/account.service.ts b/src/customer-support/accounts/account.service.ts new file mode 100644 index 0000000..455a90d --- /dev/null +++ b/src/customer-support/accounts/account.service.ts @@ -0,0 +1,153 @@ +import { Injectable } from "@nestjs/common"; +import { PrismaClient } from "prisma/generated/mariadb/client"; +import { Result } from "src/common/errors/result-error.factory"; +import { Account, AccountMemo } from "src/customer-support/accounts/account.dto"; + + +@Injectable() +export class AccountService { + constructor(private readonly prismaMariaDb: PrismaClient) { } + + findAllAccounts = async (): Promise> => { + const listOfAccounts: Account[] = []; + + const rawListOfAccounts = await this.prismaMariaDb.account.findMany({}); + if (!rawListOfAccounts) return { success: false, error: 'ACCOUNTS_NOT_FOUND' } + try { + + for (const account of rawListOfAccounts) { + const emailList: string[] = [ + account.email ? account.email : '', + account.email_autre ? account.email_autre : '', + ]; + + const addressList: string[] = [ + account.address1 ? account.address1 : '', + account.address2 ? account.address2 : '', + account.city ? account.city : '', + account.state ? account.state : '', + account.zip ? account.zip : '', + account.country_id.toString(), + ]; + + listOfAccounts.push({ + id: Number(account.id), + customerId: account.customer_id ? account.customer_id : '', + language: account.language_id, + username: account.username ? account.username : '', + password: account.password ? account.password : '', + groupId: account.group_id ? account.group_id : 0, + status: account.status ? account.status : 0, + firstName: account.first_name ? account.first_name : '', + lastName: account.last_name ? account.last_name : '', + mandataire: account.mandataire ? account.mandataire : '', + title: account.title ? account.title : '', + email: emailList, + company: account.company ? account.company : '', + contact: account.contact, + address: addressList, + telHome: account.tel_home ? account.tel_home : '', + telOffice: account.tel_office ? account.tel_office : '', + telOffice_ext: account.tel_office_ext ? account.tel_office_ext : '', + cell: account.cell ? account.cell : '', + fax: account.fax ? account.fax : '', + landOwner: account.land_owner, + commercial: account.commercial, + vip: account.vip, + notes_client: account.notes_client ? account.notes_client : '', + terminateReason: account.terminate_reason ? account.terminate_reason : '', + terminateCie: account.terminate_cie ? account.terminate_cie : '', + terminateNote: account.terminate_note ? account.terminate_note : '', + terminateDate: account.terminate_date ? account.terminate_date : '', + mauvaisPayeur: account.mauvais_payeur, + }); + } + console.log(listOfAccounts); + return { success: true, data: listOfAccounts }; + + } catch (error) { + return { success: false, error: error + " \n An error occured during retrieving the list of accounts" } + } + } + + findMemosByAccountId = async (accountId: number): Promise> => { + const listOfMemos: AccountMemo[] = []; + + const rawListOfMemos = await this.prismaMariaDb.account_memo.findMany({ + where: { account_id: accountId }, + select: { last_updated: true, staff_id: true, memo: true }, + }); + if (!rawListOfMemos) return { success: false, error: 'MEMOS_NOT_FOUND' }; + + for (const memo of rawListOfMemos) { + listOfMemos.push({ + last_updated: Number(memo.last_updated), + staff_id: Number(memo.staff_id), + memo: memo.memo ? memo.memo : '', + }); + } + return { success: true, data: listOfMemos } + } +} + +export const findAllAccounts = async (prismaMariaDb: PrismaClient): Promise> => { + const listOfAccounts: Account[] = []; + + const rawListOfAccounts = await prismaMariaDb.account.findMany({}); + if (!rawListOfAccounts) return { success: false, error: 'ACCOUNTS_NOT_FOUND' } + try { + + for (const account of rawListOfAccounts) { + const emailList: string[] = [ + account.email ? account.email : '', + account.email_autre ? account.email_autre : '', + ]; + + const addressList: string[] = [ + account.address1 ? account.address1 : '', + account.address2 ? account.address2 : '', + account.city ? account.city : '', + account.state ? account.state : '', + account.zip ? account.zip : '', + account.country_id.toString(), + ]; + + listOfAccounts.push({ + id: Number(account.id), + customerId: account.customer_id ? account.customer_id : '', + language: account.language_id, + username: account.username ? account.username : '', + password: account.password ? account.password : '', + groupId: account.group_id ? account.group_id : 0, + status: account.status ? account.status : 0, + firstName: account.first_name ? account.first_name : '', + lastName: account.last_name ? account.last_name : '', + mandataire: account.mandataire ? account.mandataire : '', + title: account.title ? account.title : '', + email: emailList, + company: account.company ? account.company : '', + contact: account.contact, + address: addressList, + telHome: account.tel_home ? account.tel_home : '', + telOffice: account.tel_office ? account.tel_office : '', + telOffice_ext: account.tel_office_ext ? account.tel_office_ext : '', + cell: account.cell ? account.cell : '', + fax: account.fax ? account.fax : '', + landOwner: account.land_owner, + commercial: account.commercial, + vip: account.vip, + notes_client: account.notes_client ? account.notes_client : '', + terminateReason: account.terminate_reason ? account.terminate_reason : '', + terminateCie: account.terminate_cie ? account.terminate_cie : '', + terminateNote: account.terminate_note ? account.terminate_note : '', + terminateDate: account.terminate_date ? account.terminate_date : '', + mauvaisPayeur: account.mauvais_payeur, + }); + } + console.log(listOfAccounts); + return { success: true, data: listOfAccounts }; + + } catch (error) { + return { success: false, error: error + " \n An error occured during retrieving the list of accounts" } + } + } \ No newline at end of file diff --git a/src/customer-support/customer-support.module.ts b/src/customer-support/customer-support.module.ts new file mode 100644 index 0000000..930aee1 --- /dev/null +++ b/src/customer-support/customer-support.module.ts @@ -0,0 +1,8 @@ +import { Module } from "@nestjs/common"; + +@Module({ + imports: [], + controllers: [], + providers: [], + exports: [], +}) export class CustomerSupportModule {} \ No newline at end of file diff --git a/prisma/mariadb/prisma.module.ts b/src/customer-support/deliveries/delivery.controller.ts similarity index 100% rename from prisma/mariadb/prisma.module.ts rename to src/customer-support/deliveries/delivery.controller.ts diff --git a/prisma/mariadb/prisma.service.ts b/src/customer-support/deliveries/delivery.dto.ts similarity index 100% rename from prisma/mariadb/prisma.service.ts rename to src/customer-support/deliveries/delivery.dto.ts diff --git a/src/customer-support/deliveries/delivery.module.ts b/src/customer-support/deliveries/delivery.module.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/deliveries/delivery.service.ts b/src/customer-support/deliveries/delivery.service.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/devices/device.controller.ts b/src/customer-support/devices/device.controller.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/devices/device.dto.ts b/src/customer-support/devices/device.dto.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/devices/device.module.ts b/src/customer-support/devices/device.module.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/devices/device.service.ts b/src/customer-support/devices/device.service.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/fibre/fibre.controller.ts b/src/customer-support/fibre/fibre.controller.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/fibre/fibre.dto.ts b/src/customer-support/fibre/fibre.dto.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/fibre/fibre.module.ts b/src/customer-support/fibre/fibre.module.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/fibre/fibre.service.ts b/src/customer-support/fibre/fibre.service.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/phones/phone.controller.ts b/src/customer-support/phones/phone.controller.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/phones/phone.dto.ts b/src/customer-support/phones/phone.dto.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/phones/phone.module.ts b/src/customer-support/phones/phone.module.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/phones/phone.service.ts b/src/customer-support/phones/phone.service.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/product/product.controller.ts b/src/customer-support/product/product.controller.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/product/product.dto.ts b/src/customer-support/product/product.dto.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/product/product.module.ts b/src/customer-support/product/product.module.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/product/product.service.ts b/src/customer-support/product/product.service.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/staff/staff.controller.ts b/src/customer-support/staff/staff.controller.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/staff/staff.dto.ts b/src/customer-support/staff/staff.dto.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/staff/staff.module.ts b/src/customer-support/staff/staff.module.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/staff/staff.service.ts b/src/customer-support/staff/staff.service.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/television/television.controller.ts b/src/customer-support/television/television.controller.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/television/television.dto.ts b/src/customer-support/television/television.dto.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/television/television.module.ts b/src/customer-support/television/television.module.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/television/television.service.ts b/src/customer-support/television/television.service.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/tickets/ticket.controller.ts b/src/customer-support/tickets/ticket.controller.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/tickets/ticket.dto.ts b/src/customer-support/tickets/ticket.dto.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/tickets/ticket.module.ts b/src/customer-support/tickets/ticket.module.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/customer-support/tickets/ticket.service.ts b/src/customer-support/tickets/ticket.service.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/identity-and-account/employees/services/employees-create.service.ts b/src/identity-and-account/employees/services/employees-create.service.ts index a008256..8bbd715 100644 --- a/src/identity-and-account/employees/services/employees-create.service.ts +++ b/src/identity-and-account/employees/services/employees-create.service.ts @@ -5,11 +5,11 @@ import { toDateFromString } from "src/common/utils/date-utils"; import { EmployeeDetailedDto } from "src/identity-and-account/employees/employee-detailed.dto"; import { toCompanyCodeFromString } from "src/identity-and-account/employees/employee.utils"; import { toBooleanFromString } from "src/identity-and-account/employees/services/employees-get.service"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; @Injectable() export class EmployeesCreateService { - constructor(private readonly prisma: PrismaService) { } + constructor(private readonly prisma: PrismaPostgresService) { } async createEmployee(dto: EmployeeDetailedDto): Promise> { const normalized_access = toBooleanFromString(dto.user_module_access); diff --git a/src/identity-and-account/employees/services/employees-get.service.ts b/src/identity-and-account/employees/services/employees-get.service.ts index aef6e57..1a29a4f 100644 --- a/src/identity-and-account/employees/services/employees-get.service.ts +++ b/src/identity-and-account/employees/services/employees-get.service.ts @@ -1,5 +1,5 @@ import { Injectable } from "@nestjs/common"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { module_list, Modules } from "src/common/mappers/module-access.mapper"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; @@ -13,7 +13,7 @@ import { toKeysFromBoolean } from "src/common/utils/boolean-utils"; @Injectable() export class EmployeesGetService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly emailResolver: EmailToIdResolver, ) { } diff --git a/src/identity-and-account/employees/services/employees-update.service.ts b/src/identity-and-account/employees/services/employees-update.service.ts index ce829d7..a351d83 100644 --- a/src/identity-and-account/employees/services/employees-update.service.ts +++ b/src/identity-and-account/employees/services/employees-update.service.ts @@ -1,5 +1,5 @@ import { Injectable } from "@nestjs/common"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; import { toDateFromString } from "src/common/utils/date-utils"; @@ -12,7 +12,7 @@ import { PaidTimeOffDto } from "src/time-and-attendance/paid-time-off/paid-time- @Injectable() export class EmployeesUpdateService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly emailResolver: EmailToIdResolver, ) { } diff --git a/src/identity-and-account/help/help-page.service.ts b/src/identity-and-account/help/help-page.service.ts index 6cd0c3a..085c16d 100644 --- a/src/identity-and-account/help/help-page.service.ts +++ b/src/identity-and-account/help/help-page.service.ts @@ -1,12 +1,12 @@ import { Injectable } from "@nestjs/common"; import { Result } from "src/common/errors/result-error.factory"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; @Injectable() export class HomePageService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly emailresolver: EmailToIdResolver, ) { } diff --git a/src/identity-and-account/preferences/preferences.service.ts b/src/identity-and-account/preferences/preferences.service.ts index cbc2395..ab188df 100644 --- a/src/identity-and-account/preferences/preferences.service.ts +++ b/src/identity-and-account/preferences/preferences.service.ts @@ -1,5 +1,5 @@ import { DisplayLanguage, PreferencesDto } from "./preferences.dto"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { Injectable } from "@nestjs/common"; import { Result } from "src/common/errors/result-error.factory"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; @@ -7,7 +7,7 @@ import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; @Injectable() export class PreferencesService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly emailResolver: EmailToIdResolver, ) { } diff --git a/src/identity-and-account/user-module-access/services/module-access-get.service.ts b/src/identity-and-account/user-module-access/services/module-access-get.service.ts index f3d46a7..b7dcdf9 100644 --- a/src/identity-and-account/user-module-access/services/module-access-get.service.ts +++ b/src/identity-and-account/user-module-access/services/module-access-get.service.ts @@ -2,13 +2,13 @@ import { Injectable } from "@nestjs/common"; import { Result } from "src/common/errors/result-error.factory"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; import { ModuleAccess } from "src/identity-and-account/user-module-access/module-acces.dto"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; @Injectable() export class AccessGetService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly emailResolver: EmailToIdResolver, ) { } diff --git a/src/identity-and-account/user-module-access/services/module-access-update.service.ts b/src/identity-and-account/user-module-access/services/module-access-update.service.ts index 1aad3d4..9219623 100644 --- a/src/identity-and-account/user-module-access/services/module-access-update.service.ts +++ b/src/identity-and-account/user-module-access/services/module-access-update.service.ts @@ -2,12 +2,12 @@ import { Injectable } from "@nestjs/common"; import { Result } from "src/common/errors/result-error.factory"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; import { ModuleAccess } from "src/identity-and-account/user-module-access/module-acces.dto"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; @Injectable() export class AccessUpdateService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly emailResolver: EmailToIdResolver, ) { } diff --git a/src/identity-and-account/users-management/services/abstract-user.service.ts b/src/identity-and-account/users-management/services/abstract-user.service.ts index ef30a3e..d0c2126 100644 --- a/src/identity-and-account/users-management/services/abstract-user.service.ts +++ b/src/identity-and-account/users-management/services/abstract-user.service.ts @@ -1,11 +1,11 @@ import { Injectable, NotFoundException } from '@nestjs/common'; import { Modules, Users } from '@prisma/client'; import { toKeysFromBoolean } from 'src/common/utils/boolean-utils'; -import { PrismaService } from 'prisma/postgres/prisma-postgres.service'; +import { PrismaPostgresService } from 'prisma/postgres/prisma-postgres.service'; @Injectable() export abstract class AbstractUserService { - constructor(protected readonly prisma: PrismaService) { } + constructor(protected readonly prisma: PrismaPostgresService) { } async findOneByEmail(email: string): Promise> { const user = await this.prisma.users.findUnique({ diff --git a/src/identity-and-account/users-management/services/users.service.ts b/src/identity-and-account/users-management/services/users.service.ts index a693163..44b71a9 100644 --- a/src/identity-and-account/users-management/services/users.service.ts +++ b/src/identity-and-account/users-management/services/users.service.ts @@ -1,10 +1,10 @@ import { Injectable } from '@nestjs/common'; -import { PrismaService } from 'prisma/postgres/prisma-postgres.service'; +import { PrismaPostgresService } from 'prisma/postgres/prisma-postgres.service'; import { AbstractUserService } from './abstract-user.service'; @Injectable() export class UsersService extends AbstractUserService { - constructor(protected readonly prisma: PrismaService) { + constructor(protected readonly prisma: PrismaPostgresService) { super(prisma); } } diff --git a/src/identity-and-account/users-management/users.module.ts b/src/identity-and-account/users-management/users.module.ts index b370638..4feec0f 100644 --- a/src/identity-and-account/users-management/users.module.ts +++ b/src/identity-and-account/users-management/users.module.ts @@ -1,9 +1,9 @@ import { Module } from '@nestjs/common'; import { UsersService } from './services/users.service'; -import { PrismaModule } from 'prisma/postgres/prisma-postgres.module'; +import { PrismaPostgresModule } from 'prisma/postgres/prisma-postgres.module'; @Module({ - imports: [PrismaModule], + imports: [PrismaPostgresModule], providers: [UsersService], exports: [UsersService], }) diff --git a/src/main.ts b/src/main.ts index 25a9751..0a47df2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -12,7 +12,7 @@ import { ModulesGuard } from './common/guards/modules.guard'; // import { writeFileSync } from 'fs'; import * as session from 'express-session'; import * as passport from 'passport'; -import { PrismaService } from 'prisma/postgres/prisma-postgres.service'; +import { PrismaPostgresService } from 'prisma/postgres/prisma-postgres.service'; import { PrismaSessionStore } from '@quixo3/prisma-session-store'; // import { initSupervisor } from 'scripts/init-supervisor'; // import { initializePaidTimeOff } from 'scripts/init-paid-time-off'; @@ -25,7 +25,7 @@ const SESSION_TOKEN_DURATION_MINUTES = 180 async function bootstrap() { const app = await NestFactory.create(AppModule); - const prisma_service = app.get(PrismaService); + const prisma_service = app.get(PrismaPostgresService); const reflector = app.get(Reflector); diff --git a/src/time-and-attendance/attachments/services/attachment-archival.service.ts b/src/time-and-attendance/attachments/services/attachment-archival.service.ts index f8ad1ae..1adac91 100644 --- a/src/time-and-attendance/attachments/services/attachment-archival.service.ts +++ b/src/time-and-attendance/attachments/services/attachment-archival.service.ts @@ -1,14 +1,14 @@ import { Injectable } from "@nestjs/common"; import { Cron } from "@nestjs/schedule"; import { startOfYear } from "src/time-and-attendance/attachments/cas.util"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; @Injectable() export class AttachmentArchivalService { private readonly batch_size = Number(process.env.ARCHIVE_BATCH_SIZE || 1000); private readonly cron_expression = process.env.ARCHIVE_CRON || '0 3 * * 1'; - constructor(private readonly prisma: PrismaService) { } + constructor(private readonly prisma: PrismaPostgresService) { } @Cron(function (this: AttachmentArchivalService) { return this.cron_expression; } as any) diff --git a/src/time-and-attendance/attachments/services/attachment-delete.service.ts b/src/time-and-attendance/attachments/services/attachment-delete.service.ts index 522c521..5ce6793 100644 --- a/src/time-and-attendance/attachments/services/attachment-delete.service.ts +++ b/src/time-and-attendance/attachments/services/attachment-delete.service.ts @@ -1,10 +1,10 @@ import { Injectable } from "@nestjs/common"; import { Result } from "src/common/errors/result-error.factory"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; @Injectable() export class AttachmentDeleteService { - constructor(private readonly prisma: PrismaService) { } + constructor(private readonly prisma: PrismaPostgresService) { } async deleteAttachment(id: string): Promise> { await this.prisma.$transaction(async (tx) => { diff --git a/src/time-and-attendance/attachments/services/attachment-get.service.ts b/src/time-and-attendance/attachments/services/attachment-get.service.ts index 72d70a2..bace544 100644 --- a/src/time-and-attendance/attachments/services/attachment-get.service.ts +++ b/src/time-and-attendance/attachments/services/attachment-get.service.ts @@ -1,7 +1,7 @@ import { Injectable } from "@nestjs/common"; import { Response } from "express"; import { AdminSearchDto } from "src/time-and-attendance/attachments/dtos/search-filters.dto"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { resolveAttachmentsRoot } from "src/time-and-attendance/attachments/config/attachment.config"; import * as path from 'node:path'; import { promises as fsp } from 'node:fs'; @@ -12,7 +12,7 @@ import { Result } from "src/common/errors/result-error.factory"; @Injectable() export class AttachmentGetService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, ) { } diff --git a/src/time-and-attendance/attachments/services/attachment-upload.service.ts b/src/time-and-attendance/attachments/services/attachment-upload.service.ts index b262249..4dd8ae3 100644 --- a/src/time-and-attendance/attachments/services/attachment-upload.service.ts +++ b/src/time-and-attendance/attachments/services/attachment-upload.service.ts @@ -2,7 +2,7 @@ import { Injectable } from "@nestjs/common"; import { allowedMimes } from "src/time-and-attendance/attachments/upload.config"; import { UploadMetaAttachmentsDto } from "src/time-and-attendance/attachments/dtos/upload-meta-attachments.dto"; import { Readable } from "node:stream"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { fileTypeFromBuffer } from "file-type"; import { Result } from "src/common/errors/result-error.factory"; import { DiskStorageService } from "src/time-and-attendance/attachments/services/disk-storage.service"; @@ -11,7 +11,7 @@ import { VariantsQueue } from "src/time-and-attendance/attachments/services/vari @Injectable() export class AttachmentUploadService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly disk: DiskStorageService, private readonly variantsQ: VariantsQueue, ) { } diff --git a/src/time-and-attendance/attachments/services/garbage-collector.service.ts b/src/time-and-attendance/attachments/services/garbage-collector.service.ts index 309393c..2c35806 100644 --- a/src/time-and-attendance/attachments/services/garbage-collector.service.ts +++ b/src/time-and-attendance/attachments/services/garbage-collector.service.ts @@ -1,6 +1,6 @@ import { Injectable, Logger } from "@nestjs/common"; import { Cron } from "@nestjs/schedule"; -import { PrismaService } from 'prisma/postgres/prisma-postgres.service'; +import { PrismaPostgresService } from 'prisma/postgres/prisma-postgres.service'; import * as path from 'node:path'; import { promises as fsp } from 'node:fs'; import { resolveAttachmentsRoot } from "src/time-and-attendance/attachments/config/attachment.config"; @@ -16,7 +16,7 @@ export class GarbargeCollectorService { //fetchs root of storage private readonly root = resolveAttachmentsRoot(); - constructor(private readonly prisma: PrismaService) { } + constructor(private readonly prisma: PrismaPostgresService) { } //planif for the Cronjob @Cron(function (this: GarbargeCollectorService) { return this.cron_expression; } as any) diff --git a/src/time-and-attendance/bank-codes/bank-codes.module.ts b/src/time-and-attendance/bank-codes/bank-codes.module.ts index 6310979..dfacff5 100644 --- a/src/time-and-attendance/bank-codes/bank-codes.module.ts +++ b/src/time-and-attendance/bank-codes/bank-codes.module.ts @@ -1,11 +1,11 @@ import { Module } from "@nestjs/common"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { BankCodesControllers } from "src/time-and-attendance/bank-codes/bank-codes.controller"; import { BankCodesService } from "src/time-and-attendance/bank-codes/bank-codes.service"; @Module({ controllers: [BankCodesControllers], - providers: [BankCodesService, PrismaService], + providers: [BankCodesService, PrismaPostgresService], }) export class BankCodesModule {} \ No newline at end of file diff --git a/src/time-and-attendance/bank-codes/bank-codes.service.ts b/src/time-and-attendance/bank-codes/bank-codes.service.ts index 0a37830..18f7120 100644 --- a/src/time-and-attendance/bank-codes/bank-codes.service.ts +++ b/src/time-and-attendance/bank-codes/bank-codes.service.ts @@ -1,11 +1,11 @@ import { Injectable } from "@nestjs/common"; import { Prisma } from "@prisma/client"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { Result } from "src/common/errors/result-error.factory"; @Injectable() export class BankCodesService { - constructor(private readonly prisma: PrismaService) { } + constructor(private readonly prisma: PrismaPostgresService) { } async create(dto: Prisma.BankCodesCreateInput): Promise> { try { diff --git a/src/time-and-attendance/domains/services/banking-hours.service.ts b/src/time-and-attendance/domains/services/banking-hours.service.ts index fd9b19f..e7f360d 100644 --- a/src/time-and-attendance/domains/services/banking-hours.service.ts +++ b/src/time-and-attendance/domains/services/banking-hours.service.ts @@ -1,11 +1,11 @@ import { Injectable } from "@nestjs/common"; import { Result } from "src/common/errors/result-error.factory"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; @Injectable() export class BankedHoursService { - constructor(private readonly prisma: PrismaService) { } + constructor(private readonly prisma: PrismaPostgresService) { } //manage shifts with bank_code.type BANKING manageBankingHours = async (employee_id: number, asked_hours: number, type: string): Promise> => { diff --git a/src/time-and-attendance/domains/services/holiday.service.ts b/src/time-and-attendance/domains/services/holiday.service.ts index 3007038..4bcb213 100644 --- a/src/time-and-attendance/domains/services/holiday.service.ts +++ b/src/time-and-attendance/domains/services/holiday.service.ts @@ -1,6 +1,6 @@ import { Injectable } from "@nestjs/common"; import { computeHours, getWeekStart } from "src/common/utils/date-utils"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; import { MS_PER_WEEK } from "src/common/utils/constants.utils"; import { Result } from "src/common/errors/result-error.factory"; @@ -14,7 +14,7 @@ import { Result } from "src/common/errors/result-error.factory"; @Injectable() export class HolidayService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly emailResolver: EmailToIdResolver, ) { } diff --git a/src/time-and-attendance/domains/services/mileage.service.ts b/src/time-and-attendance/domains/services/mileage.service.ts index 9f974ec..b946695 100644 --- a/src/time-and-attendance/domains/services/mileage.service.ts +++ b/src/time-and-attendance/domains/services/mileage.service.ts @@ -1,11 +1,11 @@ import { Injectable } from "@nestjs/common"; import { Result } from "src/common/errors/result-error.factory"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; @Injectable() export class MileageService { - constructor(private readonly prisma: PrismaService) { } + constructor(private readonly prisma: PrismaPostgresService) { } public async calculateReimbursement(amount: number, bank_code_id: number): Promise> { if (amount < 0) return { success: false, error: 'The amount must be higher than 0' }; diff --git a/src/time-and-attendance/domains/services/overtime.service.ts b/src/time-and-attendance/domains/services/overtime.service.ts index 586a985..f9bf85b 100644 --- a/src/time-and-attendance/domains/services/overtime.service.ts +++ b/src/time-and-attendance/domains/services/overtime.service.ts @@ -1,7 +1,7 @@ import { Injectable } from '@nestjs/common'; import { Prisma, PrismaClient } from '@prisma/client'; import { getWeekStart, getWeekEnd, computeHours } from 'src/common/utils/date-utils'; -import { PrismaService } from 'prisma/postgres/prisma-postgres.service'; +import { PrismaPostgresService } from 'prisma/postgres/prisma-postgres.service'; import { DAILY_LIMIT_HOURS, WEEKLY_LIMIT_HOURS } from 'src/common/utils/constants.utils'; import { Result } from 'src/common/errors/result-error.factory'; @@ -29,7 +29,7 @@ export class OvertimeService { private INCLUDED_TYPES = ['EMERGENCY', 'EVENING', 'OVERTIME', 'REGULAR', 'HOLIDAY', 'BANKING'] as const; // included types for weekly overtime calculation - constructor(private prisma: PrismaService) { } + constructor(private prisma: PrismaPostgresService) { } async getWeekOvertimeSummary(timesheet_id: number, date: Date, tx?: Tx): Promise> { const db = tx ?? this.prisma; diff --git a/src/time-and-attendance/domains/services/sick-leave.service.ts b/src/time-and-attendance/domains/services/sick-leave.service.ts index eb98bde..c16dc28 100644 --- a/src/time-and-attendance/domains/services/sick-leave.service.ts +++ b/src/time-and-attendance/domains/services/sick-leave.service.ts @@ -1,12 +1,12 @@ ๏ปฟimport { getYearStart, roundToQuarterHour } from "src/common/utils/date-utils"; import { Injectable, Logger } from "@nestjs/common"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { Result } from "src/common/errors/result-error.factory"; import { Prisma } from "@prisma/client"; @Injectable() export class SickLeaveService { - constructor(private readonly prisma: PrismaService) { } + constructor(private readonly prisma: PrismaPostgresService) { } async updateSickLeaveHours(employee_id: number): Promise> { const THIRTY_DAYS = 1000 * 60 * 60 * 24 * 30; diff --git a/src/time-and-attendance/domains/services/vacation.service.ts b/src/time-and-attendance/domains/services/vacation.service.ts index ad5bf78..dca9ec9 100644 --- a/src/time-and-attendance/domains/services/vacation.service.ts +++ b/src/time-and-attendance/domains/services/vacation.service.ts @@ -1,12 +1,12 @@ import { BadRequestException, Injectable, Logger, NotFoundException } from "@nestjs/common"; import { Result } from "src/common/errors/result-error.factory"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; @Injectable() export class VacationService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly emailResolver: EmailToIdResolver, ) { } diff --git a/src/time-and-attendance/expenses/services/expense-create.service.ts b/src/time-and-attendance/expenses/services/expense-create.service.ts index bcd19c2..a7d89ca 100644 --- a/src/time-and-attendance/expenses/services/expense-create.service.ts +++ b/src/time-and-attendance/expenses/services/expense-create.service.ts @@ -3,7 +3,7 @@ import { Result } from "src/common/errors/result-error.factory"; import { BankCodesResolver } from "src/common/mappers/bank-type-id.mapper"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; import { toStringFromDate, weekStartSunday } from "src/common/utils/date-utils"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { ExpenseDto } from "src/time-and-attendance/expenses/expense-create.dto"; import { normalizeAndParseExpenseDto } from "src/time-and-attendance/expenses/expense.utils"; import { PayPeriodEventService } from "src/time-and-attendance/pay-period/services/pay-period-event.service"; @@ -12,7 +12,7 @@ import { expense_select } from "src/time-and-attendance/utils/selects.utils"; @Injectable() export class ExpenseCreateService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly emailResolver: EmailToIdResolver, private readonly typeResolver: BankCodesResolver, private readonly payPeriodEventService: PayPeriodEventService, diff --git a/src/time-and-attendance/expenses/services/expense-delete.service.ts b/src/time-and-attendance/expenses/services/expense-delete.service.ts index 01c3bfc..9662243 100644 --- a/src/time-and-attendance/expenses/services/expense-delete.service.ts +++ b/src/time-and-attendance/expenses/services/expense-delete.service.ts @@ -1,13 +1,13 @@ import { Injectable } from "@nestjs/common"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { Result } from "src/common/errors/result-error.factory"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; -import { PrismaService } from "src/prisma/prisma.service"; import { PayPeriodEventService } from "src/time-and-attendance/pay-period/services/pay-period-event.service"; @Injectable() export class ExpenseDeleteService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly payPeriodEventService: PayPeriodEventService, private readonly emailResolver: EmailToIdResolver, ){} diff --git a/src/time-and-attendance/expenses/services/expense-update.service.ts b/src/time-and-attendance/expenses/services/expense-update.service.ts index 935c580..0346bd3 100644 --- a/src/time-and-attendance/expenses/services/expense-update.service.ts +++ b/src/time-and-attendance/expenses/services/expense-update.service.ts @@ -1,7 +1,7 @@ import { weekStartSunday, toStringFromDate, toDateFromString } from "src/common/utils/date-utils"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; import { expense_select, timesheet_select } from "src/time-and-attendance/utils/selects.utils"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { Injectable } from "@nestjs/common"; import { Result } from "src/common/errors/result-error.factory"; import { BankCodesResolver } from "src/common/mappers/bank-type-id.mapper"; @@ -13,7 +13,7 @@ import { PayPeriodEventService } from "src/time-and-attendance/pay-period/servic @Injectable() export class ExpenseUpdateService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly emailResolver: EmailToIdResolver, private readonly typeResolver: BankCodesResolver, private readonly payPeriodEventService: PayPeriodEventService, diff --git a/src/time-and-attendance/exports/services/csv-exports.service.ts b/src/time-and-attendance/exports/services/csv-exports.service.ts index 8c7d83e..449dc84 100644 --- a/src/time-and-attendance/exports/services/csv-exports.service.ts +++ b/src/time-and-attendance/exports/services/csv-exports.service.ts @@ -1,4 +1,4 @@ -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { BadRequestException, Injectable, NotFoundException } from "@nestjs/common"; import { Filters, CsvRow, InternalCsvRow } from "src/time-and-attendance/exports/export-csv-options.dto"; import { computeHours } from "src/common/utils/date-utils"; @@ -9,7 +9,7 @@ import { HolidayService } from "src/time-and-attendance/domains/services/holiday @Injectable() export class CsvExportService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly overtime_service: OvertimeService, private readonly holiday_service: HolidayService, ) { } diff --git a/src/time-and-attendance/leave-requests/services/holiday-leave-requests.service.ts b/src/time-and-attendance/leave-requests/services/holiday-leave-requests.service.ts index ef9bf52..3cd5396 100644 --- a/src/time-and-attendance/leave-requests/services/holiday-leave-requests.service.ts +++ b/src/time-and-attendance/leave-requests/services/holiday-leave-requests.service.ts @@ -7,7 +7,7 @@ // import { BankCodesResolver } from "src/time-and-attendance/utils/resolve-bank-type-id.utils"; // import { EmailToIdResolver } from "src/time-and-attendance/utils/resolve-email-id.utils"; // import { HolidayService } from "src/time-and-attendance/domains/services/holiday.service"; -// import { PrismaService } from "src/prisma/prisma.service"; +// import { PrismaPostgresService } from "src/prisma/prisma.service"; // import { mapRowToView } from "src/time-and-attendance/leave-requests/mappers/leave-requests.mapper"; // import { normalizeDates, toDateOnly } from "src/time-and-attendance/utils/date-time.utils"; // import { Result } from "src/common/errors/result-error.factory"; @@ -17,7 +17,7 @@ // @Injectable() // export class HolidayLeaveRequestsService { // constructor( -// private readonly prisma: PrismaService, +// private readonly prisma: PrismaPostgresService, // private readonly holidayService: HolidayService, // private readonly leaveUtils: LeaveRequestsUtils, // private readonly emailResolver: EmailToIdResolver, diff --git a/src/time-and-attendance/leave-requests/services/leave-request.service.ts b/src/time-and-attendance/leave-requests/services/leave-request.service.ts index f8e3a42..6eba499 100644 --- a/src/time-and-attendance/leave-requests/services/leave-request.service.ts +++ b/src/time-and-attendance/leave-requests/services/leave-request.service.ts @@ -2,7 +2,7 @@ import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; import { BankCodesResolver } from "src/common/mappers/bank-type-id.mapper"; import { LeaveApprovalStatus, LeaveRequests, LeaveTypes, Prisma, Shifts } from "@prisma/client"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { Result } from "src/common/errors/result-error.factory"; import { Injectable } from "@nestjs/common"; import { LeaveRequestDto } from "src/time-and-attendance/leave-requests/leave-request.dto"; @@ -13,7 +13,7 @@ import { NormalizedLeaveRequest } from "src/time-and-attendance/utils/type.utils @Injectable() export class LeaveRequestsService { // constructor( -// private readonly prisma: PrismaService, +// private readonly prisma: PrismaPostgresService, // private readonly timesheetResolver: EmployeeTimesheetResolver, // private readonly emailResolver: EmailToIdResolver, // private readonly typeResolver: BankCodesResolver, diff --git a/src/time-and-attendance/leave-requests/services/sick-leave-requests.service.ts b/src/time-and-attendance/leave-requests/services/sick-leave-requests.service.ts index 0668f50..2bdaed4 100644 --- a/src/time-and-attendance/leave-requests/services/sick-leave-requests.service.ts +++ b/src/time-and-attendance/leave-requests/services/sick-leave-requests.service.ts @@ -7,7 +7,7 @@ // import { BankCodesResolver } from "src/time-and-attendance/utils/resolve-bank-type-id.utils"; // import { EmailToIdResolver } from "src/time-and-attendance/utils/resolve-email-id.utils"; // import { SickLeaveService } from "src/time-and-attendance/domains/services/sick-leave.service"; -// import { PrismaService } from "src/prisma/prisma.service"; +// import { PrismaPostgresService } from "src/prisma/prisma.service"; // import { mapRowToView } from "src/time-and-attendance/leave-requests/mappers/leave-requests.mapper"; // import { normalizeDates, toDateOnly } from "src/time-and-attendance/utils/date-time.utils"; @@ -16,7 +16,7 @@ // @Injectable() // export class SickLeaveRequestsService { // constructor( -// private readonly prisma: PrismaService, +// private readonly prisma: PrismaPostgresService, // private readonly sickService: SickLeaveService, // private readonly emailResolver: EmailToIdResolver, // private readonly typeResolver: BankCodesResolver, diff --git a/src/time-and-attendance/leave-requests/services/vacation-leave-requests.service.ts b/src/time-and-attendance/leave-requests/services/vacation-leave-requests.service.ts index a823d75..9811a7d 100644 --- a/src/time-and-attendance/leave-requests/services/vacation-leave-requests.service.ts +++ b/src/time-and-attendance/leave-requests/services/vacation-leave-requests.service.ts @@ -7,7 +7,7 @@ // import { BankCodesResolver } from "src/time-and-attendance/utils/resolve-bank-type-id.utils"; // import { EmailToIdResolver } from "src/time-and-attendance/utils/resolve-email-id.utils"; // import { VacationService } from "src/time-and-attendance/domains/services/vacation.service"; -// import { PrismaService } from "src/prisma/prisma.service"; +// import { PrismaPostgresService } from "src/prisma/prisma.service"; // import { mapRowToView } from "src/time-and-attendance/leave-requests/mappers/leave-requests.mapper"; // import { normalizeDates, toDateOnly } from "src/time-and-attendance/utils/date-time.utils"; @@ -15,7 +15,7 @@ // @Injectable() // export class VacationLeaveRequestsService { // constructor( -// private readonly prisma: PrismaService, +// private readonly prisma: PrismaPostgresService, // private readonly vacationService: VacationService, // private readonly emailResolver: EmailToIdResolver, // private readonly typeResolver: BankCodesResolver, diff --git a/src/time-and-attendance/leave-requests/utils/leave-request.util.ts b/src/time-and-attendance/leave-requests/utils/leave-request.util.ts index d18bdf8..3f12023 100644 --- a/src/time-and-attendance/leave-requests/utils/leave-request.util.ts +++ b/src/time-and-attendance/leave-requests/utils/leave-request.util.ts @@ -1,12 +1,12 @@ import { BadRequestException, Injectable } from "@nestjs/common"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { LeaveTypes } from "@prisma/client"; import { toDateFromString, toStringFromDate } from "src/common/utils/date-utils"; @Injectable() export class LeaveRequestsUtils { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, ) { } diff --git a/src/time-and-attendance/paid-time-off/paid-time-off.module.ts b/src/time-and-attendance/paid-time-off/paid-time-off.module.ts index b0150ae..eb4cd93 100644 --- a/src/time-and-attendance/paid-time-off/paid-time-off.module.ts +++ b/src/time-and-attendance/paid-time-off/paid-time-off.module.ts @@ -1,6 +1,6 @@ import { Module } from "@nestjs/common"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { BankedHoursService } from "src/time-and-attendance/domains/services/banking-hours.service"; import { SickLeaveService } from "src/time-and-attendance/domains/services/sick-leave.service"; import { VacationService } from "src/time-and-attendance/domains/services/vacation.service"; @@ -8,7 +8,7 @@ import { PaidTimeOFfBankHoursService } from "src/time-and-attendance/paid-time-o @Module({ providers: [ - PrismaService, + PrismaPostgresService, EmailToIdResolver, PaidTimeOFfBankHoursService, VacationService, diff --git a/src/time-and-attendance/paid-time-off/paid-time-off.service.ts b/src/time-and-attendance/paid-time-off/paid-time-off.service.ts index 6b8880f..44a7375 100644 --- a/src/time-and-attendance/paid-time-off/paid-time-off.service.ts +++ b/src/time-and-attendance/paid-time-off/paid-time-off.service.ts @@ -1,7 +1,7 @@ import { Injectable } from "@nestjs/common"; import { Result } from "src/common/errors/result-error.factory"; import { computeHours } from "src/common/utils/date-utils"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { BankedHoursService } from "src/time-and-attendance/domains/services/banking-hours.service"; import { SickLeaveService } from "src/time-and-attendance/domains/services/sick-leave.service"; import { VacationService } from "src/time-and-attendance/domains/services/vacation.service"; @@ -10,7 +10,7 @@ import { paid_time_off_mapping, paid_time_off_types } from "src/time-and-attenda @Injectable() export class PaidTimeOFfBankHoursService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly bankingService: BankedHoursService, private readonly vacationService: VacationService, private readonly sickLeaveService: SickLeaveService, diff --git a/src/time-and-attendance/pay-period/services/pay-periods-build-overview.service.ts b/src/time-and-attendance/pay-period/services/pay-periods-build-overview.service.ts index b860ab3..e4bd5a5 100644 --- a/src/time-and-attendance/pay-period/services/pay-periods-build-overview.service.ts +++ b/src/time-and-attendance/pay-period/services/pay-periods-build-overview.service.ts @@ -2,14 +2,14 @@ import { Injectable } from "@nestjs/common"; import { Prisma } from "@prisma/client"; import { Result } from "src/common/errors/result-error.factory"; import { computeHours, computePeriod, sevenDaysFrom, toDateFromString, toStringFromDate } from "src/common/utils/date-utils"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { EmployeePeriodOverviewDto, Overview, PayPeriodOverviewDto } from "src/time-and-attendance/pay-period/dtos/overview-pay-period.dto"; @Injectable() export class GetOverviewService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, ) { } async getOverviewByYearPeriod(pay_year: number, period_no: number): Promise> { diff --git a/src/time-and-attendance/pay-period/services/pay-periods-command.service.ts b/src/time-and-attendance/pay-period/services/pay-periods-command.service.ts index bd1043b..ebdadb1 100644 --- a/src/time-and-attendance/pay-period/services/pay-periods-command.service.ts +++ b/src/time-and-attendance/pay-period/services/pay-periods-command.service.ts @@ -1,5 +1,5 @@ import { Injectable } from "@nestjs/common"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { Result } from "src/common/errors/result-error.factory"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; import { Prisma } from "@prisma/client"; @@ -9,7 +9,7 @@ import { Prisma } from "@prisma/client"; @Injectable() export class PayPeriodsCommandService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly emailResolver: EmailToIdResolver, ) { } diff --git a/src/time-and-attendance/pay-period/services/pay-periods-query.service.ts b/src/time-and-attendance/pay-period/services/pay-periods-query.service.ts index 0693c1e..27dfc8b 100644 --- a/src/time-and-attendance/pay-period/services/pay-periods-query.service.ts +++ b/src/time-and-attendance/pay-period/services/pay-periods-query.service.ts @@ -1,5 +1,5 @@ import { Injectable } from "@nestjs/common"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { computePeriod, listPayYear, payYearOfDate } from "src/common/utils/date-utils"; import { PayPeriodDto } from "../dtos/overview-pay-period.dto"; import { Result } from "src/common/errors/result-error.factory"; @@ -8,7 +8,7 @@ import { mapPayPeriodToDto } from "src/time-and-attendance/pay-period/pay-period @Injectable() export class PayPeriodsQueryService { constructor( - private readonly prisma: PrismaService) { } + private readonly prisma: PrismaPostgresService) { } async findOneByYearPeriod(pay_year: number, period_no: number): Promise> { const row = await this.prisma.payPeriods.findFirst({ diff --git a/src/time-and-attendance/schedule-presets/services/schedule-presets-apply.service.ts b/src/time-and-attendance/schedule-presets/services/schedule-presets-apply.service.ts index cdcead9..3f9f0f1 100644 --- a/src/time-and-attendance/schedule-presets/services/schedule-presets-apply.service.ts +++ b/src/time-and-attendance/schedule-presets/services/schedule-presets-apply.service.ts @@ -1,5 +1,5 @@ import { Injectable } from "@nestjs/common"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { is_same_week_day, sevenDaysFrom, toDateFromString, toStringFromDate, toStringFromHHmm } from "src/common/utils/date-utils"; import { BankCodesResolver } from "src/common/mappers/bank-type-id.mapper"; @@ -17,7 +17,7 @@ import { PayPeriodEventService } from "src/time-and-attendance/pay-period/servic @Injectable() export class SchedulePresetsApplyService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly emailResolver: EmailToIdResolver, private readonly shiftService: ShiftsCreateService, private readonly typeResolver: BankCodesResolver, diff --git a/src/time-and-attendance/schedule-presets/services/schedule-presets-create.service.ts b/src/time-and-attendance/schedule-presets/services/schedule-presets-create.service.ts index 5c12c97..4daf523 100644 --- a/src/time-and-attendance/schedule-presets/services/schedule-presets-create.service.ts +++ b/src/time-and-attendance/schedule-presets/services/schedule-presets-create.service.ts @@ -1,6 +1,6 @@ import { Injectable } from "@nestjs/common"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { SchedulePresetsDto } from "src/time-and-attendance/schedule-presets/schedule-presets.dto"; @@ -11,7 +11,7 @@ import { Result } from "src/common/errors/result-error.factory"; @Injectable() export class SchedulePresetsCreateService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly typeResolver: BankCodesResolver, ) { } //_________________________________________________________________ diff --git a/src/time-and-attendance/schedule-presets/services/schedule-presets-delete.service.ts b/src/time-and-attendance/schedule-presets/services/schedule-presets-delete.service.ts index 2491cc5..c39dfac 100644 --- a/src/time-and-attendance/schedule-presets/services/schedule-presets-delete.service.ts +++ b/src/time-and-attendance/schedule-presets/services/schedule-presets-delete.service.ts @@ -1,10 +1,10 @@ import { Injectable } from "@nestjs/common"; import { Result } from "src/common/errors/result-error.factory"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; @Injectable() export class SchedulePresetDeleteService { - constructor(private readonly prisma: PrismaService) { } + constructor(private readonly prisma: PrismaPostgresService) { } //_________________________________________________________________ // DELETE diff --git a/src/time-and-attendance/schedule-presets/services/schedule-presets-get.service.ts b/src/time-and-attendance/schedule-presets/services/schedule-presets-get.service.ts index d2d4733..81fce2b 100644 --- a/src/time-and-attendance/schedule-presets/services/schedule-presets-get.service.ts +++ b/src/time-and-attendance/schedule-presets/services/schedule-presets-get.service.ts @@ -1,6 +1,6 @@ import { Injectable } from "@nestjs/common"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { SchedulePresetsDto, SchedulePresetShiftsDto } from "../schedule-presets.dto"; @@ -9,7 +9,7 @@ import { Result } from "src/common/errors/result-error.factory"; @Injectable() export class SchedulePresetsGetService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, ) { } async getSchedulePresets(): Promise> { diff --git a/src/time-and-attendance/schedule-presets/services/schedule-presets-update.service.ts b/src/time-and-attendance/schedule-presets/services/schedule-presets-update.service.ts index 55afedb..fa08906 100644 --- a/src/time-and-attendance/schedule-presets/services/schedule-presets-update.service.ts +++ b/src/time-and-attendance/schedule-presets/services/schedule-presets-update.service.ts @@ -1,5 +1,5 @@ import { Injectable } from "@nestjs/common"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { SchedulePresetsDto } from "src/time-and-attendance/schedule-presets/schedule-presets.dto"; @@ -10,7 +10,7 @@ import { Result } from "src/common/errors/result-error.factory"; @Injectable() export class SchedulePresetUpdateService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly typeResolver: BankCodesResolver, ) { } diff --git a/src/time-and-attendance/shifts/services/shifts-create.service.ts b/src/time-and-attendance/shifts/services/shifts-create.service.ts index 47309d2..5870cde 100644 --- a/src/time-and-attendance/shifts/services/shifts-create.service.ts +++ b/src/time-and-attendance/shifts/services/shifts-create.service.ts @@ -3,7 +3,7 @@ import { Injectable } from "@nestjs/common"; import { timesheet_select } from "src/time-and-attendance/utils/selects.utils"; import { BankCodesResolver } from "src/common/mappers/bank-type-id.mapper"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { Result } from "src/common/errors/result-error.factory"; import { toStringFromHHmm, toStringFromDate, toDateFromString, overlaps, toDateFromHHmm, computeHours } from "src/common/utils/date-utils"; import { ShiftDto } from "src/time-and-attendance/shifts/shift.dto"; @@ -17,7 +17,7 @@ import { Modules } from "@prisma/client"; @Injectable() export class ShiftsCreateService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly emailResolver: EmailToIdResolver, private readonly typeResolver: BankCodesResolver, private readonly vacationService: VacationService, diff --git a/src/time-and-attendance/shifts/services/shifts-delete.service.ts b/src/time-and-attendance/shifts/services/shifts-delete.service.ts index 00cc152..af21c28 100644 --- a/src/time-and-attendance/shifts/services/shifts-delete.service.ts +++ b/src/time-and-attendance/shifts/services/shifts-delete.service.ts @@ -2,14 +2,14 @@ import { Injectable } from "@nestjs/common"; import { Result } from "src/common/errors/result-error.factory"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; import { computeHours } from "src/common/utils/date-utils"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { PaidTimeOFfBankHoursService } from "src/time-and-attendance/paid-time-off/paid-time-off.service"; import { PayPeriodEventService } from "src/time-and-attendance/pay-period/services/pay-period-event.service"; @Injectable() export class ShiftsDeleteService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly paidTimeOffService: PaidTimeOFfBankHoursService, private readonly emailResolver: EmailToIdResolver, private readonly payPeriodEventService: PayPeriodEventService, diff --git a/src/time-and-attendance/shifts/services/shifts-update.service.ts b/src/time-and-attendance/shifts/services/shifts-update.service.ts index 74dd304..c6c52fb 100644 --- a/src/time-and-attendance/shifts/services/shifts-update.service.ts +++ b/src/time-and-attendance/shifts/services/shifts-update.service.ts @@ -1,6 +1,6 @@ import { toDateFromString, toStringFromHHmm, toStringFromDate, toDateFromHHmm, overlaps, computeHours } from "src/common/utils/date-utils"; import { Injectable } from "@nestjs/common"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { EmployeeTimesheetResolver } from "src/common/mappers/timesheet.mapper"; import { BankCodesResolver } from "src/common/mappers/bank-type-id.mapper"; @@ -17,7 +17,7 @@ import { PayPeriodEventService } from "src/time-and-attendance/pay-period/servic @Injectable() export class ShiftsUpdateService { constructor( - private readonly prisma: PrismaService, + private readonly prisma: PrismaPostgresService, private readonly typeResolver: BankCodesResolver, private readonly timesheetResolver: EmployeeTimesheetResolver, private readonly emailResolver: EmailToIdResolver, diff --git a/src/time-and-attendance/timesheets/services/timesheet-approval.service.ts b/src/time-and-attendance/timesheets/services/timesheet-approval.service.ts index 6ba4aec..5170b5e 100644 --- a/src/time-and-attendance/timesheets/services/timesheet-approval.service.ts +++ b/src/time-and-attendance/timesheets/services/timesheet-approval.service.ts @@ -1,13 +1,13 @@ import { BaseApprovalService } from "src/common/shared/base-approval.service"; import { Prisma, Timesheets } from "@prisma/client"; -import { PrismaService } from "prisma/postgres/prisma-postgres.service"; +import { PrismaPostgresService } from "prisma/postgres/prisma-postgres.service"; import { Injectable, NotFoundException } from "@nestjs/common"; import { timesheet_select } from "src/time-and-attendance/utils/selects.utils"; @Injectable() export class TimesheetApprovalService extends BaseApprovalService{ constructor( - prisma: PrismaService, + prisma: PrismaPostgresService, ){super(prisma)} //_____________________________________________________________________________________________